Function at 0x140041b20
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 - 0x79], rcx
xor r13d, r13d
cmp qword [rdx + 0x18], 7
jbe 0x140041b61
mov rax, qword [rdx]
mov qword [rsp + 0x30], r13
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 rsi, rax
mov qword [rbp - 0x49], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140041ff1
xor edx, edx
mov rcx, rsi
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 rdi, rax
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x140041c0f
mov qword [r12], r13
mov qword [r12 + 8], r13
mov ecx, 0x40
call fcn.140074c08
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, rsi
mov rdx, qword [0x1400a7b70]
call rdx
nop
jmp 0x140042030
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x6d]
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov qword [rbp - 0x19], rdi
mov dword [rbp - 0x11], ebx
mov eax, 0x5a4d
cmp word [rdi], ax
je 0x140041c66
mov rcx, r12
call fcn.14003ee70
nop
mov r8d, 0x4000
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rcx, rsi
mov rax, qword [0x1400a7b70]
call rax
nop
jmp 0x140042030
movsxd rbx, dword [rdi + 0x3c]
add rbx, rdi
mov qword [rbp - 0x59], rbx
mov eax, 0x20b
cmp word [rbx + 0x18], ax
je 0x140041caa
mov rcx, r12
call fcn.14003ee70
nop
mov r8d, 0x4000
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rcx, rsi
mov rax, qword [0x1400a7b70]
call rax
nop
jmp 0x140042030
movzx r14d, word [rbx + 0x14]
add r14, 0x18
add r14, rbx
mov qword [rbp - 0x51], r14
cmp dword [rbx + 0x94], 0
jne 0x140041cf1
mov rcx, r12
call fcn.14003ee70
nop
mov r8d, 0x4000
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rcx, rsi
mov rax, qword [0x1400a7b70]
call rax
nop
jmp 0x140042030
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
mov ecx, 0x40
call fcn.140074c08
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, r14
mov ecx, dword [rbx + 0x90]
call fcn.140040310
mov r9d, eax
add r9, 0xc
add r9, rdi
mov qword [rsp + 0x50], r9
mov r9d, dword [r9]
test r9d, r9d
je 0x140041f66
nop word [rax + rax]
mov rdx, r14
mov r8, r13
movzx r10d, word [rbx + 6]
test r10, r10
je 0x140041d7c
mov ecx, dword [rdx + 0xc]
cmp r9d, ecx
jb 0x140041d70
add ecx, dword [rdx + 8]
cmp r9d, ecx
jb 0x140041d7c
add rdx, 0x28
inc r8
cmp r8, r10
jb 0x140041d60
mov eax, dword [rdx + 0x14]
sub eax, dword [rdx + 0xc]
lea edx, [r9 + rax]
add rdx, rdi
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], r13
mov qword [rbp + 0xf], r13
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rdx + r8], 0
jne 0x140041da0
lea rcx, [rbp - 9]
call fcn.1400019d0
nop
mov rdi, qword [rsp + 0x40]
mov qword [rbp - 0x69], rdi
mov rbx, qword [rdi + 8]
mov qword [rbp - 0x41], rbx
mov dword [rbp - 0x39], r13d
mov r14, rdi
mov r13, qword [rbp + 0xf]
mov rsi, qword [rbp + 7]
mov r15, qword [rbp - 9]
cmp byte [rbx + 0x19], 0
jne 0x140041e2e
nop
mov qword [rbp - 0x41], rbx
lea rcx, [rbx + 0x20]
lea rdx, [rbp - 9]
cmp r13, 0xf
cmova rdx, r15
mov rdi, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 0xf
jbe 0x140041e02
mov rcx, qword [rcx]
mov r8, rdi
cmp rsi, rdi
cmovb r8, rsi
call fcn.14009e7a0
test eax, eax
je 0x140041e6d
js 0x140041e72
mov dword [rbp - 0x39], 1
mov r14, rbx
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
je 0x140041de0
mov rdi, qword [rbp - 0x69]
cmp byte [r14 + 0x19], 0
jne 0x140041e84
lea rdx, [r14 + 0x20]
mov rbx, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x140041e47
mov rdx, qword [rdx]
lea rcx, [rbp - 9]
cmp r13, 0xf
cmova rcx, r15
mov r8, rsi
cmp rbx, rsi
cmovb r8, rbx
call fcn.14009e7a0
test eax, eax
je 0x140041e7f
js 0x140041e84
jmp 0x140041efc
cmp rdi, rsi
jae 0x140041e17
mov dword [rbp - 0x39], 0
mov rbx, qword [rbx + 0x10]
jmp 0x140041e24
cmp rsi, rbx
jae 0x140041efc
movabs rax, 0x3ffffffffffffff
cmp qword [rsp + 0x48], rax
je 0x14004205a
lea rax, [rsp + 0x40]
mov qword [rbp - 0x29], rax
xor ebx, ebx
mov qword [rbp - 0x21], rbx
mov ecx, 0x40
call fcn.140074c08
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], bl
mov qword [rax], rdi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdi
mov word [rax + 0x18], bx
mov qword [rbp - 0x21], rbx
movups xmm0, xmmword [rbp - 0x41]
movaps xmmword [rbp - 0x69], xmm0
mov r8, rax
lea rdx, [rbp - 0x69]
lea rcx, [rsp + 0x40]
call fcn.14000d070
mov r15, qword [rbp - 9]
cmp r13, 0xf
jbe 0x140041f33
lea rdx, [r13 + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x140041f2b
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140042060
mov rcx, r15
call fcn.140074c44
mov rax, qword [rsp + 0x50]
add rax, 0x14
mov qword [rsp + 0x50], rax
mov r9d, dword [rax]
mov rdi, qword [rsp + 0x58]
xor r13d, r13d
test r9d, r9d
je 0x140041f5e
mov rbx, qword [rbp - 0x59]
mov r14, qword [rbp - 0x51]
jmp 0x140041d50
mov rsi, qword [rbp - 0x49]
mov r15, qword [rbp - 0x79]
mov qword [r12], r13
mov qword [r12 + 8], r13
mov ecx, 0x40
call fcn.140074c08
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.140074c44
nop
mov r8d, 0x4000
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rcx, rsi
mov rax, qword [0x1400a7b70]
call rax
nop
jmp 0x140042030
mov qword [r12], r13
mov qword [r12 + 8], r13
mov ecx, 0x40
call fcn.140074c08
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, [rsi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140042030
mov rcx, rsi
mov rax, qword [0x1400a7b70]
call rax
nop
mov rax, r12
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140074d60
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.14007b488
int3