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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x1400b77a8]
xor rax, rsp
mov qword [rbp + 0x130], rax
xor edi, edi
mov qword [rbp - 0x70], r9
mov qword [rsp + 0x68], r8
mov r12, r9
mov qword [rbp + 0x50], rdx
mov r15, rcx
mov qword [rsp + 0x70], rcx
mov rsi, rcx
mov dword [rsp + 0x60], 0x7b
lea r14, [rdi - 1]
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x60], rdi
mov dword [rbp - 0x54], edi
mov qword [rbp - 0x50], rdi
test rcx, rcx
je 0x14000204c
mov rax, r14
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], di
jne 0x140002020
inc rax
cmp rax, 0x21b
jbe 0x14000204c
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 0x1400031ea
cmp dword [0x1400b9560], edi
mov ebx, 2
jne 0x140002145
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 0x1400020f2
mov rax, qword [0x1400b72f8]
lea rcx, [0x1400b72f8]
cmp rax, rcx
je 0x1400020c6
test byte [rax + 0x44], 0x20
je 0x1400020c6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400b72f8]
lea edx, [rbx + 0x15]
mov r9d, eax
lea r8, [0x14009cb30]
mov rcx, qword [rcx + 0x38]
call fcn.1400307d8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
xor r8d, r8d
lea rcx, [0x14009b6f8]
mov edx, eax
call fcn.140053388
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 0x140002139
mov rcx, rdi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
test eax, eax
jne 0x140002139
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.140052f80
mov edx, 0xffffffff
call fcn.14005856c
xor edi, edi
mov qword [rsp + 0x248], r13
test r15, r15
je 0x14000218e
lea rdx, str._NoCache
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcsstr]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14000218e
mov rcx, r15
call sym.spoolsv.exe_PrvDllAllocSplStr
mov rsi, rax
test rax, rax
je 0x140002218
sub rbx, r15
sar rbx, 1
mov word [rax + rbx*2], di
mov rcx, qword [0x1400b9518]
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 qword [rbp - 0x20], rax
mov r13, rax
test rax, rax
jne 0x14000221f
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 [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x1400021f6
test byte [rcx + 0x44], 0x20
je 0x1400021f6
mov rcx, qword [rcx + 0x38]
lea edx, [r13 + 0xa]
lea r9d, [r13 + 0x68]
lea r8, [0x14009cb50]
call fcn.1400307d8
cmp rsi, r15
je 0x140002218
test rsi, rsi
je 0x140002218
mov rcx, qword [0x1400b9518]
mov r8, rsi
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 0x1400031e2
mov dword [rax], 0x6060
lea r15, [0x1400b72f8]
mov qword [rax + 0x38], r14
mov qword [rax + 0x40], rdi
mov qword [rax + 0x50], 0
mov dword [rax + 0x58], edi
mov qword [rax + 0x60], rdi
test rsi, rsi
je 0x140002316
mov rax, r14
nop
cmp word [rsi + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140002250
mov rcx, qword [0x1400b9518]
lea r15d, [rax*2 + 2]
mov r8d, r15d
mov edx, 8
mov edi, r15d
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 0x1400022ca
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 [0x1400b72f8]
lea rdx, [0x1400b72f8]
cmp rcx, rdx
je 0x1400022d8
test byte [rcx + 0x44], 0x20
je 0x1400022d8
mov rcx, qword [rcx + 0x38]
lea edx, [rbx + 0xa]
mov r9d, r15d
lea r8, [0x14009cb50]
call fcn.1400307d8
jmp 0x1400022d8
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.msvcrt.dll_memcpy
mov qword [r13 + 0x48], rbx
test rbx, rbx
jne 0x14000230f
cmp rsi, qword [rsp + 0x70]
je 0x140002300
mov rcx, qword [0x1400b9518]
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 rcx, r13
call fcn.14000cdec
xor eax, eax
jmp 0x1400031e2
lea r15, [0x1400b72f8]
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x14000232b
cmp qword [rbx + 8], 0
jne 0x140002cb4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [0x1400b9550]
mov edi, eax
cmp ecx, 0xffffffff
jne 0x140002348
xor eax, eax
jmp 0x140002354
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
nop dword [rax + rax]
lea rdx, [rbp - 0x40]
mov rcx, rax
call qword [sym.imp.RPCRT4.dll_I_RpcBindingInqTransportType]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x140002391
cmp eax, 0x6bd
je 0x14000238a
test eax, eax
jle 0x14000248c
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14000248c
xor ebx, ebx
jmp 0x14000248c
cmp dword [rbp - 0x40], 4
je 0x1400023a1
mov ebx, 1
jmp 0x14000248c
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
nop dword [rax + rax]
mov edx, 8
lea r9, [rbp + 0x30]
mov rcx, rax
lea r8d, [rdx - 7]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
nop dword [rax + rax]
test eax, eax
je 0x140002478
xor ebx, ebx
mov dword [rbp + 0x70], 0
lea rax, [rbp - 0x30]
mov word [rbp + 0x74], 0x500
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x70]
mov dword [rsp + 0x48], ebx
xor r9d, r9d
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 2]
mov dword [rsp + 0x38], ebx
mov dl, 1
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov qword [rbp - 0x30], rbx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
nop dword [rax + rax]
test eax, eax
je 0x14000245f
mov rdx, qword [rbp - 0x30]
lea r8, [rbp - 0x3c]
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
je 0x140002446
cmp dword [rbp - 0x3c], ebx
setne bl
jmp 0x14000244d
call fcn.14000dcf4
mov ebx, eax
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
nop dword [rax + rax]
jmp 0x140002466
call fcn.14000dcf4
mov ebx, eax
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x14000248c
call fcn.14000dcf4
mov ebx, eax
cmp eax, 0x800703f0
mov eax, 0
cmove ebx, eax
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 0x1400024ca
mov rcx, qword [0x1400b72f8]
cmp rcx, r15
je 0x1400024c8
test byte [rcx + 0x44], 0x20
je 0x1400024c8
mov rcx, qword [rcx + 0x38]
lea r8, [0x14009cc18]
mov edx, 0x12
mov r9d, ebx
call fcn.1400307d8
test ebx, ebx
jne 0x140002caf
mov rcx, rsi
call fcn.140003220
xor eax, eax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x50], rax
test rsi, rsi
jne 0x1400024fb
lea ecx, [rax + 6]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
jmp 0x140002caf
mov byte [rbp + 0x40], al
mov r15d, eax
mov qword [rbp - 0x80], r14
mov ebx, eax
mov qword [rsp + 0x78], r14
mov r12d, eax
mov dword [rbp - 0x58], 0x58
mov r13d, eax
mov qword [rbp - 0x28], rax
mov qword [rbp + 0x38], rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
nop dword [rax + rax]
mov edi, 1
lea r9, [rbp - 0x80]
mov rcx, rax
mov r8d, edi
lea edx, [rdi + 0xd]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
nop dword [rax + rax]
test eax, eax
je 0x140002823
mov rcx, qword [rbp - 0x80]
lea r8, [rbp + 0x80]
mov r9d, dword [rbp - 0x58]
lea edx, [rdi + 0x18]
xorps xmm0, xmm0
xor eax, eax
cmp rcx, r14
mov qword [rbp + 0xd0], rax
movups xmmword [rbp + 0x80], xmm0
cmove rcx, rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
movups xmmword [rbp + 0x90], xmm0
movups xmmword [rbp + 0xa0], xmm0
movups xmmword [rbp + 0xb0], xmm0
movups xmmword [rbp + 0xc0], xmm0
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
nop dword [rax + rax]
test eax, eax
jne 0x1400025c7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140002811
mov rcx, qword [rbp + 0x80]
mov edx, 0x42
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_IsWellKnownSid]
nop dword [rax + rax]
test eax, eax
cmovne r13d, edi
call qword [sym.imp.KERNELBASE.dll_GetIsEdpEnabled]
nop dword [rax + rax]
mov edi, eax
test r13d, r13d
jne 0x140002600
test eax, eax
je 0x14000277c
mov rcx, qword [rbp - 0x80]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
cmp rcx, r14
mov eax, 2
mov edx, 0x8e
cmove rcx, rbx
mov dword [rsp + 0x20], eax
xor r8d, r8d
mov r9d, eax
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_DuplicateTokenEx]
nop dword [rax + rax]
test eax, eax
jne 0x14000264c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x14000280c
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_RevertToSelf]
nop dword [rax + rax]
test eax, eax
jne 0x14000266f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x14000280c
mov r12d, 1
test edi, edi
je 0x14000268f
mov rcx, qword [rsp + 0x78]
mov rdi, rbx
cmp rcx, r14
cmove rcx, rbx
call fcn.1400546a0
jmp 0x140002691
xor edi, edi
test r13d, r13d
je 0x14000277c
xor edx, edx
mov dword [rbp - 0x38], 0x44
lea r9, [rbp - 0x38]
lea r8, [rbp + 0xe0]
lea ecx, [rdx + 0x43]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CreateWellKnownSid]
nop dword [rax + rax]
test eax, eax
jne 0x1400026d4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x1400027ca
mov rcx, qword [rsp + 0x78]
lea r8, [rbp + 0x80]
xor eax, eax
mov dword [rbp + 0x88], 0x60
xorps xmm0, xmm0
mov qword [rbp + 0xcc], rax
mov r9d, 0x58
mov dword [rbp + 0xd4], eax
cmp rcx, r14
lea rax, [rbp + 0xe0]
movups xmmword [rbp + 0x8c], xmm0
cmove rcx, rdi
mov qword [rbp + 0x80], rax
lea edx, [r9 - 0x3f]
movups xmmword [rbp + 0x9c], xmm0
movups xmmword [rbp + 0xac], xmm0
movups xmmword [rbp + 0xbc], xmm0
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_SetTokenInformation]
nop dword [rax + rax]
test eax, eax
jne 0x140002757
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x1400027ca
mov rcx, qword [rsp + 0x78]
cmp rcx, r14
cmove rcx, rdi
call fcn.140073cf8
test eax, eax
jne 0x14000277c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x1400027ca
cmp qword [rsp + 0x78], r14
jne 0x14000278b
mov r15d, 1
jmp 0x1400027c5
mov rcx, qword [rsp + 0x78]
mov edi, 1
mov r15d, edi
test rcx, rcx
je 0x1400027c5
mov rdx, rcx
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 0x1400027ed
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
xor eax, eax
mov r15d, eax
test r12d, r12d
je 0x1400027e8
mov rdx, qword [rbp - 0x80]
mov eax, 0
cmp rdx, r14
cmove rdx, rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_SetThreadToken]
nop dword [rax + rax]
test r15d, r15d
je 0x14000280c
mov rcx, qword [rbp - 0x80]
mov rdi, r14
mov qword [rbp - 0x28], r14
cmp rcx, r14
je 0x140002808
mov rdi, rcx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x80], r14
mov qword [rbp + 0x38], rdi
mov edi, 1
test ebx, ebx
je 0x140002823
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x78]
cmp rcx, r14
je 0x14000283e
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov qword [rsp + 0x78], r14
mov rcx, qword [rbp - 0x80]
cmp rcx, r14
je 0x140002857
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov qword [rbp - 0x80], r14
test r15d, r15d
je 0x14000286a
xor al, al
test r13d, r13d
movzx eax, al
cmovne eax, edi
mov byte [rbp + 0x40], al
xor r13d, r13d
lea rdx, [rbp - 0x48]
mov ecx, 0x2001f
mov qword [rbp - 0x48], r13
mov r12d, r13d
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 0x1400028f0
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 0x1400028d2
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x1400028d2
test byte [rcx + 0x44], 0x20
je 0x1400028d2
mov rcx, qword [rcx + 0x38]
lea edx, [r13 + 0xf]
mov r9d, ebx
lea r8, [0x14009cc18]
call fcn.1400307d8
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x1400028e7
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov r15, r13
mov qword [rbp - 0x48], r13
jmp 0x1400028f4
mov r15, qword [rbp - 0x48]
test r15, r15
jne 0x14000292f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 5
jne 0x140002917
mov ecx, 0x20019
call sym.spoolsv.exe_PrvSplGetClientUserHandle
mov r15, rax
test r15, r15
jne 0x14000292f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140002af9
cmp word [rsi], 0x5c
jne 0x140002aa2
cmp word [rsi + 2], 0x5c
jne 0x140002aa2
inc r14
cmp word [rsi + r14*2], r12w
jne 0x140002944
cmp r14, 0x21b
jae 0x140002a90
mov rcx, qword [0x1400b9518]
mov edx, 8
mov r8d, 0x462
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x1400029d5
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 [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x1400029c2
test byte [rcx + 0x44], 0x20
je 0x1400029c2
mov rcx, qword [rcx + 0x38]
lea edx, [rdi + 0xa]
mov r9d, 0x462
lea r8, [0x14009cb50]
call fcn.1400307d8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140002a95
mov edx, 0x231
call fcn.140016a8c
test eax, eax
js 0x1400029f9
lea r9, [0x14009b1d0]
mov edx, 0x231
mov rcx, rdi
call fcn.140016958
jmp 0x1400029fd
mov word [rdi], r13w
lea r11, [rdi + 0x2a]
cmp r11, rsi
je 0x140002a2a
mov edx, 0x21c
call fcn.140016a8c
test eax, eax
js 0x140002a26
mov r9, rsi
mov edx, 0x21c
mov rcx, r11
call fcn.140016958
jmp 0x140002a2a
mov word [r11], r13w
movzx eax, word [r11]
test ax, ax
je 0x140002a50
mov ecx, 0x2c
cmp ax, 0x5c
jne 0x140002a42
mov word [r11], cx
movzx eax, word [r11 + 2]
add r11, 2
test ax, ax
jne 0x140002a38
lea rax, [rbp - 0x68]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov rcx, qword [0x1400b9518]
mov r8, rdi
xor edx, edx
mov ebx, eax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
jmp 0x140002a95
mov ebx, 0x57
test ebx, ebx
jne 0x140002aa2
lea r12, str.DevMode
jmp 0x140002aea
lea rax, [rbp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, [0x14009ad68]
lea rax, [rbp - 0x68]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, r15
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r13d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
mov ebx, eax
cmove r12, rsi
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
je 0x140002b1e
mov ecx, ebx
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 0x140002c52
mov rcx, qword [rbp - 0x68]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x58], r13
xor r9d, r9d
mov qword [rsp + 0x50], r13
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor edx, edx
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
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 0x140002c42
mov ecx, dword [rbp - 0x78]
cmp ecx, 0x48
jb 0x140002c42
call sym.spoolsv.exe_PrvDllAllocSplMem
mov qword [rbp - 0x50], rax
mov rdi, rax
test rax, rax
jne 0x140002b9c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140002c42
mov rcx, qword [rbp - 0x68]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, r12
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 0x140002c1f
mov r8d, dword [rbp - 0x78]
mov r9d, 0x8007000d
cmp r8, 0x4c
jb 0x140002bf4
movzx ecx, word [rdi + 0x46]
movzx eax, word [rdi + 0x44]
add rcx, rax
cmp r8, rcx
jb 0x140002bf4
mov rcx, rdi
call fcn.140006da0
mov r9d, eax
mov ecx, r9d
call fcn.14000810c
mov ebx, eax
test eax, eax
je 0x140002c3b
mov rcx, qword [rbp - 0x68]
mov rdx, r12
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 [0x1400b9518]
mov r8, rdi
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov qword [rbp - 0x50], r13
cmp ebx, 2
cmove ebx, r13d
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
je 0x140002d53
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 0x140002c9e
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x140002c9e
test byte [rcx + 0x44], 0x20
je 0x140002c9e
mov rcx, qword [rcx + 0x38]
lea r8, [0x14009cd38]
mov edx, 0xf
mov r9d, ebx
call fcn.1400307d8
lea rcx, [rbp + 0x38]
call fcn.14000c128
mov r13, qword [rbp - 0x20]
mov r12, qword [rbp - 0x70]
mov rbx, qword [rsp + 0x68]
mov r14d, dword [rbp + 0x1b0]
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
cmp r14d, 4
jne 0x140002dde
mov eax, dword [r12 + 0x30]
lea r15, [rbp - 0x10]
mov dword [r13 + 0x54], eax
mov eax, dword [r12 + 0x34]
mov dword [r13 + 0x58], eax
mov eax, dword [r12]
mov dword [rbp - 0xc], eax
mov rax, qword [r12 + 8]
mov qword [rbp], rax
mov rax, qword [r12 + 0x10]
mov qword [rbp + 8], rax
mov eax, dword [r12 + 0x18]
mov dword [rbp + 0x10], eax
mov eax, dword [r12 + 0x1c]
mov dword [rbp + 0x14], eax
mov eax, dword [r12 + 0x20]
mov dword [rbp + 0x18], eax
movzx eax, word [r12 + 0x24]
mov word [rbp + 0x1c], ax
mov rax, qword [r12 + 0x28]
mov qword [rbp + 0x20], rax
mov dword [rbp - 0x10], 0x38
mov dword [rbp - 8], 0x28
mov eax, dword [r13 + 0x54]
mov dword [rbp + 0x28], eax
mov eax, dword [r13 + 0x58]
mov dword [rbp + 0x2c], eax
jmp 0x140002e6e
mov rbx, qword [rbp - 0x28]
cmp rbx, 0xffffffffffffffff
je 0x140002d96
test rbx, rbx
je 0x140002d87
mov 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 0x140002d87
lea ecx, [rax + 1]
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_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov rdi, qword [rbp - 0x50]
test rdi, rdi
je 0x140002ca7
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140002dbc
mov rax, qword [rcx]
mov qword [rbp + 0x58], rax
mov eax, dword [rcx + 0x10]
mov dword [rbp + 0x68], eax
jmp 0x140002dc4
mov qword [rbp + 0x58], r13
mov dword [rbp + 0x68], r13d
mov r12, qword [rbp - 0x70]
lea rbx, [rbp + 0x58]
mov r13, qword [rbp - 0x20]
mov qword [rsp + 0x68], rbx
mov qword [rbp + 0x60], rdi
jmp 0x140002cb4
cmp r14d, 3
jne 0x140002e3d
mov eax, dword [r12 + 4]
lea r15, [rbp - 0x10]
mov dword [rbp - 0xc], eax
mov rax, qword [r12 + 0x10]
mov qword [rbp], rax
mov rax, qword [r12 + 0x18]
mov qword [rbp + 8], rax
mov eax, dword [r12 + 0x20]
mov dword [rbp + 0x10], eax
mov eax, dword [r12 + 0x24]
mov dword [rbp + 0x14], eax
mov eax, dword [r12 + 0x28]
mov dword [rbp + 0x18], eax
movzx eax, word [r12 + 0x2c]
mov word [rbp + 0x1c], ax
mov rax, qword [r12 + 0x30]
mov qword [rbp + 0x20], rax
mov dword [rbp - 0x10], 0x38
mov dword [rbp - 8], 0x28
jmp 0x140002e6e
lea rcx, [0x1400b9160]
call fcn.14001aa54
test al, al
je 0x140002e6a
cmp r14d, 0x64
jne 0x140002e6a
mov eax, dword [r12 + 0x38]
mov r15, r12
mov dword [r13 + 0x54], eax
mov eax, dword [r12 + 0x3c]
mov dword [r13 + 0x58], eax
jmp 0x140002e6e
mov r15, qword [rbp - 0x70]
cmp dword [rbp + 0x1b8], 0
je 0x140002ed3
mov rdi, qword [0x1400b9558]
mov ecx, r14d
mov rdx, rdi
call fcn.14001a3d8
mov dword [rsp + 0x20], eax
lea rdx, [rbp - 0x60]
mov rax, qword [rdi + 0x1e8]
mov r9, r15
mov r8, rbx
mov rcx, rsi
call qword [0x140098d68]
mov ebx, eax
cmp eax, 1
je 0x1400030ce
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.14000c5a4
cmp ebx, 2
je 0x1400030f0
lea rcx, [0x1400b9258]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rcx, rsi
call fcn.14000c430
lea rcx, [0x1400b9258]
mov rdi, rax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
test rdi, rdi
je 0x140002fa9
mov rdx, rdi
mov ecx, r14d
call fcn.14001a3d8
mov r12, qword [rsp + 0x68]
lea rdx, [rbp - 0x60]
mov dword [rsp + 0x20], eax
mov r8, r12
mov rax, qword [rdi + 0x1e8]
mov r9, r15
mov rcx, rsi
call qword [0x140098d68]
mov ebx, eax
test eax, eax
jne 0x140002f54
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x32
je 0x140002f59
jmp 0x140002f78
cmp eax, 0x32
jne 0x140002f6f
mov rax, qword [rdi + 0x20]
lea rdx, [rbp - 0x60]
mov r8, r12
mov rcx, rsi
call qword [0x140098d68]
mov ebx, eax
cmp ebx, 1
je 0x1400030ce
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.14000c5a4
cmp ebx, 2
je 0x1400030f0
mov rbx, rdi
mov dword [rbp - 0x54], 1
mov qword [rbp - 0x18], rbx
jmp 0x140002fb2
mov r12, qword [rsp + 0x68]
mov rbx, qword [rbp - 0x18]
mov rcx, rsi
call fcn.14000bf88
cmp dword [rbp - 0x54], 0
mov rdi, rax
je 0x140002ff6
cmp rax, rbx
je 0x140002ff6
lea rcx, [0x1400b9258]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rcx, rsi
call fcn.14006ebfc
lea rcx, [0x1400b9258]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
test rdi, rdi
je 0x140003047
cmp rdi, rbx
je 0x1400030f0
mov rdx, rdi
mov ecx, r14d
call fcn.14001a3d8
mov dword [rsp + 0x30], eax
lea r8, [rbp - 0x60]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], r15
mov r9, r12
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rdi
call fcn.14000c4d8
mov r12, qword [rsp + 0x70]
cmp eax, 1
je 0x1400030d3
jmp 0x1400030f5
mov rax, qword [0x1400b9558]
mov r12, qword [rsp + 0x70]
mov rdi, qword [rax]
test rdi, rdi
je 0x1400030f5
nop
cmp rdi, rbx
je 0x1400030c4
mov rdx, rdi
mov ecx, r14d
call fcn.14001a3d8
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 r9, qword [rsp + 0x68]
lea r8, [rbp - 0x60]
test eax, eax
mov dword [rsp + 0x30], ebx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], r15
mov rdx, r12
mov qword [rsp + 0x20], rax
cmovne rdx, rsi
mov rcx, rdi
call fcn.14000c4d8
sub eax, 1
je 0x1400030d3
cmp eax, 1
je 0x1400030f5
mov rbx, qword [rbp - 0x18]
mov rdi, qword [rdi]
test rdi, rdi
jne 0x140003060
jmp 0x1400030f5
mov r12, qword [rsp + 0x70]
mov qword [r13 + 8], rdi
mov edi, 1
mov rax, qword [rbp - 0x60]
mov qword [r13 + 0x10], rax
mov rax, qword [rbp + 0x50]
mov qword [rax], r13
jmp 0x1400031a5
mov r12, qword [rsp + 0x70]
mov rcx, r13
call fcn.14000cdec
mov ecx, dword [rsp + 0x60]
mov ebx, 0x709
cmp ecx, 0x7b
cmove ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov edi, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 5
je 0x14000315d
cmp eax, ebx
je 0x14000315d
mov rax, qword [0x1400b72f8]
lea rdx, [0x1400b72f8]
cmp rax, rdx
je 0x1400031a5
test byte [rax + 0x44], 0x20
je 0x1400031a5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0xf
jmp 0x140003187
mov rax, qword [0x1400b72f8]
lea rdx, [0x1400b72f8]
cmp rax, rdx
je 0x1400031a5
test byte [rax + 0x44], 0x80
je 0x1400031a5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0xe
mov rcx, qword [0x1400b72f8]
lea r8, [0x14009cb70]
mov r9, r12
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x38]
call fcn.14004d7a8
mov r8, qword [rbp - 0x50]
xor edx, edx
mov rcx, qword [0x1400b9518]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
cmp rsi, r12
je 0x1400031e0
test rsi, rsi
je 0x1400031e0
mov rcx, qword [0x1400b9518]
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 eax, edi
mov r13, qword [rsp + 0x248]
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.140013430
add rsp, 0x250
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret