Function at 0x140002f50
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 rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x148]
sub rsp, 0x248
mov rax, qword [0x1400b5778]
xor rax, rsp
mov qword [rbp + 0x120], rax
xor edi, edi
mov qword [rbp - 0x68], r9
mov qword [rsp + 0x68], r8
mov r12, rcx
mov qword [rbp + 0x48], rdx
mov r14d, 1
mov qword [rbp - 0x20], rcx
mov r13, rcx
mov dword [rsp + 0x60], 0x7b
lea rbx, [rdi - 1]
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x60], rdi
mov dword [rbp - 0x54], edi
mov qword [rbp - 0x78], rdi
test rcx, rcx
je 0x140002fd8
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rcx + rax*2], di
jne 0x140002fc0
inc rax
cmp rax, 0x21b
ja 0x14001d6de
cmp dword [0x1400b7260], edi
mov qword [rsp + 0x240], rsi
mov qword [rsp + 0x238], r15
mov r15d, 2
je 0x14001d6f6
test r12, r12
je 0x140003023
lea rdx, str._NoCache
mov rcx, r12
call qword [sym.imp.msvcrt.dll_wcsstr]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14001d7e4
xor edi, edi
mov rcx, qword [0x1400b7220]
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 - 0x50], rax
mov r15, rax
test rax, rax
je 0x14001d805
mov dword [rax], 0x6060
mov qword [rax + 0x38], rbx
mov qword [rax + 0x40], rdi
mov qword [rax + 0x50], 0
mov dword [rax + 0x58], edi
mov qword [rax + 0x60], rdi
test r13, r13
je 0x1400030e0
mov rax, rbx
nop dword [rax]
nop dword [rax + rax]
cmp word [r13 + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140003080
mov rcx, qword [0x1400b7220]
lea r14d, [rax*2 + 2]
mov r8d, r14d
mov edx, 8
mov esi, r14d
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14001d871
mov r8d, esi
mov rdx, r13
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov qword [r15 + 0x48], rdi
test rdi, rdi
je 0x14001d8c1
xor edi, edi
lea r14d, [rdi + 1]
mov r8, qword [rsp + 0x68]
test r8, r8
je 0x1400030f5
cmp qword [r8 + 8], 0
jne 0x14000364f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [0x1400b7250]
mov esi, eax
cmp ecx, 0xffffffff
je 0x14001d8ed
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 edi, eax
test eax, eax
jne 0x1400037ba
cmp dword [rbp - 0x40], 4
jne 0x14001d90b
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
nop dword [rax + rax]
lea r9, [rbp + 0x28]
mov r8d, r14d
mov rcx, rax
lea edx, [rdi + 8]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
nop dword [rax + rax]
test eax, eax
je 0x14000394f
mov dword [rbp + 0x68], edi
lea rax, [rbp - 0x30]
xor edi, edi
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], edi
lea rcx, [rbp + 0x68]
mov dword [rsp + 0x40], edi
xor r9d, r9d
mov dword [rsp + 0x38], edi
mov dl, 1
mov dword [rsp + 0x30], edi
lea r8d, [rdi + 2]
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov word [rbp + 0x6c], 0x500
mov qword [rbp - 0x30], rdi
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
nop dword [rax + rax]
test eax, eax
je 0x14001d93f
mov rdx, qword [rbp - 0x30]
lea r8, [rbp - 0x3c]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
je 0x14001d91b
cmp dword [rbp - 0x3c], edi
jne 0x14001d913
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov ecx, esi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
test edi, edi
js 0x14001d963
jne 0x14000364a
mov rcx, r13
call fcn.140003990
xor eax, eax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x78], rax
test r13, r13
je 0x1400037a4
mov byte [rbp + 0x38], al
mov esi, eax
mov qword [rsp + 0x78], rbx
mov r12d, eax
mov qword [rsp + 0x70], rbx
mov r14d, eax
mov dword [rbp - 0x58], 0x58
mov r15d, eax
mov qword [rbp - 0x28], rax
mov qword [rbp + 0x30], 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 0x140003369
xor edx, edx
lea r8d, [rdi + 0x57]
lea rcx, [rbp + 0x70]
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x78]
cmp rcx, rbx
je 0x14001d99b
mov r9d, dword [rbp - 0x58]
lea rax, [rbp - 0x58]
lea r8, [rbp + 0x70]
mov qword [rsp + 0x20], rax
mov edx, 0x19
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
nop dword [rax + rax]
test eax, eax
je 0x14001d9a2
mov rcx, qword [rbp + 0x70]
mov edx, 0x42
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_IsWellKnownSid]
nop dword [rax + rax]
test eax, eax
jne 0x14001d9b6
call qword [sym.imp.KERNELBASE.dll_GetIsEdpEnabled]
nop dword [rax + rax]
mov edi, eax
test r15d, r15d
jne 0x14001d9be
test eax, eax
jne 0x14001d9be
xor edi, edi
mov esi, 1
cmp qword [rsp + 0x70], rbx
jne 0x14001db3a
test r14d, r14d
jne 0x14001da91
test esi, esi
je 0x140003360
mov rcx, qword [rsp + 0x78]
mov rdi, rbx
mov qword [rbp - 0x28], rbx
cmp rcx, rbx
je 0x14000335c
mov rdi, rcx
mov qword [rbp - 0x28], rcx
mov qword [rsp + 0x78], rbx
mov qword [rbp + 0x30], rdi
test r12d, r12d
jne 0x14001db77
mov rcx, qword [rsp + 0x70]
cmp rcx, rbx
jne 0x14001db8c
mov rcx, qword [rsp + 0x78]
cmp rcx, rbx
jne 0x14001dba2
test esi, esi
je 0x140003392
test r15d, r15d
jne 0x14001dbb8
xor r12d, r12d
lea rdx, [rbp - 0x48]
mov ecx, 0x2001f
mov qword [rbp - 0x48], r12
mov r14d, r12d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenCurrentUser]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x14001dbc1
mov rsi, qword [rbp - 0x48]
lea r15, [0x1400b52f8]
test rsi, rsi
je 0x14001dc2f
cmp word [r13], 0x5c
jne 0x140003531
cmp word [r13 + 2], 0x5c
jne 0x140003531
nop word [rax + rax]
inc rbx
cmp word [r13 + rbx*2], r12w
jne 0x1400033f0
cmp rbx, 0x21b
jae 0x14001dccc
mov rcx, qword [0x1400b7220]
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
je 0x14001dc69
lea r8, [0x1400998f0]
mov edx, 0x231
sub r8, rax
mov rcx, rax
lea rax, [rdx + 0x7ffffdcd]
test rax, rax
je 0x14000346c
movzx eax, word [rcx + r8]
test ax, ax
je 0x14000346c
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140003444
jmp 0x14001dcba
test rdx, rdx
je 0x14001dcba
lea r8, [rdi + 0x2a]
mov word [rcx], r12w
cmp r8, r13
je 0x1400034c5
mov r9, r13
mov edx, 0x21c
sub r9, r8
mov rax, r8
lea rcx, [rdx + 0x7ffffde2]
test rcx, rcx
je 0x1400034b8
movzx ecx, word [rax + r9]
test cx, cx
je 0x1400034b8
mov word [rax], cx
add rax, 2
sub rdx, 1
jne 0x140003490
jmp 0x14001dcc3
test rdx, rdx
je 0x14001dcc3
mov word [rax], r12w
movzx eax, word [r8]
test ax, ax
je 0x1400034eb
mov ecx, 0x2c
cmp ax, 0x5c
je 0x140003743
movzx eax, word [r8 + 2]
add r8, 2
test ax, ax
jne 0x1400034d3
lea rax, [rbp - 0x70]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov rcx, qword [0x1400b7220]
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]
test ebx, ebx
je 0x14001dcd6
lea rax, [rbp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, [0x1400995e0]
lea rax, [rbp - 0x70]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, rsi
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r12d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14000357a
mov r14, r13
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
jne 0x14001dce2
mov rcx, qword [rbp - 0x70]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x58], r12
xor r9d, r9d
mov qword [rsp + 0x50], r12
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor edx, edx
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
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 0x1400035e7
mov ecx, dword [rbp - 0x80]
cmp ecx, 0x48
jae 0x14001dd06
mov rdi, r12
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
jne 0x14001ddd8
mov rbx, qword [rbp - 0x28]
cmp rbx, 0xffffffffffffffff
je 0x140003639
test rbx, rbx
je 0x14000362a
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
je 0x14001de24
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test rdi, rdi
jne 0x14001de36
mov r15, qword [rbp - 0x50]
mov r12, qword [rbp - 0x20]
mov r8, qword [rsp + 0x68]
mov ebx, dword [rbp + 0x1a0]
xorps xmm0, xmm0
mov rdx, qword [rbp - 0x68]
xor eax, eax
mov qword [rbp + 0x20], rax
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
cmp ebx, 4
je 0x14000374c
cmp ebx, 3
je 0x14001de71
cmp dword [rbp + 0x1a8], 0
mov esi, 3
je 0x1400037f0
mov rdi, qword [0x1400b7258]
lea eax, [rbx - 3]
cmp eax, 1
lea r9, [rbp - 0x10]
mov ecx, esi
lea eax, [rbx - 3]
cmova ecx, ebx
cmp eax, 1
mov rax, qword [rdi + 0x1e8]
cmova r9, rdx
mov dword [rsp + 0x20], ecx
lea rdx, [rbp - 0x60]
mov rcx, r13
call qword [0x1400978a8]
mov r14d, eax
cmp eax, 1
jne 0x1400037ce
mov qword [r15 + 8], rdi
mov ebx, 1
mov rax, qword [rbp - 0x60]
mov qword [r15 + 0x10], rax
mov rax, qword [rbp + 0x48]
mov qword [rax], r15
mov r8, qword [rbp - 0x78]
xor edx, edx
mov rcx, qword [0x1400b7220]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
cmp r13, r12
jne 0x14001e077
mov eax, ebx
mov rsi, qword [rsp + 0x240]
mov r15, qword [rsp + 0x238]
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.1400126a0
add rsp, 0x248
pop r14
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
mov word [r8], cx
jmp 0x1400034dd
mov eax, dword [rdx + 0x30]
mov dword [r15 + 0x54], eax
mov eax, dword [rdx + 0x34]
mov dword [r15 + 0x58], eax
mov eax, dword [rdx]
mov dword [rbp - 0xc], eax
mov rax, qword [rdx + 8]
mov qword [rbp], rax
mov rax, qword [rdx + 0x10]
mov qword [rbp + 8], rax
mov eax, dword [rdx + 0x18]
mov dword [rbp + 0x10], eax
mov eax, dword [rdx + 0x1c]
mov dword [rbp + 0x14], eax
mov eax, dword [rdx + 0x20]
mov dword [rbp + 0x18], eax
movzx eax, word [rdx + 0x24]
mov word [rbp + 0x1c], ax
mov rax, qword [rdx + 0x28]
mov qword [rbp + 0x20], rax
mov dword [rbp - 8], 0x28
mov dword [rbp - 0x10], 0x38
jmp 0x140003680
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
jmp 0x14000364a
cmp eax, 0x6bd
jne 0x14001d8f5
xor ecx, ecx
mov edi, ecx
jmp 0x14000320c
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.14000b978
cmp r14d, 2
je 0x1400038e6
lea rcx, [0x1400b6f68]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rcx, r13
call fcn.14000b804
lea rcx, [0x1400b6f68]
mov rdi, rax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
test rdi, rdi
jne 0x14001deaa
mov r14, qword [rbp - 0x18]
mov rcx, r13
call fcn.14000afd0
cmp dword [rbp - 0x54], 0
mov rdi, rax
jne 0x14001df58
test rdi, rdi
jne 0x14001df95
mov rax, qword [0x1400b7258]
mov rdi, qword [rax]
test rdi, rdi
je 0x1400038e6
cmp rdi, r14
je 0x1400038da
lea eax, [rbx - 3]
cmp eax, 1
ja 0x14001dfeb
mov r15d, esi
lea eax, [rbx - 3]
cmp eax, 1
ja 0x14001dff3
lea r14, [rbp - 0x10]
mov rcx, qword [rdi + 8]
lea rdx, str.win32spl.dll
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], r15d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], r14
mov rdx, r12
mov qword [rsp + 0x20], rax
cmovne rdx, r13
mov rcx, rdi
call fcn.14000b8ac
sub eax, 1
je 0x14001dffc
cmp eax, 1
je 0x1400038e6
mov r14, qword [rbp - 0x18]
mov rdi, qword [rdi]
test rdi, rdi
jne 0x14000385f
mov rcx, qword [rbp - 0x50]
call fcn.14000cc80
cmp dword [rsp + 0x60], 0x7b
jne 0x1400038fe
mov dword [rsp + 0x60], 0x709
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov ebx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x709
jne 0x14001e005
mov rax, qword [0x1400b52f8]
lea rcx, [0x1400b52f8]
cmp rax, rcx
je 0x1400036ee
test byte [rax + 0x44], 0x80
je 0x1400036ee
jmp 0x14001e042
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x14000396a
movzx edi, ax
or edi, 0x80070000
cmp edi, 0x800703f0
je 0x1400037c5
jmp 0x14000320c
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 0x140003722
call sym.spoolsv.exe_PrvRevertToPrinterSelf
lea r8, str.RouterPreInitEvent
xor edx, edx
mov ecx, r15d
mov rsi, rax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenEventW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14001d78c
mov rax, qword [0x1400b52f8]
lea rcx, [0x1400b52f8]
cmp rax, rcx
je 0x14001d760
test byte [rax + 0x44], 0x20
je 0x14001d760
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400b52f8]
lea edx, [rdi + 0x15]
mov r9d, eax
lea r8, [0x14009b580]
mov rcx, qword [rcx + 0x38]
call fcn.14002d778
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
xor r8d, r8d
lea rcx, [0x14009a248]
mov edx, eax
call fcn.140052f98
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test rsi, rsi
je 0x14001d7d3
mov rcx, rsi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
test eax, eax
jne 0x14001d7d3
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.140052b90
mov edx, 0xffffffff
call fcn.14004e4d0
xor edi, edi
jmp 0x140002ffa
mov rcx, r12
call sym.spoolsv.exe_PrvDllAllocSplStr
mov r13, rax
test rax, rax
je 0x14001d86a
sub rdi, r12
sar rdi, 1
xor ecx, ecx
mov word [rax + rdi*2], cx
jmp 0x140003021
mov ecx, 8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400b52f8]
lea rax, [0x1400b52f8]
cmp rcx, rax
je 0x14001d848
test byte [rcx + 0x44], 0x20
je 0x14001d848
mov rcx, qword [rcx + 0x38]
lea r8, [0x14009b5a0]
mov edx, 0xa
lea r9d, [rdx + 0x5e]
call fcn.14002d778
cmp r13, r12
je 0x14001d86a
test r13, r13
je 0x14001d86a
mov rcx, qword [0x1400b7220]
mov r8, r13
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 0x140003712
mov ecx, 8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400b52f8]
lea rax, [0x1400b52f8]
cmp rcx, rax
je 0x1400030cd
test byte [rcx + 0x44], 0x20
je 0x1400030cd
mov rcx, qword [rcx + 0x38]
lea r8, [0x14009b5a0]
mov edx, 0xa
mov r9d, r14d
call fcn.14002d778
nop
jmp 0x1400030cd
cmp r13, r12
je 0x14001d8de
mov rcx, qword [0x1400b7220]
mov r8, r13
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rcx, r15
call fcn.14000cc80
xor eax, eax
jmp 0x140003712
mov rax, rdi
jmp 0x14000311e
test eax, eax
jle 0x14000320c
movzx edi, ax
or edi, 0x80070000
jmp 0x14000320c
mov edi, r14d
jmp 0x14000320c
mov edi, r14d
jmp 0x1400031ec
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x1400031ec
movzx edi, ax
or edi, 0x80070000
jmp 0x1400031ec
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x1400031fc
movzx edi, ax
or edi, 0x80070000
jmp 0x1400031fc
mov rcx, qword [0x1400b52f8]
lea rax, [0x1400b52f8]
cmp rcx, rax
je 0x14001d994
test byte [rcx + 0x44], 0x20
je 0x14001d994
mov rcx, qword [rcx + 0x38]
lea r8, [0x14009b640]
mov edx, 0x12
mov r9d, edi
call fcn.14002d778
test edi, edi
jmp 0x140003222
xor ecx, ecx
jmp 0x1400032ba
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov r12d, eax
jmp 0x140003360
mov r15d, edi
jmp 0x140003301
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
cmp rcx, rbx
mov eax, 2
mov edx, 0x8e
cmove rcx, rsi
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 0x14001da0c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov r12d, eax
jmp 0x140003360
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_RevertToSelf]
nop dword [rax + rax]
test eax, eax
jne 0x14001da30
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov r12d, eax
jmp 0x140003360
mov r14d, 1
test edi, edi
je 0x14001da50
mov rcx, qword [rsp + 0x70]
mov rdi, rsi
cmp rcx, rbx
cmove rcx, rsi
call fcn.1400542b0
jmp 0x14001da52
xor edi, edi
test r15d, r15d
je 0x140003322
xor edx, edx
mov dword [rbp - 0x38], 0x44
lea r9, [rbp - 0x38]
lea r8, [rbp + 0xd0]
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 0x14001dab1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov r12d, eax
mov rdx, qword [rsp + 0x78]
cmp rdx, rbx
cmove rdx, rdi
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_SetThreadToken]
nop dword [rax + rax]
nop
jmp 0x14000333b
xor edx, edx
lea rcx, [rbp + 0x7c]
lea r8d, [rdx + 0x4c]
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x70]
lea rax, [rbp + 0xd0]
mov r9d, 0x58
mov qword [rbp + 0x70], rax
cmp rcx, rbx
mov dword [rbp + 0x78], 0x60
lea r8, [rbp + 0x70]
cmove rcx, rdi
lea edx, [r9 - 0x3f]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_SetTokenInformation]
nop dword [rax + rax]
test eax, eax
jne 0x14001db0d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov r12d, eax
jmp 0x14001da91
mov rcx, qword [rsp + 0x70]
cmp rcx, rbx
cmove rcx, rdi
call fcn.140073744
test eax, eax
jne 0x140003322
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov r12d, eax
jmp 0x14001da91
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140003332
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 0x14000333f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov r12d, eax
mov esi, edi
jmp 0x140003332
mov ecx, r12d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
nop
jmp 0x140003369
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov qword [rsp + 0x70], rbx
jmp 0x140003377
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov qword [rsp + 0x78], rbx
jmp 0x140003385
mov byte [rbp + 0x38], 1
jmp 0x140003392
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
cmp edi, 5
je 0x14001dc07
mov rcx, qword [0x1400b52f8]
lea r15, [0x1400b52f8]
cmp rcx, r15
je 0x14001dc0e
test byte [rcx + 0x44], 0x20
je 0x14001dc0e
mov rcx, qword [rcx + 0x38]
lea r8, [0x14009b640]
mov edx, 0xf
mov r9d, edi
call fcn.14002d778
jmp 0x14001dc0e
lea r15, [0x1400b52f8]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14001dc23
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rsi, r12
mov qword [rbp - 0x48], r12
jmp 0x1400033c6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 5
jne 0x14001dc4d
mov ecx, 0x20019
call sym.spoolsv.exe_PrvSplGetClientUserHandle
mov rsi, rax
test rsi, rsi
jne 0x1400033cf
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140003589
mov ecx, 8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400b52f8]
cmp rcx, r15
je 0x14001dca7
test byte [rcx + 0x44], 0x20
je 0x14001dca7
mov rcx, qword [rcx + 0x38]
lea r8, [0x14009b5a0]
mov edx, 0xa
mov r9d, 0x462
call fcn.14002d778
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140003529
sub rcx, 2
jmp 0x140003475
sub rax, 2
jmp 0x1400034c1
mov ebx, 0x57
jmp 0x140003529
lea r14, str.DevMode
jmp 0x14000357a
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
mov rdi, r12
jmp 0x1400035fa
call sym.spoolsv.exe_PrvDllAllocSplMem
mov qword [rbp - 0x78], rax
mov rdi, rax
test rax, rax
jne 0x14001dd2a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x1400035ea
mov rcx, qword [rbp - 0x70]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, r14
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 0x14001ddad
mov r8d, dword [rbp - 0x80]
mov r9d, 0x8007000d
cmp r8, 0x4c
jb 0x14001dd82
movzx ecx, word [rdi + 0x46]
movzx eax, word [rdi + 0x44]
add rcx, rax
cmp r8, rcx
jb 0x14001dd82
mov rcx, rdi
call fcn.1400052e0
mov r9d, eax
mov ecx, r9d
call fcn.14000664c
mov ebx, eax
test eax, eax
je 0x14001ddcc
mov rcx, qword [rbp - 0x70]
mov rdx, r14
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 [0x1400b7220]
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 rdi, r12
mov qword [rbp - 0x78], r12
cmp ebx, 2
cmove ebx, r12d
jmp 0x1400035ea
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 0x14001de15
mov rcx, qword [0x1400b52f8]
cmp rcx, r15
je 0x14001de15
test byte [rcx + 0x44], 0x20
je 0x14001de15
mov rcx, qword [rcx + 0x38]
lea r8, [0x14009b6e8]
mov edx, 0xf
mov r9d, ebx
call fcn.14002d778
lea rcx, [rbp + 0x30]
call fcn.14000b1a0
nop
jmp 0x140003642
mov ecx, 1
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14001de4f
mov rax, qword [rcx]
mov qword [rbp + 0x50], rax
mov eax, dword [rcx + 0x10]
mov dword [rbp + 0x60], eax
jmp 0x14001de57
mov qword [rbp + 0x50], r12
mov dword [rbp + 0x60], r12d
mov r12, qword [rbp - 0x20]
lea r8, [rbp + 0x50]
mov r15, qword [rbp - 0x50]
mov qword [rsp + 0x68], r8
mov qword [rbp + 0x58], rdi
jmp 0x14000364f
mov eax, dword [rdx + 4]
mov dword [rbp - 0xc], eax
mov rax, qword [rdx + 0x10]
mov qword [rbp], rax
mov rax, qword [rdx + 0x18]
mov qword [rbp + 8], rax
mov eax, dword [rdx + 0x20]
mov dword [rbp + 0x10], eax
mov eax, dword [rdx + 0x24]
mov dword [rbp + 0x14], eax
mov eax, dword [rdx + 0x28]
mov dword [rbp + 0x18], eax
movzx eax, word [rdx + 0x2c]
mov word [rbp + 0x1c], ax
mov rax, qword [rdx + 0x30]
jmp 0x14000378d
mov r8, qword [rsp + 0x68]
lea eax, [rbx - 3]
cmp eax, 1
lea r9, [rbp - 0x10]
mov ecx, esi
lea eax, [rbx - 3]
cmova ecx, ebx
lea rdx, [rbp - 0x60]
cmp eax, 1
mov dword [rsp + 0x20], ecx
mov rax, qword [rdi + 0x1e8]
mov rcx, r13
cmova r9, qword [rbp - 0x68]
call qword [0x1400978a8]
mov r14d, eax
test eax, eax
jne 0x14001defb
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x32
jne 0x14001df23
jmp 0x14001df00
cmp eax, 0x32
jne 0x14001df19
mov r8, qword [rsp + 0x68]
lea rdx, [rbp - 0x60]
mov rax, qword [rdi + 0x20]
mov rcx, r13
call qword [0x1400978a8]
mov r14d, eax
cmp r14d, 1
je 0x1400036d6
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.14000b978
cmp r14d, 2
je 0x1400038e6
mov dword [rbp - 0x54], 1
mov r14, rdi
mov qword [rbp - 0x18], rdi
jmp 0x14000382e
cmp rdi, r14
je 0x140003843
lea rcx, [0x1400b6f68]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rcx, r13
call fcn.14006e640
lea rcx, [0x1400b6f68]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
nop
jmp 0x140003843
cmp rdi, r14
je 0x1400038e6
mov r9, qword [rsp + 0x68]
lea eax, [rbx - 3]
cmp eax, 1
lea rcx, [rbp - 0x10]
lea eax, [rbx - 3]
mov rdx, r13
cmova esi, ebx
lea r8, [rbp - 0x60]
cmp eax, 1
mov dword [rsp + 0x30], esi
lea rax, [rsp + 0x60]
cmova rcx, qword [rbp - 0x68]
mov qword [rsp + 0x28], rcx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.14000b8ac
cmp eax, 1
je 0x1400036d6
jmp 0x1400038e6
mov r15d, ebx
jmp 0x140003873
mov r14, qword [rbp - 0x68]
jmp 0x140003883
mov r15, qword [rbp - 0x50]
jmp 0x1400036d6
cmp eax, 5
je 0x140003929
mov rax, qword [0x1400b52f8]
lea rcx, [0x1400b52f8]
cmp rax, rcx
je 0x1400036ee
test byte [rax + 0x44], 0x20
je 0x1400036ee
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0xb
jmp 0x14001e053
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0xa
mov rcx, qword [0x1400b52f8]
lea r8, [0x14009b610]
mov r9, r12
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x38]
call fcn.14004cf34
nop
jmp 0x1400036ee
test r13, r13
je 0x140003710
mov rcx, qword [0x1400b7220]
mov r8, r13
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
nop
jmp 0x140003710