joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40001d00
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 1
call fcn.40001000
call fcn.4000b610
not eax
mov dword [ebp - 0xc], eax
call fcn.40001000
call fcn.4000b5e0
mov dword [ebp - 4], eax
call fcn.40001000
call fcn.400019f0
call fcn.4000dad0
movzx eax, al
test eax, eax
jne 0x40001d4a
push 0x7d20
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, 0x80000000
sub ecx, dword [ebp + 0xc]
cmp dword [ebp + 8], ecx
jbe 0x40001d5e
xor al, al
jmp 0x40001de4
push dword fs:[0]
sub esp, 0x40
push esp
call fcn.40001bc0
add dword [esp + 0x28], 0x40
mov eax, 0x40001dc8
mov dword ds:[esp + 0x18], eax
call fcn.4000bc30
mov edx, dword [ebp + 8]
and edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
jmp 0x40001d96
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx - 1]
and eax, dword [ebp - 0xc]
cmp dword [ebp - 0x10], eax
ja 0x40001dc6
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 0
jle 0x40001dbb
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x40001dc4
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 8], eax
jmp 0x40001d8d
jmp 0x40001dcf
call fcn.4000bca0
pop dword fs:[0]
xor eax, eax
cmp dword [ebp - 8], 0
setg al
mov esp, ebp
pop ebp
ret 8
Function at 0x40001df0
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push esi
push edi
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call fcn.4000a210
mov ecx, dword [0x40477438]
add esp, 4
push 0x20
push 0
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40001e3a
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov esi, eax
jmp 0x40001e3c
xor esi, esi
push 0x20
push 0
push esi
call fcn.40001a40
add esp, 0xc
mov dword [esi + 0x14], 0xffffffff
test edi, edi
je 0x40001f07
push ebp
mov ebp, dword [esp + 0xc]
push edi
push ebp
call fcn.4000a350
add esp, 8
cmp eax, 0xffffffff
je 0x40001f00
push ebx
mov bl, 1
add eax, 0xffffffba
cmp eax, 0x32
ja case.0x40001e82.71
movzx edx, byte [eax + 0x40001f3c]
jmp dword [edx*4 + 0x40001f10]
mov eax, dword [0x4047724c]
mov dword [esi + 4], eax
jmp case.0x40001e82.71
mov ecx, dword [0x4047724c]
mov dword [esi + 8], ecx
jmp case.0x40001e82.71
mov edx, dword [0x4047724c]
mov dword [esi], edx
jmp case.0x40001e82.71
call fcn.40007ed0
mov dword [esi + 0xc], eax
jmp case.0x40001e82.71
call fcn.40007ed0
mov dword [esi + 0x10], eax
jmp case.0x40001e82.71
call fcn.40007ed0
mov dword [esi + 0x14], eax
jmp case.0x40001e82.71
call fcn.40007ed0
mov dword [esi + 0x18], eax
jmp case.0x40001e82.71
mov byte [esi + 0x1c], bl
jmp case.0x40001e82.71
mov byte [esi + 0x1d], bl
jmp case.0x40001e82.71
push 0
mov byte [esi + 0x1e], bl
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
push ebp
call fcn.4000a350
add esp, 8
cmp eax, 0xffffffff
jne 0x40001e73
pop ebx
pop ebp
pop edi
mov eax, esi
pop esi
pop ecx
ret
pop ebp
pop edi
mov eax, esi
pop esi
pop ecx
ret
pop edi
mov eax, esi
pop esi
pop ecx
ret

Function at 0x40002140
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [edi + 0x34]
mov ecx, dword [esi + 0x10]
push ebp
push esi
push ebx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push edx
mov dword [esp + 0x14], ecx
mov ecx, dword [edi + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x400021b7
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0xea
je 0x4000219c
cmp eax, 0x3e5
jne 0x40002193
push 0xffffffffffffffff
push 0
lea edx, [esp + 0xc]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x4000219c
xor al, al
pop ebp
add esp, 8
ret 4
mov eax, dword [edi + 0x28]
push 0
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x400021b7
call ebp
cmp eax, 0xea
jne 0x40002193
mov al, 1
pop ebp
add esp, 8
ret 4
Function at 0x40002504
Capabilities:
Create pipe
Create thread

Disassembly:
sub esp, 0x804
mov eax, dword [0x4006f01c]
xor eax, esp
mov dword [esp + 0x800], eax
push esi
mov esi, ecx
cmp dword [esi + 0x34], 0
jne 0x400026d0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
call edi
push 0
push 0
push 1
push 0
mov dword [esi + 0x34], eax
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x38], eax
call edi
cmp dword [esi + 0x34], 0
mov dword [esi + 0x3c], eax
je 0x400026b4
cmp dword [esi + 0x38], 0
je 0x400026b4
test eax, eax
je 0x400026b4
cmp byte [esi + 0x60], 0
je 0x400025d6
mov eax, dword [esi + 0x58]
push eax
push str..pipe_sUp
push 0x3ff
lea ecx, [esp + 0x14]
call fcn.40007560
mov edi, dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
add esp, 0xc
push 0
push 0x64
push 0x1000
push 0
push 1
push 0
push 0x40080001
lea ecx, [esp + 0x24]
push ecx
call edi
mov edx, dword [esi + 0x58]
push edx
push str..pipe_sDown
push 0x3ff
lea ecx, [esp + 0x14]
mov dword [esi + 0x28], eax
call fcn.40007560
add esp, 0xc
push 0
push 0x64
push 0
push 0x1000
push 1
push 0
push 0x80002
lea eax, [esp + 0x24]
push eax
call edi
jmp 0x4000264b
cmp byte [esi + 0x61], 0
je 0x4000264e
mov ecx, dword [esi + 0x58]
push ecx
push str..pipe_sDown
push 0x3ff
lea ecx, [esp + 0x14]
call fcn.40007560
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
add esp, 0xc
push 0
push 0x40000000
push 3
push 0
push 0
push 0x80000000
lea edx, [esp + 0x20]
push edx
call edi
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x58]
push eax
push str..pipe_sUp
push 0x3ff
lea ecx, [esp + 0x14]
call fcn.40007560
add esp, 0xc
push 0
push 0x40000000
push 3
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x20]
push ecx
call edi
mov dword [esi + 0x2c], eax
or eax, 0xffffffff
cmp dword [esi + 0x28], eax
je 0x400026ad
cmp dword [esi + 0x2c], eax
je 0x400026ad
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push 0
push 0
push esi
mov ecx, esi
call eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x30], eax
test eax, eax
je 0x40002691
mov ecx, dword [esi + 0x38]
push 0x7d0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x400026b4
pop edi
mov eax, 0x7d00
pop esi
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.4001a06e
add esp, 0x804
ret
mov dword [esi + 0x30], 0
pop edi
mov eax, 0x7dff
pop esi
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.4001a06e
add esp, 0x804
ret
mov ecx, dword [esp + 0x804]
pop esi
xor ecx, esp
mov eax, 0x7d1e
call fcn.4001a06e
add esp, 0x804
ret
Function at 0x40002783
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
cmp dword [esi + 0x2c], 0xffffffff
jne 0x40002798
mov eax, 0x7d13
pop esi
add esp, 0x1c
ret 0xc
mov ecx, dword [esp + 0x2c]
push ebx
push ebp
xor eax, eax
push edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x3c]
lea ebp, [esi + 0x40]
push ebp
mov ebx, 0x7d00
mov dword [esp + 0x2c], eax
mov dword [edi + 8], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 0x2c]
lea eax, [esp + 0x34]
push eax
push ecx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40002851
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x400027f6
mov ebx, 0x7dff
jmp 0x40002851
mov eax, dword [esp + 0x34]
push 0xffffffffffffffff
test eax, eax
je 0x40002830
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
push ecx
push 2
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x4000283b
mov edx, dword [esi + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov ebx, 0x7d21
jmp 0x40002851
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x2c]
push 0
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x30]
cmp ecx, dword [edi]
je 0x4000286d
mov eax, 0x7d26
cmp ebx, 0x7d21
jne 0x4000286f
mov eax, ebx
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x1c
ret 0xc

