joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140057248
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.1400573b0
mov edi, eax
test eax, eax
jne 0x14005732a
mov ecx, dword [rsp + 0x88]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rbx, rax
test rax, rax
je 0x1400572ff
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 0x140057304
mov rcx, qword [0x1400b9528]
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 0x140057293
mov edi, 8
test edi, edi
jne 0x14005730d
mov qword [rsi], rbx
xor ebx, ebx
test rbx, rbx
je 0x14005732a
mov rcx, qword [0x1400b9528]
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 [rsp + 0x40]
test rcx, rcx
je 0x140057340
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 0x1400574ac
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.140012da8
lea rcx, [rbp - 0x10]
mov qword [rbp - 8], rdi
mov qword [rbp - 0x10], rdi
call fcn.140012da8
cmp dword [rbp + 0x20], 2
mov qword [rbp - 0x10], rdi
jb 0x1400574ef
lea ebx, [rdi + 0x57]
jmp 0x140057585
lea r8, [rbp - 8]
mov edx, 0x2001f
mov rcx, rbx
call fcn.1400573b0
mov ebx, eax
test eax, eax
jne 0x140057585
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 0x140057585
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 0x140057585
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, [0x140055450]
call fcn.140056498
mov rcx, qword [rax + 8]
cmp dword [rcx], 5
jbe 0x1400575c1
lea rax, [rbp + 0x30]
mov dword [rbp + 0x30], ebx
mov qword [rsp + 0x28], rax
lea rdx, [0x1400a974a]
lea rax, [rbp + 0x38]
mov dword [rbp + 0x38], edi
mov qword [rsp + 0x20], rax
call fcn.1400554a4
lea rcx, [rbp - 0x10]
call fcn.140012da8
lea rcx, [rbp - 8]
call fcn.140012da8
mov eax, ebx
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret
Function at 0x1400575e4
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.140012da8
lea rcx, [rbp - 0x10]
mov qword [rbp - 8], rdi
mov qword [rbp - 0x10], rdi
call fcn.140012da8
cmp dword [rbp + 0x20], 2
mov qword [rbp - 0x10], rdi
jb 0x140057624
lea ebx, [rdi + 0x57]
jmp 0x140057698
lea r8, [rbp - 8]
mov edx, 0x20006
mov rcx, rbx
call fcn.1400573b0
mov ebx, eax
test eax, eax
jne 0x140057698
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 0x140057698
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.IsMRUEstablished
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, [0x140055450]
call fcn.140056498
mov rcx, qword [rax + 8]
cmp dword [rcx], 5
jbe 0x1400576d4
lea rax, [rbp + 0x30]
mov dword [rbp + 0x30], ebx
mov qword [rsp + 0x28], rax
lea rdx, [0x1400a94ba]
lea rax, [rbp + 0x38]
mov dword [rbp + 0x38], edi
mov qword [rsp + 0x20], rax
call fcn.1400554a4
lea rcx, [rbp - 0x10]
call fcn.140012da8
lea rcx, [rbp - 8]
call fcn.140012da8
mov eax, ebx
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret
Function at 0x140057830
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x60
or rax, 0xffffffffffffffff
mov rdi, r8
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
inc rax
cmp word [r8 + rax*2], r15w
jne 0x140057858
lea r8, [rsp + 0x50]
mov qword [rsp + 0x50], r15
mov edx, 0x20006
mov qword [rsp + 0x58], r15
mov rcx, r9
lea ebp, [rax*2 + 2]
call fcn.1400573b0
mov ebx, eax
test eax, eax
jne 0x140057902
mov rcx, qword [rsp + 0x50]
cmp dword [rsp + 0xa0], r15d
je 0x1400578dd
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov rdx, rsi
mov dword [rsp + 0x20], 1
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
mov rsi, r15
mov ebx, eax
test ebx, ebx
jne 0x140057902
mov dword [rsp + 0x28], ebp
lea r9d, [rbx + 1]
mov r8, r14
mov qword [rsp + 0x20], rdi
mov rdx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegSetKeyValueW]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140057918
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14005792e
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x1400581cc
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x50]
xor ebx, ebx
mov r9d, 0x20019
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x1400ac4c0]
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 0x140058260
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.DnsOnWire
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x48], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x50]
test eax, eax
cmove ebx, dword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140058df4
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
lea rdx, str.OpenPrinterW
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
lea rdx, str.ClosePrinter
mov rcx, rbx
mov qword [rdi], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
lea rdx, str.DocumentPropertiesW
mov rcx, rbx
mov qword [rdi + 8], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
lea rdx, str.SpoolerDevQueryPrintW
mov rcx, rbx
mov qword [rdi + 0x20], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
lea rdx, str.SpoolerPrinterEvent
mov rcx, rbx
mov qword [rdi + 0x10], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov edx, 0xd4
mov rcx, rbx
mov qword [rdi + 0x18], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov edx, 0xd5
mov rcx, rbx
mov qword [rdi + 0x28], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov edx, 0xd6
mov rcx, rbx
mov qword [rdi + 0x30], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov edx, 0xd7
mov rcx, rbx
mov qword [rdi + 0x38], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov edx, 0xfb
mov rcx, rbx
mov qword [rdi + 0x40], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
xor ecx, ecx
mov qword [rdi + 0x48], rax
cmp qword [rdi], rcx
je 0x140058f34
cmp qword [rdi + 8], rcx
je 0x140058f34
cmp qword [rdi + 0x20], rcx
je 0x140058f34
cmp qword [rdi + 0x18], rcx
je 0x140058f34
cmp qword [rdi + 0x10], rcx
je 0x140058f34
cmp qword [rdi + 0x28], rcx
je 0x140058f34
cmp qword [rdi + 0x30], rcx
je 0x140058f34
cmp qword [rdi + 0x38], rcx
je 0x140058f34
test rax, rax
je 0x140058f34
xor eax, eax
jmp 0x140058f40
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400638b8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x360]
sub rsp, 0x460
mov rax, qword [0x1400b77a8]
xor rax, rsp
mov qword [rbp + 0x350], rax
mov r15, r9
mov r13, r8
mov r12d, edx
mov rdi, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rdi, rax
je 0x140063926
test byte [rdi + 0x44], 0x80
je 0x140063926
mov rcx, qword [rdi + 0x38]
lea r8, [0x1400abf58]
mov edx, 0x1c
call fcn.140030acc
mov rdi, qword [0x1400b72f8]
or esi, 0xffffffff
mov dword [rsp + 0x40], 0x63726374
xor edx, edx
mov dword [rsp + 0x30], esi
mov r8d, 0x400
lea rcx, [rsp + 0x44]
call sub.msvcrt.dll_memset
xor r11d, r11d
lea r9, [rsp + 0x44]
mov edx, r11d
mov r8d, edx
mov r10d, 8
mov ecx, r8d
mov eax, r8d
shr ecx, 1
mov r8d, ecx
xor r8d, 0xedb88320
and al, 1
cmove r8d, ecx
sub r10, 1
jne 0x14006395b
mov dword [r9], r8d
inc edx
add r9, 4
cmp edx, 0x100
jl 0x140063952
mov rax, r15
mov dword [rbp + 0x344], r11d
neg rax
mov ebx, r11d
mov r14d, r11d
sbb ecx, ecx
not ecx
and ecx, 0x80070057
test r15, r15
cmove ebx, ecx
jmp 0x140063a54
cmp r14d, r12d
jae 0x140063a5c
test ebx, ebx
js 0x140063a51
lea rax, [rsp + 0x30]
mov r9d, 4
mov r8, r13
mov qword [rsp + 0x20], rax
mov edx, esi
lea rcx, [rsp + 0x40]
call fcn.140074168
mov esi, dword [rsp + 0x30]
xor r11d, r11d
mov ebx, eax
test eax, eax
js 0x140063a51
mov r8, qword [r13 + 8]
or rax, 0xffffffffffffffff
inc rax
cmp word [r8 + rax*2], r11w
jne 0x1400639f7
lea r9d, [rax*2 + 2]
mov edx, esi
lea rax, [rsp + 0x30]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.140074168
xor r11d, r11d
mov ebx, eax
test eax, eax
js 0x140063a4d
mov edx, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
lea r8, [r13 + 0x10]
mov qword [rsp + 0x20], rax
lea r9d, [r11 + 4]
lea rcx, [rsp + 0x40]
call fcn.140074168
mov ebx, eax
xor r11d, r11d
mov esi, dword [rsp + 0x30]
inc r14d
test ebx, ebx
jns 0x1400639b2
test ebx, ebx
js 0x140063a65
mov dword [r15], esi
jmp 0x140063a8f
lea rax, [0x1400b72f8]
cmp rdi, rax
je 0x140063a8f
test byte [rdi + 0x44], 0x20
je 0x140063a8f
mov rcx, qword [rdi + 0x38]
lea r8, [0x1400abf58]
mov edx, 0x1d
mov r9d, ebx
call fcn.140030af8
mov eax, ebx
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.140013440
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x460
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140064484
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1400b77a8]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edi, edi
mov dword [rsp + 0x38], 0x104
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], rdi
mov r9d, 0x20019
mov word [rsp + 0x40], di
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140064550
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400abf68]
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140064550
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rbx, qword [0x1400b9558]
jmp 0x140064546
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14006454b
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14006452a
mov rax, rbx
jmp 0x140064576
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140064574
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140013440
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret
Function at 0x140064a6c
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor r14d, r14d
mov r12, rdx
mov qword [rax + 0x10], r14
mov r13, rcx
mov r15d, r14d
mov edi, r14d
mov rbx, rdx
mov ebp, r14d
test rdx, rdx
je 0x140064b46
cmp word [rbx], r14w
je 0x140064b46
mov rdx, rbx
mov rcx, r13
call fcn.140064484
mov rsi, rax
test rax, rax
je 0x140064be6
lea r14, [rsp + 0x68]
test rdi, rdi
je 0x140064af0
mov rcx, rdi
cmp qword [rcx + 8], rsi
je 0x140064be6
mov rax, qword [rcx]
mov r14, rcx
mov rcx, rax
test rax, rax
jne 0x140064ad8
mov ecx, 0x10
call sym.spoolsv.exe_PrvDllAllocSplMem
test rax, rax
je 0x140064be6
and qword [rax], r15
mov qword [rax + 8], rsi
mov qword [r14], rax
or rax, 0xffffffffffffffff
xor r14d, r14d
inc rax
cmp word [rbx + rax*2], r14w
jne 0x140064b14
lea ebp, [rbp + rax*2]
add ebp, 2
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r14w
jne 0x140064b29
mov rdi, qword [rsp + 0x68]
lea rbx, [rbx + rax*2]
add rbx, 2
jne 0x140064aaa
mov rax, qword [0x1400b9558]
add ebp, 2
mov edx, r14d
mov ebx, 1
jmp 0x140064b5f
mov rax, qword [rax]
add edx, ebx
test rax, rax
jne 0x140064b5a
mov ecx, ebx
mov rax, rdi
test rdi, rdi
je 0x140064b78
mov rax, qword [rax]
add ecx, ebx
test rax, rax
jne 0x140064b6e
cmp ecx, edx
jne 0x140064bd5
mov dword [rsp + 0x28], ebp
lea rdx, str.Order
mov r9d, 7
mov qword [rsp + 0x20], r12
xor r8d, r8d
mov rcx, r13
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
je 0x140064bac
mov ecx, eax
jmp 0x140064bda
mov rdx, qword [0x1400b9558]
mov rcx, rdi
test rdi, rdi
je 0x140064bcd
mov rax, qword [rcx + 8]
mov qword [rdx], rax
mov rdx, rax
mov rcx, qword [rcx]
test rcx, rcx
jne 0x140064bbb
mov qword [rdx], r14
mov r15d, ebx
jmp 0x140064be6
mov ecx, 0x57
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
test rdi, rdi
je 0x140064c0e
mov rcx, qword [0x1400b9528]
mov r8, rdi
mov rbx, qword [rdi]
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rdi, rbx
test rbx, rbx
jne 0x140064beb
mov rbx, qword [rsp + 0x60]
mov eax, r15d
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400688d4
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400b77a8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r14, qword [rbp + 0x50]
mov rax, rdx
lea rdx, [rbp - 0x28]
mov dword [rbp - 0x38], 0x20676572
xor r15d, r15d
mov qword [rbp - 0x30], rdx
xor edx, edx
mov qword [rbp - 0x20], r15
mov dword [rbp - 0x28], edx
mov rsi, r8
mov dword [rbp - 0x18], 0x80004005
test rax, rax
jne 0x140068930
mov ebx, 0x80070057
jmp 0x140068a45
mov r8, rcx
lea r9, [rbp - 0x38]
mov rcx, rax
mov edx, 6
call fcn.140067c4c
mov ebx, eax
test eax, eax
js 0x140068a45
or rdi, 0xffffffffffffffff
test rsi, rsi
je 0x1400689a3
mov rax, rdi
inc rax
cmp word [rsi + rax*2], r15w
jne 0x14006895a
mov rcx, qword [rbp - 0x20]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.Server
mov r9d, 1
mov qword [rsp + 0x20], rsi
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x1400689a3
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x140068a45
test r14, r14
je 0x1400689f9
inc rdi
cmp word [r14 + rdi*2], r15w
jne 0x1400689b0
mov rcx, qword [rbp - 0x20]
lea eax, [rdi*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, [0x14009a9a0]
mov r9d, 1
mov qword [rsp + 0x20], r14
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x1400689f9
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x140068a45
mov rcx, qword [rbp - 0x20]
lea rax, [rbp - 0x40]
mov r9d, 4
mov dword [rbp - 0x40], 1
mov dword [rsp + 0x28], r9d
lea rdx, str.LocalConnection
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140068a41
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
jns 0x140068a76
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x140068a76
test byte [rcx + 0x44], 0x20
je 0x140068a76
mov rcx, qword [rcx + 0x38]
lea r8, [0x14009cbf8]
mov edx, 0x1e
mov r9d, ebx
call fcn.140030af8
lea rcx, [rbp - 0x38]
call fcn.140010e70
mov rdx, qword [rbp - 0x30]
lea rcx, [rbp - 0x30]
call fcn.140010cb0
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140013440
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140069be8
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rbp, rcx
mov rsi, rdx
mov ecx, 0x208
mov ebx, 1
call sym.spoolsv.exe_PrvDllAllocSplMem
xor r14d, r14d
mov rdi, rax
test rax, rax
je 0x140069cfb
lea rax, [rsp + 0x78]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x140069c6a
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
jmp 0x140069cbe
mov rcx, qword [rsp + 0x78]
mov rdx, rdi
call fcn.140069be8
mov ebx, eax
test eax, eax
je 0x140069ca5
mov rcx, qword [rsp + 0x78]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x38], r14
mov r8, rdi
mov qword [rsp + 0x30], r14
xor edx, edx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x70], 0x104
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x140069c57
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
je 0x140069ce1
test eax, eax
je 0x140069cc3
mov ebx, r14d
jmp 0x140069ce1
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
nop dword [rax + rax]
test eax, eax
cmovne ebx, r14d
mov rcx, qword [0x1400b9528]
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 0x140069d0f
mov ecx, 8
mov ebx, r14d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
test ebx, ebx
jne 0x140069d55
mov rax, qword [0x1400b72f8]
lea rcx, [0x1400b72f8]
cmp rax, rcx
je 0x140069d55
test byte [rax + 0x44], 0x20
je 0x140069d55
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400b72f8]
lea edx, [rbx + 0x11]
mov r9d, eax
lea r8, [0x14009cc08]
mov rcx, qword [rcx + 0x38]
call fcn.140030af8
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140069d74
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
push rdi
sub rsp, 0x30
mov rdi, r9
mov ebx, 0x57
test rcx, rcx
je 0x140069e1d
test r9, r9
je 0x140069e1d
and dword [r9], 0
lea rax, [r11 + 0x10]
and qword [r11 + 0x10], 0
lea rdx, str.LanMan_Print_ServicesServers
mov r9d, 0x20019
mov qword [r11 - 0x18], rax
xor r8d, r8d
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 0x140069e1d
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, str.AddPrinterDrivers
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov dword [rsp + 0x50], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
je 0x140069e4e
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x140069e4e
test byte [rcx + 0x44], 0x20
je 0x140069e4e
mov rcx, qword [rcx + 0x38]
lea r8, [0x14009cc08]
mov edx, 0x2f
mov r9d, ebx
call fcn.140030af8
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140069f00
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400b77a8]
xor rax, rsp
mov qword [rbp - 8], rax
xor edi, edi
mov word [rbp - 0xc], 0x500
lea rax, [rbp - 0x18]
mov dword [rbp - 0x10], edi
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x10]
mov dword [rsp + 0x48], edi
mov r9d, 0x220
mov dword [rsp + 0x40], edi
lea r8d, [rdi + 0x20]
mov dword [rsp + 0x38], edi
mov dl, 2
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov qword [rbp - 0x18], rdi
mov dword [rbp - 0x20], edi
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
nop dword [rax + rax]
test eax, eax
jne 0x140069f81
call fcn.14000dcc4
mov ebx, eax
test eax, eax
js 0x140069fbe
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
jne 0x140069fa6
call fcn.14000dcc4
mov ebx, eax
test eax, eax
js 0x140069fae
cmp dword [rbp - 0x20], edi
mov ebx, edi
sete bl
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140013440
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret