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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x1400b0020], 0
je 0x140013fb6
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]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14001404c
mov rax, qword [0x1400ae2f8]
lea rcx, [0x1400ae2f8]
cmp rax, rcx
je 0x140014020
test byte [rax + 0x44], 0x20
je 0x140014020
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400ae2f8]
lea edx, [rbx + 0x15]
mov r9d, eax
lea r8, [0x140094120]
mov rcx, qword [rcx + 0x38]
call fcn.140027dc8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
xor r8d, r8d
lea rcx, [0x140093a08]
mov edx, eax
call fcn.14004a038
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]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test rdi, rdi
je 0x140014093
mov rcx, rdi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
test eax, eax
jne 0x140014093
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, eax
mov ecx, 0x69
call fcn.140049c30
or edx, 0xffffffff
call fcn.1400454b0
nop
jmp 0x140001ee7
Function at 0x1400079b0
Capabilities:
Delete file
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1400165d3
cmp dword [rcx], 0x6060
jne 0x1400165d3
mov rax, qword [0x1400b0018]
cmp qword [rcx + 8], rax
jne 0x14001654a
mov rcx, qword [rcx + 0x10]
mov rax, qword [rax + 0x2b0]
call qword [0x1400907e0]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rcx + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x1400165c9
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 0x1400165c9
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 0x14001659e
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 0x1400165ab
mov rcx, rdi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
mov r8, qword [rbx + 0x40]
xor edx, edx
mov rcx, qword [0x1400affe8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
and qword [rbx + 0x40], 0
mov eax, 1
jmp 0x1400079f4
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x1400079f4
Function at 0x14000a460
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 [0x1400ae768]
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 0x14000a5fb
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bp
jne 0x14000a4a2
inc rax
cmp rax, 0x207
jae 0x14000a5fb
mov ecx, 0x438
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rdi, rax
test rax, rax
je 0x14000a5fb
lea rcx, [rsp + 0x40]
call fcn.14000a790
lea r9, str.PrintersConnections
mov edx, 0x21c
sub r9, rdi
mov rcx, rdi
lea rax, [rdx + 0x7ffffde2]
test rax, rax
je 0x14000a50f
movzx eax, word [r9 + rcx]
test ax, ax
je 0x14000a50f
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14000a4ec
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 0x14000a5d9
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]
nop dword [rax + rax]
test eax, eax
jne 0x14000a5ca
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x140092bc0]
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]
nop dword [rax + rax]
test eax, eax
je 0x1400167a4
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [0x1400affe8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
call fcn.14000a630
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140011ad0
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 [0x1400b0018]
jmp 0x1400167cd
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14000a5b9
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400167ad
jmp 0x14000a5b9

Function at 0x14000a630
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx]
mov rbx, rcx
cmp rdx, 0xffffffffffffffff
je 0x14000a65d
test rdx, rdx
je 0x14000a65d
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_SetThreadToken]
nop dword [rax + rax]
test eax, eax
je 0x1400167d8
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14000ae24
mov ecx, 1
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
Function at 0x14000c110
Capabilities:
Delete file
Move file

Disassembly:
test rcx, rcx
je 0x14000c1aa
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x1400afd38]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rax, qword [rbx + 0x20]
test rax, rax
jne 0x140026536
or edx, 0xffffffff
mov rcx, rbx
call fcn.14000c1d0
lea rcx, [rbx + 0x18]
cmp qword [rcx], 0
jne 0x14000c1c3
lea rcx, [0x1400afd38]
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
jne 0x140026544
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x140026556
mov r8, qword [rbx + 0x48]
test r8, r8
jne 0x14000c1ac
mov rcx, qword [0x1400affe8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
add rsp, 0x20
pop rbx
ret
mov rcx, qword [0x1400affe8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
jmp 0x14000c18d
call fcn.140006f44
jmp 0x14000c156
and qword [rax + 8], 0
mov rax, qword [rax + 0x10]
jmp 0x14000c138
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
jmp 0x14000c177
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14002657c
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 [0x1400affe8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
and qword [rbx + 0x40], 0
jmp 0x14000c184
Function at 0x14000c470
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 [0x1400ae768]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdx, rcx
lea rcx, [rsp + 0x58]
call fcn.14000d6e4
lea rdx, str.Local_SettingsPrintersPropertyBags
lea rcx, [rsp + 0x58]
call fcn.14000d71c
test eax, eax
js 0x14000c500
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]
nop dword [rax + rax]
test eax, eax
je 0x140016c74
lea rcx, [rsp + 0x40]
call fcn.140011588
mov rdx, qword [rsp + 0x60]
call fcn.14000d8f4
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140011ad0
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, [0x1400a2560]
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
nop dword [rax + rax]
and qword [rsp + 0x50], 0
lea rcx, [rsp + 0x50]
mov rbx, rax
call fcn.1400645f8
mov qword [rsp + 0x50], rbx
test rbx, rbx
je 0x140016d3d
lea rdx, str.SplIsValidUserPropertyBag
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140016d3d
xor ebx, ebx
and qword [rsp + 0x38], 0
lea r9, [rsp + 0x48]
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 + 0x48], 0x104
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140016d3d
lea rcx, [rsp + 0x70]
mov rax, rdi
call qword [0x1400907e0]
test al, al
jne 0x140016d39
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteTreeW]
nop dword [rax + rax]
inc ebx
jmp 0x140016cd0
lea rcx, [rsp + 0x50]
call fcn.1400645f8
nop
jmp 0x14000c4f6
Function at 0x14000c65c
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 [0x1400ae768]
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 0x14000c861
mov ebx, 0x208
lea r9, str.winspool
mov edx, ebx
lea r8, [0x140092c58]
lea rcx, [rsp + 0x40]
call fcn.14000c86c
or rdi, 0xffffffffffffffff
lea rax, [rsp + 0x40]
mov rcx, rdi
inc rcx
cmp word [rax + rcx*2], r14w
jne 0x14000c6d1
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 0x140016d8a
mov eax, dword [rsi]
lea r9, [0x140092c50]
lea r8, str._s_.2d:
mov dword [rsp + 0x20], eax
call fcn.14000c86c
inc dword [rsi]
cmp dword [rsi], 0x63
ja 0x140016d82
call sym.spoolsv.exe_PrvRevertToPrinterSelf
mov rcx, r14
mov rsi, rax
call fcn.14000ca3c
xor r14d, r14d
test rsi, rsi
je 0x14000c73b
mov rcx, rsi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
lea rcx, [rsp + 0x40]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r14w
jne 0x14000c743
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]
nop dword [rax + rax]
lea r8, [rsp + 0x30]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.14000c9f4
test eax, eax
js 0x14000c7ef
mov rax, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
lea rcx, [rcx + rax*2]
sub rbx, rax
je 0x14000c7e0
add rax, 0x7ffffdf6
lea rdx, str._15_45
add rax, rbx
sub rdx, rcx
test rax, rax
je 0x14000c7e0
movzx r8d, word [rdx + rcx]
test r8w, r8w
je 0x14000c7e0
mov word [rcx], r8w
dec rax
add rcx, 2
sub rbx, 1
jne 0x14000c7bf
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 0x14000c7f4
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]
nop dword [rax + rax]
mov eax, 1
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.140011ad0
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 0x14000c836
and dword [rsi], 0
jmp 0x14000c71b
mov r8, r15
call fcn.14000a710
lea rcx, [rsp + 0x40]
mov edx, 0x2c
lea rcx, [rcx + r12*2]
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
xor r14d, r14d
test rax, rax
je 0x14000c73b
mov word [rax], r14w
jmp 0x14000c73b
Function at 0x14000d110
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 [0x1400b0030]
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.140002a48
mov rax, r12
neg rax
mov eax, 0x80070057
sbb edi, edi
not edi
and edi, eax
test r12, r12
je 0x14000d1a8
and dword [r12], esi
lea rcx, [r15 + 0x38]
test rcx, rcx
je 0x1400188c8
xor eax, eax
lea edi, [rsi + 1]
add rcx, 8
je 0x14000d18a
mov rax, qword [rcx + 0x10]
test rcx, rcx
je 0x14000d1a8
cmp rax, rcx
je 0x14000d1a8
mov edx, ebp
sub edx, dword [rax + 0x24]
js 0x14000d1a8
test edx, edx
jne 0x1400188cf
mov rsi, rax
xor edi, edi
test edi, edi
jne 0x14000d2e2
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.14000e06c
mov r14, qword [rsp + 0x70]
mov edi, eax
test edi, edi
js 0x14000d27f
mov rbp, qword [r14 + 0x30]
mov rcx, r13
mov rdx, rbp
call fcn.14000d820
mov edi, eax
test eax, eax
js 0x14000d25c
and qword [rsp + 0x70], 0
lea r8, [0x140093370]
mov rax, qword [rsi + 0x38]
lea r9, str.SoftwareMicrosoftWindows_NTCurrentVersionWindowsSessionDefaultDevices
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov qword [rsp + 0x20], r8
call fcn.14000dae4
mov edi, eax
test eax, eax
jg 0x1400188d8
test edi, edi
js 0x14000d25c
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]
nop dword [rax + rax]
mov r8, qword [rsp + 0x70]
xor edx, edx
mov rcx, qword [0x1400affe8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
cmp dword [r14 + 0x24], 0
jne 0x14000d27f
dec dword [r15 + 0x30]
mov edx, 1
mov rax, qword [r14]
mov rcx, r14
mov dword [r12], edx
mov rax, qword [rax]
call qword [0x1400907e0]
test rsi, rsi
je 0x14000d298
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
mov rax, qword [rax]
call qword [0x1400907e0]
test edi, edi
jns 0x14000d2b9
mov rcx, qword [0x1400ae2f8]
lea rax, [0x1400ae2f8]
cmp rcx, rax
je 0x14000d2b9
test byte [rcx + 0x44], 0x20
jne 0x1400188e6
mov rcx, rbx
call fcn.140002a80
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 0x14000d27f
mov edi, 0x80004005
jmp 0x14000d1c4
mov edi, eax
jmp 0x14000d1a8
mov rax, qword [rax + 0x10]
jmp 0x14000d18a
movzx edi, ax
or edi, 0x80070000
jmp 0x14000d220
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400a2df8]
mov edx, 0xd
mov r9d, edi
call fcn.140027dc8
nop
jmp 0x14000d2b9
Function at 0x14000f7f0
Capabilities:
Get token privileges

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400ae768]
xor rax, rsp
mov qword [rbp - 8], rax
and dword [rbp - 0x1c], 0
lea rsi, [rcx + 8]
and qword [rbp - 0x18], 0
lea rdx, str.Printers
mov rbx, rcx
mov rcx, qword [rsi]
call fcn.14000fcd0
and qword [rsp + 0x40], 0
lea rax, [rbp - 0x18]
mov rcx, qword [rsi]
lea rdx, str.Printers
mov qword [rsp + 0x38], rax
xor r9d, r9d
and qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
and dword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
mov dword [rbp - 0x20], eax
test eax, eax
jne 0x140025ec6
mov rcx, qword [rbp - 0x18]
call fcn.1400100bc
mov dword [rbp - 0x20], eax
test eax, eax
jne 0x140025ec6
lea rcx, [rbp - 0x18]
call fcn.140011588
cmp dword [0x1400b0020], 0
je 0x140025f05
mov rcx, qword [rbx]
call fcn.14000ce58
test eax, eax
jne 0x14000f977
mov rdx, rsi
xor ecx, ecx
call fcn.14000fa48
test eax, eax
je 0x14000f924
mov edx, 1
mov rcx, rsi
call fcn.14000c538
mov rcx, qword [rbx]
lea rax, [0x1400afd34]
lea rdx, [rbp - 0x18]
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x18], 0x67727473
call fcn.14000d2f4
test eax, eax
js 0x140025f22
lea rdx, str._Classes
lea rcx, [rbp - 0x18]
call fcn.14000d71c
test eax, eax
js 0x140025f22
mov rdi, qword [rbp - 0x10]
mov rcx, rdi
call fcn.14000c470
mov rdx, rdi
call fcn.14000d8f4
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_1_0.dll_GetTokenInformation]
nop dword [rax + rax]
test eax, eax
je 0x14000f977
mov r8d, dword [rbp - 0x1c]
mov edx, 1
mov ecx, edx
mov r9, rbx
call fcn.14000b9bc
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140025f2b
mov rcx, rsi
call fcn.14000f9cc
mov rcx, qword [0x1400affe8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140011ad0
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 rcx, qword [0x1400ae2f8]
lea rdx, [0x1400ae2f8]
cmp rcx, rdx
je 0x14000f891
test byte [rcx + 0x44], 0x20
je 0x14000f891
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400a2d80]
mov edx, 0xd
mov r9d, eax
call fcn.140027dc8
nop
jmp 0x14000f891
mov edx, 0x1d4c0
call fcn.1400454b0
test eax, eax
jns 0x14000f8a7
call sym.spoolsv.exe_PrvWaitForSpoolerInitialization
nop
jmp 0x14000f8a7
mov rdi, qword [rbp - 0x10]
jmp 0x14000f91c
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
jmp 0x14000f983
Function at 0x14000fcd0
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
mov rbx, rcx
xor edi, edi
lea rcx, [rbp - 0x50]
mov qword [rbp + 0x30], rdi
mov rsi, rdx
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea rax, [rbp - 0x50]
mov dword [rbp - 0x30], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x20], rax
lea r9d, [rdi + 8]
mov qword [rbp - 0x28], rbx
lea r8, [rbp - 0x30]
mov dword [rbp - 0x18], 0x140
mov edx, 0x2000000
lea rcx, [rbp + 0x30]
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKeyEx]
nop dword [rax + rax]
test eax, eax
js 0x14000fd97
lea rdx, str.SymbolicLinkValue
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea r8d, [rdi + 2]
xor r9d, r9d
mov dword [rsp + 0x20], edi
lea rdx, [rbp - 0x40]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
cmp eax, 0xc0000034
jne 0x14000fdad
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov rbx, qword [rsp + 0xa8]
mov eax, edi
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
cmp dword [rbp + 0x20], edi
jbe 0x14000fd87
jmp 0x140025fe0
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
nop dword [rax + rax]
test eax, eax
mov ecx, 1
cmovns edi, ecx
mov rcx, qword [0x1400ae2f8]
lea rax, [0x1400ae2f8]
cmp rcx, rax
je 0x14000fd87
test byte [rcx + 0x44], 0x20
je 0x14000fd87
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400a2d80]
mov edx, 0xa
mov r9, rsi
call fcn.1400374d0
nop
jmp 0x14000fd87
Function at 0x140010300
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ecx, 0x440
xor edi, edi
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rbx, rax
test rax, rax
je 0x140010393
mov ecx, 0x2001f
call sym.spoolsv.exe_PrvSplGetClientUserHandle
mov qword [rbx + 8], rax
test rax, rax
je 0x140026999
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
nop dword [rax + rax]
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_0.dll_OpenThreadToken]
nop dword [rax + rax]
test eax, eax
je 0x140026990
test rbx, rbx
je 0x140010380
cmp dword [0x1400b0020], edi
je 0x1400269b9
mov rcx, rbx
call fcn.14000f7f0
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
jmp 0x140010382
lea rcx, [rbx + 8]
call fcn.14000f9cc
mov rcx, qword [0x1400affe8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov rbx, rdi
jmp 0x140010367
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [fcn.14000f7f0]
xor edx, edx
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
nop dword [rax + rax]
test rax, rax
je 0x1400269fb
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
jmp 0x140010380
mov rcx, qword [rbx]
mov edi, 1
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
lea rcx, [rbx + 8]
call fcn.14000f9cc
mov rcx, qword [0x1400affe8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
nop
jmp 0x140010380

Function at 0x140011d5c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140011da8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140011da0
cmp dword [rcx + 0x3c], edx
jl 0x140011da0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140011da0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140011da8
mov rax, rdx
add rsp, 0x18
ret