Function at 0x40002880
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x38]
xor ebx, ebx
cmp eax, ebx
je 0x40002909
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push eax
call edi
cmp eax, 0x102
je 0x40002908
mov eax, dword [esi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x30]
push 0x2710
push ecx
call edi
cmp eax, 0x102
jne 0x400028c7
mov edx, dword [esi + 0x30]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esi + 0x38]
push ecx
mov dword [esi + 0x34], ebx
call edi
mov edx, dword [esi + 0x3c]
push edx
mov dword [esi + 0x38], ebx
call edi
mov dword [esi + 0x3c], ebx
cmp byte [esi + 0x61], bl
je 0x400028ff
mov eax, dword [esi + 0x28]
push eax
call edi
mov ecx, dword [esi + 0x2c]
push ecx
mov dword [esi + 0x28], ebx
call edi
mov dword [esi + 0x2c], ebx
mov edx, dword [esi + 0x30]
push edx
call edi
mov dword [esi + 0x30], ebx
pop edi
pop esi
mov eax, 0x7d00
pop ebx
ret
Function at 0x40003250
Capabilities:
Terminate process

Disassembly:
cmp dword [0x40477424], 0
je 0x40003303
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x400032ed
mov eax, dword [eax + 0x50]
cmp eax, 0x4000000
ja 0x40003303
push esi
push edi
lea edi, [eax + 0x14]
mov eax, dword [0x40477438]
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [esp + 0xc]
mov esi, eax
mov eax, dword [0x40477460]
mov dword [esi + 0x10], ecx
mov dword [esi], edi
mov dword [esi + 4], 0x3ea
mov edx, dword [eax + 0x30]
mov ecx, dword [edx + 0xc]
mov edx, dword [ecx + 0xd0]
lea ecx, [esi + 0x14]
push ecx
push eax
mov eax, ebx
mov dword [esi + 0xc], edx
call fcn.4000b960
cmp eax, 0x7d00
jne 0x400032f1
mov edx, dword [0x40477460]
mov eax, dword [edx + 0x48]
mov ecx, dword [0x40477424]
mov ecx, dword [ecx]
mov edx, dword [ecx]
push 0
push eax
mov eax, dword [edx + 0x1c]
push esi
call eax
cmp eax, 0x7d26
jne 0x400032f1
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor eax, eax
jmp 0x40003276
mov ecx, dword [0x40477438]
push esi
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
ret

