joyce8/EMBER2024-capa huggingface dataset:
Function at 0x486700
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x5ac004]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x48], ecx
mov cl, al
push edi
mov edi, edx
mov byte [ebp - 0x41], al
call fcn.00486660
xor ecx, ecx
mov dword [ebp - 0x40], 0x3c
mov ebx, eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], esi
test ebx, ebx
je 0x48675a
mov eax, dword [ebx + 4]
jmp 0x48675c
xor eax, eax
cmp byte [ebp - 0x41], cl
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x38], eax
mov eax, str.runas
cmove eax, ecx
mov dword [ebp - 0x3c], 0x400
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x24], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4867a2
mov eax, dword [ebp - 8]
test eax, eax
je 0x48679d
push eax
call dword [sym.imp.ntdll.dll_NtClose]
xor esi, esi
jmp 0x4867b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4867b7
movzx esi, si
or esi, 0xc0070000
test ebx, ebx
je 0x4867ce
lea ecx, [ebx - 8]
or edx, 0xffffffff
lock xadd dword [ecx + 4], edx
dec edx
jne 0x4867ce
call fcn.004b3960
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051e068
mov esp, ebp
pop ebp
ret 8
Function at 0x48dcc0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5ac004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
test byte [ebx + 0xbc], 4
jne 0x48ddd8
mov eax, dword [ebx + 0x48]
push dword [eax + 8]
push 0x5afca0
call sym.ProcessHacker.exe_PhConcatStringRef2
push 0
push eax
push 0xfffffffffffffffd
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push 0x20019
push eax
call sym.ProcessHacker.exe_PhOpenKey
test eax, eax
js 0x48ddbb
mov eax, dword [ebp - 8]
push 0x100
push 4
push dword [0x5b1dac]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0x10
mov dword [ebp - 0xc], 0x100
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
lea ecx, [ecx]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push esi
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ntdll.dll_NtQueryKey]
mov edi, eax
test edi, edi
jns 0x48dd92
push esi
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp edi, 0x80000005
jne 0x48ddb2
push dword ds:[ebp - 0xc]
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
sub dword [ebp - 0x10], 1
mov esi, eax
jne 0x48dd40
test edi, edi
js 0x48ddb2
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push esi
push 0
push dword [0x5b1dac]
mov dword [ebx + 0x118], eax
mov dword [ebx + 0x11c], ecx
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [ebp - 0x14]
or eax, 0xffffffff
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x48ddd1
call fcn.004b3960
or dword [ebx + 0xbc], 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051e068
mov esp, ebp
pop ebp
ret
Function at 0x493100
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5ac004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
mov ecx, dword [edi + 0x14]
cmp ecx, dword [0x5b343c]
jne 0x493142
mov ecx, edi
call fcn.00494340
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e068
mov esp, ebp
pop ebp
ret
cmp ecx, dword [0x5b3444]
jne 0x49324a
mov eax, dword [edi + 0x24]
sub eax, dword [edi + 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x28]
sub eax, dword [edi + 0x20]
push ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetWindowDC]
mov ebx, eax
test ebx, ebx
je 0x493237
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp - 8]
mov esi, eax
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push esi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
push esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp byte [0x5b457d], 0
je 0x4931cd
mov ecx, dword [0x5b4498]
sub ecx, 1
jne 0x4931f2
push 0x2b2b2b
jmp 0x4931d2
push 0xffffff
push esi
call dword [sym.imp.GDI32.dll_SetDCBrushColor]
push 0x12
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
push 0xcc0020
push 0
push 0
push esi
push dword [edi + 0x28]
push dword [edi + 0x24]
push dword [edi + 0x20]
push dword [edi + 0x1c]
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword ds:[ebp - 0x1c]
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e068
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x5b3450]
xor eax, eax
mov edx, dword [ecx]
test edx, edx
je 0x49326f
mov ecx, dword [ecx + 8]
jmp 0x493260
mov esi, dword [ecx]
cmp ebx, dword [esi + 0x5c]
je 0x493282
inc eax
add ecx, 4
cmp eax, edx
jb 0x493260
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e068
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x18]
lea eax, [edi + 0x1c]
push eax
mov ecx, esi
call fcn.004944e0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051e068
mov esp, ebp
pop ebp
ret
Function at 0x494340
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5ac004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov eax, dword [edi + 0x24]
sub eax, dword [edi + 0x1c]
push dword [edi + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x28]
sub eax, dword [edi + 0x20]
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetWindowDC]
mov ebx, eax
test ebx, ebx
je 0x4944b7
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp - 8]
mov esi, eax
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push esi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
push esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp byte [0x5b457d], 0
je 0x4943e2
mov ecx, dword [0x5b4498]
sub ecx, 0
je 0x4943e2
sub ecx, 1
jne 0x49440b
push 0xffffff
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x2b2b2b
jmp 0x4943f0
push 0
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xffffff
push esi
call dword [sym.imp.GDI32.dll_SetDCBrushColor]
push 0x12
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
cmp byte [0x5b3029], 0
jne 0x49441d
cmp byte [0x5b302b], 0
je 0x494452
cmp byte [0x5b302a], 0
je 0x49443e
lea eax, [ebp - 0x14]
push eax
push eax
push 2
push 1
push esi
push dword [0x5b34e8]
call dword [sym.imp.UxTheme.dll_DrawThemeBackground]
jmp 0x494452
push 5
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
push dword [0x5b3464]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x25
lea eax, [ebp - 0x14]
push eax
push 4
push str.Back
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
push 0xcc0020
push 0
push 0
push esi
push dword [edi + 0x28]
push dword [edi + 0x24]
push dword [edi + 0x20]
push dword [edi + 0x1c]
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword ds:[ebp - 0x1c]
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword ds:[ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051e068
mov esp, ebp
pop ebp
ret
Function at 0x494ee0
Capabilities:
Hide graphical window

Disassembly:
cmp dword [0x5b34b4], 0
push ebx
push esi
push edi
je 0x494fae
mov eax, dword [0x5b3450]
xor ecx, ecx
xor esi, esi
mov dword [0x5b34b4], ecx
mov dword [0x5b34f0], ecx
cmp dword [eax], ecx
jbe 0x494f78
lea esp, [esp]
mov eax, dword [eax + 8]
push 0
push ecx
push 3
mov ebx, dword [eax + esi*4]
push ebx
mov edi, dword [ebx + 0xc]
mov ecx, edi
call dword [0x5404bc]
call edi
mov edi, dword [ebx + 0x20]
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 3
push eax
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push dword [ebx + 0x58]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x494f66
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x5b3450]
inc esi
cmp esi, dword [eax]
jae 0x494f78
mov ecx, dword [0x5b34b4]
jmp 0x494f10
push 0
push dword [0x5b34bc]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x5b343c]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x5b3444]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
jmp fcn.00494920
pop edi
pop esi
pop ebx
ret
Function at 0x495e40
Capabilities:
Get system information on windows

