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
lea rbp, [rsp - 0x158]
sub rsp, 0x258
mov rax, qword [0x1400b77a8]
xor rax, rsp
mov qword [rbp + 0x130], rax
xor edi, edi
mov qword [rbp - 0x20], r9
mov qword [rsp + 0x68], r8
mov r12, rcx
mov qword [rbp + 0x50], rdx
mov rsi, rcx
mov qword [rbp - 0x30], rcx
mov dword [rsp + 0x60], 0x7b
lea r14, [rdi - 1]
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x70], rdi
mov dword [rbp - 0x64], edi
mov qword [rbp - 0x60], rdi
test rcx, rcx
je 0x140002041
mov rax, r14
inc rax
cmp word [rcx + rax*2], di
jne 0x140002015
inc rax
cmp rax, 0x21b
jbe 0x140002041
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 0x1400031b4
cmp dword [0x1400b95a0], edi
mov ebx, 2
jne 0x14000213a
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 0x1400020e7
mov rax, qword [0x1400b72f8]
lea rcx, [0x1400b72f8]
cmp rax, rcx
je 0x1400020bb
test byte [rax + 0x44], 0x20
je 0x1400020bb
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, [0x14009cb20]
mov rcx, qword [rcx + 0x38]
call fcn.140030cf8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
xor r8d, r8d
lea rcx, [0x14009b6e8]
mov edx, eax
call fcn.1400538a8
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 0x14000212e
mov rcx, rdi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
test eax, eax
jne 0x14000212e
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.1400534a0
mov edx, 0xffffffff
call fcn.140058a8c
xor edi, edi
mov qword [rsp + 0x250], r13
test r12, r12
je 0x140002183
lea rdx, str._NoCache
mov rcx, r12
call qword [sym.imp.msvcrt.dll_wcsstr]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140002183
mov rcx, r12
call sym.spoolsv.exe_PrvDllAllocSplStr
mov rsi, rax
test rax, rax
je 0x14000220d
sub rbx, r12
sar rbx, 1
mov word [rax + rbx*2], di
mov rcx, qword [0x1400b9538]
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 - 0x28], rax
mov r13, rax
test rax, rax
jne 0x140002214
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 0x1400021eb
test byte [rcx + 0x44], 0x20
je 0x1400021eb
mov rcx, qword [rcx + 0x38]
lea edx, [r13 + 0xa]
lea r9d, [r13 + 0x68]
lea r8, [0x14009cb40]
call fcn.140030cf8
cmp rsi, r12
je 0x14000220d
test rsi, rsi
je 0x14000220d
mov rcx, qword [0x1400b9538]
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 0x1400031ac
mov qword [rsp + 0x248], r15
lea r15, [0x1400b72f8]
mov dword [rax], 0x6060
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 0x140002314
mov rax, r14
nop dword [rax]
cmp word [rsi + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140002250
mov rcx, qword [0x1400b9538]
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, [0x14009cb40]
call fcn.140030cf8
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 0x14000230d
cmp rsi, r12
je 0x1400022fe
mov rcx, qword [0x1400b9538]
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.14000cdac
xor eax, eax
jmp 0x1400031a4
lea r15, [0x1400b72f8]
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x140002329
cmp qword [rbx + 8], 0
jne 0x140002cc0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [0x1400b9590]
mov edi, eax
cmp ecx, 0xffffffff
jne 0x140002346
xor eax, eax
jmp 0x140002352
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
nop dword [rax + rax]
lea rdx, [rbp - 0x50]
mov rcx, rax
call qword [sym.imp.RPCRT4.dll_I_RpcBindingInqTransportType]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14000238f
cmp eax, 0x6bd
je 0x140002388
test eax, eax
jle 0x14000248a
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14000248a
xor ebx, ebx
jmp 0x14000248a
cmp dword [rbp - 0x50], 4
je 0x14000239f
mov ebx, 1
jmp 0x14000248a
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 0x140002476
xor ebx, ebx
mov dword [rbp + 0x70], 0
lea rax, [rbp - 0x40]
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 - 0x40], rbx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
nop dword [rax + rax]
test eax, eax
je 0x14000245d
mov rdx, qword [rbp - 0x40]
lea r8, [rbp - 0x4c]
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 0x140002444
cmp dword [rbp - 0x4c], ebx
setne bl
jmp 0x14000244b
call fcn.14000dcb4
mov ebx, eax
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
nop dword [rax + rax]
jmp 0x140002464
call fcn.14000dcb4
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 0x14000248a
call fcn.14000dcb4
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 0x1400024c8
mov rcx, qword [0x1400b72f8]
cmp rcx, r15
je 0x1400024c6
test byte [rcx + 0x44], 0x20
je 0x1400024c6
mov rcx, qword [rcx + 0x38]
lea r8, [0x14009cbf8]
mov edx, 0x12
mov r9d, ebx
call fcn.140030cf8
test ebx, ebx
jne 0x140002cbb
mov rcx, rsi
call fcn.1400031e0
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x60], rax
test rsi, rsi
jne 0x1400024f9
lea ecx, [rax + 6]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
jmp 0x140002cbb
mov byte [rbp + 0x40], al
mov r15d, eax
mov qword [rsp + 0x78], r14
mov ebx, eax
mov qword [rsp + 0x70], r14
mov r12d, eax
mov dword [rbp - 0x68], 0x58
mov r13d, eax
mov qword [rbp - 0x38], 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, [rsp + 0x78]
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 0x140002828
mov rcx, qword [rsp + 0x78]
lea r8, [rbp + 0x80]
mov r9d, dword [rbp - 0x68]
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 - 0x68]
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 0x1400025c8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140002816
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 0x140002601
test eax, eax
je 0x14000277e
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x70]
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 0x14000264e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140002811
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_RevertToSelf]
nop dword [rax + rax]
test eax, eax
jne 0x140002671
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140002811
mov r12d, 1
test edi, edi
je 0x140002691
mov rcx, qword [rsp + 0x70]
mov rdi, rbx
cmp rcx, r14
cmove rcx, rbx
call fcn.140054bc0
jmp 0x140002693
xor edi, edi
test r13d, r13d
je 0x14000277e
xor edx, edx
mov dword [rbp - 0x48], 0x44
lea r9, [rbp - 0x48]
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 0x1400026d6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x1400027cc
mov rcx, qword [rsp + 0x70]
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 0x140002759
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x1400027cc
mov rcx, qword [rsp + 0x70]
cmp rcx, r14
cmove rcx, rdi
call fcn.140074258
test eax, eax
jne 0x14000277e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x1400027cc
cmp qword [rsp + 0x70], r14
jne 0x14000278d
mov r15d, 1
jmp 0x1400027c7
mov rcx, qword [rsp + 0x70]
mov edi, 1
mov r15d, edi
test rcx, rcx
je 0x1400027c7
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 0x1400027f0
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 0x1400027eb
mov rdx, qword [rsp + 0x78]
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 0x140002811
mov rcx, qword [rsp + 0x78]
mov rdi, r14
mov qword [rbp - 0x38], r14
cmp rcx, r14
je 0x14000280d
mov rdi, rcx
mov qword [rbp - 0x38], rcx
mov qword [rsp + 0x78], r14
mov qword [rbp + 0x38], rdi
mov edi, 1
test ebx, ebx
je 0x140002828
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 + 0x70]
cmp rcx, r14
je 0x140002843
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov qword [rsp + 0x70], r14
mov rcx, qword [rsp + 0x78]
cmp rcx, r14
je 0x14000285e
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov qword [rsp + 0x78], r14
test r15d, r15d
je 0x140002871
xor al, al
test r13d, r13d
movzx eax, al
cmovne eax, edi
mov byte [rbp + 0x40], al
xor r13d, r13d
lea rdx, [rbp - 0x58]
mov ecx, 0x2001f
mov qword [rbp - 0x58], 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 0x1400028f7
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 0x1400028d9
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x1400028d9
test byte [rcx + 0x44], 0x20
je 0x1400028d9
mov rcx, qword [rcx + 0x38]
lea edx, [r13 + 0xf]
mov r9d, ebx
lea r8, [0x14009cbf8]
call fcn.140030cf8
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x1400028ee
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov r15, r13
mov qword [rbp - 0x58], r13
jmp 0x1400028fb
mov r15, qword [rbp - 0x58]
test r15, r15
jne 0x140002936
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 5
jne 0x14000291e
mov ecx, 0x20019
call sym.spoolsv.exe_PrvSplGetClientUserHandle
mov r15, rax
test r15, r15
jne 0x140002936
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140002b05
cmp word [rsi], 0x5c
jne 0x140002aae
cmp word [rsi + 2], 0x5c
jne 0x140002aae
nop dword [rax + rax]
inc r14
cmp word [rsi + r14*2], r12w
jne 0x140002950
cmp r14, 0x21b
jae 0x140002a9c
mov rcx, qword [0x1400b9538]
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 0x1400029e1
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 0x1400029ce
test byte [rcx + 0x44], 0x20
je 0x1400029ce
mov rcx, qword [rcx + 0x38]
lea edx, [rdi + 0xa]
mov r9d, 0x462
lea r8, [0x14009cb40]
call fcn.140030cf8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140002aa1
mov edx, 0x231
call fcn.140016a1c
test eax, eax
js 0x140002a05
lea r9, [0x14009b1c0]
mov edx, 0x231
mov rcx, rdi
call fcn.1400168e8
jmp 0x140002a09
mov word [rdi], r13w
lea r11, [rdi + 0x2a]
cmp r11, rsi
je 0x140002a36
mov edx, 0x21c
call fcn.140016a1c
test eax, eax
js 0x140002a32
mov r9, rsi
mov edx, 0x21c
mov rcx, r11
call fcn.1400168e8
jmp 0x140002a36
mov word [r11], r13w
movzx eax, word [r11]
test ax, ax
je 0x140002a5c
mov ecx, 0x2c
cmp ax, 0x5c
jne 0x140002a4e
mov word [r11], cx
movzx eax, word [r11 + 2]
add r11, 2
test ax, ax
jne 0x140002a44
lea rax, [rbp - 0x78]
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 [0x1400b9538]
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 0x140002aa1
mov ebx, 0x57
test ebx, ebx
jne 0x140002aae
lea r12, str.DevMode
jmp 0x140002af6
lea rax, [rbp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, [0x14009ad58]
lea rax, [rbp - 0x78]
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 0x140002b2a
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 0x140002c5e
mov rcx, qword [rbp - 0x78]
lea rax, [rbp - 0x80]
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 0x140002c4e
mov ecx, dword [rbp - 0x80]
cmp ecx, 0x48
jb 0x140002c4e
call sym.spoolsv.exe_PrvDllAllocSplMem
mov qword [rbp - 0x60], rax
mov rdi, rax
test rax, rax
jne 0x140002ba8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140002c4e
mov rcx, qword [rbp - 0x78]
lea rax, [rbp - 0x80]
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 0x140002c2b
mov r8d, dword [rbp - 0x80]
mov r9d, 0x8007000d
cmp r8, 0x4c
jb 0x140002c00
movzx ecx, word [rdi + 0x46]
movzx eax, word [rdi + 0x44]
add rcx, rax
cmp r8, rcx
jb 0x140002c00
mov rcx, rdi
call fcn.140006d60
mov r9d, eax
mov ecx, r9d
call fcn.1400080cc
mov ebx, eax
test eax, eax
je 0x140002c47
mov rcx, qword [rbp - 0x78]
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 [0x1400b9538]
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 - 0x60], r13
cmp ebx, 2
cmove ebx, r13d
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
je 0x140002d52
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 0x140002caa
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x140002caa
test byte [rcx + 0x44], 0x20
je 0x140002caa
mov rcx, qword [rcx + 0x38]
lea r8, [0x14009cd18]
mov edx, 0xf
mov r9d, ebx
call fcn.140030cf8
lea rcx, [rbp + 0x38]
call fcn.14000c0e8
mov r13, qword [rbp - 0x28]
mov r12, qword [rbp - 0x30]
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 0x140002ddd
mov rcx, qword [rbp - 0x20]
lea r15, [rbp - 0x10]
mov eax, dword [rcx + 0x30]
mov dword [r13 + 0x54], eax
mov eax, dword [rcx + 0x34]
mov dword [r13 + 0x58], eax
mov eax, dword [rcx]
mov dword [rbp - 0xc], eax
mov rax, qword [rcx + 8]
mov qword [rbp], rax
mov rax, qword [rcx + 0x10]
mov qword [rbp + 8], rax
mov eax, dword [rcx + 0x18]
mov dword [rbp + 0x10], eax
mov eax, dword [rcx + 0x1c]
mov dword [rbp + 0x14], eax
mov eax, dword [rcx + 0x20]
mov dword [rbp + 0x18], eax
movzx eax, word [rcx + 0x24]
mov word [rbp + 0x1c], ax
mov rax, qword [rcx + 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 0x140002e37
mov rbx, qword [rbp - 0x38]
cmp rbx, 0xffffffffffffffff
je 0x140002d95
test rbx, rbx
je 0x140002d86
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 0x140002d86
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 - 0x60]
test rdi, rdi
je 0x140002cb3
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140002dbb
mov rax, qword [rcx]
mov qword [rbp + 0x58], rax
mov eax, dword [rcx + 0x10]
mov dword [rbp + 0x68], eax
jmp 0x140002dc3
mov qword [rbp + 0x58], r13
mov dword [rbp + 0x68], r13d
mov r12, qword [rbp - 0x30]
lea rbx, [rbp + 0x58]
mov r13, qword [rbp - 0x28]
mov qword [rsp + 0x68], rbx
mov qword [rbp + 0x60], rdi
jmp 0x140002cc0
cmp r14d, 3
jne 0x140002e33
mov rcx, qword [rbp - 0x20]
lea r15, [rbp - 0x10]
mov dword [rbp - 0x10], 0x38
mov dword [rbp - 8], 0x28
mov eax, dword [rcx + 4]
mov dword [rbp - 0xc], eax
mov rax, qword [rcx + 0x10]
mov qword [rbp], rax
mov rax, qword [rcx + 0x18]
mov qword [rbp + 8], rax
mov eax, dword [rcx + 0x20]
mov dword [rbp + 0x10], eax
mov eax, dword [rcx + 0x24]
mov dword [rbp + 0x14], eax
mov eax, dword [rcx + 0x28]
mov dword [rbp + 0x18], eax
movzx eax, word [rcx + 0x2c]
mov word [rbp + 0x1c], ax
mov rax, qword [rcx + 0x30]
mov qword [rbp + 0x20], rax
jmp 0x140002e37
mov r15, qword [rbp - 0x20]
cmp dword [rbp + 0x1b8], 0
je 0x140002e9c
mov rdi, qword [0x1400b9598]
mov ecx, r14d
mov rdx, rdi
call fcn.14001a368
mov dword [rsp + 0x20], eax
lea rdx, [rbp - 0x70]
mov rax, qword [rdi + 0x1e8]
mov r9, r15
mov r8, rbx
mov rcx, rsi
call qword [0x140098d68]
mov ebx, eax
cmp eax, 1
je 0x140003105
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.14000c564
cmp ebx, 2
je 0x140003002
lea rcx, [0x1400b9278]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rcx, rsi
call fcn.14000c3f0
lea rcx, [0x1400b9278]
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 0x140002f71
mov rdx, rdi
mov ecx, r14d
call fcn.14001a368
mov r8, qword [rsp + 0x68]
lea rdx, [rbp - 0x70]
mov dword [rsp + 0x20], eax
mov r9, r15
mov rax, qword [rdi + 0x1e8]
mov rcx, rsi
call qword [0x140098d68]
mov ebx, eax
test eax, eax
jne 0x140002f1a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x32
je 0x140002f1f
jmp 0x140002f40
cmp eax, 0x32
jne 0x140002f37
mov r8, qword [rsp + 0x68]
lea rdx, [rbp - 0x70]
mov rax, qword [rdi + 0x20]
mov rcx, rsi
call qword [0x140098d68]
mov ebx, eax
cmp ebx, 1
je 0x140003105
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.14000c564
cmp ebx, 2
je 0x140003002
mov rbx, rdi
mov dword [rbp - 0x64], 1
mov qword [rbp - 0x18], rbx
jmp 0x140002f75
mov rbx, qword [rbp - 0x18]
mov rcx, rsi
call fcn.14000bf48
cmp dword [rbp - 0x64], 0
mov rdi, rax
je 0x140002fb9
cmp rax, rbx
je 0x140002fb9
lea rcx, [0x1400b9278]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rcx, rsi
call fcn.14006f0dc
lea rcx, [0x1400b9278]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
test rdi, rdi
je 0x14000307d
cmp rdi, rbx
je 0x140003002
mov rdx, rdi
mov ecx, r14d
call fcn.14001a368
mov r9, qword [rsp + 0x68]
lea r8, [rbp - 0x70]
mov dword [rsp + 0x30], eax
mov rdx, rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], r15
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.14000c498
cmp eax, 1
je 0x140003105
mov rcx, r13
call fcn.14000cdac
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 0x14000311f
cmp eax, ebx
je 0x14000311f
mov rax, qword [0x1400b72f8]
lea rdx, [0x1400b72f8]
cmp rax, rdx
je 0x140003167
test byte [rax + 0x44], 0x20
je 0x140003167
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0xf
jmp 0x140003149
mov rax, qword [0x1400b9598]
mov rdi, qword [rax]
test rdi, rdi
je 0x140003002
cmp rdi, rbx
je 0x1400030f8
mov rdx, rdi
mov ecx, r14d
call fcn.14001a368
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 - 0x70]
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.14000c498
sub eax, 1
je 0x140003105
cmp eax, 1
je 0x140003002
mov rbx, qword [rbp - 0x18]
mov rdi, qword [rdi]
test rdi, rdi
jne 0x140003090
jmp 0x140003002
mov qword [r13 + 8], rdi
mov edi, 1
mov rax, qword [rbp - 0x70]
mov qword [r13 + 0x10], rax
mov rax, qword [rbp + 0x50]
mov qword [rax], r13
jmp 0x140003167
mov rax, qword [0x1400b72f8]
lea rdx, [0x1400b72f8]
cmp rax, rdx
je 0x140003167
test byte [rax + 0x44], 0x80
je 0x140003167
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, [0x14009cb50]
mov r9, r12
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x38]
call fcn.14004dcc8
mov r8, qword [rbp - 0x60]
xor edx, edx
mov rcx, qword [0x1400b9538]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
cmp rsi, r12
je 0x1400031a2
test rsi, rsi
je 0x1400031a2
mov rcx, qword [0x1400b9538]
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 r15, qword [rsp + 0x248]
mov r13, qword [rsp + 0x250]
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.1400133c0
add rsp, 0x258
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret