joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430b00
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x430b12
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x430b40
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x45b990]
xor eax, esp
push ebp
push esi
push edi
mov edi, dword [esp + 0x12c]
mov ebp, ecx
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x130], eax
mov eax, dword [ebp]
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x430bae
test ecx, ecx
je 0x430ba0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x430bbc
test ecx, ecx
je 0x430c61
push ecx
jmp 0x430c5b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], pe_nt_image_headers32
call esi
test eax, eax
jne 0x430c2e
jmp 0x430bf0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.00430b40
mov edi, eax
test edi, edi
jne 0x430c7d
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], pe_nt_image_headers32
call esi
test eax, eax
je 0x430bf0
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x430c45
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x430c61
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004395fe
add esp, 0x11c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x430c8c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x430c63
Function at 0x435e9d
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x44d6e8
call fcn.00439138
mov edi, 0x94
mov eax, edi
call fcn.004421c0
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 [0x45d574], ecx
mov eax, dword [esi + 4]
mov dword [0x45d580], eax
mov edx, dword [esi + 8]
mov dword [0x45d584], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x45d578], esi
cmp ecx, 2
je 0x435efd
or esi, 0x8000
mov dword [0x45d578], esi
shl eax, 8
add eax, edx
mov dword [0x45d57c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x435f38
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x435f38
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x435f50
cmp eax, 0x20b
je 0x435f3d
mov dword [ebp - 0x1c], esi
jmp 0x435f64
cmp dword [ecx + 0x84], 0xe
jbe 0x435f38
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x435f5e
cmp dword [ecx + 0x74], 0xe
jbe 0x435f38
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0044019f
pop ecx
test eax, eax
jne 0x435f78
push 0x1c
call fcn.00435e79
pop ecx
call fcn.00441641
test eax, eax
jne 0x435f89
push 0x10
call fcn.00435e79
pop ecx
call fcn.0044212d
mov dword [ebp - 4], esi
call fcn.00441f2f
test eax, eax
jge 0x435fa2
push 0x1b
call fcn.00435e54
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x45f844], eax
call fcn.00441e0d
mov dword [0x45d3bc], eax
call fcn.00441d6b
test eax, eax
jge 0x435fc8
push 8
call fcn.00435e54
pop ecx
call fcn.00441b38
test eax, eax
jge 0x435fd9
push 9
call fcn.00435e54
pop ecx
push 1
call fcn.00440e02
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x435fef
push eax
call fcn.00435e54
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00441adb
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x436010
movzx eax, word [ebp - 0x40]
jmp 0x436013
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040d330
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x436031
push edi
call fcn.00440f2f
call fcn.00440f51
jmp 0x436063
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00439173
ret

Function at 0x436c36
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x436c56
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00436084
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x436c79
test byte [esp + 8], 2
je 0x436c79
call fcn.00436072
mov dword [eax], 0xd
call fcn.0043607b
mov dword [eax], 5
jmp 0x436c52
xor eax, eax
ret
Function at 0x437a22
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 0x437a3f
call fcn.00436072
mov dword [eax], 0x16
xor eax, eax
jmp 0x437aa9
push esi
push 0x8c
push 1
call fcn.00437c5a
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x437a94
push esi
call fcn.00441447
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 0x437a72
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x43798d
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x437aa8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.004351ad
test ebx, ebx
pop ecx
je 0x437aa6
push ebx
call fcn.00436084
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x438180
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.004421c0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43821b
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 [0x45d574]
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 0x43821b
cmp eax, 1
je 0x43823c
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 0x43821b
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4381e8
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x438217
xor eax, eax
inc eax
jmp 0x43825b
cmp edi, eax
jae 0x43821f
xor eax, eax
jmp 0x43825b
cmp eax, esi
jae 0x438226
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 [0x45d574]
jmp 0x43823f
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 0x440e6c
Capabilities:
Terminate process

Disassembly:
push 8
push 0x44ea28
call fcn.00439138
push 8
call fcn.004385d6
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x45d5b4], esi
jne 0x440ea0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x45d5b0], esi
mov al, byte [ebp + 0x10]
mov byte [0x45d5ac], al
cmp dword [ebp + 0xc], edi
jne 0x440eea
cmp dword [0x45e7e8], edi
je 0x440eda
mov eax, dword [0x45e7e4]
sub eax, 4
mov dword [0x45e7e4], eax
cmp eax, dword [0x45e7e8]
jb 0x440eda
mov eax, dword [eax]
cmp eax, edi
je 0x440ebb
call eax
jmp 0x440ebb
push 0x45b080
mov eax, 0x45b078
call fcn.00440dea
pop ecx
push 0x45b08c
mov eax, 0x45b084
call fcn.00440dea
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x440f1b
cmp dword [ebp + 0x10], edi
jne 0x440f29
mov dword [0x45d5b4], esi
push dword [ebp + 8]
call fcn.00440da8
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x440f28
push 8
call fcn.00438521
pop ecx
ret
call fcn.00439173
ret

Function at 0x4417c6
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x45b990]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x45ba18]
je 0x4417fd
inc eax
cmp eax, 0x13
jb 0x4417ee
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x45ba18]
jne 0x441920
mov eax, dword [0x45d3c4]
cmp eax, 1
je 0x4418fb
cmp eax, edx
jne 0x44182d
cmp dword [0x45b29c], 1
je 0x4418fb
cmp ecx, 0xfc
je 0x441920
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x441863
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.0043b4b0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00439700
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x441897
mov eax, edi
push eax
call fcn.00439700
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x450c24
push edi
call fcn.00437d40
add esp, 0x10
push edi
call fcn.00439700
push dword [esi + 0x45ba1c]
mov ebx, eax
call fcn.00439700
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004421c0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0043b4b0
push edi
push ebx
call fcn.0043b4c0
push 0x44eec0
push ebx
call fcn.0043b4c0
push dword [esi + 0x45ba1c]
push ebx
call fcn.0043b4c0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004467bd
add esp, 0x2c
jmp 0x441920
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x45ba1c]
push dword [esi]
call fcn.00439700
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]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.004395fe
add ebp, 0x90
leave
ret
Function at 0x442568
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x44273e
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x45e6e0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x44273e
test cl, 0x48
je 0x4425d3
cmp byte [eax + 5], 0xa
je 0x4425d3
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x442625
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x44260d
call fcn.00436072
mov dword [eax], 9
call fcn.0043607b
mov dword [eax], esi
jmp 0x44261d
cmp eax, 0x6d
je 0x44273e
push eax
call fcn.00436084
pop ecx
or eax, 0xffffffff
jmp 0x442740
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x442739
test eax, eax
je 0x44264c
cmp byte [ebx], 0xa
jne 0x44264c
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x442655
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x442733
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x442723
cmp al, 0xd
je 0x442687
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x442715
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4426a1
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x44269c
add dword [ebp + 0x10], 2
jmp 0x4426f5
mov dword [ebp + 0x10], eax
jmp 0x442711
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4426c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x442711
cmp dword [ebp - 0xc], 0
je 0x442711
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4426ea
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4426f5
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x442714
cmp ebx, dword [ebp + 0xc]
jne 0x4426fa
cmp byte [ebp - 1], 0xa
jne 0x4426fa
mov byte [ebx], 0xa
jmp 0x442714
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00446c36
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x442715
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x44266b
jmp 0x442733
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x442733
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x442740
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4427f0
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x45b990]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x44282c
xor eax, eax
jmp 0x442996
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x45e6e0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x44286a
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.00446c36
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x442904
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x442967
jmp 0x44288e
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x4428c9
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4428ba
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x44289a
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x442928
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x442931
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x44288c
jmp 0x442931
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x442928
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x442931
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x442991
cmp dword [ebp - 0x68], eax
je 0x442964
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x442959
call fcn.00436072
mov dword [eax], 9
call fcn.0043607b
mov dword [eax], esi
jmp 0x44298c
push dword [ebp - 0x68]
call fcn.00436084
pop ecx
jmp 0x44298c
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x442979
cmp byte [edi], 0x1a
jne 0x442979
xor eax, eax
jmp 0x442994
call fcn.00436072
mov dword [eax], 0x1c
call fcn.0043607b
and dword [eax], 0
or eax, 0xffffffff
jmp 0x442994
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.004395fe
add ebp, 0x3a4
leave
ret
Function at 0x4454b0
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 0x4454de
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 0x4454e5
cmp ebx, dword [eax + 4]
jae 0x4454e5
xor eax, eax
jmp 0x4456d5
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4454f6
xor eax, eax
inc eax
jmp 0x4456d4
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x44550c
cmp ecx, edx
jae 0x445651
cmp dword [eax + 4], 0
je 0x445515
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4454fd
cmp dword [ebp + 8], 0
je 0x445537
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x445651
cmp eax, esi
jae 0x445651
mov eax, dword [0x45d858]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x44555c
cmp dword [esi*4 + 0x45d860], edi
je 0x445655
inc esi
cmp esi, eax
jl 0x44554a
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4456d1
cmp dword [ebp - 8], 0x1000000
jne 0x4456d1
test byte [ebp - 0xc], 0xcc
je 0x4455da
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4456d1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4456d1
cmp word [eax + 0x18], 0x10b
jne 0x4456d1
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4456d1
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4455da
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4455da
test byte [ecx + 0x27], 0x80
jne 0x445651
push 1
push 0x45d8a0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4454ee
mov ecx, dword [0x45d858]
test ecx, ecx
mov edx, ecx
jle 0x44560e
lea eax, [ecx*4 + 0x45d85c]
cmp dword [eax], edi
je 0x44560e
dec edx
sub eax, 4
test edx, edx
jg 0x445602
test edx, edx
jne 0x44563f
push 0xf
pop ebx
cmp ecx, ebx
jg 0x44561b
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x445633
lea eax, [edx*4 + 0x45d860]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x445621
cmp ecx, 0x10
jge 0x44563f
inc ecx
mov dword [0x45d858], ecx
push 0
push 0x45d8a0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4454ee
xor eax, eax
jmp 0x4456d4
test esi, esi
jle 0x4454ee
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x45d8a0
call ebx
test eax, eax
jne 0x4454ee
cmp dword [esi*4 + 0x45d860], edi
je 0x4456ab
mov eax, dword [0x45d858]
lea esi, [eax - 1]
test esi, esi
jl 0x445699
cmp dword [esi*4 + 0x45d860], edi
je 0x445695
dec esi
jns 0x445689
test esi, esi
jge 0x4456a9
cmp eax, 0x10
jge 0x4456a4
inc eax
mov dword [0x45d858], eax
lea esi, [eax - 1]
jmp 0x4456ab
je 0x4456c3
xor ecx, ecx
test esi, esi
jl 0x4456c3
lea eax, [ecx*4 + 0x45d860]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4456b1
push 0
push 0x45d8a0
call ebx
jmp 0x4454ee
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44630a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
je 0x446335
cmp eax, 1
je 0x446335
jle 0x44633d
cmp eax, 3
jle 0x446335
cmp eax, 4
jne 0x44633d
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x446368
call fcn.00436072
mov dword [eax], 0x16
call fcn.0043607b
mov dword [eax], ebx
or eax, 0xffffffff
jmp 0x4464e1
inc eax
cmp byte [eax], bl
jne 0x446357
lea ecx, [eax + 1]
cmp byte [ecx], bl
je 0x446368
mov byte [eax], 0x20
mov eax, ecx
cmp byte [eax], bl
jne 0x446357
push esi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.0043a940
mov dword [ebp - 0x68], esi
mov esi, dword [0x45e6c0]
add esp, 0xc
cmp esi, ebx
je 0x4463ae
lea ecx, [esi - 1]
mov edx, ecx
mov eax, ecx
sar edx, 5
mov edx, dword [edx*4 + 0x45e6e0]
and eax, 0x1f
lea eax, [eax + eax*8]
cmp byte [edx + eax*4 + 4], bl
jne 0x4463ae
dec esi
dec ecx
cmp esi, ebx
jne 0x44638e
lea eax, [esi + esi*4 + 4]
mov word [ebp - 0x36], ax
push edi
movzx eax, ax
push 1
push eax
call fcn.00437c5a
cmp esi, ebx
mov dword [ebp - 0x34], eax
pop ecx
mov dword [eax], esi
mov eax, dword [ebp - 0x34]
pop ecx
mov dword [ebp - 8], ebx
lea ecx, [eax + 4]
lea edx, [eax + esi + 4]
jle 0x446415
mov eax, dword [ebp - 8]
mov edi, eax
sar edi, 5
mov edi, dword [edi*4 + 0x45e6e0]
and eax, 0x1f
lea eax, [eax + eax*8]
lea edi, [edi + eax*4]
mov al, byte [edi + 4]
test al, 0x10
jne 0x446401
mov byte [ecx], al
mov eax, dword [edi]
mov dword [edx], eax
jmp 0x446406
mov byte [ecx], bl
or dword [edx], 0xffffffff
inc dword [ebp - 8]
inc ecx
add edx, 4
cmp dword [ebp - 8], esi
jl 0x4463da
mov eax, dword [ebp - 0x34]
cmp byte [ebp - 1], bl
je 0x446446
lea ecx, [eax + 4]
xor edx, edx
lea eax, [eax + esi + 4]
cmp esi, 3
jge 0x44642c
mov edi, esi
jmp 0x44642f
push 3
pop edi
cmp edx, edi
jge 0x44643f
mov byte [ecx], bl
or dword [eax], 0xffffffff
inc edx
inc ecx
add eax, 4
jmp 0x446423
mov dword [ebp - 0xc], 8
call fcn.00436072
mov dword [eax], ebx
call fcn.0043607b
mov dword [eax], ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0xc]
push 1
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x34]
mov edi, eax
call fcn.004351ad
cmp esi, ebx
pop ecx
jne 0x446496
push edi
call fcn.00436084
pop ecx
or eax, 0xffffffff
jmp 0x4464df
cmp dword [ebp + 8], 2
jne 0x4464a2
push ebx
call fcn.00440f40
cmp dword [ebp + 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x4464cf
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x24]
call esi
jmp 0x4464d8
cmp dword [ebp + 8], 4
je 0x4464c8
mov ebx, dword [ebp - 0x24]
push dword [ebp - 0x20]
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret