Function at 0x14001e860
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov r14, rdx
mov rbx, rcx
xor r13d, r13d
cmp qword [rcx + 0x18], r13
je 0x14001e8d5
lea rdx, [rcx + 8]
cmp qword [rdx + 0x18], 0x10
jb 0x14001e89c
mov rdx, qword [rdx]
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r13b
jne 0x14001e8b6
lea rcx, [rsp + 0x40]
call fcn.1400157e0
lea rcx, [rsp + 0x40]
call fcn.14001c920
jmp 0x14001e8fc
mov rdi, qword [rcx + 0x28]
mov rdx, qword [rcx + 0x30]
sub rdx, rdi
cmp rdx, 4
jbe 0x14001e9b1
add rdx, 0xfffffffffffffffc
lea rcx, [rdi + 4]
call fcn.14001c8c0
cmp eax, dword [rdi]
sete al
test al, al
je 0x14001e9b1
cmp qword [rbx + 0x18], r13
je 0x14001e944
lea rcx, [rbx + 8]
cmp qword [rcx + 0x18], 0x10
jb 0x14001e918
mov rcx, qword [rcx]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x14001e9b1
mov dword [rbp + 0x1f0], r13d
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x14001e9ce
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp + 0x200], r13d
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x200]
mov r8d, 4
lea rdx, [rbp + 0x1f0]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rbp + 0x200], 4
sete al
test al, al
jne 0x14001ea02
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x14001e9b1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
xor al, al
mov rbx, qword [rsp + 0x2f8]
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
sub rax, rcx
cmp rax, 8
jb 0x14001e99b
lea rax, [rcx + 4]
test rax, rax
je 0x14001e9f2
mov eax, dword [rax]
mov dword [rbp + 0x1f0], eax
jmp 0x14001ea02
call fcn.140146434
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.140146288
mov esi, 8
mov r15d, dword [rbp + 0x1f0]
add r15d, 0xfffffff8
movabs rax, 0x948b0fcd6e9e0653
mul r15
sub r15, rdx
shr r15, 1
add r15, rdx
shr r15, 8
lea rcx, [rbp + 0xb0]
call fcn.140016340
lea rcx, [rsp + 0x40]
call fcn.14001c800
nop
cmp qword [rax + 0x18], 0x10
jb 0x14001ea4d
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp + 0xb0]
call fcn.140016390
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x14001ea9a
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001ea95
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001ece4
call fcn.140133e68
mov r12d, r13d
test r15d, r15d
je 0x14001ecdd
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x14001eb0d
xor r9d, r9d
xor r8d, r8d
mov edx, esi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp + 0x200], r13d
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x200]
mov r8d, 0x144
lea rdx, [rsp + 0x60]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rbp + 0x200], 0x144
sete al
test al, al
jne 0x14001ebda
mov rcx, qword [rbx]
xor al, al
cmp rcx, 0xffffffffffffffff
je 0x14001e9b3
jmp 0x14001e9a4
mov r8, qword [rbx + 0x28]
mov rdx, qword [rbx + 0x30]
sub rdx, r8
lea ecx, [rsi + 0x144]
cmp rcx, rdx
ja 0x14001eaf9
mov eax, esi
add rax, r8
je 0x14001ebb8
lea rdx, [rsp + 0x60]
mov ecx, 2
nop dword [rax + rax]
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rdx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rdx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rdx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rdx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rdx + 0x60], xmm0
lea rdx, [rdx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rdx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rcx, 1
jne 0x14001eb40
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rdx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rdx + 0x30], xmm1
mov ecx, dword [rax + 0x40]
mov dword [rdx + 0x40], ecx
jmp 0x14001ebda
xor edx, edx
mov r8d, 0x144
lea rcx, [rsp + 0x60]
call fcn.140137f50
call fcn.140146434
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.140146288
add esi, 0x144
mov r8d, 0x144
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0xb0]
call fcn.140016490
test al, al
je 0x14001eaf9
mov rdi, qword [r14]
movabs rax, 0xbe82fa0be82fa0
cmp qword [r14 + 8], rax
je 0x14001ecea
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r13
mov ecx, 0x158
call fcn.140133e2c
mov r9, rax
lea rcx, [rax + 0x10]
lea rdx, [rsp + 0x60]
mov r8d, 2
nop dword [rax]
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rdx + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rdx, [rdx + 0x80]
sub r8, 1
jne 0x14001ec40
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x30], xmm1
mov eax, dword [rdx + 0x40]
mov dword [rcx + 0x40], eax
inc qword [r14 + 8]
mov rax, qword [rdi + 8]
mov qword [r9], rdi
mov qword [r9 + 8], rax
mov qword [rsp + 0x48], r13
mov qword [rdi + 8], r9
mov qword [rax], r9
inc r12d
cmp r12d, r15d
jb 0x14001eaa6
mov al, 1
jmp 0x14001e9b3
call fcn.1401462a8
int3
lea rcx, str.list_too_long
call fcn.140101700
int3