Function at 0x140005e20
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x14014b080]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rdi, rdx
mov r13, rcx
mov qword [rsp + 0x48], rdx
mov rcx, qword [rdx]
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400060a7
movsxd rbp, dword [rcx + 0x3c]
add rbp, rcx
cmp dword [rbp], 0x4550
jne 0x1400060a7
mov eax, 0x20b
cmp word [rbp + 0x18], ax
jne 0x1400060a7
mov ebx, dword [rbp + 0x50]
mov qword [rsp + 0x50], rbx
mov r9d, 4
mov r8d, 0x3000
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, rax
mov r8d, ebx
mov rcx, r13
call fcn.140002c40
mov r12, rax
xor esi, esi
test rax, rax
je 0x140006053
mov r8d, dword [rbp + 0x54]
mov rdx, qword [rdi]
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rbp + 0x14]
add rbx, 0x28
mov r14d, esi
cmp si, word [rbp + 6]
jae 0x140005f14
add rbx, rbp
nop word [rax + rax]
mov ecx, dword [rbx - 4]
add rcx, r15
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, qword [rdi]
call sub.VCRUNTIME140.dll_memcpy
inc r14d
lea rbx, [rbx + 0x28]
movzx eax, word [rbp + 6]
cmp r14d, eax
jl 0x140005ef0
mov rbx, r12
sub rbx, qword [rbp + 0x30]
mov rdx, r15
lea rcx, [rsp + 0x60]
call fcn.140007420
mov rdx, rbx
mov rcx, rax
call fcn.140006120
mov rdx, r15
lea rcx, [rsp + 0x60]
call fcn.140007570
mov rdx, rax
mov rcx, r13
call fcn.140006220
test al, al
je 0x140006053
test r15, r15
je 0x140006053
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x140006053
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x60], gethostname
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov r9d, Ordinal_45
lea r8, [rsp + 0x60]
mov edx, 0x80862007
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140006053
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r8d, dword [rbp + 0x28]
add r8, r12
mov dword [rsp + 0x58], esi
lea rdx, [rsp + 0x58]
mov rcx, r13
call fcn.140006450
test al, al
je 0x140006053
mov r9d, dword [rbp + 0x54]
mov rdx, r12
mov rcx, r13
call fcn.1400029c0
nop
mov rcx, qword [rdi]
test rcx, rcx
je 0x140006044
mov rdx, qword [rdi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140006034
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000604c
mov rcx, r8
call fcn.1400e7f64
mov qword [rdi], rsi
mov qword [rdi + 8], rsi
mov qword [rdi + 0x10], rsi
mov rax, r12
jmp 0x1400060e3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r12
mov rcx, r13
call fcn.140002eb0
nop
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400060e1
mov rdx, qword [rdi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x1400060a0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000610e
mov rcx, r8
call fcn.1400e7f64
jmp 0x1400060d6
mov rdx, qword [rdx + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x1400060cf
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000610e
mov rcx, r8
call fcn.1400e7f64
xor esi, esi
mov qword [rdi], rsi
mov qword [rdi + 8], rsi
mov qword [rdi + 0x10], rsi
xor eax, eax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400e7a20
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3