joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54c410
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov edx, 0x5c8c50
call fcn.0040e570
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.0054c400
push ebp
push 0x414010
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], 0
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [ebp - 0xc]
lea eax, [eax + 0x34]
mov edx, 0
call fcn.00408960
mov eax, dword [ebp - 0xc]
mov edx, fcn.004d9620
mov dword [eax + 0x2c], edx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [edx + 0x24], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [edx + 0x28], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
mov dword [edx + 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
mov dx, 0
call fcn.004092b0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
lea eax, [eax + 0x30]
call fcn.00408960
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov dword [edx + 0x10], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
mov dword [edx + 0x18], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0xc]
lea ecx, [eax + 0x10]
mov eax, dword [ebp - 0xc]
lea edx, [eax + 0xc]
mov eax, dword [ebp - 4]
call fcn.0054a3a0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0054caa0
mov eax, dword [ebp - 4]
test dword [eax + 0x28], 0x10
je 0x54c515
jmp 0x54c534
mov eax, dword [ebp - 4]
call fcn.004fba50
test al, al
je 0x54c523
jmp 0x54c534
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
or eax, 0x8000000
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x24], eax
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0054c400
mov esp, ebp
pop ebp
ret
Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x43146bd3
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..text_1
nop
mov ebx, 0x4304d8
mov ecx, 0x37ec3871
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x40fce0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x447a68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x45f8cc]
test eax, eax
jne 0x40fd8b
mov eax, dword [0x45d75c]
push esi
mov dword [esp + 4], eax
push 0x104
push 0x104
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.0042ffed
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call fcn.0043003c
push str.winhlp32.exe
lea ecx, [esp + 8]
call fcn.0042ff99
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40fd72
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x40fd72
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [0x45f8cc], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.0042fbbd
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40fda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40fe02
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret

Function at 0x410010
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x214]
push ebp
mov ebp, dword [esp + 0x214]
push esi
push edi
push ebx
push 0
push 0
push ebp
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4100f9
lea eax, [esp + 0x10]
push eax
push str..htm
push SysReAllocStringLen
call fcn.0040fda0
add esp, 0xc
test eax, eax
jne 0x4100f9
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
push str._shellopencommand
push ecx
call edi
lea edx, [esp + 0x10]
lea eax, [esp + 0x10]
push edx
push eax
push SysReAllocStringLen
call fcn.0040fda0
add esp, 0xc
test eax, eax
jne 0x4100f9
lea ecx, [esp + 0x10]
push 0x45d1d8
push ecx
call fcn.0041cdb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4100d3
lea edx, [esp + 0x10]
push 0x45d1d4
push edx
call fcn.0041cd30
mov esi, eax
add esp, 8
test esi, esi
jne 0x4100d3
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x4100d6
mov byte [esi], 0
push 0x45d1d0
push esi
call edi
push ebp
push esi
call edi
lea ecx, [esp + 0x10]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x410200
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x104
push esi
lea eax, [esp + 8]
push 0xff
push eax
mov dword [esp + 0xc], 0
call sub.WSOCK32.dll_gethostname
lea ecx, [esp + 8]
push ecx
call sub.WSOCK32.dll_gethostbyname
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x110]
mov ecx, dword [edx + eax*4]
mov edx, dword [ecx]
push edx
call sub.WSOCK32.dll_inet_ntoa
mov esi, dword [esp + 0x10c]
push eax
mov ecx, esi
call fcn.0042fc2b
mov eax, esi
pop esi
add esp, 0x104
ret 8

Function at 0x414290
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
call fcn.004145f0
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
and eax, 0xffff
push 0x45d3cc
push eax
push ebx
mov dword [esi + 0xc], 1
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4142c7
pop edi
pop esi
pop ebx
ret 8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4142e8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push ebx
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi + 8], eax
mov ecx, dword [esi + 4]
xor eax, eax
test ecx, ecx
pop edi
pop esi
setne al
pop ebx
ret 8

Function at 0x414300
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x447e7b
push eax
mov dword fs:[0], esp
sub esp, 0x78
push esi
mov esi, dword [ecx + 4]
test esi, esi
jne 0x414327
xor eax, eax
jmp 0x4143d3
mov edx, dword [ecx + 8]
push edi
mov ecx, 0x12
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], 0x204d454d
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x88], eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x44cf64
call fcn.004132c0
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.WINMM.dll_mmioDescend]
push 0x20
lea ecx, [esp + 0x14]
push 0
push ecx
push edx
mov dword [esp + 0x28], 0x45564157
call esi
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push 0x10
lea ecx, [esp + 0x28]
push eax
push ecx
push edx
mov dword [esp + 0x34], 0x20746d66
call esi
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0xc]
push 0x12
push eax
push ecx
call dword [sym.imp.WINMM.dll_mmioRead]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x24]
push 0
push edx
push eax
call dword [sym.imp.WINMM.dll_mmioAscend]
mov eax, 1
pop edi
mov ecx, dword [esp + 0x7c]
pop esi
mov dword fs:[0], ecx
add esp, 0x84
ret 4
Function at 0x414410
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x447e9b
push eax
mov dword fs:[0], esp
mov edx, dword [ecx + 4]
sub esp, 0x78
test edx, edx
jne 0x414443
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
add esp, 0x84
ret
push esi
mov esi, dword [ecx + 8]
push edi
mov ecx, 0x12
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], 0x204d454d
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x68], eax
mov dword [esp + 0x88], eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x44cf64
call fcn.004132c0
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.WINMM.dll_mmioDescend]
push 0x20
lea ecx, [esp + 0x14]
push 0
push ecx
push edx
mov dword [esp + 0x28], 0x45564157
call esi
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push 0x10
lea ecx, [esp + 0x28]
push eax
push ecx
push edx
mov dword [esp + 0x34], 0x61746164
call esi
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x28]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x84
ret

Function at 0x4144e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x447ebb
push eax
mov dword fs:[0], esp
sub esp, 0x78
push esi
mov esi, dword [ecx + 4]
test esi, esi
jne 0x414507
xor eax, eax
jmp 0x4145cf
mov edx, dword [ecx + 8]
push edi
mov ecx, 0x12
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], 0x204d454d
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x88], eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x44cf64
call fcn.004132c0
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.WINMM.dll_mmioDescend]
push 0x20
lea ecx, [esp + 0x14]
push 0
push ecx
push edx
mov dword [esp + 0x28], 0x45564157
call esi
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push 0x10
lea ecx, [esp + 0x28]
push eax
push ecx
push edx
mov dword [esp + 0x34], 0x61746164
call esi
mov esi, dword [esp + 0x90]
mov eax, dword [esp + 0x28]
mov edi, eax
cmp dword [esi], 0
jne 0x4145ac
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [esi], eax
jmp 0x4145b9
mov ecx, dword [esp + 0x94]
cmp ecx, eax
jae 0x4145b9
mov edi, ecx
mov esi, dword [esi]
test esi, esi
je 0x4145cc
mov eax, dword [esp + 0xc]
push edi
push esi
push eax
call dword [sym.imp.WINMM.dll_mmioRead]
mov eax, edi
pop edi
mov ecx, dword [esp + 0x7c]
pop esi
mov dword fs:[0], ecx
add esp, 0x84
ret 8
Function at 0x420da4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x45ec10
cmp edx, dword [eax]
je 0x420dc6
add eax, 8
inc ecx
cmp eax, 0x45eca0
jl 0x420db7
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x45ec10]
jne 0x420ef4
mov eax, dword [0x461990]
cmp eax, 1
je 0x420ece
test eax, eax
jne 0x420df7
cmp dword [0x45e5c4], 1
je 0x420ece
cmp edx, 0xfc
je 0x420ef4
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x420e2e
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00421fe0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004204f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x420e71
lea eax, [ebp - 0x1a4]
push eax
call fcn.004204f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x451cc0
push edi
call fcn.00423d00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00421fe0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00421ff0
lea eax, [ebp - 0xa0]
push 0x451ca0
push eax
call fcn.00421ff0
push dword [esi + 0x45ec14]
lea eax, [ebp - 0xa0]
push eax
call fcn.00421ff0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00423c6c
add esp, 0x2c
pop edi
jmp 0x420ef4
lea eax, [ebp + 8]
lea esi, [esi + 0x45ec14]
push 0
push eax
push dword [esi]
call fcn.004204f0
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 0x428e80
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.0041c7a0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x428f4b
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 0x428f4b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x428efe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x428f09
or bh, 8
and edi, 0x8000000
je 0x428f24
mov eax, dword [0x46311c]
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 0x428f4b
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 0x429320
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 0x42934b
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 0x42936f
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 0x42938a
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 0x42b7f8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0044098a
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42b829
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.0042b83c
pop edi
pop esi
pop ebx
ret 8
Function at 0x42ce3c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x42ce74
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.00430064
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0043003c
jmp 0x42ce80
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x42e7ba
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 0x42e7fc
call fcn.0044098a
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42e7fc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42e7f3
xor eax, eax
jmp 0x42e804
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0042e80a
pop edi
pop esi
pop ebx
ret 4

Function at 0x441c66
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.0044098a
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x441ca3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x441ca3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x441ca7
xor eax, eax
jmp 0x441d25
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.0042f8fe
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x441cdf
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x441cc9
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.00441e16
push ebx
mov edi, eax
call fcn.0042f927
test edi, edi
pop ecx
je 0x441d21
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.00441bdf
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00441d2a
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x442a15
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x442a43
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x442a61
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0044297b
jmp 0x442a61
mov eax, dword [esi + 0x14]
test eax, eax
je 0x442a61
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0044297b
test edi, edi
mov eax, edi
jne 0x442a4b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x445a33
Capabilities:
Receive data
Receive data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_recv
ret 0xc

Function at 0x445a4a
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_send
ret 0xc
Function at 0x406300
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x44
push ebx
push esi
mov esi, dword [esp + 0x50]
push edi
cmp word [esi + 6], 0
push ebp
jle 0x40642a
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x78]
push eax
push ecx
push esi
call fcn.004062b0
mov ebp, dword [esp + 0x68]
add esp, 0xc
push ebp
call fcn.0040e8d0
mov bl, byte [esp + 0x74]
add esp, 4
test bl, 0x20
je 0x4063a6
lea edi, [esp + 0x20]
xor eax, eax
mov ecx, 0xc
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [esp + 0x7c]
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x18]
mov dword [esp + 0x2c], eax
mov ebx, dword [ecx + 0x1c]
mov dword [esp + 0x30], edx
mov eax, dword [ecx + 0x30]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x60]
mov dword [esp + 0x34], ebx
push ecx
mov dword [esp + 0x4c], eax
push edx
lea eax, [esp + 0x18]
xor ecx, ecx
mov cx, word [esi + 6]
push eax
mov eax, dword [esp + 0x80]
and eax, 0xffff
shl eax, 0x10
or eax, ecx
push eax
push ebp
call fcn.0049ac00
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x44
ret
mov edi, dword [esp + 0x74]
xor eax, eax
mov ax, word [esi + 6]
and edi, 0xffff
shl edi, 0x10
or eax, edi
push eax
call fcn.0049c8e0
mov dword [esp + 0x24], eax
add esp, 4
test bl, 8
movsx ecx, word [esp + 0x74]
mov dword [esp + 0x24], ecx
je 0x4063f5
lea eax, [esp + 0x60]
lea ecx, [esp + 0x10]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
push ecx
push eax
push edx
push ebp
call fcn.0049acc0
add esp, 0x14
jmp 0x406417
mov ecx, dword [esp + 0x7c]
lea eax, [esp + 0x60]
lea edx, [esp + 0x10]
push ecx
mov ebx, dword [esp + 0x24]
push eax
mov ecx, dword [esp + 0x2c]
push edx
push ecx
push ebx
push ebp
call fcn.0049ab20
add esp, 0x18
push 0
xor eax, eax
mov ax, word [esi + 6]
or eax, edi
push eax
call fcn.0049cd90
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x44
ret

Function at 0x40b6b0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
push ebx
push esi
push edi
xor esi, esi
mov edi, dword [esp + 0x28]
mov eax, dword [edi + 6]
test eax, eax
je 0x40b6e2
lea ecx, [esp + 0xc]
mov ebx, dword [0x4f67ec]
push ecx
push 0x18
push eax
call ebx
test eax, eax
je 0x40b6e8
mov esi, dword [esp + 0x14]
imul esi, dword [esp + 0x18]
jmp 0x40b6e8
mov ebx, dword [0x4f67ec]
mov eax, dword [edi + 0xa]
test eax, eax
je 0x40b708
lea ecx, [esp + 0xc]
push ecx
push 0x18
push eax
call ebx
test eax, eax
je 0x40b708
mov eax, dword [esp + 0x14]
imul eax, dword [esp + 0x18]
add esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x18
ret

Function at 0x40d150
Capabilities:
Read clipboard data

Disassembly:
push esi
mov esi, dword [esp + 8]
movzx eax, si
push eax
call dword [0x4f6c54]
test eax, eax
jne 0x40d167
xor eax, eax
pop esi
ret
cmp esi, 2
pop esi
ret