Function at 0x400072e0
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi + 8]
test eax, eax
jne 0x400072f1
mov eax, 0x7d02
pop esi
ret
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4000733b
mov edx, dword [eax + 0x3c]
add eax, edx
push 0xf8
push eax
mov dword [esi + 0xc], eax
call fcn.40001d00
test al, al
jne 0x40007320
mov dword [esi + 0xc], 0
mov eax, 0x7d0d
pop esi
ret
mov esi, dword [esi + 0xc]
cmp dword [esi], 0x4550
jne 0x4000733b
mov eax, 0x10b
cmp word [esi + 0x18], ax
mov eax, 0x7d00
je 0x40007340
mov eax, 0x7d16
pop esi
ret
Function at 0x4000a980
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov dword [0x404772e0], esp
call fcn.40001100
xor ebx, ebx
mov dword [0x404772ec], eax
cmp eax, ebx
jne 0x4000a9a8
pop edi
pop esi
mov eax, 0x7d04
pop ebx
pop ebp
ret 0x10
lea eax, [ebp + 8]
mov dword [0x404772dc], eax
mov eax, dword [ebp + 4]
mov dword [0x404772e8], eax
mov dword [0x404772e4], ebp
push dword [0x404772ec]
call fcn.40001a00
mov esp, eax
mov esi, dword [0x404772e0]
mov ecx, esi
and ecx, 0xfffff000
add ecx, 0x1000
mov edi, esp
sub ecx, esi
sub edi, ecx
mov eax, ecx
rep movsb byte es:[edi], byte [esi]
sub esp, eax
mov eax, esp
sub eax, dword [0x404772e0]
add ebp, eax
add dword [ebp], eax
call fcn.40001a80
mov dword [0x404772d8], eax
call fcn.40001df0
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [0x404772d0], eax
cmp eax, ebx
jne 0x4000aa7c
mov ecx, 0x7d30
mov dword [0x404772d8], ecx
mov eax, dword [0x40477460]
mov dword [0x404772d4], ecx
cmp ecx, 0x7d00
jne 0x4000aa6f
mov edi, eax
call fcn.4000c0f0
mov ecx, dword [0x40477460]
mov dword [0x404772d4], eax
cmp ecx, ebx
je 0x4000aa53
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 1
call edx
mov eax, dword [0x404772d0]
mov ecx, dword [0x40477438]
push eax
push ebx
push ecx
mov dword [0x40477460], ebx
call esi
mov dword [0x404772d0], ebx
mov edx, dword [0x404772d4]
push edx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [0x404772d8]
cmp ecx, 0x7d00
jne 0x4000aa21
mov eax, dword [0x40477438]
push 0x68
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
je 0x4000aabc
push eax
call fcn.4000a4d0
mov dword [0x40477460], eax
cmp eax, ebx
jne 0x4000aad3
mov ecx, 0x7d05
mov dword [0x404772d8], ecx
jmp 0x4000aa26
xor eax, eax
mov ecx, 0x7d05
mov dword [0x40477460], eax
mov dword [0x404772d8], ecx
jmp 0x4000aa26
mov ecx, dword [eax + 4]
mov dword [0x404772d8], ecx
cmp ecx, 0x7d00
je 0x4000ab17
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
push 1
call eax
mov ecx, dword [0x404772d0]
mov edx, dword [0x40477438]
push ecx
push ebx
push edx
mov dword [0x40477460], ebx
call esi
mov ecx, dword [0x404772d8]
mov dword [0x404772d0], ebx
jmp 0x4000aa21
mov ecx, 0x7d00
mov dword [0x404772d8], ecx
jmp 0x4000aa26
Function at 0x4000b5e0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push 0x24
lea eax, [esp + 4]
push 0
push eax
call fcn.40001a40
add esp, 0xc
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 4]
add esp, 0x24
ret

Function at 0x4000b610
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push 0x24
lea eax, [esp + 4]
push 0
push eax
call fcn.40001a40
add esp, 0xc
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 4]
xor eax, eax
test cl, 1
jne 0x4000b64b
lea esp, [esp]
shr ecx, 1
lea eax, [eax + eax + 1]
test cl, 1
je 0x4000b640
add esp, 0x24
ret

Function at 0x4000b650
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push 0x24
lea eax, [esp + 4]
push 0
push eax
call fcn.40001a40
add esp, 0xc
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 4]
xor eax, eax
test cl, 1
jne 0x4000b688
lea esp, [esp]
shr ecx, 1
inc eax
test cl, 1
je 0x4000b680
add esp, 0x24
ret

Function at 0x4000b780
Capabilities:
Set thread local storage value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x4000b794
mov eax, 0x7d02
pop ebp
pop ecx
ret 8
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x20]
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [ebp + 0xc0]
call fcn.4000c3a0
cmp eax, 0x7d00
jne 0x4000b843
mov ecx, dword [0x40075970]
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebp
push ecx
call esi
test eax, eax
je 0x4000b7da
mov eax, dword [0x40075974]
lea edx, [ebp + 8]
push edx
push eax
call esi
test eax, eax
jne 0x4000b7e6
pop edi
pop esi
mov eax, 0x7dff
pop ebp
pop ecx
ret 8
mov edi, dword [ebp + 0xb0]
push ebx
lea ebx, [esp + 0x10]
lea esi, [esp + 0x1c]
call fcn.4000d0d0
pop ebx
cmp eax, 0x7d00
jne 0x4000b843
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
mov dword [ebp + 0xb4], ecx
mov dword [ebp + 0xb8], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp + 0xc8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [ebp + 0xd4], eax
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0x34]
mov edi, ebp
call fcn.4000c3a0
cmp eax, 0x7d00
jne 0x4000b843
pop edi
pop esi
pop ebp
pop ecx
ret 8

Function at 0x4000b850
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ecx
mov eax, dword [0x40075970]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4000b868
cmp eax, 0xeeeeeeee
jne 0x4000b86f
mov eax, 0x7dff
pop ecx
ret
mov ecx, dword [eax + 0xb4]
push esi
mov eax, dword fs:[0]
mov dword [esp + 4], eax
mov eax, dword [0x40075970]
mov edx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0xeeeeeeee
push eax
mov dword [edx + 4], ecx
call esi
test eax, eax
jne 0x4000b8a6
mov eax, 0x7dff
pop esi
pop ecx
ret
mov ecx, dword [0x40075974]
push 0xeeeeeeee
push ecx
call esi
neg eax
sbb eax, eax
and eax, 0xffffff01
add eax, 0x7dff
pop esi
pop ecx
ret
Function at 0x4000b960
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x2c
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x38]
mov ecx, 0x7d00
push ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
test eax, eax
je 0x4000b9e5
mov ebx, dword [eax + 0x50]
cmp ebx, 0x4000000
ja 0x4000bb1c
push ebp
push esi
xor esi, esi
push edi
test ebx, ebx
jbe 0x4000ba21
push 0x24
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.40001a40
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [esp + 0x1c]
lea edx, [edi + esi]
cmp edx, ebx
jbe 0x4000b9c2
mov edi, ebx
sub edi, esi
mov eax, dword [esp + 0x14]
lea ebp, [esi + eax]
push edi
push ebp
call fcn.40001d00
push edi
test al, al
je 0x4000b9e9
mov ecx, dword [esp + 0x48]
lea edx, [esi + ecx]
push ebp
push edx
call fcn.4001d2b0
jmp 0x4000b9f8
xor ebx, ebx
jmp 0x4000b98a
mov eax, dword [esp + 0x48]
lea ecx, [esi + eax]
push 0
push ecx
call fcn.40001a40
add esp, 0xc
push 0x24
push 0
lea edx, [esp + 0x20]
push edx
call fcn.40001a40
add esp, 0xc
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
add esi, dword [esp + 0x1c]
cmp esi, ebx
jb 0x4000b997
mov ecx, dword [0x40477438]
push 0x10
xor ebp, ebp
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebp
je 0x4000bb0e
mov edx, dword [esp + 0x44]
mov dword [edi], ebp
mov dword [edi + 4], 0xffffffff
mov dword [edi + 0xc], ebp
mov dword [edi + 8], edx
call fcn.400072e0
cmp eax, 0x7d00
jne 0x4000bb00
mov eax, edi
mov dword [esp + 0x44], ebp
call fcn.400073a0
test eax, eax
jbe 0x4000bacc
nop
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x4000ba7b
xor esi, esi
jmp 0x4000ba93
lea ebx, [eax + ebp + 0xf8]
push 0x28
push ebx
call fcn.40001d00
movzx esi, al
neg esi
sbb esi, esi
and esi, ebx
push 0x28
push esi
call fcn.40001d00
test al, al
je 0x4000bac4
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x44]
mov dword [esi + 0x14], eax
inc ecx
mov eax, edi
mov dword [esp + 0x44], ecx
add ebp, 0x28
call fcn.400073a0
cmp ecx, eax
jb 0x4000ba70
jmp 0x4000bacc
mov dword [esp + 0x10], 0x7d16
mov ebx, dword [esp + 0x40]
xor ebp, ebp
cmp dword [ebx + 0x18], ebp
je 0x4000bb00
mov esi, dword [edi + 0xc]
cmp esi, ebp
je 0x4000baf8
push 0xf8
push esi
call fcn.40001d00
test al, al
je 0x4000baf8
mov edx, dword [ebx + 0x18]
sub edx, dword [esi + 0x34]
mov dword [esi + 0x28], edx
jmp 0x4000bb00
mov dword [esp + 0x10], 0x7d16
mov eax, dword [0x40477438]
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8
mov eax, ecx
pop ebx
add esp, 0x2c
ret 8
Function at 0x4000bb30
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push edi
mov ecx, esi
call fcn.4000b5d0
push 0x24
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push 0
push eax
call fcn.40001a40
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [esp + 0x18]
xor edx, edx
mov eax, 0x80000000
div edi
xor ebx, ebx
mov ebp, eax
test ebp, ebp
jbe 0x4000bb97
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov edx, edi
call fcn.40001260
cmp eax, 0x7d00
jne 0x4000bc1c
add dword [esp + 0xc], edi
inc ebx
cmp ebx, ebp
jb 0x4000bb76
mov ecx, esi
call fcn.4000b5d0
push 0x24
push 0
lea edx, [esp + 0x1c]
push edx
mov edi, eax
call fcn.40001a40
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
add esp, 0xc
mov eax, edx
push eax
call ebx
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 0x30]
mov eax, dword [esi + 0x38]
push ecx
push edx
push eax
call fcn.40001a60
mov eax, dword [eax + 0x54]
add esp, 0xc
call fcn.400012e0
mov edi, dword [esi + 0x38]
push 0x24
lea eax, [esp + 0x18]
push 0
push eax
call fcn.40001a40
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call ebx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov eax, dword [eax + 0x30]
mov ecx, edi
call fcn.40001260
cmp eax, 0x7d00
jne 0x4000bc1c
mov edx, dword [esi]
mov eax, dword [edx + 8]
pop edi
pop ebp
mov ecx, esi
pop ebx
add esp, 0x2c
jmp eax
pop edi
pop ebp
pop ebx
add esp, 0x2c
ret

Function at 0x4000be58
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov ebx, eax
push esi
mov esi, ecx
cmp ebx, 0xa00000
jbe 0x4000be68
mov ebx, 0xa00000
test ebp, ebp
je 0x4000be78
push 4
push ebp
call fcn.40001d00
test al, al
je 0x4000be88
test esi, esi
je 0x4000be93
push 0xc
push esi
call fcn.40001d00
test al, al
jne 0x4000be93
pop esi
pop ebp
mov eax, 0x7d08
pop ebx
ret 0x14
mov eax, dword [0x40477438]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0xc
push 0
push eax
call edi
mov esi, eax
test esi, esi
je 0x4000befc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
push 0xdc
mov dword [esi + 8], eax
push eax
mov eax, dword [0x40477438]
push eax
mov dword [esi + 8], ecx
mov dword [esi], edx
call edi
mov edi, eax
xor eax, eax
test edi, edi
je 0x4000bee6
mov ecx, dword [0x40477460]
push eax
push ecx
call fcn.4000cb30
mov dword [esi + 4], eax
test eax, eax
jne 0x4000bf08
mov edx, dword [0x40477438]
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
mov eax, 0x7d05
pop ebx
ret 0x14
mov eax, dword [esp + 0x1c]
push ebp
push eax
push esi
push 0x40019e68
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov eax, 0x7d00
pop ebx
ret 0x14
Function at 0x4000bf30
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [ebp + 8]
mov edx, dword [0x40477460]
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [eax + 0x28]
mov ecx, 0x10
lea edi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [eax + 4]
mov ecx, dword [esi + 4]
push ecx
push edx
call fcn.4000b780
push 0x40
lea eax, [esp + 0x34]
push 0
push eax
call fcn.40001a40
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0xc0]
mov edi, dword [edx + 0xc]
add esp, 0xc
push 0x24
lea eax, [esp + 0x10]
push 0
push eax
call fcn.40001a40
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [esp + 0x10]
mov ecx, dword [0x40477460]
imul edx, edx, 0x401
push 1
lea eax, [esp + 0x34]
add edx, edi
push eax
mov dword [esp + 0x60], edx
call fcn.4000b6f0
mov ecx, dword [0x40477438]
mov edi, dword [esi]
mov ebx, dword [esi + 8]
push esi
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
mov ebx, dword [0x40477460]
push edi
lea eax, [esp + 0x78]
call fcn.4000bff0
int3