joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140063640
Capabilities:
Delete file
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140063715
cmp dword [rcx], 0x6060
jne 0x140063715
mov rax, qword [0x1400c9068]
cmp qword [rcx + 8], rax
jne 0x14006368f
movabs r10, 0xb2e10636105e9a70
mov rcx, qword [rcx + 0x10]
mov rax, qword [rax + 0x2b0]
call qword [0x1400a8400]
jmp 0x140063728
mov rcx, qword [rcx + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x14006370e
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
or qword [rbx + 0x38], 0xffffffffffffffff
cmp qword [rbx + 0x40], 0
je 0x14006370e
call sym.spoolsv.exe_PrvRevertToPrinterSelf
mov rcx, qword [rbx + 0x40]
mov rdi, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x1400636e3
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]
test rdi, rdi
je 0x1400636f0
mov rcx, rdi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
mov r8, qword [rbx + 0x40]
xor edx, edx
mov rcx, qword [0x1400c9078]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
and qword [rbx + 0x40], 0
mov eax, 1
jmp 0x140063728
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400738c4
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, 0x60
mov rax, qword [0x1400c77d8]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14, qword [rbp + 0x50]
mov rax, rdx
xor r15d, r15d
mov dword [rbp - 0x28], 0x20676572
mov qword [rbp - 0x18], r15
lea rdx, [0x1400c8ea0]
mov qword [rbp - 0x20], rdx
mov rsi, r8
mov dword [rbp - 0x10], 0x80004005
test rax, rax
jne 0x14007391e
mov ebx, 0x80070057
jmp 0x140073a33
mov r8, rcx
lea r9, [rbp - 0x28]
mov rcx, rax
mov edx, 6
call fcn.140072c18
mov ebx, eax
test eax, eax
js 0x140073a33
or rdi, 0xffffffffffffffff
test rsi, rsi
je 0x140073999
mov rax, rdi
inc rax
cmp word [rsi + rax*2], r15w
jne 0x140073948
mov rcx, qword [rbp - 0x18]
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 0x140073991
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x140073a33
test r14, r14
je 0x1400739eb
inc rdi
cmp word [r14 + rdi*2], r15w
jne 0x14007399e
mov rcx, qword [rbp - 0x18]
lea eax, [rdi*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, [0x1400aa920]
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 0x1400739e7
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x140073a33
mov rcx, qword [rbp - 0x18]
lea rax, [rbp - 0x30]
mov r9d, 4
mov dword [rbp - 0x30], 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 0x140073a2f
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
jns 0x140073a64
mov rcx, qword [0x1400c72a8]
lea rax, [0x1400c72a8]
cmp rcx, rax
je 0x140073a64
test byte [rcx + 0x44], 0x20
je 0x140073a64
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400bc0f8]
mov edx, 0x1e
mov r9d, ebx
call fcn.14001635c
lea rcx, [rbp - 0x28]
call fcn.140080e38
mov rdx, qword [rbp - 0x20]
call fcn.14004326c
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14000d4b0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140074e3c
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 0x140074f53
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 0x140074ebe
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
jmp 0x140074f12
mov rcx, qword [rsp + 0x78]
mov rdx, rdi
call fcn.140074e3c
mov ebx, eax
test eax, eax
je 0x140074ef9
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 0x140074eab
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 0x140074f35
test eax, eax
je 0x140074f17
mov ebx, r14d
jmp 0x140074f35
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 [0x1400c9078]
mov r8, rdi
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
test ebx, ebx
jne 0x140074fab
jmp 0x140074f67
mov ecx, 8
mov ebx, r14d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rax, qword [0x1400c72a8]
lea rcx, [0x1400c72a8]
cmp rax, rcx
je 0x140074fab
test byte [rax + 0x44], 0x20
je 0x140074fab
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400c72a8]
lea r8, [0x1400aa900]
mov edx, 0x11
mov r9d, eax
mov rcx, qword [rcx + 0x38]
call fcn.140016318
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 0x140074fc8
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 0x140075071
test r9, r9
je 0x140075071
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 0x140075071
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 0x1400750a2
mov rcx, qword [0x1400c72a8]
lea rax, [0x1400c72a8]
cmp rcx, rax
je 0x1400750a2
test byte [rcx + 0x44], 0x20
je 0x1400750a2
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400aa900]
mov edx, 0x2f
mov r9d, ebx
call fcn.140016318
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140075344
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 [0x1400c77d8]
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 0x1400753c5
call fcn.1400094f0
mov ebx, eax
test eax, eax
js 0x140075402
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 0x1400753ea
call fcn.1400094f0
mov ebx, eax
test eax, eax
js 0x1400753f2
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.14000d4b0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x1400755f0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
mov qword [r11 + 0x18], r8
push rbx
sub rsp, 0x50
mov ebx, 0x57
test rcx, rcx
je 0x140075696
and qword [r11 - 0x18], 0
lea rax, [r11 + 0x18]
and qword [r11 + 0x18], 0
lea rdx, str.LanMan_Print_ServicesServers
mov qword [r11 - 0x20], rax
xor r9d, r9d
and qword [r11 - 0x28], 0
xor r8d, r8d
mov dword [rsp + 0x28], 2
and dword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140075696
mov rcx, qword [rsp + 0x70]
lea r9d, [rax + 4]
lea rax, [rsp + 0x78]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.AddPrinterDrivers
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x70]
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 0x1400756c7
mov rcx, qword [0x1400c72a8]
lea rax, [0x1400c72a8]
cmp rcx, rax
je 0x1400756c7
test byte [rcx + 0x44], 0x20
je 0x1400756c7
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400aa900]
mov edx, 0x30
mov r9d, ebx
call fcn.140016318
mov eax, ebx
add rsp, 0x50
pop rbx
ret
Function at 0x140076580
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x1400c8474]
xor ebx, ebx
cmp ecx, 0xffffffff
jne 0x140076597
mov eax, ebx
jmp 0x1400765a3
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
nop dword [rax + rax]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.RPCRT4.dll_I_RpcBindingInqTransportType]
nop dword [rax + rax]
test eax, eax
jne 0x1400765c5
cmp dword [rsp + 0x30], 4
je 0x1400765c5
lea ebx, [rax + 1]
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x14007709c
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov r15, rdx
mov r8, rdx
mov edx, 4
mov r14, rcx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetKeySecurity]
nop dword [rax + rax]
xor r12d, r12d
mov ebx, eax
test eax, eax
jne 0x140077285
mov qword [rsp + 0x58], r12
lea rax, [rbp + 0x40]
mov qword [rsp + 0x50], r12
xor r9d, r9d
mov qword [rsp + 0x48], r12
xor r8d, r8d
mov qword [rsp + 0x40], r12
xor edx, edx
mov qword [rsp + 0x38], r12
mov rcx, r14
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x48], r12d
mov dword [rbp + 0x40], r12d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140077285
mov eax, dword [rbp + 0x40]
inc eax
mov qword [rbp - 0x18], r12
mov ecx, eax
mov dword [rbp + 0x40], eax
lea eax, [rbx + 2]
mul rcx
lea rcx, [r12 - 1]
cmovo rax, rcx
mov rcx, rax
call fcn.14000d114
lea rcx, [rbp - 0x18]
mov rdi, rax
call fcn.1400623a0
test rdi, rdi
je 0x140077273
mov qword [rbp - 0x18], rdi
mov esi, r12d
cmp esi, dword [rbp + 0x48]
jae 0x14007727c
mov eax, dword [rbp + 0x40]
lea r9, [rbp - 0x20]
mov qword [rsp + 0x38], r12
mov r8, rdi
mov qword [rsp + 0x30], r12
mov edx, esi
mov qword [rsp + 0x28], r12
mov rcx, r14
mov qword [rsp + 0x20], r12
mov dword [rbp - 0x20], eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14007725b
mov rdx, r12
test rdi, rdi
je 0x1400771c9
mov rdx, rdi
mov rcx, r14
call fcn.1400035d0
test eax, eax
jne 0x140077223
lea rax, [rbp - 0x10]
mov qword [rbp - 0x10], r12
test rdi, rdi
mov qword [rsp + 0x20], rax
mov rdx, r12
mov r9d, 0xf003f
cmovne rdx, rdi
mov rcx, r14
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 0x140077218
mov rcx, qword [rbp - 0x10]
mov rdx, r15
call fcn.14007709c
mov ebx, eax
lea rcx, [rbp - 0x10]
call fcn.14004a5e0
jmp 0x140077262
mov rcx, qword [0x1400c72a8]
lea rax, [0x1400c72a8]
cmp rcx, rax
je 0x140077262
test byte [rcx + 0x44], 0x20
je 0x140077262
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400aa9f0]
mov edx, 0xc
mov r9, rdi
call fcn.140031e7c
inc esi
jmp 0x140077179
cmp eax, 0x103
je 0x14007726e
inc esi
test ebx, ebx
je 0x140077179
jmp 0x14007727c
mov ebx, r12d
jmp 0x14007727c
mov qword [rbp - 0x18], r12
mov ebx, 8
lea rcx, [rbp - 0x18]
call fcn.1400623a0
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140077a70
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 0x140077b83
mov ecx, 0x2001f
call sym.spoolsv.exe_PrvSplGetClientUserHandle
mov qword [rbx + 8], rax
test rax, rax
je 0x140077b69
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
nop dword [rax + rax]
mov edx, 0xe
mov r9, rbx
mov rcx, rax
lea r8d, [rdx - 0xd]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
nop dword [rax + rax]
test eax, eax
jne 0x140077afd
lea rcx, [rbx + 8]
call fcn.14007752c
mov rcx, qword [0x1400c9078]
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
test rbx, rbx
je 0x140077b81
cmp dword [0x1400c9074], edi
jne 0x140077b94
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [fcn.140003fa0]
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 0x140077b4c
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x140077b81
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.14007752c
mov rcx, qword [0x1400c9078]
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 eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, rbx
call fcn.140003fa0
jmp 0x140077b81
Function at 0x140077be0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x1400c77d8]
xor rax, rsp
mov qword [rbp + 0x150], rax
cmp dword [rbp + 0x1b0], 0
mov rsi, rdx
mov rdx, qword [rbp + 0x1b8]
mov r14, r9
mov ebx, r8d
mov rdi, rcx
je 0x140077c4c
mov dword [rsp + 0x20], ebx
mov r9, rsi
mov r8, rcx
test rdx, rdx
je 0x140077c3b
xor ecx, ecx
jmp 0x140077c42
mov rcx, 0xffffffff80000001
call sym.spoolsv.exe_PrvUpdatePrinterRegUser
jmp 0x140077d28
xor r15d, r15d
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], r15
and qword [rsp + 0x28], r15
and qword [rsp + 0x20], r15
xor edx, edx
jmp 0x140077cfb
lea rdx, str..Default
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x140077cd9
mov edx, 0x5f
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
test rax, rax
jne 0x140077cd9
test r14, r14
je 0x140077cc3
mov rdx, r14
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNELBASE.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
jne 0x140077cd9
mov r9, rsi
mov dword [rsp + 0x20], ebx
mov r8, rdi
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sym.spoolsv.exe_PrvUpdatePrinterRegUser
inc r15d
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov edx, r15d
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 0x100
lea r8, [rsp + 0x50]
mov rcx, 0xffffffff80000003
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x140077c6f
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14000d4b0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x260
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400785c4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x1400c77d8]
xor rax, rsp
mov qword [rbp + 0x380], rax
xor ebx, ebx
mov dword [rsp + 0x44], 0x104
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 0x208
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x44]
lea rax, [rsp + 0x60]
mov r12, rdx
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0x170]
xorps xmm0, xmm0
mov qword [rsp + 0x28], rbx
xor edx, edx
mov qword [rsp + 0x20], rbx
mov r15, rcx
mov r14d, ebx
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
nop dword [rax + rax]
lea esi, [rbx + 1]
jmp 0x140078770
cmp word [rsp + 0x60], bx
je 0x140078721
mov edx, 0x2c
lea rcx, [rsp + 0x60]
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140078721
mov word [rax], bx
add rdi, 2
cmp word [rdi], 0x20
je 0x140078689
mov r8d, 2
lea rdx, [0x1400bc750]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsnicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140078721
add rdi, 4
mov ecx, ebx
mov word [rdi + 4], bx
jmp 0x1400786d8
lea eax, [rdx - 0x30]
cmp ax, 9
ja 0x1400786e0
lea ecx, [rcx + rcx*4]
movzx eax, dx
lea ecx, [rcx - 0x18]
add rdi, 2
lea ecx, [rax + rcx*2]
movzx edx, word [rdi]
test dx, dx
jne 0x1400786bf
lea rax, [rbp + 0x170]
mov r9, r12
sub r9, rax
movzx edx, word [rax]
movzx r8d, word [rax + r9]
sub edx, r8d
jne 0x140078703
add rax, 2
test r8d, r8d
jne 0x1400786ed
test edx, edx
je 0x140078795
cmp ecx, 0x64
jae 0x140078721
mov edx, ecx
mov eax, esi
and ecx, 0x1f
shr rdx, 5
shl eax, cl
or dword [rsp + rdx*4 + 0x48], eax
lea rax, [rsp + 0x40]
mov dword [rsp + 0x44], 0x104
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x44]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x40], 0x208
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0x170]
add r14d, esi
mov qword [rsp + 0x28], rbx
mov edx, r14d
mov qword [rsp + 0x20], rbx
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
nop dword [rax + rax]
test eax, eax
je 0x140078659
mov eax, ebx
mov ecx, ebx
shr rax, 5
and ecx, 0x1f
mov eax, dword [rsp + rax*4 + 0x48]
bt eax, ecx
jae 0x140078799
add ebx, esi
cmp ebx, 0x64
jb 0x140078778
jmp 0x14007879b
mov eax, ecx
jmp 0x14007879d
mov esi, ebx
mov eax, esi
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.14000d4b0
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140079dd0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
xor ebx, ebx
mov rsi, r8
mov qword [rbp + 0x40], rbx
mov rdi, rdx
mov qword [rbp + 0x48], rbx
mov r14, rcx
mov qword [r8], rbx
test rdx, rdx
jne 0x140079e0f
lea ecx, [rdx + 6]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x140079fd4
lea rcx, [rbp - 0x10]
call fcn.140081684
lea r9, [rbp + 0x48]
mov rdx, rdi
lea r8, [rbp + 0x40]
mov rcx, r14
call fcn.140079b70
test eax, eax
jne 0x140079e42
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
jmp 0x140079f7a
mov rcx, qword [rbp + 0x40]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x58], rbx
xor r9d, r9d
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor edx, edx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x140079f6a
mov ecx, dword [rbp + 0x38]
cmp ecx, 0x48
jb 0x140079f6a
call sym.spoolsv.exe_PrvDllAllocSplMem
mov qword [rsi], rax
test rax, rax
jne 0x140079ebc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
jmp 0x140079f6a
mov rdx, qword [rbp + 0x48]
lea rcx, [rbp + 0x38]
mov qword [rsp + 0x28], rcx
xor r9d, r9d
mov rcx, qword [rbp + 0x40]
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]
mov edi, eax
mov r14d, 2
test eax, eax
jne 0x140079f49
mov rcx, qword [rsi]
mov r10d, 0x8007000d
mov r9d, dword [rbp + 0x38]
test rcx, rcx
je 0x140079f21
cmp r9, 0x4c
jb 0x140079f21
movzx r8d, word [rcx + 0x46]
movzx eax, word [rcx + 0x44]
add r8, rax
cmp r9, r8
jb 0x140079f21
call fcn.14004b938
mov r10d, eax
mov ecx, r10d
call fcn.140024f58
mov edi, eax
test eax, eax
je 0x140079f64
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, eax
cmove edi, r14d
mov r8, qword [rsi]
xor edx, edx
mov rcx, qword [0x1400c9078]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov qword [rsi], rbx
cmp edi, r14d
cmove edi, ebx
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test edi, edi
je 0x140079fc4
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
cmp edi, 5
je 0x140079fc9
mov rcx, qword [0x1400c72a8]
lea rax, [0x1400c72a8]
cmp rcx, rax
je 0x140079fc9
test byte [rcx + 0x44], 0x20
je 0x140079fc9
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400aaa10]
mov edx, 0xf
mov r9d, edi
call fcn.140016318
jmp 0x140079fc9
mov ebx, 1
lea rcx, [rbp - 0x10]
call fcn.1400816c4
mov eax, ebx
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret