joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140052f80
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x60
mov ebx, edx
mov edi, ecx
test edx, edx
jne 0x140052fa5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
jmp 0x140052fa7
mov eax, ebx
and dword [rsp + 0x40], 0
lea r8, [rsp + 0x30]
and dword [rsp + 0x58], 0
lea rdx, [rsp + 0x48]
xor r9d, r9d
mov dword [rsp + 0x30], eax
lea rcx, [0x1400a9ad8]
mov qword [rsp + 0x38], 4
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x50], 4
call fcn.1400531c8
mov rcx, qword [0x1400b72f8]
lea rbp, [0x1400b72f8]
cmp rcx, rbp
je 0x140053019
test byte [rcx + 0x1c], 4
je 0x140053019
mov rcx, qword [rcx + 0x10]
lea r8, [0x14009c878]
mov edx, 0x1f
mov dword [rsp + 0x20], ebx
mov r9d, edi
call fcn.1400377f4
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
nop dword [rax + rax]
mov rcx, rax
xor edx, edx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
nop dword [rax + rax]
test eax, eax
jne 0x1400530a9
mov rcx, qword [0x1400b72f8]
cmp rcx, rbp
je 0x14005309e
test byte [rcx + 0x1c], 4
je 0x14005307e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400b72f8]
lea r8, [0x14009c878]
mov r9d, eax
mov edx, 0x20
mov rcx, qword [rcx + 0x10]
call fcn.1400307d8
mov rcx, qword [0x1400b72f8]
cmp rcx, rbp
je 0x14005309e
test byte [rcx + 0x1c], 4
je 0x14005309e
mov rcx, qword [rcx + 0x10]
lea r8, [0x14009c878]
mov edx, 0x21
call fcn.1400307ac
xor eax, eax
movabs byte [0], al
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140053e10
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 [0x1400b77a8]
xor rax, rsp
mov qword [rbp + 0x280], rax
xor r12d, r12d
mov r15, r8
cmp qword [0x1400b9948], r12
mov rbx, rcx
jne 0x140053e5e
mov eax, 0x80004005
jmp 0x14005403e
mov qword [rsp + 0x28], r12
mov byte [rsp + 0x30], r12b
test rbx, rbx
je 0x140053ec3
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140053b24
mov rcx, rbx
call fcn.140053b88
test al, al
je 0x140053ec3
mov rcx, qword [0x1400b72f8]
lea rsi, [0x1400b72f8]
cmp rcx, rsi
je 0x140053eb9
mov r14d, 2
test byte [rcx + 0x1c], r14b
je 0x140053eb9
mov rcx, qword [rcx + 0x10]
lea edx, [r14 + 8]
lea r8, [0x1400aba08]
call fcn.1400307ac
mov edi, 1
jmp 0x140054024
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, [0x1400b72f8]
movups xmm0, xmmword [0x1400ab9f8]
lea r14d, [rdi + 1]
movdqu xmmword [rsp + 0x44], xmm0
test r15, r15
je 0x140053f12
mov r8, r15
lea rcx, [rbp - 0x18]
mov edx, 0x104
call fcn.14000c210
jmp 0x140053f78
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 0x140053f78
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x140053f4e
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [0x1400b72f8]
cmp rcx, rsi
je 0x140053f78
test byte [rcx + 0x1c], dil
je 0x140053f78
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400aba08]
mov edx, 0xb
mov r9d, eax
call fcn.1400307d8
lea rdx, [rbp + 0x1f0]
mov rcx, rbx
call fcn.140053920
mov ebx, eax
test eax, eax
js 0x140053fa4
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x1f0]
call fcn.140053a94
mov ebx, eax
test eax, eax
jns 0x140053fe0
mov rcx, qword [0x1400b72f8]
cmp rcx, rsi
je 0x140053fce
test byte [rcx + 0x1c], r14b
je 0x140053fce
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400aba08]
mov edx, 0xc
mov r9d, ebx
call fcn.1400307d8
mov word [rsp + 0x68], r14w
mov dword [rsp + 0x6c], r12d
cmp word [rbp - 0x18], r12w
je 0x140054022
mov rax, qword [0x1400b9948]
lea rcx, [rsp + 0x40]
call qword [0x140098d58]
mov ebx, eax
test eax, eax
jns 0x140054022
mov rcx, qword [0x1400b72f8]
cmp rcx, rsi
je 0x140054022
test byte [rcx + 0x1c], dil
je 0x140054022
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400aba08]
mov edx, 0xd
mov r9d, eax
call fcn.1400307d8
mov edi, ebx
cmp byte [rsp + 0x30], r12b
je 0x14005403c
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.140013430
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 0x140057510
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 0x140057538
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.140057090
mov ebx, eax
test eax, eax
jne 0x1400575e2
mov rcx, qword [rsp + 0x50]
cmp dword [rsp + 0xa0], r15d
je 0x1400575bd
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 0x1400575e2
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 0x1400575f8
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 0x14005760e
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 0x140057eac
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, [0x1400ac4d0]
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 0x140057f40
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 0x140064164
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 0x140064230
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400abf88]
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 0x140064230
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 0x140064226
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14006422b
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14006420a
mov rax, rbx
jmp 0x140064256
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 0x140064254
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.140013430
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret
Function at 0x1400685d4
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 0x140068630
mov ebx, 0x80070057
jmp 0x140068745
mov r8, rcx
lea r9, [rbp - 0x38]
mov rcx, rax
mov edx, 6
call fcn.14006794c
mov ebx, eax
test eax, eax
js 0x140068745
or rdi, 0xffffffffffffffff
test rsi, rsi
je 0x1400686a3
mov rax, rdi
inc rax
cmp word [rsi + rax*2], r15w
jne 0x14006865a
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 0x1400686a3
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x140068745
test r14, r14
je 0x1400686f9
inc rdi
cmp word [r14 + rdi*2], r15w
jne 0x1400686b0
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 0x1400686f9
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x140068745
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 0x140068741
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
jns 0x140068776
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x140068776
test byte [rcx + 0x44], 0x20
je 0x140068776
mov rcx, qword [rcx + 0x38]
lea r8, [0x14009cbf8]
mov edx, 0x1e
mov r9d, ebx
call fcn.1400307d8
lea rcx, [rbp - 0x38]
call fcn.140010e60
mov rdx, qword [rbp - 0x30]
lea rcx, [rbp - 0x30]
call fcn.140010ca0
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140013430
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400698e8
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 0x1400699fb
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 0x14006996a
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
jmp 0x1400699be
mov rcx, qword [rsp + 0x78]
mov rdx, rdi
call fcn.1400698e8
mov ebx, eax
test eax, eax
je 0x1400699a5
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 0x140069957
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 0x1400699e1
test eax, eax
je 0x1400699c3
mov ebx, r14d
jmp 0x1400699e1
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 [0x1400b9518]
mov r8, rdi
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
jmp 0x140069a0f
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 0x140069a55
mov rax, qword [0x1400b72f8]
lea rcx, [0x1400b72f8]
cmp rax, rcx
je 0x140069a55
test byte [rax + 0x44], 0x20
je 0x140069a55
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.1400307d8
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 0x140069a74
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 0x140069b1d
test r9, r9
je 0x140069b1d
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 0x140069b1d
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 0x140069b4e
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x140069b4e
test byte [rcx + 0x44], 0x20
je 0x140069b4e
mov rcx, qword [rcx + 0x38]
lea r8, [0x14009cc08]
mov edx, 0x2f
mov r9d, ebx
call fcn.1400307d8
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140069c00
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 0x140069c81
call fcn.14000dcf4
mov ebx, eax
test eax, eax
js 0x140069cbe
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 0x140069ca6
call fcn.14000dcf4
mov ebx, eax
test eax, eax
js 0x140069cae
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.140013430
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140069ea8
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 0x140069f4e
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 0x140069f4e
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 0x140069f7f
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x140069f7f
test byte [rcx + 0x44], 0x20
je 0x140069f7f
mov rcx, qword [rcx + 0x38]
lea r8, [0x14009cc08]
mov edx, 0x30
mov r9d, ebx
call fcn.1400307d8
mov eax, ebx
add rsp, 0x50
pop rbx
ret
Function at 0x14006b3f8
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 rsi, 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 0x14006b5c9
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, rsi
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 0x14006b5c9
mov eax, dword [rbp + 0x40]
inc eax
mov qword [rbp - 0x10], 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.1400130c0
lea rcx, [rbp - 0x10]
mov r14, rax
call fcn.14000e324
mov qword [rbp - 0x10], r14
test r14, r14
je 0x14006b5bb
mov edi, r12d
cmp edi, dword [rbp + 0x48]
jae 0x14006b5c0
mov eax, dword [rbp + 0x40]
lea r9, [rbp - 0x20]
mov qword [rsp + 0x38], r12
mov r8, r14
mov qword [rsp + 0x30], r12
mov edx, edi
mov qword [rsp + 0x28], r12
mov rcx, rsi
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 0x14006b5a3
mov rdx, r14
mov rcx, rsi
call fcn.14000e5d4
test eax, eax
jne 0x14006b570
lea rax, [rbp - 0x18]
mov qword [rbp - 0x18], r12
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
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 0x14006b565
mov rcx, qword [rbp - 0x18]
mov rdx, r15
call fcn.14006b3f8
mov ebx, eax
lea rcx, [rbp - 0x18]
call fcn.140012d98
jmp 0x14006b5aa
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x14006b5aa
test byte [rcx + 0x44], 0x20
je 0x14006b5aa
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400ac5d0]
mov edx, 0xc
mov r9, r14
call fcn.140040ed0
jmp 0x14006b5aa
cmp eax, 0x103
je 0x14006b5b6
inc edi
test ebx, ebx
je 0x14006b4d5
jmp 0x14006b5c0
mov ebx, r12d
jmp 0x14006b5c0
mov ebx, 8
lea rcx, [rbp - 0x10]
call fcn.14000e324
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 0x14006c524
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 [0x1400b77a8]
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 0x14006c6d0
cmp word [rsp + 0x60], bx
je 0x14006c681
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 0x14006c681
mov word [rax], bx
add rdi, 2
cmp word [rdi], 0x20
je 0x14006c5e9
mov r8d, 2
lea rdx, [0x1400ac600]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsnicmp]
nop dword [rax + rax]
test eax, eax
jne 0x14006c681
add rdi, 4
mov ecx, ebx
mov word [rdi + 4], bx
jmp 0x14006c638
lea eax, [rdx - 0x30]
cmp ax, 9
ja 0x14006c640
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 0x14006c61f
lea rax, [rbp + 0x170]
mov r9, r12
sub r9, rax
movzx edx, word [rax]
movzx r8d, word [rax + r9]
sub edx, r8d
jne 0x14006c663
add rax, 2
test r8d, r8d
jne 0x14006c64d
test edx, edx
je 0x14006c6f5
cmp ecx, 0x64
jae 0x14006c681
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 0x14006c5b9
mov eax, ebx
mov ecx, ebx
shr rax, 5
and ecx, 0x1f
mov eax, dword [rsp + rax*4 + 0x48]
bt eax, ecx
jae 0x14006c6f9
add ebx, esi
cmp ebx, 0x64
jb 0x14006c6d8
jmp 0x14006c6fb
mov eax, ecx
jmp 0x14006c6fd
mov esi, ebx
mov eax, esi
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140013430
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