Function at 0x180031cd0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x8f0]
sub rsp, 0x9f0
mov r13d, r8d
mov r14, rdx
mov r10, rcx
movdqa xmm0, xmmword [0x1800655d0]
movdqa xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
movdqa xmm1, xmm0
movdqa xmmword [rbp - 0x80], xmm0
mov byte [rsp + 0x70], 0
movdqa xmmword [rbp - 0x60], xmm0
mov byte [rbp - 0x70], 0
lea r12d, [r8 + 0xf]
cmp r8d, r12d
jae 0x18003204f
lea rdx, [0x180000000]
movabs rdi, 0x403b68f5c28f5c29
mov r15, qword [rbp + 0x948]
mov ebx, dword [rbp + 0x940]
mov esi, dword [rbp + 0x940]
nop dword [rax + rax]
lea eax, [r13 - 0x123]
cmp eax, 0x3f
ja case.0x180031d82.306
movzx eax, byte [rdx + rax + 0x32188]
mov ecx, dword [rdx + rax*4 + 0x32148]
add rcx, rdx
jmp rcx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x3c], eax
jmp 0x180031fea
mov r9, r14
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 0x33]
call fcn.18003a8a0
jmp 0x180031fea
cmp qword [r14 + 0x10], 4
jae case.0x180031d82.306
mov byte [rbp + 0x940], 0
jmp 0x18003204f
mov qword [rsp + 0x40], r14
jmp case.0x180031d82.306
xor r8d, r8d
xor edx, edx
mov ecx, 0x9c
call fcn.180024a40
mov qword [r14 + 0xb8], rax
mov qword [r14 + 0xa8], rdi
jmp 0x180031fea
cmp r15, 0xffffffffffffffff
je case.0x180031d82.306
mov edi, 0x5b
nop word [rax + rax]
cmp edi, 0x5b
je 0x180031e55
cmp edi, 0x3cc9
jne 0x180031ef1
mov r13d, 0x134
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180031ef1
mov qword [rsp + 0x20], 0
lea r9, [rbp - 0x40]
mov r8d, 0x800
lea rdx, [rbp - 0x3c]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180031eec
nop dword [rax]
mov edi, 0x21
cmp edi, 0x21
je 0x180031eb7
cmp edi, 0x28
je 0x180031e9a
cmp edi, 0x2f
jne 0x180031ec0
test esi, esi
jne 0x180031eec
jmp 0x180031ec0
xor r9d, r9d
lea r8, [rbp - 0x40]
mov edx, 0xc2
mov rcx, r14
call fcn.1800342b0
mov rbx, rax
test eax, eax
jne 0x180031eec
jmp 0x180031ec0
xor esi, esi
cmp dword [rbp - 0x40], esi
sete sil
add edi, 7
cmp edi, 0x36
jb 0x180031e85
mov qword [rsp + 0x20], 0
lea r9, [rbp - 0x40]
mov r8d, 0x800
lea rdx, [rbp - 0x3c]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180031e80
mov edi, 0x5b
add edi, 0x3c6e
cmp edi, 0x78dc
jbe 0x180031e30
movabs rdi, 0x403b68f5c28f5c29
jmp 0x180031fea
mov r9, qword [rsp + 0x40]
add r9, 0xa
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea ecx, [r8 + 0x17]
call fcn.18000a710
jmp 0x180031fea
mov dword [r14 + 0xb0], 0x3c
jmp case.0x180031d82.306
mov dword [r14 + 0xb4], 0x3840
jmp case.0x180031d82.306
mov dword [rbp + 0x940], 0xfa
mov r9, r14
lea r8, [rbp + 0x940]
mov edx, 0x76
lea rcx, [rbp + 0x948]
call fcn.180014430
mov eax, dword [rbp + 0x948]
cmp eax, 1
jne 0x180031fa3
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
mov edx, 0x9d
xor ecx, ecx
call fcn.180034b00
jmp 0x180031fea
cmp eax, 2
jne 0x180031fea
xor r9d, r9d
xor edx, edx
lea r8d, [rax + 0x34]
mov rcx, r14
call fcn.18000a350
jmp 0x180031fea
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x1a], 0
je 0x180031de3
jmp case.0x180031d82.306
mov dword [rbp - 0x40], 4
xor r9d, r9d
lea r8, [rbp - 0x40]
mov edx, 0xc2
mov rcx, r14
call fcn.1800342b0
mov ebx, eax
mov r10, qword [rbp + 0x930]
lea rdx, [0x180000000]
inc r13d
cmp r13d, r12d
jae 0x18003204f
jmp 0x180031d60
cmp qword [r14 + 0x18], 0x10
jb 0x18003200f
mov r14, qword [r14]
cmp dword [r14], 0xffffffff
sete byte [rbp + 0x940]
jmp 0x18003204f
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 8]
mov word [rbp + 0x940], ax
mov r9, r10
lea r8, [rsp + 0x50]
mov edx, 0x70
lea rcx, [rbp + 0x940]
call fcn.180014ba0
mov byte [rbp + 0x940], al
mov ebx, dword [rbp + 0x940]
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x180032090
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003208b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180032141
call fcn.180040b40
movdqa xmm0, xmmword [0x1800655d0]
movdqa xmmword [rbp - 0x60], xmm0
mov byte [rbp - 0x70], 0
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x1800320d9
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800320d4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180032141
call fcn.180040b40
movdqa xmm0, xmmword [0x1800655d0]
movdqa xmmword [rbp - 0x80], xmm0
mov byte [rsp + 0x70], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x180032124
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003211f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180032141
call fcn.180040b40
mov eax, ebx
mov rbx, qword [rsp + 0xa38]
add rsp, 0x9f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.180046e04
int3