joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009be0
Capabilities:
Get disk size

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x24
mov esi, dword [ecx]
mov ebx, dword [ecx + 4]
test byte [0x10012028], 8
jne 0x10009ca0
test ebx, ebx
je 0x10009cdf
lea eax, [ebp - 0x18]
add esi, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceExW]
sub esp, 0x10
test eax, eax
je 0x10009cd8
mov esi, dword [ebp - 0x14]
test esi, esi
jne 0x10009c68
mov eax, dword [ebp - 0x18]
test eax, eax
js 0x10009c68
mov edx, 3
mov dword [ebx + 8], eax
xor eax, eax
mov word [ebx], dx
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 8
mov ecx, 5
add ebx, 8
mov word [ebx - 8], cx
mov dword [esp + 8], ebx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.oleaut32.dll_VarR8FromUI8]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 8
lea eax, [esi - 0xc]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x10014e28
mov dword [esp + 8], str.drive_get_TotalSize
mov dword [esp + 4], 0x10012028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10009c05
mov eax, 0x80004005
jmp 0x10009c8e
mov eax, 0x80004003
jmp 0x10009c8e

Function at 0x1000a100
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea esi, [ebp - 0x108]
mov ebx, eax
lea eax, [ebp - 0x10c]
sub esp, 0x118
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x100
mov dword [esp + 4], esi
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
jne 0x1000a190
mov eax, dword [ebx + 0xc]
add ebx, 0xc
mov dword [esp], ebx
call dword [eax + 8]
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x34]
sub esp, 4
cmp edx, 5
je 0x1000a1b8
ja 0x1000a1c8
mov eax, 0x800a0035
cmp edx, 2
je 0x1000a185
mov eax, 0x800a004c
cmp edx, 3
je 0x1000a185
test byte [0x10012028], 1
jne 0x1000a1e0
mov eax, 0x80004005
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov ecx, dword [ebp - 0x10c]
xor eax, eax
mov edx, esi
cmp ecx, 0x100
setne al
mov dword [ebx + 0x2c], eax
mov eax, ebx
call sym._append_read_data
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
lea esp, [ebp - 8]
mov eax, 0x800a0046
pop ebx
pop esi
pop ebp
ret
mov eax, 0x800a003a
cmp edx, 0x50
je 0x1000a185
cmp edx, 0xb7
je 0x1000a185
jmp 0x1000a177
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.Unsupported_error_code:__ld_n
mov dword [esp + 8], str.create_error
mov dword [esp + 4], 0x10012028
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x1000a180
Function at 0x1000a590
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x18
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test byte [0x10012028], 8
jne 0x1000a5d0
mov dword [esp + 4], esi
mov eax, dword [ebx + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov edx, eax
sub esp, 8
xor eax, eax
test edx, edx
je 0x1000a608
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 8
lea eax, [ebx - 0xc]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x10014fae
mov dword [esp + 8], str.file_put_Attributes
mov dword [esp + 4], 0x10012028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x1000a5a7
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x34]
cmp edx, 5
je 0x1000a660
ja 0x1000a640
mov eax, 0x800a0035
cmp edx, 2
je 0x1000a5c2
mov eax, 0x800a004c
cmp edx, 3
je 0x1000a5c2
test byte [0x10012028], 1
jne 0x1000a670
mov eax, 0x80004005
jmp 0x1000a5c2
mov eax, 0x800a003a
cmp edx, 0x50
je 0x1000a5c2
cmp edx, 0xb7
je 0x1000a5c2
jmp 0x1000a62c
mov eax, 0x800a0046
jmp 0x1000a5c2
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.Unsupported_error_code:__ld_n
mov dword [esp + 8], str.create_error
mov dword [esp + 4], 0x10012028
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x1000a635
Function at 0x1000a6a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x20
mov dword [ebp - 0x18], edx
mov esi, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [edx], 0
mov dword [esp], 0x18
call esi
test eax, eax
je 0x1000a86b
mov dword [eax + 0xc], sym._file_QueryInterface_12
mov edi, eax
mov dword [eax + 0x10], 1
mov eax, dword [sym.imp.kernel32.dll_GetFullPathNameW]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [ebp - 0x10], eax
call eax
sub esp, 0x10
mov ecx, eax
test eax, eax
je 0x1000a838
lea eax, [eax + eax]
mov dword [ebp - 0x14], ecx
mov dword [esp], eax
call esi
mov ecx, dword [ebp - 0x14]
test eax, eax
mov dword [edi + 0x14], eax
je 0x1000a862
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], ebx
mov eax, dword [ebp - 0x10]
call eax
sub esp, 0x10
test eax, eax
mov eax, dword [edi + 0x14]
mov dword [esp], eax
je 0x1000a850
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x1000a761
test al, 0x50
je 0x1000a7b0
mov eax, dword [edi + 0x14]
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call ebx
mov dword [esp], edi
call ebx
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x34]
cmp edx, 5
je 0x1000a7e0
ja 0x1000a7f0
mov eax, 0x800a0035
cmp edx, 2
je 0x1000a7ce
mov eax, 0x800a004c
cmp edx, 3
je 0x1000a7ce
test byte [0x10012028], 1
jne 0x1000a808
mov eax, 0x80004005
jmp 0x1000a7ce
lea ebx, [edi + 0xc]
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], 0x10016940
call sym._init_classinfo
mov eax, dword [ebp - 0x18]
mov dword [eax], ebx
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 0x800a0046
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x800a003a
cmp edx, 0x50
je 0x1000a7ce
cmp edx, 0xb7
je 0x1000a7ce
jmp 0x1000a798
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.Unsupported_error_code:__ld_n
mov dword [esp + 8], str.create_error
mov dword [esp + 4], 0x10012028
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x1000a7a1
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x1000a7a1
mov ebx, dword [sym.imp.ucrtbase.dll_free]
call ebx
mov dword [esp], edi
call ebx
jmp 0x1000a7a1
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
mov eax, 0x8007000e
jmp 0x1000a7ce
Function at 0x1000aaa0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
test byte [0x10012028], 8
jne 0x1000aaf0
test ebx, ebx
je 0x1000abd0
test esi, esi
je 0x1000abd0
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_MoveFileW]
mov edx, eax
sub esp, 8
xor eax, eax
test edx, edx
je 0x1000ab38
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0_1
mov edi, eax
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str._p__s__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.filesys_MoveFile
mov dword [esp + 4], 0x10012028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x1000aab8
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x34]
cmp edx, 5
je 0x1000ab90
ja 0x1000ab70
mov eax, 0x800a0035
cmp edx, 2
je 0x1000aae0
mov eax, 0x800a004c
cmp edx, 3
je 0x1000aae0
test byte [0x10012028], 1
jne 0x1000aba0
mov eax, 0x80004005
jmp 0x1000aae0
mov eax, 0x800a003a
cmp edx, 0x50
je 0x1000aae0
cmp edx, 0xb7
je 0x1000aae0
jmp 0x1000ab5c
mov eax, 0x800a0046
jmp 0x1000aae0
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.Unsupported_error_code:__ld_n
mov dword [esp + 8], str.create_error
mov dword [esp + 4], 0x10012028
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x1000ab65
mov eax, 0x80070057
jmp 0x1000aae0

Function at 0x1000d670
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x18
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test byte [0x10012028], 8
jne 0x1000d6b8
test ebx, ebx
je 0x1000d752
mov eax, dword [esi + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x1000d6f0
and eax, 0xc37
mov dword [ebx], eax
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 8
lea eax, [esi - 0xc]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x10014e28
mov dword [esp + 8], str.file_get_Attributes
mov dword [esp + 4], 0x10012028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x1000d687
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x34]
cmp edx, 5
je 0x1000d748
ja 0x1000d728
mov eax, 0x800a0035
cmp edx, 2
je 0x1000d6ac
mov eax, 0x800a004c
cmp edx, 3
je 0x1000d6ac
test byte [0x10012028], 1
jne 0x1000d75c
mov eax, 0x80004005
jmp 0x1000d6ac
mov eax, 0x800a003a
cmp edx, 0x50
je 0x1000d6ac
cmp edx, 0xb7
je 0x1000d6ac
jmp 0x1000d714
mov eax, 0x800a0046
jmp 0x1000d6ac
mov eax, 0x80004003
jmp 0x1000d6ac
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.Unsupported_error_code:__ld_n
mov dword [esp + 8], str.create_error
mov dword [esp + 4], 0x10012028
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x1000d71d
Function at 0x1000dae0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
lea esi, [ebx - 0xc]
test byte [0x10012028], 8
jne 0x1000dbb0
mov edx, dword [ebp + 0xc]
mov eax, esi
call sym._textstream_write
test eax, eax
jns 0x1000db18
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 8
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x1c]
mov eax, 0x10015fed
mov ebx, 0x10015ff0
mov dword [ebp - 0xc], 0
test edx, edx
mov dword [esp + 0x10], 0
cmovne eax, ebx
cmp edx, 1
lea edx, [ebp - 0xc]
mov dword [esp], ecx
sbb ebx, ebx
mov dword [esp + 0xc], edx
and ebx, 0xfffffffe
mov dword [esp + 4], eax
add ebx, 4
mov dword [esp + 8], ebx
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x1000db6d
xor eax, eax
cmp ebx, dword [ebp - 0xc]
je 0x1000db09
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x34]
cmp edx, 5
je 0x1000dc10
ja 0x1000dbf0
mov eax, 0x800a0035
cmp edx, 2
je 0x1000db09
mov eax, 0x800a004c
cmp edx, 3
je 0x1000db09
test byte [0x10012028], 1
jne 0x1000dc20
mov eax, 0x80004005
jmp 0x1000db09
mov eax, dword [ebp + 0xc]
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str._p___s._n
mov dword [esp + 8], 0x10015ff4
mov dword [esp + 4], 0x10012028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x1000dafb
mov eax, 0x800a003a
cmp edx, 0x50
je 0x1000db09
cmp edx, 0xb7
je 0x1000db09
jmp 0x1000db9d
mov eax, 0x800a0046
jmp 0x1000db09
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.Unsupported_error_code:__ld_n
mov dword [esp + 8], str.create_error
mov dword [esp + 4], 0x10012028
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x1000dba6
Function at 0x10010ff0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10011048
cmp byte [esi + ebx - 1], 0xa
je 0x1001101c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x100240e4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x100115f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov edi, dword [0x100240f4]
mov esi, dword [ebp + 8]
test edi, edi
je 0x100117b0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x100240f4]
movzx eax, al
bt eax, esi
jae 0x10011810
mov ecx, dword [0x100240e4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x100116b5
test byte [0x10012058], 8
jne 0x10011750
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x10012068], 8
jne 0x10011700
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10011684
cmp esi, 3
jbe 0x100116c0
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x1001d3c0]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10011684
mov ecx, dword [0x100240f4]
test ecx, ecx
je 0x100117f0
mov dword [esp], 0x10012068
call dword [0x100240f4]
test al, 8
je 0x1001165b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x1001165b
mov ebx, dword [0x100240f4]
test ebx, ebx
je 0x100117d0
mov dword [esp], 0x10012058
call dword [0x100240f4]
test al, 8
je 0x10011646
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x1001164e
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x100240f4
call sym._load_func.part.0
jmp 0x1001160d
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x100240f4
call sym._load_func.part.0
jmp 0x1001175a
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x100240f4
call sym._load_func.part.0
jmp 0x1001170e
mov eax, 0xffffffff
jmp 0x100116b5
Function at 0x10011990
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x214
mov eax, dword [0x10024100]
test eax, eax
je 0x10011a48
mov dword [esp], ebx
call eax
mov dword [ebx + 8], eax
sub esp, 4
test eax, eax
jns 0x100119d0
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x214]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MODULE
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemRoot
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x100119bc
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x10011a7d
mov dword [esp + 4], str.AtlCreateRegistrar
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x10024100], eax
sub esp, 8
test eax, eax
jne 0x100119ad
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x100119be
Function at 0x10011a90
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov dword [esp + 4], eax
mov dword [ebp - 0x10], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edx, dword [ebp - 0x10]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
sub esp, 8
test ebx, ebx
je 0x10011c11
mov eax, dword [esi]
test eax, eax
je 0x10011c00
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
mov dword [ebp - 0x1c], edx
call edx
lea ecx, [eax + 1]
sub esp, 0x18
lea eax, [ecx + ecx]
mov dword [ebp - 0x18], ecx
mov ecx, eax
mov dword [ebp - 0x14], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x10011c15
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 4]
xor edx, edx
sub esp, 0x18
mov word [edi + eax - 2], dx
mov eax, dword [esi]
test ecx, ecx
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
jne 0x10011bf8
call dword [edx + 0x28]
sub esp, 8
mov dword [esi + 8], eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 8]
sub esp, 0xc
not eax
shr eax, 0x1f
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
call dword [edx + 0x24]
sub esp, 8
jmp 0x10011bb9
mov edx, esi
mov eax, edi
call sym._create_registrar
test eax, eax
jne 0x10011af6
xor eax, eax
jmp 0x10011be8
mov dword [esi + 8], 0x8007000e
xor eax, eax
jmp 0x10011be8
Function at 0x489c00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x466015
lea edi, [esi - 0x65015]
push edi
or ebp, 0xffffffff
jmp 0x489c22
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x489c29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x489c18
mov eax, 1
add ebx, ebx
jne 0x489c3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x489c4c
jne 0x489c6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x489c6b
dec eax
add ebx, ebx
jne 0x489c58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x489c30
add ebx, ebx
jne 0x489c67
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x489cbd
xor ecx, ecx
sub eax, 3
jb 0x489c83
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x489cf2
sar eax, 1
mov ebp, eax
jmp 0x489c8e
add ebx, ebx
jne 0x489c8e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x489c5c
inc ecx
add ebx, ebx
jne 0x489c9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x489c5c
add ebx, ebx
jne 0x489ca9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x489c9e
jne 0x489cba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x489c9e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x489cdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x489cce
jmp 0x489c1e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x489cdc
add edi, ecx
jmp 0x489c1e
pop esi
mov edi, esi
mov ecx, 0x1085
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x489cfa
cmp byte [edi], 9
jne 0x489cfa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x489cff
lea edi, [esi + 0x87000]
mov eax, dword [edi]
or eax, eax
je 0x489d6e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x89578]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x89638]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x489d2c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x89640]
or eax, eax
je 0x489d68
mov dword [ebx], eax
add ebx, 4
jmp 0x489d49
call dword [esi + 0x8963c]
mov ebp, dword [esi + 0x89644]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x489da2
sub esp, 0xffffff80
jmp 0x42213a
Function at 0x403e57
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp byte [edi], 0x25
jne 0x403ed4
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push eax
call fcn.00403093
lea eax, [ebp + eax - 0x105]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x25
jne 0x403ebc
and byte [eax], 0
push dword [ebp + 0x1c]
lea eax, [ebp - 0x104]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push eax
push 0x4016ec
call esi
pop edi
pop esi
leave
ret 0x18

Function at 0x4041d7
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0xc]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40422c
push esi
push esi
push esi
lea eax, [ebp - 4]
push esi
push eax
push esi
lea eax, [ebp + 8]
push esi
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x404223
cmp dword [ebp + 8], esi
jne 0x404223
cmp dword [ebp - 4], esi
jne 0x404223
push 1
pop esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 8

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219