Function at 0x140041dc0
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 [0x1400aa140]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rax, rdx
mov rdi, rcx
mov qword [rbp - 0x31], rcx
mov qword [rbp - 0x71], rcx
xor r13d, r13d
cmp qword [rdx + 0x18], 7
jbe 0x140041e05
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 r14, rax
mov qword [rbp - 0x71], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1400422c9
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r15d, eax
mov dword [rsp + 0x50], r15d
mov ebx, eax
mov r9d, 4
mov r8d, 0x1000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
mov qword [rbp - 0x79], rax
test rax, rax
jne 0x140041ead
mov qword [rdi], r13
mov qword [rdi + 8], r13
lea ecx, [rax + 0x40]
call fcn.140074874
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rdi], rax
mov rcx, r14
mov rax, qword [0x14008acb0]
call rax
jmp 0x140042305
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x45]
mov r8d, r15d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov qword [rbp - 0x19], rsi
mov dword [rbp - 0x11], r15d
mov eax, 0x5a4d
cmp word [rsi], ax
je 0x140041f20
mov qword [rdi], r13
mov qword [rdi + 8], r13
mov ecx, 0x40
call fcn.140074874
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rdi], rax
mov r8d, 0x4000
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rcx, r14
mov rax, qword [0x14008acb0]
call rax
jmp 0x140042305
movsxd r15, dword [rsi + 0x3c]
add r15, rsi
mov qword [rbp - 0x41], r15
mov eax, 0x20b
cmp word [r15 + 0x18], ax
je 0x140041f64
mov rcx, rdi
call fcn.14003f0b0
nop
mov r8d, 0x4000
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rcx, r14
mov rax, qword [0x14008acb0]
call rax
jmp 0x140042305
movzx r12d, word [r15 + 0x14]
add r12, 0x18
add r12, r15
mov qword [rbp - 0x39], r12
cmp dword [r15 + 0x94], 0
jne 0x140041fab
mov rcx, rdi
call fcn.14003f0b0
nop
mov r8d, 0x4000
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rcx, r14
mov rax, qword [0x14008acb0]
call rax
jmp 0x140042305
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
mov ecx, 0x40
call fcn.140074874
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, r15
mov rdx, r12
mov ecx, dword [r15 + 0x90]
call fcn.1400405d0
mov r9d, eax
add r9, 0xc
add r9, rsi
mov qword [rsp + 0x58], r9
mov r9d, dword [r9]
test r9d, r9d
je 0x140042240
xor edi, edi
nop dword [rax]
nop dword [rax + rax]
mov rdx, r12
mov r8, rdi
movzx r10d, word [r15 + 6]
test r10, r10
je 0x14004203c
mov ecx, dword [rdx + 0xc]
cmp r9d, ecx
jb 0x140042030
add ecx, dword [rdx + 8]
cmp r9d, ecx
jb 0x14004203c
add rdx, 0x28
inc r8
cmp r8, r10
jb 0x140042020
mov eax, dword [rdx + 0x14]
sub eax, dword [rdx + 0xc]
lea edx, [r9 + rax]
add rdx, rsi
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], rdi
mov qword [rbp + 0xf], rdi
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rdx + r8], 0
jne 0x140042060
lea rcx, [rbp - 9]
call fcn.140001a60
nop
mov r12, qword [rsp + 0x40]
mov rbx, qword [r12 + 8]
mov qword [rbp - 0x69], rbx
mov dword [rbp - 0x61], edi
mov r14, r12
mov r13, qword [rbp + 0xf]
mov rsi, qword [rbp + 7]
mov r15, qword [rbp - 9]
cmp byte [rbx + 0x19], 0
jne 0x14004210e
nop word [rax + rax]
mov qword [rbp - 0x69], 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 0x1400420c2
mov rcx, qword [rcx]
mov r8, rdi
cmp rsi, rdi
cmovb r8, rsi
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x1400420e9
cmp rdi, rsi
jae 0x1400420e1
mov eax, 0xffffffff
jmp 0x1400420e9
xor eax, eax
cmp rdi, rsi
seta al
shr eax, 0x1f
xor edi, edi
test al, al
je 0x1400420fb
mov dword [rbp - 0x61], edi
mov rbx, qword [rbx + 0x10]
jmp 0x140042108
mov dword [rbp - 0x61], 1
mov r14, rbx
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
je 0x1400420a0
cmp byte [r14 + 0x19], 0
jne 0x14004215e
lea rdx, [r14 + 0x20]
mov rbx, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x140042127
mov rdx, qword [rdx]
lea rcx, [rbp - 9]
cmp r13, 0xf
cmova rcx, r15
mov r8, rsi
cmp rbx, rsi
cmovb r8, rbx
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x140042157
cmp rsi, rbx
jae 0x140042152
mov eax, 0xffffffff
jmp 0x140042157
mov eax, edi
seta al
shr eax, 0x1f
test al, al
je 0x1400421d7
movabs rax, 0x3ffffffffffffff
cmp qword [rsp + 0x48], rax
je 0x14004232f
lea rax, [rsp + 0x40]
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rdi
mov ecx, 0x40
call fcn.140074874
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], 0
mov qword [rax], r12
mov qword [rax + 8], r12
mov qword [rax + 0x10], r12
mov word [rax + 0x18], 0
mov qword [rbp - 0x21], rdi
movups xmm0, xmmword [rbp - 0x69]
movaps xmmword [rbp - 0x69], xmm0
mov r8, rax
lea rdx, [rbp - 0x69]
lea rcx, [rsp + 0x40]
call fcn.14000ca50
mov r15, qword [rbp - 9]
cmp r13, 0xf
jbe 0x14004220e
lea rdx, [r13 + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x140042206
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140042335
mov rcx, r15
call fcn.1400748b0
mov rax, qword [rsp + 0x58]
add rax, 0x14
mov qword [rsp + 0x58], rax
mov r9d, dword [rax]
mov rsi, qword [rbp - 0x79]
test r9d, r9d
je 0x140042235
mov r15, qword [rbp - 0x41]
mov r12, qword [rbp - 0x39]
jmp 0x140042010
mov rdi, qword [rbp - 0x31]
mov r14, qword [rbp - 0x71]
xor r13d, r13d
mov qword [rdi], r13
mov qword [rdi + 8], r13
mov ecx, 0x40
call fcn.140074874
mov r8, rax
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov rax, qword [rsp + 0x40]
mov qword [rdi], rax
mov qword [rsp + 0x40], r8
mov rcx, qword [rdi + 8]
mov rax, qword [rsp + 0x48]
mov qword [rdi + 8], rax
mov qword [rsp + 0x48], rcx
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.140017ff0
mov edx, 0x40
mov rcx, qword [rsp + 0x40]
call fcn.1400748b0
nop
mov edx, dword [rsp + 0x50]
mov r8d, 0x4000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rcx, r14
mov rax, qword [0x14008acb0]
call rax
jmp 0x140042305
mov qword [rdi], r13
mov qword [rdi + 8], r13
mov ecx, 0x40
call fcn.140074874
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rdi], rax
lea rcx, [r14 - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140042305
mov rcx, r14
mov rdx, qword [0x14008acb0]
call rdx
nop
mov rax, rdi
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400749d0
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.14000d070
nop
call fcn.140078a60
int3