joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140047370
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
cmp qword [rcx], rdx
jne 0x1400473ab
cmp dword [rcx + 0x10], 0xffffff65
jne 0x1400473ab
cmp word [rcx + 0x18], 0x43
jne 0x1400473ab
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1400473ab
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp sym.ProcessHacker.exe_PhCopyListView
add rsp, 0x20
pop rbx
ret

Function at 0x140048010
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0xe0
mov r14, rcx
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004817d
lea rdx, str.DebugSetProcessKillOnExit
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x14004817d
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004817d
lea rdx, str.DebugActiveProcessStop
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x14004817d
mov rcx, qword gs:[0x30]
mov qword [rsp + 0xf0], rbp
mov qword [rsp + 0xf8], rsi
xor sil, sil
mov rdx, qword [rcx + 0x60]
mov rcx, qword gs:[0x30]
movzx ebp, byte [rdx + 1]
mov rdx, qword [rcx + 0x60]
lea rcx, [rsp + 0x70]
mov byte [rdx + 1], sil
xor edx, edx
lea r8d, [rdx + 0x68]
call fcn.1400e2690
xor eax, eax
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x50], rax
xor r9d, r9d
mov qword [rsp + 0x58], rax
xor r8d, r8d
mov qword [rsp + 0x60], rax
xor edx, edx
lea rax, [rsp + 0x50]
mov rcx, r14
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140048136
xor ecx, ecx
call rdi
mov ecx, dword [rsp + 0x60]
call rbx
mov sil, 1
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140048146
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140048156
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword gs:[0x30]
movzx eax, sil
mov rsi, qword [rsp + 0xf8]
mov rdx, qword [rcx + 0x60]
mov byte [rdx + 1], bpl
mov rbp, qword [rsp + 0xf0]
jmp 0x14004817f
xor al, al
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x14005d5e0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x40
xor edx, edx
lea rcx, str.ProcessHacker
call qword [sym.imp.USER32.dll_FindWindowW]
mov rbx, rax
test rax, rax
je 0x14005d64c
mov r8d, dword [0x14015e7a8]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], 0x1388
mov edx, 0x8063
mov rcx, rbx
mov dword [rsp + 0x20], 1
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
cmp qword [rsp + 0x50], 0x1119
jne 0x14005d64c
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetForegroundWindow]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
add rsp, 0x40
pop rbx
ret
Function at 0x14005e2e0
Capabilities:
Create thread
Terminate process

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rdx, qword [rcx + 0x20]
lea rcx, [0x14015e760]
movzx eax, word [rdx + 0x70]
mov qword [rsp + 0x40], rax
mov rax, qword [rdx + 0x78]
xor edx, edx
mov qword [rsp + 0x48], rax
lea r8d, [rdx + 0x68]
call fcn.1400e2690
xor ebx, ebx
lea rax, [0x14005dd60]
mov qword [rsp + 0x28], rbx
lea rdx, [0x140155a20]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 3]
lea r8d, [rbx + 0x1c]
call sym.ProcessHacker.exe_PhParseCommandLine
test al, al
je 0x14005e357
mov eax, dword [0x14015e760]
bt eax, 0xe
jae 0x14005e37f
lea r8, str.Command_line_options:_n_n_c_n_ctype_command_type_n_cobject_command_object_n_caction_command_action_n_cvalue_command_value_n_debug_n_elevate_n_help_n_hide_n_installkph_n_newinstance_n_nokph_n_noplugins_n_nosettings_n_plugin_pluginname:value_n_priority_rhnl_n_s_n_selectpid_pid_to_select_n_selecttab_name_of_tab_to_select_n_settings_filename_n_sysinfo__section_name__n_uninstallkph_n_v_n
mov edx, 0x40
xor ecx, ecx
call sym.ProcessHacker.exe_PhShowMessage
mov eax, dword [0x14015e760]
bt eax, 0xe
jae 0x14005e37f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
test al, 0x20
je 0x14005e3e0
mov rcx, qword [0x14015e7d0]
lea rdx, str.kprocesshacker.sys
mov rcx, qword [rcx + 8]
call sym.ProcessHacker.exe_PhConcatStrings2
mov dword [rsp + 0x60], ebx
lea r8, [rsp + 0x60]
mov byte [rsp + 0x64], 1
mov rdx, qword [rax + 8]
call fcn.140019540
mov ebx, eax
test eax, eax
jns 0x14005e3d7
test dword [0x14015e760], 0x2000
jne 0x14005e3d7
xor r9d, r9d
lea rdx, str.Unable_to_install_KProcessHacker
mov r8d, eax
xor ecx, ecx
call sym.ProcessHacker.exe_PhShowStatus
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
test al, 0x40
je 0x14005e418
call fcn.140019690
mov ebx, eax
test eax, eax
jns 0x14005e40f
test dword [0x14015e760], 0x2000
jne 0x14005e40f
xor r9d, r9d
lea rdx, str.Unable_to_uninstall_KProcessHacker
mov r8d, eax
xor ecx, ecx
call sym.ProcessHacker.exe_PhShowStatus
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
bt eax, 0xc
jae 0x14005e45a
cmp byte [sym.ProcessHacker.exe_PhElevated], bl
jne 0x14005e45a
mov qword [rsp + 0x38], rbx
mov r9d, 5
mov dword [rsp + 0x30], ebx
xor r8d, r8d
mov dword [rsp + 0x28], 5
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 1
call fcn.140047bd0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
test al, al
jns 0x14005e468
add rsp, 0x50
pop rbx
jmp fcn.14004d4e0
add rsp, 0x50
pop rbx
ret
Function at 0x140062350
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
call fcn.1400b5140
cmp byte [0x140159a46], 0
je 0x140062367
call fcn.1400c5fb0
cmp byte [0x14015a416], 0
je 0x140062375
call fcn.140076b10
call fcn.14007a6e0
mov edx, dword [0x14015c5a4]
lea rcx, str.IconNotifyMask
call sym.ProcessHacker.exe_PhSetIntegerSetting
mov r8, qword [sym.ProcessHacker.exe_PhMainWndHandle]
lea rdx, str.MainWindowSize
lea rcx, str.MainWindowPosition
call sym.ProcessHacker.exe_PhSaveWindowPlacementToSetting
call fcn.1400623d0
mov rcx, qword [0x14015a728]
test rcx, rcx
je 0x1400623c4
mov rcx, qword [rcx + 8]
add rsp, 0x28
jmp fcn.1400c4280
add rsp, 0x28
ret
Function at 0x14007d1d0
Capabilities:
Check mutex on windows

Disassembly:
push rdi
sub rsp, 0x40
mov r8, qword [rdx + 8]
mov rax, rdx
mov rdi, rcx
mov edx, 1
lea rcx, [rsp + 0x60]
call qword [rax]
test eax, eax
js 0x14007d303
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x68]
mov qword [rsp + 0x50], rbx
xor edx, edx
xor ebx, ebx
mov qword [rsp + 0x20], rbx
lea r9d, [rbx + 8]
call qword [sym.imp.ntdll.dll_NtQueryMutant]
mov edx, 0x440
mov rcx, rdi
test eax, eax
js 0x14007d249
mov r8d, dword [rsp + 0x68]
lea r9d, [rbx + 1]
call qword [sym.imp.USER32.dll_SetDlgItemInt]
cmp byte [rsp + 0x6d], bl
lea rax, str.True
lea r8, str.False
cmovne r8, rax
jmp 0x14007d25d
lea r8, [0x140122a18]
call qword [sym.imp.USER32.dll_SetDlgItemTextW]
lea r8, [0x140122a18]
mov edx, 0x441
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetDlgItemTextW]
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3c
jb 0x14007d2de
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x30]
mov r9d, 0x10
mov qword [rsp + 0x20], rbx
lea edx, [r9 - 0xf]
call qword [sym.imp.ntdll.dll_NtQueryMutant]
test eax, eax
js 0x14007d2de
cmp qword [rsp + 0x30], rbx
je 0x14007d2d5
lea rcx, [rsp + 0x30]
call sym.ProcessHacker.exe_PhGetClientIdName
mov edx, 0x41e
mov rcx, rdi
mov rbx, rax
mov r8, qword [rax + 8]
call qword [sym.imp.USER32.dll_SetDlgItemTextW]
lea rcx, [rbx - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14007d2f3
call fcn.1400258b0
jmp 0x14007d2f3
lea r8, [0x14012fdb8]
jmp 0x14007d2e5
lea r8, [0x140122a18]
mov edx, 0x41e
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetDlgItemTextW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtClose]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14007d3e0
Capabilities:
Map section object

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x90
mov r8, qword [rdx + 8]
lea r15, [0x140122a18]
xor ebx, ebx
mov r14, rdx
mov rbp, rcx
mov qword [rax + 0x20], rbx
lea rcx, [rax + 0x10]
mov rdi, r15
mov esi, ebx
lea edx, [rbx + 5]
call qword [r14]
test eax, eax
jns 0x14007d439
mov r8, qword [r14 + 8]
lea edx, [rbx + 5]
lea rcx, [rsp + 0xc8]
call qword [r14]
test eax, eax
js 0x14007d5e7
mov rcx, qword [rsp + 0xc8]
lea r8, [rsp + 0x58]
mov r9d, 0x18
mov qword [rsp + 0x20], rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_NtQuerySection]
test eax, eax
js 0x14007d4db
mov ecx, dword [rsp + 0x60]
bt ecx, 0x1b
jae 0x14007d470
lea rdi, [0x140122a28]
jmp 0x14007d49f
bt ecx, 0x17
jae 0x14007d47f
lea rdi, [0x140122990]
jmp 0x14007d49f
bt ecx, 0x18
jae 0x14007d48e
lea rdi, [0x140122a38]
jmp 0x14007d49f
and ecx, 0x4000000
lea rdi, str.Reserve
cmove rdi, r15
movzx eax, byte [0x140158728]
lea rcx, [rsp + 0x70]
xor r8d, r8d
mov byte [rsp + 0x7a], al
mov rax, qword [rsp + 0x68]
mov dword [rsp + 0x70], 0x10c
mov qword [rsp + 0x80], rax
lea edx, [r8 + 1]
call sym.ProcessHacker.exe_PhFormat
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov rsi, rax
mov rcx, qword [rsp + 0xc8]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x48], 2
lea r8, [rsp + 0xd0]
mov dword [rsp + 0x40], ebx
xor r9d, r9d
mov dword [rsp + 0x38], 1
or rdx, 0xffffffffffffffff
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x50], 1
mov qword [rsp + 0xd0], rbx
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
js 0x14007d58e
mov rdx, qword [rsp + 0xd0]
lea r8, [rsp + 0xd8]
or rcx, 0xffffffffffffffff
call sym.ProcessHacker.exe_PhGetProcessMappedFileName
mov rdx, qword [rsp + 0xd0]
or rcx, 0xffffffffffffffff
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
test ebx, ebx
mov rbx, qword [rsp + 0xd8]
js 0x14007d58e
mov rcx, rbx
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov rcx, rbx
call sym.ProcessHacker.exe_PhResolveDevicePrefix
test rax, rax
je 0x14007d58e
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov rbx, rax
mov r8, rdi
mov edx, 0x408
mov rcx, rbp
call qword [sym.imp.USER32.dll_SetDlgItemTextW]
test rsi, rsi
je 0x14007d5a8
mov r15, qword [rsi + 8]
mov r8, r15
mov edx, 0x44a
mov rcx, rbp
call qword [sym.imp.USER32.dll_SetDlgItemTextW]
test rbx, rbx
je 0x14007d5c4
mov r8, qword [rbx + 8]
jmp 0x14007d5cb
lea r8, [0x14012fdb8]
mov edx, 0x3ee
mov rcx, rbp
call qword [sym.imp.USER32.dll_SetDlgItemTextW]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.ntdll.dll_NtClose]
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14009c920
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov edi, edx
mov ecx, dword [0x14015e630]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r8d, dword [rbx + 4]
mov r9d, dword [rbx]
mov rcx, qword [rax]
mov r10, qword [rcx + 0x38]
add r8, r10
add r9, r8
cmp r9, r8
jb 0x14009c979
cmp r8, r10
jb 0x14009c979
cmp r9, qword [rcx + 0x40]
ja 0x14009c979
xor eax, eax
lea edx, [rdi - 1]
and rdx, r8
cmovne r8, rax
mov rax, r8
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14009cba0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
cmp dword [rcx + 4], 0
mov r14, r8
mov rdi, rcx
je 0x14009cc66
mov ecx, dword [0x14015e630]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [rdi + 4]
mov r8d, dword [rdi]
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x38]
add rsi, rdx
lea rax, [r8 + rsi]
cmp rax, rsi
jb 0x14009cc66
cmp rsi, rdx
jb 0x14009cc66
cmp rax, qword [rcx + 0x40]
ja 0x14009cc66
test rsi, rsi
je 0x14009cc66
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
jne 0x14009cc18
mov eax, 0xc0000017
jmp 0x14009cc6b
mov r8d, dword [rdi]
mov rdx, rsi
mov rcx, rax
call fcn.1400e19b0
cmp dword [rdi], 2
jb 0x14009cc4d
movzx ecx, byte [rbx + 1]
call qword [sym.imp.ntdll.dll_RtlLengthRequiredSid]
cmp dword [rdi], eax
jb 0x14009cc4d
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlValidSid]
test al, al
je 0x14009cc4d
mov qword [r14], rbx
xor eax, eax
jmp 0x14009cc6b
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, 0xc0000078
jmp 0x14009cc6b
mov eax, 0xc0000005
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14009cc90
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov byte [rsp + 0x10], dl
push r14
sub rsp, 0x20
cmp dword [rcx + 4], 0
mov r14, r9
mov rsi, rcx
je 0x14009cde6
mov ecx, dword [0x14015e630]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [rsi + 4]
mov r8d, dword [rsi]
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x38]
add rbx, rdx
lea rax, [r8 + rbx]
cmp rax, rbx
jb 0x14009cde6
cmp rbx, rdx
jb 0x14009cde6
cmp rax, qword [rcx + 0x40]
ja 0x14009cde6
test rbx, rbx
je 0x14009cde6
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x14009cd1f
mov eax, 0xc0000017
jmp 0x14009cdeb
mov r8d, dword [rsi]
mov rdx, rbx
mov rcx, rax
call fcn.1400e19b0
mov edx, dword [rsi]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlValidRelativeSecurityDescriptor]
test al, al
jne 0x14009cd5b
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, 0xc0000079
jmp 0x14009cdeb
mov eax, dword [rsi]
lea rdx, [rsp + 0x38]
mov rcx, rdi
mov dword [rsp + 0x38], eax
call qword [sym.imp.ntdll.dll_RtlSelfRelativeToAbsoluteSD2]
mov ebx, eax
cmp eax, 0xc0000023
jne 0x14009cdc5
mov r8d, dword [rsp + 0x38]
mov edx, 4
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rsi]
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call fcn.1400e19b0
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea rdx, [rsp + 0x38]
mov rcx, rbx
mov rdi, rbx
call qword [sym.imp.ntdll.dll_RtlSelfRelativeToAbsoluteSD2]
mov ebx, eax
test ebx, ebx
jns 0x14009cddf
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
jmp 0x14009cdeb
mov qword [r14], rdi
xor eax, eax
jmp 0x14009cdeb
mov eax, 0xc0000005
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14009f080
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rbp, rcx
lea rdx, [0x140154c88]
lea rcx, [rsp + 0x30]
mov r8b, 2
call qword [sym.imp.ntdll.dll_RtlInitializeSid]
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
mov edx, 1
lea rcx, [rsp + 0x30]
mov dword [rax], 0x20
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
lea rcx, [0x140152b30]
mov dword [rax], 0x220
call qword [sym.imp.ntdll.dll_RtlLengthSid]
lea rcx, [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ntdll.dll_RtlLengthSid]
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov edx, 4
add eax, 0x48
add ebx, eax
mov r8d, ebx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rcx, rax
mov edx, 1
mov rsi, rax
call qword [sym.imp.ntdll.dll_RtlCreateSecurityDescriptor]
lea edx, [rbx - 0x28]
mov ebx, 2
mov r8d, ebx
lea rcx, [rsi + 0x28]
call qword [sym.imp.ntdll.dll_RtlCreateAcl]
lea r9, [rsp + 0x30]
mov r8d, 0x1f0001
mov edx, ebx
lea rcx, [rsi + 0x28]
call qword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
lea r9, [0x140152b30]
mov edx, ebx
lea r8d, [rbx - 1]
lea rcx, [rsi + 0x28]
call qword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
xor r9d, r9d
lea r8, [rsi + 0x28]
mov dl, 1
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlSetDaclSecurityDescriptor]
xor eax, eax
mov dword [rsp + 0x40], 0x30
mov r9d, 0xb0
mov qword [rsp + 0x48], rax
lea r8d, [rbx + 2]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x20], eax
lea rcx, [0x14015e638]
mov dword [rsp + 0x58], 0x40
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x60], rsi
call qword [sym.imp.ntdll.dll_NtCreatePort]
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rsi
xor edx, edx
mov edi, eax
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test edi, edi
js 0x14009f205
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14015e630], eax
nop dword [rax]
xor r8d, r8d
lea rdx, [0x14009f220]
xor ecx, ecx
call sym.ProcessHacker.exe_PhCreateThread
test rax, rax
je 0x14009f1ff
mov rcx, rax
call qword [sym.imp.ntdll.dll_NtClose]
sub rbx, 1
jne 0x14009f1e0
lea r11, [rsp + 0x70]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400af6c0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
xor r9d, r9d
lea rdx, [0x14015df00]
mov r8d, 0x158
lea ecx, [r9 + 2]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov rcx, qword [0x14015df08]
mov rax, rcx
sub rax, qword [0x14015e060]
mov qword [0x14015e068], rax
mov qword [0x14015e060], rcx
mov rcx, qword [0x14015df10]
mov rax, rcx
sub rax, qword [0x14015def0]
mov qword [0x14015def8], rax
mov qword [0x14015def0], rcx
mov rcx, qword [0x14015df18]
mov rax, rcx
sub rax, qword [0x14015dee0]
mov qword [0x14015dee8], rax
mov qword [0x14015dee0], rcx
add rsp, 0x28
ret
Function at 0x1400afa30
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x20
movsx r8d, byte [0x14015f3d8]
xor r9d, r9d
mov rdx, qword [0x14015e148]
mov r15, rcx
shl r8d, 3
lea ecx, [r9 + 0x53]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
movsx edi, byte [0x14015f3d8]
xor ebx, ebx
mov r14, qword [0x14015e148]
mov r11d, ebx
mov edx, ebx
lea esi, [rbx + 2]
cmp edi, 4
jb 0x1400afaf7
mov eax, edi
mov r9d, edi
and eax, 3
xorps xmm2, xmm2
sub r9d, eax
movdqa xmm1, xmm2
mov r8d, esi
nop
mov eax, edx
add edx, 4
movq xmm0, qword [r14 + rax*8]
lea eax, [r8 - 1]
movhpd xmm0, qword [r14 + rax*8]
mov eax, r8d
paddq xmm0, xmm2
movdqa xmm2, xmm0
movq xmm0, qword [r14 + rax*8]
lea eax, [r8 + 1]
movhpd xmm0, qword [r14 + rax*8]
add r8d, 4
paddq xmm0, xmm1
movdqa xmm1, xmm0
cmp edx, r9d
jb 0x1400afaa0
paddq xmm1, xmm2
movdqa xmm0, xmm1
psrldq xmm0, 8
paddq xmm1, xmm0
movq r11, xmm1
mov r8, rbx
mov r9, rbx
cmp edx, edi
jae 0x1400afb42
mov eax, edi
sub eax, edx
cmp eax, esi
jb 0x1400afb31
mov eax, edx
lea rcx, [r14 + rax*8]
mov eax, edi
sub eax, edx
sub eax, esi
shr eax, 1
inc eax
mov r10d, eax
lea edx, [rdx + rax*2]
nop
add r8, qword [rcx]
add r9, qword [rcx + 8]
lea rcx, [rcx + 0x10]
sub r10, 1
jne 0x1400afb20
cmp edx, edi
jae 0x1400afb3b
mov eax, edx
add r11, qword [r14 + rax*8]
lea rax, [r9 + r8]
add r11, rax
mov rdx, qword [0x14015e118]
lea r8d, [rdi*8]
xor r9d, r9d
mov rax, r11
sub rax, qword [0x14015e0f0]
mov qword [0x14015e0f8], rax
mov qword [0x14015e0f0], r11
lea ecx, [r9 + 0x6c]
mov qword [r15], rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
movsx r11d, byte [0x14015f3d8]
mov r10, rbx
mov rdi, qword [0x14015e118]
mov edx, ebx
cmp r11d, 4
jb 0x1400afbff
mov eax, r11d
mov r8d, r11d
and eax, 3
xorps xmm2, xmm2
sub r8d, eax
movdqa xmm1, xmm2
nop word [rax + rax]
mov eax, edx
add edx, 4
movq xmm0, qword [rdi + rax*8]
lea eax, [rsi - 1]
movhpd xmm0, qword [rdi + rax*8]
mov eax, esi
paddq xmm0, xmm2
movdqa xmm2, xmm0
movq xmm0, qword [rdi + rax*8]
lea eax, [rsi + 1]
movhpd xmm0, qword [rdi + rax*8]
add esi, 4
paddq xmm0, xmm1
movdqa xmm1, xmm0
cmp edx, r8d
jb 0x1400afbb0
paddq xmm1, xmm2
movdqa xmm0, xmm1
psrldq xmm0, 8
paddq xmm1, xmm0
movq r10, xmm1
mov r8, rbx
cmp edx, r11d
jae 0x1400afc53
mov eax, r11d
sub eax, edx
cmp eax, 2
jb 0x1400afc41
mov eax, edx
lea rcx, [rdi + rax*8]
mov eax, r11d
sub eax, edx
sub eax, 2
shr eax, 1
inc eax
mov r9d, eax
lea edx, [rdx + rax*2]
nop dword [rax]
add rbx, qword [rcx]
add r8, qword [rcx + 8]
lea rcx, [rcx + 0x10]
sub r9, 1
jne 0x1400afc30
cmp edx, r11d
jae 0x1400afc4c
mov eax, edx
add r10, qword [rdi + rax*8]
lea rax, [r8 + rbx]
add r10, rax
mov rbx, qword [rsp + 0x30]
mov rax, r10
sub rax, qword [0x14015e100]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov qword [0x14015e108], rax
mov qword [0x14015e100], r10
add rsp, 0x20
pop r15
ret
Function at 0x1400bcad0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
push r12
sub rsp, 0x288
mov ecx, dword [0x14015bdc8]
xor ebx, ebx
mov rsi, qword [0x14015cf78]
mov edi, edx
mov r12, qword [0x14015cf70]
mov dword [rsp + 0x50], ebx
mov qword [rax - 0x50], rbx
mov qword [rax - 0x48], rbx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x14015bdc8]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x268], rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1400bcb3e
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
mov qword [rsp + 0x2b8], rbp
lea r9, [rsp + 0x2c0]
mov qword [rsp + 0x280], r13
lea r8, [rsp + 0x40]
mov qword [rsp + 0x278], r14
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x270], r15
mov rcx, r12
lea r15d, [rdi + 1]
mov dword [rsp + 0x2b0], r15d
call fcn.140008b50
mov ebp, dword [rsp + 0x2c0]
lea rcx, [rsp + 0x2c0]
mov r8d, ebp
mov edx, r15d
call fcn.140008590
mov r13, qword [rsp + 0x40]
mov r14, qword [rsp + 0x2c0]
test ebp, ebp
je 0x1400bcc02
mov rdi, rbx
mov r15d, ebp
nop word [rax + rax]
mov rcx, qword [rdi + r13]
or rdx, 0xffffffffffffffff
nop dword [rax + rax]
inc rdx
cmp word [rcx + rdx*2], bx
jne 0x1400bcbd0
add rdx, rdx
call sym.ProcessHacker.exe_PhCreateStringEx
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov rcx, qword [r14]
mov qword [rdi + rcx], rax
add rdi, 8
sub r15, 1
jne 0x1400bcbc0
mov r15d, dword [rsp + 0x2b0]
mov rdi, qword [rsp + 0x48]
mov dword [rsp + 0x2c0], 1
cmp dword [rsi], ebx
jbe 0x1400bcc54
nop word [rax + rax]
mov rdx, qword [rsi + 8]
lea rcx, [rsp + 0x2c0]
mov eax, ebx
mov r9, r14
mov dword [rsp + 0x30], ebp
xor r8d, r8d
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rcx
mov rcx, r12
mov rdx, qword [rdx + rax*8]
call fcn.1400bc8f0
inc ebx
cmp ebx, dword [rsi]
jb 0x1400bcc20
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, r13
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r9d, dword [rsp + 0x2c8]
mov r8d, ebp
mov edx, r15d
mov rcx, r14
call fcn.140008670
lea rcx, [rsp + 0x50]
mov rbx, rax
call sym.ProcessHacker.exe_PhDrainAutoPool
mov ecx, dword [0x14015bdc8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r15, qword [rsp + 0x270]
lea rcx, [rsp + 0x50]
mov r14, qword [rsp + 0x278]
mov r13, qword [rsp + 0x280]
mov rbp, qword [rsp + 0x2b8]
cmp rax, rcx
je 0x1400bccdd
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
mov rdx, qword [rsp + 0x268]
mov ecx, dword [0x14015bdc8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1400bcd01
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
mov r8, qword [rsp + 0x260]
test r8, r8
je 0x1400bcd1d
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, rbx
add rsp, 0x288
pop r12
pop rdi
pop rsi
pop rbx
ret