Function at 0x140005f30
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x218
movaps xmmword [rsp + 0x200], xmm6
test rdx, rdx
je 0x140006398
mov rsi, r8
mov rdi, rdx
mov r13, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
xor ebx, ebx
lea r14, [rsp + 0xf8]
mov r8d, 0x108
mov rcx, r14
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], gethostname
mov qword [rsp + 0x60], rdi
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], 0x40
mov dword [rsp + 0x4c], 0
lea r12, [rsp + 0x4c]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x50]
mov rcx, r13
mov edx, 0x80862007
mov r9d, Ordinal_41
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14000639a
movzx eax, word [rsp + 0xb0]
cmp eax, 0x5a4d
jne 0x14000639a
movsxd rax, dword [rsp + 0xec]
add rax, rdi
je 0x140006398
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], gethostname
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], 0x108
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x50]
mov rcx, r13
mov edx, 0x80862007
mov r9d, Ordinal_41
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor ebx, ebx
test eax, eax
je 0x14000639a
cmp dword [rsp + 0xf8], 0x4550
jne 0x14000639a
mov r14d, dword [rsp + 0x180]
xor ebx, ebx
test r14, r14
je 0x14000639a
mov r15d, dword [rsp + 0x184]
test r15d, r15d
je 0x14000639a
xor ecx, ecx
mov rdx, r15
mov r8d, 0x3000
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbp, rax
mov rbx, r14
add rbx, rdi
je 0x140006383
test rbp, rbp
je 0x140006383
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], gethostname
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], r15
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r12, [rsp + 0x50]
mov rcx, r13
mov edx, 0x80862007
mov r8, r12
mov r9d, Ordinal_41
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140006383
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], r15
cmp dword [rbp + 0x18], 0
je 0x140006383
mov rax, rbp
sub rax, r14
mov ecx, dword [rbp + 0x1c]
mov edx, dword [rbp + 0x20]
add rdx, rax
mov qword [rsp + 0xa0], rdx
mov edx, dword [rbp + 0x24]
add rdx, rax
mov qword [rsp + 0x90], rdx
mov qword [rsp + 0xa8], rax
add rcx, rax
mov qword [rsp + 0x98], rcx
mov rax, qword [rsp + 0x78]
add qword [rsp + 0x80], rax
xor r14d, r14d
xorps xmm6, xmm6
mov qword [rsp + 0x88], rbp
mov rax, qword [rsp + 0xa0]
mov ebp, dword [rax + r14*4]
add rbp, qword [rsp + 0xa8]
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
mov rcx, rbp
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
test rax, rax
js 0x1400063b9
mov r13, rax
cmp rax, 0xf
ja 0x14000623e
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
mov rcx, r12
mov rdx, rbp
mov r8, r13
call sub.VCRUNTIME140.dll_memcpy
add r13, rsp
add r13, 0x50
jmp 0x1400062a4
mov r15, r13
or r15, 0xf
cmp r15, 0x17
mov eax, reloc.WLDAP32.dll_Ordinal_22
cmovb r15, rax
cmp r15, 0xfff
jb 0x140006273
lea rcx, [r15 + 0x28]
call fcn.1401655a0
lea r12, [rax + 0x27]
and r12, 0xffffffffffffffe0
mov qword [r12 - 8], rax
jmp 0x14000627f
lea rcx, [r15 + 1]
call fcn.1401655a0
mov r12, rax
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r15
mov rcx, r12
mov rdx, rbp
mov r8, r13
call sub.VCRUNTIME140.dll_memcpy
add r13, r12
lea r12, [rsp + 0x50]
mov byte [r13], 0
cmp qword [rsi + 0x18], 0x10
mov rdx, rsi
jb 0x1400062b6
mov rdx, qword [rsi]
cmp qword [rsp + 0x68], 0x10
mov rcx, r12
jb 0x1400062c6
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov ebp, eax
test eax, eax
jne 0x14000632b
mov rax, qword [rsp + 0x90]
movzx eax, word [rax + r14*2]
mov rcx, qword [rsp + 0x98]
mov r15d, dword [rcx + rax*4]
cmp r15, 0x1001
jae 0x1400062f8
xor ebx, ebx
jmp 0x14000632b
add r15, rdi
mov rcx, qword [rsp + 0x88]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
cmp r15, qword [rsp + 0x80]
mov ebx, 0
cmova rbx, r15
cmp r15, qword [rsp + 0x78]
cmovb rbx, r15
mov rax, qword [rsp + 0x68]
cmp rax, 0x10
jb 0x140006368
mov rcx, qword [rsp + 0x50]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140006363
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x1400063be
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.1401658ec
test ebp, ebp
je 0x14000639a
inc r14
mov rbp, qword [rsp + 0x88]
mov eax, dword [rbp + 0x18]
cmp r14, rax
jb 0x1400061e1
xor ebx, ebx
mov rcx, rbp
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x14000639a
xor ebx, ebx
mov rax, rbx
movaps xmm6, xmmword [rsp + 0x200]
add rsp, 0x218
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140012110
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3