Function at 0x18003f7e0
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 + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xe8]
sub rsp, 0x1e8
mov rax, qword [0x18005f900]
test rax, rax
je 0x18003f826
mov r15, qword [0x18005f908]
test r15, r15
jne 0x180040613
mov rax, qword gs:[0x58]
xor r15d, r15d
mov ecx, dword [0x18005f8b0]
mov r13d, 0x5a4d
mov rdi, qword [0x18005fa18]
mov esi, dword [0x18005f910]
mov edx, 4
mov r14, qword [rax + rcx*8]
add r14, rdx
mov dword [rbp + 0x148], esi
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x30], r14
mov eax, dword [r14]
cmp dword [0x18005fb58], eax
jle 0x18003fc47
lea rcx, [0x18005fb58]
call fcn.18004dd14
cmp dword [0x18005fb58], 0xffffffff
jne 0x18003fc47
xor edx, edx
mov qword [rsp + 0x38], r15
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], r15d
xor r8d, r8d
mov edi, r15d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x18003f902
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x30]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rax
mov ecx, 0xb
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x18003f8b4
mov qword [rsp + 0x38], rdi
test eax, eax
jns 0x18003f91c
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x18003fc23
mov esi, r15d
mov dword [rsp + 0x40], r15d
cmp dword [rdi], r15d
jbe 0x18003fc0c
nop dword [rax]
mov eax, esi
lea rdx, [rdi + 0x30]
imul rcx, rax, 0x128
movzx eax, word [rcx + rdi + 0x2e]
mov r8, 0xffffffffffffffff
add rax, rcx
mov qword [rbp - 0x78], r15
add rdx, rax
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x60], recv
lea rbx, [rcx + rdi]
inc r8
cmp byte [rdx + r8], r15b
jne 0x18003f963
lea rcx, [rbp - 0x78]
call fcn.1800028b0
cmp qword [rbp - 0x60], 0x10
lea rcx, [rbp - 0x78]
lea rdx, str.ntoskrnl.exe
cmovae rcx, qword [rbp - 0x78]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x18003fbc3
lea rdx, [rbx + 0x30]
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x58], r15
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x60], recv
inc r8
cmp byte [rdx + r8], r15b
jne 0x18003f9b6
lea rcx, [rsp + 0x48]
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 + 0x68], r15
mov qword [rbp + 0x78], r15
mov qword [rbp + 0x80], recv
inc r8
cmp byte [rax + r8], r15b
jne 0x18003f9f0
mov rdx, rax
lea rcx, [rbp + 0x68]
call fcn.1800028b0
mov rdx, qword [rbp + 0x80]
mov rcx, qword [rbp + 0x78]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x18003fa3d
lea rax, [rcx + 1]
cmp rdx, 0x10
mov qword [rbp + 0x78], rax
lea rbx, [rbp + 0x68]
lea rax, [rbp + 0x68]
cmovae rax, qword [rbp + 0x68]
mov word [rax + rcx], 0x5c
jmp 0x18003fa57
mov edx, 1
mov qword [rsp + 0x20], 1
lea rcx, [rbp + 0x68]
call fcn.180002f90
mov rbx, rax
lea rcx, [rsp + 0x48]
call fcn.1800025f0
cmp qword [rbx + 0x18], 0x10
mov rcx, qword [rbx + 0x10]
jb 0x18003fa6f
mov rbx, qword [rbx]
mov qword [rsp + 0x20], rcx
mov r9, rbx
lea rcx, [rsp + 0x48]
mov rdx, rax
call fcn.180002700
mov rdx, qword [rbp + 0x80]
cmp rdx, 0x10
jb 0x18003fac2
mov rcx, qword [rbp + 0x68]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003fabd
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18003fe57
call fcn.18004dbb4
cmp qword [rsp + 0x60], 0x10
lea rcx, [rsp + 0x48]
mov qword [rbp + 0x78], r15
cmovae rcx, qword [rsp + 0x48]
xor edx, edx
mov qword [rbp + 0x80], recv
mov byte [rbp + 0x68], r15b
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rsi, rax
cmp word [rax], r13w
jne 0x18003fdbf
movsxd rax, dword [rax + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x18003fdbf
mov ecx, dword [rax + rsi + 0x88]
test ecx, ecx
je 0x18003fdbf
mov r14d, dword [rcx + rsi + 0x1c]
mov edi, r15d
mov ebx, dword [rcx + rsi + 0x20]
mov r13d, dword [rcx + rsi + 0x24]
add rbx, rsi
add r13, rsi
lea r12, [rsi + r14]
test r14d, r14d
je 0x18003fb64
nop
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 0x18003fce6
inc edi
add rbx, 4
cmp edi, r14d
jb 0x18003fb40
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x18003fba1
mov rcx, qword [rsp + 0x48]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003fb9c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18003fe57
call fcn.18004dbb4
mov rdi, qword [rsp + 0x38]
mov r13d, 0x5a4d
mov esi, dword [rsp + 0x40]
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], recv
mov byte [rsp + 0x48], r15b
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x18003fbfe
mov rcx, qword [rbp - 0x78]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003fbf9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18003fe57
call fcn.18004dbb4
inc esi
mov dword [rsp + 0x40], esi
cmp esi, dword [rdi]
jb 0x18003f930
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov esi, dword [rbp + 0x148]
mov rbx, r15
lea rcx, [0x18005fb58]
mov qword [0x18005fb50], rbx
call fcn.18004dcb4
mov rdi, qword [rbp - 0x28]
mov r13d, 0x5a4d
mov r14, qword [rbp - 0x30]
mov eax, dword [r14]
cmp dword [0x18005fb48], eax
mov rbx, qword [0x18005fb50]
mov qword [rbp - 0x38], r15
jle 0x18003fca2
lea rcx, [0x18005fb48]
call fcn.18004dd14
cmp dword [0x18005fb48], 0xffffffff
jne 0x18003fca2
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 + 8], 0x25ff
mov word [rbp + 0xc], r15w
mov qword [rbp + 0xe], rbx
lea rcx, [rbp + 0x90]
mov qword [rsp + 0x38], recv
mov qword [rsp + 0x40], rcx
mov rcx, qword [rdi + 0x38]
mov qword [rbp + 0x28], rax
test rcx, rcx
jne 0x18003fe5e
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 [r13 + rax*2]
mov eax, dword [rsp + 0x40]
mov ebx, dword [r12 + rcx*4]
imul rcx, rax, 0x128
mov rax, qword [rsp + 0x38]
add rbx, qword [rcx + rax + 0x18]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x18003fd56
mov rcx, qword [rsp + 0x48]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003fd51
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18003fe57
call fcn.18004dbb4
mov rdx, qword [rbp - 0x60]
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], recv
mov byte [rsp + 0x48], r15b
cmp rdx, 0x10
jb 0x18003fda4
mov rcx, qword [rbp - 0x78]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003fd9f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18003fe57
call fcn.18004dbb4
mov esi, dword [rbp + 0x148]
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x60], recv
mov byte [rbp - 0x78], r15b
jmp 0x18003fc26
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x18003fdf8
mov rcx, qword [rsp + 0x48]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003fdf3
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18003fe57
call fcn.18004dbb4
mov rdx, qword [rbp - 0x60]
mov byte [rsp + 0x48], r15b
mov qword [rsp + 0x60], recv
mov qword [rsp + 0x58], r15
cmp rdx, 0x10
jb 0x18003fe42
mov rcx, qword [rbp - 0x78]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003fe3d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18003fe57
call fcn.18004dbb4
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x60], recv
mov byte [rbp - 0x78], r15b
jmp 0x18003fc1d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx]
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x40]
lea rdx, [rbp + 0x28]
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [0x18005f8d0]
lea rcx, [rbp + 8]
mov qword [rbp + 0x30], recv
mov qword [rbp + 0x38], rcx
mov rcx, qword [rdi + 0x78]
mov qword [rbp + 0x40], rax
test rcx, rcx
jne 0x18003fe9d
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp + 0x30]
lea r8, [rbp + 0x38]
lea rdx, [rbp + 0x40]
call qword [rax + reloc.WS2_32.dll_recv]
mov ecx, esi
lea rdx, [rbp - 0x38]
call qword [0x180061bf8]
mov rax, qword [0x18005f8d0]
lea rcx, [rbp + 0x90]
mov qword [rbp + 0x48], recv
mov qword [rbp + 0x50], rcx
mov rcx, qword [rdi + 0x78]
mov qword [rbp + 0x58], rax
test rcx, rcx
jne 0x18003fee9
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp + 0x48]
lea r8, [rbp + 0x50]
lea rdx, [rbp + 0x58]
call qword [rax + reloc.WS2_32.dll_recv]
mov r8, qword [rbp - 0x38]
movabs r12, 0xfffffffff000
test r8, r8
jne 0x18003ff13
mov rax, r15
jmp 0x18003ff2a
add r8, 0x28
lea rdx, [rbp + 0x60]
mov rcx, rdi
call fcn.180001cc0
mov rax, qword [rbp + 0x60]
and rax, r12
mov qword [0x18005f900], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [r14]
mov esi, eax
cmp dword [0x18005fb58], ecx
mov rdi, qword [0x18005fa18]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rdi
jle 0x1800404ab
lea rcx, [0x18005fb58]
call fcn.18004dd14
cmp dword [0x18005fb58], 0xffffffff
jne 0x1800404ab
xor edx, edx
mov qword [rbp - 0x38], r15
lea r9, [rbp + 0x148]
mov dword [rbp + 0x148], r15d
xor r8d, r8d
mov rsi, r15
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x18003fff3
nop dword [rax + rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp + 0x148]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rbp + 0x148]
lea r9, [rbp + 0x148]
mov rdx, rax
mov ecx, 0xb
mov rsi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x18003ffa0
mov qword [rbp - 0x38], rsi
test eax, eax
jns 0x18004000d
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x180040483
mov edi, r15d
mov dword [rsp + 0x40], r15d
cmp dword [rsi], r15d
jbe 0x18004046d
nop
mov eax, edi
mov r8, 0xffffffffffffffff
imul rcx, rax, 0x128
movzx eax, word [rsi + rcx + 0x2e]
add rax, rsi
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], recv
lea rbx, [rsi + rcx]
lea rdx, [rcx + 0x30]
add rdx, rax
inc r8
cmp byte [rdx + r8], r15b
jne 0x180040053
lea rcx, [rbp - 0x58]
call fcn.1800028b0
cmp qword [rbp - 0x40], 0x10
lea rcx, [rbp - 0x58]
lea rdx, str.ntoskrnl.exe
cmovae rcx, qword [rbp - 0x58]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x1800402aa
lea rdx, [rbx + 0x30]
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x78], r15
mov r8, 0xffffffffffffffff
mov qword [rbp - 0x80], recv
inc r8
cmp byte [rdx + r8], r15b
jne 0x1800400a5
lea rcx, [rsp + 0x68]
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 - 0x20], r15
mov qword [rbp - 0x10], r15
mov qword [rbp - 8], recv
nop dword [rax]
inc r8
cmp byte [rax + r8], r15b
jne 0x1800400e0
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.1800028b0
mov rdx, qword [rbp - 8]
mov rcx, qword [rbp - 0x10]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x18004012a
lea rax, [rcx + 1]
cmp rdx, 0x10
mov qword [rbp - 0x10], rax
lea rbx, [rbp - 0x20]
lea rax, [rbp - 0x20]
cmovae rax, qword [rbp - 0x20]
mov word [rax + rcx], 0x5c
jmp 0x180040144
mov edx, 1
mov qword [rsp + 0x20], 1
lea rcx, [rbp - 0x20]
call fcn.180002f90
mov rbx, rax
lea rcx, [rsp + 0x68]
call fcn.1800025f0
cmp qword [rbx + 0x18], 0x10
mov rcx, qword [rbx + 0x10]
jb 0x18004015c
mov rbx, qword [rbx]
mov qword [rsp + 0x20], rcx
mov r9, rbx
lea rcx, [rsp + 0x68]
mov rdx, rax
call fcn.180002700
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x1800401ac
mov rcx, qword [rbp - 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800401a7
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180040466
call fcn.18004dbb4
cmp qword [rbp - 0x80], 0x10
lea rcx, [rsp + 0x68]
mov qword [rbp - 0x10], r15
cmovae rcx, qword [rsp + 0x68]
xor edx, edx
mov qword [rbp - 8], recv
mov byte [rbp - 0x20], r15b
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rsi, rax
cmp word [rax], r13w
jne 0x1800403d3
movsxd rax, dword [rax + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x1800403d3
mov ecx, dword [rax + rsi + 0x88]
test ecx, ecx
je 0x1800403d3
mov r14d, dword [rcx + rsi + 0x1c]
mov edi, r15d
mov ebx, dword [rcx + rsi + 0x20]
mov r13d, dword [rcx + rsi + 0x24]
add rbx, rsi
add r13, rsi
lea r12, [rsi + r14]
test r14d, r14d
je 0x180040254
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 0x1800402fe
inc edi
add rbx, 4
cmp edi, r14d
jb 0x180040230
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x180040290
mov rcx, qword [rsp + 0x68]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004028b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180040466
call fcn.18004dbb4
mov edi, dword [rsp + 0x40]
mov rsi, qword [rbp - 0x38]
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x80], recv
mov byte [rsp + 0x68], r15b
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x1800402e5
mov rcx, qword [rbp - 0x58]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800402e0
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180040466
call fcn.18004dbb4
inc edi
mov dword [rsp + 0x40], edi
cmp edi, dword [rsi]
jae 0x18004046d
mov r13d, 0x5a4d
jmp 0x180040020
movsxd rax, edi
xor edx, edx
mov r8d, 0x8000
movzx ecx, word [r13 + rax*2]
mov eax, dword [rsp + 0x40]
mov ebx, dword [r12 + rcx*4]
imul rcx, rax, 0x128
mov rax, qword [rbp - 0x38]
add rbx, qword [rcx + rax + 0x18]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x18004036c
mov rcx, qword [rsp + 0x68]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040367
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180040466
call fcn.18004dbb4
mov rdx, qword [rbp - 0x40]
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x80], recv
mov byte [rsp + 0x68], r15b
cmp rdx, 0x10
jb 0x1800403b9
mov rcx, qword [rbp - 0x58]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800403b4
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180040466
call fcn.18004dbb4
mov rdi, qword [rsp + 0x38]
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], recv
mov byte [rbp - 0x58], r15b
jmp 0x180040486
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x18004040b
mov rcx, qword [rsp + 0x68]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040406
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180040466
call fcn.18004dbb4
mov rdx, qword [rbp - 0x40]
mov byte [rsp + 0x68], r15b
mov qword [rbp - 0x80], recv
mov qword [rsp + 0x78], r15
cmp rdx, 0x10
jb 0x180040454
mov rcx, qword [rbp - 0x58]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004044f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180040466
call fcn.18004dbb4
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], recv
mov byte [rbp - 0x58], r15b
jmp 0x18004047e
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, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdi, qword [rsp + 0x38]
mov rbx, r15
lea rcx, [0x18005fb58]
mov qword [0x18005fb50], rbx
call fcn.18004dcb4
mov esi, dword [rsp + 0x30]
movabs r12, 0xfffffffff000
mov r14, qword [rbp - 0x30]
mov eax, dword [r14]
cmp dword [0x18005fb48], eax
mov rbx, qword [0x18005fb50]
mov qword [rbp - 0x28], r15
jle 0x180040506
lea rcx, [0x18005fb48]
call fcn.18004dd14
cmp dword [0x18005fb48], 0xffffffff
jne 0x180040506
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 + 0x18], 0x25ff
mov word [rbp + 0x1c], r15w
mov qword [rbp + 0x1e], rbx
lea rcx, [rbp + 0xa0]
mov qword [rbp + 0x60], recv
mov qword [rbp + 0x58], rcx
mov rcx, qword [rdi + 0x38]
mov qword [rbp + 0x50], rax
test rcx, rcx
jne 0x180040544
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp + 0x60]
lea r8, [rbp + 0x58]
lea rdx, [rbp + 0x50]
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [0x18005f8d0]
lea rcx, [rbp + 0x18]
mov qword [rbp + 0x48], recv
mov qword [rbp + 0x40], rcx
mov rcx, qword [rdi + 0x78]
mov qword [rbp + 0x38], rax
test rcx, rcx
jne 0x180040581
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp + 0x48]
lea r8, [rbp + 0x40]
lea rdx, [rbp + 0x38]
call qword [rax + reloc.WS2_32.dll_recv]
mov ecx, esi
lea rdx, [rbp - 0x28]
call qword [0x180061bf8]
mov rax, qword [0x18005f8d0]
lea rcx, [rbp + 0xa0]
mov qword [rbp + 0x30], recv
mov qword [rbp + 0x28], rcx
mov rcx, qword [rdi + 0x78]
mov qword [rbp - 0x30], rax
test rcx, rcx
jne 0x1800405cd
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp + 0x30]
lea r8, [rbp + 0x28]
lea rdx, [rbp - 0x30]
call qword [rax + reloc.WS2_32.dll_recv]
mov r8, qword [rbp - 0x28]
test r8, r8
je 0x180040605
add r8, 0x28
lea rdx, [rbp + 0x88]
mov rcx, rdi
call fcn.180001cc0
mov r15, qword [rbp + 0x88]
and r15, r12
mov rax, qword [0x18005f900]
mov qword [0x18005f908], r15
mov qword [rbp - 0x20], rax
lea r8, [rbp + 0xb0]
mov rax, qword [rbp + 0x130]
mov edx, 4
mov qword [rbp - 0x18], rax
movabs rcx, 0xba8ca9e50549f6e4
movups xmm0, xmmword [rbp - 0x20]
mov rax, qword [rbp + 0x138]
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x140]
mov qword [rbp], rax
movups xmmword [rbp + 0xb0], xmm0
mov qword [rbp - 0x10], r15
movups xmm1, xmmword [rbp - 0x10]
movsd xmm0, qword [rbp]
movsd qword [rbp + 0xd0], xmm0
movups xmmword [rbp + 0xc0], xmm1
call fcn.18004dbb0
mov al, 1
add rsp, 0x1e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret