joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001550
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push rbp
sub rsp, 0x140
lea rbp, [rsp + 0x80]
lea rax, [rbp + 0xb8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
mov r8d, 0
lea rax, str.HARDWAREDescriptionSystemCentralProcessor0
mov rdx, rax
mov rcx, 0xffffffff80000002
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
test eax, eax
sete al
test al, al
je 0x14000164a
mov dword [rbp + 0xb4], 0x100
mov rax, qword [rbp + 0xb8]
lea rdx, [rbp + 0xb4]
mov qword [rsp + 0x28], rdx
lea rdx, [rbp - 0x50]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
lea rdx, str.ProcessorNameString
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call rax
test eax, eax
sete al
test al, al
je 0x140001637
lea rax, [rbp - 0x50]
lea rdx, str.Virtual
mov rcx, rax
call sub.msvcrt.dll_strstr
test rax, rax
jne 0x14000161d
lea rax, [rbp - 0x50]
lea rdx, str.VMware
mov rcx, rax
call sub.msvcrt.dll_strstr
test rax, rax
je 0x140001637
mov rax, qword [rbp + 0xb8]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov eax, 1
jmp 0x14000164f
mov rax, qword [rbp + 0xb8]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov eax, 0
add rsp, 0x140
pop rbp
ret

Function at 0x140001658
Capabilities:
Delete file
Get common file path

Disassembly:
push rbp
push rbx
sub rsp, 0x1c8
lea rbp, [rsp + 0x80]
lea rax, [rbp + 0xf0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLocalTime]
call rax
lea rax, str.Current_time_is
mov rdx, rax
mov rax, qword [0x141131f40]
mov rcx, rax
call fcn.1400b28a0
mov rcx, rax
movzx eax, word [rbp + 0xf8]
movzx eax, ax
mov edx, eax
call fcn.140072e70
mov rcx, rax
lea rax, [0x14112c06b]
mov rdx, rax
call fcn.1400b28a0
mov rcx, rax
movzx eax, word [rbp + 0xfa]
movzx eax, ax
mov edx, eax
call fcn.140072e70
mov rcx, rax
mov rax, qword [0x141131f50]
mov rdx, rax
call fcn.140072bf0
lea rax, [rbp - 0x20]
mov rdx, rax
mov ecx, 0x104
mov rax, qword [sym.imp.KERNEL32.dll_GetTempPathA]
call rax
test eax, eax
setne al
test al, al
je 0x140001841
lea rax, [rbp + 0x12f]
mov qword [rbp + 0x130], rax
nop
nop
lea rcx, [rbp + 0x12f]
lea rdx, [rbp - 0x20]
lea rax, [rbp + 0x100]
mov r8, rcx
mov rcx, rax
call fcn.1400a22f0
lea rax, [rbp - 0x40]
lea rdx, [rbp + 0x100]
lea r8, str.tempfile.tmp
mov rcx, rax
call fcn.1400b2f50
lea rax, [rbp + 0x100]
mov rcx, rax
call fcn.1400a2b20
lea rax, [rbp + 0x12f]
mov rcx, rax
call fcn.140092c50
nop
lea rax, [rbp - 0x40]
mov rcx, rax
call fcn.140027690
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x100
mov dword [rsp + 0x20], 2
mov r9d, 0
mov r8d, 0
mov edx, 0x40000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp + 0x138], rax
cmp qword [rbp + 0x138], 0xffffffffffffffff
je 0x1400017e7
mov rax, qword [rbp + 0x138]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
lea rax, [rbp - 0x40]
mov rcx, rax
call fcn.140027690
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeleteFileA]
call rax
lea rax, [rbp - 0x40]
mov rcx, rax
call fcn.1400a2b20
jmp 0x140001841
nop
add rsp, 0x1c8
pop rbx
pop rbp
ret
Function at 0x140001e0b
Capabilities:
Hide graphical window

Disassembly:
push rbp
push rsi
push rbx
mov eax, 0x13d0
call fcn.14000cd20
sub rsp, rax
lea rbp, [rsp + 0x80]
call fcn.14000bd20
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov qword [rbp + 0x1348], rax
cmp qword [rbp + 0x1348], 0
je 0x140001e5a
mov rax, qword [rbp + 0x1348]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
call fcn.140001534
test al, al
jne 0x140001e6c
call fcn.140001550
test al, al
je 0x140001e73
mov eax, 1
jmp 0x140001e78
mov eax, 0
test al, al
je 0x140001eb1
lea rax, str.Environment_not_suitable._Terminating.
mov rdx, rax
mov rax, qword [0x141131f40]
mov rcx, rax
call fcn.1400b28a0
mov rcx, rax
mov rax, qword [0x141131f50]
mov rdx, rax
call fcn.140072bf0
mov eax, 1
jmp 0x14000200a
call fcn.140001658
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.14008d6e0
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.14008d7a0
mov edx, eax
lea rax, [rbp + 0x970]
mov rcx, rax
call fcn.140099d00
lea rax, [rbp + 0x1338]
mov r8d, 0xbb8
mov edx, 0x3e8
mov rcx, rax
call fcn.140099ea0
lea rdx, [rbp + 0x970]
lea rax, [rbp + 0x1338]
mov rcx, rax
call fcn.140099ed0
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
call fcn.14000184c
lea rax, str.Operations_completed.
mov rdx, rax
mov rax, qword [0x141131f40]
mov rcx, rax
call fcn.1400b28a0
mov rcx, rax
mov rax, qword [0x141131f50]
mov rdx, rax
call fcn.140072bf0
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.14008d780
mov eax, 0
jmp 0x14000200a
add rsp, 0x13d0
pop rbx
pop rsi
pop rbp
ret

Function at 0x14000bf30
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rbx, rcx
lea rax, [rbp + 0x28]
mov ecx, 2
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
mov qword [rbp - 8], rax
call fcn.140016250
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rbp - 8]
mov ecx, 2
call fcn.140016250
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x14000bfa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
movsxd rsi, dword [0x1411590a4]
mov rbx, rcx
test esi, esi
jle 0x14000c0d0
mov rax, qword [0x1411590a8]
xor r9d, r9d
add rax, 0x18
nop dword [rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000bfeb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000c073
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000bfd0
mov rcx, rbx
call fcn.14000ca50
mov rdi, rax
test rax, rax
je 0x14000c0f2
mov rax, qword [0x1411590a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000cb90
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1411590a8]
lea rdx, [rbp - 0x30]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000c0d7
mov eax, dword [rbp - 0xc]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000c06c
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000c080
add dword [0x1411590a4], 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 2
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1411590a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000c06c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000bf30
nop word [rax + rax]
xor esi, esi
jmp 0x14000bff8
mov rax, qword [0x1411590a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000bf30
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000bf30
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000c680
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
lea r13, [0x141159100]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1411590e0]
test rbx, rbx
je 0x14000c6e5
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [rbx]
call r12
mov rsi, rax
call rdi
test rsi, rsi
je 0x14000c6dc
test eax, eax
jne 0x14000c6dc
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000c6c0
mov rcx, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000ca50
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1411324f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000ca70
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000ca78
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000ca70
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000cacd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000cac4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000ca70
add rax, 0x28
cmp rax, r9
jne 0x14000cab0
xor eax, eax
ret

Function at 0x14000cad0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1411324f0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000caef
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000caf8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000caef
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000cb90
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1411324f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000cbaf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000cbb8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140079b90
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140079bd8
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x140079baa
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14008d650
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x14008d678
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
test eax, eax
jle 0x14008d6c0
cdqe
add rsi, rax
sub rbx, rax
jne 0x14008d690
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x14008d6cc
call rbp
cmp dword [rax], 4
je 0x14008d690
lea rcx, str.random_device_could_not_be_read
call fcn.1400b61b0
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140099ad0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x14], 0x80000000
mov dword [rbp - 0x18], 0x7fffffff
mov qword [rbp - 8], 0
jmp 0x140099b62
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 8]
mov eax, dword [rax + rdx*4]
and eax, 0x80000000
mov ecx, eax
mov rax, qword [rbp - 8]
lea rdx, [rax + 1]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
and eax, 0x7fffffff
or eax, ecx
mov dword [rbp - 0x24], eax
mov rax, qword [rbp - 8]
lea rdx, [rax + 0x18d]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
mov edx, dword [rbp - 0x24]
shr edx, 1
xor edx, eax
mov eax, dword [rbp - 0x24]
and eax, 1
test eax, eax
je 0x140099b49
mov eax, 0x9908b0df
jmp 0x140099b4e
mov eax, 0
xor eax, edx
mov ecx, eax
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 8]
mov dword [rax + rdx*4], ecx
add qword [rbp - 8], 1
cmp qword [rbp - 8], 0xe2
jbe 0x140099af4
mov qword [rbp - 0x10], 0xe3
jmp 0x140099be4
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x10]
mov eax, dword [rax + rdx*4]
and eax, 0x80000000
mov ecx, eax
mov rax, qword [rbp - 0x10]
lea rdx, [rax + 1]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
and eax, 0x7fffffff
or eax, ecx
mov dword [rbp - 0x20], eax
mov rax, qword [rbp - 0x10]
lea rdx, [rax - 0xe3]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
mov edx, dword [rbp - 0x20]
shr edx, 1
xor edx, eax
mov eax, dword [rbp - 0x20]
and eax, 1
test eax, eax
je 0x140099bcb
mov eax, 0x9908b0df
jmp 0x140099bd0
mov eax, 0
xor eax, edx
mov ecx, eax
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x10]
mov dword [rax + rdx*4], ecx
add qword [rbp - 0x10], 1
cmp qword [rbp - 0x10], 0x26e
jbe 0x140099b76
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x9bc]
and eax, 0x80000000
mov edx, eax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax]
and eax, 0x7fffffff
or eax, edx
mov dword [rbp - 0x1c], eax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x630]
mov edx, dword [rbp - 0x1c]
shr edx, 1
xor edx, eax
mov eax, dword [rbp - 0x1c]
and eax, 1
test eax, eax
je 0x140099c31
mov eax, 0x9908b0df
jmp 0x140099c36
mov eax, 0
xor edx, eax
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x9bc], edx
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x9c0], 0
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140099c60
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov eax, dword [rbp + 0x18]
mov ecx, eax
call fcn.1400aaec0
mov rdx, qword [rbp + 0x10]
mov dword [rdx], eax
mov qword [rbp - 8], 1
jmp 0x140099cd8
mov rax, qword [rbp - 8]
lea rdx, [rax - 1]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
shr eax, 0x1e
xor dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
imul eax, eax, 0x6c078965
mov dword [rbp - 0xc], eax
mov rax, qword [rbp - 8]
mov ecx, eax
call fcn.1400aaef0
add dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
mov ecx, eax
call fcn.1400aaec0
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp - 8]
mov dword [rdx + rcx*4], eax
add qword [rbp - 8], 1
cmp qword [rbp - 8], 0x26f
jbe 0x140099c89
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x9c0], 0x270
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140099d30
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x9c0]
cmp rax, 0x26f
jbe 0x140099d5b
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.140099ad0
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x9c0]
lea rcx, [rax + 1]
mov rdx, qword [rbp + 0x10]
mov qword [rdx + 0x9c0], rcx
mov rdx, qword [rbp + 0x10]
mov eax, dword [rdx + rax*4]
mov dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shr eax, 0xb
xor dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shl eax, 7
and eax, 0x9d2c5680
xor dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shl eax, 0xf
and eax, 0xefc60000
xor dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shr eax, 0x12
xor dword [rbp - 4], eax
mov eax, dword [rbp - 4]
add rsp, 0x30
pop rbp
ret

Function at 0x1400b53c0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x14112b940]
jmp 0x14000d8a0

Function at 0x1400b53d0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x14112b940]
jmp 0x14000d8a0
Function at 0x15008
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rbx, rcx
mov qword [0x000132c0], rcx
lea rcx, [0x000131a0]
mov rdi, rdx
mov dword [0x000131a0], 0x11c
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
test eax, eax
js 0x150da
mov rcx, rdi
call fcn.00015100
test eax, eax
js 0x150da
lea rdx, [0x000184d0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r11, [rsp + 0x60]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], r11
mov r9d, 0x22
xor edx, edx
mov rcx, rbx
mov byte [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov r11d, eax
test eax, eax
js 0x150da
mov rax, qword [rsp + 0x60]
lea rcx, [0x00011008]
mov qword [rbx + 0x70], rcx
lea rcx, [0x0001114c]
mov qword [0x000132d0], rax
mov qword [rbx + 0x80], rcx
lea rcx, [0x00011198]
mov qword [rbx + 0xe0], rcx
lea rcx, [0x000150ec]
mov qword [rbx + 0x68], rcx
btr dword [rax + 0x30], 7
mov eax, r11d
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x15100
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x00013100]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbx, rcx
lea rdx, [0x00018500]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
movzx r11d, word [rbx]
mov edi, 1
add r11w, word [rsp + 0x48]
mov r8d, 0x5468704b
mov ecx, edi
movzx edx, r11w
mov word [rsp + 0x38], r11w
mov word [rsp + 0x3a], r11w
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x15175
mov eax, 0xc000009a
jmp 0x15295
movzx r8d, word [rbx]
mov rdx, qword [rbx + 8]
mov rcx, rax
call fcn.00011a40
movzx ecx, word [rbx]
mov rax, qword [rsp + 0x40]
movzx r8d, word [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
shr rcx, 1
lea rcx, [rax + rcx*2]
call fcn.00011a40
and qword [rsp + 0x68], 0
and qword [rsp + 0x80], 0
and qword [rsp + 0x88], 0
lea rax, [rsp + 0x38]
lea r8, [rsp + 0x60]
lea rcx, [rsp + 0x30]
mov edx, 0x20019
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x60], 0x30
mov dword [rsp + 0x78], 0x240
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov rcx, qword [rsp + 0x40]
mov edx, 0x5468704b
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test ebx, ebx
jns 0x15208
xor ebx, ebx
and qword [rsp + 0x30], rbx
lea rdx, [0x00018520]
lea rcx, [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x15278
lea rax, [rsp + 0x58]
lea r9, [rsp + 0xa0]
lea rdx, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov r8d, 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp dword [rsp + 0xa4], 4
mov ecx, 0xc0000024
cmovne eax, ecx
mov ecx, dword [rsp + 0xac]
test eax, eax
cmovs ecx, edi
mov edi, ecx
mov rcx, qword [rsp + 0x30]
mov dword [0x000132cc], edi
call fcn.000152fc
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x15293
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.00011950
mov rbx, qword [rsp + 0xd8]
add rsp, 0xc0
pop rdi
ret
Function at 0x152fc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
test rcx, rcx
jne 0x15318
mov eax, 0xc0000001
jmp 0x153da
lea rdx, [0x00018540]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
xor r9d, r9d
lea r11, [rsp + 0x50]
mov qword [rsp + 0x28], r11
and dword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
lea r8d, [r9 + 2]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, 0x80000005
je 0x1535c
cmp eax, 0xc0000023
jne 0x1530e
mov edx, dword [rsp + 0x50]
mov ecx, 1
mov r8d, 0x5468704b
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
jne 0x15380
mov eax, 0xc000009a
jmp 0x153da
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x50]
mov r8d, 2
mov rcx, rdi
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov edi, eax
test eax, eax
js 0x153ca
cmp dword [rbx + 4], 3
jne 0x153c5
mov edx, dword [rbx + 8]
lea rcx, [rbx + 0xc]
call fcn.000153ec
mov edi, eax
jmp 0x153ca
mov edi, 0xc0000024
mov edx, 0x5468704b
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, edi
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x162a8
Capabilities:
Attach user process memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 0x10], rdx
push r12
push r13
push r14
sub rsp, 0x70
mov r13, r9
mov r12d, r8d
mov rdi, rdx
mov r14, rcx
mov bl, byte [rsp + 0xb8]
test bl, bl
je 0x16307
mov eax, 4
lea r8d, [rax - 3]
cmp r12d, 3
cmovne r8d, eax
mov esi, dword [rsp + 0xb0]
mov rdx, rsi
mov rcx, r9
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
jmp 0x1630e
mov esi, dword [rsp + 0xb0]
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9b, bl
mov r8, qword [sym.imp.ntoskrnl.exe_PsProcessType]
mov r8, qword [r8]
xor edx, edx
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov ebx, eax
test eax, eax
js 0x163e8
mov rcx, qword [rsp + 0x30]
mov rax, qword [sym.imp.ntoskrnl.exe_PsInitialSystemProcess]
cmp rcx, qword [rax]
jne 0x16362
or rdi, 0xffffffff80000000
mov qword [rsp + 0x98], rdi
jmp 0x16374
test rdi, rdi
jns 0x16374
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 0xc0000008
jmp 0x163e8
cmp r12d, 3
je 0x16381
mov ebx, 0xc0000003
jmp 0x163e0
cmp esi, 2
jne 0x163a6
movzx eax, word [r13]
mov word [rsp + 0xb8], ax
jmp 0x163a4
jmp 0x163ab
mov ebx, 0xc0000004
test ebx, ebx
js 0x163e0
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
xor r8d, r8d
lea rdx, [rsp + 0xb8]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ObSetHandleAttributes]
mov ebx, eax
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x1647c
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r12
push r13
sub rsp, 0x70
mov r13d, r9d
mov rbx, r8
mov r12d, edx
mov rdi, rcx
cmp byte [rsp + 0xa8], 0
je 0x164d8
mov edx, 8
mov r8d, edx
call qword [sym.imp.ntoskrnl.exe_ProbeForWrite]
mov edx, 0x10
lea r8d, [rdx - 0xc]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
movdqu xmm5, xmmword [rbx]
movdqu xmmword [rsp + 0x58], xmm5
jmp 0x164e3
movdqu xmm0, xmmword [r8]
movdqu xmmword [rsp + 0x58], xmm0
cmp qword [rsp + 0x60], 0
je 0x16513
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessThreadByCid]
mov ebx, eax
test eax, eax
js 0x16525
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x16525
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test ebx, ebx
jns 0x16530
mov eax, ebx
jmp 0x165c8
mov ecx, 1
mov eax, r12d
and eax, 0x1410
lea edx, [rcx + 1]
cmp eax, r12d
cmovne ecx, edx
mov r9b, byte [rsp + 0xa8]
mov r8, qword [rsp + 0xa0]
mov edx, r13d
call fcn.00017dd4
mov ebx, eax
test eax, eax
js 0x16597
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov rax, qword [sym.imp.ntoskrnl.exe_PsProcessType]
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
mov r9d, r12d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
test ebx, ebx
js 0x165c6
cmp byte [rsp + 0xa8], 0
je 0x165be
mov rax, qword [rsp + 0x48]
mov qword [rdi], rax
jmp 0x165bc
jmp 0x165c6
mov rax, qword [rsp + 0x48]
mov qword [rdi], rax
mov eax, ebx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret