joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404340
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
jmp 0x40435b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x30
jge 0x40437c
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx + 0x429408]
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + edx - 1]
mov byte [eax], dl
jmp 0x404352
mov esp, ebp
pop ebp
ret 8

Function at 0x404500
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
jmp 0x40451b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x20
jge 0x40453c
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx + 0x429638]
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + edx - 1]
mov byte [eax], dl
jmp 0x404512
mov esp, ebp
pop ebp
ret 8

Function at 0x404c40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4287af
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x430090]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x220], 0
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.00409620
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x404cdd
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406800
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x220]
or ecx, 1
mov dword [ebp - 0x220], ecx
mov eax, dword [ebp + 8]
jmp 0x404d03
push 0x42a70c
mov ecx, dword [ebp + 8]
call fcn.00406800
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x220]
or edx, 1
mov dword [ebp - 0x220], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409b17
mov esp, ebp
pop ebp
ret 4
Function at 0x4057a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428a48
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x430090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 4]
or edx, 1
push edx
push 0
mov ecx, dword [ebp - 0x24]
add ecx, 0x10
call fcn.004071c0
push eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0x24]
mov dword [edx], eax
mov eax, dword [ebp - 0x24]
cmp dword [eax], 0
je 0x405820
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406900
mov eax, dword [ebp - 0x18]
jmp 0x405898
mov dword [ebp - 0x10], 1
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
lea ecx, [ebp + 8]
call fcn.004071c0
push eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0
jne 0x405875
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406900
mov eax, dword [ebp - 0x1c]
jmp 0x405898
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406900
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4058b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428a78
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x430090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], 4
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 4]
or edx, 0x20019
push edx
push 0
mov ecx, dword [ebp - 0x28]
add ecx, 0x10
call fcn.004071c0
push eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x405937
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406900
mov eax, dword [ebp - 0x20]
jmp 0x405984
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
lea ecx, [ebp + 8]
call fcn.004071c0
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x405962
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406900
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x405c30
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x430090]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], ecx
mov byte [ebp - 0x68], 0
push 0x3f
push 0
lea eax, [ebp - 0x67]
push eax
call fcn.00409620
add esp, 0xc
mov byte [ebp - 0xc8], 0
push 0x3f
push 0
lea ecx, [ebp - 0xc7]
push ecx
call fcn.00409620
add esp, 0xc
mov byte [ebp - 0x24], 0
xor edx, edx
mov dword [ebp - 0x23], edx
mov dword [ebp - 0x1f], edx
mov dword [ebp - 0x1b], edx
mov dword [ebp - 0x17], edx
mov dword [ebp - 0x13], edx
mov dword [ebp - 0xf], edx
mov dword [ebp - 0xb], edx
mov word [ebp - 7], dx
mov byte [ebp - 5], dl
mov byte [ebp - 0x88], 0
xor eax, eax
mov dword [ebp - 0x87], eax
mov dword [ebp - 0x83], eax
mov dword [ebp - 0x7f], eax
mov dword [ebp - 0x7b], eax
mov dword [ebp - 0x77], eax
mov dword [ebp - 0x73], eax
mov dword [ebp - 0x6f], eax
mov word [ebp - 0x6b], ax
mov byte [ebp - 0x69], al
mov byte [ebp - 0x108], 0
push 0x3f
push 0
lea ecx, [ebp - 0x107]
push ecx
call fcn.00409620
add esp, 0xc
push 0x40
lea edx, [ebp - 0x68]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x114]
call fcn.00403c20
lea ecx, [ebp - 0xc8]
push ecx
lea edx, [ebp - 0x68]
push edx
mov ecx, dword [ebp - 0x114]
call fcn.004042f0
push 0x20
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x88]
push ecx
call fcn.00409b60
add esp, 0xc
push 0x20
lea edx, [ebp - 0xa8]
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.00409b60
add esp, 0xc
mov dword [ebp - 0x10c], 0
jmp 0x405d51
mov ecx, dword [ebp - 0x10c]
add ecx, 1
mov dword [ebp - 0x10c], ecx
cmp dword [ebp - 0x10c], 0x10
jge 0x405d82
mov edx, dword [ebp + 0xc]
push edx
mov eax, 0xf
sub eax, dword [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x88]
push edx
mov ecx, dword [ebp - 0x114]
call fcn.00404140
jmp 0x405d42
push 0x20
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.00409b60
add esp, 0xc
push 0x20
lea edx, [ebp - 0x88]
push edx
lea eax, [ebp - 0xe8]
push eax
call fcn.00409b60
add esp, 0xc
mov dword [ebp - 0x110], 0
jmp 0x405dca
mov ecx, dword [ebp - 0x110]
add ecx, 1
mov dword [ebp - 0x110], ecx
cmp dword [ebp - 0x110], 0x40
jge 0x405dfb
mov edx, dword [ebp - 0x110]
movsx eax, byte [edx + 0x429658]
mov ecx, dword [ebp - 0x114]
add ecx, dword [ebp - 0x110]
mov dl, byte [ebp + eax - 0x109]
mov byte [ecx + 0x640], dl
jmp 0x405dbb
push 0x40
mov eax, dword [ebp - 0x114]
add eax, 0x640
push eax
mov ecx, dword [ebp - 0x114]
add ecx, 0x688
push ecx
mov ecx, dword [ebp - 0x114]
call fcn.00404550
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409b17
mov esp, ebp
pop ebp
ret 8
Function at 0x406390
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428b72
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x430090]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xcc], 0
mov dword [ebp - 4], 3
lea ecx, [ebp + 0x10]
call fcn.004071c0
mov dword [ebp - 0x10], eax
lea ecx, [ebp + 0x14]
call fcn.004071c0
mov dword [ebp - 0x18], eax
push str.HKEY_LOCAL_MACHINE
lea eax, [ebp + 0xc]
push eax
call fcn.00407100
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x406592
lea edx, [ebp - 0x14]
push edx
push 0x20019
push 0
mov eax, dword [ebp - 0x10]
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406592
mov dword [ebp - 0xc0], 0x208
lea ecx, [ebp - 0xc0]
push ecx
lea edx, [ebp - 0xbc]
push edx
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc4], eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc4], 0
jne 0x40654d
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0xc8]
call fcn.00406800
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xc8]
call fcn.004072c0
test eax, eax
jle 0x4064e7
lea ecx, [ebp - 0xc8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004067a0
mov edx, dword [ebp - 0xcc]
or edx, 1
mov dword [ebp - 0xcc], edx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc8]
call fcn.00406900
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.00406900
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.00406900
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.00406900
mov eax, dword [ebp + 8]
jmp 0x4065d5
push 0x42a868
mov ecx, dword [ebp + 8]
call fcn.00406880
mov eax, dword [ebp - 0xcc]
or eax, 1
mov dword [ebp - 0xcc], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc8]
call fcn.00406900
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.00406900
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.00406900
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.00406900
mov eax, dword [ebp + 8]
jmp 0x4065d5
push 0x42a868
mov ecx, dword [ebp + 8]
call fcn.00406880
mov ecx, dword [ebp - 0xcc]
or ecx, 1
mov dword [ebp - 0xcc], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.00406900
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.00406900
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.00406900
mov eax, dword [ebp + 8]
jmp 0x4065d5
push 0x42a868
mov ecx, dword [ebp + 8]
call fcn.00406880
mov edx, dword [ebp - 0xcc]
or edx, 1
mov dword [ebp - 0xcc], edx
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.00406900
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.00406900
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.00406900
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00409b17
mov esp, ebp
pop ebp
ret

Function at 0x409b17
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430090]
jne 0x409b21
repz ret
jmp fcn.0040d3bc
Function at 0x41f4ad
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x430090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040cda6
and dword [ebp - 0x14], 0
cmp dword [0x431fac], 0
mov dword [ebp - 0x18], eax
jne 0x41f560
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41f608
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41f608
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x431fac], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x431fb0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x431fb4], eax
call edi
push eax
call esi
mov dword [0x431fbc], eax
test eax, eax
je 0x41f560
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x431fb8], eax
mov eax, dword [0x431fb8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41f5b9
cmp dword [0x431fbc], ecx
je 0x41f5b9
push eax
call esi
push dword [0x431fbc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41f5b9
test ebx, ebx
je 0x41f5b9
call edi
test eax, eax
je 0x41f5b0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41f5b0
test byte [ebp - 8], 1
jne 0x41f5b9
or dword [ebp + 0x10], 0x200000
jmp 0x41f5ec
mov eax, dword [0x431fb0]
cmp eax, dword [ebp - 0x18]
je 0x41f5ec
push eax
call esi
test eax, eax
je 0x41f5ec
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41f5ec
mov eax, dword [0x431fb4]
cmp eax, dword [ebp - 0x18]
je 0x41f5ec
push eax
call esi
test eax, eax
je 0x41f5ec
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x431fac]
call esi
test eax, eax
je 0x41f608
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41f60a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409b17
leave
ret
Function at 0x403a50
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x496b5c], 0
push ebx
push esi
push edi
jne 0x403b9a
push 0
push 0x104
mov ecx, 0x496b4c
call fcn.00403f50
mov edi, dword [0x496b60]
mov ebx, dword [0x496b5c]
cmp edi, 0x104
jae 0x403b66
mov edx, 0x7ffffffe
mov eax, 0x104
mov ecx, edx
sub eax, ebx
sub ecx, ebx
cmp ecx, eax
jb 0x403ba3
mov eax, edi
shr eax, 1
sub edx, eax
cmp edi, edx
jbe 0x403ab8
mov ecx, 0x7ffffffe
jmp 0x403ac4
add eax, edi
mov ecx, 0x107
cmp eax, ecx
cmova ecx, eax
lea eax, [ebp - 4]
mov dword [ebp - 4], ecx
push eax
push 0x496b4c
call fcn.004043b0
mov ecx, dword [ebp - 4]
add esp, 8
mov dword [0x496b5c], 0x104
mov esi, eax
mov dword [0x496b60], ecx
cmp edi, 7
jbe 0x403b3c
mov eax, dword [0x496b4c]
lea ecx, [ebx*2 + 2]
push ecx
push eax
push esi
mov dword [ebp - 4], eax
call fcn.0043e300
mov eax, dword [ebp - 4]
lea edi, [edi*2 + 2]
add esp, 0xc
cmp edi, 0x1000
jb 0x403b30
mov ecx, dword [eax - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403ba8
mov eax, ecx
push edi
push eax
call fcn.0043cce2
add esp, 8
jmp 0x403b52
lea eax, [ebx*2 + 2]
push eax
push 0x496b4c
push esi
call fcn.0043e300
add esp, 0xc
mov edi, dword [0x496b60]
mov dword [0x496b4c], esi
mov dword [0x496b5c], ebx
jmp 0x403b6c
mov esi, dword [0x496b4c]
cmp edi, 7
mov dword [ebp - 8], ebx
lea ecx, [ebp - 8]
mov eax, 0x496b4c
cmova eax, esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push ecx
call fcn.00424c80
add esp, 4
test eax, eax
jne 0x403b9a
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00403530
call fcn.0044194f
int3
Function at 0x404c70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x102c
call fcn.0043dab0
push esi
push 0x1000
lea eax, [esp + 0x34]
mov dword [esp + 8], 0
xorps xmm0, xmm0
push 0
push eax
movlpd qword [esp + 0x1c], xmm0
call fcn.0043e940
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [esp + 0x3c]
push 0xffffffffffffffff
push 0x1000
push eax
call fcn.00404b80
push dword [eax + 4]
push dword [eax]
call fcn.004468cf
mov esi, eax
lea eax, [esp + 0x50]
push eax
call fcn.00404bc0
add esp, 0x24
mov dword [esp + 8], 0x380000
push 0x38
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, eax
mov dword [esp + 0xc], ecx
test ecx, ecx
jne 0x404cfc
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
movzx eax, word [esp + 0xa]
push eax
push 0
push ecx
call fcn.0043e940
add esp, 0xc
lea eax, [esp + 8]
push str.__C:UsersPublic_ac.log
push eax
call dword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
push 0
push 0
push 0x20
push 3
push 2
push 0x80
lea eax, [esp + 0x20]
mov dword [esp + 0x30], 0x18
mov dword [esp + 0x38], eax
lea eax, [esp + 0x28]
push 0
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x3c], 0
push eax
push 0x100004
lea eax, [esp + 0x2c]
mov dword [esp + 0x4c], 0x40
push eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
call dword [sym.imp.ntdll.dll_NtCreateFile]
test eax, eax
js 0x404dad
push 0
or eax, 0xffffffff
test esi, esi
push 0
cmovs esi, eax
lea eax, [esp + 0x38]
push esi
push eax
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
push dword [esp + 0x24]
call dword [sym.imp.ntdll.dll_NtWriteFile]
push dword [esp + 4]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x404dbc
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409c80
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
lea eax, [ebp - 0x228]
push esi
push edi
push 0x228
push 0
push eax
mov edi, ecx
call fcn.0043e940
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x22c]
cmp esi, 0xffffffff
jne 0x409ccc
push 0x22c
push 0
push eax
call fcn.0043e940
add esp, 0xc
jmp 0x409d45
push eax
push esi
mov dword [ebp - 0x22c], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x409d01
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x22c
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.0043e940
add esp, 0xc
jmp 0x409d45
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp dword [ebp - 0x224], edi
je 0x409d3d
lea eax, [ebp - 0x22c]
push eax
push esi
call ebx
test eax, eax
jne 0x409d08
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x22c
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.0043e940
add esp, 0xc
jmp 0x409d44
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x22c]
mov ecx, 0x8b
mov edi, eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412340
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x462eb0
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.0043ca5c
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0043bf42
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.00412400
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x421570
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
jmp 0x42158e
mov eax, dword [ebp - 4]
mov dword [eax + 0x28], 1
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x4215b6
xor al, al
jmp 0x42171f
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
mov ecx, dword [ebp - 0x1c]
add eax, dword [ecx + 0x3c]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
cmp dword [edx], 0x4550
je 0x4215d7
xor al, al
jmp 0x42171f
mov eax, 8
shl eax, 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + eax + 0x78]
mov eax, dword [ecx + eax + 0x7c]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x421607
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x24], 1
mov al, 1
jmp 0x42171f
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
add ecx, dword [ebp - 0x38]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0xc]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x18]
call fcn.00421510
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4216f6
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
mov ecx, dword [ebp - 0x10]
add eax, dword [ecx + 0x10]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx], 0
je 0x4216e8
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 0x24]
movsx eax, byte [edx + ecx]
test eax, eax
je 0x421686
mov dword [ebp - 0x28], 0
jmp 0x4216bf
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 0
jmp 0x42169f
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 4
jae 0x4216b9
imul edx, dword [ebp - 0x18], 0x1f
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 8]
movsx ecx, byte [eax]
add edx, ecx
mov dword [ebp - 0x18], edx
jmp 0x421696
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x28]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x28], eax
mov edx, dword [ebp - 0xc]
add edx, 4
mov dword [ebp - 0xc], edx
jmp 0x421658
mov eax, dword [ebp - 0x10]
add eax, 0x14
mov dword [ebp - 0x10], eax
jmp 0x421624
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x24], 0
jne 0x42170b
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x28]
mov dword [edx + 0x24], ecx
jmp 0x42171d
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret