Function at 0x140006a60
Capabilities:
Check if file exists
Delete file
Delete registry value
Get thread local storage value
Get token membership
Move file
Query or enumerate registry value
Terminate process

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r15
lea rbp, [rsp - 0x298]
sub rsp, 0x398
mov rax, qword [0x1400c87d8]
xor rax, rsp
mov qword [rbp + 0x270], rax
xor edi, edi
mov qword [rsp + 0x78], r9
mov qword [rsp + 0x68], r8
mov r12d, 0x7b
mov qword [rbp + 0x30], rdx
mov rsi, rcx
mov qword [rbp - 0x48], rcx
mov r15, rcx
mov dword [rsp + 0x60], r12d
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x60], rdi
mov dword [rbp - 0x80], edi
mov qword [rbp - 0x58], rdi
test rcx, rcx
je 0x140006afc
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], di
jne 0x140006ad0
inc rax
cmp rax, 0x21b
jbe 0x140006afc
mov ecx, 0x709
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x140007f7f
cmp dword [0x1400ca10c], edi
mov ebx, 2
mov qword [rsp + 0x390], r13
jne 0x140006bfd
call sym.spoolsv.exe_PrvRevertToPrinterSelf
lea r8, str.RouterPreInitEvent
xor edx, edx
mov ecx, ebx
mov rdi, rax
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 0x140006baa
mov rax, qword [0x1400c82a8]
lea r13, [0x1400c82a8]
cmp rax, r13
je 0x140006b7e
test byte [rax + 0x44], 0x20
je 0x140006b7e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400c82a8]
lea edx, [rbx + 0x15]
mov r9d, eax
lea r8, [0x1400ab920]
mov rcx, qword [rcx + 0x38]
call fcn.140016c88
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
xor r8d, r8d
lea rcx, [0x1400ab3b8]
mov edx, eax
call fcn.14004a498
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 0x140006bf1
mov rcx, rdi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
test eax, eax
jne 0x140006bf1
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.14004a098
mov edx, 0xffffffff
call fcn.140050c24
xor edi, edi
mov qword [rsp + 0x388], r14
test rsi, rsi
je 0x140006c46
lea rdx, str._NoCache
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_wcsstr]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140006c46
mov rcx, rsi
call sym.spoolsv.exe_PrvDllAllocSplStr
mov r15, rax
test rax, rax
je 0x140006ccc
sub rbx, rsi
sar rbx, 1
mov word [rax + rbx*2], di
mov rcx, qword [0x1400ca110]
mov edx, 8
lea r8d, [rdx + 0x60]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
mov r14, rax
test rax, rax
jne 0x140006cd3
lea ecx, [rax + 8]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400c82a8]
lea r13, [0x1400c82a8]
cmp rcx, r13
je 0x140006caa
test byte [rcx + 0x44], 0x20
je 0x140006caa
mov rcx, qword [rcx + 0x38]
lea edx, [r14 + 0xa]
lea r9d, [r14 + 0x68]
lea r8, [0x1400ab930]
call fcn.140016ccc
cmp r15, rsi
je 0x140006ccc
test r15, r15
je 0x140006ccc
mov rcx, qword [0x1400ca110]
mov r8, r15
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
xor eax, eax
jmp 0x140007f6f
mov dword [rax], 0x6060
mov qword [rax + 0x38], 0xffffffffffffffff
mov qword [rax + 0x40], rdi
mov qword [rax + 0x50], 0
mov dword [rax + 0x58], edi
mov qword [rax + 0x60], rdi
test r15, r15
je 0x140006dca
mov rax, 0xffffffffffffffff
nop dword [rax]
nop dword [rax + rax]
cmp word [r15 + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140006d10
mov rcx, qword [0x1400ca110]
lea edi, [rax*2 + 2]
mov r8d, edi
mov edx, 8
mov esi, edi
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x140006db8
lea ecx, [rax + 8]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400c82a8]
lea r13, [0x1400c82a8]
cmp rcx, r13
je 0x140006d87
test byte [rcx + 0x44], 0x20
je 0x140006d87
mov rcx, qword [rcx + 0x38]
lea edx, [rbx + 0xa]
mov r9d, edi
lea r8, [0x1400ab930]
call fcn.140016ccc
mov qword [r14 + 0x48], rbx
cmp r15, qword [rbp - 0x48]
je 0x140006da9
mov rcx, qword [0x1400ca110]
mov r8, r15
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rcx, r14
call fcn.140051e54
xor eax, eax
jmp 0x140007f6f
mov r8, rsi
mov rdx, r15
mov rcx, rbx
call sub.msvcrt.dll_memcpy
mov qword [r14 + 0x48], rbx
mov rbx, qword [rsp + 0x68]
lea r13, [0x1400c82a8]
test rbx, rbx
je 0x140006de6
cmp qword [rbx + 8], 0
jne 0x140006eb8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [0x1400c9474]
mov edi, eax
cmp ecx, 0xffffffff
jne 0x140006e03
xor eax, eax
jmp 0x140006e0f
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
nop dword [rax + rax]
lea rdx, [rbp - 0x68]
mov rcx, rax
call qword [sym.imp.RPCRT4.dll_I_RpcBindingInqTransportType]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x140006e9b
cmp eax, 0x6bd
je 0x140006e83
mov esi, 1
test eax, eax
jle 0x140006e41
movzx ebx, ax
or ebx, 0x80070000
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
test ebx, ebx
jns 0x140007049
mov rcx, qword [0x1400c82a8]
cmp rcx, r13
je 0x140006eb3
test byte [rcx + 0x44], 0x20
je 0x140006eb3
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400ab970]
mov edx, 0x12
mov r9d, ebx
call fcn.140016ccc
jmp 0x140006eb3
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov esi, 1
jmp 0x14000704f
cmp dword [rbp - 0x68], 4
je 0x140006f49
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x68]
mov esi, dword [rbp + 0x2f0]
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
cmp esi, 4
jne 0x14000742c
mov rcx, qword [rsp + 0x78]
lea r8, [rbp - 0x20]
mov eax, dword [rcx + 0x30]
mov dword [r14 + 0x54], eax
mov eax, dword [rcx + 0x34]
mov dword [r14 + 0x58], eax
mov eax, dword [rcx]
mov dword [rbp - 0x1c], eax
mov rax, qword [rcx + 8]
mov qword [rbp - 0x10], rax
mov rax, qword [rcx + 0x10]
mov qword [rbp - 8], rax
mov eax, dword [rcx + 0x18]
mov dword [rbp], eax
mov eax, dword [rcx + 0x1c]
mov dword [rbp + 4], eax
mov eax, dword [rcx + 0x20]
mov dword [rbp + 8], eax
movzx eax, word [rcx + 0x24]
mov word [rbp + 0xc], ax
mov rax, qword [rcx + 0x28]
mov qword [rbp + 0x10], rax
mov dword [rbp - 0x20], 0x38
mov dword [rbp - 0x18], 0x28
mov eax, dword [r14 + 0x54]
mov dword [rbp + 0x18], eax
mov eax, dword [r14 + 0x58]
mov dword [rbp + 0x1c], eax
jmp 0x1400074ac
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
nop dword [rax + rax]
mov esi, 1
lea r9, [rbp + 0x20]
mov rcx, rax
mov r8d, esi
lea edx, [rsi + 7]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
nop dword [rax + rax]
test eax, eax
je 0x140007027
xor ebx, ebx
mov dword [rbp + 0x50], 0
lea rax, [rbp - 0x28]
mov word [rbp + 0x54], 0x500
mov qword [rsp + 0x50], rax
lea r8d, [rsi + 1]
mov dword [rsp + 0x48], ebx
lea rcx, [rbp + 0x50]
mov dword [rsp + 0x40], ebx
xor r9d, r9d
mov dword [rsp + 0x38], ebx
movzx edx, sil
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov qword [rbp - 0x28], rbx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
nop dword [rax + rax]
test eax, eax
je 0x14000700b
mov rdx, qword [rbp - 0x28]
lea r8, [rbp - 0x78]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
je 0x140006ff2
cmp dword [rbp - 0x78], ebx
setne bl
jmp 0x140006ff9
call fcn.14000aaf0
mov ebx, eax
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
nop dword [rax + rax]
jmp 0x140007012
call fcn.14000aaf0
mov ebx, eax
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x140006e41
call fcn.14000aaf0
mov ebx, eax
cmp eax, 0x800703f0
jne 0x140006e41
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
jmp 0x14000704f
jne 0x140006eb3
mov rcx, r15
call fcn.140007fb0
xor edi, edi
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x58], rdi
test r15, r15
jne 0x14000706e
lea ecx, [rdi + 6]
jmp 0x140006ea7
lea rdx, [rsp + 0x70]
mov qword [rbp - 0x40], 0xffffffffffffffff
lea rcx, [rbp - 0x40]
mov byte [rbp - 0x38], dil
mov dword [rsp + 0x70], edi
call fcn.140008b50
test eax, eax
je 0x14000709e
movzx eax, byte [rbp - 0x38]
cmp dword [rsp + 0x70], edi
cmovne eax, esi
mov byte [rbp - 0x38], al
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x30], rdi
mov ecx, 0x2001f
mov rsi, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenCurrentUser]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14000711b
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
cmp ebx, 5
je 0x1400070fd
mov rcx, qword [0x1400c82a8]
cmp rcx, r13
je 0x1400070fd
test byte [rcx + 0x44], 0x20
je 0x1400070fd
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400ab970]
mov edx, 0xf
mov r9d, ebx
call fcn.140016c88
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140007112
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rbx, rdi
mov qword [rbp - 0x30], rbx
jmp 0x14000711f
mov rbx, qword [rbp - 0x30]
test rbx, rbx
jne 0x14000715a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 5
jne 0x140007147
mov ecx, 0x20019
call sym.spoolsv.exe_PrvSplGetClientUserHandle
mov rbx, rax
test rax, rax
jne 0x14000715a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
jmp 0x1400071df
cmp word [r15], 0x5c
jne 0x140007189
cmp word [r15 + 2], 0x5c
jne 0x140007189
lea r8, [rbp - 0x50]
mov rdx, r15
mov rcx, rbx
call fcn.14007ac74
mov edi, eax
test eax, eax
jne 0x140007187
lea rsi, str.DevMode
jmp 0x1400071d0
xor edi, edi
lea rax, [rbp + 0x28]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, [0x1400abab0]
lea rax, [rbp - 0x50]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, rbx
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
mov edi, eax
cmove rsi, r15
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test edi, edi
je 0x140007204
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140007343
xor ecx, ecx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], rcx
xor r9d, r9d
mov qword [rsp + 0x50], rcx
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor edx, edx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140007333
mov ecx, dword [rsp + 0x70]
cmp ecx, 0x48
jb 0x140007333
call sym.spoolsv.exe_PrvDllAllocSplMem
mov qword [rbp - 0x58], rax
mov rdi, rax
test rax, rax
jne 0x140007286
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140007333
mov rcx, qword [rbp - 0x50]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14000730b
mov r8d, dword [rsp + 0x70]
mov r9d, 0x8007000d
cmp r8, 0x4c
jb 0x1400072e0
movzx ecx, word [rdi + 0x46]
movzx eax, word [rdi + 0x44]
add rcx, rax
cmp r8, rcx
jb 0x1400072e0
mov rcx, rdi
call fcn.14004cb84
mov r9d, eax
mov ecx, r9d
call fcn.140026128
mov ebx, eax
test eax, eax
je 0x14000732b
mov rcx, qword [rbp - 0x50]
mov rdx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, eax
mov eax, 2
cmove ebx, eax
mov rcx, qword [0x1400ca110]
mov r8, rdi
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
xor eax, eax
mov qword [rbp - 0x58], rax
jmp 0x14000732d
xor eax, eax
cmp ebx, 2
cmove ebx, eax
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rdi, qword [rbp - 0x58]
test ebx, ebx
je 0x140007396
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
cmp ebx, 5
je 0x140007388
mov rcx, qword [0x1400c82a8]
cmp rcx, r13
je 0x140007388
test byte [rcx + 0x44], 0x20
je 0x140007388
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400abb10]
mov edx, 0xf
mov r9d, ebx
call fcn.140016c88
lea rcx, [rbp - 0x40]
call fcn.1400828b4
jmp 0x140006eb3
mov rbx, qword [rbp - 0x40]
mov rsi, rbx
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400073d5
xor eax, eax
mov edx, eax
cmp rbx, 0xffffffffffffffff
cmovne rdx, rbx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_SetThreadToken]
nop dword [rax + rax]
test eax, eax
jne 0x1400073d5
lea ecx, [rax + 1]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
cmp rsi, 0xffffffffffffffff
je 0x1400073ea
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov qword [rbp - 0x58], rdi
test rdi, rdi
je 0x140006eb3
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000740d
mov rax, qword [rcx]
mov qword [rbp + 0x38], rax
mov eax, dword [rcx + 0x10]
jmp 0x140007413
xor eax, eax
mov qword [rbp + 0x38], rax
lea rbx, [rbp + 0x38]
mov dword [rbp + 0x48], eax
mov qword [rsp + 0x68], rbx
mov qword [rbp + 0x40], rdi
mov qword [rbp - 0x58], rdi
jmp 0x140006eb8
cmp esi, 3
jne 0x140007482
mov rcx, qword [rsp + 0x78]
lea r8, [rbp - 0x20]
mov dword [rbp - 0x20], 0x38
mov dword [rbp - 0x18], 0x28
mov eax, dword [rcx + 4]
mov dword [rbp - 0x1c], eax
mov rax, qword [rcx + 0x10]
mov qword [rbp - 0x10], rax
mov rax, qword [rcx + 0x18]
mov qword [rbp - 8], rax
mov eax, dword [rcx + 0x20]
mov dword [rbp], eax
mov eax, dword [rcx + 0x24]
mov dword [rbp + 4], eax
mov eax, dword [rcx + 0x28]
mov dword [rbp + 8], eax
movzx eax, word [rcx + 0x2c]
mov word [rbp + 0xc], ax
mov rax, qword [rcx + 0x30]
mov qword [rbp + 0x10], rax
jmp 0x1400074ac
lea rcx, [0x1400c9f48]
call fcn.14000fd54
mov r8, qword [rsp + 0x78]
test al, al
je 0x1400074b1
cmp esi, 0x64
jne 0x1400074b1
mov eax, dword [r8 + 0x38]
mov dword [r14 + 0x54], eax
mov eax, dword [r8 + 0x3c]
mov dword [r14 + 0x58], eax
mov qword [rsp + 0x78], r8
cmp dword [rbp + 0x2f8], 0
je 0x14000754c
mov rdi, qword [0x1400ca100]
mov ecx, esi
mov rdx, rdi
call fcn.14000f8e4
movabs r10, 0xf5c10edf10538170
mov dword [rsp + 0x20], eax
lea rdx, [rbp - 0x60]
mov rax, qword [rdi + 0x1e8]
mov r9, r8
mov r8, rbx
mov rcx, r15
call qword [0x1400a9400]
mov ebx, eax
cmp eax, 1
je 0x140007d72
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
test eax, eax
je 0x140007543
add eax, 0xffffffce
cmp eax, 0x25
ja 0x14000752c
movabs rdx, 0x200002000b
bt rdx, rax
jb 0x140007543
lea eax, [rcx - 0x7b]
cmp eax, 1
jbe 0x140007543
cmp ecx, 0x4b0
cmovne r12d, ecx
mov dword [rsp + 0x60], r12d
cmp ebx, 2
je 0x140007c42
lea rcx, [0x1400c9ea8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
test r15, r15
jne 0x140007626
lea rcx, [0x1400c9ea8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
xor eax, eax
mov qword [rbp + 0x50], rax
mov rax, qword [0x1400ca100]
mov rdi, qword [rax]
test rdi, rdi
je 0x140007c42
mov rax, qword [rbp - 0x70]
nop dword [rax + rax]
cmp rdi, rax
je 0x140007d5b
mov rdx, rdi
mov ecx, esi
call fcn.14000f8e4
mov rcx, qword [rdi + 8]
lea rdx, str.win32spl.dll
mov ebx, eax
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
mov rsi, qword [rbp - 0x48]
test eax, eax
cmovne rsi, r15
movabs r10, 0xf5c10edf10538170
mov r9, qword [rsp + 0x78]
lea rdx, [rbp - 0x60]
mov r8, qword [rsp + 0x68]
mov rcx, rsi
mov rax, qword [rdi + 0x1e8]
mov dword [rsp + 0x20], ebx
call qword [0x1400a9400]
mov ebx, eax
test eax, eax
jne 0x140007c95
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x32
je 0x140007c9a
jmp 0x140007d07
mov rcx, qword [0x1400c82a8]
cmp rcx, r13
je 0x140007657
test byte [rcx + 0x44], 0x80
je 0x140007657
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400abb30]
mov edx, 0xd
mov r9, r15
call fcn.14003304c
mov rcx, qword [0x1400c82a8]
mov edx, dword [0x1400ca158]
test edx, edx
jne 0x1400076a1
cmp rcx, r13
je 0x140007681
test byte [rcx + 0x44], 0x80
je 0x140007681
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400abb30]
mov edx, 0xe
call fcn.140016c5c
lea rcx, [0x1400c9ea8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
xor ecx, ecx
mov qword [rbp + 0x50], rcx
mov edi, ecx
jmp 0x140007733
xor edi, edi
mov ebx, edi
test edx, edx
je 0x1400076fc
nop dword [rax]
mov eax, ebx
lea rcx, [rax + rax*4]
mov rax, qword [0x1400ca150]
lea rdi, [rcx*8]
cmp dword [rdi + rax + 8], 0
je 0x1400076ed
mov rcx, qword [rdi + rax]
mov rdx, r15
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x1400077cd
mov edx, dword [0x1400ca158]
inc ebx
cmp ebx, edx
jb 0x1400076b0
mov rcx, qword [0x1400c82a8]
xor edi, edi
cmp rcx, r13
je 0x14000771c
test byte [rcx + 0x44], 0x80
je 0x14000771c
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400abb30]
mov edx, 0x10
call fcn.140016c5c
lea rcx, [0x1400c9ea8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov qword [rbp + 0x50], rdi
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [r15 + rax*2], 0
jne 0x140007740
inc rax
mov ebx, 0x207
cmp rax, rbx
jae 0x140007baf
mov rcx, qword [0x1400ca110]
mov edx, 8
mov r8d, 0x438
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x14000791c
lea ecx, [rax + 8]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400c82a8]
cmp rcx, r13
je 0x140007ba9
test byte [rcx + 0x44], 0x20
je 0x140007ba9
mov rcx, qword [rcx + 0x38]
lea edx, [rsi + 0xa]
mov r9d, 0x438
lea r8, [0x1400ab930]
call fcn.140016ccc
jmp 0x140007ba9
mov rcx, qword [0x1400ca150]
add rcx, 0x18
add rcx, rdi
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTime]
nop dword [rax + rax]
mov rcx, qword [0x1400c82a8]
cmp rcx, r13
je 0x140007811
test byte [rcx + 0x44], 0x80
je 0x140007811
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400abb30]
mov edx, 0xf
mov r9d, ebx
call fcn.140016ccc
mov rax, qword [0x1400ca150]
lea rcx, [0x1400c9ea8]
mov rdi, qword [rdi + rax + 0x10]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
test rdi, rdi
je 0x14000790f
mov rdx, rdi
mov ecx, esi
call fcn.14000f8e4
movabs r10, 0xf5c10edf10538170
mov r12, qword [rsp + 0x68]
lea rdx, [rbp - 0x60]
mov r9, qword [rsp + 0x78]
mov r8, r12
mov dword [rsp + 0x20], eax
mov rcx, r15
mov rax, qword [rdi + 0x1e8]
call qword [0x1400a9400]
mov ebx, eax
test eax, eax
jne 0x1400078a3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x32
je 0x1400078a8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
lea rdx, [rsp + 0x60]
call fcn.14005775c
jmp 0x1400078f2
cmp eax, 0x32
jne 0x1400078c8
movabs r10, 0x8ef42e383654d170
mov rax, qword [rdi + 0x20]
lea rdx, [rbp - 0x60]
mov r8, r12
mov rcx, r15
call qword [0x1400a9400]
mov ebx, eax
cmp ebx, 1
je 0x140007d72
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
lea rdx, [rsp + 0x60]
call fcn.14005775c
cmp ebx, 2
je 0x140007c3d
mov r12d, dword [rsp + 0x60]
xor ecx, ecx
mov qword [rbp - 0x70], rdi
mov edi, ecx
mov qword [rbp + 0x50], rcx
mov dword [rbp - 0x80], 1
jmp 0x140007733
xor ecx, ecx
mov edi, ecx
mov qword [rbp + 0x50], rcx
jmp 0x140007733
xor eax, eax
mov qword [rbp - 0x40], 0xffffffffffffffff
lea rdx, [rbp - 0x78]
mov dword [rbp - 0x78], eax
lea rcx, [rbp - 0x40]
mov byte [rbp - 0x38], 0
call fcn.140008b50
lea r8, str.PrintersConnections
mov edx, 0x21c
sub r8, rsi
mov rcx, rsi
nop dword [rax]
lea rax, [rdx + 0x7ffffde2]
test rax, rax
je 0x140007973
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140007973
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140007950
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
xor r9d, r9d
lea rcx, [rsi + 0x28]
mov word [rax], r9w
mov eax, 0x5c
mov word [rcx], ax
add rcx, 2
cmp rcx, r15
je 0x1400079d5
mov r8, r15
mov rdx, rcx
sub r8, rcx
lea rax, [rbx + 0x7ffffdf7]
test rax, rax
je 0x1400079c6
movzx eax, word [r8 + rdx]
test ax, ax
je 0x1400079c6
mov word [rdx], ax
add rdx, 2
sub rbx, 1
jne 0x1400079a3
test rbx, rbx
lea rax, [rdx - 2]
cmovne rax, rdx
mov word [rax], r9w
movzx eax, word [rcx]
test ax, ax
je 0x1400079f8
mov edx, 0x2c
cmp ax, 0x5c
jne 0x1400079eb
mov word [rcx], dx
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x1400079e2
lea rdx, [rbp - 0x78]
mov qword [rbp - 0x78], r9
mov ecx, 0x20019
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenCurrentUser]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x140007a73
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
cmp ebx, 5
je 0x140007a54
mov rcx, qword [0x1400c82a8]
cmp rcx, r13
je 0x140007a54
test byte [rcx + 0x44], 0x20
je 0x140007a54
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400ab970]
mov edx, 0xf
mov r9d, ebx
call fcn.140016c88
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140007a69
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
xor eax, eax
mov ebx, eax
mov qword [rbp - 0x78], rax
jmp 0x140007a77
mov rbx, qword [rbp - 0x78]
test rbx, rbx
je 0x140007b2f
lea rax, [rbp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140007b20
mov rcx, qword [rbp + 0x50]
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400ab9f8]
lea rax, [rbp + 0x60]
mov dword [rbp - 0x68], 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
jne 0x140007b10
mov rdi, qword [0x1400ca100]
test rdi, rdi
je 0x140007b10
nop
mov rcx, qword [rdi + 8]
lea rdx, [rbp + 0x60]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x140007b10
mov rdi, qword [rdi]
test rdi, rdi
jne 0x140007af0
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [0x1400ca110]
mov r8, rsi
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rbx, qword [rbp - 0x40]
mov rsi, rbx
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140007b94
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x70], rax
mov eax, dword [rbp - 0x80]
mov dword [rbp - 0x80], eax
xor eax, eax
mov edx, eax
cmp rbx, 0xffffffffffffffff
cmovne rdx, rbx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_SetThreadToken]
nop dword [rax + rax]
test eax, eax
jne 0x140007b94
lea ecx, [rax + 1]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
cmp rsi, 0xffffffffffffffff
je 0x140007ba9
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov esi, dword [rbp + 0x2f0]
cmp dword [rbp - 0x80], 0
mov rax, qword [rbp - 0x70]
je 0x140007bf0
cmp rdi, rax
je 0x140007bf0
lea rcx, [0x1400c9ea8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rcx, r15
call fcn.14007c4e8
lea rcx, [0x1400c9ea8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rax, qword [rbp - 0x70]
test rdi, rdi
je 0x140007581
cmp rdi, rax
je 0x140007c42
mov rdx, rdi
mov ecx, esi
call fcn.14000f8e4
mov r9, qword [rsp + 0x68]
lea r8, [rbp - 0x60]
mov dword [rsp + 0x30], eax
mov rdx, r15
mov rax, qword [rsp + 0x78]
mov rcx, rdi
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call fcn.140057644
cmp eax, 1
je 0x140007d72
mov r12d, dword [rsp + 0x60]
lea rcx, [0x1400c9ea8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rax, qword [r14 + 0x20]
xor edi, edi
test rax, rax
je 0x140007c6d
mov qword [rax + 8], rdi
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140007c60
mov rax, qword [0x1400c94f0]
mov dword [r14 + 0x30], edi
mov dword [r14 + 0x50], edi
cmp rax, r14
jne 0x140007d8f
mov rax, qword [r14 + 0x28]
mov qword [0x1400c94f0], rax
jmp 0x140007dbb
cmp eax, 0x32
jne 0x140007cbc
movabs r10, 0x8ef42e383654d170
mov r8, qword [rsp + 0x68]
lea rdx, [rbp - 0x60]
mov rax, qword [rdi + 0x20]
mov rcx, rsi
call qword [0x1400a9400]
mov ebx, eax
lea eax, [rbx - 1]
cmp eax, 1
ja 0x140007d07
lea rcx, [0x1400c9ea8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rcx, rsi
call fcn.14007c638
test rax, rax
jne 0x140007cef
mov rdx, rdi
mov rcx, rsi
call fcn.14007c348
lea rcx, [0x1400c9ea8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
cmp ebx, 1
je 0x140007d49
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
cmp r12d, 0x7b
jne 0x140007d49
test eax, eax
je 0x140007d49
add eax, 0xffffffce
cmp eax, 0x25
ja 0x140007d37
movabs rdx, 0x200002000b
bt rdx, rax
jb 0x140007d49
lea eax, [rcx - 0x7b]
cmp eax, 1
jbe 0x140007d49
cmp ecx, 0x4b0
cmovne r12d, ecx
sub ebx, 1
je 0x140007d72
cmp ebx, 1
je 0x140007c42
mov rax, qword [rbp - 0x70]
mov rdi, qword [rdi]
test rdi, rdi
je 0x140007c42
mov esi, dword [rbp + 0x2f0]
jmp 0x1400075a0
mov qword [r14 + 8], rdi
mov ebx, 1
mov rax, qword [rbp - 0x60]
mov qword [r14 + 0x10], rax
mov rax, qword [rbp + 0x30]
mov qword [rax], r14
jmp 0x140007f31
test rax, rax
je 0x140007dbb
nop dword [rax]
nop dword [rax + rax]
lea rcx, [rax + 0x28]
mov rax, qword [rax + 0x28]
cmp rax, r14
je 0x140007db4
test rax, rax
jne 0x140007da0
jmp 0x140007dbb
mov rax, qword [r14 + 0x28]
mov qword [rcx], rax
cmp qword [r14 + 0x18], 0
lea rcx, [r14 + 0x18]
je 0x140007dcb
call fcn.140051c44
lea rcx, [0x1400c9ea8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rcx, qword [r14 + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x140007df4
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [r14 + 0x40]
test rcx, rcx
je 0x140007e40
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140007e23
mov rcx, qword [r14 + 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 [r14 + 0x40]
xor edx, edx
mov rcx, qword [0x1400ca110]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov qword [r14 + 0x40], rdi
mov r8, qword [r14 + 0x48]
test r8, r8
je 0x140007e5e
mov rcx, qword [0x1400ca110]
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rcx, qword [0x1400ca110]
mov r8, r14
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
cmp r12d, 0x7b
mov ebx, 0x709
cmove r12d, ebx
mov ecx, r12d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 5
je 0x140007eed
cmp eax, ebx
je 0x140007eed
mov rax, qword [0x1400c82a8]
cmp rax, r13
je 0x140007ee9
test byte [rax + 0x44], 0x20
je 0x140007ee9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400c82a8]
lea r8, [0x1400ab950]
mov r9, qword [rbp - 0x48]
mov edx, 0xf
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x38]
call fcn.140042cf4
mov ebx, edi
jmp 0x140007f31
mov rax, qword [0x1400c82a8]
mov ebx, edi
cmp rax, r13
je 0x140007f31
test byte [rax + 0x44], 0x80
je 0x140007f31
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400c82a8]
lea r8, [0x1400ab950]
mov r9, qword [rbp - 0x48]
mov edx, 0xe
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x38]
call fcn.140042cf4
mov r8, qword [rbp - 0x58]
xor edx, edx
mov rcx, qword [0x1400ca110]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
cmp r15, qword [rbp - 0x48]
je 0x140007f6d
test r15, r15
je 0x140007f6d
mov rcx, qword [0x1400ca110]
mov r8, r15
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov eax, ebx
mov r14, qword [rsp + 0x388]
mov r13, qword [rsp + 0x390]
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.14000e2c0
add rsp, 0x398
pop r15
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret