joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000bf88
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400b77a8]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor ebp, ebp
mov rsi, rcx
mov qword [rsp + 0x38], rbp
mov ebx, ebp
test rcx, rcx
je 0x14000c0f4
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bp
jne 0x14000bfca
inc rax
cmp rax, 0x207
jae 0x14000c0f4
mov ecx, 0x438
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rdi, rax
test rax, rax
je 0x14000c0f4
lea rcx, [rsp + 0x40]
call fcn.14000c258
lea r8, str.PrintersConnections
mov edx, 0x21c
mov rcx, rdi
call fcn.14000c210
mov eax, 0x5c
lea rdx, [rdi + 0x2a]
mov r8d, 0x207
mov word [rdi + 0x28], ax
mov rcx, rsi
call sym.spoolsv.exe_PrvFormatPrinterForRegistryKey
mov ecx, 0x20019
call sym.spoolsv.exe_PrvSplGetClientUserHandle
mov rsi, rax
test rax, rax
je 0x14000c0d2
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14000c0c3
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x14009a9b0]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x30], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x14002a316
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [0x1400b9518]
mov r8, rdi
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
call fcn.14000c128
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140013430
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rbx, qword [0x1400b9558]
jmp 0x14002a33f
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14000c0b2
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14002a31f
jmp 0x14000c0b2

Function at 0x14000c128
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx]
mov rbx, rcx
cmp rdx, 0xffffffffffffffff
je 0x14000c155
test rdx, rdx
je 0x14000c155
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_SetThreadToken]
nop dword [rax + rax]
test eax, eax
je 0x14002a34a
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14000c5c0
mov ecx, 1
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
Function at 0x14000cdec
Capabilities:
Delete file
Move file

Disassembly:
test rcx, rcx
je 0x14000ce86
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x1400b9258]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rax, qword [rbx + 0x20]
test rax, rax
jne 0x14002b04a
or edx, 0xffffffff
mov rcx, rbx
call fcn.14000ceac
lea rcx, [rbx + 0x18]
cmp qword [rcx], 0
jne 0x14000ce9f
lea rcx, [0x1400b9258]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x38]
cmp rcx, 0xffffffffffffffff
jne 0x14002b058
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x14002b06a
mov r8, qword [rbx + 0x48]
test r8, r8
jne 0x14000ce88
mov rcx, qword [0x1400b9518]
mov r8, rbx
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
add rsp, 0x20
pop rbx
ret
mov rcx, qword [0x1400b9518]
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
jmp 0x14000ce69
call fcn.140009064
jmp 0x14000ce32
and qword [rax + 8], 0
mov rax, qword [rax + 0x10]
jmp 0x14000ce14
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
jmp 0x14000ce53
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14002b090
mov rcx, qword [rbx + 0x40]
lea r8d, [rax + 4]
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
nop dword [rax + rax]
mov r8, qword [rbx + 0x40]
xor edx, edx
mov rcx, qword [0x1400b9518]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
and qword [rbx + 0x40], 0
jmp 0x14000ce60
Function at 0x14000da20
Capabilities:
Get thread local storage value
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1400b77a8]
xor rax, rsp
mov qword [rsp + 0x80], rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [0x1400b9550]
xor esi, esi
mov edi, eax
cmp ecx, 0xffffffff
je 0x14002ccaa
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
nop dword [rax + rax]
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.RPCRT4.dll_I_RpcBindingInqTransportType]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14000dbab
cmp dword [rsp + 0x60], 4
jne 0x14002ccc8
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
nop dword [rax + rax]
mov ebx, 1
lea r9, [rsp + 0x70]
mov rcx, rax
mov r8d, ebx
lea edx, [rbx + 7]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
nop dword [rax + rax]
test eax, eax
je 0x14000dbba
lea rax, [rsp + 0x68]
mov dword [rsp + 0x78], esi
mov qword [rsp + 0x50], rax
lea r8d, [rbx + 1]
mov dword [rsp + 0x48], esi
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x40], esi
xor r9d, r9d
mov dword [rsp + 0x38], esi
movzx edx, bl
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
mov word [rsp + 0x7c], 0x500
mov qword [rsp + 0x68], rsi
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
nop dword [rax + rax]
test eax, eax
je 0x14002ccde
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x64]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
je 0x14002ccd2
cmp dword [rsp + 0x64], esi
jne 0x14000db4b
mov ebx, esi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
test ebx, ebx
js 0x14002ccea
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140013430
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
cmp eax, 0x6bd
jne 0x14002ccb2
mov ebx, esi
jmp 0x14000db6d
call fcn.14000dcf4
mov ebx, eax
cmp eax, 0x800703f0
je 0x14000dbb6
jmp 0x14000db6d
mov rax, rsi
jmp 0x14000da6f
test eax, eax
jle 0x14000db6d
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14000db6d
mov ebx, 1
jmp 0x14000db6d
call fcn.14000dcf4
mov ebx, eax
jmp 0x14000db4b
call fcn.14000dcf4
mov ebx, eax
jmp 0x14000db5c
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x14000db83
test byte [rcx + 0x44], 0x20
je 0x14000db83
mov rcx, qword [rcx + 0x38]
lea r8, [0x14009cc18]
mov edx, 0x12
mov r9d, ebx
call fcn.1400307d8
nop
jmp 0x14000db83
Function at 0x14000e070
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ecx, 0x440
xor edi, edi
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rbx, rax
test rax, rax
je 0x14000e103
mov ecx, 0x2001f
call sym.spoolsv.exe_PrvSplGetClientUserHandle
mov qword [rbx + 8], rax
test rax, rax
je 0x14002a969
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
nop dword [rax + rax]
mov r9, rbx
lea edx, [rdi + 0xe]
mov rcx, rax
lea r8d, [rdi + 1]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
nop dword [rax + rax]
test eax, eax
je 0x14002a960
test rbx, rbx
je 0x14000e0f0
cmp dword [0x1400b9560], edi
je 0x14002a989
mov rcx, rbx
call fcn.14000e9c0
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
jmp 0x14000e0f2
lea rcx, [rbx + 8]
call fcn.14000eb88
mov rcx, qword [0x1400b9518]
mov r8, rbx
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rbx, rdi
jmp 0x14000e0d7
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [fcn.14000e9c0]
xor edx, edx
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
nop dword [rax + rax]
test rax, rax
je 0x14002a9cb
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
jmp 0x14000e0f0
mov rcx, qword [rbx]
mov edi, 1
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
lea rcx, [rbx + 8]
call fcn.14000eb88
mov rcx, qword [0x1400b9518]
mov r8, rbx
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
nop
jmp 0x14000e0f0
Function at 0x14000e5d4
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
mov rbx, rcx
xor edi, edi
lea rcx, [rbp - 0x50]
mov qword [rbp + 0x30], rdi
mov rsi, rdx
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea rax, [rbp - 0x50]
mov dword [rbp - 0x30], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x20], rax
lea r9d, [rdi + 8]
mov qword [rbp - 0x28], rbx
lea r8, [rbp - 0x30]
mov dword [rbp - 0x18], 0x140
mov edx, 0x2000000
lea rcx, [rbp + 0x30]
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKeyEx]
nop dword [rax + rax]
test eax, eax
js 0x14000e69b
lea rdx, str.SymbolicLinkValue
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea r8d, [rdi + 2]
xor r9d, r9d
mov dword [rsp + 0x20], edi
lea rdx, [rbp - 0x40]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
cmp eax, 0xc0000034
jne 0x14000e6b1
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov rbx, qword [rsp + 0xa8]
mov eax, edi
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
cmp dword [rbp + 0x20], edi
jbe 0x14000e68b
jmp 0x14002abae
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
nop dword [rax + rax]
test eax, eax
mov ecx, 1
cmovns edi, ecx
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x14000e68b
test byte [rcx + 0x44], 0x20
je 0x14000e68b
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400ac5e0]
mov edx, 0xa
mov r9, rsi
call fcn.140040ed0
nop
jmp 0x14000e68b
Function at 0x14000e9c0
Capabilities:
Get token privileges

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400b77a8]
xor rax, rsp
mov qword [rbp - 8], rax
and dword [rbp - 0x1c], 0
lea rdi, [rcx + 8]
and qword [rbp - 0x18], 0
lea rdx, str.Printers
mov rbx, rcx
mov rcx, qword [rdi]
call fcn.14000e5d4
and qword [rsp + 0x40], 0
lea rax, [rbp - 0x18]
mov rcx, qword [rdi]
lea rdx, str.Printers
mov qword [rsp + 0x38], rax
xor r9d, r9d
and qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
and dword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
mov dword [rbp - 0x20], eax
test eax, eax
jne 0x14002b39c
mov rcx, qword [rbp - 0x18]
call fcn.14000e10c
mov dword [rbp - 0x20], eax
test eax, eax
jne 0x14002b39c
lea rcx, [rbp - 0x18]
call fcn.140012d98
cmp dword [0x1400b9560], 0
je 0x14002b3db
mov rcx, qword [rbx]
call fcn.14000ffdc
test eax, eax
jne 0x14000eb37
mov rdx, rdi
xor ecx, ecx
call fcn.14000e34c
test eax, eax
je 0x14000eae4
mov edx, 1
mov rcx, rdi
call fcn.14000ec04
mov rcx, qword [rbx]
lea rax, [rbp - 0x10]
mov qword [rbp - 0x18], rax
lea rdx, [rbp - 0x18]
xor eax, eax
mov dword [rbp - 0x10], eax
call fcn.1400106a0
test eax, eax
js 0x14000ead7
lea rdx, str._Classes
lea rcx, [rbp - 0x18]
call fcn.140010aa0
test eax, eax
js 0x14000ead7
mov rcx, qword [rbp - 0x18]
call fcn.14000f578
mov rdx, qword [rbp - 0x18]
lea rcx, [rbp - 0x18]
call fcn.140010ca0
and qword [rsp + 0x20], 0
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 3]
call sym.spoolsv.exe_PrvRouterBroadcastMessage
mov rcx, qword [rbx]
lea rax, [rbp - 0x20]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x1c]
lea edx, [r9 + 8]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
nop dword [rax + rax]
test eax, eax
je 0x14000eb37
mov r8d, dword [rbp - 0x1c]
mov edx, 1
mov ecx, edx
mov r9, rbx
call fcn.14000c70c
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14002b3f8
mov rcx, rdi
call fcn.14000eb88
mov rcx, qword [0x1400b9518]
mov r8, rbx
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140013430
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov rcx, qword [0x1400b72f8]
lea rdx, [0x1400b72f8]
cmp rcx, rdx
je 0x14000ea5c
test byte [rcx + 0x44], 0x20
je 0x14000ea5c
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400ac5e0]
mov edx, 0xd
mov r9d, eax
call fcn.1400307d8
nop
jmp 0x14000ea5c
mov edx, 0x1d4c0
call fcn.14005856c
test eax, eax
jns 0x14000ea72
call sym.spoolsv.exe_PrvWaitForSpoolerInitialization
nop
jmp 0x14000ea72
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
jmp 0x14000eb43
Function at 0x14000ed28
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x450
mov rax, qword [0x1400b77a8]
xor rax, rsp
mov qword [rsp + 0x440], rax
xor ebp, ebp
mov rsi, r9
mov r14, r8
mov r12, rdx
mov r13, rcx
test rdx, rdx
jne 0x14000ed6b
xor eax, eax
jmp 0x14000ef02
mov edi, 0x208
lea r9, str.winspool
mov edx, edi
lea r8, [0x14009cd10]
lea rcx, [rsp + 0x30]
call fcn.14000ef34
or rbx, 0xffffffffffffffff
lea rax, [rsp + 0x30]
mov rcx, rbx
inc rcx
cmp word [rax + rcx*2], bp
jne 0x14000ed96
mov r15d, ecx
lea rbp, [rsp + 0x30]
mov edx, edi
sub edx, ecx
lea rbp, [rbp + r15*2]
mov rcx, rbp
test r14, r14
jne 0x14000ee64
mov eax, dword [rsi]
lea r9, [0x14009cce0]
lea r8, str._s_.2d:
mov dword [rsp + 0x20], eax
call fcn.14000ef34
inc dword [rsi]
cmp dword [rsi], 0x63
jbe 0x14000eddf
and dword [rsi], r14d
call sym.spoolsv.exe_PrvRevertToPrinterSelf
mov rcx, rbp
mov rsi, rax
call fcn.14000f018
test rsi, rsi
je 0x14000edfc
mov rcx, rsi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
xor esi, esi
lea rcx, [rsp + 0x30]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], si
jne 0x14000ee06
mov rcx, qword [r13 + 0x10]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, 1
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, rdi
lea rax, [rsp + 0x30]
cmp word [rax], si
je 0x14000ee57
add rax, 2
sub rcx, 1
jne 0x14000ee48
test rcx, rcx
je 0x14000ee99
mov rax, rdi
sub rax, rcx
jmp 0x14000ee9c
mov r8, r14
call fcn.14000c210
lea rcx, [rsp + 0x30]
mov edx, 0x2c
lea rcx, [rcx + r15*2]
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
xor esi, esi
test rax, rax
je 0x14000edfe
mov word [rax], si
jmp 0x14000edfe
mov rax, rsi
test rcx, rcx
je 0x14000eebc
sub rdi, rax
lea rcx, [rsp + 0x30]
lea rcx, [rcx + rax*2]
mov rdx, rdi
lea r9, str._15_45
call fcn.140016958
lea rax, [rsp + 0x30]
inc rbx
cmp word [rax + rbx*2], si
jne 0x14000eec1
lea r8d, [rbx*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], r8d
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [r13 + 0x18]
mov rdx, r12
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov eax, 1
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140013430
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x450
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000f018
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
lea rax, [r11 + 0x18]
mov rsi, rcx
mov qword [r11 + 0x18], rbx
xor r8d, r8d
mov qword [r11 - 0x18], rax
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionPorts
mov rcx, 0xffffffff80000002
lea r9d, [rbx + 2]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x14000f094
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], 2
lea r9d, [rbx + 1]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov word [rsp + 0x48], bx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000f0aa
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x58]
test edi, edi
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000f578
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x1400b77a8]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdx, rcx
lea rcx, [rsp + 0x58]
call fcn.140010ba0
lea rdx, str.Local_SettingsPrintersPropertyBags
lea rcx, [rsp + 0x58]
call fcn.140010aa0
test eax, eax
js 0x14000f608
mov rdx, qword [rsp + 0x58]
lea rax, [rsp + 0x40]
and qword [rsp + 0x40], 0
mov r9d, 0x1000b
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000003
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x14002b714
lea rcx, [rsp + 0x40]
call fcn.140012d98
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.140010ca0
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140013430
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
xor edx, edx
lea rcx, [0x1400abde8]
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
nop dword [rax + rax]
and qword [rsp + 0x50], 0
lea rcx, [rsp + 0x50]
mov rbx, rax
call fcn.14006b85c
mov qword [rsp + 0x50], rbx
test rbx, rbx
je 0x14002b7dd
lea rdx, str.SplIsValidUserPropertyBag
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14002b7dd
xor ebx, ebx
and qword [rsp + 0x38], 0
lea r9, [rsp + 0x48]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x70]
and qword [rsp + 0x28], 0
mov edx, ebx
mov rcx, qword [rsp + 0x40]
and qword [rsp + 0x20], 0
mov dword [rsp + 0x48], 0x104
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14002b7dd
lea rcx, [rsp + 0x70]
mov rax, rdi
call qword [0x140098d68]
test al, al
jne 0x14002b7d9
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteTreeW]
nop dword [rax + rax]
inc ebx
jmp 0x14002b770
lea rcx, [rsp + 0x50]
call fcn.14006b85c
nop
jmp 0x14000f5fe
Function at 0x140010388
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r15, qword [0x1400b9570]
xor r14d, r14d
mov r13, r9
mov qword [rax + 8], r14
mov r12, r8
mov ebp, edx
xor esi, esi
mov rbx, qword [r15 + 0x60]
mov rcx, rbx
call fcn.140004648
mov rax, r12
neg rax
mov eax, 0x80070057
sbb edi, edi
not edi
and edi, eax
test r12, r12
je 0x140010420
and dword [r12], esi
lea rcx, [r15 + 0x38]
test rcx, rcx
je 0x14002c804
xor eax, eax
lea edi, [rsi + 1]
add rcx, 8
je 0x140010402
mov rax, qword [rcx + 0x10]
test rcx, rcx
je 0x140010420
cmp rax, rcx
je 0x140010420
mov edx, ebp
sub edx, dword [rax + 0x24]
js 0x140010420
test edx, edx
jne 0x14002c80b
mov rsi, rax
xor edi, edi
test edi, edi
jne 0x140010559
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.14001140c
mov r14, qword [rsp + 0x70]
mov edi, eax
test edi, edi
js 0x1400104f6
mov rbp, qword [r14 + 0x28]
mov rcx, r13
mov rdx, rbp
call fcn.140010bd8
mov edi, eax
test eax, eax
js 0x1400104d3
and qword [rsp + 0x70], 0
lea r8, [0x14009b2c0]
mov rax, qword [rsi + 0x30]
lea r9, str.SoftwareMicrosoftWindows_NTCurrentVersionWindowsSessionDefaultDevices
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov qword [rsp + 0x20], r8
call fcn.14001108c
mov ecx, eax
call fcn.14001a12c
mov edi, eax
test eax, eax
js 0x1400104d3
mov rdx, qword [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000003
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
nop dword [rax + rax]
mov r8, qword [rsp + 0x70]
xor edx, edx
mov rcx, qword [0x1400b9518]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
cmp dword [r14 + 0x24], 0
jne 0x1400104f6
dec dword [r15 + 0x30]
mov edx, 1
mov rax, qword [r14]
mov rcx, r14
mov dword [r12], edx
mov rax, qword [rax]
call qword [0x140098d68]
test rsi, rsi
je 0x14001050f
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
mov rax, qword [rax]
call qword [0x140098d68]
test edi, edi
jns 0x140010530
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x140010530
test byte [rcx + 0x44], 0x20
jne 0x14002c814
mov rcx, rbx
call fcn.14000467c
lea r11, [rsp + 0x40]
mov eax, edi
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
js 0x1400104f6
mov edi, 0x80004005
jmp 0x14001043c
mov edi, eax
jmp 0x140010420
mov rax, qword [rax + 0x10]
jmp 0x140010402
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400ac658]
mov edx, 0xd
mov r9d, edi
call fcn.1400307d8
nop
jmp 0x140010530
Function at 0x140010ec8
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
mov eax, dword [rcx + 0x14]
lea r9, [r11 + 8]
mov r8, qword [rcx + 8]
mov rbx, rcx
mov dword [rsp + 0x50], eax
xor edx, edx
xor eax, eax
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], rax
mov dword [rcx + 0x10], eax
mov rcx, qword [rcx]
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
mov ecx, eax
call fcn.14001a12c
mov dword [rbx + 0x18], eax
add rsp, 0x40
pop rbx
ret

Function at 0x14001397c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400139c8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400139c0
cmp dword [rcx + 0x3c], edx
jl 0x1400139c0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400139c0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400139c8
mov rax, rdx
add rsp, 0x18
ret