Function at 0x140055d80
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov r15, r8
mov r12, rdx
mov rsi, rcx
test rdx, rdx
je 0x14005607e
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x40]
call sub.VCRUNTIME140.dll_memset
xor r13d, r13d
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], gethostname
mov qword [rsp + 0x50], r12
lea rax, [rbp - 0x80]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], 0x40
mov dword [rbp + 0x118], r13d
mov qword [rsp + 0x38], r13
lea rax, [rbp + 0x118]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
lea r9d, [r13 + 0x28]
lea r8, [rsp + 0x40]
mov edx, 0x80862007
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14005607e
mov eax, 0x5a4d
cmp word [rbp - 0x80], ax
jne 0x14005607e
movsxd rax, dword [rbp - 0x44]
add rax, r12
je 0x14005607e
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], gethostname
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], 0x108
mov dword [rbp + 0x118], r13d
mov qword [rsp + 0x38], r13
lea rax, [rbp + 0x118]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
lea r9d, [r13 + 0x28]
lea r8, [rsp + 0x40]
mov edx, 0x80862007
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14005607e
cmp dword [rbp - 0x40], 0x4550
jne 0x14005607e
mov ebx, dword [rbp + 0x48]
test ebx, ebx
je 0x14005607e
mov eax, dword [rbp + 0x4c]
test eax, eax
je 0x14005607e
mov r14d, eax
mov qword [rsp + 0x70], rax
lea r9d, [r13 + 4]
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
mov qword [rsp + 0x68], rbx
lea rax, [rbx + r12]
test rdi, rdi
je 0x14005606d
test rax, rax
je 0x14005606d
test r14, r14
je 0x14005606d
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], gethostname
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], r14
mov dword [rbp + 0x118], r13d
mov qword [rsp + 0x38], r13
lea rax, [rbp + 0x118]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
lea r9d, [r13 + 0x28]
lea r8, [rsp + 0x40]
mov edx, 0x80862007
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14005606d
mov r14, rdi
sub r14, rbx
mov r13d, dword [rdi + 0x20]
add r13, r14
mov eax, dword [rdi + 0x24]
add rax, r14
mov qword [rbp + 0x118], rax
mov eax, dword [rdi + 0x1c]
add rax, r14
mov qword [rbp + 0x128], rax
xor eax, eax
mov ebx, eax
cmp dword [rdi + 0x18], eax
jbe 0x14005606d
nop dword [rax + rax]
mov esi, ebx
mov edx, dword [r13 + rsi*4]
add rdx, r14
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140055fe4
lea rcx, [rsp + 0x40]
call fcn.14004ef70
mov rdx, r15
cmp qword [r15 + 0x18], 0x10
jb 0x140056005
mov rdx, qword [r15]
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14005609b
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x14005605d
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140056058
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140056121
call fcn.14016c298
inc ebx
cmp ebx, dword [rdi + 0x18]
mov eax, 0
jb 0x140055fc0
mov r8d, 0x8000
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbx, qword [rsp + 0x210]
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rbp + 0x118]
movzx eax, word [rax + rsi*2]
mov rcx, qword [rbp + 0x128]
mov ecx, dword [rcx + rax*4]
cmp ecx, 0x1000
jbe 0x1400560eb
lea rbx, [r12 + rcx]
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + r12]
cmp rbx, rax
jb 0x140056128
mov rax, qword [rsp + 0x70]
add rax, rcx
add rax, r12
cmp rbx, rax
ja 0x140056128
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ebx, ebx
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140056140
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005613b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005613b
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]
jmp 0x1400560ed
call fcn.14016c298
mov rax, rbx
jmp 0x140056080