Function at 0x140062490
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0x90
mov rax, qword [0x140340610]
xor rax, rsp
mov qword [rbp - 1], rax
mov r13, rdx
mov r15, rcx
mov qword [rbp - 0x49], rcx
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x140062541
movsxd rdi, dword [rdx + 0x3c]
add rdi, rdx
cmp dword [rdi], 0x4550
jne 0x140062541
mov eax, 0x20b
cmp word [rdi + 0x18], ax
jne 0x140062541
mov ebx, dword [rdi + 0x50]
mov edx, ebx
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r12, rax
test rax, rax
je 0x140062541
movzx ecx, word [rdi + 0x14]
mov eax, dword [rcx + rdi + 0x24]
mov dword [rbp - 0x31], eax
sub ebx, eax
mov edx, ebx
mov qword [rbp - 0x39], rdx
jne 0x14006256a
xor esi, esi
mov r15, rsi
mov rbx, qword [rbp - 0x49]
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r15
mov rcx, rbx
call fcn.14005d120
xor eax, eax
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.140226780
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r8d, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r8 + rcx]
cmp dword [0x14034a66c], eax
jle 0x140062631
lea rcx, [0x14034a66c]
call fcn.140226930
cmp dword [0x14034a66c], 0xffffffff
jne 0x14006262d
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
mov r8d, reloc.WS2_32.dll_setsockopt
lea rdx, [0x14030ad78]
lea rcx, [rbp - 0x29]
call fcn.140061b70
nop
lea r8, [rbp - 0x29]
mov rdx, qword [0x14034a3a8]
mov rcx, r15
call fcn.14005d230
mov qword [0x14034a6e0], rax
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x140062621
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006261b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400627aa
call fcn.1402267a0
nop
lea rcx, [0x14034a66c]
call fcn.1402268d0
mov rdx, qword [rbp - 0x39]
xor esi, esi
cmp qword [0x14034a6e0], rsi
je 0x14006251e
mov qword [rbp - 0x41], rsi
mov qword [rsp + 0x20], rdx
lea rdx, [rbp - 0x41]
mov rcx, r15
call fcn.140060e20
test al, al
je 0x14006251e
mov r15, qword [rbp - 0x41]
test r15, r15
je 0x140062521
mov r8d, dword [rdi + 0x54]
mov rdx, r13
mov rcx, r12
call fcn.140228be0
movzx ebx, word [rdi + 0x14]
add rbx, 0x28
mov r14d, esi
cmp si, word [rdi + 6]
jae 0x1400626bd
add rbx, rdi
nop dword [rax]
test dword [rbx + 0x14], 0x80
ja 0x1400626ad
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, r13
mov ecx, dword [rbx - 4]
add rcx, r12
call fcn.140228be0
inc r14d
add rbx, 0x28
movzx eax, word [rdi + 6]
cmp r14d, eax
jl 0x140062690
mov r13d, dword [rbp - 0x31]
mov r14, r15
sub r14, r13
mov rbx, r14
sub rbx, qword [rdi + 0x30]
mov rdx, r12
lea rcx, [rbp - 0x29]
call fcn.14008a470
mov rdx, rbx
mov rcx, rax
call fcn.1400627b0
mov rdx, r12
lea rcx, [rbp - 0x29]
call fcn.14008a5c0
mov rdx, rax
mov rbx, qword [rbp - 0x49]
mov rcx, rbx
call fcn.1400628b0
test al, al
je 0x140062525
lea rax, [r12 + r13]
test rax, rax
je 0x140062525
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x29], gethostname
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], r15
mov rax, qword [rbp - 0x39]
mov qword [rbp - 9], rax
mov dword [rbp - 0x31], esi
mov qword [rsp + 0x38], rsi
lea rax, [rbp - 0x31]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov r9d, Ordinal_45
lea r8, [rbp - 0x29]
mov edx, 0x80862007
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140062525
mov r8d, dword [rdi + 0x28]
add r8, r14
mov dword [rbp - 0x31], esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea rdx, [rbp - 0x31]
mov rcx, rbx
call fcn.140062b10
test al, al
je 0x140062525
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r15
jmp 0x140062543
call fcn.140237b6c
int3