Function at 0x1400731d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x250]
sub rsp, 0x350
mov rax, qword [0x14049f410]
xor rax, rsp
mov qword [rbp + 0x240], rax
mov r14, qword [rcx + 8]
lea rdx, [rcx + 0x1e8]
xor esi, esi
mov qword [rsp + 0x58], r14
mov r13d, esi
mov dword [rsp + 0x20], esi
mov rbx, rcx
mov qword [rsp + 0x50], rcx
lea rdi, [rcx + 0x108]
call fcn.14008e1d0
mov r15d, eax
test eax, eax
jne 0x140073d57
mov rcx, rbx
cmp dword [rbx + 0x118], esi
je 0x140073252
call fcn.14009c7f0
jmp 0x140073257
call fcn.14008b0a0
mov r15d, eax
test eax, eax
jne 0x1400732bc
mov rcx, qword [rbx + 0x288]
lea edx, [rax + 1]
lea r8d, [rax + 0xa]
call qword [rbx + 0x280]
test eax, eax
je 0x14007327e
mov r15d, 0x62
jmp 0x1400732bc
mov eax, dword [rdi + 8]
mov edx, esi
mov rcx, qword [rdi]
test eax, eax
je 0x1400732ab
add rcx, 0x10
mov r8d, eax
mov eax, dword [rcx + 4]
imul eax, dword [rcx]
lea rcx, [rcx + 0x208]
cmp edx, eax
cmovg eax, edx
mov edx, eax
sub r8, 1
jne 0x140073291
mov rcx, rbx
mov dword [rbx + 0x368], edx
call fcn.1400ab9d0
mov r15d, eax
test rdi, rdi
je 0x140073dd2
mov r12d, dword [rbx + 0x110]
test r12d, r12d
je 0x140073dd2
mov r9d, esi
mov r8d, r12d
mov rsi, qword [rdi]
mov qword [rsp + 0x40], rsi
lea rdx, [rsi + 0x14]
cmp dword [rdx + 0x84], r13d
je 0x140073303
mov ecx, dword [rdx]
cmp dword [rdx - 4], ecx
cmovg ecx, dword [rdx - 4]
cmp r9d, ecx
cmovg ecx, r9d
mov r9d, ecx
add rdx, 0x208
sub r8, 1
jne 0x1400732e7
mov r10d, dword [rbx + 0x248]
xor edx, edx
mov r8d, dword [rbx + 0x184]
mov eax, r10d
imul eax, r9d
mov qword [rsp + 0x40], rsi
div r8d
mov ecx, eax
test eax, eax
jne 0x14007338f
mov r9d, dword [rbx + 0x1f0]
mov r8d, 0x400
mov ecx, dword [rbx + 0x1ec]
cmp ecx, r9d
jbe 0x140073364
cmp ecx, r8d
cmovl r8d, ecx
xor edx, edx
imul r9d, r8d
mov eax, r9d
div ecx
mov r11d, eax
jmp 0x14007337c
cmp r9d, r8d
mov r11d, r8d
cmovl r11d, r9d
xor edx, edx
imul ecx, r11d
mov eax, ecx
div r9d
mov r8d, eax
mov dword [rbx + 0x274], r11d
mov r9d, dword [rbx + 0x24c]
jmp 0x140073428
mov r9d, dword [rbx + 0x24c]
xor edx, edx
mov eax, 0xde000
div ecx
mov r11d, eax
mov eax, 0x333
cmp r11d, eax
cmovl r11d, eax
cmp r10d, r9d
jbe 0x1400733eb
mov edx, dword [rbx + 0x250]
mov ecx, r10d
imul ecx, r11d
mov eax, ecx
sar eax, 0x1f
add eax, ecx
shr eax, 0xb
inc eax
shr eax, 1
cmp eax, edx
cmovg edx, eax
mov eax, r9d
cmp edx, r8d
cmovl r8d, edx
xor edx, edx
imul eax, r8d
div r10d
mov r11d, eax
jmp 0x140073428
mov edx, dword [rbx + 0x254]
mov eax, r9d
imul eax, r11d
mov r11d, dword [rbx + 0x188]
mov ecx, eax
sar ecx, 0x1f
add ecx, eax
mov eax, r10d
shr ecx, 0xb
inc ecx
shr ecx, 1
cmp ecx, edx
cmovg edx, ecx
cmp edx, r11d
cmovl r11d, edx
xor edx, edx
imul eax, r11d
div r9d
mov r8d, eax
and r8d, 0xfffffffe
shl r10d, 0xb
xor edx, edx
sar r10d, 1
mov eax, r10d
shl r9d, 0xb
div r8d
sar r9d, 1
and r11d, 0xfffffffe
mov dword [rbx + 0x27c], eax
xor edx, edx
mov eax, r9d
mov dword [rbx + 0x270], r8d
div r11d
mov dword [rbx + 0x274], r11d
mov dword [rbx + 0x278], eax
mov eax, dword [rbx + 0x338]
dec r12d
mov dword [rsp + 0x38], r12d
mov r8d, 0x46
cmp eax, 2
jne 0x14007348a
cmp dword [rsi + 0x98], 0
je 0x1400734a0
cmp dword [rsi + 0x9c], 0
je 0x140073d3b
cmp eax, 1
jne 0x140073d3b
mov rcx, rsi
lea rax, [rsp + 0x60]
mov edx, 4
nop dword [rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x1400734b0
cmp dword [rbx + 0x380], edx
mov edi, 0x3c
mov rcx, qword [rcx]
mov r9d, dword [rbx + 0x184]
cmovne edi, r8d
mov r13d, dword [rbx + 0x188]
mov qword [rax], rcx
cmp qword [rbx + 0x1a8], rdx
je 0x140073543
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.1400a38e0
mov r9d, dword [rbx + 0x184]
cmp dword [rbp - 8], 0
jne 0x140073558
cmp dword [rbp - 4], 0
jne 0x140073558
cmp dword [rbp - 0x10], edi
jl 0x140073d3b
mov edx, dword [rsp + 0x78]
sar edx, 0x1f
mov eax, edx
xor eax, dword [rsp + 0x78]
sub eax, edx
cmp eax, 0x87
jle 0x140073580
movaps xmm1, xmmword [rbp - 0x80]
movaps xmm2, xmmword [rbp - 0x70]
movaps xmmword [rbp - 0x80], xmm2
movaps xmmword [rbp - 0x70], xmm1
jmp 0x140073588
movaps xmm1, xmmword [rbp - 0x70]
movaps xmm2, xmmword [rbp - 0x80]
movd ecx, xmm2
movd eax, xmm1
cmp ecx, eax
jle 0x1400735be
movdqa xmm0, xmm2
psrldq xmm0, 8
movd eax, xmm0
test eax, eax
je 0x1400735be
movdqa xmm0, xmm1
psrldq xmm0, 8
movd eax, xmm0
test eax, eax
je 0x1400735be
movaps xmmword [rbp - 0x80], xmm1
movaps xmmword [rbp - 0x70], xmm2
mov edi, dword [rsp + 0x74]
mov ecx, r13d
mov esi, dword [rsp + 0x70]
mov eax, 0x51eb851f
imul ecx, r9d
mov r8d, edi
imul r8d, esi
xor r10d, r10d
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r8d, edx
jge 0x1400735f3
lea ecx, [r10 + 1]
jmp 0x14007360a
mov eax, ecx
mov ecx, r10d
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp r8d, eax
setge cl
add ecx, 2
cmp dword [rbx + 0x298], 3
mov dword [rbp], ecx
mov dword [rbp + 0x3c], 1
jne 0x140073691
mov ecx, dword [rsp + 0x68]
lea r12d, [r9 - 1]
mov eax, dword [rsp + 0x6c]
lea edx, [rsi + 0x11]
add ecx, 0xfffffff8
lea r8d, [rdi + 0x11]
add eax, 0xfffffff8
cmp ecx, r12d
jg 0x140073644
test ecx, ecx
mov r12d, r10d
cmovns r12d, ecx
lea r15d, [r13 - 1]
mov dword [rsp + 0x68], r12d
cmp eax, r15d
jg 0x14007365b
test eax, eax
mov r15d, r10d
cmovns r15d, eax
mov esi, r9d
mov dword [rsp + 0x6c], r15d
sub esi, r12d
cmp edx, esi
jg 0x140073672
test edx, edx
mov esi, r10d
cmovns esi, edx
mov edi, r13d
mov dword [rsp + 0x70], esi
sub edi, r15d
cmp r8d, edi
jg 0x14007368b
test r8d, r8d
mov edi, r10d
cmovns edi, r8d
mov dword [rsp + 0x74], edi
jmp 0x14007369b
mov r15d, dword [rsp + 0x6c]
mov r12d, dword [rsp + 0x68]
mov eax, dword [rbx + 0x1c]
xor edx, edx
shl eax, 0xa
div dword [rbx + 0x248]
mov r10d, dword [rbx + 0x274]
mov ecx, eax
mov eax, 0x200000
cdq
idiv ecx
xor edx, edx
mov r8d, eax
sar r8d, 0x1f
add r8d, eax
mov eax, dword [rbx + 0x20]
shl eax, 0xa
div dword [rbx + 0x24c]
sar r8d, 9
mov ecx, eax
inc r8d
sar r8d, 1
mov eax, 0x200000
cdq
idiv ecx
mov r11d, eax
sar r11d, 0x1f
add r11d, eax
lea eax, [r8 + 8]
sar r11d, 9
inc r11d
sar r11d, 1
lea ecx, [r11 + 8]
cmp eax, ecx
cmovg r11d, r8d
mov r8d, dword [rbx + 0x270]
xor edx, edx
add r11d, 0xa
mov eax, r8d
shl eax, 0xa
div r9d
xor edx, edx
mov ecx, eax
mov eax, r10d
shl eax, 0xa
div r13d
lea r13d, [rsi + r12]
mov edx, r12d
imul edx, ecx
lea esi, [r11 - 1]
mov r9d, eax
mov eax, 0
mov r12d, eax
sar edx, 0xa
sub edx, r11d
cmovs edx, eax
imul r13d, ecx
and edx, 0xfffffffe
mov ecx, r15d
sub r8d, edx
mov dword [rbx + 0x36c], edx
sar r13d, 0xa
sub r13d, edx
add r13d, r11d
cmp r8d, r13d
cmovl r13d, r8d
imul ecx, r9d
and r13d, 0xfffffffe
mov dword [rbx + 0x374], r13d
sar ecx, 0xa
sub ecx, r11d
cmovs ecx, eax
lea eax, [rdi + r15]
imul eax, r9d
sub r10d, ecx
mov dword [rbx + 0x370], ecx
sar eax, 0xa
sub eax, ecx
add esi, eax
cmp r10d, esi
cmovl esi, r10d
and esi, 0xfffffffe
mov dword [rbx + 0x378], esi
mov r15d, r12d
test r13d, r13d
je 0x140073c91
test esi, esi
je 0x140073c91
mov rax, qword [r14]
xorps xmm0, xmm0
mov edx, r13d
mov rcx, r14
imul edx, esi
movups xmmword [rbp + 0x170], xmm0
movups xmmword [rbp + 0x180], xmm0
movups xmmword [rbp + 0x190], xmm0
movups xmmword [rbp + 0x1a0], xmm0
movups xmmword [rbp + 0x1b0], xmm0
call qword [rax + 8]
mov rdi, rax
test rax, rax
je 0x140073850
mov qword [rbp + 0x188], rax
mov ecx, esi
mov dword [rbp + 0x180], r13d
mov edx, r13d
mov dword [rbp + 0x174], r13d
mov r9, rax
mov dword [rbp + 0x178], esi
mov r12d, r13d
mov dword [rbp + 0x170], 0x40000001
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x24], esi
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x2c], esi
mov dword [rsp + 0x34], esi
jmp 0x1400738b2
xorps xmm0, xmm0
mov dword [rsp + 0x28], r12d
movups xmmword [rbp + 0x170], xmm0
mov esi, dword [rbp + 0x178]
mov r15d, 0xfffffffd
mov r13d, dword [rbp + 0x174]
mov ecx, r12d
movups xmmword [rbp + 0x180], xmm0
mov rdi, qword [rbp + 0x188]
mov edx, r12d
movups xmmword [rbp + 0x190], xmm0
mov r9, r12
mov dword [rsp + 0x24], r12d
movups xmmword [rbp + 0x1a0], xmm0
mov dword [rsp + 0x30], r12d
movups xmmword [rbp + 0x1b0], xmm0
mov dword [rsp + 0x2c], r12d
mov dword [rsp + 0x34], r12d
test r15d, r15d
jne 0x140073c99
imul ecx, edx
xor edx, edx
mov r8d, ecx
mov rcx, r9
call fcn.1400fd5ea
lea r9, [rsp + 0x60]
mov rcx, rbx
lea r8, [rbx + 0x36c]
lea rdx, [rbp + 0x170]
call fcn.1400ab280
mov r15d, eax
test eax, eax
jne 0x140073c99
cmp dword [rbx + 0x298], 3
jne 0x14007394f
mov eax, dword [rsp + 0x24]
lea rdx, [rbp + 0x170]
cmp dword [rsp + 0x28], eax
mov r8d, 0xc
mov eax, dword [rsp + 0x2c]
mov rcx, rbx
cmovl eax, dword [rsp + 0x30]
cmp eax, 0xdc
mov eax, 6
cmovle r8d, eax
call fcn.140077100
mov r15d, eax
test eax, eax
jne 0x140073c99
mov rdi, qword [rbp + 0x188]
mov esi, dword [rbp + 0x178]
mov r13d, dword [rbp + 0x174]
jmp 0x14007398d
mov eax, dword [rbx + 0x184]
xor edx, edx
add eax, eax
div dword [rbx + 0x270]
cmp eax, 5
jae 0x14007398d
cmp esi, r13d
cmovl r12d, dword [rsp + 0x34]
cmp r12d, 0x40
jle 0x14007398d
lea rdx, [rbp + 0x170]
mov rcx, rbx
call fcn.140086d70
mov r15d, eax
test eax, eax
jne 0x140073c99
cmp dword [rbx + 0x298], 3
lea rdx, [rbx + 0x68]
jne 0x140073a16
mov ecx, dword [rbx + 0x70]
cmp dword [rbx + 0x6c], ecx
mov eax, dword [rdx + 4]
cmovl ecx, dword [rbx + 0x6c]
xor r12d, r12d
cmp ecx, 0xdc
mov rcx, rbx
jle 0x1400739e5
mov dword [rbp + 0x1c8], eax
lea r9d, [r12 + 0xc]
mov eax, dword [rdx + 8]
lea r8, [rbp + 0x1c0]
mov dword [rbp + 0x1cc], eax
mov dword [rbx + 0x3c8], r12d
mov qword [rbp + 0x1c0], r12
call fcn.140086610
jmp 0x140073a21
mov dword [rbp + 0x1d8], eax
lea r8, [rbp + 0x1d0]
mov eax, dword [rdx + 8]
mov r9d, 6
mov dword [rbp + 0x1dc], eax
mov dword [rbx + 0x3c8], r12d
mov qword [rbp + 0x1d0], r12
call fcn.140086610
jmp 0x140073a21
mov rcx, rbx
call fcn.140086d70
xor r12d, r12d
mov r15d, eax
test eax, eax
jne 0x140073c9c
cmp dword [rbx + 0x298], 3
jne 0x140073c69
movsxd r12, dword [rbx + 0x6c]
mov dword [rsp + 0x28], r12d
cmp r12d, 0x32
jbe 0x140073c66
mov r15d, dword [rbx + 0x70]
mov dword [rsp + 0x24], r15d
cmp r15d, 0x32
jbe 0x140073c66
test r12d, r12d
je 0x140073c66
test r15d, r15d
je 0x140073c66
mov rax, qword [r14]
xorps xmm0, xmm0
mov ecx, r12d
imul ecx, r15d
movups xmmword [rbp + 0x1f0], xmm0
movups xmmword [rbp + 0x200], xmm0
mov dword [rsp + 0x34], ecx
mov edx, ecx
mov rcx, r14
movups xmmword [rbp + 0x210], xmm0
movups xmmword [rbp + 0x220], xmm0
movups xmmword [rbp + 0x230], xmm0
call qword [rax + 8]
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140073c40
mov ecx, dword [rbx + 0x6c]
xor edx, edx
mov r8d, dword [rsp + 0x34]
sub ecx, 0x32
mov dword [rsp + 0x2c], ecx
mov ecx, dword [rbx + 0x70]
add ecx, 0xffffffce
mov qword [rbp + 0x208], rax
mov dword [rsp + 0x30], ecx
mov rcx, rax
mov dword [rbp + 0x200], r12d
mov dword [rbp + 0x1f4], r12d
mov dword [rbp + 0x1f8], r15d
mov dword [rbp + 0x1f0], 0x40000001
call fcn.1400fd5ea
mov r15, qword [rsp + 0x48]
imul eax, r12d, 0x19
add r15, 0x19
movsxd rcx, eax
add r15, rcx
mov ecx, dword [rsp + 0x30]
test ecx, ecx
jle 0x140073b68
movsxd r14, dword [rsp + 0x2c]
mov qword [rsp + 0x48], r12
mov r12d, ecx
mov rbx, qword [rsp + 0x48]
nop dword [rax]
nop word [rax + rax]
mov r8, r14
mov edx, 0xff
mov rcx, r15
call fcn.1400fd5ea
add r15, rbx
sub r12, 1
jne 0x140073b40
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
mov r12d, dword [rsp + 0x28]
xor eax, eax
mov dword [rbp + 0x1e8], r12d
mov qword [rbp + 0x1e0], rax
xor r12d, r12d
mov dword [rbx + 0x3c8], r12d
lea r15d, [rax + 2]
mov eax, dword [rsp + 0x24]
mov dword [rbp + 0x1ec], eax
mov r9d, 0x19
lea r8, [rbp + 0x1e0]
lea rdx, [rbp + 0x1f0]
mov rcx, rbx
dec r15d
call fcn.140086610
test eax, eax
jne 0x140073bb8
test r15d, r15d
jne 0x140073b90
mov rdx, qword [rbp + 0x208]
imul esi, r13d
sub rdx, rdi
nop word [rax + rax]
movzx ecx, byte [rdx + rdi]
movzx eax, byte [rdi]
lea rdi, [rdi + 1]
imul ecx, eax
shr ecx, 8
mov byte [rdi - 1], cl
add esi, 0xffffffff
jne 0x140073bd0
mov ecx, dword [rbp + 0x1f0]
mov edi, r12d
mov eax, ecx
shr eax, 0x14
and eax, 3
add eax, 1
je 0x140073c69
nop
mov eax, edi
lea rsi, [rbp + 0x208]
shl rax, 4
add rsi, rax
mov rdx, qword [rsi]
test rdx, rdx
je 0x140073c2a
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x10]
mov qword [rsi], r12
mov ecx, dword [rbp + 0x1f0]
mov eax, ecx
inc edi
shr eax, 0x14
and eax, 3
inc eax
cmp edi, eax
jb 0x140073c00
jmp 0x140073c69
xorps xmm0, xmm0
movups xmmword [rbp + 0x1f0], xmm0
movups xmmword [rbp + 0x200], xmm0
movups xmmword [rbp + 0x210], xmm0
movups xmmword [rbp + 0x220], xmm0
movups xmmword [rbp + 0x230], xmm0
xor r12d, r12d
lea r8, [rbp + 0x170]
mov rcx, rbx
lea rdx, [rsp + 0x60]
call fcn.140069240
mov r15d, eax
test eax, eax
jne 0x140073c9c
mov r13d, 1
mov dword [rsp + 0x20], r13d
jmp 0x140073ca1
mov r15d, 0xfffffffc
jmp 0x140073c9c
xor r12d, r12d
mov r13d, dword [rsp + 0x20]
mov eax, dword [rbp + 0x170]
mov edi, r12d
shr eax, 0x14
and eax, 3
add eax, 1
je 0x140073cf8
nop word [rax + rax]
mov eax, edi
lea rsi, [rbp + 0x188]
shl rax, 4
add rsi, rax
mov rdx, qword [rsi]
test rdx, rdx
je 0x140073ce4
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x10]
mov qword [rsi], r12
mov eax, dword [rbp + 0x170]
inc edi
shr eax, 0x14
and eax, 3
inc eax
cmp edi, eax
jb 0x140073cc0
xorps xmm0, xmm0
lea rdx, [rbx + 0x68]
mov rcx, r14
movups xmmword [rbp + 0x170], xmm0
movups xmmword [rbp + 0x180], xmm0
movups xmmword [rbp + 0x190], xmm0
movups xmmword [rbp + 0x1a0], xmm0
movups xmmword [rbp + 0x1b0], xmm0
call fcn.140081c90
test r15d, r15d
jne 0x140073d84
mov rsi, qword [rsp + 0x40]
mov r12d, dword [rsp + 0x38]
jmp 0x140073d40
mov r13d, dword [rsp + 0x20]
add rsi, 0x208
mov qword [rsp + 0x40], rsi
test r12d, r12d
jne 0x140073468
xor esi, esi
lea rdx, [rbx + 0x18]
mov rcx, r14
call fcn.140081c90
lea rdx, [rbx + 0x190]
mov rcx, r14
call fcn.140081c90
test r15d, r15d
jne 0x140073d9f
test r13d, r13d
mov eax, 0x61
cmovne eax, esi
jmp 0x140073da2
lea rdx, [rbx + 0x18]
mov rcx, r14
call fcn.140081c90
lea rdx, [rbx + 0x190]
mov rcx, r14
call fcn.140081c90
mov eax, r15d
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.1400fc4b0
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rdx, [rbx + 0x18]
mov rcx, r14
mov edi, 0x61
call fcn.140081c90
lea rdx, [rbx + 0x190]
mov rcx, r14
call fcn.140081c90
mov eax, edi
jmp 0x140073da2