joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140021210
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 8]
and eax, 8
test eax, eax
je 0x14002124f
mov rax, qword [rsp + 0x80]
add rax, 0x10
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
call qword [sym.imp.ntdll.dll_NtWriteFile]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0x103
jne 0x1400212d4
xor r8d, r8d
xor edx, edx
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jl 0x1400212d4
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jl 0x140021312
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x10]
add rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x80]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 8]
bts eax, 0x1f
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 8], eax
mov eax, dword [rsp + 0x50]
add rsp, 0x78
ret

Function at 0x140021700
Capabilities:
Set file attributes

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x14002173a
cmp dword [rsp + 0x34], 1
je 0x14002174d
cmp dword [rsp + 0x34], 2
je 0x140021769
jmp 0x1400217ad
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x60]
mov qword [rcx + 0x10], rax
jmp 0x1400217ad
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x10]
mov rcx, qword [rsp + 0x68]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x60]
mov qword [rcx + 0x10], rax
jmp 0x1400217ad
mov rax, qword [rsp + 0x60]
add rax, 0x10
mov rdx, rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax]
call sym.ProcessHacker.exe_PhGetFileSize
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x140021793
mov eax, dword [rsp + 0x30]
jmp 0x140021805
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x10]
mov rcx, qword [rsp + 0x68]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x60]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 8]
and eax, 8
test eax, eax
jne 0x140021801
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0xe
mov r9d, 8
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax]
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x140021801
mov eax, dword [rsp + 0x30]
jmp 0x140021805
mov eax, dword [rsp + 0x30]
add rsp, 0x58
ret
Function at 0x140021be0
Capabilities:
Terminate process

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x28
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140022180
Capabilities:
Delete registry key
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov qword [rsp + 0x48], 0
cmp qword [rsp + 0xb0], 0
jne 0x1400221b4
lea rax, str.KProcessHacker2
mov qword [rsp + 0xb0], rax
lea r9, str.Parameters
mov r8, qword [rsp + 0xb0]
lea rdx, str.SystemCurrentControlSetServices_
mov ecx, 3
call sym.ProcessHacker.exe_PhConcatStrings
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
lea rcx, [rsp + 0x44]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, 0xfffffffffffffffd
mov edx, 0x30006
lea rcx, [rsp + 0x48]
call sym.ProcessHacker.exe_PhCreateKey
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x50]
call sym.ProcessHacker.exe_PhDereferenceObject
cmp dword [rsp + 0x40], 0
jge 0x14002222f
mov eax, dword [rsp + 0x40]
jmp 0x14002231d
lea rdx, str.SecurityLevel
lea rcx, [rsp + 0x58]
call fcn.140020210
mov rax, qword [rsp + 0xb8]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x14002227b
jmp 0x1400222f5
mov rax, qword [rsp + 0xb8]
movzx eax, byte [rax + 4]
test eax, eax
je 0x1400222f5
lea rdx, str.DynamicConfiguration
lea rcx, [rsp + 0x58]
call fcn.140020210
mov dword [rsp + 0x68], 2
mov dword [rsp + 0x6c], 1
mov eax, 0x24
imul rax, rax, 0
lea rax, [rsp + rax + 0x70]
mov rcx, rax
call fcn.140022fb0
test eax, eax
jl 0x1400222f5
mov dword [rsp + 0x28], 0x2c
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x14002230e
cmp dword [rsp + 0x44], 1
jne 0x14002230e
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [rsp + 0x40]
add rsp, 0xa8
ret
Function at 0x140022360
Capabilities:
Create service
Delete service
Start service

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov dword [rsp + 0x70], 0
cmp qword [rsp + 0xa0], 0
jne 0x140022398
lea rax, str.KProcessHacker2
mov qword [rsp + 0xa0], rax
mov r8d, 2
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x1400223c5
call fcn.140021c20
jmp 0x1400224c8
lea rax, [0x140110d6c]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 1
mov r9d, 0xf01ff
mov r8, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x1400224ad
cmp qword [rsp + 0xb0], 0
je 0x140022483
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa0]
call sym.ProcessHacker.exe_KphSetParameters
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
jge 0x140022483
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
jmp 0x1400224a0
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1400224a0
call fcn.140021c20
mov dword [rsp + 0x70], eax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400224b6
call fcn.140021c20
mov dword [rsp + 0x70], eax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x70]
add rsp, 0x98
ret

Function at 0x1400224d0
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0x70], 0
jne 0x1400224f5
lea rax, str.KProcessHacker2
mov qword [rsp + 0x70], rax
mov r8d, 1
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140022519
call fcn.140021c20
jmp 0x14002258e
mov r8d, 0x10020
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140022576
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140022569
call fcn.140021c20
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14002257f
call fcn.140021c20
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x20]
add rsp, 0x68
ret
Function at 0x140023770
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x78
call fcn.1400233f0
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x90]
call fcn.140023330
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_LsaLookupNames2]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x140023935
mov eax, 0x18
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
cmp dword [rcx + rax], 7
je 0x14002392d
mov eax, 0x18
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
cmp dword [rcx + rax], 8
je 0x14002392d
cmp qword [rsp + 0x98], 0
je 0x14002388b
mov eax, 0x18
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + rax + 8]
call qword [sym.imp.ntdll.dll_RtlLengthSid]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov ecx, eax
call sym.ProcessHacker.exe_PhAllocate
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x34]
mov ecx, 0x18
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rdx + rcx + 8]
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x48]
mov qword [rax], rcx
cmp qword [rsp + 0xa0], 0
je 0x140023905
mov eax, 0x18
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
cmp dword [rcx + rax + 0x10], 0
jl 0x1400238f5
mov eax, 0x18
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
movsxd rax, dword [rcx + rax + 0x10]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x40]
add rax, qword [rcx + 8]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov edx, eax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
call sym.ProcessHacker.exe_PhCreateStringEx
mov rcx, qword [rsp + 0xa0]
mov qword [rcx], rax
jmp 0x140023905
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov rcx, qword [rsp + 0xa0]
mov qword [rcx], rax
cmp qword [rsp + 0xa8], 0
je 0x14002392b
mov eax, 0x18
imul rax, rax, 0
mov rcx, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0x38]
mov eax, dword [rdx + rax]
mov dword [rcx], eax
jmp 0x140023935
mov dword [rsp + 0x30], 0xc0000073
cmp qword [rsp + 0x40], 0
je 0x140023948
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
cmp qword [rsp + 0x38], 0
je 0x14002395b
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
mov eax, dword [rsp + 0x30]
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x140023d10
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov qword [rax], rcx
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov r8d, 0x40
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call fcn.1400241f0
jmp 0x140023d6c
mov rax, qword [rsp + 0x30]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140023d85
mov eax, 0xc000012f
jmp 0x140023ecd
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x3c]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x140023da2
mov eax, 0xc000007b
jmp 0x140023ecd
cmp dword [rsp + 0x20], 0x10000000
jae 0x140023db7
mov eax, dword [rsp + 0x20]
cmp rax, qword [rsp + 0x60]
jb 0x140023dc1
mov eax, 0xc000007b
jmp 0x140023ecd
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x10], rax
mov r8d, 0x18
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsp + 0x50]
call fcn.1400241f0
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x10]
movzx eax, word [rax + 0x14]
add eax, 0x18
cdqe
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x10]
movzx ecx, word [rcx + 6]
imul rcx, rcx, 0x28
add rax, rcx
mov r8, rax
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsp + 0x50]
call fcn.1400241f0
jmp 0x140023e3d
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x10]
cmp dword [rax], 0x4550
je 0x140023e55
mov eax, 0xc000007b
jmp 0x140023ecd
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x10]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rax + 0x18]
mov word [rcx + 0x28], ax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x28]
cmp eax, 0x10b
je 0x140023e92
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x28]
cmp eax, 0x20b
je 0x140023e92
mov eax, 0xc000007b
jmp 0x140023ecd
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x10]
movzx eax, word [rax + 6]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x18], eax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x10]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x10]
movzx ecx, word [rcx + 0x14]
lea rax, [rax + rcx + 0x18]
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x20], rax
xor eax, eax
add rsp, 0x48
ret
Function at 0x140023fb0
Capabilities:
Map section object

Disassembly:
mov qword [rsp + 0x20], r9
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov byte [rsp + 0x50], 0
mov qword [rsp + 0x68], 0
cmp qword [rsp + 0xa0], 0
jne 0x140023ff9
cmp qword [rsp + 0xa8], 0
jne 0x140023ff9
mov eax, 0xc0000030
jmp 0x1400241e0
cmp qword [rsp + 0xa8], 0
jne 0x14002407b
movzx eax, byte [rsp + 0xb0]
test eax, eax
jne 0x14002401a
mov dword [rsp + 0x60], 0x106
jmp 0x140024022
mov dword [rsp + 0x60], 0
mov eax, dword [rsp + 0x60]
or eax, 0xa1
bts eax, 0x14
mov dword [rsp + 0x30], 0x60
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 1
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0xa8]
call sym.ProcessHacker.exe_PhCreateFileWin32
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jge 0x140024076
mov eax, dword [rsp + 0x54]
jmp 0x1400241e0
mov byte [rsp + 0x50], 1
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0xa8]
call sym.ProcessHacker.exe_PhGetFileSize
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jge 0x14002409d
jmp 0x1400241b2
movzx eax, byte [rsp + 0xb0]
test eax, eax
je 0x1400240b3
mov dword [rsp + 0x5c], 0x20
jmp 0x1400240bb
mov dword [rsp + 0x5c], 0x40
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x8000000
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x70]
xor r8d, r8d
mov edx, 0xf001f
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtCreateSection]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jge 0x140024100
jmp 0x1400241b2
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x78], 0
movzx eax, byte [rsp + 0xb0]
test eax, eax
je 0x14002412c
mov dword [rsp + 0x58], 0x20
jmp 0x140024134
mov dword [rsp + 0x58], 0x40
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 1
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x78]
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jge 0x140024192
jmp 0x1400241b2
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x78]
mov qword [rax], rcx
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x70]
mov qword [rax], rcx
cmp qword [rsp + 0x68], 0
je 0x1400241c5
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtClose]
movzx eax, byte [rsp + 0x50]
test eax, eax
je 0x1400241dc
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [rsp + 0x54]
add rsp, 0x98
ret
Function at 0x140024570
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x188
mov rax, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x198]
mov qword [rax], rcx
mov qword [rsp + 0x20], 0
mov r9d, 0x40
lea r8, [rsp + 0x40]
mov rdx, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x190]
call sym.ProcessHacker.exe_PhReadVirtualMemory
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x1400245d6
mov eax, dword [rsp + 0x30]
jmp 0x14002479f
movzx eax, word [rsp + 0x40]
cmp eax, 0x5a4d
je 0x1400245ec
mov eax, 0xc000012f
jmp 0x14002479f
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140024605
cmp dword [rsp + 0x34], 0x10000000
jb 0x14002460f
mov eax, 0xc000007b
jmp 0x14002479f
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x198]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], 0
mov r9d, 0xf8
lea r8, [rsp + 0x80]
mov rdx, rax
mov rcx, qword [rsp + 0x190]
call sym.ProcessHacker.exe_PhReadVirtualMemory
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x14002465c
mov eax, dword [rsp + 0x30]
jmp 0x14002479f
cmp dword [rsp + 0x80], 0x4550
je 0x140024673
mov eax, 0xc000007b
jmp 0x14002479f
mov rax, qword [rsp + 0x1a0]
movzx ecx, word [rsp + 0x98]
mov word [rax + 0x20], cx
mov rax, qword [rsp + 0x1a0]
movzx eax, word [rax + 0x20]
cmp eax, 0x10b
je 0x1400246b7
mov rax, qword [rsp + 0x1a0]
movzx eax, word [rax + 0x20]
cmp eax, 0x20b
je 0x1400246b7
mov eax, 0xc000007b
jmp 0x14002479f
movzx eax, word [rsp + 0x86]
mov rcx, qword [rsp + 0x1a0]
mov dword [rcx + 0x10], eax
movzx eax, word [rsp + 0x94]
add eax, 0x18
cdqe
mov rcx, qword [rsp + 0x1a0]
mov ecx, dword [rcx + 0x10]
imul rcx, rcx, 0x28
add rax, rcx
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0x100000
jbe 0x140024701
mov eax, 0xc000007b
jmp 0x14002479f
mov eax, dword [rsp + 0x38]
mov ecx, eax
call sym.ProcessHacker.exe_PhAllocate
mov rcx, qword [rsp + 0x1a0]
mov qword [rcx + 8], rax
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x198]
add rdx, rcx
mov rcx, rdx
mov qword [rsp + 0x20], 0
mov r9d, eax
mov rax, qword [rsp + 0x1a0]
mov r8, qword [rax + 8]
mov rdx, rcx
mov rcx, qword [rsp + 0x190]
call sym.ProcessHacker.exe_PhReadVirtualMemory
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x140024778
mov rax, qword [rsp + 0x1a0]
mov rcx, qword [rax + 8]
call sym.ProcessHacker.exe_PhFree
mov eax, dword [rsp + 0x30]
jmp 0x14002479f
mov rax, qword [rsp + 0x1a0]
mov rax, qword [rax + 8]
movzx ecx, word [rsp + 0x94]
lea rax, [rax + rcx + 0x18]
mov rcx, qword [rsp + 0x1a0]
mov qword [rcx + 0x18], rax
xor eax, eax
add rsp, 0x188
ret
Function at 0x140025d60
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0x67452301
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0xefcdab89
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0x98badcfe
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0x10325476
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0
ret

Function at 0x140027d60
Capabilities:
Terminate process

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
call sym.ProcessHacker.exe_KphIsConnected
movzx eax, al
test eax, eax
je 0x140027d9b
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call sym.ProcessHacker.exe_KphTerminateProcess
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xc00000bb
je 0x140027d9b
mov eax, dword [rsp + 0x20]
jmp 0x140027daa
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtTerminateProcess]
add rsp, 0x38
ret

Function at 0x140027e60
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtSuspendThread]
add rsp, 0x28
ret

Function at 0x140027e90
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtResumeThread]
add rsp, 0x28
ret
Function at 0x1400295e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
lea rdx, str.SetProcessDEPPolicy
lea rcx, str.kernel32.dll
call fcn.140015cc0
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x14002961c
mov eax, 0xc00000bb
jmp 0x14002973a
mov dword [rsp + 0x50], 0
mov eax, dword [rsp + 0x88]
and eax, 1
test eax, eax
je 0x14002963d
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x88]
and eax, 2
test eax, eax
je 0x140029656
mov eax, dword [rsp + 0x50]
or eax, 2
mov dword [rsp + 0x50], eax
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3c
jb 0x1400296b3
mov eax, dword [rsp + 0x50]
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntdll.dll_RtlCreateUserThread]
mov dword [rsp + 0x54], eax
jmp 0x140029705
mov eax, dword [rsp + 0x50]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x1400296fc
mov dword [rsp + 0x54], 0
jmp 0x140029705
call fcn.140021c20
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jge 0x140029712
mov eax, dword [rsp + 0x54]
jmp 0x14002973a
mov r8, qword [rsp + 0x90]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov dword [rsp + 0x54], eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [rsp + 0x54]
add rsp, 0x78
ret
Function at 0x14002a970
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x30], 0x200
mov eax, dword [rsp + 0x30]
mov ecx, eax
call sym.ProcessHacker.exe_PhAllocate
mov qword [rsp + 0x38], rax
xor eax, eax
cmp eax, 1
je 0x14002aa0f
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0x80000005
je 0x14002a9e5
cmp dword [rsp + 0x34], 0xc0000023
je 0x14002a9e5
cmp dword [rsp + 0x34], 0xc0000004
jne 0x14002aa0b
mov rcx, qword [rsp + 0x38]
call sym.ProcessHacker.exe_PhFree
mov eax, dword [rsp + 0x30]
shl eax, 1
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov ecx, eax
call sym.ProcessHacker.exe_PhAllocate
mov qword [rsp + 0x38], rax
jmp 0x14002aa0d
jmp 0x14002aa0f
jmp 0x14002a99a
cmp dword [rsp + 0x34], 0
jl 0x14002aa25
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
mov qword [rax], rcx
jmp 0x14002aa2f
mov rcx, qword [rsp + 0x38]
call sym.ProcessHacker.exe_PhFree
mov eax, dword [rsp + 0x34]
add rsp, 0x58
ret

Function at 0x14002aa40
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x20], 5
mov r9d, 0x18
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x14002aa82
mov eax, dword [rsp + 0x30]
jmp 0x14002aa93
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
mov eax, dword [rsp + 0x30]
add rsp, 0x68
ret

Function at 0x14002aaa0
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], 0x14
mov r9d, 8
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
add rsp, 0x58
ret