Function at 0x1403f55b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov eax, 2
imul rax, rax, 3
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
and eax, 0x7ff0
sar eax, 4
mov word [rsp + 0x30], ax
movsx eax, word [rsp + 0x30]
cmp eax, 0x7ff
jne 0x1403f566e
mov eax, 2
imul rax, rax, 3
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
and eax, 0xf
test eax, eax
jne 0x1403f565a
mov eax, 2
imul rax, rax, 2
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x1403f565a
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x1403f565a
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x1403f565a
mov dword [rsp + 0x44], 1
jmp 0x1403f5662
mov dword [rsp + 0x44], 2
movzx eax, word [rsp + 0x44]
jmp 0x1403f5c90
movsx eax, word [rsp + 0x30]
test eax, eax
jne 0x1403f5696
mov rcx, qword [rsp + 0x28]
call fcn.14040b480
mov word [rsp + 0x30], ax
movsx eax, word [rsp + 0x30]
test eax, eax
jle 0x1403f5696
xor eax, eax
jmp 0x1403f5c90
cmp dword [rsp + 0x88], 0
jle 0x1403f5718
movsx eax, word [rsp + 0x30]
mov ecx, 0x7ff
sub ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0x88]
jg 0x1403f5718
mov eax, 2
imul rax, rax, 3
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
and eax, 0x8000
test eax, eax
je 0x1403f56e9
movsd xmm0, qword [0x1404ac650]
xorps xmm0, xmmword [0x140428be0]
movsd qword [rsp + 0x60], xmm0
jmp 0x1403f56f7
movsd xmm0, qword [0x1404ac650]
movsd qword [rsp + 0x60], xmm0
mov rax, qword [rsp + 0x80]
movsd xmm0, qword [rsp + 0x60]
movsd qword [rax], xmm0
mov eax, 1
jmp 0x1403f5c90
movsx eax, word [rsp + 0x30]
neg eax
cmp eax, dword [rsp + 0x88]
jge 0x1403f5775
mov eax, 2
imul rax, rax, 3
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
and eax, 0xffff800f
movsx ecx, word [rsp + 0x30]
mov edx, dword [rsp + 0x88]
add edx, ecx
mov ecx, edx
shl ecx, 4
or eax, ecx
mov ecx, 2
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x28]
mov word [rdx + rcx], ax
mov eax, 0xffffffff
jmp 0x1403f5c90
mov eax, 2
imul rax, rax, 3
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
and eax, 0x8000
mov word [rsp + 0x38], ax
mov eax, 2
imul rax, rax, 3
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
and eax, 0xf
or eax, 0x10
mov ecx, 2
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x28]
mov word [rdx + rcx], ax
movsx eax, word [rsp + 0x30]
mov ecx, dword [rsp + 0x88]
lea eax, [rcx + rax - 1]
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 0xffffffcb
jl 0x1403f57e6
cmp dword [rsp + 0x88], 0
jl 0x1403f5845
mov eax, 2
imul rax, rax, 3
mov rcx, qword [rsp + 0x28]
movzx edx, word [rsp + 0x38]
mov word [rcx + rax], dx
mov eax, 2
imul rax, rax, 2
xor ecx, ecx
mov rdx, qword [rsp + 0x28]
mov word [rdx + rax], cx
mov eax, 2
imul rax, rax, 1
xor ecx, ecx
mov rdx, qword [rsp + 0x28]
mov word [rdx + rax], cx
mov eax, 2
imul rax, rax, 0
xor ecx, ecx
mov rdx, qword [rsp + 0x28]
mov word [rdx + rax], cx
xor eax, eax
jmp 0x1403f5c90
movzx eax, word [rsp + 0x88]
mov word [rsp + 0x20], ax
xor eax, eax
mov word [rsp + 0x34], ax
jmp 0x1403f5868
movsx eax, word [rsp + 0x20]
add eax, 0x10
mov word [rsp + 0x20], ax
movsx eax, word [rsp + 0x20]
cmp eax, 0xfffffff0
jg 0x1403f5934
movzx eax, word [rsp + 0x34]
test eax, eax
je 0x1403f5889
mov dword [rsp + 0x48], 1
jmp 0x1403f5891
mov dword [rsp + 0x48], 0
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
or eax, dword [rsp + 0x48]
mov word [rsp + 0x34], ax
mov eax, 2
imul rax, rax, 1
mov ecx, 2
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x28]
movzx eax, word [r8 + rax]
mov word [rdx + rcx], ax
mov eax, 2
imul rax, rax, 2
mov ecx, 2
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x28]
movzx eax, word [r8 + rax]
mov word [rdx + rcx], ax
mov eax, 2
imul rax, rax, 3
mov ecx, 2
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x28]
movzx eax, word [r8 + rax]
mov word [rdx + rcx], ax
mov eax, 2
imul rax, rax, 3
xor ecx, ecx
mov rdx, qword [rsp + 0x28]
mov word [rdx + rax], cx
jmp 0x1403f585b
movsx eax, word [rsp + 0x20]
neg eax
mov word [rsp + 0x20], ax
movsx eax, word [rsp + 0x20]
test eax, eax
je 0x1403f5adc
movzx eax, word [rsp + 0x34]
test eax, eax
je 0x1403f5960
mov dword [rsp + 0x4c], 1
jmp 0x1403f5968
mov dword [rsp + 0x4c], 0
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
movsx ecx, word [rsp + 0x20]
mov edx, reloc.WS2_32.dll_recv
sub edx, ecx
mov ecx, edx
shl eax, cl
or eax, dword [rsp + 0x4c]
mov word [rsp + 0x34], ax
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
movsx ecx, word [rsp + 0x20]
sar eax, cl
mov ecx, 2
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x28]
movzx ecx, word [rdx + rcx]
mov dword [rsp + 0x50], ecx
movsx edx, word [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_recv
sub r8d, edx
mov edx, r8d
movzx ecx, dl
mov edx, dword [rsp + 0x50]
shl edx, cl
mov ecx, edx
or eax, ecx
mov ecx, 2
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x28]
mov word [rdx + rcx], ax
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
movsx ecx, word [rsp + 0x20]
sar eax, cl
mov ecx, 2
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x28]
movzx ecx, word [rdx + rcx]
mov dword [rsp + 0x54], ecx
movsx edx, word [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_recv
sub r8d, edx
mov edx, r8d
movzx ecx, dl
mov edx, dword [rsp + 0x54]
shl edx, cl
mov ecx, edx
or eax, ecx
mov ecx, 2
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x28]
mov word [rdx + rcx], ax
mov eax, 2
imul rax, rax, 2
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
movsx ecx, word [rsp + 0x20]
sar eax, cl
mov ecx, 2
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x28]
movzx ecx, word [rdx + rcx]
mov dword [rsp + 0x58], ecx
movsx edx, word [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_recv
sub r8d, edx
mov edx, r8d
movzx ecx, dl
mov edx, dword [rsp + 0x58]
shl edx, cl
mov ecx, edx
or eax, ecx
mov ecx, 2
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x28]
mov word [rdx + rcx], ax
mov eax, 2
imul rax, rax, 3
movsx ecx, word [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
movzx eax, word [rdx + rax]
shr ax, cl
mov ecx, 2
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x28]
mov word [rdx + rcx], ax
mov eax, 2
imul rax, rax, 3
movzx ecx, word [rsp + 0x38]
mov rdx, qword [rsp + 0x28]
movzx eax, word [rdx + rax]
or eax, ecx
mov ecx, 2
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x28]
mov word [rdx + rcx], ax
movzx eax, word [rsp + 0x34]
cmp eax, 0x8000
jg 0x1403f5b40
movzx eax, word [rsp + 0x34]
cmp eax, 0x8000
jne 0x1403f5c2a
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
and eax, 1
test eax, eax
je 0x1403f5c2a
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
inc ax
mov word [rsp + 0x3c], ax
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx edx, word [rsp + 0x3c]
mov word [rcx + rax], dx
movzx eax, word [rsp + 0x3c]
and eax, 0xffff
test eax, eax
jne 0x1403f5c2a
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
inc ax
mov word [rsp + 0x3e], ax
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x28]
movzx edx, word [rsp + 0x3e]
mov word [rcx + rax], dx
movzx eax, word [rsp + 0x3e]
and eax, 0xffff
test eax, eax
jne 0x1403f5c2a
mov eax, 2
imul rax, rax, 2
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
inc ax
mov word [rsp + 0x40], ax
mov eax, 2
imul rax, rax, 2
mov rcx, qword [rsp + 0x28]
movzx edx, word [rsp + 0x40]
mov word [rcx + rax], dx
movzx eax, word [rsp + 0x40]
and eax, 0xffff
test eax, eax
jne 0x1403f5c2a
mov eax, 2
imul rax, rax, 3
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
inc ax
mov ecx, 2
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x28]
mov word [rdx + rcx], ax
jmp 0x1403f5c8b
mov eax, 2
imul rax, rax, 3
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
movzx ecx, word [rsp + 0x38]
cmp eax, ecx
jne 0x1403f5c8b
mov eax, 2
imul rax, rax, 2
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x1403f5c8b
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x1403f5c8b
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x1403f5c8b
xor eax, eax
jmp 0x1403f5c90
mov eax, 0xffffffff
add rsp, 0x78
ret