joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407e40
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov edx, ecx
push edi
mov ecx, 0x64
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edi, [edx + 0x20c]
push edi
push 0x1a
push esi
push 0x43a370
push 0x438234
push 0x43822c
call ebx
push edi
lea eax, [esi + 0x1a]
push 0x41
push eax
push 0x43a370
push 0x438218
push 0x43822c
call ebx
push edi
lea ecx, [esi + 0x5b]
push 0x41
push ecx
push 0x43a370
push 0x438204
push 0x43822c
call ebx
push edi
lea edx, [esi + 0x9c]
push 0x1a
push edx
push 0x43a370
push 0x4381f4
push 0x43822c
call ebx
push edi
lea eax, [esi + 0xb6]
push 0x1a
push eax
push 0x43a370
push 0x4381e4
push 0x43822c
call ebx
push edi
lea ecx, [esi + 0xd0]
push 0x41
push ecx
push 0x43a370
push 0x4381d4
push 0x43822c
call ebx
push edi
lea edx, [esi + 0x111]
push 0x41
push edx
push 0x43a370
push 0x4381c0
push 0x43822c
call ebx
push edi
add esi, 0x152
push 0x41
push esi
push 0x43a370
push 0x4381ac
push 0x43822c
call ebx
pop edi
pop esi
pop ebx
ret 4
Function at 0x408680
Capabilities:
Get geographical location
Read .ini file

Disassembly:
add ecx, 0x108
push ecx
push 0
push 0x4382dc
push 0x438198
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
ret

Function at 0x4086a0
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ebx, [edi + 0x108]
push ebx
push 0
push 0x438330
push 0x438324
call ebp
mov esi, dword [esp + 0x14]
mov ecx, edi
mov dword [esi], eax
lea eax, [esi + 8]
push eax
push 0x43831c
push 0x438324
call fcn.004089a0
neg eax
lea ecx, [esi + 0x48]
sbb eax, eax
push ecx
inc eax
push 0x438310
push 0x438198
mov ecx, edi
mov dword [esi + 4], eax
call fcn.004089a0
neg eax
lea edx, [esi + 0x88]
mov ecx, edi
sbb eax, eax
push edx
inc eax
push 0x438308
push 0x438198
mov dword [esi + 0x44], eax
call fcn.004089a0
neg eax
sbb eax, eax
lea ecx, [esi + 0xc4]
inc eax
mov dword [esi + 0x84], eax
lea eax, [edi + 4]
push eax
push 0x105
push ecx
push 0x43a370
push 0x4382cc
push 0x4382c0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebx
push 1
push 0x4382fc
push 0x4382c0
call ebp
mov ecx, edi
mov dword [esi + 0x1cc], eax
call fcn.00408680
sub eax, 8
push ebx
neg eax
sbb eax, eax
and al, 0xfe
add eax, 2
and eax, 0xffff
push eax
push 0x4382f0
push 0x4382c0
call ebp
add edi, 0x20c
mov word [esi + 0x1d0], ax
push edi
push 0
push 0x4382e4
push 0x438198
call ebp
mov dword [esi + 0x1d4], eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x408e80
Capabilities:
Create directory

Disassembly:
sub esp, 0x250
mov al, byte [0x43a370]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x1c], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov ebp, dword [esp + 0x264]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebp
xor esi, esi
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
test edi, edi
jle 0x408f47
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp esi, edi
jge 0x408eeb
lea edx, [esp + 0x1c]
lea eax, [esi + ebp]
sub edx, ebp
mov cl, byte [eax]
cmp cl, 0x5c
jne 0x408ee2
test esi, esi
jle 0x408eeb
cmp byte [esp + esi + 0x1b], 0x3a
jne 0x408eeb
mov byte [edx + eax], cl
inc esi
inc eax
cmp esi, edi
jl 0x408ed0
lea ecx, [esp + 0x120]
lea edx, [esp + 0x1c]
push ecx
push edx
mov byte [esp + esi + 0x24], 0
call ebx
cmp eax, 0xffffffff
jne 0x408f2c
xor eax, eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0xc
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x408f59
jmp 0x408f3d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [esp + 0x120], 0x10
je 0x408f59
mov byte [esp + esi + 0x1c], 0x5c
inc esi
cmp esi, edi
jl 0x408ec7
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x250
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x250
ret 4

Function at 0x408f70
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42b8b5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
mov eax, dword [0x4383b0]
push esi
mov esi, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
lea ecx, [esp + 8]
mov dword [esp + 0x120], 1
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x40905d
lea edx, [esp + 0xc]
push edx
push 0x1a
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x409053
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x409044
lea edx, [esp + 0x14]
push edi
push edx
lea ecx, [esp + 0xc]
call fcn.0041fb62
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
cmp byte [esp + ecx + 0x13], 0x5c
je 0x40901c
push 0x4382bc
lea ecx, [esp + 8]
call fcn.0041fc67
push 0x438368
lea ecx, [esp + 8]
call fcn.0041fc67
push 0x4382bc
lea ecx, [esp + 8]
call fcn.0041fc67
mov eax, dword [esp + 4]
mov ecx, esi
push eax
call fcn.00408e80
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov esi, dword [esp + 0x128]
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.0041f74e
mov dword [esp + 0x10], 1
lea ecx, [esp + 4]
mov byte [esp + 0x120], 0
call fcn.0041f9d9
mov ecx, dword [esp + 0x118]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x120
ret 4
Function at 0x409bcf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409c27
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x43a370
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409c1a
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x409c29
xor eax, eax
pop esi
leave
ret 4

Function at 0x415a8d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x439910
cmp edx, dword [eax]
je 0x415aaf
add eax, 8
inc ecx
cmp eax, 0x4399a0
jl 0x415aa0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x439910]
jne 0x415bdd
mov eax, dword [0x43c4d4]
cmp eax, 1
je 0x415bb7
test eax, eax
jne 0x415ae0
cmp dword [0x4391f0], 1
je 0x415bb7
cmp edx, 0xfc
je 0x415bdd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x415b17
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00417960
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00416b40
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x415b5a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00416b40
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4383a8
push edi
call fcn.00414f40
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00417960
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00417970
lea eax, [ebp - 0xa0]
push 0x4380c8
push eax
call fcn.00417970
push dword [esi + 0x439914]
lea eax, [ebp - 0xa0]
push eax
call fcn.00417970
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00418a97
add esp, 0x2c
pop edi
jmp 0x415bdd
lea eax, [ebp + 8]
lea esi, [esi + 0x439914]
push 0
push eax
push dword [esi]
call fcn.00416b40
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x41d8a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00412ed0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41d96b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41d96b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41d91e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41d929
or bh, 8
and edi, 0x8000000
je 0x41d944
mov eax, dword [0x43dc5c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41d96b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41dd40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41dd6b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41dd8f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41ddaa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x420c8f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x420cc7
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0041fd1d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041fcf5
jmp 0x420cd3
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x422234
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x422276
call fcn.00427b57
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x422276
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42226d
xor eax, eax
jmp 0x42227e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00422284
pop edi
pop esi
pop ebx
ret 4
Function at 0x5152de
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x5152fb
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x5152ec
add dl, dl
jne 0x515306
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x515352
xor eax, eax
add dl, dl
jne 0x515313
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x5153ef
add dl, dl
jne 0x515322
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x51532d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x515338
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x515343
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x51534d
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x5152f2
mov eax, 1
add dl, dl
jne 0x515360
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x51536b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x515357
sub eax, 2
jne 0x51539a
mov ecx, 1
add dl, dl
jne 0x515380
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x51538b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x515377
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5152f2
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x5153b1
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x5153bc
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x5153a8
cmp eax, 0x7d00
jae 0x5153df
cmp eax, 0x500
jb 0x5153da
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5152f2
cmp eax, 0x7f
ja 0x5153e2
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5152f2
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x51540b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5152f2
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret 8
Function at 0x4025f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40260b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402642
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40263e
jmp 0x402630
cmp esi, eax
jae 0x402642
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402630
cmp esi, eax
jb 0x402649
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402f40
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52c355
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
push esi
push edi
mov eax, dword [0x5789e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], 8
mov dword [ebp - 0x10], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.0041885b
xor edi, edi
push edi
call fcn.004192e6
push 0xc
call fcn.0040be82
add esp, 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], edi
cmp eax, edi
je 0x402fb0
mov ecx, eax
call fcn.00419aa1
mov edi, eax
push 0x556b60
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00419c30
push 0
push 0x66
lea ecx, [ebp - 0xd4]
call fcn.0040c20c
mov dword [ebp - 4], 1
mov dword [ebp - 0xd4], 0x556f2c
call fcn.0041b94a
call fcn.0041b94a
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0xd4]
mov dword [ebp - 4], 2
mov dword [esi + 0x20], ecx
call fcn.0040cc0b
test edi, edi
je 0x403023
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 1
mov ecx, edi
call eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 4
call fcn.0040fce0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], vtable.CBrush.0
call fcn.00402dc0
lea ecx, [ebp - 0xd4]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c3e0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40ce0a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0041b94a
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40ce43
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0040ca4c
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x40cea1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x40cec5
cmp dword [edi + 0x74], 0
jne 0x40cec5
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0041b94a
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040ce62
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x410bb9
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x52047a
call fcn.0050a375
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x410bde
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x410c30
call fcn.0040e1ed
push eax
lea ecx, [ebp - 0x10]
call fcn.00402ac0
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0050a66f
push eax
call fcn.004066b0
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402b40
mov eax, esi
call fcn.0050a44d
ret 8

Function at 0x4172d4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41731b
call fcn.0041b94a
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41731b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x417337
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00416dd9
mov esi, eax
test edi, edi
je 0x417335
test ebx, ebx
je 0x417335
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x418f26
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x418f6e
call fcn.0041b94a
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x418f6e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x418fb1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x418f9a
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x418f9a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x418fae
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41ca73
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0041c732
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x41cabd
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041101c
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00410fed
jmp 0x41cac8
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041eea2
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x41cace
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.00410457
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x41cb0b
call fcn.0041c732
mov dword [esi + 0xc], 1
jmp 0x41cb10
call fcn.0041c732
cmp dword [esi], 0
je 0x41cb59
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x41cb31
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041101c
jmp 0x41cb43
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00402c90
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00410fed
jmp 0x41cb7d
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x41cb7d
push dword [esi]
push dword [ebp + 8]
call fcn.0041eea2
pop esi
pop ebp
ret 0xc