Disassembly:
movsx eax, byte [0x5b1da8]
push esi
push edi
mov dword [0x5b352c], eax
shl eax, 2
push eax
push 4
push dword [0x5b1dac]
mov dword [0x5b3594], 0
mov dword [0x5b3598], 0
mov dword [0x5b3500], 0
mov dword [0x5b3504], 0
mov dword [0x5b35e0], 0
mov dword [0x5b35e4], 0
mov dword [0x5b35e8], 0
mov dword [0x5b35ec], 0
mov dword [0x5b35b4], 0
mov dword [0x5b35b8], 0
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [0x5b3524], eax
mov eax, dword [0x5b352c]
lea ecx, [eax*8]
sub ecx, eax
shl ecx, 2
push ecx
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [0x5b34f8], eax
mov eax, dword [0x5b352c]
lea eax, [eax + eax*2]
shl eax, 3
push eax
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [0x5b35a8], eax
mov eax, dword [0x5b352c]
lea esi, [eax + eax*2]
shl esi, 3
push esi
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword [0x5b352c]
mov edx, eax
mov dword [0x5b35a0], edx
mov dword [0x5b35cc], 0
mov dword [0x5b35c4], 0
mov dword [0x5b35c8], 0
mov byte [0x5b35d0], 0
mov dword [0x5b35d4], 0
mov dword [0x5b35d8], 0
mov dword [0x5b35dc], 0xffffffff
test ecx, ecx
je 0x495fbc
mov eax, dword [0x5b34f8]
add eax, 4
mov dword [eax + 4], 0
lea eax, [eax + 0x1c]
mov dword [eax - 0x20], 0
mov dword [eax - 0x1c], 0
mov byte [eax - 0x14], 0
mov dword [eax - 0x10], 0
mov dword [eax - 0xc], 0
mov dword [eax - 8], 0xffffffff
sub ecx, 1
jne 0x495f86
push esi
push edx
push 0
push 0
push 0xb
mov dword [0x5b358c], 0
call dword [sym.imp.ntdll.dll_NtPowerInformation]
mov edi, dword [0x5b35a0]
test eax, eax
jns 0x495fea
push esi
push 0
push edi
call fcn.0051fd40
add esp, 0xc
mov esi, dword [0x5b352c]
xor ecx, ecx
mov dword [0x5b350c], ecx
test esi, esi
je 0x496013
lea edx, [edi + 4]
nop
cmp ecx, dword [edx]
cmovb ecx, dword [edx]
lea edx, [edx + 0x18]
sub esi, 1
jne 0x496000
mov dword [0x5b350c], ecx
pop edi
mov dword [0x5b35bc], 0
mov dword [0x5b3508], 0
pop esi
jmp fcn.00497d60
Function at 0x497d60
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x5ac004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x100
push 4
push dword [0x5b1dac]
mov dword [ebp - 8], 0x100
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push 0x64
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
xor esi, esi
cmp edi, 0xc0000004
jne 0x497df4
jmp 0x497db0
cmp esi, 8
jae 0x497e11
push ebx
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [ebp - 8]
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push 0x64
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
inc esi
cmp edi, 0xc0000004
je 0x497db0
test edi, edi
js 0x497e11
mov eax, edi
mov dword [0x5b35bc], ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e068
mov esp, ebp
pop ebp
ret
push ebx
push 0
lfence
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051e068
mov esp, ebp
pop ebp
ret
Function at 0x4ab4c0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
mov eax, dword [0x5ac004]
xor eax, esp
mov dword [esp + 0x108], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ecx]
push ebx
mov ebx, dword [ecx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0xfc], eax
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ecx + 8]
movzx eax, ax
mov ch, al
mov cl, ah
movzx eax, word [esp + 0x106]
mov word [esp + 0x104], cx
mov ch, al
mov cl, ah
lea eax, [esi + 0x10]
push eax
push 4
push dword [0x5b1dac]
bswap edx
mov dword [esp + 0x20], edx
mov word [esp + 0x112], cx
mov dword [esp + 0x24], eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword [esp + 0x14]
push esi
push dword [esp + 0x14]
mov dword [eax], ecx
mov ecx, dword [esp + 0x10c]
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [esp + 0x14], eax
mov dword [eax + 0xc], ebx
add eax, 0x10
push eax
call fcn.00521a30
mov bl, byte [ebp + 0x18]
add esp, 0xc
cmp bl, 3
jne 0x4ab5ec
lea eax, [esi + 0x10]
mov dword [esp + 0x28], 0x67452301
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x20]
push eax
mov edx, esi
mov dword [esp + 0x30], 0xefcdab89
mov dword [esp + 0x34], 0x98badcfe
mov dword [esp + 0x38], 0x10325476
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call fcn.0050d0c0
lea ecx, [esp + 0x20]
call fcn.0050d1a0
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x78]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x14], eax
jmp 0x4ab68f
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x88]
mov esi, dword [esp + 0xc]
mov edx, esi
push eax
mov dword [esp + 0xa4], 0x67452301
mov dword [esp + 0xa8], 0xefcdab89
mov dword [esp + 0xac], 0x98badcfe
mov dword [esp + 0xb0], 0x10325476
mov dword [esp + 0xb4], 0xc3d2e1f0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
call fcn.0050f340
lea edx, ds:[esp + 0x100]
lea ecx, [esp + 0x88]
call fcn.0050f400
mov eax, dword [esp + 0x10c]
mov bl, 5
mov edi, dword [esp + 0x100]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x108]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x104]
mov dword [esp + 0xc], eax
push esi
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov edx, dword ds:[esp + 0x1c]
mov eax, dword [esp + 0xc]
shl bl, 4
mov dword [edx], edi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x10]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x14]
mov dword [edx + 0xc], eax
mov eax, dword [edx]
bswap eax
mov dword [edx], eax
movzx eax, word [edx + 4]
mov ch, al
mov cl, ah
movzx eax, word [edx + 6]
mov word [edx + 4], cx
mov ch, al
mov cl, ah
mov ax, cx
mov ecx, dword [esp + 0x114]
mov word [edx + 6], ax
shr eax, 8
and al, 0xf
or al, bl
mov byte [edx + 7], al
mov al, byte [edx + 8]
pop edi
and al, 0x3f
pop esi
or al, 0x80
pop ebx
xor ecx, esp
mov byte [edx + 8], al
call fcn.0051e068
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4ac600
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
test byte [0x5afdec], 1
push esi
push edi
jne 0x4ac685
mov esi, 0x5afdec
lock bts dword ds:[esi], 0x1f
jae 0x4ac636
test byte [0x5afdec], 1
jne 0x4ac685
xor edx, edx
mov ecx, esi
call sym.ProcessHacker.exe_PhfWaitForEvent
jmp 0x4ac685
push 4
push 0x5b3828
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4ac658
mov dword [0x5b3828], 0x2e
push 4
push 0x5b384c
push 0xf
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4ac67a
mov dword [0x5b384c], 0x2c
mov ecx, esi
call sym.ProcessHacker.exe_PhfEndInitOnce
mov eax, dword [ebp + 0xc]
mov ecx, 3
mov dword [esp + 0x10], eax
xor eax, eax
cmp byte [ebp + 0x10], al
push 0
cmovne eax, ecx
mov dword [esp + 0x18], 0
push 0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
push dword [ebp + 8]
mov dword [esp + 0x2c], 0x5b3828
push 0
push 0x400
mov dword [esp + 0x38], 0x5b384c
mov dword [esp + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
push dword [0x5b1d70]
mov edi, eax
lea esi, [edi + edi]
lea ecx, [esi + 0xa]
push ecx
call sym.ProcessHacker.exe_PhCreateObject
push edi
xor edx, edx
mov dword [esp + 0x10], eax
lea ecx, [eax + 8]
mov dword [eax], esi
mov dword [eax + 4], ecx
mov word [ecx + esi], dx
push dword [eax + 4]
lea eax, [esp + 0x18]
push eax
push dword [ebp + 8]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
test eax, eax
jne 0x4ac739
mov ecx, dword [esp + 0xc]
or eax, 0xffffffff
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4ac72f
call fcn.004b3960
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [esp + 0xc]
push dword [esi + 4]
call sym.ProcessHacker.exe_PhCountStringZ
add eax, eax
mov dword [esi], eax
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4addc0
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [0x5ac004]
xor eax, esp
mov dword [esp + 4], eax
mov ecx, dword [0x5b3840]
push esi
mov esi, dword [ebp + 8]
push edi
test ecx, ecx
je 0x4ade03
mov eax, dword [0x5b383c]
mov dword [esi], eax
mov dword [esi + 4], ecx
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 4
push 0x7ffe0030
call sym.ProcessHacker.exe_PhCountStringZ
lea ecx, ds:[eax + eax]
movzx eax, word [ecx + 0x7ffe002e]
mov edx, ecx
mov edi, eax
cmp eax, 0x5c
jne 0x4ade28
lea edx, [ecx - 2]
lea eax, [ecx - 2]
mov dword [esi], edx
cmp edi, 0x5c
mov dword [esi + 4], 0x7ffe0030
cmovne eax, ecx
xor ecx, ecx
mov dword [0x5b383c], eax
lea eax, [esp + 8]
lock or dword [eax], ecx
mov ecx, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
mov dword [0x5b3840], 0x7ffe0030
call fcn.0051e068
mov esp, ebp
pop ebp
ret 4
Function at 0x4ae0a0
Capabilities:
Create process on windows
Resolve function by parsing pe exports
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
lea eax, [esp + 0xc]
push ebx
push esi
push edi
push 0
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U_WithStatus]
mov edi, edi
test eax, eax
jns 0x4ae0d0
lfence
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4ae0f6
movzx eax, word [edx]
mov word [esp + 0x20], ax
add eax, 2
cmp dword [edx], 0xfffe
mov word [esp + 0x22], ax
mov eax, dword [edx + 4]
mov dword [esp + 0x24], eax
ja 0x4ae11c
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x4ae12a
movzx eax, word [esi]
mov word [esp + 0x28], ax
add eax, 2
cmp dword [esi], 0xfffe
mov word [esp + 0x2a], ax
mov eax, dword [esi + 4]
mov dword [esp + 0x2c], eax
jbe 0x4ae12a
mov eax, 0xc0000106
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x4ae13d
mov edi, dword [ecx + 4]
mov eax, dword [ecx + 8]
test edi, edi
jne 0x4ae143
jmp 0x4ae13f
xor eax, eax
lea edi, [esp + 0x18]
test eax, eax
jne 0x4ae156
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x10]
add eax, 0x78
test ecx, ecx
je 0x4ae173
mov esi, dword [ecx + 0xc]
mov ebx, dword [ecx + 0x10]
mov ecx, dword [ecx]
mov dword [esp + 0x14], esi
mov esi, dword [ebp + 0x14]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x14]
jmp 0x4ae17b
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0xc], ecx
push ebx
push ecx
push eax
push edi
push dword [ebp + 0x10]
test edx, edx
lea ecx, [esp + 0x2c]
lea eax, [esp + 0x34]
cmove eax, ecx
xor ecx, ecx
push eax
test esi, esi
lea eax, [esp + 0x40]
cmove eax, ecx
push eax
push dword [esp + 0x28]
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.ntdll.dll_RtlCreateProcessParameters]
mov ebx, dword [ebp + 0x1c]
mov esi, eax
test esi, esi
js 0x4ae1f2
lea eax, ds:[esp + 0x30]
push eax
push 0
push 0
mov al, bl
and al, 1
movzx eax, al
push eax
push dword [ebp + 0x20]
lea eax, [esp + 0x2c]
push 0
push 0
push dword [esp + 0x2c]
push 0x40
push eax
call dword [sym.imp.ntdll.dll_RtlCreateUserProcess]
push dword [esp + 0x10]
mov esi, eax
call dword [sym.imp.ntdll.dll_RtlDestroyProcessParameters]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
lea ecx, [ecx]
test esi, esi
js 0x4ae268
test bl, 4
jne 0x4ae215
push 0
push dword [esp + 0x3c]
call dword [sym.imp.ntdll.dll_NtResumeThread]
mov edx, dword [ebp + 0x24]
test edx, edx
je 0x4ae229
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov ecx, dword [ebp + 0x28]
test ecx, ecx
je 0x4ae238
mov eax, dword [esp + 0x34]
mov dword [ecx], eax
jmp 0x4ae246
push dword ds:[esp + 0x34]
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x4ae25e
mov eax, dword [esp + 0x38]
mov dword [ecx], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28
push dword [esp + 0x38]
call dword [sym.imp.ntdll.dll_NtClose]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28
Function at 0x4aef00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
push edi
push 0x38
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x40], 0x3c
push 0
push eax
call fcn.0051fd40
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov edi, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x3c], 0x400
mov dword [ebp - 0x24], 5
mov dword [ebp - 0x38], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4aefb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4aef5f
push eax
call sym.ProcessHacker.exe_PhGetNtMessage
jmp 0x4aef65
push eax
call sym.ProcessHacker.exe_PhGetWin32Message
mov esi, eax
test esi, esi
je 0x4aefa3
push dword [esi + 4]
push 0x54ace8
push str.Unable_to_execute_the_program.
push 0xfffe
push 0x20
push edi
call sym.ProcessHacker.exe_PhShowMessage2
add esp, 0x18
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4aefb8
call fcn.004b3960
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push str.Unable_to_execute_the_program.
push 0x57e1d4
push 0x10
push edi
call sym.ProcessHacker.exe_PhShowMessage
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc