Function at 0x1400739a0
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.14008e9a0
mov r15d, eax
test eax, eax
jne 0x140074527
mov rcx, rbx
cmp dword [rbx + 0x118], esi
je 0x140073a22
call fcn.14009cfc0
jmp 0x140073a27
call fcn.14008b870
mov r15d, eax
test eax, eax
jne 0x140073a8c
mov rcx, qword [rbx + 0x288]
lea edx, [rax + 1]
lea r8d, [rax + 0xa]
call qword [rbx + 0x280]
test eax, eax
je 0x140073a4e
mov r15d, 0x62
jmp 0x140073a8c
mov eax, dword [rdi + 8]
mov edx, esi
mov rcx, qword [rdi]
test eax, eax
je 0x140073a7b
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 0x140073a61
mov rcx, rbx
mov dword [rbx + 0x368], edx
call fcn.1400ac1a0
mov r15d, eax
test rdi, rdi
je 0x1400745a2
mov r12d, dword [rbx + 0x110]
test r12d, r12d
je 0x1400745a2
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 0x140073ad3
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 0x140073ab7
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 0x140073b5f
mov r9d, dword [rbx + 0x1f0]
mov r8d, 0x400
mov ecx, dword [rbx + 0x1ec]
cmp ecx, r9d
jbe 0x140073b34
cmp ecx, r8d
cmovl r8d, ecx
xor edx, edx
imul r9d, r8d
mov eax, r9d
div ecx
mov r11d, eax
jmp 0x140073b4c
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 0x140073bf8
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 0x140073bbb
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 0x140073bf8
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 0x140073c5a
cmp dword [rsi + 0x98], 0
je 0x140073c70
cmp dword [rsi + 0x9c], 0
je 0x14007450b
cmp eax, 1
jne 0x14007450b
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 0x140073c80
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 0x140073d13
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.1400a40b0
mov r9d, dword [rbx + 0x184]
cmp dword [rbp - 8], 0
jne 0x140073d28
cmp dword [rbp - 4], 0
jne 0x140073d28
cmp dword [rbp - 0x10], edi
jl 0x14007450b
mov edx, dword [rsp + 0x78]
sar edx, 0x1f
mov eax, edx
xor eax, dword [rsp + 0x78]
sub eax, edx
cmp eax, 0x87
jle 0x140073d50
movaps xmm1, xmmword [rbp - 0x80]
movaps xmm2, xmmword [rbp - 0x70]
movaps xmmword [rbp - 0x80], xmm2
movaps xmmword [rbp - 0x70], xmm1
jmp 0x140073d58
movaps xmm1, xmmword [rbp - 0x70]
movaps xmm2, xmmword [rbp - 0x80]
movd ecx, xmm2
movd eax, xmm1
cmp ecx, eax
jle 0x140073d8e
movdqa xmm0, xmm2
psrldq xmm0, 8
movd eax, xmm0
test eax, eax
je 0x140073d8e
movdqa xmm0, xmm1
psrldq xmm0, 8
movd eax, xmm0
test eax, eax
je 0x140073d8e
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 0x140073dc3
lea ecx, [r10 + 1]
jmp 0x140073dda
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 0x140073e61
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 0x140073e14
test ecx, ecx
mov r12d, r10d
cmovns r12d, ecx
lea r15d, [r13 - 1]
mov dword [rsp + 0x68], r12d
cmp eax, r15d
jg 0x140073e2b
test eax, eax
mov r15d, r10d
cmovns r15d, eax
mov esi, r9d
mov dword [rsp + 0x6c], r15d
sub esi, r12d
cmp edx, esi
jg 0x140073e42
test edx, edx
mov esi, r10d
cmovns esi, edx
mov edi, r13d
mov dword [rsp + 0x70], esi
sub edi, r15d
cmp r8d, edi
jg 0x140073e5b
test r8d, r8d
mov edi, r10d
cmovns edi, r8d
mov dword [rsp + 0x74], edi
jmp 0x140073e6b
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 0x140074461
test esi, esi
je 0x140074461
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 0x140074020
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 0x140074082
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 0x140074469
imul ecx, edx
xor edx, edx
mov r8d, ecx
mov rcx, r9
call fcn.1400fddca
lea r9, [rsp + 0x60]
mov rcx, rbx
lea r8, [rbx + 0x36c]
lea rdx, [rbp + 0x170]
call fcn.1400aba50
mov r15d, eax
test eax, eax
jne 0x140074469
cmp dword [rbx + 0x298], 3
jne 0x14007411f
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.1400778d0
mov r15d, eax
test eax, eax
jne 0x140074469
mov rdi, qword [rbp + 0x188]
mov esi, dword [rbp + 0x178]
mov r13d, dword [rbp + 0x174]
jmp 0x14007415d
mov eax, dword [rbx + 0x184]
xor edx, edx
add eax, eax
div dword [rbx + 0x270]
cmp eax, 5
jae 0x14007415d
cmp esi, r13d
cmovl r12d, dword [rsp + 0x34]
cmp r12d, 0x40
jle 0x14007415d
lea rdx, [rbp + 0x170]
mov rcx, rbx
call fcn.140087540
mov r15d, eax
test eax, eax
jne 0x140074469
cmp dword [rbx + 0x298], 3
lea rdx, [rbx + 0x68]
jne 0x1400741e6
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 0x1400741b5
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.140086de0
jmp 0x1400741f1
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.140086de0
jmp 0x1400741f1
mov rcx, rbx
call fcn.140087540
xor r12d, r12d
mov r15d, eax
test eax, eax
jne 0x14007446c
cmp dword [rbx + 0x298], 3
jne 0x140074439
movsxd r12, dword [rbx + 0x6c]
mov dword [rsp + 0x28], r12d
cmp r12d, 0x32
jbe 0x140074436
mov r15d, dword [rbx + 0x70]
mov dword [rsp + 0x24], r15d
cmp r15d, 0x32
jbe 0x140074436
test r12d, r12d
je 0x140074436
test r15d, r15d
je 0x140074436
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 0x140074410
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.1400fddca
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 0x140074338
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.1400fddca
add r15, rbx
sub r12, 1
jne 0x140074310
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.140086de0
test eax, eax
jne 0x140074388
test r15d, r15d
jne 0x140074360
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 0x1400743a0
mov ecx, dword [rbp + 0x1f0]
mov edi, r12d
mov eax, ecx
shr eax, 0x14
and eax, 3
add eax, 1
je 0x140074439
nop
mov eax, edi
lea rsi, [rbp + 0x208]
shl rax, 4
add rsi, rax
mov rdx, qword [rsi]
test rdx, rdx
je 0x1400743fa
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 0x1400743d0
jmp 0x140074439
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.140069a10
mov r15d, eax
test eax, eax
jne 0x14007446c
mov r13d, 1
mov dword [rsp + 0x20], r13d
jmp 0x140074471
mov r15d, 0xfffffffc
jmp 0x14007446c
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 0x1400744c8
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 0x1400744b4
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 0x140074490
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.140082460
test r15d, r15d
jne 0x140074554
mov rsi, qword [rsp + 0x40]
mov r12d, dword [rsp + 0x38]
jmp 0x140074510
mov r13d, dword [rsp + 0x20]
add rsi, 0x208
mov qword [rsp + 0x40], rsi
test r12d, r12d
jne 0x140073c38
xor esi, esi
lea rdx, [rbx + 0x18]
mov rcx, r14
call fcn.140082460
lea rdx, [rbx + 0x190]
mov rcx, r14
call fcn.140082460
test r15d, r15d
jne 0x14007456f
test r13d, r13d
mov eax, 0x61
cmovne eax, esi
jmp 0x140074572
lea rdx, [rbx + 0x18]
mov rcx, r14
call fcn.140082460
lea rdx, [rbx + 0x190]
mov rcx, r14
call fcn.140082460
mov eax, r15d
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.1400fcc70
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.140082460
lea rdx, [rbx + 0x190]
mov rcx, r14
call fcn.140082460
mov eax, edi
jmp 0x140074572