Function at 0x140006ae8
Capabilities:
Enumerate pe sections
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
mov rbx, rdx
xor ebp, ebp
mov rdx, qword [0x140047898]
mov rdi, rcx
test rdx, rdx
jne 0x140006b1c
xor eax, eax
jmp 0x140006f07
mov rcx, qword [0x1400478b8]
xor r8d, r8d
call fcn.14001a670
mov r14d, 1
mov rcx, qword [0x1400478b8]
call fcn.14001afe0
cmp eax, 0x50
jne 0x140006b75
mov rcx, qword [0x1400478b8]
call fcn.14001afe0
cmp eax, 0x4b
jne 0x140006b75
mov rcx, qword [0x1400478b8]
call fcn.14001afe0
cmp eax, r14d
jne 0x140006b75
mov rcx, qword [0x1400478b8]
call fcn.14001afe0
cmp eax, 2
je 0x140006b7a
cmp eax, 0xffffffff
jne 0x140006b31
mov r9, qword [0x1400478b8]
mov r8d, 0x2a
mov rdx, r14
mov rcx, rbx
call fcn.14001a2f0
cmp rax, 0x2a
je 0x140006ba4
mov qword [0x140047898], rbp
jmp 0x140006b15
mov al, byte [rbx]
movzx ecx, byte [rbx + 5]
shl cx, 8
mov byte [0x140047cd8], al
mov al, byte [rbx + 1]
mov byte [0x140047cd9], al
mov al, byte [rbx + 2]
mov byte [0x140047cda], al
mov al, byte [rbx + 3]
mov byte [0x140047cdb], al
movzx eax, byte [rbx + 4]
or cx, ax
movzx eax, byte [rbx + 6]
mov word [0x140047cdc], cx
movzx ecx, byte [rbx + 7]
shl cx, 8
or cx, ax
movzx eax, byte [rbx + 0xa]
mov word [0x140047cde], cx
movzx ecx, byte [rbx + 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 8]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0xe]
mov dword [0x140047ce0], ecx
movzx ecx, byte [rbx + 0xf]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0xc]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x12]
mov dword [0x140047ce4], ecx
movzx ecx, byte [rbx + 0x13]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x10]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x16]
mov dword [0x140047ce8], ecx
movzx ecx, byte [rbx + 0x17]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x14]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x18]
mov dword [0x140047cec], ecx
movzx ecx, byte [rbx + 0x19]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x1a]
mov dword [0x140047cf0], ecx
movzx ecx, byte [rbx + 0x1b]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x1c]
mov dword [0x140047cf4], ecx
movzx ecx, byte [rbx + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x1e]
mov dword [0x140047cf8], ecx
movzx ecx, byte [rbx + 0x1f]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x20]
mov dword [0x140047cfc], ecx
movzx ecx, byte [rbx + 0x21]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x24]
mov dword [0x140047d00], ecx
movzx ecx, byte [rbx + 0x25]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x23]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x22]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x28]
mov dword [0x140047d04], ecx
movzx ecx, byte [rbx + 0x29]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x27]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x26]
shl ecx, 8
or ecx, eax
mov dword [0x140047d08], ecx
mov rcx, qword [0x1400478b8]
call fcn.14001b5e4
mov edx, dword [0x140047cf8]
mov r8d, dword [0x140047cf4]
add edx, r8d
add edx, dword [0x140047cf0]
movsxd rcx, edx
add rax, rcx
mov qword [0x140047898], rax
mov rax, qword [rdi + 0x48]
cmp byte [rax], bpl
je 0x140006e64
test r8d, r8d
jle 0x140006ddf
lea eax, [r8 + 2]
movsxd rcx, eax
call fcn.1400196ac
mov rsi, rax
movsxd rax, dword [0x140047cf0]
test eax, eax
je 0x140006d9d
mov rcx, qword [0x1400478b8]
mov rdx, rax
mov r8d, r14d
call fcn.14001a670
movsxd r8, dword [0x140047cf4]
mov rdx, r14
mov r9, qword [0x1400478b8]
mov rcx, rsi
call fcn.14001a2f0
movsxd r8, dword [0x140047cf4]
cmp r8, rax
jne 0x140006dd7
mov rax, qword [rdi + 0x50]
xor r9d, r9d
mov rdx, rsi
mov rcx, rdi
mov word [rax], bp
call fcn.140005f88
mov rcx, rsi
call fcn.140019698
mov rax, qword [rdi + 0x50]
cmp word [rax], bp
jne 0x140006e64
mov rsi, qword [rdi + 0x48]
mov rcx, rsi
call fcn.1400022f8
test eax, eax
je 0x140006e4e
mov rax, qword [rdi + 0x50]
mov r14d, 0x207
mov dword [rsp + 0x28], r14d
or r9d, 0xffffffff
mov r8, rsi
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140006e64
mov r8, qword [rdi + 0x50]
lea edx, [r14 + 0x39]
mov qword [rsp + 0x38], rbp
or r9d, 0xffffffff
mov qword [rsp + 0x30], rbp
xor ecx, ecx
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x140006e64
mov rcx, qword [rdi + 0x48]
call fcn.1400022a0
mov rcx, qword [rdi + 0x50]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp word [rdi + 0x22], bp
jne 0x140006e7d
movzx ecx, byte [rbx + 0x1b]
movzx eax, byte [rbx + 0x1a]
shl cx, 8
or cx, ax
mov word [rdi + 0x22], cx
cmp dword [rdi + 0xc], ebp
jne 0x140006ea4
movzx eax, byte [rbx + 0xe]
movzx ecx, byte [rbx + 0xf]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0xc]
shl ecx, 8
or ecx, eax
mov dword [rdi + 0xc], ecx
cmp qword [rdi + 0x10], rbp
jne 0x140006ed1
movzx eax, byte [rbx + 0x12]
movzx ecx, byte [rbx + 0x13]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x10]
shl ecx, 8
movsxd rcx, ecx
or rcx, rax
mov qword [rdi + 0x10], rcx
cmp qword [rdi + 0x18], rbp
jne 0x140006efe
movzx eax, byte [rbx + 0x16]
movzx ecx, byte [rbx + 0x17]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x14]
shl ecx, 8
movsxd rcx, ecx
or rcx, rax
mov qword [rdi + 0x18], rcx
movzx eax, byte [rbx + 0x22]
and eax, 0xf7
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret