joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408ee0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x10c
mov eax, dword [0x449390]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x110]
mov edx, dword [esp + 0x114]
cmp edx, 0x40
push ebx
push ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x120]
push esi
push edi
mov dword [esp + 0x14], eax
jle 0x408f26
mov edx, 0x40
mov dword [esp + 0x124], edx
xor ebp, ebp
test edx, edx
jle 0x408f5f
lea esi, [esp + 0x90]
lea edi, [esp + 0xd0]
sub esi, ecx
sub edi, ecx
mov ebp, edx
mov al, byte [ecx]
mov bl, al
xor bl, 0x5c
xor al, 0x36
mov byte [esi + ecx], bl
mov byte [edi + ecx], al
inc ecx
sub edx, 1
jne 0x408f40
cmp dword [esp + 0x124], 0x40
jge 0x408f89
mov esi, 0x40
sub esi, ebp
push esi
lea eax, [esp + ebp + 0xd4]
push 0x36
push eax
lea edi, [esp + ebp + 0x9c]
call fcn.00421a10
push esi
push 0x5c
push edi
call fcn.00421a10
add esp, 0x18
mov edi, dword [sym.imp.libaprutil_1.dll__apr_sha1_init_4]
lea ecx, [esp + 0x18]
push ecx
call edi
mov esi, dword [sym.imp.libaprutil_1.dll__apr_sha1_update_12]
push 0x40
lea edx, [esp + 0xd4]
push edx
lea eax, [esp + 0x20]
push eax
call esi
mov ecx, dword [esp + 0x12c]
mov edx, dword [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0x20]
push eax
call esi
mov ebx, dword [sym.imp.libaprutil_1.dll__apr_sha1_final_8]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x80]
push edx
call ebx
lea eax, [esp + 0x18]
push eax
call edi
push 0x40
lea ecx, [esp + 0x94]
push ecx
lea edx, [esp + 0x20]
push edx
call esi
push 0x14
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x20]
push ecx
call esi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
call ebx
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041ce9c
add esp, 0x10c
ret
Function at 0x409bd0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
mov edx, ebx
and edx, 1
xor esi, esi
xor eax, eax
or edx, esi
mov edx, ebx
je 0x409bf7
shrd edx, eax, 1
shr eax, 1
xor edx, 0xd7870f42
xor eax, 0xc96c5795
jmp 0x409bfd
shrd edx, eax, 1
shr eax, 1
mov esi, edx
shrd edx, eax, 1
and esi, 1
xor edi, edi
shr eax, 1
or esi, edi
je 0x409c19
xor edx, 0xd7870f42
xor eax, 0xc96c5795
mov esi, edx
shrd edx, eax, 1
and esi, 1
xor edi, edi
shr eax, 1
or esi, edi
je 0x409c35
xor edx, 0xd7870f42
xor eax, 0xc96c5795
mov esi, edx
shrd edx, eax, 1
and esi, 1
xor edi, edi
shr eax, 1
or esi, edi
je 0x409c51
xor edx, 0xd7870f42
xor eax, 0xc96c5795
mov esi, edx
shrd edx, eax, 1
and esi, 1
xor edi, edi
shr eax, 1
or esi, edi
je 0x409c6d
xor edx, 0xd7870f42
xor eax, 0xc96c5795
mov esi, edx
shrd edx, eax, 1
and esi, 1
xor edi, edi
shr eax, 1
or esi, edi
je 0x409c89
xor edx, 0xd7870f42
xor eax, 0xc96c5795
mov esi, edx
shrd edx, eax, 1
and esi, 1
xor edi, edi
shr eax, 1
or esi, edi
je 0x409ca5
xor edx, 0xd7870f42
xor eax, 0xc96c5795
mov esi, edx
shrd edx, eax, 1
and esi, 1
xor edi, edi
shr eax, 1
or esi, edi
je 0x409cc1
xor edx, 0xd7870f42
xor eax, 0xc96c5795
mov dword [ecx + ebx*8], edx
mov dword [ecx + ebx*8 + 4], eax
inc ebx
cmp ebx, 0x100
jb 0x409bd5
lea eax, [ecx + 0x1000]
mov ebx, 0x100
mov esi, dword [eax - 0x1000]
mov edx, dword [eax - 0xffc]
mov edi, esi
shrd esi, edx, 8
and edi, 0xff
xor esi, dword [ecx + edi*8]
shr edx, 8
xor edx, dword [ecx + edi*8 + 4]
mov dword [eax - 0x800], esi
mov dword [eax - 0x7fc], edx
mov edi, esi
shrd esi, edx, 8
and edi, 0xff
xor esi, dword [ecx + edi*8]
shr edx, 8
xor edx, dword [ecx + edi*8 + 4]
mov dword [eax], esi
mov dword [eax + 4], edx
mov edi, esi
shrd esi, edx, 8
and edi, 0xff
xor esi, dword [ecx + edi*8]
shr edx, 8
xor edx, dword [ecx + edi*8 + 4]
mov dword [eax + 0x800], esi
mov dword [eax + 0x804], edx
mov edi, esi
shrd esi, edx, 8
and edi, 0xff
xor esi, dword [ecx + edi*8]
shr edx, 8
xor edx, dword [ecx + edi*8 + 4]
mov dword [eax + 0x1000], esi
mov edi, esi
shrd esi, edx, 8
mov dword [eax + 0x1004], edx
and edi, 0xff
xor esi, dword [ecx + edi*8]
shr edx, 8
xor edx, dword [ecx + edi*8 + 4]
mov dword [eax + 0x1800], esi
mov edi, esi
shrd esi, edx, 8
mov dword [eax + 0x1804], edx
and edi, 0xff
xor esi, dword [ecx + edi*8]
shr edx, 8
xor edx, dword [ecx + edi*8 + 4]
mov dword [eax + 0x2000], esi
mov edi, esi
shrd esi, edx, 8
mov dword [eax + 0x2004], edx
and edi, 0xff
xor esi, dword [ecx + edi*8]
shr edx, 8
xor edx, dword [ecx + edi*8 + 4]
mov dword [eax + 0x2800], esi
mov dword [eax + 0x2804], edx
add eax, 8
sub ebx, 1
jne 0x409ce0
pop edi
pop esi
pop ebx
ret
Function at 0x409df0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebx, eax
mov eax, dword [0x44a398]
push esi
mov esi, dword [esp + 0x18]
push edi
test eax, eax
je 0x409e3a
mov ecx, dword [0x44a398]
inc dword [0x44a398]
cmp ecx, 1
jne 0x409e30
mov ecx, 0x510c80
call fcn.00409bd0
mov dword [0x44a398], 0
jmp 0x409e3a
mov edx, dword [0x44a398]
test edx, edx
jne 0x409e30
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
not eax
not edx
test esi, esi
je 0x409e7f
lea ebx, [ebx]
test bl, 7
je 0x409e7b
movzx ecx, byte [ebx]
xor ecx, eax
shrd eax, edx, 8
and ecx, 0xff
xor eax, dword [ecx*8 + 0x510c80]
shr edx, 8
xor edx, dword [ecx*8 + 0x510c84]
inc ebx
sub esi, 1
jne 0x409e50
mov dword [esp + 0x1c], esi
cmp esi, 8
jb 0x409f7f
shr esi, 3
mov dword [esp + 0x14], esi
nop
mov ecx, dword [ebx]
xor eax, ecx
mov ecx, dword [ebx + 4]
xor edx, ecx
mov ecx, edx
shr ecx, 0x10
and ecx, 0xff
mov edi, dword [ecx*8 + 0x511480]
mov ebp, dword [ecx*8 + 0x511484]
mov esi, edx
shr esi, 8
and esi, 0xff
xor edi, dword [esi*8 + 0x511c80]
xor ebp, dword [esi*8 + 0x511c84]
mov ecx, edx
and ecx, 0xff
xor edi, dword [ecx*8 + 0x512480]
xor ebp, dword [ecx*8 + 0x512484]
mov ecx, eax
mov esi, edx
shrd ecx, esi, 0x18
and ecx, 0xff
xor edi, dword [ecx*8 + 0x512c80]
xor ebp, dword [ecx*8 + 0x512c84]
shr esi, 0x18
mov ecx, eax
mov esi, edx
shrd ecx, esi, 0x10
and ecx, 0xff
xor edi, dword [ecx*8 + 0x513480]
xor ebp, dword [ecx*8 + 0x513484]
shr esi, 0x10
mov ecx, eax
mov esi, edx
shrd ecx, esi, 8
and ecx, 0xff
xor edi, dword [ecx*8 + 0x513c80]
xor ebp, dword [ecx*8 + 0x513c84]
shr edx, 0x18
xor edi, dword [edx*8 + 0x510c80]
xor ebp, dword [edx*8 + 0x510c84]
and eax, 0xff
xor ebp, dword [eax*8 + 0x514484]
xor edi, dword [eax*8 + 0x514480]
shr esi, 8
mov esi, dword [esp + 0x1c]
sub esi, 8
add ebx, 8
sub dword [esp + 0x14], 1
mov eax, edi
mov edx, ebp
mov dword [esp + 0x1c], esi
jne 0x409e90
test esi, esi
je 0x409fa9
movzx ecx, byte [ebx]
xor ecx, eax
shrd eax, edx, 8
and ecx, 0xff
xor eax, dword [ecx*8 + 0x510c80]
shr edx, 8
xor edx, dword [ecx*8 + 0x510c84]
inc ebx
sub esi, 1
jne 0x409f83
pop edi
pop esi
pop ebp
not eax
not edx
pop ebx
ret
Function at 0x40a39c
Capabilities:
Write file on windows

Disassembly:
cmp dword [0x556210], 0
push ebx
jne 0x40a3b7
mov dword [0x55620c], 0xe1000004
xor eax, eax
jmp 0x40a479
cmp dword [0x55621c], 0xffffffff
jne 0x40a3cc
mov dword [0x55620c], 0xe1000005
jmp 0x40a3b0
push esi
push edi
push dword [0x556244]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edi, 0x556234
push edi
mov esi, 0x555ff4
push esi
push 0x41
push dword [esp + 0x1c]
push dword [0x55621c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40a474
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test eax, eax
je 0x40a474
cmp eax, 0x3e5
jne 0x40a45d
push dword [0x555ff0]
push dword [0x556244]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40a449
cmp eax, 0x102
je 0x40a43d
cmp eax, 0xffffffff
je 0x40a45d
mov dword [0x55620c], 0xe100000b
jmp 0x40a464
mov dword [0x55620c], 0xe100000a
jmp 0x40a464
push 0
push esi
push edi
push dword [0x55621c]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x40a474
call ebx
mov dword [0x55620c], eax
push dword [0x55621c]
call dword [sym.imp.KERNEL32.dll_CancelIo]
xor eax, eax
jmp 0x40a477
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
ret 4

Function at 0x40a47d
Capabilities:
Read file on windows

Disassembly:
cmp dword [0x556210], 0
push ebp
push esi
jne 0x40a499
mov dword [0x55620c], 0xe1000004
xor eax, eax
jmp 0x40a581
cmp dword [0x556218], 0xffffffff
jne 0x40a4ae
mov dword [0x55620c], 0xe1000006
jmp 0x40a492
and dword [0x555ff8], 0
push ebx
push edi
push dword [0x556230]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ebx, 0x556220
push ebx
mov edi, 0x555ff8
push edi
push 0x41
push dword [esp + 0x20]
push dword [0x556218]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40a57c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
inc ebp
call esi
test eax, eax
je 0x40a56f
cmp eax, 0x3e5
je 0x40a508
call esi
mov dword [0x55620c], eax
jmp 0x40a578
push dword [0x555fec]
push dword [0x556230]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40a542
cmp eax, 0x102
je 0x40a536
cmp eax, 0xffffffff
je 0x40a55a
mov dword [0x55620c], 0xe100000b
jmp 0x40a561
mov dword [0x55620c], 0xe100000a
jmp 0x40a561
push 0
push edi
push ebx
push dword [0x556218]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x40a55a
xor ebp, ebp
jmp 0x40a561
call esi
mov dword [0x55620c], eax
push dword [0x556218]
call dword [sym.imp.KERNEL32.dll_CancelIo]
jmp 0x40a571
xor ebp, ebp
xor eax, eax
inc eax
cmp ebp, eax
jne 0x40a57f
xor eax, eax
jmp 0x40a57f
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
pop ebp
ret 4
Function at 0x40dc4a
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 + 0x58], ebx
test ebx, 0xffff0000
jne 0x40dc6e
cmp dword [edi + 0x54], 0
jne 0x40dc6e
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00410a51
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
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.0040dc0b
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 0x4160fd
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 0x416144
call fcn.00410a51
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x416144
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x416160
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00415c75
mov esi, eax
test edi, edi
je 0x41615e
test ebx, ebx
je 0x41615e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x417272
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x41729d
call fcn.00410a51
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x4172c0
push eax
push dword [esi + 4]
call fcn.004171f8
push esi
push eax
mov ecx, 0x50bbd4
call fcn.00416ea5
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x41ce9c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x449390]
jne 0x41cea6
repz ret
jmp fcn.0042494d
Function at 0x42dce7
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.004242b1
and dword [ebp - 4], 0
cmp dword [0x50c9ec], 0
mov ebx, eax
jne 0x42dd98
push 0x43c66c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x42de49
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43c660
push edi
call esi
test eax, eax
je 0x42de49
push eax
call fcn.0042423f
mov dword [esp], 0x43c650
push edi
mov dword [0x50c9ec], eax
call esi
push eax
call fcn.0042423f
mov dword [esp], 0x43c63c
push edi
mov dword [0x50c9f0], eax
call esi
push eax
call fcn.0042423f
mov dword [esp], str.GetUserObjectInformationW
push edi
mov dword [0x50c9f4], eax
call esi
push eax
call fcn.0042423f
pop ecx
mov dword [0x50c9fc], eax
test eax, eax
je 0x42dd98
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042423f
pop ecx
mov dword [0x50c9f8], eax
mov eax, dword [0x50c9f8]
cmp eax, ebx
je 0x42ddf0
cmp dword [0x50c9fc], ebx
je 0x42ddf0
push eax
call fcn.004242ba
push dword [0x50c9fc]
mov esi, eax
call fcn.004242ba
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42ddf0
test edi, edi
je 0x42ddf0
call esi
test eax, eax
je 0x42dde7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42dde7
test byte [ebp - 0xc], 1
jne 0x42ddf0
or dword [ebp + 0x10], 0x200000
jmp 0x42de29
mov eax, dword [0x50c9f0]
cmp eax, ebx
je 0x42de29
push eax
call fcn.004242ba
pop ecx
test eax, eax
je 0x42de29
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42de29
mov eax, dword [0x50c9f4]
cmp eax, ebx
je 0x42de29
push eax
call fcn.004242ba
pop ecx
test eax, eax
je 0x42de29
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x50c9ec]
call fcn.004242ba
pop ecx
test eax, eax
je 0x42de49
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42de4b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430467
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.004242b1
and dword [ebp - 4], 0
cmp dword [0x50ca20], 0
mov ebx, eax
jne 0x430518
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4305c9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4305c9
push eax
call fcn.0042423f
mov dword [esp], 0x43c650
push edi
mov dword [0x50ca20], eax
call esi
push eax
call fcn.0042423f
mov dword [esp], 0x43c63c
push edi
mov dword [0x50ca24], eax
call esi
push eax
call fcn.0042423f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x50ca28], eax
call esi
push eax
call fcn.0042423f
pop ecx
mov dword [0x50ca30], eax
test eax, eax
je 0x430518
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042423f
pop ecx
mov dword [0x50ca2c], eax
mov eax, dword [0x50ca2c]
cmp eax, ebx
je 0x430570
cmp dword [0x50ca30], ebx
je 0x430570
push eax
call fcn.004242ba
push dword [0x50ca30]
mov esi, eax
call fcn.004242ba
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x430570
test edi, edi
je 0x430570
call esi
test eax, eax
je 0x430567
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x430567
test byte [ebp - 0xc], 1
jne 0x430570
or dword [ebp + 0x10], 0x200000
jmp 0x4305a9
mov eax, dword [0x50ca24]
cmp eax, ebx
je 0x4305a9
push eax
call fcn.004242ba
pop ecx
test eax, eax
je 0x4305a9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4305a9
mov eax, dword [0x50ca28]
cmp eax, ebx
je 0x4305a9
push eax
call fcn.004242ba
pop ecx
test eax, eax
je 0x4305a9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x50ca20]
call fcn.004242ba
pop ecx
test eax, eax
je 0x4305c9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4305cb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4013d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xa
push dword [esp + 8]
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
je 0x40142f
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x40142f
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
mov edi, dword [esi + 4]
push dword [esi + 0x10]
add edi, esi
call fcn.004014f3
mov ebx, eax
test ebx, ebx
je 0x40142c
push ebx
push edi
call fcn.0040159c
cmp eax, dword [esi + 0x10]
jne 0x401420
push ebx
call fcn.00401705
push ebx
call fcn.00401a94
push ebx
call fcn.004014d8
pop edi
pop esi
pop ebx
xor eax, eax
ret 4

Function at 0x40159c
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov cl, byte [eax]
and dword [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
and dword [ebp - 4], esi
mov byte [ebx], cl
lea ecx, [ebx + 1]
inc eax
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
call fcn.00401553
test eax, eax
je 0x4016dd
call fcn.00401553
test eax, eax
je 0x401653
call fcn.00401553
test eax, eax
je 0x401614
push 4
xor esi, esi
pop edi
lea ecx, [ebp - 0x14]
call fcn.00401553
dec edi
lea esi, [eax + esi*2]
jne 0x4015e9
mov eax, dword [ebp - 0x10]
test esi, esi
je 0x401609
mov ecx, dword [ebp - 0x10]
sub eax, esi
mov al, byte [eax]
mov byte [ecx], al
jmp 0x40160c
mov byte [eax], 0
inc dword [ebp - 0x10]
jmp 0x4016ed
mov eax, dword [ebp - 0x14]
movzx esi, byte [eax]
inc dword [ebp - 0x14]
xor ecx, ecx
mov eax, esi
inc ecx
and eax, ecx
add eax, 2
shr esi, 1
je 0x40164b
test eax, eax
je 0x4016d5
mov ecx, dword [ebp - 0x10]
sub ecx, esi
mov edi, dword [ebp - 0x10]
mov dl, byte [ecx]
inc dword [ebp - 0x10]
inc ecx
dec eax
mov byte [edi], dl
jne 0x401638
jmp 0x4016d5
mov dword [ebp - 4], ecx
jmp 0x4016d5
call fcn.00401583
test esi, esi
jne 0x401688
cmp eax, 2
jne 0x401683
lea ecx, [ebp - 0x14]
call fcn.00401583
test eax, eax
je 0x4016d8
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
mov dl, byte [ecx]
inc dword [ebp - 0x10]
inc ecx
dec eax
mov byte [esi], dl
jne 0x401673
jmp 0x4016d8
sub eax, 3
jmp 0x40168b
sub eax, 2
mov ecx, dword [ebp - 0x14]
movzx esi, byte [ecx]
shl eax, 8
add esi, eax
inc dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
call fcn.00401583
cmp esi, 0x7d00
jb 0x4016aa
inc eax
cmp esi, 0x500
jb 0x4016b3
inc eax
cmp esi, 0x80
jae 0x4016be
add eax, 2
test eax, eax
je 0x4016d5
mov ecx, dword [ebp - 0x10]
sub ecx, esi
mov edi, dword [ebp - 0x10]
mov dl, byte [ecx]
inc dword [ebp - 0x10]
inc ecx
dec eax
mov byte [edi], dl
jne 0x4016c7
mov dword [ebp + 8], esi
xor esi, esi
inc esi
jmp 0x4016ef
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov al, byte [eax]
inc dword [ebp - 0x10]
inc dword [ebp - 0x14]
mov byte [ecx], al
xor esi, esi
cmp dword [ebp - 4], 0
je 0x4015c2
mov eax, dword [ebp - 0x10]
pop edi
pop esi
sub eax, ebx
pop ebx
leave
ret 8
Function at 0x401a94
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x401ab4
xor eax, eax
jmp 0x401c2f
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0x4550
je 0x401ad2
xor eax, eax
jmp 0x401c2f
push 4
push 0x2000
mov eax, dword [ebp - 0x20]
push dword [eax + 0x50]
mov eax, dword [ebp - 0x20]
push dword [eax + 0x34]
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401b0c
push 4
push 0x2000
mov eax, dword [ebp - 0x20]
push dword [eax + 0x50]
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401b19
xor eax, eax
jmp 0x401c2f
push 0x14
call fcn.004014f3
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x18]
and dword [eax + 0xc], 0
mov eax, dword [ebp - 0x18]
and dword [eax + 8], 0
mov eax, dword [ebp - 0x18]
and dword [eax + 0x10], 0
push 4
push 0x1000
mov eax, dword [ebp - 0x20]
push dword [eax + 0x50]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
push 4
push 0x1000
mov eax, dword [ebp - 0x20]
push dword [eax + 0x54]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 0x20]
add eax, dword [ecx + 0x54]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00401489
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 0x18]
mov dword [eax], ecx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x34], ecx
push dword [ebp - 0x18]
push dword [ebp - 0x20]
push dword [ebp + 8]
call fcn.0040171c
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x1c], ecx
je 0x401bc8
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.00401884
push dword [ebp - 0x18]
call fcn.00401903
test eax, eax
jne 0x401bd8
jmp 0x401c25
push dword [ebp - 0x18]
call fcn.004017bf
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x401c20
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x14], ecx
jne 0x401bff
jmp 0x401c25
push 0
push 1
push dword [ebp - 0xc]
call dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401c16
jmp 0x401c25
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 0x18]
jmp 0x401c2f
push dword [ebp - 0x18]
call fcn.00401a23
xor eax, eax
leave
ret 4
Function at 0x401c33
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 4], 0
push ebx
push dword [ebp + 8]
push 4
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401ccc
push edi
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push ebx
mov dword [ebp - 0x20], 0x1c
call sub.KERNEL32.DLL_Thread32First
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
je 0x401cc0
push esi
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x14], eax
jne 0x401caf
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp - 0x18]
je 0x401c8c
cmp eax, dword [ebp + 0xc]
jne 0x401caf
push eax
push 0
push 2
call dword [sym.imp.KERNEL32.DLL_OpenThread]
mov esi, eax
test esi, esi
je 0x401caf
push esi
call dword [sym.imp.KERNEL32.DLL_SuspendThread]
cmp eax, 0xffffffff
je 0x401cac
inc dword [ebp - 4]
push esi
call edi
lea eax, [ebp - 0x20]
push eax
push ebx
call sub.KERNEL32.DLL_Thread32Next
test eax, eax
jne 0x401c76
pop esi
jmp 0x401cc6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push ebx
call edi
pop edi
jmp 0x401cd2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov eax, dword [ebp - 4]
pop ebx
leave
ret 8