Function at 0x140048540
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14021b0e0]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rcx
xor r12d, r12d
nop dword [rax]
mov sil, 1
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x50]
mov r15, rax
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x30], Ordinal_102
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
cmp byte [rbx + 0x82a], 0
je 0x14004887c
cmp byte [rbx + 0x818], 0
jne 0x140048873
cmp byte [rbx + 0x829], 0
jne 0x140048873
lea r14, [rbx + 0x81c]
mov qword [rsp + 0x20], r12
mov r9, r14
mov r8d, 0x2000
mov rdx, qword [rbx + 0x7e0]
mov rcx, qword [rbx + 0x810]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [r14]
test eax, eax
jne 0x1400486e1
test ecx, ecx
je 0x1400485fa
mov byte [rbx + 0x829], sil
mov rdx, qword [rbx + 0x830]
test rdx, rdx
je 0x1400486f5
movsxd rcx, dword [rbx + 0x838]
cmp ecx, dword [rbx + 0x83c]
jge 0x1400486f5
mov edi, dword [rcx + rdx]
test edi, edi
je 0x1400486f5
lea eax, [rcx + 4]
mov dword [rbx + 0x838], eax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400e35f0
mov r8d, dword [r14]
mov rdx, qword [rbx + 0x7e0]
mov ecx, eax
call fcn.1400e35f0
cmp eax, edi
jne 0x1400486f5
mov dword [rbp - 0x18], 0x507
mov dword [rbp - 0x14], 0x2000000
mov ecx, dword [r14]
mov edx, ecx
shl edx, 0x10
mov eax, ecx
and eax, 0xff00
or edx, eax
shl edx, 8
mov eax, ecx
and eax, 0xff0000
shr ecx, 0x10
or eax, ecx
shr eax, 8
or edx, eax
mov dword [rbp - 0x10], edx
mov rdi, qword [rbx + 0x3b0]
cmp qword [rdi + 0x10], 0xffffffffffffffff
je 0x140048832
cmp byte [rdi + 0x32], 0
jne 0x1400486ca
cmp byte [rdi + 0x30], 0
je 0x1400486ca
mov rax, qword [rdi + 0x20]
cmp byte [rax + 0x39], 0
je 0x1400486ca
mov byte [rbp - 0x40], 7
mov r8d, 1
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.14008af60
mov r8d, reloc.WS2_32.dll_inet_ntoa
lea rdx, [rbp - 0x18]
mov rcx, rdi
call fcn.14008af60
jmp 0x140048832
test ecx, ecx
jne 0x1400485fa
mov byte [rbx + 0x818], 1
jmp 0x14004883b
mov edx, 0x2400
mov dword [rbp - 0x3c], edx
xor sil, sil
cmp byte [rbx + 0x828], sil
je 0x140048731
mov r9d, dword [r14]
mov r8, qword [rbx + 0x7e0]
lea rdx, [rbp - 0x3c]
mov rcx, qword [rbx + 0x7e8]
call fcn.1400e38e0
test eax, eax
jne 0x140048851
mov sil, 1
mov edx, dword [rbp - 0x3c]
mov r8d, dword [r14]
mov r9d, r8d
shr r9d, 0x18
mov dword [rbp - 0x28], 0x507
cmp edx, r8d
jbe 0x140048791
xor sil, sil
movzx eax, sil
shl eax, 0x18
mov dword [rbp - 0x24], eax
mov ecx, r8d
shl ecx, 0x10
mov eax, r8d
and eax, 0xff00
or ecx, eax
shl ecx, 8
shr r8d, 8
and r8d, 0xff00
or ecx, r8d
or ecx, r9d
mov dword [rbp - 0x20], ecx
mov rdi, qword [rbx + 0x3b0]
cmp qword [rdi + 0x10], 0xffffffffffffffff
jne 0x1400487c6
xor sil, sil
jmp 0x140048832
movzx eax, sil
shl eax, 0x18
mov dword [rbp - 0x24], eax
test sil, sil
je 0x140048754
mov ecx, edx
and ecx, 0xff0000
mov eax, edx
shr eax, 0x10
or ecx, eax
shr ecx, 8
mov eax, edx
shl eax, 0x10
and edx, 0xff00
or eax, edx
shl eax, 8
or ecx, eax
jmp 0x140048778
cmp byte [rdi + 0x32], 0
jne 0x1400487f2
cmp byte [rdi + 0x30], 0
je 0x1400487f2
mov rax, qword [rdi + 0x20]
cmp byte [rax + 0x39], 0
je 0x1400487f2
mov byte [rbp - 0x3f], 7
mov r8d, 1
lea rdx, [rbp - 0x3f]
mov rcx, rdi
call fcn.14008af60
mov r8d, reloc.WS2_32.dll_inet_ntoa
lea rdx, [rbp - 0x28]
mov rcx, rdi
call fcn.14008af60
mov rcx, qword [rbx + 0x3b0]
test sil, sil
je 0x14004881d
mov r8d, dword [rbp - 0x3c]
mov rdx, qword [rbx + 0x7e8]
jmp 0x140048827
mov r8d, dword [r14]
mov rdx, qword [rbx + 0x7e0]
call fcn.14008ae40
test eax, eax
setne sil
mov eax, dword [r14]
add dword [rbx + 0x820], eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test sil, sil
jne 0x140048570
xor al, al
jmp 0x140048887
mov r9d, eax
lea r8, str.vncClient::SendFileChunk_:_Compress_returned_error_in_File_Send_:_d_n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140018d00
mov byte [rbx + 0x829], 1
mov rcx, rbx
call fcn.1400488b0
nop
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140147af0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret