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 0x1400031c4
cmp dword [0x1400b9560], 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.140030af8
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.1400536a8
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.1400532a0
mov edx, 0xffffffff
call fcn.14005888c
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 [0x1400b9528]
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.140030af8
cmp rsi, r12
je 0x14000220d
test rsi, rsi
je 0x14000220d
mov rcx, qword [0x1400b9528]
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 0x1400031bc
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 [0x1400b9528]
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.140030af8
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 [0x1400b9528]
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.14000cdbc
xor eax, eax
jmp 0x1400031b4
lea r15, [0x1400b72f8]
mov r8, qword [rsp + 0x68]
test r8, r8
je 0x140002329
cmp qword [r8 + 8], 0
jne 0x140002cd2
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 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.14000dcc4
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.14000dcc4
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.14000dcc4
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, [0x14009cc08]
mov edx, 0x12
mov r9d, ebx
call fcn.140030af8
test ebx, ebx
jne 0x140002ccd
mov rcx, rsi
call fcn.1400031f0
xor edi, edi
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x60], rdi
test rsi, rsi
jne 0x1400024f9
lea ecx, [rdi + 6]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
jmp 0x140002ccd
xor eax, eax
mov byte [rbp + 0x40], dil
mov r13d, eax
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], r14
mov r15d, edi
mov dword [rbp - 0x68], 0x58
mov ebx, edi
mov r12d, edi
mov qword [rbp - 0x38], 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, [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 0x14000282b
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 0x1400025cb
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140002819
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 0x140002604
test eax, eax
je 0x140002781
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 0x140002651
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140002814
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_RevertToSelf]
nop dword [rax + rax]
test eax, eax
jne 0x140002674
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140002814
mov r12d, 1
test edi, edi
je 0x140002694
mov rcx, qword [rsp + 0x70]
mov rdi, rbx
cmp rcx, r14
cmove rcx, rbx
call fcn.1400549c0
jmp 0x140002696
xor edi, edi
test r13d, r13d
je 0x140002781
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 0x1400026d9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x1400027cf
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 0x14000275c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x1400027cf
mov rcx, qword [rsp + 0x70]
cmp rcx, r14
cmove rcx, rdi
call fcn.140073fd8
test eax, eax
jne 0x140002781
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x1400027cf
cmp qword [rsp + 0x70], r14
jne 0x140002790
mov r15d, 1
jmp 0x1400027ca
mov rcx, qword [rsp + 0x70]
mov edi, 1
mov r15d, edi
test rcx, rcx
je 0x1400027ca
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 0x1400027f3
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 0x1400027ee
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 0x140002814
mov rcx, qword [rsp + 0x78]
mov rdi, r14
mov qword [rbp - 0x38], r14
cmp rcx, r14
je 0x140002810
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 0x14000282b
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 0x140002846
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 0x140002861
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 0x140002874
xor al, al
test r13d, r13d
movzx eax, al
cmovne eax, edi
mov byte [rbp + 0x40], al
xor edi, edi
lea rdx, [rbp - 0x58]
mov ecx, 0x2001f
mov qword [rbp - 0x58], 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 0x1400028f8
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 0x1400028da
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x1400028da
test byte [rcx + 0x44], 0x20
je 0x1400028da
mov rcx, qword [rcx + 0x38]
lea edx, [rdi + 0xf]
mov r9d, ebx
lea r8, [0x14009cc08]
call fcn.140030af8
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x1400028ef
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov r15, rdi
mov qword [rbp - 0x58], rdi
jmp 0x1400028fc
mov r15, qword [rbp - 0x58]
test r15, r15
jne 0x140002937
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 5
jne 0x14000291f
mov ecx, 0x20019
call sym.spoolsv.exe_PrvSplGetClientUserHandle
mov r15, rax
test r15, r15
jne 0x140002937
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140002b12
cmp word [rsi], 0x5c
jne 0x140002abc
cmp word [rsi + 2], 0x5c
jne 0x140002abc
nop dword [rax]
inc r14
cmp word [rsi + r14*2], di
jne 0x140002950
cmp r14, 0x21b
jae 0x140002aaa
mov rcx, qword [0x1400b9528]
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 0x1400029e3
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.140030af8
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 0x140002aaf
mov edx, 0x231
call fcn.140017080
test eax, eax
js 0x140002a0a
lea r9, [0x14009b1c0]
mov edx, 0x231
mov rcx, rdi
call fcn.140016f4c
xor r8d, r8d
jmp 0x140002a11
xor r8d, r8d
mov word [rdi], r8w
lea r11, [rdi + 0x2a]
cmp r11, rsi
je 0x140002a3e
mov edx, 0x21c
call fcn.140017080
test eax, eax
js 0x140002a3a
mov r9, rsi
mov edx, 0x21c
mov rcx, r11
call fcn.140016f4c
jmp 0x140002a3e
mov word [r11], r8w
movzx eax, word [r11]
test ax, ax
je 0x140002a68
mov ecx, 0x2c
nop dword [rax]
cmp ax, 0x5c
jne 0x140002a5a
mov word [r11], cx
movzx eax, word [r11 + 2]
add r11, 2
test ax, ax
jne 0x140002a50
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 [0x1400b9528]
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 0x140002aaf
mov ebx, 0x57
test ebx, ebx
jne 0x140002abc
lea r12, str.DevMode
jmp 0x140002b03
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], 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 0x140002b37
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 0x140002c70
mov rcx, qword [rbp - 0x78]
lea rax, [rbp - 0x80]
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 0x140002c60
mov ecx, dword [rbp - 0x80]
cmp ecx, 0x48
jb 0x140002c60
call sym.spoolsv.exe_PrvDllAllocSplMem
mov qword [rbp - 0x60], rax
mov rdi, rax
test rax, rax
jne 0x140002bb5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140002c60
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 0x140002c38
mov r8d, dword [rbp - 0x80]
mov r9d, 0x8007000d
cmp r8, 0x4c
jb 0x140002c0d
movzx ecx, word [rdi + 0x46]
movzx eax, word [rdi + 0x44]
add rcx, rax
cmp r8, rcx
jb 0x140002c0d
mov rcx, rdi
call fcn.140006d70
mov r9d, eax
mov ecx, r9d
call fcn.1400080dc
mov ebx, eax
test eax, eax
je 0x140002c58
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 [0x1400b9528]
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 - 0x60], rdi
jmp 0x140002c5a
xor edi, edi
cmp ebx, 2
cmove ebx, edi
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 0x140002d64
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 0x140002cbc
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x140002cbc
test byte [rcx + 0x44], 0x20
je 0x140002cbc
mov rcx, qword [rcx + 0x38]
lea r8, [0x14009cd28]
mov edx, 0xf
mov r9d, ebx
call fcn.140030af8
lea rcx, [rbp + 0x38]
call fcn.14000c0f8
mov r13, qword [rbp - 0x28]
mov r12, qword [rbp - 0x30]
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 0x140002dee
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 0x140002e48
mov rbx, qword [rbp - 0x38]
cmp rbx, 0xffffffffffffffff
je 0x140002da7
test rbx, rbx
je 0x140002d98
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 0x140002d98
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 - 0x60]
test rbx, rbx
je 0x140002cc5
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140002dcd
mov rax, qword [rcx]
mov qword [rbp + 0x58], rax
mov eax, dword [rcx + 0x10]
mov dword [rbp + 0x68], eax
jmp 0x140002dd4
mov qword [rbp + 0x58], rdi
mov dword [rbp + 0x68], edi
mov r12, qword [rbp - 0x30]
lea r8, [rbp + 0x58]
mov r13, qword [rbp - 0x28]
mov qword [rsp + 0x68], r8
mov qword [rbp + 0x60], rbx
jmp 0x140002cd2
cmp r14d, 3
jne 0x140002e44
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 0x140002e48
mov r15, qword [rbp - 0x20]
cmp dword [rbp + 0x1b8], 0
je 0x140002eaa
mov rdi, qword [0x1400b9558]
mov ecx, r14d
mov rdx, rdi
call fcn.14001aedc
mov dword [rsp + 0x20], eax
lea rdx, [rbp - 0x70]
mov rax, qword [rdi + 0x1e8]
mov r9, r15
mov rcx, rsi
call qword [0x140098d68]
mov ebx, eax
cmp eax, 1
je 0x140003115
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.14000c574
cmp ebx, 2
je 0x140003010
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.14000c400
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 0x140002f7f
mov rdx, rdi
mov ecx, r14d
call fcn.14001aedc
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 0x140002f28
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x32
je 0x140002f2d
jmp 0x140002f4e
cmp eax, 0x32
jne 0x140002f45
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 0x140003115
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.14000c574
cmp ebx, 2
je 0x140003010
mov rbx, rdi
mov dword [rbp - 0x64], 1
mov qword [rbp - 0x18], rbx
jmp 0x140002f83
mov rbx, qword [rbp - 0x18]
mov rcx, rsi
call fcn.14000bf58
cmp dword [rbp - 0x64], 0
mov rdi, rax
je 0x140002fc7
cmp rax, rbx
je 0x140002fc7
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.14006eedc
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 0x14000308b
cmp rdi, rbx
je 0x140003010
mov rdx, rdi
mov ecx, r14d
call fcn.14001aedc
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.14000c4a8
cmp eax, 1
je 0x140003115
mov rcx, r13
call fcn.14000cdbc
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 0x14000312f
cmp eax, ebx
je 0x14000312f
mov rax, qword [0x1400b72f8]
lea rdx, [0x1400b72f8]
cmp rax, rdx
je 0x140003177
test byte [rax + 0x44], 0x20
je 0x140003177
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0xf
jmp 0x140003159
mov rax, qword [0x1400b9558]
mov rdi, qword [rax]
test rdi, rdi
je 0x140003010
nop
cmp rdi, rbx
je 0x140003108
mov rdx, rdi
mov ecx, r14d
call fcn.14001aedc
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.14000c4a8
sub eax, 1
je 0x140003115
cmp eax, 1
je 0x140003010
mov rbx, qword [rbp - 0x18]
mov rdi, qword [rdi]
test rdi, rdi
jne 0x1400030a0
jmp 0x140003010
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 0x140003177
mov rax, qword [0x1400b72f8]
lea rdx, [0x1400b72f8]
cmp rax, rdx
je 0x140003177
test byte [rax + 0x44], 0x80
je 0x140003177
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, [0x14009cb60]
mov r9, r12
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x38]
call fcn.14004dac8
mov r8, qword [rbp - 0x60]
xor edx, edx
mov rcx, qword [0x1400b9528]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
cmp rsi, r12
je 0x1400031b2
test rsi, rsi
je 0x1400031b2
mov rcx, qword [0x1400b9528]
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.140013440
add rsp, 0x258
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret