Function at 0x140005980
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x14023c0b0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
lea rdi, [rsp + 0x30]
mov ecx, 0x28
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xe0]
mov rax, qword [0x1405dc580]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x100]
mov rcx, qword [rsp + 0xe0]
mov ecx, dword [rcx + 0x78]
mov eax, dword [rax + 4]
sub eax, ecx
mov rcx, qword [rsp + 0xe0]
mov rdx, qword [rsp + 0xe0]
mov ecx, dword [rcx + 0x88]
imul ecx, dword [rdx + 0x7c]
add eax, ecx
cdq
mov rcx, qword [rsp + 0xe0]
idiv dword [rcx + 0x7c]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x100]
mov eax, dword [rax + 0xc]
dec eax
mov rcx, qword [rsp + 0xe0]
sub eax, dword [rcx + 0x78]
mov rcx, qword [rsp + 0xe0]
mov rdx, qword [rsp + 0xe0]
mov ecx, dword [rcx + 0x88]
imul ecx, dword [rdx + 0x7c]
add eax, ecx
cdq
mov rcx, qword [rsp + 0xe0]
idiv dword [rcx + 0x7c]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x30], 0
jge 0x14023c18d
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x130]
mov eax, dword [rax]
cmp dword [rsp + 0x34], eax
jl 0x14023c1bb
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x130]
mov eax, dword [rax]
dec eax
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x48], 0
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax + 0x88]
mov ecx, dword [rsp + 0x30]
sub ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0xe0]
imul eax, dword [rcx + 0x7c]
mov rcx, qword [rsp + 0xe0]
add eax, dword [rcx + 0x78]
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax + 0x98]
mov rcx, qword [rsp + 0xe0]
add eax, dword [rcx + 0xf8]
mov rcx, qword [rsp + 0xe0]
sub eax, dword [rcx + 0x8c]
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax + 0x7c]
mov ecx, dword [rsp + 0x4c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x64], eax
jmp 0x14023c25d
mov eax, dword [rsp + 0x64]
inc eax
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x64], eax
jg 0x14023c499
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x130]
movsxd rcx, dword [rsp + 0x64]
mov rax, qword [rax + 8]
mov rax, qword [rax + rcx*8]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x4c], eax
jge 0x14023c2dc
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 4]
cmp dword [rsp + 0x54], eax
jle 0x14023c2dc
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 8]
cmp dword [rsp + 0x48], eax
jge 0x14023c2dc
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax]
cmp dword [rsp + 0x50], eax
jle 0x14023c2dc
mov dword [rsp + 0xb0], 1
jmp 0x14023c2e7
mov dword [rsp + 0xb0], 0
movzx eax, byte [rsp + 0xb0]
mov byte [rsp + 0xa4], al
mov rax, qword [rsp + 0xf8]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x4c], eax
jge 0x14023c346
mov rax, qword [rsp + 0xf8]
mov eax, dword [rax + 4]
cmp dword [rsp + 0x54], eax
jle 0x14023c346
mov rax, qword [rsp + 0xf8]
mov eax, dword [rax + 8]
cmp dword [rsp + 0x48], eax
jge 0x14023c346
mov rax, qword [rsp + 0xf8]
mov eax, dword [rax]
cmp dword [rsp + 0x50], eax
jle 0x14023c346
mov dword [rsp + 0xb4], 1
jmp 0x14023c351
mov dword [rsp + 0xb4], 0
movzx eax, byte [rsp + 0xb4]
mov byte [rsp + 0xa5], al
mov eax, dword [rsp + 0xe8]
and eax, 8
test eax, eax
je 0x14023c40a
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
shr eax, 5
and eax, 1
test eax, eax
jne 0x14023c408
movzx eax, byte [rsp + 0xa4]
movzx ecx, byte [rsp + 0xa5]
cmp eax, ecx
je 0x14023c408
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
shr eax, 1
and eax, 1
test eax, eax
jne 0x14023c3b8
mov dword [rsp + 0xb8], 1
jmp 0x14023c3c3
mov dword [rsp + 0xb8], 0
mov eax, dword [rsp + 0xb8]
and eax, 1
shl eax, 1
mov rcx, qword [rsp + 0x68]
mov ecx, dword [rcx]
and ecx, 0xfffffffd
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x68]
mov dword [rcx], eax
mov eax, dword [rsp + 0x64]
cmp dword [rsp + 0x70], eax
jle 0x14023c3f6
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x64]
cmp dword [rsp + 0x74], eax
jge 0x14023c408
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x74], eax
jmp 0x14023c475
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
shr eax, 5
and eax, 1
test eax, eax
jne 0x14023c475
movzx eax, byte [rsp + 0xa4]
movzx ecx, byte [rsp + 0xa5]
cmp eax, ecx
je 0x14023c475
movzx eax, byte [rsp + 0xa5]
and eax, 1
shl eax, 1
mov rcx, qword [rsp + 0x68]
mov ecx, dword [rcx]
and ecx, 0xfffffffd
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x68]
mov dword [rcx], eax
mov eax, dword [rsp + 0x64]
cmp dword [rsp + 0x70], eax
jle 0x14023c463
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x64]
cmp dword [rsp + 0x74], eax
jge 0x14023c475
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax + 0x7c]
mov ecx, dword [rsp + 0x54]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x54], eax
jmp 0x14023c253
mov eax, dword [rsp + 0x74]
cmp dword [rsp + 0x70], eax
jg 0x14023c4db
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0xc8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0xb
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rax]
mov rax, qword [rsp + 0xe0]
call qword [rax + 0xc0]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9b, 1
mov r8d, dword [rsp + 0x74]
mov edx, dword [rsp + 0x70]
mov rcx, qword [rsp + 0xe0]
call fcn.140012e70
movzx eax, al
test eax, eax
je 0x14023c524
xor r8d, r8d
lea rdx, [rsp + 0x88]
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rax]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rcx, rsp
lea rdx, [0x1405125d0]
call fcn.140015750
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14000d430
add rsp, 0xd0
pop rdi
ret