Function at 0x1403d895c
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 [0x140486010]
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.1403dc9b4
nop
mov qword [0x140490d20], rdi
mov qword [0x140490d28], rdi
mov eax, dword [0x14042af3c]
mov dword [rbp + 0x5f0], eax
movzx eax, word [0x14042af40]
mov word [rbp + 0x5f4], ax
lea rcx, [rbp + 0x2a0]
call fcn.1403d66f0
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 0x1403d8ab0
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 0x1403d8a6e
mov r12d, 1
test eax, eax
jns 0x1403d8acf
mov r8d, r13d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1403d8b43
mov esi, edi
cmp dword [rbx], edi
jbe 0x1403d8b29
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.1403dc9b4
lea rcx, [rbp + 0x1f8]
call fcn.1403d66f0
mov rdx, r15
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1403d8b5e
lea rcx, [rbp + 0x1f8]
call fcn.1403d5be4
add esi, r12d
cmp esi, dword [rbx]
jb 0x1403d8ad5
mov r8d, r13d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rsi, rdi
test rsi, rsi
jne 0x1403da461
mov rax, qword [0x1404870b0]
mov edx, 0x5a4d
mov ecx, 0x4550
cmp word [rax], dx
je 0x1403d8b7f
mov rsi, rdi
jmp 0x1403d8b8c
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.1403d5be4
jmp 0x1403d8b3a
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 0x1403d8baa
lea rcx, [rbp + 0x2a0]
call fcn.1403d5be4
xor al, al
jmp 0x1403da46d
mov ebx, dword [rsi + 0x50]
mov qword [rbp + 0x5f8], rbx
mov qword [0x140490d28], rbx
lea rdx, [rbp + 0x2a0]
lea rcx, [rbp + 0x500]
call fcn.1403dc9e8
mov r9d, ebx
lea r8, [rbp + 0x5f0]
mov rdx, rax
lea rcx, [rbp + 0x320]
call fcn.1403d7378
nop
cmp dword [rbp + 0x368], edi
je 0x1403d9e35
lea rdx, str.SeLoadDriverPrivilege
lea rcx, [rbp + 0x2f8]
call fcn.1403dc7f4
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 0x1403d8c35
mov bl, r12b
jmp 0x1403d8cb7
mov qword [rbp + 0x1f0], rdi
lea rcx, [rbp + 0x2f8]
call fcn.1403dcf48
lea r8, [rbp + 0x1f0]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1403d8c2d
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 0x1403d8c2d
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, dil
lea rcx, [rbp + 0x2f8]
call fcn.1403dc790
test bl, bl
je 0x1403d8ccf
mov r12d, edi
jmp 0x1403d9171
xor r8d, r8d
lea rdx, [rbp + 0x320]
lea rcx, [rbp + 0x58]
call fcn.1403dd55c
nop
mov rdx, rax
lea rcx, [rbp + 0x38]
call fcn.1403d63e0
nop
lea r8, [rbp]
lea rdx, [rbp + 0x2d8]
mov rcx, rax
call fcn.1403dd128
nop
lea r8, [rbp + 0x2d8]
lea rdx, [0x14042aecc]
lea rcx, [rbp + 0x18]
call fcn.1403dd444
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.1403dc9b4
nop
lea rdx, [rbp + 0x340]
lea rcx, [rbp + 0x1f8]
call fcn.1403dc8f4
lea rcx, [rbp + 0x1f8]
call fcn.1403d66f0
lea r8, [rbp + 0x1c0]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x1403d8e84
mov bl, r12b
jmp 0x1403d8f76
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 0x1403d8e7c
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 0x1403d8e7c
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 0x1403d8e7c
mov rbx, qword [r14 + 0x10]
mov rcx, r14
call fcn.1403d66f0
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 0x1403d8e7c
mov rcx, qword [rbp + 0x1c0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test eax, eax
setne bl
lea rcx, [rbp + 0x1f8]
call fcn.1403d5be4
nop
lea rcx, [rbp + 0x18]
call fcn.1403d5be4
nop
lea rcx, [rbp + 0x2d8]
call fcn.1403d5be4
nop
lea rcx, [rbp + 0x38]
call fcn.1403dc790
nop
lea rcx, [rbp + 0x58]
call fcn.1403dc790
test bl, bl
jne 0x1403d8cc7
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.1403dc9b4
nop
lea rdx, [rbp + 0x340]
lea rcx, [rbp + 0x260]
call fcn.1403dc8f4
lea rcx, [rbp + 0x260]
call fcn.1403d66f0
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.1403d5be4
mov r12d, edi
test ebx, ebx
sete r12b
lea rcx, [rbp + 0x340]
call fcn.1403d66f0
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 0x1403d91f0
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 0x1403d91aa
test eax, eax
js 0x1403d925a
mov r14d, edi
cmp dword [rbx], edi
jbe 0x1403d925a
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.1403dc9b4
lea rcx, [rbp + 0x280]
call fcn.1403d66f0
mov rdx, r13
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1403d9345
lea rcx, [rbp + 0x280]
call fcn.1403d5be4
inc r14d
cmp r14d, dword [rbx]
jb 0x1403d9200
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 0x1403d9e35
test r14, r14
je 0x1403d9e35
mov r13d, dword [rbp + 0x360]
add r13, r14
mov qword [rbp + 8], r13
mov qword [0x140490d20], r13
mov r14d, 4
mov rax, qword gs:[0x58]
mov r12, qword [rax]
mov eax, dword [r14 + r12]
cmp dword [0x140490de4], eax
jle 0x1403d9459
lea rcx, [0x140490de4]
call fcn.1404267c8
cmp dword [0x140490de4], 0xffffffff
jne 0x1403d9459
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 0x1403d93a2
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.1403d5be4
jmp 0x1403d926e
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 0x1403d936c
test eax, eax
jns 0x1403d93d2
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1403d944d
mov r14d, edi
cmp dword [rbx], edi
jbe 0x1403d9436
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.1403dc9b4
lea rcx, [rbp + 0x1f8]
call fcn.1403d66f0
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 0x1403d96bf
lea rcx, [rbp + 0x1f8]
call fcn.1403d5be4
add r14d, r15d
cmp r14d, dword [rbx]
jb 0x1403d93d9
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r14d, 4
lea rcx, [0x140490de4]
call fcn.140426768
mov eax, dword [r14 + r12]
cmp dword [0x140490e30], eax
jle 0x1403d9492
lea rcx, [0x140490e30]
call fcn.1404267c8
cmp dword [0x140490e30], 0xffffffff
jne 0x1403d9492
call fcn.1403d6a40
mov qword [0x140490e20], rax
lea rcx, [0x140490e30]
call fcn.140426768
mov eax, dword [r14 + r12]
cmp dword [0x140490e10], eax
jle 0x1403d94cb
lea rcx, [0x140490e10]
call fcn.1404267c8
cmp dword [0x140490e10], 0xffffffff
jne 0x1403d94cb
call fcn.1403d6e38
mov qword [0x140490e18], rax
lea rcx, [0x140490e10]
call fcn.140426768
cmp qword [0x140490e20], rdi
je 0x1403d9e35
cmp qword [0x140490e18], rdi
je 0x1403d9e35
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, [0x1404316b0]
lea rdx, [0x14042b060]
lea rcx, [rbp + 0x260]
call fcn.1403dd774
nop
mov eax, dword [r14 + r12]
cmp dword [0x140487024], eax
jle 0x1403d95ac
lea rcx, [0x140487024]
call fcn.1404267c8
cmp dword [0x140487024], 0xffffffff
jne 0x1403d95ac
lea rcx, [0x140487024]
call fcn.140426768
mov ebx, 0x10
mov r8d, ebx
lea rdx, [rbp + 0x1f8]
lea rcx, [0x140487000]
call fcn.1403d7d98
nop
lea rcx, [rbp + 0x1a0]
call fcn.1403d64a8
nop
lea r8, [rbp + 0x10]
lea rdx, [rbp + 0x58]
mov rcx, rax
call fcn.1403dd128
nop
lea rdx, [rbp + 0x1f8]
lea rcx, [rbp + 0x58]
call fcn.1403dc8f4
mov rdx, rax
lea rcx, [rbp + 0x2f8]
call fcn.1403dc984
nop
lea rcx, [rbp + 0x58]
call fcn.1403d5be4
nop
lea rcx, [rbp + 0x1a0]
call fcn.1403dc790
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x3b0]
call main
lea rcx, [rbp + 0x2f8]
call fcn.1403d66f0
mov dword [rsp + 0x20], r15d
lea r9d, [rbx + 0x30]
lea r8d, [rbx + 0x10]
mov rdx, rax
lea rcx, [rbp + 0x3b0]
call fcn.1403db8cc
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.1403db83c
lea rdx, str.SeLoadDriverPrivilege
lea rcx, [rbp + 0x38]
call fcn.1403dc7f4
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 0x1403d96e1
mov bl, r15b
jmp 0x1403d9761
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rcx, [rbp + 0x1f8]
call fcn.1403d5be4
jmp 0x1403d9447
mov qword [rbp + 0x258], rdi
lea rcx, [rbp + 0x38]
call fcn.1403dcf48
lea r8, [rbp + 0x258]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1403d96b7
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 0x1403d96b7
mov rcx, qword [rbp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, dil
lea rcx, [rbp + 0x38]
call fcn.1403dc790
test bl, bl
je 0x1403d9780
mov bl, dil
movabs r14, 0x1014adebb08fbab0
jmp 0x1403d9c3d
xor r8d, r8d
lea rdx, [rbp + 0x2f8]
lea rcx, [rbp + 0x580]
call fcn.1403dd55c
nop
mov rdx, rax
lea rcx, [rbp + 0xe0]
call fcn.1403d63e0
nop
lea r8, [rbp + 1]
lea rdx, [rbp + 0x18]
mov rcx, rax
call fcn.1403dd128
nop
lea r8, [rbp + 0x18]
lea rdx, [0x14042aecc]
lea rcx, [rbp + 0x80]
call fcn.1403dd444
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.1403dc9b4
nop
lea rdx, [rbp + 0x1f8]
lea rcx, [rbp + 0x390]
call fcn.1403dc8f4
lea rcx, [rbp + 0x390]
call fcn.1403d66f0
lea r8, [rbp + 0x1c0]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x1403d9938
mov bl, r15b
jmp 0x1403d9a2a
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 0x1403d9930
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 0x1403d9930
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 0x1403d9930
mov rbx, qword [r14 + 0x10]
mov rcx, r14
call fcn.1403d66f0
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 0x1403d9930
mov rcx, qword [rbp + 0x1c0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test eax, eax
setne bl
lea rcx, [rbp + 0x390]
call fcn.1403d5be4
nop
lea rcx, [rbp + 0x80]
call fcn.1403d5be4
nop
lea rcx, [rbp + 0x18]
call fcn.1403d5be4
nop
lea rcx, [rbp + 0xe0]
call fcn.1403dc790
nop
lea rcx, [rbp + 0x580]
call fcn.1403dc790
movabs r14, 0x1014adebb08fbab0
test bl, bl
je 0x1403d9a7d
mov bl, dil
jmp 0x1403d9c3d
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.1403dc9b4
nop
lea rdx, [rbp + 0x1f8]
lea rcx, [rbp + 0x2d8]
call fcn.1403dc8f4
lea rcx, [rbp + 0x2d8]
call fcn.1403d66f0
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.1403d5be4
mov byte [rbp], bl
lea r9, [rbp + 0x1f8]
lea r8, [rbp]
mov dl, byte [rbp + 1]
lea rcx, [rbp + 0x540]
call fcn.1403de06c
nop
lea rcx, [rbp + 0x458]
call fcn.1403db870
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.1403d5be4
nop
lea rcx, [rbp + 0x1f8]
call fcn.1403d5be4
nop
lea rcx, [rbp + 0x260]
call fcn.1403dc548
nop
cmp byte [rbp + 0x560], dil
jne 0x1403d9cde
lea rcx, [rbp + 0x500]
call fcn.1403dcafc
nop
mov qword [rbp + 0x230], rdi
lea rdx, [rbp + 0x500]
lea rcx, [rbp + 0x238]
call fcn.1403dc9e8
nop
lea rcx, [rbp + 0x500]
call fcn.1403d5be4
jmp 0x1403d9d74
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 [0x140486fb0], rax
mov qword [rbp + 0x230], rax
lea rdx, [rbp + 0x540]
lea rcx, [rbp + 0x238]
call fcn.1403dc9e8
nop
lea rcx, [rbp + 0x540]
call fcn.1403d5be4
nop
cmp qword [rbp + 0x230], rdi
je 0x1403da457
cmp qword [rbp + 0x248], rdi
je 0x1403da457
lea rcx, [rbp + 0x1d8]
call fcn.14042321c
mov eax, 0x5a4d
cmp word [0x14042b060], ax
jne 0x1403d9dcc
movsxd rax, dword [0x14042b09c]
lea rcx, [0x14042b060]
add rax, 8
add rax, rcx
jmp 0x1403d9dd1
mov eax, 4
mov r8d, dword [rax]
lea rdx, [rbp + 0x238]
lea rcx, [rbp + 0x1d8]
call fcn.140424798
test al, al
jne 0x1403d9e52
lea rdx, [rbp + 0x238]
lea rcx, [rbp + 0x280]
call fcn.1403dc9e8
mov rbx, rax
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1403d9e1f
mov rcx, rbx
call fcn.1403d7f64
nop
mov rcx, rbx
call fcn.1403d5be4
nop
lea rcx, [rbp + 0x238]
call fcn.1403d5be4
nop
lea rcx, [rbp + 0x340]
call fcn.1403d5be4
lea rcx, [rbp + 0x320]
call fcn.1403d5be4
jmp 0x1403d8b97
mov r14, r13
mov rax, qword [rbp + 0x5f8]
lea r15, [rax + r13]
cmp r13, r15
jae 0x1403da174
mov r13d, 4
movabs rsi, 0x7ffffffffffffffd
mov rbx, qword [0x140490e18]
mov eax, dword [r12 + r13]
cmp dword [0x140486f54], eax
jle 0x1403d9ed1
lea rcx, [0x140486f54]
call fcn.1404267c8
cmp dword [0x140486f54], 0xffffffff
jne 0x1403d9ed1
lea rcx, [0x14042af30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140487018], rax
lea rcx, [0x140486f54]
call fcn.140426768
mov eax, dword [r12 + r13]
cmp dword [0x140487008], eax
jle 0x1403d9f1c
lea rcx, [0x140487008]
call fcn.1404267c8
cmp dword [0x140487008], 0xffffffff
jne 0x1403d9f1c
mov edx, 2
lea rcx, [0x140486f60]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x140429a84]
call fcn.140426b54
lea rcx, [0x140487008]
call fcn.140426768
lea rcx, [0x140486f60]
call fcn.1403d5b38
mov dword [rbp + 0x5e0], 0x25ff
mov word [rbp + 0x5e4], di
mov qword [rbp + 0x5e6], rbx
mov rcx, qword [0x140486fb8]
mov ebx, 0xe
mov r8d, ebx
lea rdx, [rbp + 0x220]
call fcn.1403d8644
mov rcx, qword [0x140486fb8]
mov r8d, ebx
lea rdx, [rbp + 0x5e0]
call fcn.1403d87d0
mov rax, qword [0x140487018]
mov rcx, r14
call rax
mov rbx, rax
mov rcx, qword [0x140486fb8]
mov r8d, 0xe
lea rdx, [rbp + 0x220]
call fcn.1403d87d0
lea rcx, [0x140486f60]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov r9d, 8
mov r8, rbx
lea rdx, [rbp + 0x2d0]
lea rcx, [rbp + 0x1d8]
call fcn.1404238b4
test al, al
jne 0x1403da252
xor eax, eax
mov qword [rbp + 0x1f0], rax
mov rbx, qword [0x140490e20]
mov eax, dword [r12 + r13]
cmp dword [0x140486f54], eax
jle 0x1403da02b
lea rcx, [0x140486f54]
call fcn.1404267c8
cmp dword [0x140486f54], 0xffffffff
jne 0x1403da02b
lea rcx, [0x14042af30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140487018], rax
lea rcx, [0x140486f54]
call fcn.140426768
mov eax, dword [r12 + r13]
cmp dword [0x140487008], eax
jle 0x1403da076
lea rcx, [0x140487008]
call fcn.1404267c8
cmp dword [0x140487008], 0xffffffff
jne 0x1403da076
mov edx, 2
lea rcx, [0x140486f60]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x140429a84]
call fcn.140426b54
lea rcx, [0x140487008]
call fcn.140426768
lea rcx, [0x140486f60]
call fcn.1403d5b38
mov dword [rbp + 0x5d0], 0x25ff
mov word [rbp + 0x5d4], di
mov qword [rbp + 0x5d6], rbx
mov rcx, qword [0x140486fb8]
mov ebx, 0xe
mov r8d, ebx
lea rdx, [rbp + 0x4c0]
call fcn.1403d8644
mov rcx, qword [0x140486fb8]
mov r8d, ebx
lea rdx, [rbp + 0x5d0]
call fcn.1403d87d0
mov rax, qword [0x140487018]
mov rcx, r14
call rax
mov rbx, rax
mov rcx, qword [0x140486fb8]
mov r8d, 0xe
lea rdx, [rbp + 0x4c0]
call fcn.1403d87d0
lea rcx, [0x140486f60]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov r9d, 8
mov r8, rbx
lea rdx, [rbp + 0x2c8]
lea rcx, [rbp + 0x1d8]
call fcn.1404238b4
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.140423f14
add r14, 0x1000
cmp r14, r15
jb 0x1403d9e79
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 [0x1404870b0]
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 0x1403da1dd
add rbx, rsi
mov ecx, dword [rbx - 4]
add rcx, r14
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, qword [0x1404870b0]
call sub.VCRUNTIME140.dll_memcpy
inc r15d
lea rbx, [rbx + 0x28]
movzx eax, word [rsi + 6]
cmp r15d, eax
jl 0x1403da1b5
mov rbx, r13
sub rbx, qword [rsi + 0x30]
mov rdx, r14
lea rcx, [rbp + 0x4c0]
call fcn.1403deea4
mov rdx, rbx
mov rcx, rax
call fcn.1403debec
mov rdx, r14
lea rcx, [rbp + 0x4c0]
call fcn.1403defd0
mov rcx, rax
call fcn.1403dec4c
test al, al
jne 0x1403da282
lea rdx, [rbp + 0x238]
lea rcx, [rbp + 0x280]
call fcn.1403dc9e8
mov rbx, rax
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1403da24d
mov rcx, rbx
call fcn.1403d7f64
nop
jmp 0x1403d9e1f
mov rax, qword [rbp + 0x2d0]
mov qword [rbp + 0x1f0], rax
test al, al
jns 0x1403d9fd3
and rax, rsi
or rax, 2
mov qword [rbp + 0x1f0], rax
lea r8, [rbp + 0x1f0]
jmp 0x1403da13d
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.140423f14
mov ebx, dword [rsi + 0x28]
add rbx, r13
mov esi, dword [rsi + 0x50]
mov r15d, 4
mov eax, dword [r15 + r12]
cmp dword [0x140490de8], eax
jle 0x1403da309
lea rcx, [0x140490de8]
call fcn.1404267c8
cmp dword [0x140490de8], 0xffffffff
jne 0x1403da309
lea rcx, [0x14042af30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140490e38], rax
lea rcx, [0x140490de8]
call fcn.140426768
lea r14, [0x140490e40]
mov eax, dword [r15 + r12]
cmp dword [0x140490de0], eax
jle 0x1403da357
lea rcx, [0x140490de0]
call fcn.1404267c8
cmp dword [0x140490de0], 0xffffffff
jne 0x1403da357
mov edx, 2
mov rcx, r14
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x140429a74]
call fcn.140426b54
lea rcx, [0x140490de0]
call fcn.140426768
mov rcx, r14
call fcn.1403d5b38
mov dword [rbp + 0x5c0], 0x25ff
mov word [rbp + 0x5c4], di
mov qword [rbp + 0x5c6], rbx
mov rcx, qword [0x140486fb8]
mov ebx, 0xe
mov r8d, ebx
lea rdx, [rbp + 0x5f8]
call fcn.1403d8644
mov rcx, qword [0x140486fb8]
mov r8d, ebx
lea rdx, [rbp + 0x5c0]
call fcn.1403d87d0
mov rdx, rsi
mov rcx, r13
call qword [0x140490e38]
mov rcx, qword [0x140486fb8]
mov r8d, ebx
lea rdx, [rbp + 0x5f8]
call fcn.1403d87d0
mov rcx, r14
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
lea rdx, [rbp + 0x238]
lea rcx, [rbp + 0x280]
call fcn.1403dc9e8
mov rbx, rax
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1403da40d
mov rcx, rbx
call fcn.1403d7f64
test al, al
mov sil, 1
jne 0x1403da410
mov sil, dil
mov rcx, rbx
call fcn.1403d5be4
test sil, sil
je 0x1403da420
mov dil, 1
lea rcx, [rbp + 0x238]
call fcn.1403d5be4
nop
lea rcx, [rbp + 0x340]
call fcn.1403d5be4
lea rcx, [rbp + 0x320]
call fcn.1403d5be4
nop
lea rcx, [rbp + 0x2a0]
call fcn.1403d5be4
mov al, dil
jmp 0x1403da46d
mov ecx, r15d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
lea rcx, [rbp + 0x2a0]
call fcn.1403d5be4
mov rcx, qword [rbp + 0x608]
xor rcx, rsp
call fcn.140426620
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