Function at 0x140004320
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x140018010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r13, rcx
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x17], xmm1
xor esi, esi
mov qword [rbp + 0x27], rsi
mov ecx, 0x1c27
call fcn.140009170
test rax, rax
je 0x140004866
lea rcx, [rax + 0x27]
and rcx, 0xffffffffffffffe0
mov qword [rcx - 8], rax
mov qword [rbp + 0x17], rcx
lea rbx, [rcx + 0x1c00]
mov qword [rbp + 0x27], rbx
mov r8d, 0x1c00
lea rdx, [0x140018050]
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp + 0x1f], rbx
mov eax, 0x5a4d
mov rcx, qword [rbp + 0x17]
cmp word [rcx], ax
jne 0x1400047fe
movsxd rdi, dword [rcx + 0x3c]
add rdi, rcx
cmp dword [rdi], 0x4550
jne 0x1400047fe
mov eax, 0x20b
cmp word [rdi + 0x18], ax
jne 0x1400047fe
mov ebx, dword [rdi + 0x50]
mov qword [rbp + 0xf], rbx
lea r9d, [rsi + 4]
mov r8d, 0x3000
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r12, rax
test rbx, rbx
je 0x1400047e7
cmp qword [0x14001a6e8], rsi
jne 0x14000450c
mov qword [rbp - 0x11], rsi
mov qword [rbp - 1], rsi
mov qword [rbp + 7], 0xf
mov byte [rbp - 0x11], sil
lea r8d, [rsi + 0xe]
lea rdx, [0x14000ba78]
lea rcx, [rbp - 0x11]
call fcn.1400013d0
nop
mov qword [rbp - 0x31], rsi
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x19], 0xf
mov byte [rbp - 0x31], sil
lea r8d, [rsi + 0xc]
lea rdx, [0x14000ba88]
lea rcx, [rbp - 0x31]
call fcn.1400013d0
nop
lea rcx, [rbp - 0x31]
call fcn.140007a80
mov rdx, rax
lea r8, [rbp - 0x11]
mov rcx, r13
call fcn.140002610
mov qword [0x14001a6e8], rax
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x1400044be
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400044b9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400044b9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400091b4
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x19], 0xf
mov byte [rbp - 0x31], 0
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x14000450c
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004507
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004507
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400091b4
mov qword [rbp - 0x39], rsi
mov qword [rsp + 0x20], rbx
lea rdx, [rbp - 0x39]
mov rcx, r13
call fcn.1400032c0
test al, al
je 0x1400047e7
mov r14, qword [rbp - 0x39]
test r14, r14
je 0x1400046ad
mov r8d, dword [rdi + 0x54]
mov rdx, qword [rbp + 0x17]
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rdi + 0x14]
add rbx, 0x28
mov r15d, esi
cmp si, word [rdi + 6]
jae 0x140004585
add rbx, rdi
nop word [rax + rax]
mov ecx, dword [rbx - 4]
add rcx, r12
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, qword [rbp + 0x17]
call sub.VCRUNTIME140.dll_memcpy
inc r15d
lea rbx, [rbx + 0x28]
movzx eax, word [rdi + 6]
cmp r15d, eax
jl 0x140004560
cmp dword [rdi + 0xb0], 0
je 0x1400045ac
mov rbx, r14
sub rbx, qword [rdi + 0x30]
mov rdx, r12
lea rcx, [rbp - 0x31]
call fcn.140005550
mov rdx, rbx
mov rcx, rax
call fcn.140004870
cmp dword [rdi + 0x94], 0
je 0x1400045d4
mov rdx, r12
lea rcx, [rbp - 0x31]
call fcn.1400056a0
mov rdx, rax
mov rcx, r13
call fcn.140004970
test al, al
je 0x1400046ad
mov r9, qword [rbp + 0xf]
mov r8, r12
mov rdx, r14
mov rcx, r13
call fcn.140002320
test al, al
je 0x1400046ad
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov ebx, dword [rdi + 0x28]
add rbx, r14
mov dword [rbp - 0x39], esi
mov qword [rbp - 0x11], rsi
mov qword [rbp - 1], rsi
mov qword [rbp + 7], 0xf
mov byte [rbp - 0x11], 0
mov r8d, 0xc
lea rdx, [0x14000ba88]
lea rcx, [rbp - 0x11]
call fcn.1400013d0
nop
lea rcx, [rbp - 0x11]
call fcn.140007a80
mov r9, rax
mov r8, rbx
lea rdx, [rbp - 0x39]
mov rcx, r13
call fcn.140004c70
test al, al
sete bl
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x140004691
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000468c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000468c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400091b4
test bl, bl
jne 0x1400046ad
mov r9d, dword [rdi + 0x54]
mov rdx, r14
mov rcx, r13
call fcn.140002280
mov rcx, qword [rbp + 0x17]
jmp 0x140004801
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test r14, r14
je 0x1400047f8
cmp qword [0x14001a710], 0
jne 0x1400047d6
mov qword [rbp - 0x11], rsi
mov qword [rbp - 1], rsi
mov qword [rbp + 7], 0xf
mov byte [rbp - 0x11], 0
mov r8d, 0xa
lea rdx, str.ExFreePool
lea rcx, [rbp - 0x11]
call fcn.1400013d0
nop
mov qword [rbp - 0x31], rsi
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x19], 0xf
mov byte [rbp - 0x31], 0
mov r8d, 0xc
lea rdx, [0x14000ba88]
lea rcx, [rbp - 0x31]
call fcn.1400013d0
nop
lea rcx, [rbp - 0x31]
call fcn.140007a80
mov rdx, rax
lea r8, [rbp - 0x11]
mov rcx, r13
call fcn.140002610
mov qword [0x14001a710], rax
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x140004788
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004783
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004783
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400091b4
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x19], 0xf
mov byte [rbp - 0x31], 0
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x1400047d6
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400047d1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400047d1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400091b4
mov r9, r14
mov rcx, r13
call fcn.140003920
mov rcx, qword [rbp + 0x17]
jmp 0x140004804
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [rbp + 0x17]
jmp 0x140004804
mov r14, rsi
mov rsi, r14
test rcx, rcx
je 0x140004836
mov rdx, qword [rbp + 0x27]
sub rdx, rcx
mov r8, rcx
cmp rdx, 0x1000
jb 0x140004831
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub r8, rcx
add r8, 0xfffffffffffffff8
cmp r8, 0x1f
ja 0x140004866
call fcn.1400091b4
mov rax, rsi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140009150
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3