Function at 0x180001f70
Capabilities:
Link function at runtime on windows
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 - 0xe0]
sub rsp, 0x1e0
mov rax, qword [0x180032080]
xor rax, rsp
mov qword [rbp + 0xd0], rax
mov r12, rdx
mov rsi, rcx
xor ecx, ecx
movsxd r13, dword [rsi + 0x3c]
add r13, rsi
mov eax, 0x5a4d
cmp word [rsi], ax
jne 0x180002461
cmp dword [r13], 0x4550
jne 0x180002461
movzx eax, word [r13 + 6]
test ax, ax
je 0x180002461
mov edi, ecx
cmp cx, ax
jae 0x180002033
lea rbx, [r13 + 0x118]
nop word [rax + rax]
mov r8d, dword [r13 + 0x3c]
lea ecx, [r8 - 1]
not ecx
mov edx, dword [rbx]
dec edx
add edx, r8d
and edx, ecx
mov r9d, dword [rbx - 4]
lea eax, [r8 - 1]
add eax, r9d
and ecx, eax
mov dword [rbx + 4], ecx
mov dword [rbx], edx
mov r8d, edx
lea rdx, [rsi + r9]
add rcx, rsi
call fcn.1800213e0
inc edi
lea rbx, [rbx + 0x28]
movzx eax, word [r13 + 6]
cmp edi, eax
jl 0x180001ff0
movzx edx, ax
lea rcx, [r13 + 0x108]
call fcn.180001da0
mov dword [r13 + 0x50], eax
test eax, eax
je 0x180002461
mov eax, dword [r13 + 0x90]
test eax, eax
je 0x1800020d5
lea r15, [rsi + rax]
cmp dword [r15 + 0xc], 0
je 0x1800020d5
nop dword [rax]
nop dword [rax + rax]
mov ecx, dword [r15 + 0xc]
add rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, rax
test rax, rax
je 0x1800020ca
mov edi, dword [r15 + 0x10]
add rdi, rsi
mov ebx, dword [r15]
add rbx, rsi
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800020ca
mov rax, rcx
mov rcx, r14
jns 0x1800020a7
movzx edx, ax
jmp 0x1800020ae
lea rdx, [rsi + 2]
add rdx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi], rax
add rdi, 8
add rbx, 8
mov rcx, qword [rbx]
mov rax, rcx
test rcx, rcx
jne 0x18000209d
add r15, 0x14
cmp dword [r15 + 0xc], 0
jne 0x180002070
mov eax, dword [r13 + 0xb0]
test eax, eax
je 0x18000214a
lea r9, [rsi + rax]
cmp dword [r9], 0
je 0x18000214a
nop word [rax + rax]
lea r8, [r9 + 8]
mov r11d, dword [r9 + 4]
lea rax, [r11 - 8]
shr rax, 1
test eax, eax
je 0x180002141
mov r10d, eax
nop word [rax + rax]
movzx edx, word [r8]
movzx eax, dx
shr ax, 0xc
cmp ax, 3
jne 0x180002137
and edx, 0xfff
mov ecx, dword [r9]
lea rax, [rsi + rdx]
add rcx, rax
mov eax, dword [r13 + 0x30]
add dword [rcx], eax
add r8, 2
sub r10, 1
jne 0x180002110
add r9, r11
cmp dword [r9], 0
jne 0x1800020f0
mov edx, dword [r13 + 8]
lea rcx, [rsp + 0x30]
call fcn.180004b70
nop
mov r8, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
sub rax, r8
mov r14d, 5
cmp rax, r14
jb 0x1800021fa
lea rax, [r8 + 5]
mov qword [rsp + 0x40], rax
lea rbx, [rsp + 0x30]
cmp rcx, 0xf
cmova rbx, qword [rsp + 0x30]
lea rax, [0x18002d36d]
lea r15, str.dump_
cmp rax, rbx
jbe 0x1800021bd
lea rax, [rbx + r8]
cmp r15, rax
ja 0x1800021bd
cmp rbx, r15
ja 0x1800021b5
xor edi, edi
jmp 0x1800021c0
mov rdi, rbx
sub rdi, r15
jmp 0x1800021c0
mov rdi, r14
inc r8
lea rcx, [rbx + 5]
mov rdx, rbx
call fcn.1800213e0
mov r8, rdi
mov rdx, r15
mov rcx, rbx
call fcn.1800213e0
sub r14, rdi
lea rdx, [r15 + 5]
add rdx, rdi
lea rcx, [rbx + rdi]
mov r8, r14
call fcn.1800213e0
lea rax, [rsp + 0x30]
jmp 0x18000220c
mov qword [rsp + 0x28], r14
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.1800053f0
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rax + 0x18], 0xf
mov qword [rax + 0x10], 0
mov byte [rax], 0
mov r8d, 4
lea rdx, str..dll
lea rcx, [rsp + 0x50]
call fcn.1800046e0
xorps xmm0, xmm0
movups xmmword [rbp + 0xb0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xc0], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xb0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xc0], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x1800022d2
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800022cd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180002491
call fcn.180007ae0
movdqa xmm0, xmmword [0x18002d4d0]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x18000232a
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000231d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180002497
call fcn.180007ae0
movdqa xmm0, xmmword [0x18002d4d0]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp - 0x60]
call fcn.180021a80
lea rdx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 0xf
cmova rdx, qword [rbp + 0xb0]
lea rcx, [rbp - 0x60]
call fcn.180003aa0
nop
cmp qword [rbp + 0x28], 0
je 0x1800023bd
mov r8, r12
mov rdx, rsi
lea rcx, [rbp - 0x60]
call fcn.180003f20
lea rcx, [rbp - 0x58]
call fcn.1800045e0
test rax, rax
jne 0x1800023bd
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx - 0x18], 0
cmovne eax, edx
or eax, dword [rbp + rcx - 0x50]
and eax, 0x17
mov dword [rbp + rcx - 0x50], eax
mov edx, dword [rbp + rcx - 0x4c]
and edx, eax
jne 0x18000249d
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x60], rax
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x64], edx
lea rcx, [rbp - 0x58]
call fcn.1800037d0
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x60], rax
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x64], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x48], rax
lea rcx, [rbp + 0x48]
call fcn.18000722c
nop
mov rdx, qword [rbp + 0xc8]
cmp rdx, 0xf
jbe 0x180002461
inc rdx
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000245c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000248b
call fcn.180007ae0
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.180007ac0
mov rbx, qword [rsp + 0x230]
add rsp, 0x1e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.18000f508
nop
call fcn.18000f508
nop
call fcn.18000f508
nop
test dl, 4
je 0x1800024ab
lea rbx, str.ios_base::badbit_set
jmp 0x1800024c0
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.1800012e0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.180001c40
lea rdx, [0x180031198]
lea rcx, [rsp + 0x78]
call fcn.180009a98
int3