joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001f09c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140017d18
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001f126
cmp byte [rbp - 0x21], r15b
je 0x14001f121
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001f15c
call fcn.1400152ac
test eax, eax
jne 0x14001f148
cmp byte [rbp - 0x21], r15b
je 0x14001f140
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001f15c
cmp byte [rbp - 0x21], r15b
je 0x14001f159
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400172f4
test eax, eax
jne 0x14001f1fc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140017d18
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001f19b
cmp byte [rbp - 0x21], r15b
je 0x14001f1d0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001f1d0
call fcn.1400152ac
test eax, eax
jne 0x14001f1bc
cmp byte [rbp - 0x21], r15b
je 0x14001f1b5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001f1d0
cmp byte [rbp - 0x21], r15b
je 0x14001f1cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400172f4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001f1fc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001f1ff
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001f20d
mov rcx, rdi
call fcn.140015058
cmp byte [rbp + 0x3f], r15b
je 0x14001f21c
mov rcx, qword [rbp + 0x27]
call fcn.140015058
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14001f38c
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140013628
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140013628
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14001f4dc
cmp rax, 0xffffffffffffffff
je 0x14001f4dc
xor edi, edi
test rbp, rbp
jle 0x14001f487
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140014fe0
mov rbx, rax
test rax, rax
jne 0x14001f414
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14001f47d
mov edx, 0x8000
mov ecx, r14d
call fcn.1400123c0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001c078
cmp eax, 0xffffffff
je 0x14001f45d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14001f424
mov edx, r15d
mov ecx, r14d
call fcn.1400123c0
jmp 0x14001f47d
cmp byte [rsi + 0x38], dil
je 0x14001f474
cmp dword [rsi + 0x34], 5
jne 0x14001f474
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14001f47d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140015058
jmp 0x14001f4f0
jns 0x14001f4f0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140013628
cmp rax, 0xffffffffffffffff
jne 0x14001f4a8
cmp byte [rsi + 0x30], dil
je 0x14001f4f0
mov edi, dword [rsi + 0x2c]
jmp 0x14001f4f0
mov ecx, r14d
call fcn.1400197bc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14001f4f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14001f4f0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14001f4e9
mov eax, dword [rsi + 0x2c]
jmp 0x14001f4ee
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140013628
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400215f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140021618
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140021618
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x141bb08e0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x141bb08ea
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x141bb0913
pop rbp
sub rbp, 0x33
sub rbp, 0x1bb08e0
sub rsp, 0x20
jmp 0x141bb0932
mov rax, 0x1bb08e0
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xfffffffff86b3ba3
xor byte [rax], dl
inc rax
dec rcx
jne 0x141bb0951
jmp 0x141bb0968
jmp 0x141bb0994
movabs dword [0xbf1bebf3f34ba2eb], eax
mov gs, esi
movabs dword [0x78671aeba3a3a3a3], eax
invalid
Function at 0x140001ed0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x1400b0020], 0
je 0x1400142e6
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 0x14001437c
mov rax, qword [0x1400ae2f8]
lea rcx, [0x1400ae2f8]
cmp rax, rcx
je 0x140014350
test byte [rax + 0x44], 0x20
je 0x140014350
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, [0x140094180]
mov rcx, qword [rcx + 0x38]
call fcn.1400280f8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
xor r8d, r8d
lea rcx, [0x1400939f8]
mov edx, eax
call fcn.14004a538
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 0x1400143c3
mov rcx, rdi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
test eax, eax
jne 0x1400143c3
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.14004a130
or edx, 0xffffffff
call fcn.1400459b0
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 0x140016903
cmp dword [rcx], 0x6060
jne 0x140016903
mov rax, qword [0x1400b0018]
cmp qword [rcx + 8], rax
jne 0x14001687a
mov rcx, qword [rcx + 0x10]
mov rax, qword [rax + 0x2b0]
call qword [0x1400907d0]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rcx + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x1400168f9
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 0x1400168f9
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 0x1400168ce
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 0x1400168db
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, [0x140092bb0]
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 0x140016ad4
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 0x140016afd
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 0x140016add
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 0x140016b08
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 0x140026866
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 0x140026874
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x140026886
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 0x1400268ac
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 0x140016fa4
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, [0x1400a25d0]
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.140064af8
mov qword [rsp + 0x50], rbx
test rbx, rbx
je 0x14001706d
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 0x14001706d
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 0x14001706d
lea rcx, [rsp + 0x70]
mov rax, rdi
call qword [0x1400907d0]
test al, al
jne 0x140017069
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 0x140017000
lea rcx, [rsp + 0x50]
call fcn.140064af8
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, [0x140092c48]
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 0x1400170ba
mov eax, dword [rsi]
lea r9, [0x140092c40]
lea r8, str._s_.2d:
mov dword [rsp + 0x20], eax
call fcn.14000c86c
inc dword [rsi]
cmp dword [rsi], 0x63
ja 0x1400170b2
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 0x14000ca3c
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]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x14000cab8
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]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000cace
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
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 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 0x140018bf8
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 0x140018bff
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, [0x140093360]
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 0x140018c08
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 [0x1400907d0]
test rsi, rsi
je 0x14000d298
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
mov rax, qword [rax]
call qword [0x1400907d0]
test edi, edi
jns 0x14000d2b9
mov rcx, qword [0x1400ae2f8]
lea rax, [0x1400ae2f8]
cmp rcx, rax
je 0x14000d2b9
test byte [rcx + 0x44], 0x20
jne 0x140018c16
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, [0x1400a2e68]
mov edx, 0xd
mov r9d, edi
call fcn.1400280f8
nop
jmp 0x14000d2b9
Function at 0x14000ddd4
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
and qword [r11 - 0x10], 0
lea r9, [r11 + 8]
and qword [r11 - 0x18], 0
mov rbx, rcx
mov eax, dword [rcx + 0x14]
xor edx, edx
and dword [rcx + 0x10], 0
mov r8, qword [rcx + 8]
and qword [r11 - 0x20], 0
mov rcx, qword [rcx]
and qword [r11 - 0x28], 0
mov dword [rsp + 0x50], eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
jle 0x14000de23
movzx eax, ax
or eax, 0x80070000
mov dword [rbx + 0x18], eax
add rsp, 0x40
pop rbx
ret