Function at 0x14001b8e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
jmp 0x14001b8e0
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x940
mov rax, qword [0x14015dda8]
xor rax, rsp
mov qword [rsp + 0x930], rax
mov rdx, qword [rcx + 0x350]
mov rbx, rcx
mov qword [rsp + 0x28], rcx
mov edi, 1
movsxd rcx, dword [rcx + 0x374]
mov r14d, 4
mov esi, 8
movzx eax, byte [rdx]
mov byte [rcx + rdx + 1], al
mov eax, edi
movsxd r8, dword [rbx + 0x374]
cdq
mov r9, qword [rbx + 0x350]
lea ecx, [r8 + 1]
idiv ecx
movsxd rax, edx
movzx eax, byte [rax + r9]
mov byte [r8 + r9 + 2], al
mov eax, 2
movsxd r8, dword [rbx + 0x374]
cdq
mov r9, qword [rbx + 0x350]
lea ecx, [r8 + 1]
idiv ecx
movsxd rax, edx
movzx eax, byte [rax + r9]
mov byte [r8 + r9 + 3], al
mov eax, 3
movsxd r8, dword [rbx + 0x374]
cdq
mov r9, qword [rbx + 0x350]
lea ecx, [r8 + 1]
idiv ecx
movsxd rax, edx
movzx eax, byte [rax + r9]
mov byte [r8 + r9 + 4], al
mov eax, r14d
movsxd r8, dword [rbx + 0x374]
cdq
mov r9, qword [rbx + 0x350]
lea ecx, [r8 + 1]
idiv ecx
movsxd rax, edx
movzx eax, byte [rax + r9]
mov byte [r8 + r9 + 5], al
mov eax, 5
movsxd r8, dword [rbx + 0x374]
cdq
mov r9, qword [rbx + 0x350]
lea ecx, [r8 + 1]
idiv ecx
movsxd rax, edx
movzx eax, byte [rax + r9]
mov byte [r8 + r9 + 6], al
mov eax, 6
movsxd r8, dword [rbx + 0x374]
cdq
mov r9, qword [rbx + 0x350]
lea ecx, [r8 + 1]
idiv ecx
movsxd rax, edx
movzx eax, byte [rax + r9]
mov byte [r8 + r9 + 7], al
mov eax, 7
movsxd r8, dword [rbx + 0x374]
cdq
mov r9, qword [rbx + 0x350]
lea ecx, [r8 + 1]
idiv ecx
movsxd rax, edx
movzx eax, byte [rax + r9]
mov byte [r8 + r9 + 8], al
mov eax, esi
movsxd r8, dword [rbx + 0x374]
cdq
mov r9, qword [rbx + 0x350]
lea ecx, [r8 + 1]
idiv ecx
movsxd rax, edx
movzx eax, byte [rax + r9]
mov byte [r8 + r9 + 9], al
movsxd r8, dword [rbx + 0x374]
mov eax, 9
cdq
mov r9, qword [rbx + 0x350]
lea ecx, [r8 + 1]
idiv ecx
movsxd rax, edx
movzx eax, byte [rax + r9]
mov byte [r8 + r9 + 0xa], al
mov eax, 0xa
movsxd r8, dword [rbx + 0x374]
cdq
mov r9, qword [rbx + 0x350]
lea ecx, [r8 + 1]
idiv ecx
movsxd rax, edx
movzx eax, byte [rax + r9]
mov byte [r8 + r9 + 0xb], al
mov eax, 0xb
movsxd r8, dword [rbx + 0x374]
cdq
mov r9, qword [rbx + 0x350]
lea ecx, [r8 + 1]
idiv ecx
movsxd rax, edx
movzx eax, byte [rax + r9]
mov byte [r8 + r9 + 0xc], al
mov eax, 0xc
movsxd r8, dword [rbx + 0x374]
cdq
mov r9, qword [rbx + 0x350]
lea ecx, [r8 + 1]
idiv ecx
movsxd rax, edx
movzx eax, byte [rax + r9]
mov byte [r8 + r9 + 0xd], al
mov eax, 0xd
movsxd r8, dword [rbx + 0x374]
cdq
mov r9, qword [rbx + 0x350]
lea ecx, [r8 + 1]
idiv ecx
movsxd rax, edx
movzx eax, byte [rax + r9]
mov byte [r8 + r9 + 0xe], al
mov eax, 0xe
movsxd r8, dword [rbx + 0x374]
cdq
mov r9, qword [rbx + 0x350]
lea ecx, [r8 + 1]
idiv ecx
movsxd rax, edx
movzx eax, byte [rax + r9]
mov byte [r8 + r9 + 0xf], al
mov eax, 0xf
movsxd r8, dword [rbx + 0x374]
cdq
mov r9, qword [rbx + 0x350]
lea ecx, [r8 + 1]
idiv ecx
movsxd rax, edx
movzx eax, byte [rax + r9]
mov byte [r8 + r9 + 0x10], al
mov eax, 0x10
movsxd r8, dword [rbx + 0x374]
cdq
mov r9, qword [rbx + 0x350]
lea ecx, [r8 + 1]
idiv ecx
movsxd rax, edx
movzx eax, byte [rax + r9]
mov byte [r8 + r9 + 0x11], al
mov eax, 0x11
movsxd r8, dword [rbx + 0x374]
cdq
mov r9, qword [rbx + 0x350]
lea ecx, [r8 + 1]
idiv ecx
movsxd rax, edx
movzx eax, byte [rax + r9]
mov byte [r8 + r9 + 0x12], al
movsxd r8, dword [rbx + 0x374]
mov eax, 0x12
mov r9, qword [rbx + 0x350]
cdq
xor ebp, ebp
lea ecx, [r8 + 1]
idiv ecx
movsxd rax, edx
movzx eax, byte [rax + r9]
mov byte [r8 + r9 + 0x13], al
mov eax, 0x13
movsxd r8, dword [rbx + 0x374]
cdq
mov r9, qword [rbx + 0x350]
lea ecx, [r8 + 1]
idiv ecx
movsxd rax, edx
mov edx, ebp
movzx eax, byte [rax + r9]
mov byte [r8 + r9 + 0x14], al
mov r8d, dword [rbx + 0x374]
lea eax, [r8 + 0x14]
test eax, eax
js 0x14001bc41
mov ecx, ebp
nop
mov rax, qword [rbx + 0x368]
lea rcx, [rcx + 2]
inc edx
mov word [rcx + rax - 2], bp
mov r8d, dword [rbx + 0x374]
lea eax, [r8 + 0x14]
cmp edx, eax
jle 0x14001bc20
mov rdx, qword [rbx + 0x350]
movsxd rax, r8d
movzx ecx, byte [rax + rdx]
mov byte [rdx - 1], cl
mov r8d, dword [rbx + 0x374]
cmp r8d, 0xfa0
jge 0x14001bcad
mov ecx, ebp
test r8d, r8d
js 0x14001bc8d
mov rdx, rbp
nop dword [rax]
mov rax, qword [rbx + 0x360]
lea rdx, [rdx + 4]
mov dword [rdx + rax - 4], ecx
inc ecx
mov r8d, dword [rbx + 0x374]
cmp ecx, r8d
jle 0x14001bc70
xor r9d, r9d
mov byte [rbx + 0x791], bpl
xor edx, edx
mov qword [rbx + 0x788], rbp
mov rcx, rbx
call fcn.1400071ad
jmp 0x14001c293
mov qword [rsp + 0x978], r12
lea rcx, [rsp + 0x830]
mov qword [rsp + 0x980], r13
xor edx, edx
mov r8d, 0x100
mov qword [rsp + 0x988], r15
call fcn.1400052ae
mov rcx, qword [rbx + 0x338]
xor edx, edx
mov r8d, 0x40004
call fcn.1400052ae
mov r9d, ebp
mov rax, qword [rbx + 0x350]
movzx ecx, byte [rax - 1]
cmp dword [rbx + 0x374], ebp
jl 0x14001bd50
mov r8, rbp
nop word [rax + rax]
mov rax, qword [rbx + 0x350]
lea r8, [r8 + 1]
movzx ecx, cl
inc r9d
shl rcx, 8
movzx edx, byte [r8 + rax - 1]
mov rax, qword [rbx + 0x338]
add rcx, rdx
inc dword [rax + rcx*4]
movzx ecx, dl
cmp r9d, dword [rbx + 0x374]
jle 0x14001bd10
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x338]
mov eax, dword [rcx + r14 - 4]
add dword [rcx + r14], eax
add r14, 4
cmp r14, 0x40000
jle 0x14001bd50
mov rcx, qword [rbx + 0x350]
mov edx, ebp
mov eax, dword [rbx + 0x374]
movzx r8d, byte [rcx]
test eax, eax
jle 0x14001bde1
mov r9, rbp
nop word [rax + rax]
mov rax, qword [rbx + 0x350]
lea r9, [r9 + 1]
movzx ecx, r8b
shl rcx, 8
movzx r8d, byte [rax + r9]
mov rax, qword [rbx + 0x338]
add rcx, r8
dec dword [rax + rcx*4]
mov rax, qword [rbx + 0x338]
movsxd rcx, dword [rax + rcx*4]
mov rax, qword [rbx + 0x360]
mov dword [rax + rcx*4], edx
inc edx
mov eax, dword [rbx + 0x374]
cmp edx, eax
jl 0x14001bd90
mov rcx, qword [rbx + 0x350]
movzx r8d, byte [rcx]
movdqa xmm2, xmmword [0x14011d5a0]
cdqe
movzx edx, byte [rax + rcx]
shl rdx, 8
movzx eax, r8b
add rdx, rax
mov rax, qword [rbx + 0x338]
dec dword [rax + rdx*4]
mov rax, qword [rbx + 0x338]
mov rcx, qword [rbx + 0x360]
movsxd rdx, dword [rax + rdx*4]
mov eax, dword [rbx + 0x374]
mov dword [rcx + rdx*4], eax
lea rcx, [rsp + 0x40]
nop dword [rax]
nop dword [rax + rax]
lea eax, [rsi - 8]
movd xmm0, eax
lea rcx, [rcx + 0x40]
pshufd xmm0, xmm0, 0
lea eax, [rsi - 4]
paddd xmm0, xmm2
movd xmm1, eax
movdqu xmmword [rcx - 0x50], xmm0
lea eax, [rsi + 4]
pshufd xmm1, xmm1, 0
paddd xmm1, xmm2
movd xmm0, esi
movdqu xmmword [rcx - 0x40], xmm1
add esi, 0x10
movd xmm1, eax
pshufd xmm0, xmm0, 0
pshufd xmm1, xmm1, 0
paddd xmm0, xmm2
movdqu xmmword [rcx - 0x30], xmm0
lea eax, [rsi - 8]
paddd xmm1, xmm2
movdqu xmmword [rcx - 0x20], xmm1
cmp eax, 0xff
jle 0x14001be30
lea edi, [rdi + rdi*2]
inc edi
cmp edi, 0x100
jle 0x14001be92
nop
mov eax, 0x55555556
imul edi
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp edi, 0xff
jg 0x14001bf97
mov r9, qword [rbx + 0x338]
mov ebx, edi
movsxd rbp, edi
mov r14, rbp
nop dword [rax]
movsxd r12, dword [rsp + rbp*4 + 0x30]
mov rax, rbp
mov ecx, r12d
sub rax, r14
shl ecx, 8
mov r11d, ebx
movsxd rcx, ecx
mov r10, rbp
mov r8d, dword [rsp + rax*4 + 0x30]
mov esi, dword [r9 + rcx*4]
mov ecx, r8d
shl ecx, 8
movsxd rdx, ecx
shl r8d, 8
movsxd rcx, r8d
mov r8d, dword [r9 + rdx*4 + 0x400]
sub r8d, dword [r9 + rcx*4]
mov ecx, r12d
shl ecx, 8
movsxd rcx, ecx
mov edx, dword [r9 + rcx*4 + 0x400]
sub edx, esi
cmp r8d, edx
jle 0x14001bf7c
lea r15d, [rdi - 1]
nop dword [rax + rax]
mov ecx, dword [rsp + rax*4 + 0x30]
sub r11d, edi
mov dword [rsp + r10*4 + 0x30], ecx
mov r10, rax
cmp r11d, r15d
jle 0x14001bf7c
sub rax, r14
mov r8d, dword [rsp + rax*4 + 0x30]
mov ecx, r8d
shl ecx, 8
movsxd rdx, ecx
shl r8d, 8
movsxd rcx, r8d
mov r8d, dword [r9 + rdx*4 + 0x400]
sub r8d, dword [r9 + rcx*4]
lea rcx, [r12 + 1]
shl rcx, 0xa
mov edx, dword [rcx + r9]
sub edx, esi
cmp r8d, edx
jg 0x14001bf30
inc ebx
mov dword [rsp + r10*4 + 0x30], r12d
inc rbp
cmp ebx, 0xff
jle 0x14001bed0
mov rbx, qword [rsp + 0x28]
cmp edi, 1
jne 0x14001bea0
xor r13d, r13d
mov r15d, r13d
nop word [rax + rax]
movsxd rbp, dword [rsp + r15*4 + 0x30]
mov rsi, r13
mov r14, rbp
mov r12, rbp
shl r14, 0xa
mov rdi, r14
nop word [rax + rax]
mov rax, qword [rbx + 0x338]
mov edx, dword [rdi + rax]
bt edx, 0x15
jb 0x14001c02d
mov r8d, dword [rdi + rax + 4]
btr edx, 0x15
btr r8d, 0x15
dec r8d
cmp r8d, edx
jle 0x14001c01f
mov r9d, 2
mov rcx, rbx
call fcn.140001578
mov eax, dword [rbx + 0x78c]
cmp dword [rbx + 0x788], eax
jle 0x14001c01f
cmp byte [rbx + 0x791], r13b
jne 0x14001c27b
mov rax, qword [rbx + 0x338]
or dword [rdi + rax], 0x200000
inc rsi
add rdi, 4
cmp rsi, 0xff
jle 0x14001bfd0
mov byte [rsp + rbp + 0x830], 1
cmp r15, 0xff
jge 0x14001c11d
mov rcx, qword [rbx + 0x338]
mov eax, ebp
shl eax, 8
mov r9d, r13d
cdqe
mov edx, dword [rcx + rax*4]
mov eax, ebp
shl eax, 8
btr edx, 0x15
cdqe
mov r11d, dword [rcx + rax*4 + 0x400]
btr r11d, 0x15
sub r11d, edx
cmp r11d, 0xfffe
jle 0x14001c0a4
nop word [rax + rax]
inc r9d
mov eax, r11d
mov ecx, r9d
sar eax, cl
cmp eax, 0xfffe
jg 0x14001c090
jmp 0x14001c0a9
test r11d, r11d
jle 0x14001c109
movsxd rax, edx
mov r10d, r13d
lea rdi, [rax*4]
nop word [rax + rax]
mov rax, qword [rbx + 0x360]
mov r8d, r10d
mov ecx, r9d
sar r8d, cl
movsxd rdx, dword [rdi + rax]
mov rax, qword [rbx + 0x368]
mov word [rax + rdx*2], r8w
cmp edx, 0x14
jge 0x14001c0fd
mov eax, dword [rbx + 0x374]
add eax, edx
movsxd rdx, eax
mov rax, qword [rbx + 0x368]
mov word [rax + rdx*2 + 2], r8w
inc r10d
add rdi, 4
cmp r10d, r11d
jl 0x14001c0c0
lea eax, [r11 - 1]
mov ecx, r9d
sar eax, cl
cmp eax, 0xffff
jg 0x14001c277
mov r8, qword [rbx + 0x338]
mov rcx, r13
lea rdx, [r8 + rbp*4]
nop dword [rax + rax]
mov eax, dword [rdx]
lea rdx, [rdx + 0x800]
btr eax, 0x15
mov dword [rsp + rcx*4 + 0x430], eax
mov eax, dword [rdx - 0x400]
btr eax, 0x15
mov dword [rsp + rcx*4 + 0x434], eax
add rcx, 2
cmp rcx, 0xff
jle 0x14001c130
mov eax, ebp
shl ebp, 8
shl eax, 8
cdqe
mov edx, dword [r8 + rax*4]
movsxd rax, ebp
btr edx, 0x15
mov ecx, dword [r8 + rax*4 + 0x400]
btr ecx, 0x15
cmp edx, ecx
jge 0x14001c1f7
movsxd rax, edx
lea r9, [rax*4]
mov r11, qword [rbx + 0x360]
mov rax, qword [rbx + 0x350]
movsxd r8, dword [r11 + r9]
movzx edi, byte [r8 + rax - 1]
lea r10d, [r8 - 1]
cmp byte [rsp + rdi + 0x830], r13b
jne 0x14001c1da
test r8d, r8d
jne 0x14001c1c4
mov r10d, dword [rbx + 0x374]
movsxd rcx, dword [rsp + rdi*4 + 0x430]
lea eax, [rcx + 1]
mov dword [r11 + rcx*4], r10d
mov dword [rsp + rdi*4 + 0x430], eax
mov rax, qword [rbx + 0x338]
inc edx
add r9, 4
mov ecx, dword [rax + r14 + 0x400]
btr ecx, 0x15
cmp edx, ecx
jl 0x14001c192
lea rcx, [r12*4 + 0x800]
mov edx, 0x40
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rbx + 0x338]
lea rcx, [rcx + 0x1000]
or dword [rcx + rax - 0x1800], 0x200000
mov rax, qword [rbx + 0x338]
or dword [rcx + rax - 0x1400], 0x200000
mov rax, qword [rbx + 0x338]
or dword [rax + rcx - 0x1000], 0x200000
mov rax, qword [rbx + 0x338]
or dword [rcx + rax - 0xc00], 0x200000
sub rdx, 1
jne 0x14001c210
inc r15
cmp r15, 0xff
jle 0x14001bfb0
jmp 0x14001c27b
mov byte [rbx + 0x10], 1
mov r13, qword [rsp + 0x980]
mov r12, qword [rsp + 0x978]
mov r15, qword [rsp + 0x988]
mov rcx, qword [rsp + 0x930]
xor rcx, rsp
call fcn.140003b70
add rsp, 0x940
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret