Function at 0x140041b30
Capabilities:
Enumerate pe sections
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov rax, qword [0x1400d0400]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rax, rdx
mov r12, rcx
mov qword [rbp - 0x71], rcx
xor edi, edi
cmp qword [rdx + 0x18], 7
jbe 0x140041b70
mov rax, qword [rdx]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
mov qword [rsp + 0x58], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140042078
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov r15d, eax
mov qword [rbp - 0x79], r15
mov r9d, 4
mov r8d, 0x1000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x140041c1f
mov qword [r12], rdi
mov qword [r12 + 8], rdi
mov ecx, 0x40
call fcn.140074c88
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [r12], rax
mov rcx, r14
mov rdx, qword [0x1400a7b70]
call rdx
nop
jmp 0x1400420b7
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x65]
mov r8d, ebx
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov qword [rbp - 0x19], rsi
mov dword [rbp - 0x11], ebx
mov eax, 0x5a4d
cmp word [rsi], ax
je 0x140041c76
mov rcx, r12
call fcn.14003ee70
nop
mov r8d, 0x4000
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rcx, r14
mov rax, qword [0x1400a7b70]
call rax
nop
jmp 0x1400420b7
movsxd rbx, dword [rsi + 0x3c]
add rbx, rsi
mov qword [rbp - 0x49], rbx
mov eax, 0x20b
cmp word [rbx + 0x18], ax
je 0x140041cba
mov rcx, r12
call fcn.14003ee70
nop
mov r8d, 0x4000
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rcx, r14
mov rax, qword [0x1400a7b70]
call rax
nop
jmp 0x1400420b7
movzx r13d, word [rbx + 0x14]
add r13, 0x18
add r13, rbx
mov qword [rbp - 0x71], r13
cmp dword [rbx + 0x94], 0
jne 0x140041d01
mov rcx, r12
call fcn.14003ee70
nop
mov r8d, 0x4000
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rcx, r14
mov rax, qword [0x1400a7b70]
call rax
nop
jmp 0x1400420b7
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
mov ecx, 0x40
call fcn.140074c88
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rsp + 0x40], rax
mov r8, rbx
mov rdx, r13
mov ecx, dword [rbx + 0x90]
call fcn.140040310
mov edi, eax
add rdi, 0xc
add rdi, rsi
mov r8d, dword [rdi]
test r8d, r8d
je 0x140041feb
xor r15d, r15d
nop dword [rax]
nop dword [rax + rax]
mov rdx, r13
mov r9, r15
movzx r10d, word [rbx + 6]
test r10, r10
je 0x140041d8c
mov ecx, dword [rdx + 0xc]
cmp r8d, ecx
jb 0x140041d80
add ecx, dword [rdx + 8]
cmp r8d, ecx
jb 0x140041d8c
add rdx, 0x28
inc r9
cmp r9, r10
jb 0x140041d70
mov ecx, dword [rdx + 0xc]
test ecx, ecx
je 0x140041f89
mov eax, dword [rdx + 0x14]
test eax, eax
je 0x140041f89
sub r8d, ecx
add r8d, eax
cmp r8d, 0xffffffff
je 0x140041f89
mov edx, r8d
add rdx, rsi
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], r15
mov qword [rbp + 0xf], r15
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rdx + r8], 0
jne 0x140041dd0
lea rcx, [rbp - 9]
call fcn.1400019d0
nop
mov rsi, qword [rsp + 0x40]
mov qword [rbp - 0x59], rsi
mov rbx, qword [rsi + 8]
mov qword [rbp - 0x41], rbx
mov dword [rbp - 0x39], r15d
mov r15, rsi
mov r13, qword [rbp + 0xf]
mov r14, qword [rbp - 9]
cmp byte [rbx + 0x19], 0
jne 0x140041e7a
mov qword [rbp - 0x61], rdi
mov rsi, qword [rbp + 7]
nop dword [rax]
nop word [rax + rax]
mov qword [rbp - 0x41], rbx
lea rcx, [rbx + 0x20]
lea rdx, [rbp - 9]
cmp r13, 0xf
cmova rdx, r14
mov rdi, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 0xf
jbe 0x140041e42
mov rcx, qword [rcx]
mov r8, rdi
cmp rsi, rdi
cmovb r8, rsi
call fcn.14009e820
test eax, eax
je 0x140041f18
js 0x140041f21
mov dword [rbp - 0x39], 1
mov r15, rbx
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
je 0x140041e20
mov rdi, qword [rbp - 0x61]
mov rsi, qword [rbp - 0x59]
cmp byte [r15 + 0x19], 0
jne 0x140041e9b
lea r8, [r15 + 0x20]
lea rdx, [rbp - 9]
lea rcx, [rsp + 0x40]
call fcn.140001840
test al, al
je 0x140041f31
movabs rax, 0x3ffffffffffffff
cmp qword [rsp + 0x48], rax
je 0x1400420e1
lea rax, [rsp + 0x40]
mov qword [rbp - 0x29], rax
xor r15d, r15d
mov qword [rbp - 0x21], r15
mov ecx, 0x40
call fcn.140074c88
nop
movups xmm0, xmmword [rbp - 9]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rbp + 7]
movups xmmword [rax + 0x30], xmm1
mov r13d, 0xf
mov byte [rbp - 9], r15b
mov qword [rax], rsi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rsi
mov word [rax + 0x18], r15w
mov qword [rbp - 0x21], r15
movups xmm0, xmmword [rbp - 0x41]
movaps xmmword [rbp - 0x59], xmm0
mov r8, rax
lea rdx, [rbp - 0x59]
lea rcx, [rsp + 0x40]
call fcn.14000d070
mov r14, qword [rbp - 9]
jmp 0x140041f34
cmp rdi, rsi
jae 0x140041e5f
mov dword [rbp - 0x39], 0
mov rbx, qword [rbx + 0x10]
jmp 0x140041e6c
xor r15d, r15d
cmp r13, 0xf
jbe 0x140041f6b
lea rdx, [r13 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x140041f63
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400420e7
mov rcx, r14
call fcn.140074cc4
add rdi, 0x14
mov r8d, dword [rdi]
mov rsi, qword [rsp + 0x50]
test r8d, r8d
je 0x140041fe2
mov rbx, qword [rbp - 0x49]
mov r13, qword [rbp - 0x71]
jmp 0x140041d60
mov rcx, r12
call fcn.14003ee70
nop
mov r8, qword [rsp + 0x40]
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.140018620
mov edx, 0x40
mov rcx, qword [rsp + 0x40]
call fcn.140074cc4
nop
mov r8d, 0x4000
mov rdx, qword [rbp - 0x79]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rcx, qword [rsp + 0x58]
mov rax, qword [0x1400a7b70]
call rax
nop
jmp 0x1400420b7
mov r14, qword [rsp + 0x58]
mov r15, qword [rbp - 0x79]
xor eax, eax
mov qword [r12], rax
mov qword [r12 + 8], rax
mov ecx, 0x40
call fcn.140074c88
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov rcx, qword [rsp + 0x40]
mov qword [r12], rcx
mov qword [rsp + 0x40], rax
mov rdx, qword [r12 + 8]
mov rcx, qword [rsp + 0x48]
mov qword [r12 + 8], rcx
mov qword [rsp + 0x48], rdx
mov r8, qword [rax + 8]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.140018620
mov edx, 0x40
mov rcx, qword [rsp + 0x40]
call fcn.140074cc4
nop
mov r8d, 0x4000
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rcx, r14
mov rax, qword [0x1400a7b70]
call rax
nop
jmp 0x1400420b7
mov qword [r12], rdi
mov qword [r12 + 8], rdi
mov ecx, 0x40
call fcn.140074c88
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [r12], rax
lea rax, [r14 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400420b7
mov rcx, r14
mov rax, qword [0x1400a7b70]
call rax
nop
mov rax, r12
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140074de0
mov rbx, qword [rsp + 0x150]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14000d690
nop
call fcn.14007b508
int3