joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426930
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4862d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebp
push esi
push 0x4bc180
lea eax, [esp + 0x1c]
push str.Software_
push eax
call fcn.00406eb0
push 0x4944b0
push eax
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x48], 0
call fcn.00406df0
push 0x4bc180
push eax
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x54], 1
call fcn.0040b210
push 0x4944a4
push eax
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x60], 2
call fcn.00406df0
mov esi, dword [eax]
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
or ebp, 0xffffffff
add esp, 0x30
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4269c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4269e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x426a09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x30], ebp
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x426a2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push esi
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x426ada
push edi
push 0x100
call fcn.0045d558
mov esi, eax
add esp, 4
xor eax, eax
mov ecx, 0x40
mov edi, esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x10]
push esi
lea edx, [esp + 0x2c]
push edx
push eax
mov eax, dword [esp + 0x4c]
push eax
push ecx
mov dword [esp + 0x38], 0x100
mov dword [esp + 0x3c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
pop edi
jne 0x426ad1
push esi
lea ecx, [esp + 0x28]
call fcn.0040d730
mov ecx, dword [esp + 0x3c]
push eax
mov dword [esp + 0x34], 3
call fcn.00406d40
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x30], ebp
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
test ebp, ebp
jg 0x426ad1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push esi
call fcn.0045d55d
add esp, 4
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x28]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x427cb0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x4ba8b4]
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
push esi
mov dword [esp + 0x110], eax
lea eax, [esp + 4]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x427d24
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x120]
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 ecx, dword [esp + 0x110]
mov eax, esi
pop esi
call fcn.0043d9f4
add esp, 0x110
ret 0xc

Function at 0x428810
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x486558
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x80]
test eax, eax
jne 0x428916
push esi
call fcn.0045d6c9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 8], esi
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x14], 0
jge 0x42887b
push 0x104
lea ecx, [esp + 0xc]
call fcn.00404140
mov esi, dword [esp + 8]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test esi, esi
jne 0x42888f
xor eax, eax
jmp 0x4288a3
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x428894
sub eax, edx
js 0x428926
cmp eax, dword [esi - 8]
jg 0x428926
push edi
push 0xd
mov dword [esi - 0xc], eax
push 0x492e58
lea ecx, [esp + 0x14]
mov byte [eax + esi], 0
call fcn.00404a90
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4288eb
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x4288eb
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [ebx + 0x80], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [edi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
jg 0x428915
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
mov ecx, dword [esp + 8]
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
push 0x80070057
call fcn.004013c0
int3
Function at 0x42a340
Capabilities:
Delete file
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4866e0
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov dl, byte [esp + 0x24]
xor eax, eax
test dl, dl
setne al
push str.main.backup
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 1
lea eax, [eax + eax + 2]
mov edi, eax
call fcn.00407060
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push edi
push edx
push esi
call ebx
test eax, eax
jne 0x42a41a
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a3bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov byte [esp + 0x14], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a3de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a404
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor al, al
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0xc
push edi
mov edi, dword [esp + 0x24]
push esi
push edi
call ebx
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a450
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov byte [esp + 0x14], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a46f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a491
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov al, bl
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0xc
Function at 0x42aba0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
sub esp, 0x54
push esi
mov edx, dword [esp + 0x68]
push edi
mov esi, ecx
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x54], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x10
push 1
push 0
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x7c]
push 0
push edx
push 0
mov dword [esp + 0x40], 0x44
mov word [esp + 0x70], 0
mov dword [esp + 0x6c], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x42ac12
pop edi
pop esi
add esp, 0x54
ret 0x10
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
push edx
mov dword [esi + 0x20], eax
mov dword [esi + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x54
ret 0x10

Function at 0x42ac40
Capabilities:
Read file on windows
Read pipe

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4ba8b4]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
xor ebx, ebx
push ebx
mov dword [esp + 0x11c], eax
lea eax, [esp + 0x14]
push eax
push ebx
push ebx
mov esi, ecx
mov ecx, dword [esi + 0x1c]
push ebx
push ecx
mov dword [esp + 0x28], ebx
call edi
test eax, eax
je 0x42ace1
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ecx]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x42ad19
cmp eax, 0xff
mov dword [esp + 0x14], ebx
jbe 0x42ac9c
mov eax, 0xff
mov ecx, dword [esi + 0x1c]
push ebx
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x24]
push eax
push ecx
call ebp
test eax, eax
je 0x42ace1
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x42ace1
mov edx, dword [esi]
mov byte [esp + eax + 0x18], bl
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call dword [edx + 0xc]
mov edx, dword [esi + 0x1c]
push ebx
lea ecx, [esp + 0x14]
push ecx
push ebx
push ebx
push ebx
push edx
mov dword [esp + 0x28], ebx
call edi
test eax, eax
jne 0x42ac80
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x42ad35
cmp eax, 0xe8
je 0x42ad35
mov eax, dword [esi]
push str.Read_stdout_pipe_error_r_n
mov ecx, esi
call dword [eax + 0x10]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x108]
call fcn.0043d9f4
add esp, 0x10c
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x108]
call fcn.0043d9f4
add esp, 0x10c
ret
mov edx, dword [esi]
push str._r_n_TEST_INFO_:_Child_process_ended_r_n
mov ecx, esi
call dword [edx + 0xc]
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
call fcn.0043d9f4
add esp, 0x10c
ret
Function at 0x42ae80
Capabilities:
Create pipe
Create thread
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496b58
push 0x440094
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov eax, dword [0x4ba8b4]
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x60], esi
mov eax, dword [esi]
call dword [eax + 0x14]
xor ebx, ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x70], 0xc
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 4], ebx
push ebx
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x42affb
push 2
push 1
push ebx
lea ecx, [ebp - 0x58]
push ecx
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call edi
push eax
mov edx, dword [ebp - 0x48]
push edx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x42affb
push ebx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x42affb
push 2
push ebx
push ebx
lea eax, [esi + 0x1c]
push eax
call edi
push eax
mov ecx, dword [ebp - 0x50]
push ecx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x42affb
push 2
push ebx
push ebx
lea edx, [esi + 0x18]
push edx
call edi
push eax
mov eax, dword [ebp - 0x54]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x42affb
lea ecx, [ebp - 0x50]
push ecx
mov ecx, esi
call fcn.0042ad60
lea edx, [ebp - 0x54]
push edx
mov ecx, esi
call fcn.0042ad60
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, esi
call fcn.0042aba0
test eax, eax
je 0x42affb
lea ecx, [ebp - 0x48]
push ecx
mov ecx, esi
call fcn.0042ad60
lea edx, [ebp - 0x4c]
push edx
mov ecx, esi
call fcn.0042ad60
lea eax, [ebp - 0x58]
push eax
mov ecx, esi
call fcn.0042ad60
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 8], eax
lea ecx, [esi + 0xc]
push ecx
push ebx
push esi
push 0x42ada0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
cmp eax, ebx
je 0x42affb
mov dword [ebp - 0x5c], 1
mov dword [ebp - 4], 0xffffffff
call fcn.0042b02a
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x1c]
call fcn.0043d9f4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42b150
Capabilities:
Terminate thread

Disassembly:
mov dword [ecx], method.CCommandLineInfo.virtual_0
jmp fcn.0042b0b0
Function at 0x42b180
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x486738
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x42b1b4
xor eax, eax
pop edi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push esi
call fcn.0045d6c9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0
call fcn.00408210
mov esi, dword [esp + 0x1c]
mov eax, dword [esi - 0xc]
push 0
lea edx, [esp + 0xc]
push edx
push eax
mov eax, dword [edi + 0x18]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
lea eax, [esi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
jg 0x42b222
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 8]
mov eax, edi
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x43152c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x43157f
call fcn.00479656
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x43157f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x431575
xor eax, eax
jmp 0x431698
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x4315af
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x4315af
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x431695
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x4315dc
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0042c3ef
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x431695
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x431625
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x431625
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x43161f
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0042c3ef
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x431685
and dword [ebp + 0xc], 0
jmp 0x431685
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x431685
push 0xc
call fcn.0045d528
mov esi, eax
test esi, esi
pop ecx
je 0x431667
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x431669
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x431680
push dword [ebp - 8]
call fcn.00457338
jmp 0x431685
call fcn.00457295
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x4315ea
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x440265
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x440281
call fcn.00441bd1
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x4402f3
push esi
push 0x8c
push 1
call fcn.004425c3
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4402d9
push esi
call fcn.004437ea
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x4401d3
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x4402d1
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4402f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0043eda7
test ebx, ebx
pop ecx
je 0x4402eb
push ebx
call fcn.00441be3
pop ecx
or eax, 0xffffffff
jmp 0x4402f2
mov eax, edi
pop esi
pop edi
pop ebx
ret

Function at 0x440808
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.0043e9c0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4408a3
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 [0x4be500]
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 0x4408a3
cmp eax, 1
je 0x4408c4
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 0x4408a3
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x440870
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x44089f
xor eax, eax
inc eax
jmp 0x4408e3
cmp edi, eax
jae 0x4408a7
xor eax, eax
jmp 0x4408e3
cmp eax, esi
jae 0x4408ae
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 [0x4be500]
jmp 0x4408c7
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 0x44098a
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4a2638
call fcn.00442680
mov edi, 0x94
mov eax, edi
call fcn.0043e9c0
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 [0x4be500], ecx
mov eax, dword [esi + 4]
mov dword [0x4be50c], eax
mov edx, dword [esi + 8]
mov dword [0x4be510], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4be504], esi
cmp ecx, 2
je 0x4409ea
or esi, 0x8000
mov dword [0x4be504], esi
shl eax, 8
add eax, edx
mov dword [0x4be508], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x440a25
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x440a25
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x440a3d
cmp eax, 0x20b
je 0x440a2a
mov dword [ebp - 0x1c], esi
jmp 0x440a51
cmp dword [ecx + 0x84], 0xe
jbe 0x440a25
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x440a4b
cmp dword [ecx + 0x74], 0xe
jbe 0x440a25
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004470bf
pop ecx
test eax, eax
jne 0x440a65
push 0x1c
call fcn.00440910
pop ecx
call fcn.004439f0
test eax, eax
jne 0x440a76
push 0x10
call fcn.00440910
pop ecx
call fcn.0044a34d
mov dword [ebp - 4], esi
call fcn.0044a103
test eax, eax
jge 0x440a8f
push 0x1b
call fcn.004408eb
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4bfdd0], eax
call fcn.00449fe1
mov dword [0x4be4ec], eax
call fcn.00449f3f
test eax, eax
jge 0x440ab5
push 8
call fcn.004408eb
pop ecx
call fcn.00449d0c
test eax, eax
jge 0x440ac6
push 9
call fcn.004408eb
pop ecx
push 1
call fcn.0044286b
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x440adc
push eax
call fcn.004408eb
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00449caf
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x440afd
movzx eax, word [ebp - 0x40]
jmp 0x440b00
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00451dde
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x440b1e
push edi
call fcn.00442998
call fcn.004429ba
jmp 0x440b50
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004426bb
ret
Function at 0x442504
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x442521
call fcn.00441bd1
mov dword [eax], 0x16
xor eax, eax
jmp 0x44258b
push esi
push 0x8c
push 1
call fcn.004425c3
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x442576
push esi
call fcn.004437ea
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x442554
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x44246f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x44258a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0043eda7
test ebx, ebx
pop ecx
je 0x442588
push ebx
call fcn.00441be3
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4428d5
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4a2780
call fcn.00442680
push 8
call fcn.00447300
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4be540], esi
jne 0x442909
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4be53c], esi
mov al, byte [ebp + 0x10]
mov byte [0x4be538], al
cmp dword [ebp + 0xc], edi
jne 0x442953
cmp dword [0x4bfdc8], edi
je 0x442943
mov eax, dword [0x4bfdc4]
sub eax, 4
mov dword [0x4bfdc4], eax
cmp eax, dword [0x4bfdc8]
jb 0x442943
mov eax, dword [eax]
cmp eax, edi
je 0x442924
call eax
jmp 0x442924
push 0x4b8ba0
mov eax, 0x4b8b98
call fcn.00442835
pop ecx
push 0x4b8bac
mov eax, 0x4b8ba4
call fcn.00442835
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x442984
cmp dword [ebp + 0x10], edi
jne 0x442992
mov dword [0x4be540], esi
push dword [ebp + 8]
call fcn.004427f3
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x442991
push 8
call fcn.00447233
pop ecx
ret
call fcn.004426bb
ret