Function at 0x1400b1b90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
push r13
push rbp
sub rsp, 0x28
mov rbx, rcx
mov r13, rdx
test rbx, rbx
je 0x1400b1e00
test r13, r13
je 0x1400b1e00
cmp qword [rbx], 0
je 0x1400b1bc1
je 0x1400b1bc1
mov rcx, rbx
call fcn.1400b1e90
mov ecx, 0x30
mov edx, 1
call fcn.14011b018
mov rbp, rax
mov qword [rbx], rbp
test rbp, rbp
je 0x1400b1e00
mov ecx, 0x20
mov edx, 1
mov qword [rbp], 0x20
call fcn.14011b018
mov rsi, rax
mov qword [rbp + 8], rsi
test rsi, rsi
je 0x1400b1e7f
vmovups xmm0, xmmword [r13]
vmovups xmmword [rsi], xmm0
vmovups xmm1, xmmword [r13 + 0x10]
vmovups xmmword [rsi + 0x10], xmm1
mov ecx, pe_nt_image_headers64
mov edx, 1
mov qword [rbp + 0x28], 8
mov qword [rbp + 0x20], setsockopt
mov qword [rbp + 0x10], pe_nt_image_headers64
call fcn.14011b018
mov r8, rax
mov qword [rbp + 0x18], r8
test r8, r8
je 0x1400b1e68
vmovups xmm0, xmmword [rsi]
vmovups xmmword [r8], xmm0
vmovups xmm1, xmmword [rsi + 0x10]
vmovups xmmword [r8 + 0x10], xmm1
xor ebx, ebx
mov rdx, r8
xor ecx, ecx
mov eax, dword [rcx + r8 + 0x1c]
mov dword [rsp + 0x24], eax
lea rax, [rbx + 8]
mov rbp, rax
and rbp, 7
je 0x1400b1d19
cmp rbp, 4
je 0x1400b1e0a
jmp 0x1400b1dd8
movzx eax, byte [rsp + 0x25]
mov rsi, rax
and rsi, 0xf0
and rax, 0xf
add rsi, rax
lea rbp, [0x140000000]
mov r9b, byte [rbp + rsi + 0x19e020]
mov byte [rsp + 0x25], r9b
movzx eax, byte [rsp + 0x26]
mov rsi, rax
and rsi, 0xf0
and rax, 0xf
add rsi, rax
lea rbp, [0x140000000]
mov r9b, byte [rbp + rsi + 0x19e020]
mov byte [rsp + 0x26], r9b
movzx eax, byte [rsp + 0x27]
mov rsi, rax
and rsi, 0xf0
and rax, 0xf
add rsi, rax
lea rbp, [0x140000000]
mov r9b, byte [rbp + rsi + 0x19e020]
mov byte [rsp + 0x27], r9b
jmp 0x1400b1dd8
movzx ebp, word [rsp + 0x25]
mov word [rsp + 0x20], bp
mov sil, byte [rsp + 0x27]
mov byte [rsp + 0x22], sil
mov bpl, byte [rsp + 0x24]
mov byte [rsp + 0x23], bpl
mov esi, dword [rsp + 0x20]
mov dword [rsp + 0x24], esi
jmp 0x1400b1e39
movzx ebp, byte [rsp + 0x25]
mov r9, rbp
and r9, 0xf0
and rbp, 0xf
add r9, rbp
lea rsi, [0x140000000]
mov r10b, byte [rsi + r9 + 0x19e020]
mov byte [rsp + 0x25], r10b
movzx ebp, byte [rsp + 0x26]
mov r9, rbp
and r9, 0xf0
and rbp, 0xf
add r9, rbp
lea rsi, [0x140000000]
mov r10b, byte [rsi + r9 + 0x19e020]
mov byte [rsp + 0x26], r10b
movzx ebp, byte [rsp + 0x27]
mov r9, rbp
and r9, 0xf0
and rbp, 0xf
add r9, rbp
lea rsi, [0x140000000]
mov r10b, byte [rsi + r9 + 0x19e020]
mov byte [rsp + 0x27], r10b
shr rax, 3
lea rbp, [0x140000000]
mov al, byte [rbp + rax + 0x19e18f]
xor byte [rsp + 0x24], al
vmovd xmm0, dword [rdx]
inc rbx
vmovd xmm1, dword [rsp + 0x24]
add rcx, 4
vpxor xmm2, xmm0, xmm1
vmovd dword [rdx + 0x20], xmm2
add rdx, 4
cmp rbx, 0x34
jb 0x1400b1c6d
add rsp, 0x28
pop rbp
pop r13
pop rsi
pop rbx
ret
movzx eax, byte [rsp + 0x24]
mov rsi, rax
and rsi, 0xf0
and rax, 0xf
add rsi, rax
lea rbp, [0x140000000]
mov r9b, byte [rbp + rsi + 0x19e020]
mov byte [rsp + 0x24], r9b
jmp 0x1400b1c96
movzx ebp, byte [rsp + 0x24]
mov r9, rbp
and r9, 0xf0
and rbp, 0xf
add r9, rbp
lea rsi, [0x140000000]
mov r10b, byte [rsi + r9 + 0x19e020]
mov byte [rsp + 0x24], r10b
jmp 0x1400b1d44
cmp qword [rbx], 0
je 0x1400b1e00
mov rcx, rbx
add rsp, 0x28
pop rbp
pop r13
pop rsi
pop rbx
jmp fcn.1400b1e90
cmp qword [rbx], 0
jne 0x1400b1e6e
jmp 0x1400b1e00