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

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x60
test byte [rcx + 8], 8
lea rax, [rcx + 0x10]
mov rbx, rcx
mov ecx, 0
cmove rax, rcx
mov qword [r11 - 0x28], rcx
mov qword [r11 - 0x30], rax
xor r9d, r9d
mov dword [r11 - 0x38], r8d
lea rax, [r11 - 0x18]
mov rcx, qword [rbx]
xor r8d, r8d
mov qword [r11 - 0x40], rdx
xor edx, edx
mov qword [r11 - 0x48], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
mov ecx, eax
cmp eax, 0x103
jne 0x14010beae
mov rcx, qword ds:[rbx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x14010bec4
mov ecx, dword [rsp + 0x50]
test ecx, ecx
js 0x14010bec2
mov rax, qword [rsp + 0x58]
add qword [rbx + 0x10], rax
or dword [rbx + 8], 0x80000000
mov eax, ecx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret

Function at 0x14010bee0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov esi, r8d
test byte [rcx + 8], 2
mov rbp, rdx
mov rbx, rcx
je 0x14010bf0e
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
jmp fcn.14010be40
cmp dword [rcx + 0x2c], edi
jne 0x14010bf2e
call fcn.14010c010
mov edi, eax
test eax, eax
jns 0x14010bf2e
lfence
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
mov r8d, dword ds:[rbx + 0x2c]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r15
test r8d, r8d
je 0x14010bf99
mov r14d, dword [rbx + 0x20]
sub r14d, r8d
je 0x14010bf80
mov ecx, r8d
cmp r14d, esi
mov rdx, rbp
cmova r14d, esi
add rcx, qword [rbx + 0x18]
mov r8d, r14d
mov r15d, r14d
call fcn.140188690
mov r8d, dword [rbx + 0x2c]
add r8d, r14d
mov dword [rbx + 0x2c], r8d
cmp r14d, esi
je 0x14010bfe8
add rbp, r15
sub esi, r14d
mov rdx, qword [rbx + 0x18]
mov rcx, rbx
call fcn.14010be40
mov edi, eax
test eax, eax
js 0x14010bfb5
mov dword [rbx + 0x2c], 0
cmp esi, dword [rbx + 0x20]
jb 0x14010bfba
lfence
mov r8d, esi
mov rdx, rbp
mov rcx, rbx
call fcn.14010be40
mov edi, eax
test eax, eax
jns 0x14010bfe8
lfence
jmp 0x14010bfea
test esi, esi
je 0x14010bfe8
cmp qword [rbx + 0x18], 0
jne 0x14010bfd3
mov rcx, rbx
call fcn.14010bae0
mov edi, eax
test eax, eax
js 0x14010bfb5
lfence
mov rcx, qword [rbx + 0x18]
mov rdx, rbp
mov r8d, esi
call fcn.140188690
mov dword [rbx + 0x2c], esi
mov eax, edi
mov r14, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret

Function at 0x14010c010
Capabilities:
Set file attributes

Disassembly:
push rbx
sub rsp, 0x40
mov r8d, dword [rcx + 0x28]
mov rbx, rcx
mov ecx, dword [rcx + 0x24]
xor edx, edx
cmp r8d, ecx
je 0x14010c06e
sub ecx, r8d
movsxd r8, ecx
add r8, qword [rbx + 0x10]
test byte [rbx + 8], 8
mov qword [rbx + 0x10], r8
jne 0x14010c06e
mov rcx, qword [rbx]
lea r9d, [rdx + 8]
mov qword [rsp + 0x50], r8
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x50]
mov dword [rsp + 0x20], 0xe
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
mov edx, eax
test eax, eax
jns 0x14010c06e
lfence
add rsp, 0x40
pop rbx
ret
mov qword [rbx + 0x24], 0
mov eax, edx
add rsp, 0x40
pop rbx
ret
Function at 0x14010c140
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor r9d, r9d
mov rdi, rdx
mov rbx, rcx
test r8d, r8d
je 0x14010c1a4
nop dword [rax]
sub r8d, 1
je 0x14010c19b
cmp r8d, 1
jne 0x14010c1ab
lea rdx, [rcx + 0x10]
mov rcx, qword [rcx]
call sym.ProcessHacker.exe_PhGetFileSize
mov r9d, eax
test eax, eax
jns 0x14010c192
lfence
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rax, qword [rdi]
add qword [rbx + 0x10], rax
jmp 0x14010c1ab
mov rax, qword [rdx]
add qword [rcx + 0x10], rax
jmp 0x14010c1ab
mov rax, qword [rdx]
mov qword [rcx + 0x10], rax
test byte [rbx + 8], 8
jne 0x14010c1e4
mov rax, qword [rbx + 0x10]
lea r8, [rsp + 0x68]
mov rcx, qword [rbx]
lea rdx, [rsp + 0x30]
mov r9d, 8
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x20], 0xe
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
mov r9d, eax
test eax, eax
js 0x14010c17f
mov rbx, qword [rsp + 0x50]
mov eax, r9d
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140111460
Capabilities:
Terminate process

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x90
cmp byte [0x140240e3f], 0
mov edi, edx
mov rsi, rcx
je 0x140111537
mov qword [r11 - 0x48], rcx
lea rax, [0x14011fb50]
xor ecx, ecx
mov qword [r11 - 0x28], rax
mov dword [rsp + 0x48], ecx
lea rax, [r11 - 0x48]
mov qword [r11 - 0x58], rcx
lea r8, [0x14011f940]
mov qword [r11 - 0x20], rax
xor r9d, r9d
lea rax, [r11 + 0x18]
mov dword [rsp + 0x38], 4
mov qword [r11 - 0x68], rax
lea rax, [r11 - 0x38]
mov dword [rsp + 0x58], edx
xor edx, edx
mov dword [rsp + 0x5c], ecx
mov rcx, qword [0x140241b70]
mov dword [rsp + 0x28], 0x9999200b
mov qword [r11 - 0x78], rax
mov qword [r11 + 8], rbx
mov dword [r11 + 0x18], 2
mov dword [r11 - 0x18], 0xc0000001
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtTestAlert]
mov eax, dword ds:[rsp + 0x80]
test ebx, ebx
cmovs eax, ebx
mov rbx, qword [rsp + 0xa0]
cmp eax, 0xc00000db
jne 0x140111530
mov ecx, edi
call qword [sym.imp.ntdll.dll_RtlExitUserProcess]
int3
cmp eax, 0xc00000bb
jne 0x140111546
mov edx, edi
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtTerminateProcess]
mov rsi, qword [rsp + 0xa8]
add rsp, 0x90
pop rdi
ret
Function at 0x1401118a0
Capabilities:
Get system information on windows

Disassembly:
push r14
sub rsp, 0x60
mov r14, r8
test r8, r8
jne 0x1401118ba
mov eax, 0xc0000030
add rsp, 0x60
pop r14
ret
mov qword [rsp + 0x50], r15
mov eax, 0x100
xor r15d, r15d
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x38], 0x1000000
nop dword [rax]
mov rcx, qword [0x140241998]
xor edx, edx
movzx r8d, ax
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword ds:[rsp + 0x40], rax
test rax, rax
je 0x140111a52
xor r9d, r9d
lea rdx, [rsp + 0x30]
lea r8d, [r9 + 0x18]
lea ecx, [r9 + 0x58]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
test eax, eax
jns 0x140111939
mov r8, qword [rsp + 0x40]
xor edx, edx
mov rcx, qword [0x140241998]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax]
cmp ebx, 0xc0000004
jne 0x14011194f
movzx eax, word [rsp + 0x3a]
jmp 0x1401118e0
lfence
test ebx, ebx
jns 0x140111969
mov r15, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop r14
ret
mov qword ss:[rsp + 0x78], rbp
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x80], rsi
mov edx, 0x5c
movzx esi, word [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x58], rdi
mov rdi, qword [rsp + 0x40]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rsi
call sym.ProcessHacker.exe_PhFindLastCharInStringRef
cmp rax, 0xffffffffffffffff
jne 0x1401119c2
movzx eax, word [rsp + 0x38]
test ax, ax
je 0x1401119d5
mov rbp, qword [rsp + 0x40]
lea rcx, [rax + 0x12]
mov esi, eax
jmp 0x1401119e3
add rax, rax
lea rbp, [rdi + 2]
add rbp, rax
sub rsi, rax
add rsi, 0xfffffffffffffffe
jne 0x1401119df
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov rdi, rax
jmp 0x140111a16
lea rcx, [rsi + 0x12]
mov rdx, qword [0x1402418e8]
call sym.ProcessHacker.exe_PhCreateObject
mov rdi, rax
mov qword [rax], rsi
add rax, 0x10
mov qword [rdi + 8], rax
mov word [rax + rsi], r15w
test rbp, rbp
je 0x140111a16
mov rcx, qword [rdi + 8]
mov r8, rsi
mov rdx, rbp
call fcn.140188690
mov qword [r14], rdi
xor edx, edx
mov r8, qword [rsp + 0x40]
mov rcx, qword [0x140241998]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rdi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov r15, qword [rsp + 0x50]
add rsp, 0x60
pop r14
ret
mov rbx, qword [rsp + 0x70]
mov eax, 0xc0000017
mov r15, qword [rsp + 0x50]
add rsp, 0x60
pop r14
ret
Function at 0x140111a80
Capabilities:
Check processdebugport

Disassembly:
push rdi
sub rsp, 0x30
cmp byte [0x140240e3f], 0
lea r8, [rsp + 0x50]
mov rdi, rdx
mov qword [rsp + 0x20], 0
mov r9d, 8
je 0x140111aee
lea edx, [r9 + 0x16]
mov qword [rsp + 0x40], rbx
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov ebx, eax
test eax, eax
js 0x140111ad6
mov rcx, qword [rsp + 0x50]
mov byte [rdi], 1
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xc0000022
jne 0x140111acb
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov byte [rdi], 1
add rsp, 0x30
pop rdi
ret
mov edx, 7
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x140111ad0
cmp qword [rsp + 0x50], 0
setne cl
mov byte [rdi], cl
add rsp, 0x30
pop rdi
ret
Function at 0x140114210
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rdx
mov dword [rsp + 0x20], 5
lea rdx, [rsp + 0x30]
mov r9d, 0x18
lea r8, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x140114252
mov rcx, qword [rsp + 0x48]
mov qword [rbx], rcx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401848a0
add rsp, 0x60
pop rbx
ret

Function at 0x140114270
Capabilities:
Set file attributes

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

Function at 0x1401142a0
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rdx
mov dword [rsp + 0x20], 0xe
lea rdx, [rsp + 0x30]
mov r9d, 8
lea r8, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov ecx, eax
lfence
test eax, eax
js 0x1401142da
mov rax, qword [rsp + 0x60]
mov qword [rbx], rax
mov eax, ecx
add rsp, 0x40
pop rbx
ret

Function at 0x140114300
Capabilities:
Set file attributes

Disassembly:
sub rsp, 0x48
test rdx, rdx
je 0x14011430e
mov rax, qword [rdx]
jmp 0x140114310
xor eax, eax
mov r9d, 8
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x58]
mov dword [rsp + 0x20], 0xe
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
add rsp, 0x48
ret

Function at 0x140114340
Capabilities:
Set file attributes

Disassembly:
sub rsp, 0x48
mov rax, qword [rdx]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x58], rax
mov r9d, 8
mov dword [rsp + 0x20], 0x13
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
add rsp, 0x48
ret

Function at 0x140114370
Capabilities:
Set file attributes

Disassembly:
push rbx
sub rsp, 0x50
cmp dword [0x140237d34], 0x6a
mov rbx, rcx
jb 0x1401143c3
mov r9d, 4
mov dword [rsp + 0x78], 0x11
lea r8, [rsp + 0x78]
mov dword [rsp + 0x20], 0x40
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
jns 0x1401143e6
lfence
mov byte [rsp + 0x68], 1
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x30]
mov rcx, rbx
jmp 0x1401143d2
mov byte [rsp + 0x70], 1
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x40]
mov r9d, 1
mov dword [rsp + 0x20], 0xd
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
add rsp, 0x50
pop rbx
ret
Function at 0x140114400
Capabilities:
Parse pe header

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x30
mov r14, r8
mov rbp, rcx
mov edi, 0x100
call fcn.140121080
test rax, rax
jne 0x14011442c
mov eax, 0xc00000bb
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret
mov rcx, qword [0x140241998]
mov r8, rdi
mov qword [rsp + 0x50], rbx
mov edx, 4
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r15
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r15d, r15d
mov r12d, 0x5a4d
test byte [0x14023e530], 1
mov rsi, rax
jne 0x1401145d5
lock bts qword [0x14023e530], 0x1f
jb 0x1401145be
lea rcx, [0x1401db740]
call fcn.1400f9d00
mov rcx, rax
test rax, rax
jne 0x1401144d2
xor edx, edx
lea rcx, [0x1401db740]
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
test rax, rax
jne 0x1401144d2
xor edx, edx
lea rcx, [0x1401db740]
mov r8d, 0xa00
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
test rax, rax
je 0x140114566
cmp word [rcx], r12w
jne 0x140114566
mov edx, dword [rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x140114566
cmp dword [rdx + rcx], 0x4550
jne 0x140114566
add rdx, 0x88
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x140114566
cmp dword [rdx + 4], r15d
je 0x140114566
lea r8, ds:[rcx + rax]
mov word [rsp + 0x20], r15w
lea r9, str.NtQueryInformationTransactionManager
call fcn.1400fa1a0
mov r9, rax
test rax, rax
je 0x140114566
mov rcx, qword [0x7ffe0320]
mov edx, dword [0x7ffe0004]
mov eax, ecx
shr rcx, 0x20
imul rax, rdx
imul rcx, rdx
shr rax, 0x18
shl rcx, 8
add rax, rcx
mov qword [0x140244ba0], rax
xor rax, r9
mov qword [0x140244d68], rax
lock bts qword [0x14023e530], 0
jb 0x1401145d5
mov rbx, qword [0x14023e538]
test rbx, rbx
je 0x140114589
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtSetEvent]
mov rax, 0xfffffffffffffffe
lock xadd qword [0x14023e530], rax
shr rax, 1
and eax, 0x7fff
cmp rax, 1
jne 0x1401145d5
test rbx, rbx
je 0x1401145d5
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [0x14023e538], r15
jmp 0x1401145d5
test byte [0x14023e530], 1
jne 0x1401145d5
xor edx, edx
lea rcx, [0x14023e530]
call sym.ProcessHacker.exe_PhfWaitForEvent
mov rax, qword [0x140244d68]
nop dword [rax]
test rax, rax
je 0x1401145f6
mov rcx, qword [0x140244ba0]
test rcx, rcx
je 0x1401145f6
xor rax, rcx
jmp 0x1401145f9
mov rax, r15
mov r9d, edi
mov qword [rsp + 0x20], r15
mov r8, rsi
mov edx, 2
mov rcx, rbp
call qword [case.0x1400f654f.0]
mov ebx, eax
cmp eax, 0x80000005
jne 0x14011465d
mov rcx, qword [0x140241998]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea eax, [rdi + rdi]
mov edi, eax
cmp eax, 0x100000
ja 0x140114656
lfence
mov rcx, qword [0x140241998]
mov r8d, edi
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x14011445e
mov eax, 0xc000009a
jmp 0x14011467d
nop dword [rax]
test ebx, ebx
js 0x140114669
mov qword [r14], rsi
jmp 0x14011467b
mov rcx, qword [0x140241998]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
mov r12, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r15, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret
Function at 0x1401146a0
Capabilities:
Parse pe header

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x30
mov r14, r8
mov rbp, rcx
mov edi, 0x100
call fcn.140120f00
test rax, rax
jne 0x1401146cc
mov eax, 0xc00000bb
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret
mov rcx, qword [0x140241998]
mov r8, rdi
mov qword [rsp + 0x50], rbx
mov edx, 4
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r15
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r15d, r15d
mov r12d, 0x5a4d
test byte [0x14023e4a0], 1
mov rsi, rax
jne 0x140114875
lock bts qword [0x14023e4a0], 0x1f
jb 0x14011485e
lea rcx, [0x1401db740]
call fcn.1400f9d00
mov rcx, rax
test rax, rax
jne 0x140114772
xor edx, edx
lea rcx, [0x1401db740]
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
test rax, rax
jne 0x140114772
xor edx, edx
lea rcx, [0x1401db740]
mov r8d, 0xa00
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
test rax, rax
je 0x140114806
cmp word [rcx], r12w
jne 0x140114806
mov edx, dword [rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x140114806
cmp dword [rdx + rcx], 0x4550
jne 0x140114806
add rdx, 0x88
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x140114806
cmp dword [rdx + 4], r15d
je 0x140114806
lea r8, ds:[rcx + rax]
mov word [rsp + 0x20], r15w
lea r9, str.NtQueryInformationTransaction
call fcn.1400fa1a0
mov r9, rax
test rax, rax
je 0x140114806
mov rcx, qword [0x7ffe0320]
mov edx, dword [0x7ffe0004]
mov eax, ecx
shr rcx, 0x20
imul rax, rdx
imul rcx, rdx
shr rax, 0x18
shl rcx, 8
add rax, rcx
mov qword [0x140244cc0], rax
xor rax, r9
mov qword [0x140244bf0], rax
lock bts qword [0x14023e4a0], 0
jb 0x140114875
mov rbx, qword [0x14023e4a8]
test rbx, rbx
je 0x140114829
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtSetEvent]
mov rax, 0xfffffffffffffffe
lock xadd qword [0x14023e4a0], rax
shr rax, 1
and eax, 0x7fff
cmp rax, 1
jne 0x140114875
test rbx, rbx
je 0x140114875
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [0x14023e4a8], r15
jmp 0x140114875
test byte [0x14023e4a0], 1
jne 0x140114875
xor edx, edx
lea rcx, [0x14023e4a0]
call sym.ProcessHacker.exe_PhfWaitForEvent
mov rax, qword [0x140244bf0]
nop dword [rax]
test rax, rax
je 0x140114896
mov rcx, qword [0x140244cc0]
test rcx, rcx
je 0x140114896
xor rax, rcx
jmp 0x140114899
mov rax, r15
mov r9d, edi
mov qword [rsp + 0x20], r15
mov r8, rsi
mov edx, 1
mov rcx, rbp
call qword [case.0x1400f654f.0]
mov ebx, eax
cmp eax, 0x80000005
jne 0x1401148fd
mov rcx, qword [0x140241998]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea eax, [rdi + rdi]
mov edi, eax
cmp eax, 0x100000
ja 0x1401148f6
lfence
mov rcx, qword [0x140241998]
mov r8d, edi
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x1401146fe
mov eax, 0xc000009a
jmp 0x14011491d
nop dword [rax]
test ebx, ebx
js 0x140114909
mov qword [r14], rsi
jmp 0x14011491b
mov rcx, qword [0x140241998]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
mov r12, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r15, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret
Function at 0x140114940
Capabilities:
Parse pe header

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x30
mov r14, r8
mov rbp, rcx
mov edi, 0x100
call fcn.140120d80
test rax, rax
jne 0x14011496c
mov eax, 0xc00000bb
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret
mov rcx, qword [0x140241998]
mov r8, rdi
mov qword [rsp + 0x50], rbx
mov edx, 4
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r15
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r15d, r15d
mov r12d, 0x5a4d
test byte [0x14023e4d0], 1
mov rsi, rax
jne 0x140114b15
lock bts qword [0x14023e4d0], 0x1f
jb 0x140114afe
lea rcx, [0x1401db740]
call fcn.1400f9d00
mov rcx, rax
test rax, rax
jne 0x140114a12
xor edx, edx
lea rcx, [0x1401db740]
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
test rax, rax
jne 0x140114a12
xor edx, edx
lea rcx, [0x1401db740]
mov r8d, 0xa00
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
test rax, rax
je 0x140114aa6
cmp word [rcx], r12w
jne 0x140114aa6
mov edx, dword [rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x140114aa6
cmp dword [rdx + rcx], 0x4550
jne 0x140114aa6
add rdx, 0x88
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x140114aa6
cmp dword [rdx + 4], r15d
je 0x140114aa6
lea r8, ds:[rcx + rax]
mov word [rsp + 0x20], r15w
lea r9, str.NtQueryInformationResourceManager
call fcn.1400fa1a0
mov r9, rax
test rax, rax
je 0x140114aa6
mov rcx, qword [0x7ffe0320]
mov edx, dword [0x7ffe0004]
mov eax, ecx
shr rcx, 0x20
imul rax, rdx
imul rcx, rdx
shr rax, 0x18
shl rcx, 8
add rax, rcx
mov qword [0x140244c98], rax
xor rax, r9
mov qword [0x140244d38], rax
lock bts qword [0x14023e4d0], 0
jb 0x140114b15
mov rbx, qword [0x14023e4d8]
test rbx, rbx
je 0x140114ac9
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtSetEvent]
mov rax, 0xfffffffffffffffe
lock xadd qword [0x14023e4d0], rax
shr rax, 1
and eax, 0x7fff
cmp rax, 1
jne 0x140114b15
test rbx, rbx
je 0x140114b15
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [0x14023e4d8], r15
jmp 0x140114b15
test byte [0x14023e4d0], 1
jne 0x140114b15
xor edx, edx
lea rcx, [0x14023e4d0]
call sym.ProcessHacker.exe_PhfWaitForEvent
mov rax, qword [0x140244d38]
nop dword [rax]
test rax, rax
je 0x140114b36
mov rcx, qword [0x140244c98]
test rcx, rcx
je 0x140114b36
xor rax, rcx
jmp 0x140114b39
mov rax, r15
mov r9d, edi
mov qword [rsp + 0x20], r15
mov r8, rsi
xor edx, edx
mov rcx, rbp
call qword [case.0x1400f654f.0]
mov ebx, eax
cmp eax, 0x80000005
jne 0x140114b9a
mov rcx, qword [0x140241998]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea eax, [rdi + rdi]
mov edi, eax
cmp eax, 0x100000
ja 0x140114b93
lfence
mov rcx, qword [0x140241998]
mov r8d, edi
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x14011499e
mov eax, 0xc000009a
jmp 0x140114bb7
test ebx, ebx
js 0x140114ba3
mov qword [r14], rsi
jmp 0x140114bb5
mov rcx, qword [0x140241998]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
mov r12, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r15, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret
Function at 0x1401162e0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
call fcn.1400f9d00
test rax, rax
jne 0x1401162f9
add rsp, 0x20
pop rbx
ret
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp fcn.1400fa100

Function at 0x140116580
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov dword [rsp + 0x38], 0x800
mov rcx, qword [0x140241998]
mov edx, 4
mov r8d, 0x800
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140116618
mov rcx, qword [0x140241998]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x38]
mov edx, 4
mov rcx, qword [0x140241998]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
lfence
test eax, eax
js 0x140116622
mov qword [rdi], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1401166c0
Capabilities:
Get system information on windows

Disassembly:
mov edx, 5
jmp sym.ProcessHacker.exe_PhEnumProcessesEx

Function at 0x1401166e0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push r14
push r15
sub rsp, 0x20
mov r8d, edx
mov esi, edx
mov r15, rcx
sub r8d, 5
je 0x140116733
sub r8d, 0x34
je 0x140116724
nop
cmp r8d, 0x5b
je 0x140116715
mov eax, 0xc0000003
add rsp, 0x20
pop r15
pop r14
pop rsi
ret
mov eax, dword [0x14023e1a8]
lea r14, [0x14023e1a8]
jmp 0x140116740
mov eax, dword [0x14023e1a4]
lea r14, [0x14023e1a4]
jmp 0x140116740
mov eax, dword [0x14023e1a0]
lea r14, [0x14023e1a0]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x48], eax
mov r8d, eax
mov rcx, qword [0x140241998]
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x48]
mov rdx, rax
mov ecx, esi
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp eax, 0xc0000023
je 0x14011678e
cmp eax, 0xc0000004
jne 0x1401167ad
mov rcx, qword [0x140241998]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x48]
jmp 0x140116751
lfence
test ebx, ebx
jns 0x1401167c8
mov rcx, qword [0x140241998]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x1401167d9
mov eax, dword [rsp + 0x48]
cmp eax, 0x100000
ja 0x1401167d6
mov dword [r14], eax
mov qword [r15], rdi
mov rdi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r15
pop r14
pop rsi
ret