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

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x1400a6bf0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rbx, rbx
je 0x1400127aa
cmp dword [rbx], 0x6060
jne 0x1400127aa
mov rax, qword [rbx + 0x18]
mov qword [rsp + 0x30], rdi
test rax, rax
jne 0x1400126c6
lea rcx, [0x1400a6bf0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov rcx, qword [rbx + 0x60]
xor esi, esi
test rcx, rcx
jne 0x1400126e0
mov rax, qword [rbx + 8]
mov rcx, qword [rbx + 0x10]
mov rax, qword [rax + 0x118]
call qword [0x140088740]
test eax, eax
je 0x1400027f8
lea rcx, [0x1400a6bf0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov rax, qword [rbx + 0x20]
test rax, rax
jne 0x140012720
mov rax, qword [0x1400a69f0]
mov dword [rbx + 0x30], esi
mov dword [rbx + 0x50], esi
cmp rax, rbx
je 0x140012732
test rax, rax
jne 0x140012742
cmp qword [rbx + 0x18], rsi
jne 0x140012765
lea rcx, [0x1400a6bf0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov rcx, qword [rbx + 0x38]
cmp rcx, 0xffffffffffffffff
jne 0x1400027f0
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x140012774
mov r8, qword [rbx + 0x48]
test r8, r8
je 0x1400027c9
mov rcx, qword [0x1400a6ef0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1400a6ef0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 1
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x1400027a4
mov eax, esi
jmp 0x1400027e0
test byte [rax + 0xc], 2
je 0x140002711
xor edx, edx
mov rcx, rbx
call fcn.1400069fc
nop
jmp 0x140002711
mov rax, qword [0x1400a52b8]
lea rdx, [0x1400a52b8]
cmp rax, rdx
je 0x140012712
test byte [rax + 0x1c], 4
je 0x140012712
mov rcx, qword [rax + 0x10]
lea r8, [0x14008bd10]
mov edx, 0x10
call fcn.1400248e4
mov rcx, qword [rbx + 0x60]
call fcn.140008ad0
mov qword [rbx + 0x60], rsi
jmp 0x14000272d
mov qword [rax + 8], rsi
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140012720
jmp 0x140002764
mov rax, qword [rbx + 0x28]
mov qword [0x1400a69f0], rax
jmp 0x140002783
lea rcx, [rax + 0x28]
mov rax, qword [rax + 0x28]
cmp rax, rbx
je 0x140012759
test rax, rax
jne 0x140012742
jmp 0x140002783
mov rax, qword [rbx + 0x28]
mov qword [rcx], rax
jmp 0x140002783
lea rcx, [rbx + 0x18]
call fcn.140006b24
nop
jmp 0x14000278d
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x14001278e
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]
mov r8, qword [rbx + 0x40]
xor edx, edx
mov rcx, qword [0x1400a6ef0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx + 0x40], rsi
jmp 0x1400027b1
lea rcx, [0x1400a6bf0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor esi, esi
mov eax, esi
jmp 0x1400027e5
Function at 0x140007560
Capabilities:
Delete file
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1400219bf
cmp dword [rcx], 0x6060
jne 0x1400219bf
mov rax, qword [0x1400a6f10]
cmp qword [rcx + 8], rax
jne 0x14002194e
mov rcx, qword [rcx + 0x10]
mov rax, qword [rax + 0x2b0]
call qword [0x140088740]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rcx + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x1400219b5
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
or qword [rbx + 0x38], 0xffffffffffffffff
cmp qword [rbx + 0x40], 0
je 0x1400219b5
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]
test eax, eax
jne 0x140021990
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]
test rdi, rdi
je 0x14002199d
mov rcx, rdi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
mov r8, qword [rbx + 0x40]
xor edx, edx
mov rcx, qword [0x1400a6ef0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rbx + 0x40], 0
mov eax, 1
jmp 0x1400075a4
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x1400075a4
Function at 0x140008e00
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 [0x1400a5768]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor ebp, ebp
mov rsi, rcx
mov qword [rsp + 0x38], rbp
mov ebx, ebp
test rcx, rcx
je 0x140008f79
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bp
jne 0x140008e42
inc rax
cmp rax, 0x207
jae 0x140008f79
mov ecx, 0x438
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rdi, rax
test rax, rax
je 0x140008f79
lea rcx, [rsp + 0x40]
call fcn.140009100
lea r9, str.PrintersConnections
mov edx, 0x21c
sub r9, rdi
mov rcx, rdi
lea rax, [rdx + 0x7ffffde2]
test rax, rax
je 0x140008eaf
movzx eax, word [r9 + rcx]
test ax, ax
je 0x140008eaf
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140008e8c
test rdx, rdx
lea rax, [rcx - 2]
lea rdx, [rdi + 0x2a]
mov r8d, 0x207
cmovne rax, rcx
mov rcx, rsi
mov word [rax], bp
mov eax, 0x5c
mov word [rdi + 0x28], ax
call sym.spoolsv.exe_PrvFormatPrinterForRegistryKey
mov ecx, 0x20019
call sym.spoolsv.exe_PrvSplGetClientUserHandle
mov rsi, rax
test rax, rax
je 0x140008f5d
lea rax, [rsp + 0x38]
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 0x140008f54
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x14008a508]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x30], 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 0x140013ba0
mov rcx, qword [rsp + 0x38]
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, qword [0x1400a6ef0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rcx, [rsp + 0x40]
call fcn.140008fac
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400106e0
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 [0x1400a6f10]
jmp 0x140013bc3
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x140008f49
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140013ba9
jmp 0x140008f49

Function at 0x140008fac
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx]
mov rbx, rcx
cmp rdx, 0xffffffffffffffff
je 0x140008fd3
test rdx, rdx
je 0x140008fd3
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_SetThreadToken]
test eax, eax
je 0x140013bce
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140008b00
mov ecx, 1
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
Function at 0x140009300
Capabilities:
Delete file
Move file

Disassembly:
test rcx, rcx
je 0x1400093a7
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x1400a6bf0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov rax, qword [rbx + 0x20]
test rax, rax
jne 0x140013dea
and dword [rbx + 0x30], eax
and dword [rbx + 0x50], eax
mov rax, qword [0x1400a69f0]
cmp rax, rbx
je 0x140013df8
test rax, rax
jne 0x140013e08
lea rcx, [rbx + 0x18]
cmp qword [rcx], 0
jne 0x1400093a8
lea rcx, [0x1400a6bf0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov rcx, qword [rbx + 0x38]
cmp rcx, 0xffffffffffffffff
jne 0x1400093af
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x140013e24
mov r8, qword [rbx + 0x48]
test r8, r8
je 0x140009390
mov rcx, qword [0x1400a6ef0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1400a6ef0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x20
pop rbx
ret
call fcn.140006b24
jmp 0x140009354
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x14000936b
and qword [rax + 8], 0
mov rax, qword [rax + 0x10]
jmp 0x140009322
mov rax, qword [rbx + 0x28]
mov qword [0x1400a69f0], rax
jmp 0x14000934a
lea rcx, [rax + 0x28]
mov rax, qword [rcx]
cmp rax, rbx
jne 0x140009341
mov rax, qword [rbx + 0x28]
mov qword [rcx], rax
jmp 0x14000934a
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x140013e3e
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]
mov r8, qword [rbx + 0x40]
xor edx, edx
mov rcx, qword [0x1400a6ef0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rbx + 0x40], 0
jmp 0x140009378
Function at 0x14000a7c0
Capabilities:
Delete file
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov rbx, rcx
mov esi, edx
lea rcx, [0x1400a6bf0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test rbx, rbx
je 0x140015852
cmp dword [rbx], 0x6060
jne 0x140015852
mov rax, qword [rbx + 0x18]
mov qword [rsp + 0x30], rdi
test rax, rax
jne 0x14001576e
lea rcx, [0x1400a6bf0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov rcx, qword [rbx + 0x60]
xor esi, esi
test rcx, rcx
jne 0x140015788
mov rax, qword [rbx + 8]
mov rcx, qword [rbx + 0x10]
mov rax, qword [rax + 0x118]
call qword [0x140088740]
test eax, eax
je 0x14000a8ea
lea rcx, [0x1400a6bf0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov rax, qword [rbx + 0x20]
test rax, rax
jne 0x1400157c8
mov rax, qword [0x1400a69f0]
mov dword [rbx + 0x30], esi
mov dword [rbx + 0x50], esi
cmp rax, rbx
je 0x1400157da
test rax, rax
jne 0x1400157ea
cmp qword [rbx + 0x18], rsi
jne 0x14001580d
lea rcx, [0x1400a6bf0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov rcx, qword [rbx + 0x38]
cmp rcx, 0xffffffffffffffff
jne 0x14000a8e2
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x14001581c
mov r8, qword [rbx + 0x48]
test r8, r8
je 0x14000a8bb
mov rcx, qword [0x1400a6ef0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1400a6ef0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 1
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x14000a896
xor eax, eax
jmp 0x14000a8d2
test byte [rax + 0xc], 2
je 0x14000a803
mov edx, esi
mov rcx, rbx
call fcn.1400069fc
nop
jmp 0x14000a803
mov rax, qword [0x1400a52b8]
lea rdx, [0x1400a52b8]
cmp rax, rdx
je 0x1400157ba
test byte [rax + 0x1c], 4
je 0x1400157ba
mov rcx, qword [rax + 0x10]
lea r8, [0x14008bd10]
mov edx, 0x10
call fcn.1400248e4
mov rcx, qword [rbx + 0x60]
call fcn.140008ad0
mov qword [rbx + 0x60], rsi
jmp 0x14000a81f
mov qword [rax + 8], rsi
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400157c8
jmp 0x14000a856
mov rax, qword [rbx + 0x28]
mov qword [0x1400a69f0], rax
jmp 0x14000a875
lea rcx, [rax + 0x28]
mov rax, qword [rax + 0x28]
cmp rax, rbx
je 0x140015801
test rax, rax
jne 0x1400157ea
jmp 0x14000a875
mov rax, qword [rbx + 0x28]
mov qword [rcx], rax
jmp 0x14000a875
lea rcx, [rbx + 0x18]
call fcn.140006b24
nop
jmp 0x14000a87f
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x140015836
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]
mov r8, qword [rbx + 0x40]
xor edx, edx
mov rcx, qword [0x1400a6ef0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx + 0x40], rsi
jmp 0x14000a8a3
lea rcx, [0x1400a6bf0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x14000a8d7
Function at 0x14000b140
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 [0x1400a5768]
xor rax, rsp
mov qword [rsp + 0x80], rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x1400a6ee0]
xor esi, esi
mov edi, eax
cmp ecx, 0xffffffff
je 0x140022280
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.RPCRT4.dll_I_RpcBindingInqTransportType]
mov ebx, eax
test eax, eax
jne 0x14000b28e
cmp dword [rsp + 0x60], 4
jne 0x14002229e
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.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_0.dll_OpenThreadToken]
test eax, eax
je 0x14000b29d
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_1_0.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400222c6
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x64]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
test eax, eax
je 0x1400222a8
cmp dword [rsp + 0x64], esi
jne 0x14000b241
mov ebx, esi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_security_base_l1_1_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_0.dll_SetLastError]
test ebx, ebx
js 0x1400222e4
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400106e0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
cmp eax, 0x6bd
jne 0x140022288
mov ebx, esi
jmp 0x14000b257
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14000b2b2
movzx ebx, ax
or ebx, 0x80070000
cmp ebx, 0x800703f0
je 0x14000b299
jmp 0x14000b257
mov rax, rsi
jmp 0x14000b183
test eax, eax
jle 0x14000b257
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14000b257
mov ebx, 1
jmp 0x14000b257
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14000b241
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14000b241
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14000b24c
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14000b24c
mov rcx, qword [0x1400a52b8]
lea rax, [0x1400a52b8]
cmp rcx, rax
je 0x14000b267
test byte [rcx + 0x1c], 0x20
je 0x14000b267
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008bd30]
mov edx, 0xe
mov r9d, ebx
call fcn.140024908
nop
jmp 0x14000b267
Function at 0x14000b2d0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x1400a6f08], 0
je 0x140022324
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_1_0.dll_OpenEventW]
mov rbx, rax
test rax, rax
jne 0x1400223a2
mov rax, qword [0x1400a52b8]
lea rcx, [0x1400a52b8]
cmp rax, rcx
je 0x140022382
test byte [rax + 0x1c], 0x20
je 0x140022382
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [0x1400a52b8]
lea edx, [rbx + 0x15]
mov r9d, eax
lea r8, [0x14008bc78]
mov rcx, qword [rcx + 0x10]
call fcn.140024908
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
xor r8d, r8d
lea rcx, [0x14008b620]
mov edx, eax
call fcn.140044b3c
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test rdi, rdi
je 0x1400223d7
mov rcx, rdi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
test eax, eax
jne 0x1400223d7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
mov ecx, 0x69
call fcn.140044768
or edx, 0xffffffff
call fcn.140040480
nop
jmp 0x14000b2e7
Function at 0x14000b41c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], 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 [0x1400a5768]
xor rax, rsp
mov qword [rbp + 0x350], rax
xor r14d, r14d
mov qword [rsp + 0x30], rcx
mov rsi, r9
mov r15, r8
mov r13, rdx
test rdx, rdx
je 0x14000b614
mov ebx, 0x208
lea r9, str.winspool
mov edx, ebx
lea r8, [0x14008a440]
lea rcx, [rsp + 0x40]
call fcn.14000b620
or rdi, 0xffffffffffffffff
lea rax, [rsp + 0x40]
mov rcx, rdi
inc rcx
cmp word [rax + rcx*2], r14w
jne 0x14000b491
mov r12d, ecx
lea r14, [rsp + 0x40]
mov edx, ebx
sub edx, ecx
lea r14, [r14 + r12*2]
mov rcx, r14
test r15, r15
jne 0x140013574
mov eax, dword [rsi]
lea r9, [0x14008a438]
lea r8, str._s_.2d:
mov dword [rsp + 0x20], eax
call fcn.14000b620
inc dword [rsi]
cmp dword [rsi], 0x63
ja 0x14001356c
call sym.spoolsv.exe_PrvRevertToPrinterSelf
mov rcx, r14
mov rsi, rax
call fcn.14000b7ac
xor r14d, r14d
test rsi, rsi
je 0x14000b4fb
mov rcx, rsi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
lea rcx, [rsp + 0x40]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r14w
jne 0x14000b503
mov rsi, qword [rsp + 0x30]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, 1
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rdx, r13
mov qword [rsp + 0x20], rax
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
lea r8, [rsp + 0x30]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.14000b764
test eax, eax
js 0x14000b5a9
mov rax, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
lea rcx, [rcx + rax*2]
sub rbx, rax
je 0x14000b59a
add rax, 0x7ffffdf6
lea rdx, str._15_45
add rax, rbx
sub rdx, rcx
test rax, rax
je 0x14000b59a
movzx r8d, word [rdx + rcx]
test r8w, r8w
je 0x14000b59a
mov word [rcx], r8w
dec rax
add rcx, 2
sub rbx, 1
jne 0x14000b579
test rbx, rbx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r14w
lea rax, [rsp + 0x40]
inc rdi
cmp word [rax + rdi*2], r14w
jne 0x14000b5ae
lea r8d, [rdi*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], r8d
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsi + 0x18]
mov rdx, r13
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov eax, 1
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.1400106e0
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x460
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor eax, eax
jmp 0x14000b5ea
and dword [rsi], 0
jmp 0x14000b4db
mov r8, r15
call fcn.140009080
lea rcx, [rsp + 0x40]
mov edx, 0x2c
lea rcx, [rcx + r12*2]
call qword [sym.imp.msvcrt.dll_wcschr]
xor r14d, r14d
test rax, rax
je 0x14000b4fb
mov word [rax], r14w
jmp 0x14000b4fb
Function at 0x14000b7ac
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
lea rax, [r11 + 0x18]
mov rsi, rcx
mov qword [r11 + 0x18], rbx
xor r8d, r8d
mov qword [r11 - 0x18], rax
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionPorts
mov rcx, 0xffffffff80000002
lea r9d, [rbx + 2]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x14000b81c
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], 2
lea r9d, [rbx + 1]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov word [rsp + 0x48], bx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov edi, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000b82c
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rsi, qword [rsp + 0x58]
test edi, edi
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14000cb58
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r15, qword [0x1400a6ed0]
xor r14d, r14d
mov r13, r9
mov qword [rax + 8], r14
mov r12, r8
mov ebp, edx
xor esi, esi
mov rbx, qword [r15 + 0x60]
mov rcx, rbx
call fcn.1400018d0
mov rax, r12
neg rax
mov eax, 0x80070057
sbb edi, edi
not edi
and edi, eax
test r12, r12
je 0x14000cbf0
and dword [r12], esi
lea rcx, [r15 + 0x38]
test rcx, rcx
je 0x140022a02
xor eax, eax
lea edi, [rsi + 1]
add rcx, 8
je 0x14000cbd2
mov rax, qword [rcx + 0x10]
test rcx, rcx
je 0x14000cbf0
cmp rax, rcx
je 0x14000cbf0
mov edx, ebp
sub edx, dword [rax + 0x24]
js 0x14000cbf0
test edx, edx
jne 0x140022a09
mov rsi, rax
xor edi, edi
test edi, edi
jne 0x14000cd1d
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.14000de50
mov r14, qword [rsp + 0x70]
mov edi, eax
test edi, edi
js 0x14000ccbb
mov rbp, qword [r14 + 0x30]
mov rcx, r13
mov rdx, rbp
call fcn.14000d470
mov edi, eax
test eax, eax
js 0x14000cc98
and qword [rsp + 0x70], 0
lea r8, [0x14008b050]
mov rax, qword [rsi + 0x38]
lea r9, [0x14008b060]
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov qword [rsp + 0x20], r8
call fcn.14000d724
mov edi, eax
test eax, eax
jg 0x140022a12
test edi, edi
js 0x14000cc98
mov rdx, qword [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000003
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
mov r8, qword [rsp + 0x70]
xor edx, edx
mov rcx, qword [0x1400a6ef0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [r14 + 0x24], 0
jne 0x14000ccbb
dec dword [r15 + 0x30]
mov edx, 1
mov rax, qword [r14]
mov rcx, r14
mov dword [r12], edx
mov rax, qword [rax]
call qword [0x140088740]
test rsi, rsi
je 0x14000ccd4
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
mov rax, qword [rax]
call qword [0x140088740]
test edi, edi
jns 0x14000ccf5
mov rcx, qword [0x1400a52b8]
lea rax, [0x1400a52b8]
cmp rcx, rax
je 0x14000ccf5
test byte [rcx + 0x1c], 0x20
jne 0x140022a20
mov rcx, rbx
call fcn.1400018fc
lea r11, [rsp + 0x40]
mov eax, edi
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
js 0x14000ccbb
mov edi, 0x80004005
jmp 0x14000cc0c
mov edi, eax
jmp 0x14000cbf0
mov rax, qword [rax + 0x10]
jmp 0x14000cbd2
movzx edi, ax
or edi, 0x80070000
jmp 0x14000cc68
mov rcx, qword [rcx + 0x10]
lea r8, [0x14009a8c8]
mov edx, 0xd
mov r9d, edi
call fcn.140024908
nop
jmp 0x14000ccf5