joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005936c
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x290]
sub rsp, 0x390
mov rax, qword [0x1400be7a8]
xor rax, rsp
mov qword [rbp + 0x280], rax
xor r12d, r12d
mov r15, r8
cmp qword [0x1400c0710], r12
mov rbx, rcx
jne 0x1400593ba
mov eax, 0x80004005
jmp 0x1400595a4
mov qword [rsp + 0x28], r12
mov byte [rsp + 0x30], r12b
test rbx, rbx
je 0x14005941f
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140059090
mov rcx, rbx
call fcn.1400590f4
test al, al
je 0x14005941f
mov rcx, qword [0x1400be2f8]
lea rsi, [0x1400be2f8]
cmp rcx, rsi
je 0x140059415
mov r14d, 2
test byte [rcx + 0x1c], r14b
je 0x140059415
mov rcx, qword [rcx + 0x10]
lea edx, [r14 + 8]
lea r8, [0x1400b2fe8]
call fcn.14002c20c
mov edi, 1
jmp 0x14005958a
xor edx, edx
lea rcx, [rsp + 0x54]
mov r8d, 0x29c
call sub.msvcrt.dll_memset
mov dword [rsp + 0x40], 0x2b0
mov edi, 1
lea rsi, [0x1400be2f8]
movups xmm0, xmmword [0x1400b2fd8]
lea r14d, [rdi + 1]
movdqu xmmword [rsp + 0x44], xmm0
test r15, r15
je 0x14005946e
mov r8, r15
lea rcx, [rbp - 0x18]
mov edx, 0x104
call fcn.14000b6f0
jmp 0x1400594d4
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x104
lea rdx, [rbp - 0x18]
mov ecx, r14d
call qword [sym.imp.SspiCli.dll_GetUserNameExW]
nop dword [rax + rax]
test al, al
jne 0x1400594d4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x1400594aa
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [0x1400be2f8]
cmp rcx, rsi
je 0x1400594d4
test byte [rcx + 0x1c], dil
je 0x1400594d4
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400b2fe8]
mov edx, 0xb
mov r9d, eax
call fcn.14002c27c
lea rdx, [rbp + 0x1f0]
mov rcx, rbx
call fcn.140058e90
mov ebx, eax
test eax, eax
js 0x140059500
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x1f0]
call fcn.140059000
mov ebx, eax
test eax, eax
jns 0x14005953c
mov rcx, qword [0x1400be2f8]
cmp rcx, rsi
je 0x14005952a
test byte [rcx + 0x1c], r14b
je 0x14005952a
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400b2fe8]
mov edx, 0xc
mov r9d, ebx
call fcn.14002c27c
mov word [rsp + 0x68], r14w
mov dword [rsp + 0x6c], r12d
cmp word [rbp - 0x18], r12w
je 0x140059588
movabs r10, 0xfd29b6ad3e53e170
mov rax, qword [0x1400c0710]
lea rcx, [rsp + 0x40]
call qword [case.0x140007f48.0]
mov ebx, eax
test eax, eax
jns 0x140059588
mov rcx, qword [0x1400be2f8]
cmp rcx, rsi
je 0x140059588
test byte [rcx + 0x1c], dil
je 0x140059588
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400b2fe8]
mov edx, 0xd
mov r9d, eax
call fcn.14002c27c
mov edi, ebx
cmp byte [rsp + 0x30], r12b
je 0x1400595a2
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.RPCRT4.dll_RpcRevertToSelfEx]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.140014250
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140059c0c
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor edx, edx
mov rcx, qword gs:[0x60]
lea r8d, [rdx + 0x20]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
xor ecx, ecx
mov rbx, rax
test rax, rax
jne 0x140059c49
mov edi, 0xc0000017
jmp 0x140059c88
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov eax, 1
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov rdx, rbx
mov rcx, rdi
call fcn.140059b7c
mov edi, eax
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x30]
mov eax, edi
add rsp, 0x20
pop rdi
ret

Function at 0x140059d64
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
and qword [r11 - 0x28], 0
mov rdi, r9
mov rsi, r8
mov rbp, rdx
mov r14, rcx
test rcx, rcx
je 0x140059e2c
test rdx, rdx
je 0x140059e2c
test r8, r8
je 0x140059e2c
lea rax, [r11 - 0x28]
mov r9d, 0x20019
xor r8d, r8d
mov qword [r11 - 0x38], rax
lea rdx, [0x1400b30c0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ecx, eax
call fcn.14000be80
mov ebx, eax
test eax, eax
js 0x140059e31
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rsi
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x20], rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ecx, eax
call fcn.14000be80
mov ebx, eax
test eax, eax
js 0x140059e19
test rdi, rdi
je 0x140059e19
mov eax, dword [rsp + 0x60]
mov dword [rdi], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x140059e31
mov ebx, 0x80004003
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14005b9cc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor r15d, r15d
mov dword [rbp + 0x40], 0x410
mov rax, rdx
mov qword [r8], r15
mov r14, r8
mov qword [rbp + 0x48], r15
mov rsi, rcx
mov qword [rbp - 0x10], r15
lea r8, [rbp - 0x10]
mov edx, 0x20019
mov rcx, rax
mov ebx, r15d
call fcn.14005c830
mov edi, eax
test eax, eax
jne 0x14005ba82
mov ecx, dword [rbp + 0x40]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rbx, rax
test rax, rax
je 0x14005ba7d
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x30], rax
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionDevices
mov qword [rsp + 0x28], rbx
mov r9d, 2
mov r8, rsi
mov qword [rsp + 0x20], r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0xea
jne 0x14005ba82
mov rcx, qword [0x1400c02b8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
jmp 0x14005ba17
mov edi, 8
test edi, edi
mov r8, r15
cmovne r8, rbx
cmovne rbx, r15
test r8, r8
je 0x14005baa9
mov rcx, qword [0x1400c02b8]
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 - 0x10]
test rcx, rcx
je 0x14005babe
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test edi, edi
je 0x14005bb1d
mov edi, 0x709
mov r8, qword [rbp + 0x48]
test r8, r8
je 0x14005bae9
mov rcx, qword [0x1400c02b8]
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov qword [rbp + 0x48], r15
test rbx, rbx
je 0x14005bb06
mov rcx, qword [0x1400c02b8]
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, qword [rsp + 0x80]
mov eax, edi
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov r9, rbx
mov qword [rsp + 0x20], r15
lea r8, [0x1400b328c]
mov rdx, rsi
lea rcx, [rbp + 0x48]
call fcn.1400105dc
mov edi, eax
test eax, eax
jne 0x14005bac7
mov rcx, qword [rbp + 0x48]
mov r8, r15
mov qword [r14], rcx
mov qword [rbp + 0x48], r15
jmp 0x14005bacb
Function at 0x14005bce8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, rdx
xor ebp, ebp
mov dword [r8], ebp
mov rdi, r8
mov rsi, rcx
mov qword [r11 + 0x18], rbp
lea r8, [r11 + 0x18]
mov edx, 0x20019
mov rcx, rax
call fcn.14005c830
mov ebx, eax
test eax, eax
jne 0x14005bd63
mov rcx, qword [rsp + 0x60]
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionDevices
mov qword [rsp + 0x30], rbp
mov r9d, 0xffff
mov qword [rsp + 0x28], rbp
mov r8, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14005bd63
mov dword [rdi], 1
jmp 0x14005bd69
cmp ebx, 2
cmove ebx, ebp
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14005bd7f
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x14005bda0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x40
and qword [rbp + 0x38], 0
mov rdi, rdx
and qword [rbp + 0x30], 0
mov rsi, rcx
and qword [rbp + 0x28], 0
test rdx, rdx
jne 0x14005bde6
lea rdx, [rbp + 0x30]
xor ecx, ecx
call fcn.14000efac
xor ebx, ebx
lea ecx, [rdi + 2]
mov rdi, qword [rbp + 0x30]
test eax, eax
cmove ebx, ecx
test ebx, ebx
jne 0x14005be4e
lea r8, [rbp + 0x38]
mov edx, 0x20006
mov rcx, rsi
call fcn.14005c830
mov ebx, eax
test eax, eax
jne 0x14005be4e
and qword [rsp + 0x30], 0
lea r8, [0x1400ae7b0]
mov qword [rsp + 0x28], rdi
lea r9, str.SessionDefaultDevices
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
mov qword [rsp + 0x20], r8
lea rcx, [rbp + 0x28]
call fcn.1400105dc
mov ebx, eax
test eax, eax
jne 0x14005be4e
mov rdx, qword [rbp + 0x28]
lea r8, str.Device
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegDeleteKeyValueW]
nop dword [rax + rax]
mov ebx, eax
mov r8, qword [rbp + 0x28]
test r8, r8
je 0x14005be71
mov rcx, qword [0x1400c02b8]
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
and qword [rbp + 0x28], 0
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x14005be8b
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
and qword [rbp + 0x30], 0
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x14005bea0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005c1b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov dword [rax + 0x10], 0x410
mov qword [rdx], rbp
lea r8, [rax + 0x18]
mov rsi, rdx
mov qword [rax + 0x18], rbp
mov edx, 0x20019
mov ebx, ebp
call fcn.14005c830
mov edi, eax
test eax, eax
jne 0x14005c259
mov ecx, dword [rsp + 0x68]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rbx, rax
test rax, rax
je 0x14005c254
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r8, str.Device
mov qword [rsp + 0x28], rbx
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
mov r9d, 2
mov qword [rsp + 0x20], rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0xea
jne 0x14005c259
mov rcx, qword [0x1400c02b8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
jmp 0x14005c1e7
mov edi, 8
test edi, edi
mov r8, rbp
cmovne r8, rbx
cmovne rbx, rbp
test r8, r8
je 0x14005c280
mov rcx, qword [0x1400c02b8]
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14005c296
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test edi, edi
jne 0x14005c2ad
mov rcx, rbx
call fcn.14005c880
mov edi, eax
test eax, eax
jne 0x14005c2ad
mov qword [rsi], rbx
jmp 0x14005c2ca
test rbx, rbx
je 0x14005c2ca
mov rcx, qword [0x1400c02b8]
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, qword [rsp + 0x60]
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005c2e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x40
xor ebx, ebx
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
jne 0x14005c301
lea ebx, [rdx + 0x57]
jmp 0x14005c304
or dword [rdx], 0xffffffff
xor eax, eax
mov dword [rbp + 0x30], 4
mov dword [rbp + 0x28], eax
test ebx, ebx
jne 0x14005c3ca
and qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140013b90
and qword [rbp - 8], 0
lea rcx, [rbp - 0x10]
and qword [rbp - 0x10], 0
call fcn.140013b90
and qword [rbp - 0x10], 0
lea r8, [rbp - 8]
mov edx, 0x20019
mov rcx, rsi
call fcn.14005c830
mov ebx, eax
test eax, eax
jne 0x14005c3b5
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x10]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14005c3b5
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x38]
lea rax, [rbp + 0x28]
xor r8d, r8d
lea rdx, str.LegacyDefaultPrinterMode
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
lea rcx, [rbp - 0x10]
call fcn.140013b90
lea rcx, [rbp - 8]
call fcn.140013b90
mov eax, dword [rbp + 0x28]
cmp ebx, 2
je 0x14005c3dc
cmp eax, 1
ja 0x14005c3dc
test ebx, ebx
jne 0x14005c3f4
mov dword [rdi], eax
jmp 0x14005c3f4
call fcn.1400093ec
xor ecx, ecx
mov rdx, rsi
test al, al
setne cl
xor ebx, ebx
mov dword [rdi], ecx
call fcn.14005c92c
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x14005c40c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
mov rdi, rdx
and qword [rsp + 0x78], rbx
mov rsi, rcx
test rdx, rdx
jne 0x14005c42b
lea ebx, [rdx + 0x57]
jmp 0x14005c42e
or dword [rdx], 0xffffffff
xor eax, eax
mov dword [rsp + 0x70], 4
mov dword [rsp + 0x68], eax
test ebx, ebx
jne 0x14005c498
lea r8, [rsp + 0x78]
mov edx, 0x20019
call fcn.14005c830
mov ebx, eax
test eax, eax
jne 0x14005c494
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea r9d, [rbx + 0x10]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea r8, [0x1400b3290]
and qword [rsp + 0x20], 0
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
mov ebx, eax
mov eax, dword [rsp + 0x68]
cmp ebx, 2
je 0x14005c4aa
cmp eax, 1
ja 0x14005c4aa
test ebx, ebx
jne 0x14005c4b9
mov dword [rdi], eax
jmp 0x14005c4b9
and dword [rdi], 0
xor ebx, ebx
mov rdx, rsi
xor ecx, ecx
call fcn.14005ca64
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14005c4cf
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x14005c4e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor r12d, r12d
mov rsi, r8
mov qword [rbp - 0x10], r12
mov r14, rcx
mov qword [rbp + 0x50], r12
mov qword [r8], r12
lea r13d, [r12 + 2]
test rdx, rdx
jne 0x14005c535
lea rdx, [rbp - 0x10]
xor ecx, ecx
call fcn.14000efac
mov rdx, qword [rbp - 0x10]
test eax, eax
mov ebx, r12d
cmove ebx, r13d
test ebx, ebx
jne 0x14005c66d
mov qword [rsp + 0x30], r12
lea r8, [0x1400ae7b0]
mov qword [rsp + 0x28], rdx
lea r9, str.SessionDefaultDevices
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
mov qword [rsp + 0x20], r8
lea rcx, [rbp + 0x50]
call fcn.1400105dc
mov ebx, eax
test eax, eax
jne 0x14005c66d
mov r15, qword [rbp + 0x50]
lea r8, [rbp + 0x58]
mov edx, 0x20019
mov dword [rbp + 0x48], 0x410
mov rcx, r14
mov qword [rbp + 0x58], r12
mov rdi, r12
call fcn.14005c830
mov ebx, eax
test eax, eax
jne 0x14005c5fd
mov ecx, dword [rbp + 0x48]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rdi, rax
test rax, rax
je 0x14005c5f8
mov rcx, qword [rbp + 0x58]
lea rax, [rbp + 0x48]
mov qword [rsp + 0x30], rax
lea r8, str.Device
mov qword [rsp + 0x28], rdi
mov r9d, r13d
mov rdx, r15
mov qword [rsp + 0x20], r12
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xea
jne 0x14005c5fd
mov rcx, qword [0x1400c02b8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
jmp 0x14005c595
mov ebx, 8
test ebx, ebx
mov r8, r12
cmovne r8, rdi
cmovne rdi, r12
test r8, r8
je 0x14005c624
mov rcx, qword [0x1400c02b8]
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 + 0x58]
test rcx, rcx
je 0x14005c639
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
jne 0x14005c650
mov rcx, rdi
call fcn.14005c880
mov ebx, eax
test eax, eax
jne 0x14005c650
mov qword [rsi], rdi
jmp 0x14005c66d
test rdi, rdi
je 0x14005c66d
mov rcx, qword [0x1400c02b8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov r8, qword [rbp + 0x50]
test r8, r8
je 0x14005c68f
mov rcx, qword [0x1400c02b8]
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov qword [rbp + 0x50], r12
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14005c6a4
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005c6c8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
and qword [r11 - 0x28], 0
mov rax, r8
and qword [r9], 0
lea r8, [r11 - 0x28]
mov rbp, rdx
mov dword [r11 + 0x20], 0x410
mov r14, rcx
mov edx, 0x20019
mov rcx, rax
mov rsi, r9
call fcn.14005c830
mov ebx, eax
test eax, eax
jne 0x14005c7a7
mov ecx, dword [rsp + 0x88]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rdi, rax
test rax, rax
je 0x14005c7a2
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x30], rax
mov r9d, 2
mov qword [rsp + 0x28], rdi
mov r8, rbp
and qword [rsp + 0x20], 0
mov rdx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xea
jne 0x14005c77f
mov rcx, qword [0x1400c02b8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
jmp 0x14005c713
test eax, eax
jne 0x14005c788
mov qword [rsi], rdi
jmp 0x14005c7a7
mov rcx, qword [0x1400c02b8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
jmp 0x14005c7a7
mov ebx, 8
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14005c7bd
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x14005c92c
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 8], ecx
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x40
xor edi, edi
lea rcx, [rbp - 8]
mov qword [rbp - 8], rdi
mov rbx, rdx
call fcn.140013b90
lea rcx, [rbp - 0x10]
mov qword [rbp - 8], rdi
mov qword [rbp - 0x10], rdi
call fcn.140013b90
cmp dword [rbp + 0x20], 2
mov qword [rbp - 0x10], rdi
jb 0x14005c96f
lea ebx, [rdi + 0x57]
jmp 0x14005ca05
lea r8, [rbp - 8]
mov edx, 0x2001f
mov rcx, rbx
call fcn.14005c830
mov ebx, eax
test eax, eax
jne 0x14005ca05
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x10]
mov r9d, 0x2001f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14005ca05
mov rcx, qword [rbp - 0x10]
lea r9d, [rax + 4]
lea rax, [rbp + 0x20]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.LegacyDefaultPrinterMode
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14005ca05
lea r9, str.Windows
xor r8d, r8d
lea edx, [rax + 0x1a]
mov ecx, 0xffff
call qword [sym.imp.USER32.dll_SendNotifyMessageW]
nop dword [rax + rax]
mov edi, dword [rbp + 0x20]
lea rdx, [0x14005a7d0]
call fcn.14005b92c
mov rcx, qword [rax + 8]
cmp dword [rcx], 5
jbe 0x14005ca41
lea rax, [rbp + 0x30]
mov dword [rbp + 0x30], ebx
mov qword [rsp + 0x28], rax
lea rdx, [0x1400ae4da]
lea rax, [rbp + 0x38]
mov dword [rbp + 0x38], edi
mov qword [rsp + 0x20], rax
call fcn.14005a82c
lea rcx, [rbp - 0x10]
call fcn.140013b90
lea rcx, [rbp - 8]
call fcn.140013b90
mov eax, ebx
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret
Function at 0x14005ca64
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 8], ecx
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x40
xor edi, edi
lea rcx, [rbp - 8]
mov qword [rbp - 8], rdi
mov rbx, rdx
call fcn.140013b90
lea rcx, [rbp - 0x10]
mov qword [rbp - 8], rdi
mov qword [rbp - 0x10], rdi
call fcn.140013b90
cmp dword [rbp + 0x20], 2
mov qword [rbp - 0x10], rdi
jb 0x14005caa4
lea ebx, [rdi + 0x57]
jmp 0x14005cb18
lea r8, [rbp - 8]
mov edx, 0x20006
mov rcx, rbx
call fcn.14005c830
mov ebx, eax
test eax, eax
jne 0x14005cb18
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x10]
mov r9d, 0x20006
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14005cb18
mov rcx, qword [rbp - 0x10]
lea r9d, [rax + 4]
lea rax, [rbp + 0x20]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x1400b3290]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
mov edi, dword [rbp + 0x20]
lea rdx, [0x14005a7d0]
call fcn.14005b92c
mov rcx, qword [rax + 8]
cmp dword [rcx], 5
jbe 0x14005cb54
lea rax, [rbp + 0x30]
mov dword [rbp + 0x30], ebx
mov qword [rsp + 0x28], rax
lea rdx, [0x1400ae24a]
lea rax, [rbp + 0x38]
mov dword [rbp + 0x38], edi
mov qword [rsp + 0x20], rax
call fcn.14005a82c
lea rcx, [rbp - 0x10]
call fcn.140013b90
lea rcx, [rbp - 8]
call fcn.140013b90
mov eax, ebx
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret