Function at 0x140001f70
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 [0x1400b67a8]
xor rax, rsp
mov qword [rbp + 0x130], rax
xor edi, edi
mov qword [rbp - 0x68], 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 0x14000200c
mov rax, r14
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], di
jne 0x140001fe0
inc rax
cmp rax, 0x21b
jbe 0x14000200c
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 0x1400031aa
cmp dword [0x1400b84e0], edi
mov ebx, 2
jne 0x140002105
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 0x1400020b2
mov rax, qword [0x1400b62f8]
lea rcx, [0x1400b62f8]
cmp rax, rcx
je 0x140002086
test byte [rax + 0x44], 0x20
je 0x140002086
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400b62f8]
lea edx, [rbx + 0x15]
mov r9d, eax
lea r8, [0x14009bad0]
mov rcx, qword [rcx + 0x38]
call fcn.14002f358
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
xor r8d, r8d
lea rcx, [0x14009a6b8]
mov edx, eax
call fcn.140051f08
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 0x1400020f9
mov rcx, rdi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
test eax, eax
jne 0x1400020f9
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.140051b00
mov edx, 0xffffffff
call fcn.1400570ec
xor edi, edi
mov qword [rsp + 0x248], r13
test r15, r15
je 0x14000214e
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 0x14000214e
mov rcx, r15
call sym.spoolsv.exe_PrvDllAllocSplStr
mov rsi, rax
test rax, rax
je 0x1400021d8
sub rbx, r15
sar rbx, 1
mov word [rax + rbx*2], di
mov rcx, qword [0x1400b8478]
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 0x1400021df
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 [0x1400b62f8]
lea rax, [0x1400b62f8]
cmp rcx, rax
je 0x1400021b6
test byte [rcx + 0x44], 0x20
je 0x1400021b6
mov rcx, qword [rcx + 0x38]
lea edx, [r13 + 0xa]
lea r9d, [r13 + 0x68]
lea r8, [0x14009baf0]
call fcn.14002f358
cmp rsi, r15
je 0x1400021d8
test rsi, rsi
je 0x1400021d8
mov rcx, qword [0x1400b8478]
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 0x1400031a2
mov dword [rax], 0x6060
lea r15, [0x1400b62f8]
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 0x1400022d6
mov rax, r14
nop
cmp word [rsi + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140002210
mov rcx, qword [0x1400b8478]
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 0x14000228a
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 [0x1400b62f8]
lea rdx, [0x1400b62f8]
cmp rcx, rdx
je 0x140002298
test byte [rcx + 0x44], 0x20
je 0x140002298
mov rcx, qword [rcx + 0x38]
lea edx, [rbx + 0xa]
mov r9d, r15d
lea r8, [0x14009baf0]
call fcn.14002f358
jmp 0x140002298
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.msvcrt.dll_memcpy
mov qword [r13 + 0x48], rbx
test rbx, rbx
jne 0x1400022cf
cmp rsi, qword [rsp + 0x70]
je 0x1400022c0
mov rcx, qword [0x1400b8478]
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 0x1400031a2
lea r15, [0x1400b62f8]
mov r8, qword [rsp + 0x68]
test r8, r8
je 0x1400022eb
cmp qword [r8 + 8], 0
jne 0x140002c83
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [0x1400b84d0]
mov edi, eax
cmp ecx, 0xffffffff
jne 0x140002308
xor eax, eax
jmp 0x140002314
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 0x140002351
cmp eax, 0x6bd
je 0x14000234a
test eax, eax
jle 0x14000244c
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14000244c
xor ebx, ebx
jmp 0x14000244c
cmp dword [rbp - 0x40], 4
je 0x140002361
mov ebx, 1
jmp 0x14000244c
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 0x140002438
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 0x14000241f
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 0x140002406
cmp dword [rbp - 0x3c], ebx
setne bl
jmp 0x14000240d
call fcn.14000dcb4
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 0x140002426
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 0x14000244c
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 0x14000248a
mov rcx, qword [0x1400b62f8]
cmp rcx, r15
je 0x140002488
test byte [rcx + 0x44], 0x20
je 0x140002488
mov rcx, qword [rcx + 0x38]
lea r8, [0x14009bbb8]
mov edx, 0x12
mov r9d, ebx
call fcn.14002f358
test ebx, ebx
jne 0x140002c7e
mov rcx, rsi
call fcn.1400031e0
xor edi, edi
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x50], rdi
test rsi, rsi
jne 0x1400024bb
lea ecx, [rdi + 6]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
jmp 0x140002c7e
xor eax, eax
mov byte [rbp + 0x40], dil
mov r13d, eax
mov qword [rbp - 0x80], r14
mov qword [rsp + 0x78], r14
mov r15d, edi
mov dword [rbp - 0x58], 0x58
mov ebx, edi
mov r12d, edi
mov qword [rbp - 0x28], rdi
mov qword [rbp + 0x38], rdi
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 0x1400027e6
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 0x14000258a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x1400027d4
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 0x1400025c3
test eax, eax
je 0x14000273f
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 0x14000260f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x1400027cf
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_RevertToSelf]
nop dword [rax + rax]
test eax, eax
jne 0x140002632
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x1400027cf
mov r12d, 1
test edi, edi
je 0x140002652
mov rcx, qword [rsp + 0x78]
mov rdi, rbx
cmp rcx, r14
cmove rcx, rbx
call fcn.140053220
jmp 0x140002654
xor edi, edi
test r13d, r13d
je 0x14000273f
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 0x140002697
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x14000278d
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 0x14000271a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x14000278d
mov rcx, qword [rsp + 0x78]
cmp rcx, r14
cmove rcx, rdi
call fcn.140072878
test eax, eax
jne 0x14000273f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x14000278d
cmp qword [rsp + 0x78], r14
jne 0x14000274e
mov r15d, 1
jmp 0x140002788
mov rcx, qword [rsp + 0x78]
mov edi, 1
mov r15d, edi
test rcx, rcx
je 0x140002788
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 0x1400027b0
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 0x1400027ab
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 0x1400027cf
mov rcx, qword [rbp - 0x80]
mov rdi, r14
mov qword [rbp - 0x28], r14
cmp rcx, r14
je 0x1400027cb
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 0x1400027e6
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 0x140002801
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 0x14000281a
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 0x14000282d
xor al, al
test r13d, r13d
movzx eax, al
cmovne eax, edi
mov byte [rbp + 0x40], al
xor edi, edi
lea rdx, [rbp - 0x48]
mov ecx, 0x2001f
mov qword [rbp - 0x48], rdi
mov r12d, edi
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 0x1400028b1
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 0x140002893
mov rcx, qword [0x1400b62f8]
lea rax, [0x1400b62f8]
cmp rcx, rax
je 0x140002893
test byte [rcx + 0x44], 0x20
je 0x140002893
mov rcx, qword [rcx + 0x38]
lea edx, [rdi + 0xf]
mov r9d, ebx
lea r8, [0x14009bbb8]
call fcn.14002f358
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x1400028a8
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov r15, rdi
mov qword [rbp - 0x48], rdi
jmp 0x1400028b5
mov r15, qword [rbp - 0x48]
test r15, r15
jne 0x1400028f0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 5
jne 0x1400028d8
mov ecx, 0x20019
call sym.spoolsv.exe_PrvSplGetClientUserHandle
mov r15, rax
test r15, r15
jne 0x1400028f0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140002ac3
cmp word [rsi], 0x5c
jne 0x140002a6d
cmp word [rsi + 2], 0x5c
jne 0x140002a6d
inc r14
cmp word [rsi + r14*2], di
jne 0x140002905
cmp r14, 0x21b
jae 0x140002a5b
mov rcx, qword [0x1400b8478]
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 0x140002998
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 [0x1400b62f8]
lea rax, [0x1400b62f8]
cmp rcx, rax
je 0x140002983
test byte [rcx + 0x44], 0x20
je 0x140002983
mov rcx, qword [rcx + 0x38]
lea edx, [rdi + 0xa]
mov r9d, 0x462
lea r8, [0x14009baf0]
call fcn.14002f358
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
xor edi, edi
jmp 0x140002a60
mov edx, 0x231
call fcn.140016700
test eax, eax
js 0x1400029bf
lea r9, [0x14009a190]
mov edx, 0x231
mov rcx, rdi
call fcn.1400165cc
xor r8d, r8d
jmp 0x1400029c6
xor r8d, r8d
mov word [rdi], r8w
lea r11, [rdi + 0x2a]
cmp r11, rsi
je 0x1400029f3
mov edx, 0x21c
call fcn.140016700
test eax, eax
js 0x1400029ef
mov r9, rsi
mov edx, 0x21c
mov rcx, r11
call fcn.1400165cc
jmp 0x1400029f3
mov word [r11], r8w
movzx eax, word [r11]
test ax, ax
je 0x140002a19
mov ecx, 0x2c
cmp ax, 0x5c
jne 0x140002a0b
mov word [r11], cx
movzx eax, word [r11 + 2]
add r11, 2
test ax, ax
jne 0x140002a01
lea rax, [rbp - 0x70]
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 [0x1400b8478]
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]
xor edi, edi
jmp 0x140002a60
mov ebx, 0x57
test ebx, ebx
jne 0x140002a6d
lea r12, str.DevMode
jmp 0x140002ab4
lea rax, [rbp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, [0x140099d28]
lea rax, [rbp - 0x70]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, r15
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 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 0x140002ae8
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 0x140002c21
mov rcx, qword [rbp - 0x70]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x58], rdi
xor r9d, r9d
mov qword [rsp + 0x50], rdi
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor edx, edx
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
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 0x140002c11
mov ecx, dword [rbp - 0x78]
cmp ecx, 0x48
jb 0x140002c11
call sym.spoolsv.exe_PrvDllAllocSplMem
mov qword [rbp - 0x50], rax
mov rdi, rax
test rax, rax
jne 0x140002b66
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140002c11
mov rcx, qword [rbp - 0x70]
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 0x140002be9
mov r8d, dword [rbp - 0x78]
mov r9d, 0x8007000d
cmp r8, 0x4c
jb 0x140002bbe
movzx ecx, word [rdi + 0x46]
movzx eax, word [rdi + 0x44]
add rcx, rax
cmp r8, rcx
jb 0x140002bbe
mov rcx, rdi
call fcn.140006d60
mov r9d, eax
mov ecx, r9d
call fcn.1400080cc
mov ebx, eax
test eax, eax
je 0x140002c09
mov rcx, qword [rbp - 0x70]
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 [0x1400b8478]
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 edi, edi
mov qword [rbp - 0x50], rdi
jmp 0x140002c0b
xor edi, edi
cmp ebx, 2
cmove ebx, edi
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
je 0x140002d22
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 0x140002c6d
mov rcx, qword [0x1400b62f8]
lea rax, [0x1400b62f8]
cmp rcx, rax
je 0x140002c6d
test byte [rcx + 0x44], 0x20
je 0x140002c6d
mov rcx, qword [rcx + 0x38]
lea r8, [0x14009bcd8]
mov edx, 0xf
mov r9d, ebx
call fcn.14002f358
lea rcx, [rbp + 0x38]
call fcn.14000c0e8
mov r13, qword [rbp - 0x20]
mov r12, qword [rbp - 0x68]
mov r8, 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 0x140002dac
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 0x140002e2c
mov rbx, qword [rbp - 0x28]
cmp rbx, 0xffffffffffffffff
je 0x140002d65
test rbx, rbx
je 0x140002d56
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 0x140002d56
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 rbx, qword [rbp - 0x50]
test rbx, rbx
je 0x140002c76
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140002d8b
mov rax, qword [rcx]
mov qword [rbp + 0x58], rax
mov eax, dword [rcx + 0x10]
mov dword [rbp + 0x68], eax
jmp 0x140002d92
mov qword [rbp + 0x58], rdi
mov dword [rbp + 0x68], edi
mov r12, qword [rbp - 0x68]
lea r8, [rbp + 0x58]
mov r13, qword [rbp - 0x20]
mov qword [rsp + 0x68], r8
mov qword [rbp + 0x60], rbx
jmp 0x140002c83
cmp r14d, 3
jne 0x140002e0b
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 0x140002e2c
cmp r14d, 0x64
jne 0x140002e28
mov eax, dword [r12 + 0x38]
mov r15, r12
mov dword [r13 + 0x54], eax
mov eax, dword [r12 + 0x3c]
mov dword [r13 + 0x58], eax
jmp 0x140002e2c
mov r15, qword [rbp - 0x68]
cmp dword [rbp + 0x1b8], 0
je 0x140002e8e
mov rdi, qword [0x1400b84d8]
mov ecx, r14d
mov rdx, rdi
call fcn.140019734
mov dword [rsp + 0x20], eax
lea rdx, [rbp - 0x60]
mov rax, qword [rdi + 0x1e8]
mov r9, r15
mov rcx, rsi
call qword [0x140097d68]
mov ebx, eax
cmp eax, 1
je 0x14000308e
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 0x1400030b0
lea rcx, [0x1400b81b8]
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, [0x1400b81b8]
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 0x140002f64
mov rdx, rdi
mov ecx, r14d
call fcn.140019734
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 [0x140097d68]
mov ebx, eax
test eax, eax
jne 0x140002f0f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x32
je 0x140002f14
jmp 0x140002f33
cmp eax, 0x32
jne 0x140002f2a
mov rax, qword [rdi + 0x20]
lea rdx, [rbp - 0x60]
mov r8, r12
mov rcx, rsi
call qword [0x140097d68]
mov ebx, eax
cmp ebx, 1
je 0x14000308e
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 0x1400030b0
mov rbx, rdi
mov dword [rbp - 0x54], 1
mov qword [rbp - 0x18], rbx
jmp 0x140002f6d
mov r12, qword [rsp + 0x68]
mov rbx, qword [rbp - 0x18]
mov rcx, rsi
call fcn.14000bf48
cmp dword [rbp - 0x54], 0
mov rdi, rax
je 0x140002fb1
cmp rax, rbx
je 0x140002fb1
lea rcx, [0x1400b81b8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rcx, rsi
call fcn.14006d77c
lea rcx, [0x1400b81b8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
test rdi, rdi
je 0x140003002
cmp rdi, rbx
je 0x1400030b0
mov rdx, rdi
mov ecx, r14d
call fcn.140019734
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.14000c498
mov r12, qword [rsp + 0x70]
cmp eax, 1
je 0x140003093
jmp 0x1400030b5
mov rax, qword [0x1400b84d8]
mov r12, qword [rsp + 0x70]
mov rdi, qword [rax]
test rdi, rdi
je 0x1400030b5
nop word [rax + rax]
cmp rdi, rbx
je 0x140003084
mov rdx, rdi
mov ecx, r14d
call fcn.140019734
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.14000c498
sub eax, 1
je 0x140003093
cmp eax, 1
je 0x1400030b5
mov rbx, qword [rbp - 0x18]
mov rdi, qword [rdi]
test rdi, rdi
jne 0x140003020
jmp 0x1400030b5
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 0x140003165
mov r12, qword [rsp + 0x70]
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 0x14000311d
cmp eax, ebx
je 0x14000311d
mov rax, qword [0x1400b62f8]
lea rdx, [0x1400b62f8]
cmp rax, rdx
je 0x140003165
test byte [rax + 0x44], 0x20
je 0x140003165
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0xf
jmp 0x140003147
mov rax, qword [0x1400b62f8]
lea rdx, [0x1400b62f8]
cmp rax, rdx
je 0x140003165
test byte [rax + 0x44], 0x80
je 0x140003165
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0xe
mov rcx, qword [0x1400b62f8]
lea r8, [0x14009bb10]
mov r9, r12
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x38]
call fcn.14004c328
mov r8, qword [rbp - 0x50]
xor edx, edx
mov rcx, qword [0x1400b8478]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
cmp rsi, r12
je 0x1400031a0
test rsi, rsi
je 0x1400031a0
mov rcx, qword [0x1400b8478]
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.140013380
add rsp, 0x250
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret