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

Disassembly:
sub esp, 0x230
mov eax, dword [0x1d6750]
xor eax, esp
mov dword [esp + 0x22c], eax
mov eax, dword [esp + 0x238]
push ebx
mov ebx, dword [esp + 0x240]
push ebp
push esi
push edi
mov edi, dword [esp + 0x244]
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x3e]
push edx
mov dword [esp + 0x1c], eax
mov word [esp + 0x40], cx
call fcn.001a76a0
movzx esi, word [esp + 0x25c]
lea eax, [esp + 0x20]
push esi
push eax
mov edx, 0x1d650c
call fcn.001a58d0
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0x14
push ebx
push 0x104
lea ecx, [esp + 0x3c]
push ecx
push 0x1d7d18
push edi
lea edx, [esp + 0x28]
push edx
call ebp
test eax, eax
jne 0x1a6176
and esi, 0x3ff
lea eax, [esp + 0x14]
push esi
push eax
mov edx, str.STRINGS._04X
call fcn.001a58d0
add esp, 8
push ebx
push 0x104
lea ecx, [esp + 0x3c]
push ecx
push 0x1d7d1c
push edi
lea edx, [esp + 0x28]
push edx
call ebp
test eax, eax
jne 0x1a6176
push ebx
push 0x104
lea eax, [esp + 0x3c]
push eax
push 0x1d7d20
push edi
push str.STRINGS
call ebp
test eax, eax
je 0x1a6196
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x34]
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x1a6182
mov eax, 1
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.001a771a
add esp, 0x230
ret

Function at 0x1a771a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1d6750]
jne 0x1a7724
repz ret
jmp fcn.001a910b
Function at 0x1ba8ac
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1d6750]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.001b56ab
and dword [ebp - 0x14], 0
cmp dword [0x1d898c], 0
mov dword [ebp - 0x18], eax
jne 0x1ba95f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1baa07
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1baa07
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x1d12b8
push ebx
mov dword [0x1d898c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1d8990], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1d8994], eax
call edi
push eax
call esi
mov dword [0x1d899c], eax
test eax, eax
je 0x1ba95f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1d8998], eax
mov eax, dword [0x1d8998]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1ba9b8
cmp dword [0x1d899c], ecx
je 0x1ba9b8
push eax
call esi
push dword [0x1d899c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1ba9b8
test ebx, ebx
je 0x1ba9b8
call edi
test eax, eax
je 0x1ba9af
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1ba9af
test byte [ebp - 8], 1
jne 0x1ba9b8
or dword [ebp + 0x10], 0x200000
jmp 0x1ba9eb
mov eax, dword [0x1d8990]
cmp eax, dword [ebp - 0x18]
je 0x1ba9eb
push eax
call esi
test eax, eax
je 0x1ba9eb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1ba9eb
mov eax, dword [0x1d8994]
cmp eax, dword [ebp - 0x18]
je 0x1ba9eb
push eax
call esi
test eax, eax
je 0x1ba9eb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1d898c]
call esi
test eax, eax
je 0x1baa07
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1baa09
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.001a771a
leave
ret
Function at 0x40c5d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push 4
mov edx, dword [ecx + 0x1c]
mov ebx, dword [ecx + 4]
mov dword [edi + 8], 0x40
mov eax, 0x80
mov dword [edi + 4], eax
push eax
mov ecx, dword [edx + 0xb74]
mov dword [edi + 0xc], ecx
mov dword [edi], ebx
mov dword [edi + 0xa4], eax
mov ecx, dword [edx + 4]
mov edx, ecx
shr edx, 0x1f
add ecx, edx
sar ecx, 1
mov dword [edi + 0xb0], ecx
call fcn.0042ada5
push 0x80
mov dword [edi + 0x24], eax
lea eax, [edi + 0x10]
push eax
call fcn.0040e590
add esp, 0x10
fld qword [0x43a900]
fstp st(0)
fld qword [0x43a908]
fstp st(0)
xor eax, eax
mov esi, eax
mov dword [esp + 0x18], esi
fild dword [esp + 0x18]
fdiv qword [0x43a908]
fmul qword [0x43a900]
fstp qword [esp]
call fcn.0041f350
mov edx, dword [edi + 0x24]
fstp dword [edx + esi*4]
mov ecx, dword [edi + 0x24]
fld dword [ecx + esi*4]
fmul st(0)
fstp dword [ecx + esi*4]
inc esi
cmp esi, 0x80
jl 0x40c64a
fld qword [0x43a900]
fstp st(0)
fld qword [0x43a910]
fstp st(0)
fld1
fstp dword [esp + 0x10]
mov dword [edi + 0x28], 2
mov dword [edi + 0x3c], 5
mov dword [esp + 8], ebx
mov eax, 4
mov dword [edi + 0x58], 9
mov dword [edi + 0x2c], eax
mov dword [edi + 0x38], eax
mov edx, 6
mov dword [edi + 0x68], 0xd
mov dword [edi + 0x48], edx
mov dword [edi + 0x4c], edx
mov ecx, 8
mov dword [edi + 0x78], 0x11
mov dword [edi + 0x5c], ecx
mov dword [edi + 0x6c], ecx
mov dword [edi + 0x7c], ecx
mov dword [edi + 0x88], 0x16
mov dword [edi + 0x8c], ecx
xor edx, edx
mov dword [esp + 0xc], edx
mov ebx, edx
mov esi, dword [ebx + edi + 0x2c]
lea edx, [esi*4]
push edx
call fcn.0042a60c
pop ecx
mov dword [ebx + edi + 0x30], eax
test esi, esi
jle 0x40c77b
mov eax, dword [ebx + edi + 0x30]
mov dword [esp + 0x18], esi
fild dword [esp + 0x18]
fstp qword [esp + 0x20]
mov dword [esp + 0x14], esi
xor ecx, ecx
mov dword [esp + 0x28], ebx
mov ebx, eax
mov esi, ecx
mov edi, ecx
mov dword [esp + 0x18], edi
fild dword [esp + 0x18]
fadd qword [0x43a910]
fdiv qword [esp + 0x20]
fmul qword [0x43a900]
fstp qword [esp]
call fcn.0041f350
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x28]
fstp dword [ebx + esi]
mov ebx, dword [eax + edx + 0x30]
fld dword [eax + edx + 0x34]
fadd dword [ebx + esi]
fstp dword [eax + edx + 0x34]
add esi, 4
inc edi
cmp edi, dword [esp + 0x14]
jl 0x40c733
mov ebx, eax
mov edi, dword [ebp + 8]
fld dword [ebx + edi + 0x34]
fdivr dword [esp + 0x10]
mov edx, dword [esp + 0xc]
fstp dword [ebx + edi + 0x34]
add ebx, 0x10
inc edx
cmp edx, 7
mov dword [esp + 0xc], edx
jl 0x40c6f9
mov ebx, dword [esp + 8]
push 0x90
lea eax, [ebx*8]
sub eax, ebx
push eax
call fcn.0042ada5
push 4
push dword [edi + 0xa4]
mov dword [edi + 0x98], eax
call fcn.0042ada5
mov dword [edi + 0xa0], eax
add esp, 0x3c
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x42e9fd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x468c88
cmp edx, dword [eax]
je 0x42ea1f
add eax, 8
inc ecx
cmp eax, 0x468d18
jl 0x42ea10
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x468c88]
jne 0x42eb4d
mov eax, dword [0x469b5c]
cmp eax, 1
je 0x42eb27
test eax, eax
jne 0x42ea50
cmp dword [0x4689a4], 1
je 0x42eb27
cmp edx, 0xfc
je 0x42eb4d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42ea87
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0042f920
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0042b7e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x42eaca
lea eax, [ebp - 0x1a4]
push eax
call fcn.0042b7e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x45aca4
push edi
call fcn.00430620
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0042f920
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0042f930
lea eax, [ebp - 0xa0]
push 0x45ac84
push eax
call fcn.0042f930
push dword [esi + 0x468c8c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0042f930
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00430596
add esp, 0x2c
pop edi
jmp 0x42eb4d
lea eax, [ebp + 8]
lea esi, [esi + 0x468c8c]
push 0
push eax
push dword [esi]
call fcn.0042b7e0
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 0x402ca6
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [0x40f548], 1
mov esi, 0x40f530
mov dword [0x40f540], ebx
mov dword [0x40f530], ebx
mov edi, 0x40f558
mov dword [0x40f54c], ebx
mov dword [0x40f558], 0x4014a4
mov dword [0x40f020], esi
mov ecx, dword [edi]
lea eax, [esi + 8]
push eax
push ebx
push ebx
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
push eax
push 1
push ecx
push esi
mov dword [esp + 0x30], ebx
lea edi, [edi + 4]
push 0x402c00
mov dword [esi + 0x20], ecx
call dword [sym.imp.ADVAPI32.dll_RegisterTraceGuidsW]
mov esi, dword [esi]
test esi, esi
jne 0x402cec
cmp byte [0x40f508], bl
je 0x402d29
or edi, 0xffffffff
jmp 0x402d50
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.00405102
cmp al, 1
jne 0x402d4c
push ecx
call fcn.004051c5
mov edi, eax
jmp 0x402d50
mov edi, dword [esp + 0x10]
mov esi, dword [0x40f020]
cmp esi, 0x40f020
je 0x402dc2
test byte [esi + 0x1c], 1
je 0x402d8e
cmp byte [esi + 0x19], 2
jb 0x402d8e
call fcn.0040728f
push eax
mov eax, dword [0x40f020]
mov edx, 0x401cbc
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xa
pop ecx
call fcn.0040730c
mov esi, dword [0x40f020]
cmp esi, 0x40f020
je 0x402dc2
jmp 0x402db4
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
je 0x402db2
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_UnregisterTraceGuids]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov esi, dword [esi]
test esi, esi
jne 0x402d98
mov dword [0x40f020], 0x40f020
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405946
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x40f590], eax
test eax, eax
je 0x40598d
lea eax, [ebp - 4]
push eax
push esi
push 0x40f560
push 0x4059a0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x40598b
push dword [0x40f590]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407cf2
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
push edi
test edx, edx
je 0x407d4e
xor eax, eax
mov edi, edx
mov dword [ebp - 4], eax
mov esi, eax
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 8], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x407d16
sub ecx, dword [ebp - 8]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x407d0e
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004092aa
int3
Function at 0x408305
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x40f008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x220]
push esi
push edi
push eax
mov edi, ecx
xor ecx, ecx
push 0x2001f
push ecx
push ebx
push dword [edi]
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x220], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x408412
cmp dword [ebp - 0x218], esi
je 0x408372
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x218], eax
test esi, esi
jne 0x408412
lea ecx, [ebp - 0x228]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push esi
push eax
jmp 0x4083d9
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x218]
call fcn.00408305
mov esi, eax
test esi, esi
jne 0x408412
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4083a2
cmp dword [ebp - 0x218], 0
je 0x408408
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x218], esi
push ebx
mov ecx, edi
call fcn.0040849b
mov esi, eax
cmp dword [ebp - 0x218], 0
je 0x408427
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040cb50
mov esp, ebp
pop ebp
ret 4
Function at 0x408e6d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x42c
mov eax, 0x40dabf
call fcn.0040d75f
mov edx, dword [ebp + 0x10]
xor esi, esi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x424], edx
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x420], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x42c], edi
test edi, edi
jne 0x408ece
call fcn.0040791a
mov esi, eax
jmp 0x408fe6
push esi
push ebx
push dword [ebp - 0x424]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
jne 0x408eed
call fcn.0040791a
jmp 0x408fdd
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x408ee3
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x408f39
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x408f2f
lea ecx, [ebp - 0x420]
call fcn.004078cd
mov esi, 0x8007000e
jmp 0x408fff
push 2
push eax
mov byte [ebp - 4], 2
call fcn.00407d89
cmp eax, 0x400
jbe 0x408f60
push eax
lea ecx, [ebp - 0x420]
call fcn.004078ed
mov eax, dword [ebp - 0x420]
jmp 0x408f6c
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x420], eax
mov dword [ebp - 4], 1
jmp 0x408f96
test eax, eax
jne 0x408fa1
mov esi, 0x8007000e
jmp 0x408fdf
push ebx
push eax
push ebx
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x408ee3
mov eax, dword [ebp - 0x420]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x438]
push dword [ebp - 0x420]
call fcn.00408d15
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x408fff
lea ecx, [ebp - 0x420]
call fcn.004078cd
lea ecx, [ebp - 0x430]
call fcn.00409274
mov eax, esi
call fcn.0040d69d
ret 0x10
Function at 0x40b9d7
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov eax, ecx
push edi
mov dword [ebp - 4], eax
mov esi, 0x104
lea ebx, [eax + 0x7c]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, eax
test edi, edi
jne 0x40ba41
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40ba12
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x40ba74
mov eax, dword [0x40f020]
cmp eax, 0x40f020
je 0x40bb1c
cmp byte [eax + 0x19], 2
jb 0x40baf5
push esi
push 0x402650
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x2c
jmp 0x40bae5
cmp edi, esi
jb 0x40ba74
mov esi, 0x8007006f
mov eax, dword [0x40f020]
cmp eax, 0x40f020
je 0x40bb1c
cmp byte [eax + 0x19], 2
jb 0x40baf5
push esi
push 0x40268c
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x2d
jmp 0x40bae5
mov eax, dword [ebp - 4]
cmp word [eax + edi*2 + 0x7a], 0x5c
je 0x40bab3
push 0x40201c
mov ecx, ebx
call fcn.0040bcbb
mov esi, eax
test esi, esi
jns 0x40bab3
mov eax, dword [0x40f020]
cmp eax, 0x40f020
je 0x40bb1c
cmp byte [eax + 0x19], 2
jb 0x40baf5
push esi
push 0x4026c0
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x2e
jmp 0x40bae5
push 0x402710
mov ecx, ebx
call fcn.0040bcbb
mov esi, eax
test esi, esi
jns 0x40baf0
mov eax, dword [0x40f020]
cmp eax, 0x40f020
je 0x40bb1c
cmp byte [eax + 0x19], 2
jb 0x40baf5
push esi
push 0x40272c
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x2f
mov edx, 0x402770
pop ecx
call fcn.0040953b
mov eax, dword [0x40f020]
cmp eax, 0x40f020
je 0x40bb1c
test byte [eax + 0x1c], 4
je 0x40bb1c
cmp byte [eax + 0x19], 4
jb 0x40bb1c
push ebx
push dword [eax + 0x14]
mov edx, 0x402770
push dword [eax + 0x10]
push 0x30
pop ecx
call fcn.004094bd
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d24f
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x40e3a8
call fcn.0040d054
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40d2af
cmp eax, 0xffffffff
je 0x40d2af
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40d2a8
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40d2a8
cmp edx, 0x10000000
jae 0x40d2a8
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x40d2a5
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.0040d099
ret 4

Function at 0x40d310
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40d34e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40d346
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40d350
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40d336
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40d430
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x40d446
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x40d461
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x42d3e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
or ebp, 0xffffffff
jmp 0x42d402
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42d409
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42d3f8
mov eax, 1
add ebx, ebx
jne 0x42d41b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42d410
jne 0x42d42c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42d410
xor ecx, ecx
sub eax, 3
jb 0x42d440
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42d4b2
mov ebp, eax
add ebx, ebx
jne 0x42d44b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42d458
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42d47c
inc ecx
add ebx, ebx
jne 0x42d468
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42d45d
jne 0x42d479
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42d45d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42d49c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42d48d
jmp 0x42d3fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42d49c
add edi, ecx
jmp 0x42d3fe
pop esi
mov edi, esi
mov ecx, 0x758
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42d4ba
cmp byte [edi], 0xc
jne 0x42d4ba
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 eax, ebx
loop 0x42d4bf
lea edi, [esi + 0x2b000]
mov eax, dword [edi]
or eax, eax
je 0x42d537
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2f954]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2fa1c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42d4ec
mov ecx, edi
jns 0x42d51b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2fa20]
or eax, eax
je 0x42d531
mov dword [ebx], eax
add ebx, 4
jmp 0x42d509
call dword [esi + 0x2fa24]
popal
jmp 0x41939e
Function at 0x4040f4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
mov edx, dword [0x4037bc]
call fcn.0040242c
xor eax, eax
push ebp
push 0x404205
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edi, eax
mov esi, 0x10000000
add esi, 0x10000
push 0x40
push 0x3000
mov eax, dword [edi + 0x50]
push eax
mov eax, dword [edi + 0x34]
add eax, esi
push eax
call sub.kernel32.dll_VirtualAlloc
mov ebx, eax
test ebx, ebx
je 0x40418d
push 0x8000
push 0
push ebx
call sub.kernel32.dll_VirtualFree
push 0x40
push 0x3000
mov eax, dword [edi + 0x50]
push eax
mov eax, dword [edi + 0x34]
add eax, esi
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov ebx, eax
test ebx, ebx
jne 0x404199
cmp esi, 0x30000000
jbe 0x404142
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 8]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00403ec0
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4041e9
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x10], edx
lea edx, [ebp - 0x18]
push edx
mov edx, dword [ebp - 0x28]
push edx
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteProcessMemory
push 8
push 0
lea ecx, [ebp - 0x14]
mov edx, 0x4040cc
mov eax, dword [ebp - 4]
call fcn.004038ac
test eax, eax
je 0x4041e9
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40420c
lea eax, [ebp - 0x2c]
mov edx, dword [0x4037bc]
call fcn.004024f0
ret

Function at 0x4042dc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00401f38
xor eax, eax
push ebp
push 0x40434b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00401d50
mov esi, eax
test esi, esi
jle 0x40432b
mov ebx, 1
lea eax, [ebp - 4]
call fcn.00401f9c
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx - 1]
xor dl, 0xbc
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x404311
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00401b14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404352
lea eax, [ebp - 4]
call fcn.00401ac0
ret

Function at 0x405124
Capabilities:
Reference the vmware io port

Disassembly:
xor eax, eax
push 0x40514c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x564d5868
mov ebx, 0x3c6cf712
mov ecx, 0xa
mov dx, 0x5658
in eax, dx
mov eax, 1
jmp 0x40515f
xor ebx, ebx
pop dword fs:[ebx]
add esp, 4
ret

Function at 0x405168
Capabilities:
Check for vm using instruction vpcext

Disassembly:
push ebp
mov ecx, 0x4051b2
mov ebp, esp
push ebx
push ecx
push dword fs:[0]
mov dword fs:[0], esp
mov ebx, 0
mov eax, 1
invalid