Function at 0x140042330
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 - 0x10]
sub rsp, 0x110
mov rax, qword [0x1400d3400]
xor rax, rsp
mov qword [rbp], rax
mov rax, rdx
mov rdi, rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x70], rcx
xor esi, esi
cmp qword [rdx + 0x18], 7
jbe 0x140042376
mov rax, qword [rdx]
mov qword [rsp + 0x30], rsi
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 r15, rax
mov qword [rsp + 0x60], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1400428ac
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov r12d, eax
mov qword [rsp + 0x68], r12
mov r9d, 4
mov r8d, 0x1000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x140042423
mov qword [rdi], rsi
mov qword [rdi + 8], rsi
mov ecx, 0x40
call fcn.140076d5c
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, r15
mov rdx, qword [0x1400a9b88]
call rdx
nop
jmp 0x1400428e8
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x7c]
mov r8d, ebx
mov rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov qword [rbp - 0x30], r14
mov dword [rbp - 0x28], ebx
mov eax, 0x5a4d
cmp word [r14], ax
je 0x14004247c
mov rcx, rdi
call fcn.14003ee80
nop
mov r8d, 0x4000
mov rdx, r12
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rcx, r15
mov rax, qword [0x1400a9b88]
call rax
nop
jmp 0x1400428e8
movsxd rbx, dword [r14 + 0x3c]
add rbx, r14
mov qword [rbp - 0x60], rbx
mov eax, 0x20b
cmp word [rbx + 0x18], ax
je 0x1400424c0
mov rcx, rdi
call fcn.14003ee80
nop
mov r8d, 0x4000
mov rdx, r12
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rcx, r15
mov rax, qword [0x1400a9b88]
call rax
nop
jmp 0x1400428e8
movzx r13d, word [rbx + 0x14]
add r13, 0x18
add r13, rbx
mov qword [rsp + 0x70], r13
cmp dword [rbx + 0x94], 0
jne 0x140042508
mov rcx, rdi
call fcn.14003ee80
nop
mov r8d, 0x4000
mov rdx, r12
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rcx, r15
mov rax, qword [0x1400a9b88]
call rax
nop
jmp 0x1400428e8
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov ecx, 0x40
call fcn.140076d5c
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.140040540
mov esi, eax
add rsi, 0xc
add rsi, r14
mov r8d, dword [rsi]
test r8d, r8d
je 0x140042824
movabs rdi, 0x3ffffffffffffff
nop dword [rax]
nop word [rax + rax]
mov rdx, r13
xor r9d, r9d
movzx r10d, word [rbx + 6]
test r10, r10
je 0x14004259c
mov ecx, dword [rdx + 0xc]
cmp r8d, ecx
jb 0x140042590
add ecx, dword [rdx + 8]
cmp r8d, ecx
jb 0x14004259c
add rdx, 0x28
inc r9
cmp r9, r10
jb 0x140042580
mov ecx, dword [rdx + 0xc]
test ecx, ecx
je 0x1400427b4
mov eax, dword [rdx + 0x14]
test eax, eax
je 0x1400427b4
sub r8d, ecx
add r8d, eax
cmp r8d, 0xffffffff
je 0x1400427b4
mov edx, r8d
add rdx, r14
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], 0
mov qword [rbp - 8], 0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x1400425e6
lea rcx, [rbp - 0x20]
call fcn.140001a50
nop
mov rbx, qword [rsp + 0x40]
mov qword [rbp - 0x70], rbx
mov r12, qword [rbx + 8]
xor eax, eax
mov r15, rbx
mov r13, qword [rbp - 8]
mov r14, qword [rbp - 0x20]
cmp byte [r12 + 0x19], al
jne 0x140042691
mov rbx, r12
mov qword [rbp - 0x80], rsi
mov rsi, qword [rbp - 0x10]
nop word [rax + rax]
mov r12, rbx
lea rcx, [rbx + 0x20]
lea rdx, [rbp - 0x20]
cmp r13, 0xf
cmova rdx, r14
mov rdi, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 0xf
jbe 0x140042651
mov rcx, qword [rcx]
mov r8, rdi
cmp rsi, rdi
cmovb r8, rsi
call fcn.1400a08e0
test eax, eax
je 0x1400427a0
js 0x1400427a9
mov eax, 1
mov r15, rbx
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
je 0x140042630
mov rsi, qword [rbp - 0x80]
mov rbx, qword [rbp - 0x70]
movabs rdi, 0x3ffffffffffffff
mov qword [rbp - 0x58], r12
mov dword [rbp - 0x50], eax
mov eax, dword [rbp - 0x4c]
mov dword [rbp - 0x4c], eax
cmp byte [r15 + 0x19], 0
jne 0x1400426bf
lea r8, [r15 + 0x20]
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x40]
call fcn.1400018c0
test al, al
je 0x140042746
cmp qword [rsp + 0x48], rdi
je 0x140042912
lea rax, [rsp + 0x40]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 0
mov ecx, 0x40
call fcn.140076d5c
nop
mov qword [rax + 0x30], 0
mov qword [rax + 0x38], 0
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rbp - 0x10]
movups xmmword [rax + 0x30], xmm1
mov r13d, 0xf
mov byte [rbp - 0x20], 0
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov word [rax + 0x18], 0
mov qword [rbp - 0x38], 0
movups xmm0, xmmword [rbp - 0x58]
movaps xmmword [rbp - 0x70], xmm0
mov r8, rax
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x40]
call fcn.14000d0c0
mov r14, qword [rbp - 0x20]
cmp r13, 0xf
jbe 0x14004277d
lea rdx, [r13 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x140042775
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140042918
mov rcx, r14
call fcn.140076d98
add rsi, 0x14
mov r8d, dword [rsi]
mov r14, qword [rsp + 0x58]
test r8d, r8d
je 0x140042815
mov rbx, qword [rbp - 0x60]
mov r13, qword [rsp + 0x70]
jmp 0x140042570
cmp rdi, rsi
jae 0x14004266e
xor eax, eax
mov rbx, qword [rbx + 0x10]
jmp 0x140042679
mov rcx, qword [rsp + 0x50]
call fcn.14003ee80
nop
mov r8, qword [rsp + 0x40]
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.1400187e0
mov edx, 0x40
mov rcx, qword [rsp + 0x40]
call fcn.140076d98
nop
mov r8d, 0x4000
mov rdx, qword [rsp + 0x68]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rcx, qword [rsp + 0x60]
mov rax, qword [0x1400a9b88]
call rax
nop
mov rax, qword [rsp + 0x50]
jmp 0x1400428eb
mov rdi, qword [rsp + 0x50]
mov r15, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov ecx, 0x40
call fcn.140076d5c
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 [rdi], rcx
mov qword [rsp + 0x40], rax
mov rdx, qword [rdi + 8]
mov rcx, qword [rsp + 0x48]
mov qword [rdi + 8], rcx
mov qword [rsp + 0x48], rdx
mov r8, qword [rax + 8]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.1400187e0
mov edx, 0x40
mov rcx, qword [rsp + 0x40]
call fcn.140076d98
nop
mov r8d, 0x4000
mov rdx, r12
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rcx, r15
mov rax, qword [0x1400a9b88]
call rax
nop
jmp 0x1400428e8
mov qword [rdi], rsi
mov qword [rdi + 8], rsi
mov ecx, 0x40
call fcn.140076d5c
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rdi], rax
lea rax, [r15 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400428e8
mov rcx, r15
mov rax, qword [0x1400a9b88]
call rax
nop
mov rax, rdi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140076eb0
mov rbx, qword [rsp + 0x160]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14000d720
nop
call fcn.14007d5c8
int3