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

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
xor esi, esi
cmp dword [0x1400a9264], esi
jne 0x14000a650
mov eax, dword [0x1400a9264]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
lea rax, [rsp + 0x60]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SystemSetup
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000a642
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, str.SystemSetupInProgress
lea rax, [0x1400a9264]
mov dword [0x1400a9264], esi
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x50], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ecx, dword [0x1400a9264]
test eax, eax
mov edi, eax
cmovne ecx, esi
mov dword [0x1400a9264], ecx
test ecx, ecx
jne 0x14002acd2
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x14000a642
mov ebx, esi
mov dword [rsp + 0x58], esi
call fcn.14006b670
test eax, eax
je 0x14002ace8
mov edi, esi
mov ebx, 1
test edi, edi
jne 0x14000a6d2
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, str.MiniSetupInProgress
lea rax, [rsp + 0x58]
mov dword [rsp + 0x50], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14000a6d2
cmp dword [rsp + 0x58], esi
jne 0x14000a6d2
mov eax, dword [0x1400a9264]
test ebx, ebx
cmovne eax, esi
mov dword [0x1400a9264], eax
jmp 0x14000a6d2
Function at 0x14000c7f0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x68
mov rax, qword [rcx + 0xa0]
mov qword [rsp + 0x80], rbx
mov rbx, rcx
mov ecx, dword [0x1400aa9b4]
mov qword [rsp + 0x50], rdi
mov rdi, qword [rax + 0x20]
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TlsSetValue]
test eax, eax
je 0x140032afe
mov rcx, rdi
call qword [sym.imp.RPCRT4.dll_RpcImpersonateClient]
mov dword [rsp + 0x70], eax
test eax, eax
jne 0x14000c8da
mov rax, qword [rbx + 0x68]
lea rcx, [sym.spoolsv.exe_YGetPrinter]
mov qword [rsp + 0x60], rbp
mov ebp, dword [rbx + 0x90]
mov qword [rsp + 0x58], rsi
mov rsi, qword [rbx + 0x98]
mov qword [rsp + 0x48], r12
mov r12, qword [rbx + 0x78]
mov qword [rsp + 0x40], r13
mov r13d, dword [rbx + 0x70]
mov qword [rsp + 0x38], r14
mov r14, qword [rbx + 0x88]
mov qword [rsp + 0x30], r15
mov r15d, dword [rbx + 0x80]
mov qword [rsp + 0x78], rax
cmp rsi, rcx
jne 0x140032ad6
mov dword [rsp + 0x28], ebp
mov r9d, r15d
mov r8, r12
mov qword [rsp + 0x20], r14
mov edx, r13d
mov rcx, rax
call sym.spoolsv.exe_YGetPrinter
mov rcx, rdi
mov dword [rsp + 0x70], eax
call qword [sym.imp.RPCRT4.dll_RpcRevertToSelfEx]
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov ecx, dword [0x1400aa9b4]
xor edx, edx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TlsSetValue]
mov rcx, qword [rbx + 0xa0]
lea rdx, [rsp + 0x70]
call qword [sym.imp.RPCRT4.dll_RpcAsyncCompleteCall]
mov eax, dword [rsp + 0x70]
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x80]
test eax, eax
jg 0x14000c914
add rsp, 0x68
ret
movzx eax, ax
or eax, 0x80070000
jmp 0x14000c90f
mov rcx, rsi
call qword [0x1400719c8]
mov rcx, qword [rsp + 0x78]
mov r9d, r15d
mov r8, r12
mov dword [rsp + 0x28], ebp
mov edx, r13d
mov qword [rsp + 0x20], r14
call rsi
nop
jmp 0x14000c8af
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov dword [rsp + 0x70], eax
jmp 0x14000c8e8
Function at 0x14000da90
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rax, qword [rcx + 0x80]
mov rbx, rcx
mov ecx, dword [0x1400aa9b4]
mov rdi, qword [rax + 0x20]
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TlsSetValue]
test eax, eax
je 0x140033d88
mov rcx, rdi
call qword [sym.imp.RPCRT4.dll_RpcImpersonateClient]
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x14000db0a
mov rsi, qword [rbx + 0x78]
lea rax, [fcn.14000db50]
mov ebp, dword [rbx + 0x70]
mov r14, qword [rbx + 0x68]
cmp rsi, rax
jne 0x140033d72
mov edx, ebp
mov rcx, r14
call fcn.14000db50
mov rcx, rdi
mov dword [rsp + 0x40], eax
call qword [sym.imp.RPCRT4.dll_RpcRevertToSelfEx]
mov ecx, dword [0x1400aa9b4]
xor edx, edx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TlsSetValue]
mov rcx, qword [rbx + 0x80]
lea rdx, [rsp + 0x40]
call qword [sym.imp.RPCRT4.dll_RpcAsyncCompleteCall]
mov eax, dword [rsp + 0x40]
test eax, eax
jg 0x140033d97
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
mov rcx, rsi
call qword [0x1400719c8]
mov edx, ebp
mov rcx, r14
call rsi
nop
jmp 0x14000dafd
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov dword [rsp + 0x40], eax
jmp 0x14000db18
movzx eax, ax
or eax, 0x80070000
jmp 0x14000db36
Function at 0x14000dfa0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x1400aae30], 0
je 0x14000dfbe
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call sym.spoolsv.exe_PrvRevertToPrinterSelf
xor edx, edx
lea r8, str.RouterPreInitEvent
mov rdi, rax
lea ecx, [rdx + 2]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_OpenEventW]
mov rbx, rax
test rax, rax
je 0x140033fec
mov rcx, rax
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_SetEvent]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test rdi, rdi
je 0x14000e00b
mov rcx, rdi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
test eax, eax
je 0x14003404a
or edx, 0xffffffff
call fcn.1400101c8
jmp 0x14000dfb3
mov rax, qword [0x1400a92b0]
lea rcx, [0x1400a92b0]
cmp rax, rcx
je 0x14003402a
test byte [rax + 0x1c], 0x20
je 0x14003402a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov rcx, qword [0x1400a92b0]
lea r8, [0x140075f40]
mov r9d, eax
mov edx, 0x15
mov rcx, qword [rcx + 0x10]
call fcn.14003d1e0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
xor r8d, r8d
lea rcx, [0x140075b90]
mov edx, eax
call fcn.140053ce8
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_ExitProcess]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edx, eax
mov ecx, 0x69
call fcn.140053b48
nop
jmp 0x14000e00b

Function at 0x14000e14c
Capabilities:
Delete file
Move file

Disassembly:
test rcx, rcx
je 0x14000e1cc
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x1400aaa28]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_EnterCriticalSection]
mov rax, qword [rbx + 0x20]
test rax, rax
jne 0x1400340fc
or edx, 0xffffffff
mov rcx, rbx
call fcn.14000e1ec
lea rcx, [rbx + 0x18]
cmp qword [rcx], 0
jne 0x14000e1d4
lea rcx, [0x1400aaa28]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_LeaveCriticalSection]
mov rcx, qword [rbx + 0x38]
cmp rcx, 0xffffffffffffffff
jne 0x14000e1db
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x14003410a
mov rcx, qword [rbx + 0x48]
test rcx, rcx
jne 0x14000e1cd
mov rcx, qword [0x1400aae20]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x20
pop rbx
ret
call sym.spoolsv.exe_PrvDllFreeSplMem
jmp 0x14000e1b5
call fcn.14000f380
jmp 0x14000e188
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x14000e19f
and qword [rax + 8], 0
mov rax, qword [rax + 0x10]
jmp 0x14000e16a
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_DeleteFileW]
test eax, eax
jne 0x140034124
mov rcx, qword [rbx + 0x40]
lea r8d, [rax + 4]
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l2_1_1.dll_MoveFileExW]
mov rcx, qword [rbx + 0x40]
call sym.spoolsv.exe_PrvDllFreeSplMem
and qword [rbx + 0x40], 0
jmp 0x14000e1ac
Function at 0x14000e220
Capabilities:
Get thread local storage value
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1400a9008]
xor rax, rsp
mov qword [rsp + 0x80], rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ecx, dword [0x1400aa9b4]
xor esi, esi
mov edi, eax
cmp ecx, 0xffffffff
je 0x140034160
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TlsGetValue]
lea rdx, [rsp + 0x64]
mov rcx, rax
call qword [sym.imp.RPCRT4.dll_I_RpcBindingInqTransportType]
mov ebx, eax
test eax, eax
jne 0x14000e36e
cmp dword [rsp + 0x64], 4
jne 0x14003417e
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentThread]
mov ebx, 1
lea r9, [rsp + 0x70]
mov rcx, rax
mov r8d, ebx
lea edx, [rbx + 7]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_OpenThreadToken]
test eax, eax
je 0x1400341c4
lea rax, [rsp + 0x68]
mov dword [rsp + 0x78], esi
mov qword [rsp + 0x50], rax
lea r8d, [rbx + 1]
mov dword [rsp + 0x48], esi
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x40], esi
xor r9d, r9d
mov dword [rsp + 0x38], esi
movzx edx, bl
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
mov word [rsp + 0x7c], 0x500
mov qword [rsp + 0x68], rsi
call qword [sym.imp.api_ms_win_security_base_l1_2_0.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400341a6
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_security_base_l1_2_0.dll_CheckTokenMembership]
test eax, eax
je 0x140034188
cmp dword [rsp + 0x60], esi
jne 0x14000e321
mov ebx, esi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_security_base_l1_2_0.dll_FreeSid]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
test ebx, ebx
js 0x1400341e7
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140024ca0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
cmp eax, 0x6bd
jne 0x140034168
mov ebx, esi
jmp 0x14000e337
mov rax, rsi
jmp 0x14000e263
test eax, eax
jle 0x14000e337
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14000e337
mov ebx, 1
jmp 0x14000e337
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14000e321
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14000e321
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14000e32c
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14000e32c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x1400341d9
movzx ebx, ax
or ebx, 0x80070000
cmp ebx, 0x800703f0
cmove ebx, esi
jmp 0x14000e337
mov rcx, qword [0x1400a92b0]
lea rax, [0x1400a92b0]
cmp rcx, rax
je 0x14000e347
test byte [rcx + 0x1c], 0x20
je 0x14000e347
mov rcx, qword [rcx + 0x10]
lea r8, [0x140075fb0]
mov edx, 0xe
mov r9d, ebx
call fcn.14003d1e0
nop
jmp 0x14000e347
Function at 0x14000e4a0
Capabilities:
Set thread local storage value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov rax, qword [rcx + 0xa8]
mov rbx, rcx
mov ecx, dword [0x1400aa9b4]
mov rdi, qword [rax + 0x20]
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TlsSetValue]
test eax, eax
je 0x140034280
mov rcx, rdi
call qword [sym.imp.RPCRT4.dll_RpcImpersonateClient]
mov dword [rsp + 0x90], eax
test eax, eax
jne 0x14000e57a
mov rsi, qword [rbx + 0xa0]
lea rdx, [fcn.14000e5d0]
mov rcx, qword [rbx + 0x68]
mov eax, dword [rbx + 0x70]
mov r10d, dword [rbx + 0x64]
mov ebp, dword [rbx + 0x98]
mov r14, qword [rbx + 0x90]
mov r15, qword [rbx + 0x88]
mov r12d, dword [rbx + 0x80]
mov r13, qword [rbx + 0x78]
mov dword [rsp + 0x98], eax
mov qword [rsp + 0xa8], rcx
mov dword [rsp + 0xa0], r10d
cmp rsi, rdx
jne 0x140034242
mov dword [rsp + 0x38], ebp
mov rdx, rcx
mov qword [rsp + 0x30], r14
mov r9, r13
mov qword [rsp + 0x28], r15
mov r8d, eax
mov ecx, r10d
mov dword [rsp + 0x20], r12d
call fcn.14000e5d0
mov rcx, rdi
mov dword [rsp + 0x90], eax
call qword [sym.imp.RPCRT4.dll_RpcRevertToSelfEx]
mov ecx, dword [0x1400aa9b4]
xor edx, edx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TlsSetValue]
mov rcx, qword [rbx + 0xa8]
lea rdx, [rsp + 0x90]
call qword [sym.imp.RPCRT4.dll_RpcAsyncCompleteCall]
mov eax, dword [rsp + 0x90]
test eax, eax
jle 0x14000e5b0
movzx eax, ax
or eax, 0x80070000
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, rsi
call qword [0x1400719c8]
mov r8d, dword [rsp + 0x98]
mov r9, r13
mov rdx, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0xa0]
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r12d
call rsi
nop
jmp 0x14000e56a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov dword [rsp + 0x90], eax
jmp 0x14000e588
Function at 0x14000fb68
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400a9008]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor ebp, ebp
mov rsi, rcx
mov qword [rsp + 0x30], rbp
mov ebx, ebp
test rcx, rcx
je 0x14000fca8
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bp
jne 0x14000fbaa
inc rax
cmp rax, 0x207
jae 0x14000fca8
mov ecx, 0x438
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rdi, rax
test rax, rax
je 0x14000fca8
lea rcx, [rsp + 0x40]
call fcn.14000fd18
lea r8, str.PrintersConnections
mov edx, 0x21c
mov rcx, rdi
call fcn.14000ff60
mov eax, 0x5c
lea rdx, [rdi + 0x2a]
mov r8d, 0x207
mov word [rdi + 0x28], ax
mov rcx, rsi
call sym.spoolsv.exe_PrvFormatPrinterForRegistryKey
mov ecx, 0x20019
call sym.spoolsv.exe_PrvSplGetClientUserHandle
mov rsi, rax
test rax, rax
je 0x14000fc96
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000fc8d
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400740e0]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x38], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x140036814
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, rdi
call sym.spoolsv.exe_PrvDllFreeSplMem
lea rcx, [rsp + 0x40]
call fcn.14000fcdc
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140024ca0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rbx, qword [0x1400aad38]
jmp 0x140036837
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x14000fc82
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14003681d
jmp 0x14000fc82

Function at 0x14000fcdc
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx]
mov rbx, rcx
cmp rdx, 0xffffffffffffffff
je 0x14000fd03
test rdx, rdx
je 0x14000fd03
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_SetThreadToken]
test eax, eax
je 0x140036842
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14000fea0
mov ecx, 1
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_ExitProcess]
Function at 0x140010280
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, [0x140074330]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140010302
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]
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]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140013b90
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ecx, 0x860
xor edi, edi
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rbx, rax
test rax, rax
je 0x140013c4c
mov ecx, 0x2001f
call sym.spoolsv.exe_PrvSplGetClientUserHandle
mov qword [rbx + 8], rax
test rax, rax
je 0x14002ebef
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentThread]
mov r9, rbx
lea edx, [rdi + 0xe]
mov rcx, rax
lea r8d, [rdi + 1]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_OpenThreadToken]
test eax, eax
je 0x14002ebe6
test rbx, rbx
je 0x140013c04
cmp dword [0x1400aae30], edi
je 0x140013c16
mov rcx, rbx
call fcn.140013fe0
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [fcn.140013fe0]
xor edx, edx
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_CreateThread]
test rax, rax
je 0x14002ebff
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x140013c04
jmp 0x140013c06
lea rcx, [rbx + 8]
call fcn.1400141ac
mov rcx, rbx
call sym.spoolsv.exe_PrvDllFreeSplMem
mov rbx, rdi
jmp 0x140013bef
mov rcx, qword [rbx]
mov edi, 1
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
lea rcx, [rbx + 8]
call fcn.1400141ac
mov rcx, rbx
call sym.spoolsv.exe_PrvDllFreeSplMem
nop
jmp 0x140013c04
Function at 0x140013f18
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x1400a9008]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdx, rcx
lea rcx, [rsp + 0x58]
call fcn.140016968
lea rdx, str.Local_SettingsPrintersPropertyBags
lea rcx, [rsp + 0x58]
call fcn.140016864
test eax, eax
js 0x140013fa2
mov rdx, qword [rsp + 0x60]
lea rax, [rsp + 0x40]
and qword [rsp + 0x40], 0
mov r9d, 0x1000b
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000003
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x14002ed0e
lea rcx, [rsp + 0x40]
call fcn.140020930
mov rdx, qword [rsp + 0x60]
call fcn.140016834
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140024ca0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
xor edx, edx
lea rcx, str.localspl.dll
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
and qword [rsp + 0x48], 0
lea rcx, [rsp + 0x48]
mov rbx, rax
call fcn.140064108
mov qword [rsp + 0x48], rbx
test rbx, rbx
je 0x14002edbd
lea rdx, str.SplIsValidUserPropertyBag
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x14002edbd
xor ebx, ebx
and qword [rsp + 0x38], 0
lea r9, [rsp + 0x50]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x70]
and qword [rsp + 0x28], 0
mov edx, ebx
mov rcx, qword [rsp + 0x40]
and qword [rsp + 0x20], 0
mov dword [rsp + 0x50], 0x104
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
jne 0x14002edbd
mov rcx, rdi
call qword [0x1400719c8]
lea rcx, [rsp + 0x70]
call rdi
test al, al
jne 0x14002edb9
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteTreeW]
inc ebx
jmp 0x14002ed5a
lea rcx, [rsp + 0x48]
call fcn.140064108
nop
jmp 0x140013f98
Function at 0x140013fe0
Capabilities:
Get token privileges

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400a9008]
xor rax, rsp
mov qword [rbp - 8], rax
and qword [r11 - 0x38], 0
lea rax, [rbp - 0x18]
and dword [rbp - 0x1c], 0
lea rsi, [rcx + 8]
and dword [rbp - 0x20], 0
lea rdx, str.Printers
and qword [rbp - 0x18], 0
mov rbx, rcx
mov rcx, qword [rsi]
xor r9d, r9d
mov qword [r11 - 0x40], rax
xor r8d, r8d
and qword [r11 - 0x48], 0
mov dword [rsp + 0x28], 0xf003f
and dword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov dword [rbp - 0x20], eax
test eax, eax
jne 0x14002edce
mov rcx, qword [rbp - 0x18]
call fcn.140013c54
mov dword [rbp - 0x20], eax
test eax, eax
jne 0x14002edce
lea rcx, [rbp - 0x18]
call fcn.140020930
cmp dword [0x1400aae30], 0
je 0x140014187
mov rcx, qword [rbx]
call fcn.14001a408
test eax, eax
jne 0x14001414d
mov rdx, rsi
xor ecx, ecx
call fcn.140014458
test eax, eax
je 0x140014100
mov edx, 1
mov rcx, rsi
call fcn.14001838c
mov rcx, qword [rbx]
lea rax, [0x1400ab2c0]
lea rdx, [rbp - 0x18]
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x18], 0x67727473
call fcn.140013dd8
test eax, eax
js 0x14002ee18
lea rdx, str._Classes
lea rcx, [rbp - 0x18]
call fcn.140016864
test eax, eax
js 0x14002ee18
mov rdi, qword [rbp - 0x10]
mov rcx, rdi
call fcn.140013f18
mov rdx, rdi
call fcn.140016834
and qword [rsp + 0x20], 0
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 3]
call sym.spoolsv.exe_PrvRouterBroadcastMessage
mov rcx, qword [rbx]
lea rax, [rbp - 0x20]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x1c]
lea edx, [r9 + 8]
call qword [sym.imp.api_ms_win_security_base_l1_2_0.dll_GetTokenInformation]
test eax, eax
je 0x14001414d
mov r8d, dword [rbp - 0x1c]
mov edx, 1
mov ecx, edx
mov r9, rbx
call fcn.14000afdc
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14001419e
mov rcx, rsi
call fcn.1400141ac
mov rcx, rbx
call sym.spoolsv.exe_PrvDllFreeSplMem
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140024ca0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov edx, 0x1d4c0
call fcn.1400101c8
test eax, eax
jns 0x140014083
jmp 0x14002ee0d
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x140014155
mov rcx, qword [0x1400a92b0]
lea rdx, [0x1400a92b0]
cmp rcx, rdx
je 0x14001406d
test byte [rcx + 0x1c], 0x20
je 0x14001406d
mov rcx, qword [rcx + 0x10]
lea r8, [0x14009d178]
mov edx, 0xc
mov r9d, eax
call fcn.14003d1e0
nop
jmp 0x14001406d
call sym.spoolsv.exe_PrvWaitForSpoolerInitialization
nop
jmp 0x140014083
mov rdi, qword [rbp - 0x10]
jmp 0x1400140f8
Function at 0x140015518
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x30
mov rcx, qword [rcx + 0x18]
lea rax, [r11 + 0x20]
mov qword [r11 - 0x10], rax
mov ebx, r8d
mov rax, qword [rsp + 0x60]
xor r8d, r8d
mov dword [r11 + 0x20], r9d
lea r9, [r11 + 0x18]
mov qword [r11 - 0x18], rax
mov dword [rsp + 0x50], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ecx, eax
test eax, eax
jne 0x14001555d
cmp dword [rsp + 0x50], ebx
lea eax, [rcx + 0x57]
cmovne ecx, eax
mov rdx, qword [rsp + 0x68]
test rdx, rdx
jne 0x14001557e
test ecx, ecx
jg 0x140015573
mov eax, ecx
add rsp, 0x30
pop rbx
ret
movzx ecx, cx
or ecx, 0x80070000
jmp 0x14001556b
mov eax, dword [rsp + 0x58]
mov dword [rdx], eax
jmp 0x140015567

Function at 0x1400159e4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x18], r8d
mov qword [r11 + 0x10], rdx
push rbx
sub rsp, 0x30
mov eax, dword [r9]
lea rdx, str.Order
mov rcx, qword [rcx + 0x18]
mov rbx, r9
mov dword [rsp + 0x48], eax
lea r9, [r11 + 0x18]
lea rax, [r11 + 0x10]
mov dword [rsp + 0x50], 7
mov qword [r11 - 0x10], rax
xor r8d, r8d
and qword [r11 - 0x18], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140015a42
cmp dword [rsp + 0x50], 7
lea ecx, [rax + 0x57]
cmovne eax, ecx
mov ecx, dword [rsp + 0x48]
mov dword [rbx], ecx
test eax, eax
jg 0x140034ab6
add rsp, 0x30
pop rbx
ret
movzx eax, ax
or eax, 0x80070000
jmp 0x140015a48