Function at 0x140009a20
Capabilities:
Delete registry value
Get thread local storage value
Get token membership
Query or enumerate registry value
Terminate process

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x1400ad768]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov r15, qword [rbp + 0x130]
mov rsi, rcx
xor ecx, ecx
mov dword [rsp + 0x60], r9d
mov qword [rbp - 0x10], r15
mov rax, r8
mov qword [rsp + 0x70], rax
mov r12d, edx
mov qword [rbp - 0x60], rcx
mov r14d, ecx
mov qword [rbp - 0x58], rcx
mov r13d, ecx
mov qword [rbp - 0x80], rcx
mov edi, ecx
mov qword [rbp - 0x38], rcx
mov qword [rbp - 0x30], rcx
mov dword [rbp - 0x48], ecx
mov dword [rbp - 0x78], ecx
mov dword [rbp - 0x50], ecx
mov dword [rbp - 0x40], ecx
test rsi, rsi
je 0x1400293d7
cmp dword [rsi], 0x6060
jne 0x1400293d7
mov qword [rsp + 0x1c8], rbx
mov ebx, r9d
test rax, rax
je 0x140009fc9
test byte [0x1400af180], 2
jne 0x140028b60
cmp r12d, 3
jae 0x140009eb5
mov eax, r12d
sub eax, 2
jne 0x140009fd7
cmp qword [rsi + 0x48], rdi
je 0x140009ebf
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x1400af184]
mov edi, eax
cmp ecx, 0xffffffff
je 0x140028cf4
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
xor r15d, r15d
lea rdx, [rbp - 0x68]
mov rcx, rax
call qword [sym.imp.RPCRT4.dll_I_RpcBindingInqTransportType]
mov ebx, eax
test eax, eax
jne 0x140028cff
cmp dword [rbp - 0x68], 4
jne 0x140028d24
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
mov rcx, rax
lea r9, [rsp + 0x78]
lea edx, [rbx + 8]
lea r8d, [rbx + 1]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
test eax, eax
je 0x140028d74
lea rax, [rbp - 0x80]
mov dword [rbp - 8], r13d
mov qword [rsp + 0x50], rax
lea r8d, [rbx + 2]
mov dword [rsp + 0x48], r15d
lea rcx, [rbp - 8]
mov dword [rsp + 0x40], r15d
xor r9d, r9d
mov dword [rsp + 0x38], r15d
mov dl, 1
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
mov word [rbp - 4], 0x500
mov qword [rbp - 0x80], r15
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140028d56
mov rdx, qword [rbp - 0x80]
lea r8, [rsp + 0x64]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
test eax, eax
je 0x140028d38
cmp dword [rsp + 0x64], r13d
jne 0x140028d2e
mov ebx, r15d
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test ebx, ebx
js 0x140028d98
jne 0x140009ebf
mov rcx, qword [rsi + 0x48]
lea rdx, str._DrvConvert
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
jne 0x140009ebf
mov ecx, dword [0x1400ad9e8]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
cmp rax, 2
je 0x140009ebf
mov rax, qword [rsi + 0x48]
mov r14, r15
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x80], r15
test rax, rax
je 0x140028dd0
xor eax, eax
mov byte [rbp - 0x18], r13b
mov dword [rbp - 8], eax
mov ebx, eax
mov dword [rsp + 0x64], eax
mov edi, eax
mov qword [rbp - 0x20], rax
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x78], 0xffffffffffffffff
mov qword [rbp - 0x70], 0xffffffffffffffff
mov dword [rbp - 0x68], 0x58
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
mov rcx, rax
lea r9, [rsp + 0x78]
lea edx, [rbx + 0xe]
lea r8d, [rbx + 1]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
test eax, eax
je 0x140009d52
xor edx, edx
lea r8d, [rbx + 0x58]
lea rcx, [rbp]
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x140028de1
mov r9d, dword [rbp - 0x68]
lea rax, [rbp - 0x68]
lea r8, [rbp]
mov qword [rsp + 0x20], rax
mov edx, 0x19
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
test eax, eax
je 0x140028dea
mov rcx, qword [rbp]
mov edx, 0x42
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_IsWellKnownSid]
test eax, eax
jne 0x140028df6
call qword [sym.imp.KERNELBASE.dll_GetIsEdpEnabled]
mov edi, eax
cmp dword [rsp + 0x68], ebx
jne 0x140028e03
test eax, eax
jne 0x140028e03
mov edi, dword [rsp + 0x68]
mov eax, ebx
cmp qword [rbp - 0x70], 0xffffffffffffffff
mov r15d, 1
jne 0x140028f4a
test eax, eax
jne 0x140028eb6
test r15d, r15d
je 0x140009d47
mov rcx, qword [rsp + 0x78]
mov rbx, 0xffffffffffffffff
cmp rcx, rbx
je 0x140009d43
mov rbx, rcx
mov qword [rsp + 0x78], 0xffffffffffffffff
mov qword [rbp - 0x20], rbx
mov eax, dword [rbp - 8]
test eax, eax
jne 0x140028f81
mov rcx, qword [rbp - 0x70]
cmp rcx, 0xffffffffffffffff
jne 0x140028f8f
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
jne 0x140028fa2
test r15d, r15d
je 0x140009d7c
test edi, edi
jne 0x140028fae
xor r15d, r15d
lea rdx, [rsp + 0x78]
mov ecx, 0x2001f
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x70], r15
mov qword [rsp + 0x78], r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenCurrentUser]
mov edi, eax
test eax, eax
jne 0x140028fb7
mov rdi, qword [rsp + 0x78]
test rdi, rdi
je 0x140029012
mov rax, qword [rbp - 0x28]
cmp word [rax], 0x5c
je 0x140009fee
lea rax, [rbp - 0x68]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, [0x140091110]
lea rax, [rbp - 0x80]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, rdi
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r15d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov r15d, eax
test eax, eax
jne 0x140009e0b
mov rax, qword [rbp - 0x28]
mov qword [rbp - 0x70], rax
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test r15d, r15d
jne 0x14002904d
xor ecx, ecx
lea rax, [rsp + 0x64]
mov qword [rsp + 0x58], rcx
xor r9d, r9d
mov qword [rsp + 0x50], rcx
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor edx, edx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
mov edi, eax
test eax, eax
jne 0x140009e71
mov ecx, dword [rsp + 0x64]
cmp ecx, 0x48
jae 0x140029063
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test edi, edi
jne 0x140029121
cmp rbx, 0xffffffffffffffff
je 0x140009eaa
test rbx, rbx
je 0x140009ea1
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_SetThreadToken]
test eax, eax
je 0x14002916e
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test r14, r14
jne 0x14002917a
jmp 0x140009ebf
cmp r12d, 8
jae 0x140009ad4
mov ebx, dword [rsp + 0x60]
mov r15, qword [rsp + 0x70]
mov rax, qword [rsi + 8]
xor edx, edx
mov ecx, ebx
mov r9d, edx
sub ecx, dword [rbp - 0x78]
mov r8, r15
cmp ebx, dword [rbp - 0x78]
mov edx, r12d
mov rbx, qword [rbp - 0x10]
mov rax, qword [rax + 0x58]
cmovae r9d, ecx
mov rcx, qword [rsi + 0x10]
and r9d, 0xfffffff8
mov qword [rsp + 0x20], rbx
call qword [0x14008f7f0]
mov ecx, dword [rbx]
mov edi, eax
add ecx, 7
and ecx, 0xfffffff8
add ecx, dword [rbp - 0x50]
add ecx, dword [rbp - 0x78]
mov dword [rbx], ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r11, qword [rbp - 0x60]
mov ebx, eax
cmp eax, 0x7a
jne 0x14000a01b
mov r9d, dword [rbp - 0x78]
test r9d, r9d
jne 0x14002925c
mov rax, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x58]
test rcx, rcx
jne 0x140029363
mov rcx, qword [0x1400af198]
mov r8, r14
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov r8, qword [rbp - 0x30]
xor edx, edx
mov rcx, qword [0x1400af198]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov rcx, qword [0x1400af198]
mov r8, r13
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test edi, edi
je 0x140009fbf
test byte [0x1400af180], 2
jne 0x1400293ba
mov eax, edi
mov rbx, qword [rsp + 0x1c8]
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.14001aad0
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp ebx, 0x7a
je 0x140009f86
jmp 0x140029378
test r9d, r9d
je 0x140009abd
jmp 0x140028b4e
sub eax, 6
je 0x140028c49
cmp eax, 1
jne 0x140009ebf
jmp 0x140028b83
cmp word [rax + 2], 0x5c
jne 0x140009dc2
lea r8, [rbp - 0x80]
mov rdx, rax
mov rcx, rdi
call fcn.14000a700
mov r15d, eax
test eax, eax
je 0x140029041
xor r15d, r15d
jmp 0x140009dc2
cmp r12d, 9
jne 0x140009f25
jmp 0x140029237
mov ecx, 0x6f8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x140009f95
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r8, qword [rsi + 0x48]
lea rdx, [0x14009d688]
mov r9d, r12d
mov dword [rsp + 0x20], eax
call fcn.14005f2ec
nop
jmp 0x140009aca
cmp qword [rsi + 0x48], rdi
jne 0x140028bb5
mov ecx, 6
jmp 0x140028b95
mov ecx, 0x32
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test byte [0x1400af180], 2
je 0x140028b59
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r9d, 9
jmp 0x140028c73
call sym.spoolsv.exe_PrvCheckLocalCall
test eax, eax
jne 0x140028b90
mov dword [r15], 8
lea r8, [rbp - 0x80]
mov rdx, qword [rsi + 0x48]
call fcn.1400682e0
mov r14, qword [rbp - 0x80]
test eax, eax
je 0x140028bfb
mov rcx, r14
mov qword [rbp - 0x60], rcx
test r14, r14
je 0x140028bfe
movzx edx, word [r14 + 0x46]
movzx eax, word [r14 + 0x44]
add edx, eax
add dword [r15], edx
mov qword [rbp - 0x48], rdx
jmp 0x140028bfe
mov rcx, rdi
cmp ebx, dword [r15]
jb 0x140029222
mov r15, qword [rsp + 0x70]
mov edi, 1
test rcx, rcx
je 0x140028c3f
lea rax, [r15 + 8]
mov rcx, rsi
mov qword [rbp - 0x58], rax
mov qword [r15], rax
call fcn.14005eb74
mov qword [rbp - 0x30], rax
test rax, rax
jne 0x140009f10
xor edx, edx
mov edi, edx
jmp 0x140009f10
xor edx, edx
mov qword [r15], rdx
jmp 0x140009f10
cmp qword [rsi + 0x48], rdi
jne 0x140028c8c
mov ecx, 2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test byte [0x1400af180], 2
je 0x140028b59
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r9d, 8
mov r8, qword [rsi + 0x48]
lea rdx, [0x14009d558]
mov dword [rsp + 0x20], eax
call fcn.14005f2ec
jmp 0x140028b59
mov rcx, rsi
mov dword [r15], 8
call fcn.14005eb74
mov qword [rbp - 0x30], rax
test rax, rax
je 0x14002922d
mov rcx, qword [rax + 0x38]
mov qword [rbp - 0x60], rcx
test rcx, rcx
je 0x140028cc6
movzx edx, word [rcx + 0x46]
movzx eax, word [rcx + 0x44]
add edx, eax
add dword [r15], edx
mov qword [rbp - 0x48], rdx
mov eax, dword [r15]
cmp ebx, eax
jb 0x140029222
mov r15, qword [rsp + 0x70]
mov edi, 1
test rcx, rcx
je 0x140028c3f
lea rax, [r15 + 8]
mov qword [rbp - 0x58], rax
mov qword [r15], rax
jmp 0x140009f10
xor r15d, r15d
mov eax, r15d
jmp 0x140009b0a
cmp eax, 0x6bd
je 0x140028d1c
test eax, eax
jle 0x140009bdd
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140009bdd
mov ebx, r15d
jmp 0x140009bdd
mov ebx, 1
jmp 0x140009bdd
mov ebx, 1
jmp 0x140009bc8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x140009bc8
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140009bc8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x140009bd2
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140009bd2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x140028d89
movzx ebx, ax
or ebx, 0x80070000
cmp ebx, 0x800703f0
cmove ebx, r15d
jmp 0x140009bdd
mov rcx, qword [0x1400ad2f8]
lea rax, [0x1400ad2f8]
cmp rcx, rax
je 0x140028dc9
test byte [rcx + 0x1c], 0x20
je 0x140028dc9
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400937b8]
mov edx, 0xe
mov r9d, ebx
call fcn.14002efb8
test ebx, ebx
jmp 0x140009bed
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop
jmp 0x140009ebf
xor edx, edx
mov ecx, edx
jmp 0x140009cad
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop
jmp 0x140009d4a
mov dword [rsp + 0x68], 1
jmp 0x140009ce8
mov rcx, qword [rsp + 0x78]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
cmp rcx, 0xffffffffffffffff
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]
test eax, eax
jne 0x140028e46
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, dword [rsp + 0x68]
jmp 0x140009d4a
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_RevertToSelf]
test eax, eax
jne 0x140028e5f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, dword [rsp + 0x68]
jmp 0x140009d4a
mov eax, 1
mov dword [rsp + 0x64], eax
test edi, edi
je 0x140028e81
mov rcx, qword [rbp - 0x70]
cmp rcx, 0xffffffffffffffff
cmove rcx, rbx
call fcn.1400531d0
mov eax, dword [rsp + 0x64]
mov edi, dword [rsp + 0x68]
test edi, edi
je 0x140009d08
xor edx, edx
mov dword [rsp + 0x68], 0x44
lea r9, [rsp + 0x68]
lea r8, [rbp + 0x60]
lea ecx, [rdx + 0x43]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CreateWellKnownSid]
test eax, eax
jne 0x140028ed1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbp - 8], eax
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xffffffffffffffff
cmove rdx, rbx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_SetThreadToken]
nop
jmp 0x140009d21
xor edx, edx
lea rcx, [rbp]
lea r8d, [rdx + 0x58]
call sub.msvcrt.dll_memset
mov rcx, qword [rbp - 0x70]
lea rax, [rbp + 0x60]
mov r9d, 0x58
mov qword [rbp], rax
cmp rcx, 0xffffffffffffffff
mov dword [rbp + 8], 0x60
lea r8, [rbp]
cmove rcx, rbx
lea edx, [r9 - 0x3f]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_SetTokenInformation]
test eax, eax
jne 0x140028f1e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbp - 8], eax
jmp 0x140028eb6
mov rcx, qword [rbp - 0x70]
cmp rcx, 0xffffffffffffffff
cmove rcx, rbx
call fcn.14006c570
test eax, eax
jne 0x140028f41
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbp - 8], eax
jmp 0x140028eb6
mov eax, dword [rsp + 0x64]
jmp 0x140009d08
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140009d19
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_SetThreadToken]
test eax, eax
jne 0x140009d26
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbp - 8], eax
xor eax, eax
mov r15d, eax
mov eax, dword [rsp + 0x64]
jmp 0x140009d19
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop
jmp 0x140009d52
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbp - 0x70], 0xffffffffffffffff
jmp 0x140009d60
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
jmp 0x140009d6f
mov byte [rbp - 0x18], 1
jmp 0x140009d7c
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
cmp edi, 5
je 0x140028ff5
mov rcx, qword [0x1400ad2f8]
lea rax, [0x1400ad2f8]
cmp rcx, rax
je 0x140028ff5
test byte [rcx + 0x1c], 0x20
je 0x140028ff5
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400937b8]
mov edx, 0xb
mov r9d, edi
call fcn.14002efb8
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140029005
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rdi, r15
mov qword [rsp + 0x78], r15
jmp 0x140009dab
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 5
jne 0x14002902a
mov ecx, 0x20019
call sym.spoolsv.exe_PrvSplGetClientUserHandle
mov rdi, rax
test rdi, rdi
jne 0x140009db4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r15d, eax
jmp 0x140009e14
lea rax, str.DevMode
jmp 0x140009e07
mov ecx, r15d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
jmp 0x140009e7b
call sym.spoolsv.exe_PrvDllAllocSplMem
mov r14, rax
test rax, rax
jne 0x14002907d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
jmp 0x140009e71
mov r15, qword [rbp - 0x70]
lea rax, [rsp + 0x64]
mov rcx, qword [rbp - 0x80]
mov rdx, r15
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x1400290fb
mov edx, dword [rsp + 0x64]
mov r8d, 0x8007000d
cmp rdx, 0x4c
jb 0x1400290d6
movzx ecx, word [r14 + 0x46]
movzx eax, word [r14 + 0x44]
add rcx, rax
cmp rdx, rcx
jb 0x1400290d6
mov rcx, r14
call fcn.14000bda0
mov r8d, eax
mov ecx, r8d
call fcn.140005d64
mov edi, eax
test eax, eax
je 0x140029114
mov rcx, qword [rbp - 0x80]
mov rdx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
test eax, eax
mov eax, 2
cmove edi, eax
mov rcx, qword [0x1400af198]
mov r8, r14
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
xor eax, eax
mov r14d, eax
jmp 0x140029116
xor eax, eax
cmp edi, 2
cmove edi, eax
jmp 0x140009e71
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
cmp edi, 5
je 0x14002915f
mov rcx, qword [0x1400ad2f8]
lea rax, [0x1400ad2f8]
cmp rcx, rax
je 0x14002915f
test byte [rcx + 0x1c], 0x20
je 0x14002915f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140093840]
mov edx, 0xf
mov r9d, edi
call fcn.14002efb8
lea rcx, [rbp - 0x20]
call fcn.14006c530
nop
jmp 0x140009eaa
mov ecx, 1
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
mov rcx, qword [rsi + 8]
lea rdx, str.win32spl.dll
mov qword [rbp - 0x60], r14
mov rcx, qword [rcx + 8]
call qword [sym.imp.msvcrt.dll__wcsicmp]
mov r15, qword [rsp + 0x70]
mov ebx, dword [rsp + 0x60]
test eax, eax
jne 0x1400291fa
mov dword [rbp - 0x40], 1
test r15, r15
je 0x1400291fa
mov rax, qword [rsi + 8]
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x20], rcx
mov r9d, ebx
mov rcx, qword [rsi + 0x10]
mov r8, r15
mov edx, 4
mov rax, qword [rax + 0x58]
call qword [0x14008f7f0]
test eax, eax
je 0x1400291fa
mov eax, dword [r15 + 0x10]
and eax, 0x50
cmp al, 0x50
je 0x1400291fa
lea r8, [rbp - 0x78]
mov rcx, rsi
lea rdx, [rbp - 0x38]
call fcn.140067924
mov r13, qword [rbp - 0x38]
test r13, r13
jne 0x14002920f
movzx edx, word [r14 + 0x44]
movzx ecx, word [r14 + 0x46]
add edx, 3
add edx, ecx
and edx, 0xfffffffc
mov dword [rbp - 0x78], edx
and ebx, 0xfffffffc
mov dword [rbp - 0x50], 3
mov dword [rsp + 0x60], ebx
jmp 0x140009ec8
mov ecx, 0x7a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov r15, qword [rsp + 0x70]
jmp 0x140009f10
test r11, r11
jne 0x140009f25
test r15, r15
je 0x140009f25
mov rax, qword [r15]
test rax, rax
cmovne r11, rax
mov qword [rbp - 0x60], r11
jmp 0x140009f25
test r15, r15
je 0x140009f32
test edi, edi
je 0x140009f32
mov rdx, r13
mov r10, r9
mov qword [rbp - 0x38], rdx
test r13, r13
jne 0x1400292a1
mov rdx, qword [r15 + 0x38]
mov qword [rbp - 0x38], rdx
test rdx, rdx
je 0x14002934d
movzx r9d, word [rdx + 0x44]
movzx ecx, word [rdx + 0x46]
add r9d, 3
add r9d, ecx
and r9d, 0xfffffffc
mov r8, r11
call fcn.140068158
test eax, eax
jne 0x14002934d
xor eax, eax
cmp dword [r11 + 0xcc], 0x34534947
mov qword [rbp - 0x58], rax
jne 0x1400292d0
cmp dword [rdx + 0xcc], 0x34534947
jne 0x140029339
cmp dword [rbp - 0x40], eax
jne 0x1400292ed
mov rax, qword [0x1400aede0]
cmp qword [rsi + 8], rax
jne 0x140029339
mov eax, dword [r15 + 0x68]
and eax, 0x50
cmp al, 0x50
je 0x140029339
mov r8, rdx
mov rcx, rsi
mov rdx, r11
call fcn.140067808
test eax, eax
je 0x140029339
mov r8, qword [rbp - 0x38]
cmp r8, r13
jne 0x140029325
mov eax, dword [rbp - 0x78]
mov ecx, dword [rsp + 0x60]
sub rcx, rax
mov qword [rbp - 0x60], r13
add rcx, r15
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x58], rcx
mov qword [r15 + 0x38], rcx
mov rdx, qword [rsi + 0x48]
xor ecx, ecx
call sym.spoolsv.exe_PrvbSetDevModePerUser
mov r11, qword [rbp - 0x60]
jmp 0x140009f32
mov rdx, qword [rsi + 0x48]
xor r8d, r8d
xor ecx, ecx
call sym.spoolsv.exe_PrvbSetDevModePerUser
nop
jmp 0x140009f43
mov ecx, dword [rsp + 0x60]
mov rax, r10
sub rcx, r10
add rcx, r15
mov qword [r15 + 0x38], rcx
jmp 0x140009f3a
mov r8d, eax
mov rdx, r11
call sub.msvcrt.dll_memcpy
mov edi, 1
jmp 0x140009f43
mov rcx, qword [0x1400ad2f8]
lea rax, [0x1400ad2f8]
cmp rcx, rax
je 0x140009f86
test byte [rcx + 0x1c], 0x20
je 0x140009f86
mov r9, qword [rsi + 0x48]
mov edx, 0x13
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], r12d
call fcn.14005f804
nop
jmp 0x140009f86
mov r8, qword [rsi + 0x48]
lea rdx, [0x14009d558]
mov r9d, r12d
mov dword [rsp + 0x20], ebx
call fcn.14005f2ec
nop
jmp 0x140009f93
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x140009f9d