Function at 0x1801af5e0
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rbp
push rdi
push r15
lea rbp, [r11 - 0x5f]
sub rsp, 0x90
mov rax, qword [0x18029e198]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor r15d, r15d
mov qword [r11 + 0x10], r14
mov edi, r15d
mov rbx, rcx
mov esi, 0x19
nop word [rax + rax]
cmp edi, 6
jge 0x1801af875
mov rcx, qword [rbx + 0x28]
mov r9d, 0x24
xor r8d, r8d
mov dword [rsp + 0x20], r15d
lea edx, [r9 + 0x18]
call qword [sym.imp.KERNEL32.dll_LockFile]
mov r14d, eax
test eax, eax
jne 0x1801af656
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
add esi, esi
inc edi
test r14d, r14d
je 0x1801af620
mov rcx, qword [rbx + 0x28]
xorps xmm0, xmm0
xor r9d, r9d
mov dword [rbx + 0x30], 1
xor r8d, r8d
movups xmmword [rbp - 9], xmm0
lea edx, [r9 + 0x3c]
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp + 0x27], xmm0
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x1801af843
mov rcx, qword [rbx + 0x28]
lea r9, [rbp - 0x19]
mov r8d, 0x24
mov qword [rsp + 0x20], r15
lea rdx, [rbp + 0x13]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1801af837
cmp dword [rbp - 0x19], 0x24
jne 0x1801af837
lea rcx, [rbx + 0xa7]
lea r8, [rbp + 0x17]
lea rax, [rbp + 0x17]
lea rdx, [rbx + 0x88]
cmp r8, rcx
ja 0x1801af717
lea rcx, [rbp + 0x36]
cmp rcx, rdx
jb 0x1801af717
lea rdx, [rbp + 0x17]
mov r8, rbx
sub r8, rdx
mov edx, 0x20
nop word [rax + rax]
movzx ecx, byte [r8 + rax + 0x88]
add byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x1801af700
jmp 0x1801af74c
lea rdx, [rbp + 0x17]
mov rcx, rbx
sub rcx, rdx
lea rdx, [rcx + 0x88]
mov ecx, 2
nop dword [rax]
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rdx + rax]
lea rax, [rax + 0x10]
paddb xmm1, xmm0
movdqu xmmword [rax - 0x10], xmm1
sub rcx, 1
jne 0x1801af730
movzx eax, byte [rbp + 0x13]
lea r8, [rbp + 0x17]
movzx edx, byte [rbp + 0x14]
mov r9d, reloc.WS2_32.dll_recv
movzx ecx, byte [rbp + 0x16]
shl dx, 8
or dx, ax
shl cx, 8
movzx eax, byte [rbp + 0x15]
or cx, ax
add dx, cx
nop word [rax + rax]
xor byte [r8], dl
lea r8, [r8 + 2]
movzx eax, dx
add dx, dx
shr ax, 0xf
add ax, dx
movzx ecx, ax
add ax, ax
shr cx, 0xf
add cx, ax
xor byte [r8 - 1], cl
movzx eax, cx
shr ax, 0xf
add cx, cx
add ax, cx
movzx edx, ax
add ax, ax
shr dx, 0xf
add dx, ax
sub r9, 1
jne 0x1801af780
movzx eax, byte [rbp + 0x36]
shl ax, 8
movzx edx, ax
movzx eax, byte [rbp + 0x35]
or edx, eax
movzx eax, byte [rbp + 0x34]
shl ax, 8
movzx ecx, ax
movzx eax, byte [rbp + 0x33]
shl edx, 0x10
or edx, ecx
or edx, eax
jne 0x1801af843
movzx eax, byte [rbp + 0x1a]
shl ax, 8
movzx ecx, ax
movzx eax, byte [rbp + 0x19]
or ecx, eax
lea eax, [r9 + 1]
mov dword [rbx + 0x4c], ecx
movzx ecx, byte [rbp + 0x1c]
shl cx, 8
movzx edx, cx
movzx ecx, byte [rbp + 0x1b]
or edx, ecx
movzx ecx, byte [rbp + 0x1d]
mov byte [rbx + 0x5c], cl
movzx ecx, byte [rbp + 0x18]
shl cx, 8
mov dword [rbx + 0x50], edx
movzx edx, cx
movzx ecx, byte [rbp + 0x17]
or edx, ecx
mov dword [rbx + 4], edx
jmp 0x1801af881
mov dword [0x18029ccf4], 0x62
jmp 0x1801af84d
mov dword [0x18029ccf4], 0x65
cmp dword [rbx + 0x30], r15d
je 0x1801af87f
mov rcx, qword [rbx + 0x28]
mov r9d, 0x24
xor r8d, r8d
mov dword [rsp + 0x20], r15d
lea edx, [r9 + 0x18]
call qword [sym.imp.KERNEL32.dll_UnlockFile]
mov dword [rbx + 0x30], r15d
jmp 0x1801af87f
mov dword [0x18029ccf4], 0x64
xor eax, eax
mov r14, qword [rsp + 0xb8]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1801e67e0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret