Function at 0x18004c7c0
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 + 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 - 0xd8]
sub rsp, 0x1d8
mov r15, qword [0x18005f908]
mov rax, rdx
mov rbx, rcx
test r15, r15
jne 0x18004d606
mov rax, qword gs:[0x58]
mov r13d, 0x5a4d
mov r8d, dword [0x18005f8b0]
mov rdi, qword [0x18005fa18]
mov esi, dword [0x18005f910]
mov ecx, 4
mov r14, qword [rax + r8*8]
add r14, rcx
mov dword [rbp + 0x130], esi
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x38], r14
mov eax, dword [r14]
cmp dword [0x18005fb58], eax
jle 0x18004cc27
lea rcx, [0x18005fb58]
call fcn.18004dd14
cmp dword [0x18005fb58], 0xffffffff
jne 0x18004cc27
xor edx, edx
mov qword [rsp + 0x30], r15
lea r9, [rbp + 0x138]
mov dword [rbp + 0x138], r15d
xor r8d, r8d
mov rdi, r15
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x18004c8e4
nop dword [rax + rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp + 0x138]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rbp + 0x138]
lea r9, [rbp + 0x138]
mov rdx, rax
mov ecx, 0xb
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x18004c890
mov qword [rsp + 0x30], rdi
test eax, eax
jns 0x18004c8fe
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x18004cc03
mov esi, r15d
mov dword [rsp + 0x78], r15d
cmp dword [rdi], r15d
jbe 0x18004cbec
nop
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 - 0x80], r15
add rdx, rax
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], recv
lea rbx, [rcx + rdi]
inc r8
cmp byte [rdx + r8], r15b
jne 0x18004c943
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 0x18004cba3
lea rdx, [rbx + 0x30]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x48], r15
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x50], recv
inc r8
cmp byte [rdx + r8], r15b
jne 0x18004c996
lea rcx, [rsp + 0x38]
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 + 0x60], r15
mov qword [rbp + 0x70], r15
mov qword [rbp + 0x78], recv
nop dword [rax]
inc r8
cmp byte [rax + r8], r15b
jne 0x18004c9d0
mov rdx, rax
lea rcx, [rbp + 0x60]
call fcn.1800028b0
mov rdx, qword [rbp + 0x78]
mov rcx, qword [rbp + 0x70]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x18004ca1a
lea rax, [rcx + 1]
cmp rdx, 0x10
mov qword [rbp + 0x70], rax
lea rbx, [rbp + 0x60]
lea rax, [rbp + 0x60]
cmovae rax, qword [rbp + 0x60]
mov word [rax + rcx], 0x5c
jmp 0x18004ca34
mov edx, 1
mov qword [rsp + 0x20], 1
lea rcx, [rbp + 0x60]
call fcn.180002f90
mov rbx, rax
lea rcx, [rsp + 0x38]
call fcn.1800025f0
cmp qword [rbx + 0x18], 0x10
mov rcx, qword [rbx + 0x10]
jb 0x18004ca4c
mov rbx, qword [rbx]
mov qword [rsp + 0x20], rcx
mov r9, rbx
lea rcx, [rsp + 0x38]
mov rdx, rax
call fcn.180002700
mov rdx, qword [rbp + 0x78]
cmp rdx, 0x10
jb 0x18004ca9c
mov rcx, qword [rbp + 0x60]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004ca97
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004ce37
call fcn.18004dbb4
cmp qword [rsp + 0x50], 0x10
lea rcx, [rsp + 0x38]
mov qword [rbp + 0x70], r15
cmovae rcx, qword [rsp + 0x38]
xor edx, edx
mov qword [rbp + 0x78], recv
mov byte [rbp + 0x60], r15b
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rsi, rax
cmp word [rax], r13w
jne 0x18004cd9f
movsxd rax, dword [rax + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x18004cd9f
mov ecx, dword [rax + rsi + 0x88]
test ecx, ecx
je 0x18004cd9f
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 0x18004cb44
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 0x18004ccc6
inc edi
add rbx, 4
cmp edi, r14d
jb 0x18004cb20
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x18004cb81
mov rcx, qword [rsp + 0x38]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004cb7c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004ce37
call fcn.18004dbb4
mov rdi, qword [rsp + 0x30]
mov r13d, 0x5a4d
mov esi, dword [rsp + 0x78]
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], recv
mov byte [rsp + 0x38], r15b
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x18004cbde
mov rcx, qword [rbp - 0x80]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004cbd9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004ce37
call fcn.18004dbb4
inc esi
mov dword [rsp + 0x78], esi
cmp esi, dword [rdi]
jb 0x18004c910
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov esi, dword [rbp + 0x130]
mov rbx, r15
lea rcx, [0x18005fb58]
mov qword [0x18005fb50], rbx
call fcn.18004dcb4
mov rdi, qword [rbp - 0x30]
mov r13d, 0x5a4d
mov r14, qword [rbp - 0x38]
mov eax, dword [r14]
cmp dword [0x18005fb48], eax
mov rbx, qword [0x18005fb50]
mov qword [rbp - 0x40], r15
jle 0x18004cc82
lea rcx, [0x18005fb48]
call fcn.18004dd14
cmp dword [0x18005fb48], 0xffffffff
jne 0x18004cc82
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], r15w
mov qword [rbp + 6], rbx
lea rcx, [rbp + 0x80]
mov qword [rsp + 0x30], recv
mov qword [rsp + 0x78], rcx
mov rcx, qword [rdi + 0x38]
mov qword [rbp + 0x20], rax
test rcx, rcx
jne 0x18004ce3e
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 + 0x78]
mov ebx, dword [r12 + rcx*4]
imul rcx, rax, 0x128
mov rax, qword [rsp + 0x30]
add rbx, qword [rcx + rax + 0x18]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x18004cd36
mov rcx, qword [rsp + 0x38]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004cd31
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004ce37
call fcn.18004dbb4
mov rdx, qword [rbp - 0x68]
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], recv
mov byte [rsp + 0x38], r15b
cmp rdx, 0x10
jb 0x18004cd84
mov rcx, qword [rbp - 0x80]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004cd7f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004ce37
call fcn.18004dbb4
mov esi, dword [rbp + 0x130]
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], recv
mov byte [rbp - 0x80], r15b
jmp 0x18004cc06
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x18004cdd8
mov rcx, qword [rsp + 0x38]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004cdd3
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004ce37
call fcn.18004dbb4
mov rdx, qword [rbp - 0x68]
mov byte [rsp + 0x38], r15b
mov qword [rsp + 0x50], recv
mov qword [rsp + 0x48], r15
cmp rdx, 0x10
jb 0x18004ce22
mov rcx, qword [rbp - 0x80]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004ce1d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004ce37
call fcn.18004dbb4
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], recv
mov byte [rbp - 0x80], r15b
jmp 0x18004cbfd
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 + 0x30]
lea r8, [rsp + 0x78]
lea rdx, [rbp + 0x20]
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [0x18005f8d0]
lea rcx, [rbp]
mov qword [rbp + 0x28], recv
mov qword [rbp + 0x30], rcx
mov rcx, qword [rdi + 0x78]
mov qword [rbp + 0x38], rax
test rcx, rcx
jne 0x18004ce7d
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 ecx, esi
lea rdx, [rbp - 0x40]
call qword [0x180061bf8]
mov rax, qword [0x18005f8d0]
lea rcx, [rbp + 0x80]
mov qword [rbp + 0x40], recv
mov qword [rbp + 0x48], rcx
mov rcx, qword [rdi + 0x78]
mov qword [rbp + 0x50], rax
test rcx, rcx
jne 0x18004cec9
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp + 0x40]
lea r8, [rbp + 0x48]
lea rdx, [rbp + 0x50]
call qword [rax + reloc.WS2_32.dll_recv]
mov r8, qword [rbp - 0x40]
movabs r12, 0xfffffffff000
test r8, r8
jne 0x18004cef3
mov rax, r15
jmp 0x18004cf0a
add r8, 0x28
lea rdx, [rbp + 0x58]
mov rcx, rdi
call fcn.180001cc0
mov rax, qword [rbp + 0x58]
and rax, r12
mov qword [0x18005f908], 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 + 0x78], eax
mov qword [rsp + 0x30], rdi
jle 0x18004d497
lea rcx, [0x18005fb58]
call fcn.18004dd14
cmp dword [0x18005fb58], 0xffffffff
jne 0x18004d497
xor edx, edx
mov qword [rbp - 0x40], r15
lea r9, [rbp + 0x130]
mov dword [rbp + 0x130], r15d
xor r8d, r8d
mov rsi, r15
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x18004cfd3
nop dword [rax + rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
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 rsi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x18004cf80
mov qword [rbp - 0x40], rsi
test eax, eax
jns 0x18004cfed
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x18004d46f
mov edi, r15d
mov dword [rbp + 0x138], r15d
cmp dword [rsi], r15d
jbe 0x18004d459
mov eax, edi
mov r8, 0xffffffffffffffff
imul rcx, rax, 0x128
movzx eax, word [rsi + rcx + 0x2e]
add rax, rsi
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], recv
lea rbx, [rsi + rcx]
lea rdx, [rcx + 0x30]
add rdx, rax
inc r8
cmp byte [rdx + r8], r15b
jne 0x18004d033
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 0x18004d28e
lea rdx, [rbx + 0x30]
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x68], r15
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x70], recv
inc r8
cmp byte [rdx + r8], r15b
jne 0x18004d086
lea rcx, [rsp + 0x58]
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 - 0x28], r15
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x10], recv
nop dword [rax]
inc r8
cmp byte [rax + r8], r15b
jne 0x18004d0c0
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.1800028b0
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x18004d10a
lea rax, [rcx + 1]
cmp rdx, 0x10
mov qword [rbp - 0x18], rax
lea rbx, [rbp - 0x28]
lea rax, [rbp - 0x28]
cmovae rax, qword [rbp - 0x28]
mov word [rax + rcx], 0x5c
jmp 0x18004d124
mov edx, 1
mov qword [rsp + 0x20], 1
lea rcx, [rbp - 0x28]
call fcn.180002f90
mov rbx, rax
lea rcx, [rsp + 0x58]
call fcn.1800025f0
cmp qword [rbx + 0x18], 0x10
mov rcx, qword [rbx + 0x10]
jb 0x18004d13c
mov rbx, qword [rbx]
mov qword [rsp + 0x20], rcx
mov r9, rbx
lea rcx, [rsp + 0x58]
mov rdx, rax
call fcn.180002700
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x18004d18c
mov rcx, qword [rbp - 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004d187
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004d452
call fcn.18004dbb4
cmp qword [rsp + 0x70], 0x10
lea rcx, [rsp + 0x58]
mov qword [rbp - 0x18], r15
cmovae rcx, qword [rsp + 0x58]
xor edx, edx
mov qword [rbp - 0x10], recv
mov byte [rbp - 0x28], r15b
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rsi, rax
cmp word [rax], r13w
jne 0x18004d3bd
movsxd rax, dword [rax + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x18004d3bd
mov ecx, dword [rax + rsi + 0x88]
test ecx, ecx
je 0x18004d3bd
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 0x18004d234
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 0x18004d2e4
inc edi
add rbx, 4
cmp edi, r14d
jb 0x18004d210
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x18004d271
mov rcx, qword [rsp + 0x58]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004d26c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004d452
call fcn.18004dbb4
mov edi, dword [rbp + 0x138]
mov rsi, qword [rbp - 0x40]
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], recv
mov byte [rsp + 0x58], r15b
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x18004d2c9
mov rcx, qword [rbp - 0x60]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004d2c4
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004d452
call fcn.18004dbb4
inc edi
mov dword [rbp + 0x138], edi
cmp edi, dword [rsi]
jae 0x18004d459
mov r13d, 0x5a4d
jmp 0x18004d000
movsxd rax, edi
xor edx, edx
mov r8d, 0x8000
movzx ecx, word [r13 + rax*2]
mov eax, dword [rbp + 0x138]
mov ebx, dword [r12 + rcx*4]
imul rcx, rax, 0x128
mov rax, qword [rbp - 0x40]
add rbx, qword [rcx + rax + 0x18]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x18004d355
mov rcx, qword [rsp + 0x58]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004d350
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004d452
call fcn.18004dbb4
mov rdx, qword [rbp - 0x48]
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], recv
mov byte [rsp + 0x58], r15b
cmp rdx, 0x10
jb 0x18004d3a3
mov rcx, qword [rbp - 0x60]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004d39e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004d452
call fcn.18004dbb4
mov rdi, qword [rsp + 0x30]
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], recv
mov byte [rbp - 0x60], r15b
jmp 0x18004d472
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x18004d3f6
mov rcx, qword [rsp + 0x58]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004d3f1
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004d452
call fcn.18004dbb4
mov rdx, qword [rbp - 0x48]
mov byte [rsp + 0x58], r15b
mov qword [rsp + 0x70], recv
mov qword [rsp + 0x68], r15
cmp rdx, 0x10
jb 0x18004d440
mov rcx, qword [rbp - 0x60]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004d43b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004d452
call fcn.18004dbb4
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], recv
mov byte [rbp - 0x60], r15b
jmp 0x18004d46a
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 + 0x30]
mov rbx, r15
lea rcx, [0x18005fb58]
mov qword [0x18005fb50], rbx
call fcn.18004dcb4
mov esi, dword [rsp + 0x78]
movabs r12, 0xfffffffff000
mov r14, qword [rbp - 0x38]
mov eax, dword [r14]
cmp dword [0x18005fb48], eax
mov rbx, qword [0x18005fb50]
mov qword [rbp - 0x30], r15
jle 0x18004d4f2
lea rcx, [0x18005fb48]
call fcn.18004dd14
cmp dword [0x18005fb48], 0xffffffff
jne 0x18004d4f2
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 + 0x14], r15w
mov qword [rbp + 0x16], rbx
lea rcx, [rbp + 0x90]
mov qword [rbp + 0x138], recv
mov qword [rbp + 0x58], rcx
mov rcx, qword [rdi + 0x38]
mov qword [rbp + 0x50], rax
test rcx, rcx
jne 0x18004d533
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp + 0x138]
lea r8, [rbp + 0x58]
lea rdx, [rbp + 0x50]
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [0x18005f8d0]
lea rcx, [rbp + 0x10]
mov qword [rbp + 0x48], recv
mov qword [rbp + 0x40], rcx
mov rcx, qword [rdi + 0x78]
mov qword [rbp + 0x38], rax
test rcx, rcx
jne 0x18004d573
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 - 0x30]
call qword [0x180061bf8]
mov rax, qword [0x18005f8d0]
lea rcx, [rbp + 0x90]
mov qword [rbp + 0x30], recv
mov qword [rbp + 0x28], rcx
mov rcx, qword [rdi + 0x78]
mov qword [rbp + 0x20], rax
test rcx, rcx
jne 0x18004d5bf
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 + 0x20]
call qword [rax + reloc.WS2_32.dll_recv]
mov r8, qword [rbp - 0x30]
test r8, r8
je 0x18004d5f1
add r8, 0x28
lea rdx, [rbp - 0x38]
mov rcx, rdi
call fcn.180001cc0
mov r15, qword [rbp - 0x38]
and r15, r12
mov rbx, qword [rbp + 0x120]
mov rax, qword [rbp + 0x128]
mov qword [0x18005f908], r15
mov qword [rbp - 0x20], rax
lea r8, [rbp + 0xa0]
mov rax, qword [0x18005fae8]
mov edx, 4
mov qword [rbp - 0x18], rax
movabs rcx, 0xba8ca9e50549f6e4
mov qword [rbp - 0x28], r15
movups xmm0, xmmword [rbp - 0x28]
mov qword [rbp - 0x10], rbx
movups xmm1, xmmword [rbp - 0x18]
mov qword [rbp - 8], reloc.WS2_32.dll_recv
movups xmmword [rbp + 0xa0], xmm0
movsd xmm0, qword [rbp - 8]
movups xmmword [rbp + 0xb0], xmm1
movsd qword [rbp + 0xc0], xmm0
call fcn.18004dbb0
test eax, eax
je 0x18004d66d
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov rax, rbx
add rsp, 0x1d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret