Function at 0x1800731a0
Capabilities:
Access peb ldr_data
Parse pe header
Resolve function by parsing pe exports
Write file on windows

Disassembly:
mov r11, rsp
push rbp
push rbx
push rdi
lea rbp, [r11 - 0x28]
sub rsp, 0x110
mov rax, qword [0x180175010]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov eax, 0x5a4d
mov rdi, rdx
mov rbx, rcx
cmp word [rcx], ax
jne 0x180073772
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x180073772
mov ecx, dword [rax + rcx + 0x8c]
mov qword [r11 + 8], rsi
mov qword [r11 + 0x18], r12
mov qword [r11 + 0x20], r13
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
mov r15d, dword [rax + rbx + 0x88]
mov qword [rsp + 0x30], rcx
test rcx, rcx
je 0x180073556
test r15, r15
je 0x180073556
mov esi, dword [r15 + rbx + 0x20]
xor r14d, r14d
mov r12d, dword [r15 + rbx + 0x24]
add rsi, rbx
mov r13d, dword [r15 + rbx + 0x1c]
add r12, rbx
mov r9d, dword [r15 + rbx + 0x18]
add r13, rbx
mov r10d, r14d
test r9, r9
je 0x1800732b7
nop word [rax + rax]
mov r11, r9
mov rdx, rdi
sub r11, r10
shr r11, 1
add r11, r10
mov eax, dword [rsi + r11*4]
add rax, rbx
test rdi, rdi
jne 0x180073270
lea ecx, [rdi - 1]
jmp 0x1800732a1
test rax, rax
jne 0x180073280
lea ecx, [rax + 1]
jmp 0x1800732a1
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
movzx r8d, byte [rax]
lea rax, [rax + 1]
test cl, cl
je 0x180073298
cmp cl, r8b
je 0x180073280
sub ecx, r8d
je 0x1800733fd
test ecx, ecx
lea rax, [r11 + 1]
cmovle rax, r10
cmovle r9, r11
mov r10, rax
cmp r9, rax
jne 0x180073250
movabs r13, 0xd3187ddbcb665d0d
movabs r12, 0x83fd13ae3d5a1bd6
mov dl, 3
call fcn.180071aa0
movabs rcx, 0x60bde5d49a7d6580
lea r8, [rsp + 0x70]
movabs rax, 0xbd3809a9a4162568
mov edx, r8d
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x70], rax
movabs rax, 0xe79366c15b7a6fb9
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x78], rax
movabs rax, 0x65139f2927526375
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x80], rax
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x78], rax
mov qword [rsp + 0x30], r13
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x50], rax
mov qword [rsp + 0x30], r12
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x48], rax
movabs rax, 0x65139f292752434f
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x40], rax
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x70]
mov rax, qword [rsp + 0x30]
movdqa xmm1, xmmword [rsp + 0x70]
pxor xmm1, xmmword [rbp - 0x50]
movdqa xmm0, xmmword [rbp - 0x80]
mov qword [rbp - 0x38], rax
movq rax, xmm1
pxor xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rsp + 0x70], xmm1
movdqa xmmword [rbp - 0x80], xmm0
test al, al
je 0x1800733bb
nop dword [rax]
inc rcx
mov rdx, rcx
cmp byte [rcx], r14b
jne 0x1800733b0
mov rcx, qword [0x180175e68]
sub edx, r8d
mov r8d, edx
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x70]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, rdi
mov ecx, edi
cmp byte [rdi], r14b
je 0x1800733f0
inc rax
mov rcx, rax
cmp byte [rax], r14b
jne 0x1800733e5
sub ecx, edi
mov rdx, rdi
mov r8d, ecx
jmp 0x180073756
movzx eax, word [r12 + r11*2]
mov dl, 1
mov esi, dword [r13 + rax*4]
call fcn.180071aa0
movabs rax, 0xb53809a9a4162568
lea r8, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x50]
mov rax, qword [rsp + 0x38]
movabs r13, 0xd3187ddbcb665d0d
mov qword [rsp + 0x50], rax
movabs r12, 0x83fd13ae3d5a1bd6
movabs rax, 0x83fd339459346eb9
mov edx, r8d
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x38], r13
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov rax, qword [rsp + 0x38]
movdqa xmm0, xmmword [rsp + 0x50]
mov qword [rsp + 0x48], rax
pxor xmm0, xmmword [rsp + 0x40]
movq rax, xmm0
movdqa xmmword [rsp + 0x50], xmm0
test al, al
je 0x1800734ab
nop word [rax + rax]
inc rcx
mov rdx, rcx
cmp byte [rcx], r14b
jne 0x1800734a0
mov rcx, qword [0x180175e68]
sub edx, r8d
mov r8d, edx
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x50]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, rdi
mov ecx, edi
cmp byte [rdi], r14b
je 0x1800734e0
inc rax
mov rcx, rax
cmp byte [rax], r14b
jne 0x1800734d5
sub ecx, edi
mov qword [rsp + 0x20], r14
mov r8d, ecx
xor r9d, r9d
mov rcx, qword [0x180175e68]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rsi, r15
jb 0x180073513
mov rax, rsi
sub rax, r15
cmp rax, qword [rsp + 0x30]
jb 0x1800732cb
lea rax, [rsi + rbx]
mov r14, qword [rsp + 0x108]
mov r13, qword [rsp + 0x148]
mov r12, qword [rsp + 0x140]
mov rsi, qword [rsp + 0x130]
mov r15, qword [rsp + 0x100]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1800d6d50
add rsp, 0x110
pop rdi
pop rbx
pop rbp
ret
mov dl, 3
call fcn.180071aa0
mov r15, rax
lea r8, [rbp - 0x70]
movabs rax, 0xbb3818b7be023260
movabs r13, 0xd3187ddbcb665d0d
mov qword [rsp + 0x30], rax
movabs r12, 0x83fd13ae3d5a1bd6
mov rcx, qword [rsp + 0x30]
movabs rax, 0xfb9833c1537a68b7
mov qword [rbp - 0x70], rcx
mov edx, r8d
mov qword [rsp + 0x30], rax
movabs rax, 0x4733a55a53202c3f
mov rcx, qword [rsp + 0x30]
mov qword [rbp - 0x68], rcx
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
mov qword [rbp - 0x60], rcx
movabs rcx, 0x60bde5d49a7d6580
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x58], rax
mov qword [rsp + 0x30], r13
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x30], rax
mov qword [rsp + 0x30], r12
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x28], rax
movabs rax, 0x65139f292752434f
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x20], rax
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x70]
mov rax, qword [rsp + 0x30]
movdqa xmm1, xmmword [rbp - 0x70]
pxor xmm1, xmmword [rbp - 0x30]
movdqa xmm0, xmmword [rbp - 0x60]
mov qword [rbp - 0x18], rax
movq rax, xmm1
pxor xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x70], xmm1
movdqa xmmword [rbp - 0x60], xmm0
test al, al
je 0x18007365b
nop dword [rax + rax]
inc rcx
mov rdx, rcx
cmp byte [rcx], 0
jne 0x180073650
mov rcx, qword [0x180175e68]
sub edx, r8d
mov r8d, edx
xor r14d, r14d
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x20], r14
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdi, qword gs:[0x60]
mov rcx, qword [rdi + 0x110]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rdi + 0x18]
mov esi, r14d
add rcx, 0x20
mov rax, qword [rcx]
cmp rax, rcx
je 0x1800736ba
cmp qword [rax + 0x20], rbx
je 0x1800736b6
mov rax, qword [rax]
cmp rax, rcx
jne 0x1800736a6
jmp 0x1800736ba
mov rsi, qword [rax + 0x50]
mov rcx, qword [rdi + 0x110]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdx, rsi
mov rcx, r15
call fcn.180071c10
movabs rax, 0xd3187ddbcb665d2f
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x60]
mov rax, qword [rsp + 0x30]
mov edx, r8d
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x30], r12
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x30], r13
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x30], r12
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x78], rax
movdqa xmm0, xmmword [rsp + 0x70]
pxor xmm0, xmmword [rsp + 0x60]
movq rax, xmm0
movdqa xmmword [rsp + 0x60], xmm0
test al, al
je 0x18007374b
inc rcx
mov rdx, rcx
cmp byte [rcx], r14b
jne 0x180073740
sub edx, r8d
mov r8d, edx
lea rdx, [rsp + 0x60]
mov rcx, qword [0x180175e68]
xor r9d, r9d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
jmp 0x180073517
xor eax, eax
jmp 0x18007353f