Function at 0x180027160
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rcx, qword [rsp + 0x60]
call fcn.180025700
movzx eax, al
test eax, eax
je 0x180027181
xor eax, eax
jmp 0x1800274ff
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x24], 0xa
mov qword [rsp + 0x40], 1
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rax + rcx*2]
cmp eax, 0x20
je 0x1800271fc
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rax + rcx*2]
cmp eax, 9
je 0x1800271fc
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rax + rcx*2]
cmp eax, 0xa
je 0x1800271fc
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rax + rcx*2]
cmp eax, 0xd
jne 0x18002720b
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
jmp 0x1800271a4
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rax + rcx*2]
cmp eax, 0x2d
jne 0x1800272b9
mov qword [rsp + 0x40], 0xffffffffffffffff
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
mov eax, 4
imul rax, rax, 1
lea rcx, [0x180096980]
mov edx, 4
imul rdx, rdx, 2
lea r8, [0x180096980]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx], eax
mov eax, 4
imul rax, rax, 2
lea rcx, [0x180096980]
mov edx, 4
imul rdx, rdx, 1
lea r8, [0x180096980]
mov edx, dword [r8 + rdx]
cmp dword [rcx + rax], edx
jae 0x1800272b9
mov eax, 4
imul rax, rax, 3
lea rcx, [0x180096980]
mov edx, dword [rcx + rax]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, 4
imul rcx, rcx, 2
lea rdx, [0x180096980]
mov dword [rdx + rcx], eax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rax + rcx*2]
cmp eax, 0x30
jne 0x180027417
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rax + rcx*2 + 2]
cmp eax, 0x78
jne 0x180027417
mov eax, 4
imul rax, rax, 1
lea rcx, [0x180096980]
mov eax, dword [rcx + rax]
xor eax, 0xfffffe88
mov ecx, 4
imul rcx, rcx, 1
lea rdx, [0x180096980]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 1
lea rcx, [0x180096980]
mov edx, 4
imul rdx, rdx, 2
lea r8, [0x180096980]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx], eax
mov eax, 4
imul rax, rax, 2
lea rcx, [0x180096980]
mov edx, 4
imul rdx, rdx, 1
lea r8, [0x180096980]
mov edx, dword [r8 + rdx]
cmp dword [rcx + rax], edx
jae 0x180027397
mov eax, 4
imul rax, rax, 3
lea rcx, [0x180096980]
mov edx, dword [rcx + rax]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, 4
imul rcx, rcx, 2
lea rdx, [0x180096980]
mov dword [rdx + rcx], eax
mov dword [rsp + 0x24], reloc.OLEAUT32.dll_SafeArrayGetDim
mov rax, qword [rsp + 0x28]
add rax, 2
mov qword [rsp + 0x28], rax
mov eax, 4
imul rax, rax, 3
lea rcx, [0x180096980]
mov eax, dword [rcx + rax]
add eax, 0x196662c
mov ecx, 4
imul rcx, rcx, 0xb
lea rdx, [0x180096980]
mov dword [rdx + rcx], eax
mov eax, SafeArrayDestroy
mov word [rsp + 0x20], ax
movsx rax, word [rsp + 0x20]
lea rcx, [0x180096980]
cmp dword [rcx + rax*4], 1
jne 0x180027417
movsx rax, word [rsp + 0x20]
lea rcx, [0x180096980]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x20]
lea rdx, [0x180096980]
mov dword [rdx + rcx*4], eax
jmp 0x180027426
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rax + rcx*2]
cmp eax, 0x30
jl 0x1800274f4
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rax + rcx*2]
cmp eax, 0x39
jg 0x1800274f4
lea rax, [0x18007bd70]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
movsx eax, al
cmp eax, 0x61
jne 0x1800274c3
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1800274c3
mov eax, 4
imul rax, rax, 0xb
lea rcx, [0x180096980]
mov edx, dword [rcx + rax]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, 4
imul rcx, rcx, 0xc
lea rdx, [0x180096980]
mov dword [rdx + rcx], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x38]
imul rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx]
mov rdx, qword [rsp + 0x28]
movzx ecx, word [rcx + rdx*2]
lea rax, [rax + rcx - 0x30]
mov qword [rsp + 0x38], rax
jmp 0x180027419
mov rax, qword [rsp + 0x40]
imul rax, qword [rsp + 0x38]
add rsp, 0x58
ret