Function at 0x180046d10
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call
Parse pe header
Query environment variable
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd8]
sub rsp, 0x1d8
mov rax, qword [0x18005f908]
xor r14d, r14d
test rax, rax
jne 0x180047b7a
mov rax, qword gs:[0x58]
mov r12d, 0x5a4d
mov edx, dword [0x18005f8b0]
mov rdi, qword [0x18005fa18]
mov esi, dword [0x18005f910]
mov ecx, 4
mov r13, qword [rax + rdx*8]
add r13, rcx
mov dword [rbp + 0x138], esi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r13
mov eax, dword [r13]
cmp dword [0x18005fb58], eax
jle 0x18004717d
lea rcx, [0x18005fb58]
call fcn.18004dd14
cmp dword [0x18005fb58], 0xffffffff
jne 0x18004717d
xor edx, edx
mov dword [rbp + 0x128], r14d
lea r9, [rbp + 0x128]
xor r8d, r8d
mov r13d, r14d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x180046e1f
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp + 0x128]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rbp + 0x128]
lea r9, [rbp + 0x128]
mov rdx, rax
mov ecx, 0xb
mov r13, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x180046dd0
test eax, eax
jns 0x180046e39
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x180047156
mov edi, r14d
mov dword [rbp + 0x130], r14d
cmp dword [r13], r14d
jbe 0x180047140
nop dword [rax]
mov eax, edi
lea rdx, [r13 + 0x30]
imul rcx, rax, 0x128
movzx eax, word [rcx + r13 + 0x2e]
mov r8, 0xffffffffffffffff
add rax, rcx
mov qword [rbp - 0x80], r14
add rdx, rax
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], recv
lea rbx, [rcx + r13]
inc r8
cmp byte [rdx + r8], 0
jne 0x180046e84
lea rcx, [rbp - 0x80]
call fcn.1800028b0
cmp qword [rbp - 0x68], 0x10
lea rcx, [rbp - 0x80]
lea rdx, str.ntoskrnl.exe
cmovae rcx, qword [rbp - 0x80]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x1800470f3
lea rdx, [rbx + 0x30]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x50], r14
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x58], recv
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x180046ee0
lea rcx, [rsp + 0x40]
call fcn.1800028b0
lea rcx, str.SYSTEMROOT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r8, 0xffffffffffffffff
mov qword [rbp + 0x40], r14
mov qword [rbp + 0x50], r14
mov qword [rbp + 0x58], recv
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180046f20
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.1800028b0
mov rdx, qword [rbp + 0x58]
mov rcx, qword [rbp + 0x50]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x180046f6b
lea rax, [rcx + 1]
cmp rdx, 0x10
mov qword [rbp + 0x50], rax
lea rbx, [rbp + 0x40]
lea rax, [rbp + 0x40]
cmovae rax, qword [rbp + 0x40]
mov word [rax + rcx], 0x5c
jmp 0x180046f85
mov edx, 1
mov qword [rsp + 0x20], 1
lea rcx, [rbp + 0x40]
call fcn.180002f90
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.1800025f0
cmp qword [rbx + 0x18], 0x10
mov rcx, qword [rbx + 0x10]
jb 0x180046f9d
mov rbx, qword [rbx]
mov qword [rsp + 0x20], rcx
mov r9, rbx
lea rcx, [rsp + 0x40]
mov rdx, rax
call fcn.180002700
mov rdx, qword [rbp + 0x58]
cmp rdx, 0x10
jb 0x180046fed
mov rcx, qword [rbp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180046fe8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004738e
call fcn.18004dbb4
cmp qword [rsp + 0x58], 0x10
lea rcx, [rsp + 0x40]
mov qword [rbp + 0x50], r14
cmovae rcx, qword [rsp + 0x40]
xor edx, edx
mov qword [rbp + 0x58], recv
mov byte [rbp + 0x40], 0
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rsi, rax
cmp word [rax], r12w
jne 0x1800472f6
movsxd rax, dword [rax + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x1800472f6
mov ecx, dword [rax + rsi + 0x88]
test ecx, ecx
je 0x1800472f6
mov r14d, dword [rcx + rsi + 0x1c]
xor edi, edi
mov ebx, dword [rcx + rsi + 0x20]
mov r12d, dword [rcx + rsi + 0x24]
add rbx, rsi
add r12, rsi
lea r15, [rsi + r14]
test r14d, r14d
je 0x180047094
nop word [rax + rax]
mov edx, dword [rbx]
lea rcx, str.PsLookupProcessByProcessId
add rdx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x18004721f
inc edi
add rbx, 4
cmp edi, r14d
jb 0x180047070
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x1800470d1
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800470cc
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004738e
call fcn.18004dbb4
mov edi, dword [rbp + 0x130]
xor r14d, r14d
mov qword [rsp + 0x50], r14
mov r12d, 0x5a4d
mov byte [rsp + 0x40], r14b
mov qword [rsp + 0x58], recv
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x18004712e
mov rcx, qword [rbp - 0x80]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180047129
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004738e
call fcn.18004dbb4
inc edi
mov dword [rbp + 0x130], edi
cmp edi, dword [r13]
jb 0x180046e50
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdi, qword [rsp + 0x38]
mov rbx, r14
lea rcx, [0x18005fb58]
mov qword [0x18005fb50], rbx
call fcn.18004dcb4
mov esi, dword [rbp + 0x138]
mov r12d, 0x5a4d
mov r13, qword [rsp + 0x30]
mov eax, dword [r13]
cmp dword [0x18005fb48], eax
mov rbx, qword [0x18005fb50]
mov qword [rbp + 0x60], r14
jle 0x1800471d9
lea rcx, [0x18005fb48]
call fcn.18004dd14
cmp dword [0x18005fb48], 0xffffffff
jne 0x1800471d9
lea rcx, [0x18004f8b8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.NtShutdownSystem
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x18005fb48]
mov qword [0x180061bf8], rax
call fcn.18004dcb4
mov rax, qword [0x18005f8d0]
mov dword [rbp - 0x10], 0x25ff
mov word [rbp - 0xc], 0
mov qword [rbp - 0xa], rbx
lea rcx, [rbp + 0x80]
mov qword [rbp + 0x138], recv
mov qword [rbp + 0x68], rcx
mov rcx, qword [rdi + 0x38]
mov qword [rbp + 0x70], rax
test rcx, rcx
jne 0x180047395
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
movsxd rax, edi
xor edx, edx
mov r8d, 0x8000
movzx ecx, word [r12 + rax*2]
mov eax, dword [rbp + 0x130]
mov ebx, dword [r15 + rcx*4]
imul rcx, rax, 0x128
add rbx, qword [rcx + r13 + 0x18]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x18004728b
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180047286
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004738e
call fcn.18004dbb4
mov rdx, qword [rbp - 0x68]
xor r14d, r14d
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], recv
mov byte [rsp + 0x40], r14b
cmp rdx, 0x10
jb 0x1800472dc
mov rcx, qword [rbp - 0x80]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800472d7
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004738e
call fcn.18004dbb4
mov rdi, qword [rsp + 0x38]
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], recv
mov byte [rbp - 0x80], r14b
jmp 0x180047159
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x18004732f
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004732a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004738e
call fcn.18004dbb4
mov rdx, qword [rbp - 0x68]
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x58], recv
mov qword [rsp + 0x50], r14
cmp rdx, 0x10
jb 0x180047379
mov rcx, qword [rbp - 0x80]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180047374
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004738e
call fcn.18004dbb4
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], recv
mov byte [rbp - 0x80], 0
jmp 0x180047151
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx]
lea r9, [rbp + 0x138]
lea r8, [rbp + 0x68]
lea rdx, [rbp + 0x70]
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [0x18005f8d0]
lea rcx, [rbp - 0x10]
mov qword [rbp + 0x10], recv
mov qword [rbp + 0x18], rcx
mov rcx, qword [rdi + 0x78]
mov qword [rbp + 0x20], rax
test rcx, rcx
jne 0x1800473d5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp + 0x10]
lea r8, [rbp + 0x18]
lea rdx, [rbp + 0x20]
call qword [rax + reloc.WS2_32.dll_recv]
mov ecx, esi
lea rdx, [rbp + 0x60]
call qword [0x180061bf8]
mov rax, qword [0x18005f8d0]
lea rcx, [rbp + 0x80]
mov qword [rbp + 0x28], recv
mov qword [rbp + 0x30], rcx
mov rcx, qword [rdi + 0x78]
mov qword [rbp + 0x38], rax
test rcx, rcx
jne 0x180047421
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp + 0x28]
lea r8, [rbp + 0x30]
lea rdx, [rbp + 0x38]
call qword [rax + reloc.WS2_32.dll_recv]
mov r8, qword [rbp + 0x60]
movabs r15, 0xfffffffff000
test r8, r8
jne 0x18004744b
mov rax, r14
jmp 0x180047462
add r8, 0x28
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.180001cc0
mov rax, qword [rbp - 0x40]
and rax, r15
mov qword [0x18005f908], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [r13]
mov esi, eax
cmp dword [0x18005fb58], ecx
mov rdi, qword [0x18005fa18]
mov dword [rbp + 0x128], eax
mov qword [rbp - 0x40], rdi
jle 0x180047a07
lea rcx, [0x18005fb58]
call fcn.18004dd14
cmp dword [0x18005fb58], 0xffffffff
jne 0x180047a07
xor edx, edx
mov qword [rbp + 0x138], r14
lea r9, [rbp + 0x130]
mov dword [rbp + 0x130], r14d
xor r8d, r8d
mov rdi, r14
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x180047536
nop dword [rax + rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp + 0x130]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rbp + 0x130]
lea r9, [rbp + 0x130]
mov rdx, rax
mov ecx, 0xb
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x1800474e0
mov qword [rbp + 0x138], rdi
test eax, eax
jns 0x180047550
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1800479dd
cmp dword [rdi], 0
mov r13d, r14d
jbe 0x1800479c7
nop dword [rax]
mov eax, r13d
mov r8, 0xffffffffffffffff
imul rcx, rax, 0x128
movzx eax, word [rdi + rcx + 0x2e]
add rax, rdi
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], recv
lea rbx, [rdi + rcx]
lea rdx, [rcx + 0x30]
add rdx, rax
inc r8
cmp byte [rdx + r8], 0
jne 0x180047594
lea rcx, [rbp - 0x60]
call fcn.1800028b0
cmp qword [rbp - 0x48], 0x10
lea rcx, [rbp - 0x60]
lea rdx, str.ntoskrnl.exe
cmovae rcx, qword [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x1800477fe
lea rdx, [rbx + 0x30]
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x70], r14
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x78], recv
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x1800475f0
lea rcx, [rsp + 0x60]
call fcn.1800028b0
lea rcx, str.SYSTEMROOT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r8, 0xffffffffffffffff
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x20], recv
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180047630
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.1800028b0
mov rdx, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x28]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x18004767b
lea rax, [rcx + 1]
cmp rdx, 0x10
mov qword [rbp - 0x28], rax
lea rbx, [rbp - 0x38]
lea rax, [rbp - 0x38]
cmovae rax, qword [rbp - 0x38]
mov word [rax + rcx], 0x5c
jmp 0x180047695
mov edx, 1
mov qword [rsp + 0x20], 1
lea rcx, [rbp - 0x38]
call fcn.180002f90
mov rbx, rax
lea rcx, [rsp + 0x60]
call fcn.1800025f0
cmp qword [rbx + 0x18], 0x10
mov rcx, qword [rbx + 0x10]
jb 0x1800476ad
mov rbx, qword [rbx]
mov qword [rsp + 0x20], rcx
mov r9, rbx
lea rcx, [rsp + 0x60]
mov rdx, rax
call fcn.180002700
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x1800476fd
mov rcx, qword [rbp - 0x38]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800476f8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800479c0
call fcn.18004dbb4
cmp qword [rsp + 0x78], 0x10
lea rcx, [rsp + 0x60]
mov qword [rbp - 0x28], r14
cmovae rcx, qword [rsp + 0x60]
xor edx, edx
mov qword [rbp - 0x20], recv
mov byte [rbp - 0x38], 0
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rsi, rax
cmp word [rax], r12w
jne 0x18004792b
movsxd rax, dword [rax + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x18004792b
mov ecx, dword [rax + rsi + 0x88]
test ecx, ecx
je 0x18004792b
mov r14d, dword [rcx + rsi + 0x1c]
xor edi, edi
mov ebx, dword [rcx + rsi + 0x20]
mov r12d, dword [rcx + rsi + 0x24]
add rbx, rsi
add r12, rsi
lea r15, [rsi + r14]
test r14d, r14d
je 0x1800477a4
nop word [rax + rax]
mov edx, dword [rbx]
lea rcx, str.PsLookupProcessByProcessId
add rdx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x180047850
inc edi
add rbx, 4
cmp edi, r14d
jb 0x180047780
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x1800477e1
mov rcx, qword [rsp + 0x60]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800477dc
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800479c0
call fcn.18004dbb4
mov rdi, qword [rbp + 0x138]
xor r14d, r14d
mov qword [rsp + 0x70], r14
mov byte [rsp + 0x60], r14b
mov qword [rsp + 0x78], recv
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x180047839
mov rcx, qword [rbp - 0x60]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180047834
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800479c0
call fcn.18004dbb4
inc r13d
cmp r13d, dword [rdi]
jae 0x1800479c7
mov r12d, 0x5a4d
jmp 0x180047560
movsxd rax, edi
xor edx, edx
mov r8d, 0x8000
movzx ecx, word [r12 + rax*2]
mov eax, r13d
mov ebx, dword [r15 + rcx*4]
imul rcx, rax, 0x128
mov rax, qword [rbp + 0x138]
add rbx, qword [rcx + rax + 0x18]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x1800478c0
mov rcx, qword [rsp + 0x60]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800478bb
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800479c0
call fcn.18004dbb4
mov rdx, qword [rbp - 0x48]
xor r14d, r14d
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], recv
mov byte [rsp + 0x60], r14b
cmp rdx, 0x10
jb 0x180047911
mov rcx, qword [rbp - 0x60]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004790c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800479c0
call fcn.18004dbb4
mov r13, qword [rsp + 0x30]
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], recv
mov byte [rbp - 0x60], r14b
jmp 0x1800479e0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x180047964
mov rcx, qword [rsp + 0x60]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004795f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800479c0
call fcn.18004dbb4
mov rdx, qword [rbp - 0x48]
mov byte [rsp + 0x60], 0
mov qword [rsp + 0x78], recv
mov qword [rsp + 0x70], r14
cmp rdx, 0x10
jb 0x1800479ae
mov rcx, qword [rbp - 0x60]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800479a9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800479c0
call fcn.18004dbb4
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], recv
mov byte [rbp - 0x60], 0
jmp 0x1800479d8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r13, qword [rsp + 0x30]
mov rbx, r14
lea rcx, [0x18005fb58]
mov qword [0x18005fb50], rbx
call fcn.18004dcb4
mov rdi, qword [rbp - 0x40]
movabs r15, 0xfffffffff000
mov esi, dword [rbp + 0x128]
mov eax, dword [r13]
cmp dword [0x18005fb48], eax
mov rbx, qword [0x18005fb50]
mov qword [rsp + 0x38], r14
jle 0x180047a64
lea rcx, [0x18005fb48]
call fcn.18004dd14
cmp dword [0x18005fb48], 0xffffffff
jne 0x180047a64
lea rcx, [0x18004f8b8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.NtShutdownSystem
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x18005fb48]
mov qword [0x180061bf8], rax
call fcn.18004dcb4
mov rax, qword [0x18005f8d0]
mov dword [rbp], 0x25ff
mov word [rbp + 4], 0
mov qword [rbp + 6], rbx
lea rcx, [rbp + 0x90]
mov qword [rbp + 0x128], recv
mov qword [rbp + 0x138], rcx
mov rcx, qword [rdi + 0x38]
mov qword [rbp - 0x40], rax
test rcx, rcx
jne 0x180047aa9
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp + 0x128]
lea r8, [rbp + 0x138]
lea rdx, [rbp - 0x40]
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [0x18005f8d0]
lea rcx, [rbp]
mov qword [rbp + 0x38], recv
mov qword [rbp + 0x30], rcx
mov rcx, qword [rdi + 0x78]
mov qword [rbp + 0x28], rax
test rcx, rcx
jne 0x180047aec
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp + 0x38]
lea r8, [rbp + 0x30]
lea rdx, [rbp + 0x28]
call qword [rax + reloc.WS2_32.dll_recv]
mov ecx, esi
lea rdx, [rsp + 0x38]
call qword [0x180061bf8]
mov rax, qword [0x18005f8d0]
lea rcx, [rbp + 0x90]
mov qword [rbp + 0x20], recv
mov qword [rbp + 0x18], rcx
mov rcx, qword [rdi + 0x78]
mov qword [rbp + 0x10], rax
test rcx, rcx
jne 0x180047b39
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp + 0x20]
lea r8, [rbp + 0x18]
lea rdx, [rbp + 0x10]
call qword [rax + reloc.WS2_32.dll_recv]
mov r8, qword [rsp + 0x38]
test r8, r8
jne 0x180047b5a
mov rax, r14
jmp 0x180047b73
add r8, 0x28
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.180001cc0
mov rax, qword [rsp + 0x30]
and rax, r15
mov qword [0x18005f908], rax
mov qword [rbp - 0x38], rax
lea r8, [rbp + 0xa0]
mov rax, qword [rbp + 0x120]
mov edx, 4
mov qword [rbp - 0x30], rax
movabs rcx, 0xba8ca9e50549f6e4
mov rax, qword [0x18005fae8]
movups xmm0, xmmword [rbp - 0x38]
mov qword [rbp - 0x28], rax
lea rax, [rbp + 0x78]
mov qword [rbp - 0x20], rax
movups xmm1, xmmword [rbp - 0x28]
mov qword [rbp - 0x18], 8
movups xmmword [rbp + 0xa0], xmm0
movsd xmm0, qword [rbp - 0x18]
movups xmmword [rbp + 0xb0], xmm1
movsd qword [rbp + 0xc0], xmm0
call fcn.18004dbb0
mov rcx, qword [rbp + 0x78]
test eax, eax
cmovne rcx, r14
mov rax, rcx
add rsp, 0x1d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret