joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140051184
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 0x1400512c4
cmp qword [rdi + 8], rcx
je 0x1400512c4
cmp qword [rdi + 0x20], rcx
je 0x1400512c4
cmp qword [rdi + 0x18], rcx
je 0x1400512c4
cmp qword [rdi + 0x10], rcx
je 0x1400512c4
cmp qword [rdi + 0x28], rcx
je 0x1400512c4
cmp qword [rdi + 0x30], rcx
je 0x1400512c4
cmp qword [rdi + 0x38], rcx
je 0x1400512c4
test rax, rax
je 0x1400512c4
xor eax, eax
jmp 0x1400512d0
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 0x140051e54
Capabilities:
Delete file
Move file

Disassembly:
test rcx, rcx
je 0x140051f57
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x1400c9ea8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rax, qword [rbx + 0x20]
jmp 0x140051e87
and qword [rax + 8], 0
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140051e7e
or edx, 0xffffffff
mov rcx, rbx
call fcn.1400553b4
lea rcx, [rbx + 0x18]
cmp qword [rcx], 0
je 0x140051ea6
call fcn.140051c44
lea rcx, [0x1400c9ea8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x140051ecf
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x140051f1c
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140051efe
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]
mov r8, qword [rbx + 0x40]
xor edx, edx
mov rcx, qword [0x1400ca110]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
and qword [rbx + 0x40], 0
mov r8, qword [rbx + 0x48]
test r8, r8
je 0x140051f3a
mov rcx, qword [0x1400ca110]
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rcx, qword [0x1400ca110]
mov r8, rbx
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
add rsp, 0x20
pop rbx
ret
Function at 0x140060608
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 [0x1400c87d8]
xor rax, rsp
mov qword [rbp + 0x350], rax
mov r14, r9
mov r15, r8
mov r12d, edx
mov rdi, qword [0x1400c82a8]
lea rax, [0x1400c82a8]
cmp rdi, rax
je 0x140060676
test byte [rdi + 0x44], 0x80
je 0x140060676
mov rcx, qword [rdi + 0x38]
lea r8, [0x1400ab960]
mov edx, 0x1c
call fcn.140016c5c
mov rdi, qword [0x1400c82a8]
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 r13d, r13d
lea r9, [rsp + 0x44]
mov edx, r13d
mov r8d, edx
mov r10d, 8
mov ecx, r8d
mov eax, r8d
shr ecx, 1
mov r8d, ecx
xor r8d, 0xedb88320
test al, 1
cmove r8d, ecx
sub r10, 1
jne 0x1400606ab
mov dword [r9], r8d
inc edx
add r9, 4
cmp edx, 0x100
jl 0x1400606a2
mov rax, r14
mov dword [rbp + 0x344], r13d
neg rax
mov ebx, r13d
mov r11d, r13d
sbb ecx, ecx
not ecx
and ecx, 0x80070057
test r14, r14
cmove ebx, ecx
test ebx, ebx
js 0x1400607a4
cmp r11d, r12d
jae 0x14006079f
lea rax, [rsp + 0x30]
mov r9d, 4
mov r8, r15
mov qword [rsp + 0x20], rax
mov edx, esi
lea rcx, [rsp + 0x40]
call fcn.140082a90
mov ebx, eax
test eax, eax
js 0x14006078f
mov r8, qword [r15 + 8]
or rax, 0xffffffffffffffff
inc rax
cmp word [r8 + rax*2], r13w
jne 0x14006073b
mov edx, dword [rsp + 0x30]
lea r9d, [rax*2 + 2]
lea rax, [rsp + 0x30]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.140082a90
mov ebx, eax
test eax, eax
js 0x14006078f
mov edx, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
lea r8, [r15 + 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea rcx, [rsp + 0x40]
call fcn.140082a90
mov ebx, eax
inc r11d
test ebx, ebx
js 0x1400607a4
mov esi, dword [rsp + 0x30]
jmp 0x140060705
mov dword [r14], esi
jmp 0x1400607ce
lea rax, [0x1400c82a8]
cmp rdi, rax
je 0x1400607ce
test byte [rdi + 0x44], 0x20
je 0x1400607ce
mov rcx, qword [rdi + 0x38]
lea r8, [0x1400ab960]
mov edx, 0x1d
mov r9d, ebx
call fcn.140016ccc
mov eax, ebx
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.14000e2c0
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 0x140061464
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1400c87d8]
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 0x140061530
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400bd160]
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 0x140061530
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 [0x1400ca100]
jmp 0x140061526
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14006152b
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14006150a
mov rax, rbx
jmp 0x140061556
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 0x140061554
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.14000e2c0
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret
Function at 0x140061ae4
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 0x140061bbe
cmp word [rbx], r14w
je 0x140061bbe
mov rdx, rbx
mov rcx, r13
call fcn.140061464
mov rsi, rax
test rax, rax
je 0x140061c5e
lea r14, [rsp + 0x68]
test rdi, rdi
je 0x140061b68
mov rcx, rdi
cmp qword [rcx + 8], rsi
je 0x140061c5e
mov rax, qword [rcx]
mov r14, rcx
mov rcx, rax
test rax, rax
jne 0x140061b50
mov ecx, 0x10
call sym.spoolsv.exe_PrvDllAllocSplMem
test rax, rax
je 0x140061c5e
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 0x140061b8c
lea ebp, [rbp + rax*2]
add ebp, 2
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r14w
jne 0x140061ba1
mov rdi, qword [rsp + 0x68]
lea rbx, [rbx + rax*2]
add rbx, 2
jne 0x140061b22
mov rax, qword [0x1400ca100]
add ebp, 2
mov edx, r14d
mov ebx, 1
jmp 0x140061bd7
mov rax, qword [rax]
add edx, ebx
test rax, rax
jne 0x140061bd2
mov ecx, ebx
mov rax, rdi
test rdi, rdi
je 0x140061bf0
mov rax, qword [rax]
add ecx, ebx
test rax, rax
jne 0x140061be6
cmp ecx, edx
jne 0x140061c4d
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 0x140061c24
mov ecx, eax
jmp 0x140061c52
mov rdx, qword [0x1400ca100]
mov rcx, rdi
test rdi, rdi
je 0x140061c45
mov rax, qword [rcx + 8]
mov qword [rdx], rax
mov rdx, rax
mov rcx, qword [rcx]
test rcx, rcx
jne 0x140061c33
mov qword [rdx], r14
mov r15d, ebx
jmp 0x140061c5e
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 0x140061c86
mov rcx, qword [0x1400ca110]
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 0x140061c63
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 0x140064890
Capabilities:
Delete file
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140064965
cmp dword [rcx], 0x6060
jne 0x140064965
mov rax, qword [0x1400ca100]
cmp qword [rcx + 8], rax
jne 0x1400648df
movabs r10, 0xb2e10636105e9a70
mov rcx, qword [rcx + 0x10]
mov rax, qword [rax + 0x2b0]
call qword [0x1400a9400]
jmp 0x140064978
mov rcx, qword [rcx + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x14006495e
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 0x14006495e
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 0x140064933
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 0x140064940
mov rcx, rdi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
mov r8, qword [rbx + 0x40]
xor edx, edx
mov rcx, qword [0x1400ca110]
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 0x140064978
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 0x140074b14
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 [0x1400c87d8]
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, [0x1400c9f10]
mov qword [rbp - 0x20], rdx
mov rsi, r8
mov dword [rbp - 0x10], 0x80004005
test rax, rax
jne 0x140074b6e
mov ebx, 0x80070057
jmp 0x140074c83
mov r8, rcx
lea r9, [rbp - 0x28]
mov rcx, rax
mov edx, 6
call fcn.140073e68
mov ebx, eax
test eax, eax
js 0x140074c83
or rdi, 0xffffffffffffffff
test rsi, rsi
je 0x140074be9
mov rax, rdi
inc rax
cmp word [rsi + rax*2], r15w
jne 0x140074b98
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 0x140074be1
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x140074c83
test r14, r14
je 0x140074c3b
inc rdi
cmp word [r14 + rdi*2], r15w
jne 0x140074bee
mov rcx, qword [rbp - 0x18]
lea eax, [rdi*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, [0x1400ab9f8]
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 0x140074c37
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x140074c83
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 0x140074c7f
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
jns 0x140074cb4
mov rcx, qword [0x1400c82a8]
lea rax, [0x1400c82a8]
cmp rcx, rax
je 0x140074cb4
test byte [rcx + 0x44], 0x20
je 0x140074cb4
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400bd208]
mov edx, 0x1e
mov r9d, ebx
call fcn.140016ccc
lea rcx, [rbp - 0x28]
call fcn.140082028
mov rdx, qword [rbp - 0x20]
call fcn.14004443c
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14000e2c0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14007608c
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 0x1400761a3
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 0x14007610e
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
jmp 0x140076162
mov rcx, qword [rsp + 0x78]
mov rdx, rdi
call fcn.14007608c
mov ebx, eax
test eax, eax
je 0x140076149
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 0x1400760fb
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 0x140076185
test eax, eax
je 0x140076167
mov ebx, r14d
jmp 0x140076185
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 [0x1400ca110]
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 0x1400761fb
jmp 0x1400761b7
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 [0x1400c82a8]
lea rcx, [0x1400c82a8]
cmp rax, rcx
je 0x1400761fb
test byte [rax + 0x44], 0x20
je 0x1400761fb
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400c82a8]
lea r8, [0x1400ab970]
mov edx, 0x11
mov r9d, eax
mov rcx, qword [rcx + 0x38]
call fcn.140016c88
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 0x140076218
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 0x1400762c1
test r9, r9
je 0x1400762c1
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 0x1400762c1
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 0x1400762f2
mov rcx, qword [0x1400c82a8]
lea rax, [0x1400c82a8]
cmp rcx, rax
je 0x1400762f2
test byte [rcx + 0x44], 0x20
je 0x1400762f2
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400ab970]
mov edx, 0x2f
mov r9d, ebx
call fcn.140016c88
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140076594
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 [0x1400c87d8]
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 0x140076615
call fcn.14000aaf0
mov ebx, eax
test eax, eax
js 0x140076652
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 0x14007663a
call fcn.14000aaf0
mov ebx, eax
test eax, eax
js 0x140076642
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.14000e2c0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140076840
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 0x1400768e6
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 0x1400768e6
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 0x140076917
mov rcx, qword [0x1400c82a8]
lea rax, [0x1400c82a8]
cmp rcx, rax
je 0x140076917
test byte [rcx + 0x44], 0x20
je 0x140076917
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400ab970]
mov edx, 0x30
mov r9d, ebx
call fcn.140016c88
mov eax, ebx
add rsp, 0x50
pop rbx
ret
Function at 0x1400777d0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x1400c9474]
xor ebx, ebx
cmp ecx, 0xffffffff
jne 0x1400777e7
mov eax, ebx
jmp 0x1400777f3
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 0x140077815
cmp dword [rsp + 0x30], 4
je 0x140077815
lea ebx, [rax + 1]
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x1400782ec
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 0x1400784d5
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 0x1400784d5
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.14000df2c
lea rcx, [rbp - 0x18]
mov rdi, rax
call fcn.1400635f8
test rdi, rdi
je 0x1400784c3
mov qword [rbp - 0x18], rdi
mov esi, r12d
cmp esi, dword [rbp + 0x48]
jae 0x1400784cc
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 0x1400784ab
mov rdx, r12
test rdi, rdi
je 0x140078419
mov rdx, rdi
mov rcx, r14
call fcn.140004220
test eax, eax
jne 0x140078473
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 0x140078468
mov rcx, qword [rbp - 0x10]
mov rdx, r15
call fcn.1400782ec
mov ebx, eax
lea rcx, [rbp - 0x10]
call fcn.14004b888
jmp 0x1400784b2
mov rcx, qword [0x1400c82a8]
lea rax, [0x1400c82a8]
cmp rcx, rax
je 0x1400784b2
test byte [rcx + 0x44], 0x20
je 0x1400784b2
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400abaf0]
mov edx, 0xc
mov r9, rdi
call fcn.14003304c
inc esi
jmp 0x1400783c9
cmp eax, 0x103
je 0x1400784be
inc esi
test ebx, ebx
je 0x1400783c9
jmp 0x1400784cc
mov ebx, r12d
jmp 0x1400784cc
mov qword [rbp - 0x18], r12
mov ebx, 8
lea rcx, [rbp - 0x18]
call fcn.1400635f8
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