Function at 0x140004550
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x148
movdqa xmmword [rsp + 0x130], xmm9
movaps xmmword [rsp + 0x120], xmm8
movaps xmmword [rsp + 0x110], xmm7
movaps xmmword [rsp + 0x100], xmm6
mov rdi, rdx
mov qword [rsp + 0x78], rcx
movabs rax, 0x8000000000000001
dec rax
mov qword [rsp + 0x80], rax
movdqa xmm6, xmmword [0x1403991a0]
movdqa xmm7, xmmword [0x1403991b0]
xorps xmm8, xmm8
jmp 0x1400045e6
mov rcx, qword [0x1404a30d0]
xor edx, edx
mov r8, rbx
call fcn.14021d5e4
lea r8, [r15 - 1]
mov rcx, qword [0x1404a30d0]
xor edx, edx
call fcn.14021d5e4
mov rcx, r15
mov qword [rsp + 0xb0], rcx
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 1
mov qword [rsp + 0x68], 0
xor r12d, r12d
xor eax, eax
mov qword [rsp + 0x88], rax
lea r15, [0x1403991c0]
jmp 0x14000462b
cmp byte [r13 + 0x10], 0x23
jne case.0x140004730.2
mov rbp, qword [rdi]
mov r14, qword [rdi + 0x10]
mov rsi, qword [rdi + 0x18]
mov r13, rsi
sub r13, r14
jbe 0x140004660
test rbp, rbp
jne 0x1400047a5
mov eax, r13d
and eax, 3
movsxd rax, dword [r15 + rax*4]
add rax, r15
jmp rax
mov rax, qword [rdi + 8]
mov rsi, qword [rdi + 0x20]
mov rbx, qword [rdi + 0x28]
movdqu xmm0, xmmword [0x14043e268]
movdqa xmmword [rsp + 0x90], xmm0
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
movups xmmword [rsp + 0x38], xmm8
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rbp
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov rcx, rbx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x1400046d0
mov rcx, rbx
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x90]
cmp eax, 0xc0000011
je 0x1400047d4
cmp eax, 0x103
je 0x140004ba6
test eax, eax
jns 0x14000480c
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov r13, rax
shl r13, 0x20
or r13, 2
mov qword [rsp + 0xc0], 1
mov qword [rsp + 0xc8], r13
mov ecx, eax
call fcn.1401dc0f0
cmp al, 0xb
je case.default.0x140004730
mov eax, r13d
and eax, 3
movsxd rax, dword [r15 + rax*4]
add rax, r15
jmp rax
cmp byte [r13 + 0xf], 0x23
jne case.0x140004730.2
mov rbx, qword [r13 - 1]
mov rsi, qword [r13 + 7]
mov rax, qword [rsi]
test rax, rax
je 0x140004752
mov rcx, rbx
call rax
cmp qword [rsi + 8], 0
je 0x140004775
cmp qword [rsi + 0x10], 0x11
jb 0x140004764
mov rbx, qword [rbx - 8]
mov rcx, qword [0x1404a30d0]
xor edx, edx
mov r8, rbx
call fcn.14021d5e4
dec r13
mov rcx, qword [0x1404a30d0]
xor edx, edx
mov r8, r13
call fcn.14021d5e4
jmp 0x14000462b
mov rax, r13
shr rax, 0x20
cmp eax, 0x23
je 0x14000462b
jmp case.0x140004730.2
movabs r8, 0x8080808080808080
add rbp, r14
cmp r13, 0xf
jbe 0x140004874
lea rax, [rbp + 7]
and rax, 0xfffffffffffffff8
sub rax, rbp
jne 0x1400047d8
lea rcx, [r13 - 0x10]
xor eax, eax
jmp 0x1400048a0
xor eax, eax
jmp 0x140004814
cmp rax, r13
cmovae rax, r13
xor ecx, ecx
nop word cs:[rax + rax]
cmp byte [rbp + rcx], 0xa
je 0x14000497f
inc rcx
cmp rax, rcx
jne 0x1400047f0
lea rcx, [r13 - 0x10]
jmp 0x1400048cd
mov rax, qword [rsp + 0x98]
cmp rsi, rax
cmovbe rsi, rax
movq xmm0, rsi
movq xmm9, rax
punpcklqdq xmm9, xmm0
jmp 0x140004844
movq xmm9, rsi
pslldq xmm9, 8
lea rcx, [rsp + 0xc8]
call fcn.1401d87a0
movabs r8, 0x8080808080808080
mov qword [rdi + 0x10], 0
movdqu xmmword [rdi + 0x18], xmm9
movq rsi, xmm9
xor r14d, r14d
mov r13, rsi
add rbp, r14
cmp r13, 0xf
ja 0x1400047bc
test r13, r13
je 0x140004900
xor ecx, ecx
nop
cmp byte [rbp + rcx], 0xa
je 0x140004989
inc rcx
cmp r13, rcx
jne 0x140004880
jmp 0x140004900
movdqu xmm0, xmmword [rbp + rax]
movdqa xmm1, xmm0
pxor xmm1, xmm6
paddq xmm1, xmm7
pandn xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
movq rdx, xmm1
test rdx, r8
jne 0x1400048d2
add rax, 0x10
cmp rax, rcx
jbe 0x1400048a0
mov rdx, r13
sub rdx, rax
je 0x140004900
lea r8, [rax + rbp]
xor ecx, ecx
cmp byte [r8 + rcx], 0xa
je 0x14000497c
inc rcx
cmp rdx, rcx
jne 0x1400048e0
nop word cs:[rax + rax]
mov rax, qword [rsp + 0x58]
sub rax, r12
cmp rax, r13
jb 0x14000494d
mov r15, qword [rsp + 0x60]
lea rcx, [r15 + r12]
mov rdx, rbp
mov r8, r13
call sub.msvcrt.dll_memcpy
add r12, r13
cmp rsi, rsi
cmovb rsi, rsi
mov qword [rsp + 0x68], r12
mov qword [rdi + 0x10], rsi
mov rax, qword [rsp + 0x88]
add rax, r13
test r13, r13
jne 0x14000460e
jmp 0x1400049d7
lea rcx, [rsp + 0x58]
mov rdx, r12
mov r8, r13
call fcn.1401d5ea0
mov r12, qword [rsp + 0x68]
jmp 0x14000490d
mov r15, qword [rsp + 0x60]
xor esi, esi
mov rbx, r13
jmp 0x1400049e4
add rcx, rax
cmp rcx, 0xffffffffffffffff
je 0x140004b9a
lea rbx, [rcx + 1]
cmp rcx, r13
jae 0x140004b88
mov rax, qword [rsp + 0x58]
sub rax, r12
cmp rax, rcx
jbe 0x140004afa
mov r15, qword [rsp + 0x60]
lea rcx, [r15 + r12]
mov rdx, rbp
mov r8, rbx
call sub.msvcrt.dll_memcpy
add r12, rbx
add r14, rbx
cmp r14, rsi
cmovae r14, rsi
mov qword [rdi + 0x10], r14
mov rax, qword [rsp + 0x88]
add rax, rbx
mov sil, 1
lea r13, [0x14043cf30]
mov rbx, rax
lea rcx, [rsp + 0xd0]
mov rdx, r15
mov r8, r12
call fcn.140047e30
cmp qword [rsp + 0xd0], 0
mov eax, 0
cmovne r12, rax
cmove r13, rbx
mov qword [rsp + 0x68], r12
jne 0x140004a60
test sil, sil
je 0x140004a60
movabs rsi, 0x8000000000000001
test r13, r13
mov r13, qword [rsp + 0xb0]
je 0x140004a68
test r12, r12
je 0x140004a95
cmp byte [r15 + r12 - 1], 0xa
jne 0x140004a98
mov rax, r12
dec rax
mov qword [rsp + 0x68], rax
je 0x140004a95
cmp byte [r15 + r12 - 2], 0xd
lea rcx, [r12 - 2]
cmove rax, rcx
mov r12, rax
jmp 0x140004a98
mov rsi, qword [rsp + 0x80]
cmp qword [rsp + 0x58], 0
je 0x140004a81
mov rcx, qword [0x1404a30d0]
xor edx, edx
mov r8, r15
call fcn.14021d5e4
mov r15, r13
movabs rax, 0x8000000000000000
cmp rsi, rax
je 0x140004ab4
jmp 0x140004b14
xor r12d, r12d
mov rsi, qword [rsp + 0x58]
mov qword [rsp + 0xa8], r12
movabs rax, 0x8000000000000000
cmp rsi, rax
jne 0x140004b14
mov eax, r15d
and eax, 3
mov rcx, r15
cmp eax, 1
jne 0x1400045e6
mov rbx, qword [r15 - 1]
mov rsi, qword [r15 + 7]
mov rax, qword [rsi]
test rax, rax
je 0x140004adb
mov rcx, rbx
call rax
cmp qword [rsi + 8], 0
je 0x1400045d1
cmp qword [rsi + 0x10], 0x11
jb 0x1400045c0
mov rbx, qword [rbx - 8]
jmp 0x1400045c0
lea rcx, [rsp + 0x58]
mov rdx, r12
mov r8, rbx
call fcn.1401d5ea0
mov r12, qword [rsp + 0x68]
jmp 0x1400049a7
movabs rax, 0x8000000000000001
cmp rsi, rax
jne 0x140004b3a
movabs rcx, 0x8000000000000001
dec rcx
mov rax, qword [rsp + 0x78]
mov qword [rax], rcx
jmp 0x140004b52
mov rax, qword [rsp + 0x78]
mov qword [rax], rsi
mov qword [rax + 8], r15
mov rcx, qword [rsp + 0xa8]
mov qword [rax + 0x10], rcx
movaps xmm6, xmmword [rsp + 0x100]
movaps xmm7, xmmword [rsp + 0x110]
movaps xmm8, xmmword [rsp + 0x120]
movaps xmm9, xmmword [rsp + 0x130]
add rsp, 0x148
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, [0x1403a2058]
mov rcx, rbx
mov rdx, r13
call fcn.140047140
lea rcx, [0x1403a2058]
call fcn.14004bb30
mov dword [rsp + 0x70], 0
mov byte [rsp + 0x74], 0
lea rax, [0x14043e2d0]
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xd8], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0xe0], rax
pxor xmm0, xmm0
movdqu xmmword [rsp + 0xe8], xmm0
lea rcx, [rsp + 0x70]
lea rdx, [rsp + 0xd0]
call fcn.1401d86d0
mov qword [rsp + 0xb8], rax
lea rcx, [rsp + 0xb8]
call fcn.1401d8780
mov ecx, 7
int 0x29
ud2
mov rcx, qword [0x1404a30d0]
xor edx, edx
mov r8, r15
call fcn.14021d5e4
dec r14
mov rcx, qword [0x1404a30d0]
xor edx, edx
mov r8, r14
call fcn.14021d5e4
test rsi, rsi
je 0x140005ec6
lea rax, [rdi - 0x10]
mov r15, rsi
shl r15, 4
mov rcx, r15
nop dword [rax]
test rcx, rcx
je 0x140005d90
mov r8d, dword [rax + 0x10]
add rax, 0x10
add rcx, 0xfffffffffffffff0
test r8, r8
je 0x140005d70
mov rdx, qword [rax + 8]
jmp 0x140005d98
mov edx, 1
xor r8d, r8d
mov rcx, rbx
call fcn.14000e650
mov r14, rdx
test rax, rax
je 0x140005dd0
mov ecx, r14d
and ecx, 3
movsxd rcx, dword [r13 + rcx*4]
add rcx, r13
jmp rcx
test r14, r14
je 0x140005edd
xor r8d, r8d
xor ecx, ecx
mov r9, r14
mov rdx, r14
nop word cs:[rax + rax]
mov r10d, dword [rdi + r8]
sub rdx, r10
jb 0x140005e31
inc rcx
add r8, 0x10
mov r9, rdx
cmp r15, r8
jne 0x140005df0
jmp 0x140005e34
cmp byte [r14 + 0xf], 0x23
je 0x140005e60
jmp 0x140005ec9
mov rdx, r9
cmp rsi, rcx
jb 0x140005ee2
mov r8, rcx
shl r8, 4
add rdi, r8
sub rsi, rcx
jne 0x140005ead
test rdx, rdx
jne 0x140005f28
nop word cs:[rax + rax]
test rax, rax
je 0x140005d55
mov eax, r14d
and eax, 3
cmp eax, 1
jne 0x140005d55
mov r15, qword [r14 - 1]
mov rbp, qword [r14 + 7]
mov rax, qword [rbp]
test rax, rax
je 0x140005e8e
mov rcx, r15
call rax
cmp qword [rbp + 8], 0
je 0x140005d41
cmp qword [rbp + 0x10], 0x11
jb 0x140005d30
mov r15, qword [r15 - 8]
jmp 0x140005d30
mov ecx, dword [rdi]
cmp rdx, rcx
ja 0x140005ef1
sub ecx, edx
mov dword [rdi], ecx
add qword [rdi + 8], rdx
add dword [rdi + 8], edx
add dword [rdi + 8], edx
test rax, rax
jne 0x140005e69
jmp 0x140005d55
xor r14d, r14d
mov rax, r14
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, r12
jmp 0x140005ec9
lea r8, [0x1403a2130]
mov rdx, rsi
call fcn.1400467e0
lea rax, str.advancing_IoSlice_beyond_its_length
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 1
mov qword [rsp + 0x38], 8
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
lea rdx, [0x1403a2118]
lea rcx, [rsp + 0x28]
call fcn.1400467a0
lea rax, str.advancing_io_slices_beyond_their_length
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 1
mov qword [rsp + 0x38], 8
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
lea rdx, [0x1403a2100]
lea rcx, [rsp + 0x28]
call fcn.1400467a0
int3
mov ebx, ecx
mov ecx, ebx
and dword [rax], eax
mov dword [rsi + rbx + 8], r13d
mov dword [rcx], ebp
sbb bh, byte [rcx]
add byte [rax + 0x63], cl
add al, 0x81