joyce8/EMBER2024-capa huggingface dataset:
Function at 0x491670
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xb880c8
push 0x4985c4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
xor esi, esi
mov edi, dword [ebp - 0x20]
push 1
push esi
push esi
mov eax, dword [ebp - 0x28]
push eax
call fcn.00496380
sub eax, esi
sbb edx, edi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sbb edx, esi
mov ecx, dword [ebp - 0x24]
add eax, ecx
adc edx, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x491820
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x9c
push eax
call esi
test eax, eax
jne 0x491861
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call esi
test eax, eax
je 0x4918ce
cmp dword [esp + 0x1c], 2
jne 0x4918ce
cmp dword [esp + 0x10], 5
jne 0x4918ce
cmp dword [esp + 0x14], 1
jne 0x4918ce
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4918b8
push str.IsWow64Process
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4918a9
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
jmp 0x4918b1
mov dword [esp + 8], 0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 8]
test eax, eax
je 0x4918ce
pop edi
mov eax, 1
pop esi
add esp, 0xa0
ret
pop edi
xor eax, eax
pop esi
add esp, 0xa0
ret

Function at 0x4a8eb0
Capabilities:
Get graphical window text

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

Function at 0x4aa5a2
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 0x4aa5e4
call fcn.004b037d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4aa5e4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4aa5db
xor eax, eax
jmp 0x4aa5ec
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004aa5f2
pop edi
pop esi
pop ebx
ret 4
Function at 0x4b08ad
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 0x4b08db
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b08f9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b0813
jmp 0x4b08f9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b08f9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b0813
test edi, edi
mov eax, edi
jne 0x4b08e3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401722
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4061a8
call fcn.00401aac
mov edi, 0x94
mov eax, edi
call fcn.004027b0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4082bc], ecx
mov eax, dword [esi + 4]
mov dword [0x4082c8], eax
mov edx, dword [esi + 8]
mov dword [0x4082cc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4082c0], esi
cmp ecx, 2
je 0x401782
or esi, 0x8000
mov dword [0x4082c0], esi
shl eax, 8
add eax, edx
mov dword [0x4082c4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4017bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4017bd
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4017d5
cmp eax, 0x20b
je 0x4017c2
mov dword [ebp - 0x1c], esi
jmp 0x4017e9
cmp dword [ecx + 0x84], 0xe
jbe 0x4017bd
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4017e3
cmp dword [ecx + 0x74], 0xe
jbe 0x4017bd
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0040275e
pop ecx
test eax, eax
jne 0x401815
cmp dword [0x4082a8], 1
jne 0x401802
call fcn.00401f13
push 0x1c
call fcn.00401d9c
push 0xff
call fcn.00401c01
pop ecx
pop ecx
call fcn.004026bc
mov dword [ebp - 4], esi
call fcn.00402511
test eax, eax
jge 0x40182e
push 0x1b
call fcn.004016fd
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x408834], eax
call fcn.004023ef
mov dword [0x4082a0], eax
call fcn.0040234d
test eax, eax
jge 0x401854
push 8
call fcn.004016fd
pop ecx
call fcn.0040211a
test eax, eax
jge 0x401865
push 9
call fcn.004016fd
pop ecx
push 1
call fcn.00401c31
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40187b
push eax
call fcn.004016fd
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004020bd
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40189c
movzx eax, word [ebp - 0x40]
jmp 0x40189f
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401680
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4018bd
push edi
call fcn.00401d5c
call fcn.00401d7e
jmp 0x4018ef
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00401ae7
ret
Function at 0x401c9b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4082fc], esi
push edi
jne 0x401cbb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x4082f8], esi
mov byte [0x4082f4], al
jne 0x401d21
mov ecx, dword [0x408828]
test ecx, ecx
je 0x401d02
mov eax, dword [0x408824]
sub eax, 4
cmp eax, ecx
jmp 0x401cfb
mov eax, dword [eax]
test eax, eax
je 0x401ced
call eax
mov eax, dword [0x408824]
sub eax, 4
cmp eax, dword [0x408828]
mov dword [0x408824], eax
jae 0x401ce5
mov eax, 0x40801c
mov esi, 0x408020
cmp eax, esi
mov edi, eax
jae 0x401d21
mov eax, dword [edi]
test eax, eax
je 0x401d1a
call eax
add edi, 4
cmp edi, esi
jb 0x401d12
mov eax, 0x408024
mov esi, 0x408028
cmp eax, esi
mov edi, eax
jae 0x401d40
mov eax, dword [edi]
test eax, eax
je 0x401d39
call eax
add edi, 4
cmp edi, esi
jb 0x401d31
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x401d5a
push dword [ebp + 8]
mov dword [0x4082fc], 1
call fcn.00401c01
pop ebp
ret

Function at 0x401d9c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x408034]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x408040]
je 0x401dd1
inc eax
cmp eax, 0x13
jb 0x401dc2
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x408040]
jne 0x401ef7
mov eax, dword [0x4082a8]
cmp eax, 1
je 0x401ecf
cmp eax, edx
jne 0x401e01
cmp dword [0x40803c], 1
je 0x401ecf
cmp ecx, 0xfc
je 0x401ef7
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401e37
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004028f0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00402b20
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x401e6b
mov eax, edi
push eax
call fcn.00402b20
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4061ec
push edi
call fcn.004029f0
add esp, 0x10
push edi
call fcn.00402b20
push dword [esi + 0x408044]
mov ebx, eax
call fcn.00402b20
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004027b0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004028f0
push edi
push ebx
call fcn.00402900
push 0x4061e8
push ebx
call fcn.00402900
push dword [esi + 0x408044]
push ebx
call fcn.00402900
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004027ed
add esp, 0x2c
jmp 0x401ef7
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x408044]
push dword [esi]
call fcn.00402b20
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004016ef
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4027ed
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x408414], ebx
push esi
push edi
jne 0x40286d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4028a8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x408414], eax
je 0x4028a8
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x408418], eax
call esi
cmp dword [0x4082bc], 2
mov dword [0x40841c], eax
jne 0x40286d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x408424], eax
je 0x40286d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x408420], eax
mov eax, dword [0x408420]
test eax, eax
je 0x4028b2
call eax
test eax, eax
je 0x402899
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x408424]
test eax, eax
je 0x402899
test byte [ebp - 8], 1
jne 0x4028b2
cmp dword [0x4082c8], 4
jb 0x4028ac
or byte [ebp + 0x12], 0x20
jmp 0x4028d1
xor eax, eax
jmp 0x4028e1
or byte [ebp + 0x12], 4
jmp 0x4028d1
mov eax, dword [0x408418]
test eax, eax
je 0x4028d1
call eax
mov ebx, eax
test ebx, ebx
je 0x4028d1
mov eax, dword [0x40841c]
test eax, eax
je 0x4028d1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x408414]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402c9a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x402cc8
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x402ccf
cmp ebx, dword [eax + 4]
jae 0x402ccf
xor eax, eax
jmp 0x402ebf
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x402ce0
xor eax, eax
inc eax
jmp 0x402ebe
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x402cf6
cmp ecx, edx
jae 0x402e3b
cmp dword [eax + 4], 0
je 0x402cff
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x402ce7
cmp dword [ebp + 8], 0
je 0x402d21
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x402e3b
cmp eax, esi
jae 0x402e3b
mov eax, dword [0x408428]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x402d46
cmp dword [esi*4 + 0x408430], edi
je 0x402e3f
inc esi
cmp esi, eax
jl 0x402d34
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x402ebb
cmp dword [ebp - 8], 0x1000000
jne 0x402ebb
test byte [ebp - 0xc], 0xcc
je 0x402dc4
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x402ebb
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x402ebb
cmp word [eax + 0x18], 0x10b
jne 0x402ebb
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x402ebb
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x402dc4
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x402dc4
test byte [ecx + 0x27], 0x80
jne 0x402e3b
push 1
push 0x408470
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x402cd8
mov ecx, dword [0x408428]
test ecx, ecx
mov edx, ecx
jle 0x402df8
lea eax, [ecx*4 + 0x40842c]
cmp dword [eax], edi
je 0x402df8
dec edx
sub eax, 4
test edx, edx
jg 0x402dec
test edx, edx
jne 0x402e29
push 0xf
pop ebx
cmp ecx, ebx
jg 0x402e05
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x402e1d
lea eax, [edx*4 + 0x408430]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x402e0b
cmp ecx, 0x10
jge 0x402e29
inc ecx
mov dword [0x408428], ecx
push 0
push 0x408470
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x402cd8
xor eax, eax
jmp 0x402ebe
test esi, esi
jle 0x402cd8
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x408470
call ebx
test eax, eax
jne 0x402cd8
cmp dword [esi*4 + 0x408430], edi
je 0x402e95
mov eax, dword [0x408428]
lea esi, [eax - 1]
test esi, esi
jl 0x402e83
cmp dword [esi*4 + 0x408430], edi
je 0x402e7f
dec esi
jns 0x402e73
test esi, esi
jge 0x402e93
cmp eax, 0x10
jge 0x402e8e
inc eax
mov dword [0x408428], eax
lea esi, [eax - 1]
jmp 0x402e95
je 0x402ead
xor ecx, ecx
test esi, esi
jl 0x402ead
lea eax, [ecx*4 + 0x408430]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x402e9b
push 0
push 0x408470
call ebx
jmp 0x402cd8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404fac
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004027b0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405047
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4082bc]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x405047
cmp eax, 1
je 0x405068
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405047
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x405014
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x405043
xor eax, eax
inc eax
jmp 0x405087
cmp edi, eax
jae 0x40504b
xor eax, eax
jmp 0x405087
cmp eax, esi
jae 0x405052
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4082bc]
jmp 0x40506b
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ea38
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40eb0d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40eb28
push ebx
push 0x40eb38
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040513c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403250
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404d24
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x40eab8
mov al, 0x6a
call fcn.0040e658
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040ea0c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x40eac1
call fcn.0040ea0c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eb14
lea eax, [ebp - 4]
call fcn.00404c88
ret

Function at 0x40ec28
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ecf3
jmp 0x40ece7
cmp dword [esi + 0x10], 0x1000
jne 0x40ecd3
test byte [esi + 0x15], 1
jne 0x40ecd3
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x40ec84
cmp ebp, 2
je 0x40ec84
cmp ebp, 0x10
je 0x40ec84
cmp ebp, 0x20
jne 0x40eca0
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40eca0
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x40ecb1
mov eax, dword [esi]
add eax, ebx
call fcn.0040ec20
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x40eca4
cmp byte [esp + 4], 0
je 0x40ecd3
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ecf3
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x40ec59
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x403bf8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x401707
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
push edi
mov ecx, dword [esi + 0x3c]
mov eax, dword [ecx + esi + 0x78]
lea edi, [eax + esi]
mov ecx, dword [ecx + esi + 0x7c]
mov dword [ebp - 4], ecx
mov eax, dword [edi + 0x20]
lea eax, [eax + ebx*4]
mov eax, dword [eax + esi]
add eax, esi
push eax
push dword [ebp + 0xc]
call fcn.004016da
pop ecx
test eax, eax
pop ecx
jne 0x40176e
xor ebx, ebx
cmp dword [edi + 0x18], ebx
jbe 0x401767
mov eax, dword [edi + 0x20]
lea eax, [eax + ebx*4]
mov eax, dword [eax + esi]
add eax, esi
push eax
push dword [ebp + 0xc]
call fcn.004016da
pop ecx
test eax, eax
pop ecx
jne 0x40176e
inc ebx
cmp ebx, dword [edi + 0x18]
jb 0x401747
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x1c]
lea eax, [eax + ebx*2]
movzx eax, word [eax + esi]
lea eax, [ecx + eax*4]
mov eax, dword [eax + esi]
add eax, esi
jmp 0x401769
Function at 0x484610
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x51962b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00509bb3
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x484692
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0050725a
mov eax, dword [eax]
push 0x64fe70
push eax
call fcn.004f9994
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00509e3e
test bl, bl
je 0x484692
push 0x64fe70
lea ecx, [esp + 0xc]
call fcn.0050a21a
push 0x64fe7c
lea ecx, [esp + 0xc]
call fcn.0050a21a
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4846ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00509e3e
jmp 0x484799
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x484752
lea edx, [esp + 0x7c]
push 0x64fe78
push edx
call fcn.004f9994
add esp, 8
test eax, eax
je 0x484752
lea eax, [esp + 0x7c]
push 0x64fe74
push eax
call fcn.004f9994
add esp, 8
test eax, eax
je 0x484752
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4846e2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00509e3e
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x484f90
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 0x484ff2
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 0xc