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

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
and qword [r11 - 0x10], 0
lea r9, [r11 + 8]
inc dword [rcx + 0x10]
mov rbx, rcx
and qword [r11 - 0x18], 0
mov eax, dword [rcx + 0x14]
mov edx, dword [rcx + 0x10]
mov r8, qword [rcx + 8]
and qword [r11 - 0x20], 0
mov rcx, qword [rcx]
and qword [r11 - 0x28], 0
mov dword [rsp + 0x50], eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
jle 0x140069d73
movzx eax, ax
or eax, 0x80070000
mov dword [rbx + 0x18], eax
add rsp, 0x40
pop rbx
ret

Function at 0x140069ddc
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1400b0478]
test rdx, rdx
jne 0x140069df7
mov eax, 0x80070057
add rsp, 0x28
ret
mov eax, dword [rcx + 8]
test eax, eax
js 0x140069e26
mov rcx, qword [rcx]
mov r8, rdx
mov edx, 4
call qword [sym.imp.CRYPTSP.dll_CryptGenRandom]
nop dword [rax + rax]
test eax, eax
je 0x140069e21
xor eax, eax
add rsp, 0x28
ret
call fcn.1400449c8
add rsp, 0x28
ret

Function at 0x140069fc4
Capabilities:
Encode data using xor

Disassembly:
mov r11, rcx
test r9d, r9d
je 0x140069ff1
mov r10d, r9d
movzx r9d, byte [r8]
mov eax, edx
mov ecx, edx
xor r9, rax
shr ecx, 8
inc r8
movzx eax, r9b
mov edx, dword [r11 + rax*4 + 4]
xor edx, ecx
sub r10, 1
jne 0x140069fcf
mov rax, qword [rsp + 0x28]
mov dword [rax], edx
xor eax, eax
ret

Function at 0x14006a124
Capabilities:
Get session user name

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
and dword [rax + 0x10], 0
lea r8, [rax + 0x10]
mov rsi, rcx
xor edi, edi
xor edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.SspiCli.dll_GetUserNameExW]
nop dword [rax + rax]
test al, al
je 0x14006a15d
xor ebx, ebx
jmp 0x14006a205
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14006a178
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
jns 0x14006a205
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x14006a205
lea ecx, [rax + 1]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
lea rdx, [0x1400aff9c]
cmovo rax, rcx
mov rcx, rax
call fcn.140012504
mov rdi, rax
test rax, rax
jne 0x14006a1bc
mov ebx, 0x8007000e
jmp 0x14006a205
lea r8, [rsp + 0x38]
mov rdx, rdi
mov ecx, 2
call qword [sym.imp.SspiCli.dll_GetUserNameExW]
nop dword [rax + rax]
test al, al
jne 0x14006a1f8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14006a1f4
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x14006a205
mov rdx, rdi
mov rcx, rsi
call fcn.14000d580
mov ebx, eax
mov rcx, rdi
call fcn.1400116d8
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14006cd2c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [0x1400aebcc], 0xffffffff
jne 0x14006cddd
xor ebx, ebx
lea rax, [rsp + 0x50]
mov r9d, 0x20019
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov dword [0x1400aebcc], ebx
lea rdx, [0x1400a30f0]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14006cddd
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.PrintIsolationDefault
lea rax, [rsp + 0x40]
mov dword [rsp + 0x48], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14006cdcc
cmp dword [rsp + 0x40], ebx
setne bl
mov dword [0x1400aebcc], ebx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, dword [0x1400aebcc]
add rsp, 0x30
pop rbx
ret

Function at 0x14006d408
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
lea rdx, str.SoftwarePoliciesMicrosoftWindows_NTPrinters
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
xor ebx, ebx
test eax, eax
jne 0x14006d4af
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x58], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.PrintDriverIsolationOverrideCompat
mov dword [rsp + 0x60], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14006d49e
cmp dword [rsp + 0x58], 4
jne 0x14006d49e
cmp dword [rsp + 0x68], 1
sete bl
mov dword [rdi + 0x58], ebx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [0x1400ae2f8]
lea rax, [0x1400ae2f8]
cmp rcx, rax
je 0x14006d4f3
test byte [rcx + 0x1c], 2
je 0x14006d4f3
cmp dword [rdi + 0x58], 1
lea rax, str.kOverrideCompatOFF
mov rcx, qword [rcx + 0x10]
lea r9, str.kOverrideCompatON
cmovne r9, rax
lea r8, [0x1400a3140]
mov edx, 0xe
call fcn.140036f50
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14006d5e4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
lea rdx, str.SoftwarePoliciesMicrosoftWindows_NTPrinters
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
xor ebx, ebx
test eax, eax
jne 0x14006d685
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x58], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.PrintDriverIsolationExecutionPolicy
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14006d66a
cmp dword [rsp + 0x60], ebx
je 0x14006d66f
mov ebx, 1
mov dword [rdi + 0x54], ebx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x14006d68c
mov dword [rdi + 0x54], 1
mov rcx, qword [0x1400ae2f8]
lea rax, [0x1400ae2f8]
cmp rcx, rax
je 0x14006d6d0
test byte [rcx + 0x1c], 2
je 0x14006d6d0
cmp dword [rdi + 0x54], 1
lea rax, str.kExecuteInProc
mov rcx, qword [rcx + 0x10]
lea r9, str.kExecuteInSandbox
cmovne r9, rax
lea r8, [0x1400a3140]
mov edx, 0xd
call fcn.140036f50
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140070f64
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x40
and dword [rsp + 0x68], 0
lea rax, [r11 + 0x20]
and dword [rsp + 0x30], 0
lea r9, [r11 - 0x18]
mov rdi, r8
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
xor r8d, r8d
mov rbx, rdx
mov rsi, rcx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14007106c
cmp dword [rsp + 0x30], 3
jne 0x14007106c
cmp dword [rsp + 0x68], 0x48
jbe 0x14007106c
mov ecx, dword [rsp + 0x68]
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
mov qword [rdi], rax
test rax, rax
je 0x140071065
lea rcx, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140071050
mov rcx, qword [rdi]
movzx edx, word [rcx + 0x46]
movzx ecx, word [rcx + 0x44]
add edx, ecx
cmp dword [rsp + 0x68], edx
je 0x14007109d
lea ebx, [rax + 0xd]
mov rcx, qword [0x1400ae2f8]
lea rax, [0x1400ae2f8]
cmp rcx, rax
je 0x140071050
test byte [rcx + 0x1c], 4
je 0x140071050
mov rcx, qword [rcx + 0x10]
lea edx, [rbx - 3]
lea r8, [0x1400a3400]
call fcn.14002790c
mov rcx, qword [rdi]
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
and qword [rdi], 0
jmp 0x14007109d
mov ebx, 8
jmp 0x14007109d
mov ebx, 0xd
mov rcx, qword [0x1400ae2f8]
lea rax, [0x1400ae2f8]
cmp rcx, rax
je 0x14007109d
test byte [rcx + 0x1c], 4
je 0x14007109d
mov rcx, qword [rcx + 0x10]
lea edx, [rbx - 2]
lea r8, [0x1400a3400]
call fcn.14002790c
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140072780
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.1400735e4
mov edi, eax
test eax, eax
jne 0x140072836
mov ecx, dword [rbp + 0x40]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rbx, rax
test rax, rax
je 0x140072831
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 0x140072836
mov rcx, qword [0x1400affe8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
jmp 0x1400727cb
mov edi, 8
test edi, edi
mov r8, r15
cmovne r8, rbx
cmovne rbx, r15
test r8, r8
je 0x14007285d
mov rcx, qword [0x1400affe8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140072872
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test edi, edi
je 0x1400728d1
mov edi, 0x709
mov r8, qword [rbp + 0x48]
test r8, r8
je 0x14007289d
mov rcx, qword [0x1400affe8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov qword [rbp + 0x48], r15
test rbx, rbx
je 0x1400728ba
mov rcx, qword [0x1400affe8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.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, [0x1400a2ca0]
mov rdx, rsi
lea rcx, [rbp + 0x48]
call fcn.14000d844
mov edi, eax
test eax, eax
jne 0x14007287b
mov rcx, qword [rbp + 0x48]
mov r8, r15
mov qword [r14], rcx
mov qword [rbp + 0x48], r15
jmp 0x14007287f
Function at 0x140072a98
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.1400735e4
mov ebx, eax
test eax, eax
jne 0x140072b13
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 0x140072b13
mov dword [rdi], 1
jmp 0x140072b19
cmp ebx, 2
cmove ebx, ebp
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140072b2f
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 0x140072b50
Capabilities:
Delete 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
and qword [rbp + 0x38], rbx
mov rsi, rcx
and qword [rbp + 0x30], rbx
and qword [rbp + 0x28], rbx
test rdx, rdx
jne 0x140072b8f
lea rdx, [rbp + 0x30]
xor ecx, ecx
call fcn.14000ddcc
lea ecx, [rdi + 2]
test eax, eax
mov rdi, qword [rbp + 0x30]
cmove ebx, ecx
test ebx, ebx
jne 0x140072bfb
lea r8, [rbp + 0x38]
mov edx, 0x20006
mov rcx, rsi
call fcn.1400735e4
mov ebx, eax
test eax, eax
jne 0x140072bfb
and qword [rsp + 0x30], 0
lea r8, [0x14009db80]
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.14000d844
mov ebx, eax
test eax, eax
jne 0x140072bfb
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 0x140072c1e
mov rcx, qword [0x1400affe8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
and qword [rbp + 0x28], 0
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x140072c38
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 0x140072c4d
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 0x140072f60
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.1400735e4
mov edi, eax
test eax, eax
jne 0x140073009
mov ecx, dword [rsp + 0x68]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rbx, rax
test rax, rax
je 0x140073004
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 0x140073009
mov rcx, qword [0x1400affe8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
jmp 0x140072f97
mov edi, 8
test edi, edi
mov r8, rbp
cmovne r8, rbx
cmovne rbx, rbp
test r8, r8
je 0x140073030
mov rcx, qword [0x1400affe8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140073046
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test edi, edi
jne 0x14007305e
mov rcx, rbx
call fcn.140073634
mov edi, eax
test eax, eax
jne 0x14007305e
mov qword [rsi], rbx
mov rbx, rbp
test rbx, rbx
je 0x14007307b
mov rcx, qword [0x1400affe8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.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 0x140073094
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 0x1400730b5
lea ebx, [rdx + 0x57]
jmp 0x1400730b8
or dword [rdx], 0xffffffff
xor eax, eax
mov dword [rbp + 0x30], 4
mov dword [rbp + 0x28], eax
test ebx, ebx
jne 0x14007317e
and qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.1400114d8
and qword [rbp - 8], 0
lea rcx, [rbp - 0x10]
and qword [rbp - 0x10], 0
call fcn.1400114d8
and qword [rbp - 0x10], 0
lea r8, [rbp - 8]
mov edx, 0x20019
mov rcx, rsi
call fcn.1400735e4
mov ebx, eax
test eax, eax
jne 0x140073169
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 0x140073169
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.1400114d8
lea rcx, [rbp - 8]
call fcn.1400114d8
mov eax, dword [rbp + 0x28]
cmp ebx, 2
je 0x140073190
cmp eax, 1
ja 0x140073190
test ebx, ebx
jne 0x1400731a8
mov dword [rdi], eax
jmp 0x1400731a8
call fcn.1400087f8
xor ecx, ecx
mov rdx, rsi
test al, al
setne cl
xor ebx, ebx
mov dword [rdi], ecx
call fcn.1400736d8
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400731c0
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 0x1400731df
lea ebx, [rdx + 0x57]
jmp 0x1400731e2
or dword [rdx], 0xffffffff
xor eax, eax
mov dword [rsp + 0x70], 4
mov dword [rsp + 0x68], eax
test ebx, ebx
jne 0x14007324c
lea r8, [rsp + 0x78]
mov edx, 0x20019
call fcn.1400735e4
mov ebx, eax
test eax, eax
jne 0x140073248
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, str.IsMRUEstablished
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 0x14007325e
cmp eax, 1
ja 0x14007325e
test ebx, ebx
jne 0x14007326d
mov dword [rdi], eax
jmp 0x14007326d
and dword [rdi], 0
xor ebx, ebx
mov rdx, rsi
xor ecx, ecx
call fcn.1400737e8
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140073283
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 0x140073294
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 ebx, r12d
mov qword [r8], r12
lea r13d, [r12 + 2]
test rdx, rdx
jne 0x1400732e1
lea rdx, [rbp - 0x10]
xor ecx, ecx
call fcn.14000ddcc
mov rdx, qword [rbp - 0x10]
test eax, eax
cmove ebx, r13d
test ebx, ebx
jne 0x140073422
mov qword [rsp + 0x30], r12
lea r8, [0x14009db80]
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.14000d844
mov ebx, eax
test eax, eax
jne 0x140073422
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.1400735e4
mov ebx, eax
test eax, eax
jne 0x1400733b1
mov ecx, dword [rbp + 0x48]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rdi, rax
test rax, rax
je 0x1400733ac
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 0x1400733b1
mov rcx, qword [0x1400affe8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
jmp 0x140073349
mov ebx, 8
test ebx, ebx
mov r8, r12
cmovne r8, rdi
cmovne rdi, r12
test r8, r8
je 0x1400733d8
mov rcx, qword [0x1400affe8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x58]
test rcx, rcx
je 0x1400733ed
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
jne 0x140073405
mov rcx, rdi
call fcn.140073634
mov ebx, eax
test eax, eax
jne 0x140073405
mov qword [rsi], rdi
mov rdi, r12
test rdi, rdi
je 0x140073422
mov rcx, qword [0x1400affe8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov r8, qword [rbp + 0x50]
test r8, r8
je 0x140073444
mov rcx, qword [0x1400affe8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov qword [rbp + 0x50], r12
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140073459
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 0x14007347c
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.1400735e4
mov edi, eax
test eax, eax
jne 0x14007355e
mov ecx, dword [rsp + 0x88]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rbx, rax
test rax, rax
je 0x140073533
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x30], rax
mov r9d, 2
mov qword [rsp + 0x28], rbx
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 edi, eax
cmp eax, 0xea
jne 0x140073538
mov rcx, qword [0x1400affe8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
jmp 0x1400734c7
mov edi, 8
test edi, edi
jne 0x140073541
mov qword [rsi], rbx
xor ebx, ebx
test rbx, rbx
je 0x14007355e
mov rcx, qword [0x1400affe8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140073574
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x70]
mov eax, edi
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret

Function at 0x1400736d8
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 8], ecx
push rbp
mov rbp, rsp
sub rsp, 0x30
and qword [rbp + 0x28], 0
lea rcx, [rbp + 0x28]
mov rbx, rdx
call fcn.1400114d8
and qword [rbp + 0x28], 0
lea rcx, [rbp + 0x20]
and qword [rbp + 0x20], 0
call fcn.1400114d8
and qword [rbp + 0x20], 0
cmp dword [rbp + 0x10], 2
jb 0x140073722
mov ebx, 0x57
jmp 0x1400737b8
lea r8, [rbp + 0x28]
mov edx, 0x2001f
mov rcx, rbx
call fcn.1400735e4
mov ebx, eax
test eax, eax
jne 0x1400737b8
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x20]
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 0x1400737b8
mov rcx, qword [rbp + 0x20]
lea r9d, [rax + 4]
lea rax, [rbp + 0x10]
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 0x1400737b8
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 ecx, dword [rbp + 0x10]
mov edx, ebx
call fcn.140071f74
lea rcx, [rbp + 0x20]
call fcn.1400114d8
lea rcx, [rbp + 0x28]
call fcn.1400114d8
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rbp
ret