joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c34c0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rbx, rcx
mov r14, rdx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov rax, qword gs:[0x30]
xor ebp, ebp
mov r8, qword [rax + 0x60]
mov rcx, qword [r8 + 0x18]
add rcx, 0x10
mov rax, qword [rcx]
cmp rax, rcx
je 0x1400c3523
nop dword [rax]
test rbx, rbx
je 0x1400c3555
cmp qword [rax + 0x30], rbx
je 0x1400c3555
mov rax, qword [rax]
cmp rax, rcx
jne 0x1400c3510
mov rbx, rbp
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
test rbx, rbx
jne 0x1400c35b9
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
test rax, rax
je 0x1400c3523
movzx ecx, word [rax + 0x48]
test cx, cx
jne 0x1400c356d
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov rbx, rax
jmp 0x1400c3526
mov rdx, qword [0x140196800]
movzx edi, cx
mov qword [rsp + 0x40], rsi
mov rsi, qword [rax + 0x50]
lea rcx, [rdi + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov rbx, rax
mov qword [rax], rdi
add rax, 0x10
mov qword [rbx + 8], rax
mov word [rax + rdi], bp
test rsi, rsi
je 0x1400c35af
mov rcx, qword [rbx + 8]
mov r8d, edi
mov rdx, rsi
call fcn.14010e700
mov rsi, qword [rsp + 0x40]
jmp 0x1400c3526
mov rcx, rbx
call sym.ProcessHacker.exe_PhGetFileName
mov rdi, rax
lea rcx, [rbx - 0x10]
or edx, 0xffffffff
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x1400c35da
call fcn.1400c8bc0
test r14, r14
je 0x1400c3600
mov edx, 0x5c
xor r8d, r8d
mov rcx, rdi
call sym.ProcessHacker.exe_PhFindLastCharInStringRef
cmp rax, 0xffffffffffffffff
je 0x1400c35fa
inc rax
jmp 0x1400c35fd
mov rax, rbp
mov dword [r14], eax
mov rax, rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400c3760
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov rbp, rdx
mov r14d, ecx
test rdx, rdx
je 0x1400c3796
mov rcx, rdx
call sym.ProcessHacker.exe_PhCountStringZ
mov rsi, rax
add rsi, rsi
jmp 0x1400c3799
mov rsi, r15
mov rdx, qword [0x140196800]
lea rbx, [rsi + 0x208]
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
mov rdi, rax
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov word [rcx + rbx], r15w
mov rcx, qword [rax + 8]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1400c3814
mov rcx, qword [rdi + 8]
call sym.ProcessHacker.exe_PhCountStringZ
add rax, rax
mov qword [rdi], rax
test rbp, rbp
je 0x1400c380f
mov rcx, qword [rdi + 8]
lea r8, [rsi + 2]
shr rax, 1
mov rdx, rbp
lea rcx, [rcx + rax*2]
call fcn.14010e700
add qword [rdi], rsi
mov rax, rdi
jmp 0x1400c382c
lea rcx, [rdi - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400c382a
call fcn.1400c8bc0
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x1400c4b70
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xa0
mov rbx, rdx
mov dword [rsp + 0x30], 0x70
xor edx, edx
mov rdi, r8
mov rsi, rcx
lea rcx, [rsp + 0x34]
lea r8d, [rdx + 0x6c]
call fcn.14010ed90
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x34], 0x400
mov dword [rsp + 0x60], 5
mov qword [rsp + 0x38], rsi
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x1400c4c3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400c4be4
xor ecx, ecx
call sym.ProcessHacker.exe_PhGetNtMessage
jmp 0x1400c4beb
mov ecx, eax
call sym.ProcessHacker.exe_PhGetWin32Message
lea r9, str.Unable_to_execute_the_program.
mov rbx, rax
mov rcx, rsi
test rax, rax
jne 0x1400c4c0e
lea r8, [0x1401689f8]
lea edx, [rax + 0x10]
call sym.ProcessHacker.exe_PhShowMessage
jmp 0x1400c4c3d
mov rax, qword [rbx + 8]
mov edx, 0x20
mov r8d, 0xfffe
mov qword [rsp + 0x20], rax
call sym.ProcessHacker.exe_PhShowMessage2
lea rcx, [rbx - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400c4c3d
call fcn.1400c8bc0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400c4c60
Capabilities:
Create process on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0xd8
mov rbx, rdx
mov dword [rsp + 0x30], 0x70
xor edx, edx
mov rdi, r8
mov rsi, rcx
mov ebp, r9d
lea rcx, [rsp + 0x34]
lea r8d, [rdx + 0x6c]
call fcn.14010ed90
mov qword [rsp + 0x48], rbx
lea rax, str.runas
mov ebx, dword [rsp + 0x120]
lea rcx, [rsp + 0x30]
test bl, 1
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x34], 0x440
cmove rax, qword [rsp + 0x40]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x60], ebp
mov qword [rsp + 0x38], rsi
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1400c4ea3
mov edi, dword [rsp + 0x128]
test edi, edi
je 0x1400c4e61
test bl, 2
jne 0x1400c4d29
cmp edi, 0xffffffff
jne 0x1400c4cf7
xor esi, esi
jmp 0x1400c4d11
imul rcx, rdi, 0xffffffffffffd8f0
mov rax, rdi
lea rsi, [rsp + 0x100]
mov qword [rsp + 0x100], rcx
mov rcx, qword [rsp + 0x98]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
jmp 0x1400c4e61
mov rax, qword [0x7ffe0320]
mov rbx, rdi
mov edx, dword [0x7ffe0004]
mov rbp, rax
shr rbp, 0x20
mov qword [rsp + 0x108], r12
mov r12d, 0x7ffe0004
imul rbp, rdx
mov ecx, eax
imul rcx, rdx
shl rbp, 8
mov qword [rsp + 0x110], r14
shr rcx, 0x18
mov qword [rsp + 0xd0], r15
add rbp, rcx
mov r15d, 0x7ffe0320
nop dword [rax + rax]
xor r8d, r8d
mov dword [rsp + 0x20], 0x1cbf
mov r9d, ebx
lea rdx, [rsp + 0x98]
lea ecx, [r8 + 1]
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
je 0x1400c4e49
cmp eax, 1
jne 0x1400c4e49
xor r9d, r9d
mov dword [rsp + 0x20], eax
xor r8d, r8d
lea rcx, [rsp + 0xa0]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1400c4e0e
nop
lea rcx, [rsp + 0xa0]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0xa0]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x1400c4dd0
cmp edi, 0xffffffff
je 0x1400c4d80
mov rax, qword [r15]
mov rbx, rdi
mov r8d, dword [r12]
mov rdx, rax
shr rdx, 0x20
imul rdx, r8
mov ecx, eax
imul rcx, r8
shl rdx, 8
sub rbx, rdx
shr rcx, 0x18
sub rbx, rcx
add rbx, rbp
jns 0x1400c4d80
mov r14, qword [rsp + 0x110]
mov r12, qword [rsp + 0x108]
mov r15, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x130]
test rcx, rcx
je 0x1400c4e87
mov rax, qword [rsp + 0x98]
mov qword [rcx], rax
mov al, 1
add rsp, 0xd8
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntdll.dll_NtClose]
mov al, 1
add rsp, 0xd8
pop rdi
pop rsi
pop rbp
pop rbx
ret
xor al, al
add rsp, 0xd8
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400c51b0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa0
mov rbx, rdx
mov dword [rsp + 0x30], 0x70
xor edx, edx
mov rdi, rcx
lea rcx, [rsp + 0x34]
lea r8d, [rdx + 0x6c]
call fcn.14010ed90
lea rax, str.properties
mov qword [rsp + 0x48], rbx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x60], 5
mov dword [rsp + 0x34], 0x40c
mov qword [rsp + 0x38], rdi
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x1400c528b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400c5223
xor ecx, ecx
call sym.ProcessHacker.exe_PhGetNtMessage
jmp 0x1400c522a
mov ecx, eax
call sym.ProcessHacker.exe_PhGetWin32Message
lea r9, str.Unable_to_execute_the_program.
mov rbx, rax
mov rcx, rdi
test rax, rax
jne 0x1400c525c
lea r8, [0x1401689f8]
lea edx, [rax + 0x10]
call sym.ProcessHacker.exe_PhShowMessage
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
mov rax, qword [rbx + 8]
mov edx, 0x20
mov r8d, 0xfffe
mov qword [rsp + 0x20], rax
call sym.ProcessHacker.exe_PhShowMessage2
lea rcx, [rbx - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400c528b
call fcn.1400c8bc0
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
Function at 0x1400c5750
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x40
xor edi, edi
mov r14, rcx
test rdx, rdx
je 0x1400c5778
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], di
jne 0x1400c5767
add rax, rax
mov rcx, rax
jmp 0x1400c5781
movzx eax, di
mov rdx, rdi
mov rcx, rdi
mov word [rsp + 0x30], ax
mov ebp, 0x10
add ax, 2
mov qword [rsp + 0x38], rdx
mov word [rsp + 0x32], ax
cmp rcx, 0xfffe
ja 0x1400c589b
mov rcx, qword [0x140196670]
lea edx, [rbp - 0xc]
mov qword [rsp + 0x60], rbx
mov r8d, 0x100
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x68], 0x100
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
lea rax, [rsp + 0x68]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
mov eax, dword [rsp + 0x68]
mov r8d, 2
mov rcx, r14
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
test eax, eax
jns 0x1400c5840
mov rcx, qword [0x140196670]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp esi, 0x80000005
jne 0x1400c583b
mov r8d, dword [rsp + 0x68]
mov edx, 4
mov rcx, qword [0x140196670]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
add ebp, 0xffffffff
jne 0x1400c57d1
jmp 0x1400c5840
mov rbx, qword [rsp + 0x68]
test esi, esi
mov rsi, qword [rsp + 0x70]
js 0x1400c588a
mov ecx, dword [rbx + 4]
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x1400c5859
cmp ecx, 7
jne 0x1400c5878
mov eax, dword [rbx + 8]
cmp eax, 2
jb 0x1400c5870
lea rdx, [rax - 2]
lea rcx, [rbx + 0xc]
call sym.ProcessHacker.exe_PhCreateStringEx
jmp 0x1400c5875
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov rdi, rax
mov rcx, qword [0x140196670]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, rdi
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
mov rax, rdi
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x1400c58b0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x40
xor esi, esi
mov r14, rcx
test rdx, rdx
je 0x1400c58d8
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], si
jne 0x1400c58c7
add rax, rax
mov rcx, rax
jmp 0x1400c58e1
movzx eax, si
mov rdx, rsi
mov rcx, rsi
mov word [rsp + 0x30], ax
mov ebp, 0x10
add ax, 2
mov qword [rsp + 0x38], rdx
mov word [rsp + 0x32], ax
cmp rcx, 0xfffe
ja 0x1400c59da
mov rcx, qword [0x140196670]
lea edx, [rbp - 0xc]
mov qword [rsp + 0x60], rbx
mov r8d, 0x100
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x68], 0x100
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
lea rax, [rsp + 0x68]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
mov eax, dword [rsp + 0x68]
mov r8d, 2
mov rcx, r14
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov edi, eax
test eax, eax
jns 0x1400c59a0
mov rcx, qword [0x140196670]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp edi, 0x80000005
jne 0x1400c599b
mov r8d, dword [rsp + 0x68]
mov edx, 4
mov rcx, qword [0x140196670]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
add ebp, 0xffffffff
jne 0x1400c5931
jmp 0x1400c59a0
mov rbx, qword [rsp + 0x68]
test edi, edi
mov rdi, qword [rsp + 0x70]
js 0x1400c59ca
cmp dword [rbx + 4], 4
jne 0x1400c59b8
cmp dword [rbx + 8], 4
jne 0x1400c59b8
mov esi, dword [rbx + 0xc]
mov rcx, qword [0x140196670]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rsi
pop rbp
ret
mov eax, esi
add rsp, 0x40
pop r14
pop rsi
pop rbp
ret
Function at 0x1400c59f0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x40
xor esi, esi
mov r14, rcx
test rdx, rdx
je 0x1400c5a18
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], si
jne 0x1400c5a07
add rax, rax
mov rcx, rax
jmp 0x1400c5a21
movzx eax, si
mov rdx, rsi
mov rcx, rsi
mov word [rsp + 0x30], ax
mov ebp, 0x10
add ax, 2
mov qword [rsp + 0x38], rdx
mov word [rsp + 0x32], ax
cmp rcx, 0xfffe
ja 0x1400c5b1c
mov rcx, qword [0x140196670]
lea edx, [rbp - 0xc]
mov qword [rsp + 0x60], rbx
mov r8d, 0x100
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x68], 0x100
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
lea rax, [rsp + 0x68]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
mov eax, dword [rsp + 0x68]
mov r8d, 2
mov rcx, r14
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov edi, eax
test eax, eax
jns 0x1400c5ae0
mov rcx, qword [0x140196670]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp edi, 0x80000005
jne 0x1400c5adb
mov r8d, dword [rsp + 0x68]
mov edx, 4
mov rcx, qword [0x140196670]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
add ebp, 0xffffffff
jne 0x1400c5a71
jmp 0x1400c5ae0
mov rbx, qword [rsp + 0x68]
test edi, edi
mov rdi, qword [rsp + 0x70]
js 0x1400c5b0b
cmp dword [rbx + 4], 0xb
jne 0x1400c5af9
cmp dword [rbx + 8], 8
jne 0x1400c5af9
mov rsi, qword [rbx + 0xc]
mov rcx, qword [0x140196670]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, rsi
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rsi
pop rbp
ret
mov rax, rsi
add rsp, 0x40
pop r14
pop rsi
pop rbp
ret

Function at 0x1400c6ca0
Capabilities:
Hash data using sha1
Hash data using sha256

Disassembly:
sub rsp, 0x28
mov dword [rcx], edx
test edx, edx
je 0x1400c6d44
sub edx, 1
je 0x1400c6d16
sub edx, 1
je 0x1400c6d0c
cmp edx, 1
je 0x1400c6cc9
mov ecx, 0xc00000f0
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
xor eax, eax
mov dword [rcx + 0xc], 0x6a09e667
mov dword [rcx + 0x10], 0xbb67ae85
mov dword [rcx + 0x14], 0x3c6ef372
mov dword [rcx + 0x18], 0xa54ff53a
mov dword [rcx + 0x1c], 0x510e527f
mov dword [rcx + 0x20], 0x9b05688c
mov dword [rcx + 0x24], 0x1f83d9ab
mov dword [rcx + 0x28], 0x5be0cd19
mov qword [rcx + 4], rax
add rsp, 0x28
ret
xor eax, eax
mov dword [rcx + 4], eax
add rsp, 0x28
ret
xor eax, eax
mov dword [rcx + 0x1c], 0x67452301
mov qword [rcx + 0x30], rax
mov dword [rcx + 0x20], 0xefcdab89
mov dword [rcx + 0x24], 0x98badcfe
mov dword [rcx + 0x28], 0x10325476
mov dword [rcx + 0x2c], 0xc3d2e1f0
add rsp, 0x28
ret
xor eax, eax
mov dword [rcx + 0xc], 0x67452301
mov dword [rcx + 0x10], 0xefcdab89
mov dword [rcx + 0x14], 0x98badcfe
mov dword [rcx + 0x18], 0x10325476
mov qword [rcx + 4], rax
add rsp, 0x28
ret
Function at 0x1400c6d70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
mov r9d, dword [rcx]
mov r10, rdx
mov ebx, r8d
mov r11, rcx
test r9d, r9d
je 0x1400c6e0f
sub r9d, 1
je 0x1400c6dfe
sub r9d, 1
je 0x1400c6dba
cmp r9d, 1
je 0x1400c6da9
mov ecx, 0xc000000d
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
add rcx, 4
mov r8d, ebx
add rsp, 0x20
pop rbx
jmp fcn.140103230
mov r8d, dword [rcx + 4]
mov r9, rbx
not r8d
test ebx, ebx
je 0x1400c6df1
lea rbx, [0x14016aa00]
nop
movsx ecx, byte [r10]
lea r10, [r10 + 1]
mov eax, r8d
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r8d, dword [rbx + rdx*4]
xor r8d, eax
sub r9, 1
jne 0x1400c6dd0
not r8d
mov dword [r11 + 4], r8d
add rsp, 0x20
pop rbx
ret
add rcx, 4
mov r8d, ebx
add rsp, 0x20
pop rbx
jmp fcn.140105440
add rcx, 4
mov r8d, ebx
add rsp, 0x20
pop rbx
jmp fcn.140103570

Function at 0x1400c7bc0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
lea rcx, str.Process_HackerCache
call sym.ProcessHacker.exe_PhCountStringZ
mov rdx, qword [0x140196800]
mov rsi, rax
add rsi, rsi
lea rbx, [rsi + 0x208]
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
xor ebp, ebp
xor r9d, r9d
xor r8d, r8d
mov rdi, rax
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
lea edx, [rbp + 0x1c]
mov word [rcx + rbx], bp
mov rcx, qword [rax + 8]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
or ebx, 0xffffffff
test eax, eax
js 0x1400c7c61
mov rcx, qword [rdi + 8]
call sym.ProcessHacker.exe_PhCountStringZ
mov rcx, qword [rdi + 8]
lea r8, [rsi + 2]
add rax, rax
lea rdx, str.Process_HackerCache
mov qword [rdi], rax
shr rax, 1
lea rcx, [rcx + rax*2]
call fcn.14010e700
add qword [rdi], rsi
jmp 0x1400c7c79
lea rcx, [rdi - 0x10]
mov eax, ebx
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400c7c76
call fcn.1400c8bc0
mov rdi, rbp
mov rcx, rdi
call sym.ProcessHacker.exe_PhDeleteDirectory
lea rcx, [rdi - 0x10]
lock xadd dword [rcx + 8], ebx
cmp ebx, 1
jne 0x1400c7c94
call fcn.1400c8bc0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400c8020
Capabilities:
Create directory

Disassembly:
sub rsp, 0x68
test byte [0x14018dc70], 1
jne 0x1400c81eb
lock bts qword [0x14018dc70], 0x1f
jae 0x1400c8064
test byte [0x14018dc70], 1
jne 0x1400c81eb
xor edx, edx
lea rcx, [0x14018dc70]
call sym.ProcessHacker.exe_PhfWaitForEvent
mov rax, qword [0x140193800]
add rsp, 0x68
ret
mov qword [rsp + 0x70], rbx
lea rdx, [0x14018dc40]
mov qword [rsp + 0x78], rsi
lea rcx, [rsp + 0x20]
mov r8b, 2
mov qword [rsp + 0x60], rdi
call qword [sym.imp.ntdll.dll_RtlInitializeSid]
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
mov edx, 1
lea rcx, [rsp + 0x20]
mov dword [rax], 0x20
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
lea rcx, [0x14018e2f0]
mov dword [rax], 0x220
call qword [sym.imp.ntdll.dll_RtlLengthSid]
lea rcx, [0x14018e2e0]
mov ebx, eax
call qword [sym.imp.ntdll.dll_RtlLengthSid]
lea rcx, [rsp + 0x20]
add ebx, eax
call qword [sym.imp.ntdll.dll_RtlLengthSid]
mov rcx, qword [0x140196670]
mov edx, 4
add eax, 0x54
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 r8d, 2
lea rcx, [rsi + 0x28]
call qword [sym.imp.ntdll.dll_RtlCreateAcl]
lea r9, [0x14018e2e0]
mov edx, 2
mov r8d, 0xf000f
lea rcx, [rsi + 0x28]
call qword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
lea r9, [rsp + 0x20]
mov edx, 2
mov r8d, 0xf000f
lea rcx, [rsi + 0x28]
call qword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
mov edx, 2
lea r9, [0x14018e2f0]
lea rcx, [rsi + 0x28]
lea r8d, [rdx + 5]
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 ecx, ecx
mov dword [rsp + 0x30], 0x30
mov qword [rsp + 0x38], rcx
lea rax, [0x14018dc30]
mov qword [rsp + 0x58], rcx
lea r8, [rsp + 0x30]
lea rcx, [0x140193800]
mov dword [rsp + 0x48], 0x80
mov edx, 0x2000000
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], rsi
call qword [sym.imp.ntdll.dll_NtCreateDirectoryObject]
mov rcx, qword [0x140196670]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea rcx, [0x14018dc70]
call sym.ProcessHacker.exe_PhfSetEvent
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov rax, qword [0x140193800]
add rsp, 0x68
ret
Function at 0x1400c8200
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x40
mov rbx, r9
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], rdx
lea r9, [rsp + 0x60]
mov r8d, 3
mov qword [rsp + 0x38], 0
lea rdx, [rsp + 0x28]
mov rdi, rcx
call qword [sym.imp.ntdll.dll_LdrFindResource_U]
test eax, eax
jns 0x1400c824a
xor al, al
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rdx, qword [rsp + 0x60]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_LdrAccessResource]
test eax, eax
js 0x1400c823d
mov eax, dword [rsp + 0x58]
mov qword [rsp + 0x50], rsi
test rbx, rbx
je 0x1400c8276
mov dword [rbx], eax
mov rcx, qword [0x140196670]
mov r8, rax
mov rsi, qword [rsp + 0x20]
mov edx, 4
mov rdi, rax
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8, rdi
mov rdx, rsi
mov rcx, rax
mov rbx, rax
call fcn.14010e700
mov rcx, qword [rsp + 0x70]
mov al, 1
mov rsi, qword [rsp + 0x50]
mov qword [rcx], rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x1400c8ce0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
xor eax, eax
mov rbx, rcx
mov dword [rcx], eax
mov qword [rcx + 0x208], rax
mov qword [rcx + 0x210], rax
mov ecx, dword [0x140196214]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x140196214]
mov rdx, rbx
mov qword [rbx + 0x218], rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1400c8d2d
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
add rsp, 0x20
pop rbx
ret

Function at 0x1400c8d40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.ProcessHacker.exe_PhDrainAutoPool
mov ecx, dword [0x140196214]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp rax, rbx
je 0x1400c8d6b
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
mov rdx, qword [rbx + 0x218]
mov ecx, dword [0x140196214]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1400c8d8e
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
mov r8, qword [rbx + 0x210]
test r8, r8
je 0x1400c8daf
mov rcx, qword [0x140196670]
xor edx, edx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.ntdll.dll_RtlFreeHeap]
add rsp, 0x20
pop rbx
ret

Function at 0x1400c8ea0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ecx, dword [0x140196214]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rdi, rdi
jne 0x1400c8ece
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov eax, dword [rax]
cmp eax, 0x40
jae 0x1400c8eea
mov qword [rbx + rax*8 + 8], rdi
mov rax, rdi
inc dword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp qword [rbx + 0x210], 0
jne 0x1400c8f1d
mov rcx, qword [0x140196670]
mov edx, 4
mov r8d, 0x200
mov dword [rbx + 0x20c], 0x40
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rbx + 0x210], rax
mov eax, dword [rbx + 0x208]
mov ecx, dword [rbx + 0x20c]
cmp eax, ecx
jne 0x1400c8f63
mov r8, qword [rbx + 0x210]
lea eax, [rcx + rcx]
mov rcx, qword [0x140196670]
mov edx, 4
mov r9d, eax
shl r9, 3
mov dword [rbx + 0x20c], eax
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov qword [rbx + 0x210], rax
mov eax, dword [rbx + 0x208]
mov ecx, eax
mov rax, qword [rbx + 0x210]
mov qword [rax + rcx*8], rdi
mov rax, rdi
inc dword [rbx + 0x208]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret