Function at 0x140054c50
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rdi, rdx
mov rdx, qword [rdx + 8]
mov rsi, qword [rdi + 0x10]
mov r9, rdx
sub r9, rsi
jb 0x14004fdbd
mov r8, qword [rdi]
add r8, rsi
mov rdx, qword [rcx]
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
call fcn.140050100
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x14004fc54
mov rdi, qword [rsp + 0x38]
mov eax, edi
and eax, 3
lea rcx, [0x1400aad48]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
movzx eax, byte [rdi + 0x10]
jmp 0x14004fc82
add rsi, qword [rsp + 0x38]
mov qword [rdi + 0x10], rsi
mov rax, qword [rdi + 0x18]
cmp rax, rsi
cmova rsi, rax
mov qword [rdi + 0x18], rsi
xor esi, esi
jmp 0x14004fc9d
movzx eax, byte [rdi + 0xf]
jmp 0x14004fc82
mov rcx, rdi
shr rcx, 0x20
call fcn.14005c8f0
xor esi, esi
cmp al, 0xb
cmovne rsi, rdi
test rbx, rbx
je 0x14004fc9d
cmp al, 0xb
jne 0x14004fc9d
lea rcx, [rsp + 0x38]
call fcn.1400132f0
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
mov rax, rdi
shr rax, 0x20
cmp eax, 0x28
ja case.default.0x14004fcc2
lea rcx, [0x1400aad58]
movsxd rax, dword [rcx + rax*4]
invalid
add al, 0x81
add rax, rcx
add eax, ecx
invalid
add eax, ecx
jmp rax
xor eax, eax
jmp 0x14004fc82
mov al, 0x29
jmp 0x14004fc82
mov al, 1
jmp 0x14004fc82
mov al, 2
jmp 0x14004fc82
mov al, 3
jmp 0x14004fc82
mov al, 4
jmp 0x14004fc82
mov al, 5
jmp 0x14004fc82
mov al, 6
jmp 0x14004fc82
mov al, 7
jmp 0x14004fc82
mov al, 8
jmp 0x14004fc82
mov al, 9
jmp 0x14004fc82
mov al, 0xa
jmp 0x14004fc82
mov al, 0xb
jmp 0x14004fc82
invalid
mov dh, byte [rax - 0x4f7914f4]
or eax, 0xeb082eb
jmp 0x14004fc82
mov al, 0xe
mov al, 0xc
jmp 0x14004fc82
mov al, 0xd
jmp 0x14004fc82
mov al, 0xe
jmp 0x14004fc82
invalid
mov al, 0xf
jmp 0x14004fc82
invalid
invalid
invalid
mov al, 0x10
jmp 0x14004fc82
invalid
invalid
invalid
mov al, 0x11
jmp 0x14004fc82
invalid
invalid
invalid
mov al, 0x12
jmp 0x14004fc82
invalid
invalid
invalid
mov al, 0x13
jmp 0x14004fc82
invalid
invalid
invalid
mov al, 0x14
jmp 0x14004fc82
invalid
invalid
invalid
mov al, 0x15
jmp 0x14004fc82
invalid
invalid
invalid
mov al, 0x16
jmp 0x14004fc82
invalid
invalid
invalid
mov al, 0x17
jmp 0x14004fc82
invalid
invalid
invalid
mov al, 0x18
jmp 0x14004fc82
invalid
invalid
invalid
mov al, 0x19
jmp 0x14004fc82
invalid
invalid
invalid
mov al, 0x1a
jmp 0x14004fc82
invalid
invalid
invalid
mov al, 0x1b
jmp 0x14004fc82
invalid
invalid
invalid
mov al, 0x1c
jmp 0x14004fc82
invalid
invalid
invalid
mov al, 0x1d
jmp 0x14004fc82
invalid
invalid
invalid
mov al, 0x1e
jmp 0x14004fc82
invalid
invalid
invalid
mov al, 0x1f
jmp 0x14004fc82
invalid
invalid
invalid
mov al, 0x20
jmp 0x14004fc82
invalid
invalid
invalid
mov al, 0x21
jmp 0x14004fc82
invalid
invalid
invalid
mov al, 0x22
jmp 0x14004fc82
invalid
invalid
invalid
mov al, 0x23
jmp 0x14004fc82
invalid
invalid
invalid
mov al, 0x24
jmp 0x14004fc82
invalid
invalid
invalid
mov al, 0x25
jmp 0x14004fc82
invalid
invalid
invalid
mov al, 0x26
jmp 0x14004fc82
mov al, 0x27
jmp 0x14004fc82
mov al, 0x28
jmp 0x14004fc82
lea r8, [0x1400ab858]
mov rcx, rsi
call fcn.140097800
ud2
mov r9d, 0x2ceb0017
call sub.WS2_32.dll_WSAGetLastError
mov r15d, eax
shl r15, 0x20
or r15, 2
jmp 0x140050dd5
mov ecx, 0x570f0002
shl byte [rsi - 0x3f], 0xc1
rol ecx, 8
mov word [rsp + 0x40], r9w
rol ecx, 8
mov word [rsp + 0x40], r9w
mov word [rsp + 0x42], cx
mov dword [rsp + 0x44], eax
movups xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x58], edx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
clc
invalid
je 0x140050c01
clc
push qword [rbp + rax + 0x45]
xor edi, edi
xor r15d, r15d
jmp 0x140050c11
call sub.WS2_32.dll_WSAGetLastError
mov r15d, eax
invalid
shl r15, 0x20
or r15, 2
invalid
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x40], 0
lea r8, [rsp + 0x40]
mov rcx, rdi
mov edx, 0x8004667e
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x140050c57
test r15, r15
je 0x140050c74
mov eax, r15d
and eax, 3
lea rcx, [0x1400aadfc]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
movzx eax, byte [r15 + 0x10]
jmp 0x140050c8f
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
test r15, r15
jne 0x140050dc8
jmp case.0x14004fc4c.74
xor r15d, r15d
jmp 0x140050dd5
movzx eax, byte [r15 + 0xf]
jmp 0x140050c8f
mov rcx, r15
shr rcx, 0x20
call fcn.14005c8f0
cmp al, 0xd
jne 0x140050dd5
test r14, r14
jne 0x140050cd0
test ebx, ebx
jne 0x140050cd0
lea rsi, str.cannot_set_a_0_duration_timeout
jmp 0x140050dc8
mov rax, r15
shr rax, 0x20
cmp eax, 0x28
ja case.default.0x140050cca
lea rcx, [0x1400aae0c]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
xor eax, eax
jmp 0x140050c8f
cmp r14, 0x7fffffff
mov eax, 0x7fffffff
cmovb rax, r14
mov ecx, ebx
imul rcx, rcx, 0x10624dd3
shr rcx, 0x26
mov dword [rsp + 0x38], eax
test rax, rax
mov eax, 1
mov edx, ecx
cmove edx, eax
cmp ebx, 0x3e8
cmovae edx, ecx
mov dword [rsp + 0x3c], edx
lea rcx, [rsp + 0x50]
mov r8d, 0x1f8
xor edx, edx
call sub.msvcrt.dll_memset
mov qword [rsp + 0x248], 1
mov qword [rsp + 0x250], rdi
mov dword [rsp + 0x250], edi
mov dword [rsp + 0x250], edi
lea rcx, [rsp + 0x258]
mov r8d, 0x1f8
add byte [rcx - 0x48], al
clc
add dword [rax], eax
add byte [rcx], dh
xor edx, edx
call sub.msvcrt.dll_memset
invalid
invalid
and al, 0x40
add dword [rax], eax
xor edx, edx
call sub.msvcrt.dll_memset
mov qword [rsp + 0x40], 1
add byte [rax], al
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
and al, 0x20
and al, 0x20
lea r8, [rsp + 0x248]
lea r9, [rsp + 0x40]
and al, 0x40
add al, byte [rax]
add byte [rbp + rcx*4 + 0x4c], cl
and al, 0x40
mov ecx, 1
xor edx, edx
call sub.WS2_32.dll_select
test eax, eax
je 0x140050d91
cmp eax, 0xffffffff
jne case.0x14004fc4c.66
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
or esi, 2
or esi, 2
jmp 0x140050dc8
lea r15, str.connection_timed_out
cmp eax, 0x5f408
jmp 0x140050da7
cmp dword [rsp + 0x248], 1
jne 0x140050db3
add dword [rbp + 0xf], esi
xor r15d, r15d
lea rcx, [rsp + 0x30]
lea ecx, [rsp + 0x30]
call fcn.1400132f0
jmp 0x140050dd5
cld
invalid
mov rcx, rsi
call fcn.140051880
mov rsi, rdx
invalid
test rax, rax
jne 0x140050dc8
invalid
test rsi, rsi
test esi, esi
je 0x140050da4
lea rcx, [rsp + 0x30]
and al, 0x30
call fcn.1400132f0
mov r15, rsi
mov rax, r15
add rsp, 0x450
add esp, 0x450
add esp, 0x450
add byte [rbx + 0x5f], bl
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rdi
pop rdi
ret
mov al, 0x29
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 1
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 2
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 3
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 4
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 5
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 6
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 7
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 8
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 9
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 0xa
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 0xb
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 0xc
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 0xd
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 0xe
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 0xf
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 0x10
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 0x11
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 0x12
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 0x13
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 0x14
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 0x15
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 0x16
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 0x17
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 0x18
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 0x19
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 0x1a
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 0x1b
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 0x1c
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 0x1d
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 0x1e
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 0x1f
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 0x20
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 0x21
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 0x22
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 0x23
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 0x24
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 0x25
jmp 0x140050c8f
invalid
invalid
invalid
mov al, 0x26
jmp 0x140050c8f
mov al, 0x27
jmp 0x140050c8f
mov al, 0x28
jmp 0x140050c8f
jmp 0x14005497e
ud2
jmp 0x1400549b2
test bh, 1
je 0x1400549b0
jmp case.0x14004fc4c.96
xor esi, esi
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x1400549cc
mov r8d, 1
call fcn.140010810
add byte [rax], al
add al, ch
mov esi, 0x8440fffb
test dh, dh
je case.0x14004fc4c.96
mov rcx, rdi
test sil, sil
test dh, dh
je case.0x14004fc4c.96
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
ret
mov rcx, r14
call fcn.1400a5780
lahf
invalid
invalid
invalid
lahf
or eax, 0xb0f0005
ud2
nop word cs:[rax + rax]
nop word cs:[rax + rax]
ud2
nop word cs:[rax + rax]
invalid
add byte [rax], al
add byte [rsi + 0x57], dl
push rsi
push rdi
js 0x140054a43
mov eax, eax
mov eax, 0xffffffff
dec dword [rbp + 0x39]
ror dword [rbp + 0xf], 0x42
cmovb r8, r9
invalid
and al, 0x44
add byte [rax], r8b
add byte [rax], r8b
add byte [rax], al
ror byte [rdi], 0x29
and al, 0x50
mov dword [rsp + 0x60], 0
add byte [rax - 0x73], cl
and al, 0x44
mov dword [rsp + 0x68], ecx
insd dword [rdi], dx
invalid
and al, 0x20
and al, 0x50
mov edx, eax
sub al, 6
add eax, 0x74c08500
push rsp
invalid
add al, ch
jge 0x140054a62
add eax, 0x247c8300
jl 0x140054a86
add byte [rdx + rbp*8 + 0x48], r14b
invalid
or eax, 2
cmp byte [rax - 0x39], cl
and al, 0x30
xor byte [rcx], al
add byte [rax], al
invalid
xor byte [rcx], al
add byte [rax], al
add byte [rax - 0x73], cl
jl 0x140054aae
invalid
and al, 0x38
cmp byte [rcx + 0x3e183c1], cl
lea edx, [0x1400aaeb0]
add eax, 0xc634800
mov cl, byte [rax + 1]
invalid
or al, 0x8a
sar edi, 1
loope case.0x140050c4e.50
mov bh, 6
add eax, 0xe0c14800
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x38], rax
shl eax, 0x20
mov dword [rsp + 0x38], eax
cmp byte [rax - 0x39], cl
and al, 0x30
and al, 0x30
add dword [rax], eax
add byte [rax], al
adc eax, 0x563e4
or al, 0x8a
and al, 0x4c
cmp byte [rax - 0x39], cl
and al, 0x30
add byte [rax], al
add byte [rax], al
invalid
add byte [rax], al
add bl, ch
and eax, 0xf40b60f
movzx eax, byte [rax + 0xf]
por mm1, qword [rbx]
and byte [rcx + 0x7df0e8c1], cl
add byte [rax], al
invalid
add byte [rbx + rcx], bh
ror byte [rdi], 0x11
invalid
invalid
mov dword [rsi + 8], eax
or eax, 0x56384
add al, 0x81
mov bl, 0xb0
add ebx, ebp
scasd eax, dword [rdi]
add al, 0xeb
movabs dword [0x9beb06b09feb05b0], eax
mov al, 5
jmp 0x140054b00
mov al, 6
jmp 0x140054b00
xchg edi, eax
or ebp, ebx
xchg dword [rax - 0x4f7c14f4], esi
mov al, 0xc
jmp 0x140054b00
mov al, 0xd
invalid
jl 0x140054b81
invalid
push qword [rax - 0x9116f1]
outsb dx, byte [rsi]
invalid
invalid
adc ecx, ebp
invalid
push qword [rax - 0xad16ed]
push rdx
invalid
invalid
adc eax, 0xffff44e9
push qword [rax - 0xc216ea]
mov al, 0x16
invalid
invalid
invalid
push qword [rax - 0xc916e9]
invalid
invalid
sub bh, bh
invalid
and edi, edi
sbb bh, bh
adc edi, edi
or al, 0xff
add eax, 0xb0ffffff
invalid
invalid
invalid
idiv esi
invalid
jmp 0xf1054c16
loop case.0x14004fc4c.167
invalid
invalid
int 0xfe
invalid
invalid
mov edi, 0x66fffffe
invalid
nop word cs:[rax + rax]
nop word cs:[rax + rax]
nop word cs:[rax + rax]
test byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
push rsi
push rdi
add byte [rax], al
jo 0x140054ca0
mov ebx, edx
ror dword [rax - 0x75], cl
push rdx
or byte [rax - 0x75], cl
invalid
invalid
jnp case.0x140050c4e.108
sub eax, edi
clc
xor eax, dword [rdx]
add byte [rax], al
invalid
ror byte [rdi + rcx + 0x42], 0xc0
ror byte [rax - 0x75], 0x13
add byte [rdi], cl
push rdi
ror byte [rdi], 0x29
and al, 0x50
and al, 0x50
and al, 0x50
add byte [rax], al
add byte [rax], al
and al, 0x34
mov dword [rsp + 0x68], eax
and al, 0x50
push rax
add byte [rbp + 0x664d74c0], al
nop
add byte [rax], al
add al, ch
or eax, 0x83000503
invalid
invalid
jl case.0x140054ad3.51
add byte [rbx + 0x34247c], al
xor al, 0
invalid
test esi, esi
and byte [rax - 0x7d], cl
invalid
add dword [rax], eax
invalid
add al, 0x81
add al, 5
out 0x20, al
mov dword [rsp + 0x48], esi
push qword [rax - 0x9a16ed]
push qword [rax - 0xbd16e8]
nop word cs:[rax + rax]
test byte [rax], al
add byte [rax], al
add byte [rax], al
ret
and al, 0x88
add byte [rax], al
add al, ch
invalid
mov dword [rsp + 0x1a8], eax
mov word [rsp + 0x1b0], 0
mov byte [rsp + 0x1b8], 1
lea r15, [rsp + 0x289]
lea rsi, [rsp + 0xb9]
lea rdi, [rsp + 0x270]
lea rbp, [rsp + 0x1a0]
lea rbx, [rsp + 0xa0]
jmp 0x140057b8c
add byte [rax - 0x75], cl
and al, 0x68
lea ecx, [rsp + 0xa0]
and al, 0xb0
add byte [rax], al
add byte [rcx + rcx*4 - 0x1f], cl