Function at 0x14022c900
Capabilities:
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov r8, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xe8]
call fcn.14022c860
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xb8]
cmp qword [rsp + 0x48], rax
jbe 0x14022c956
mov eax, 0xfffffffb
jmp 0x14022cc5d
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0x88]
call fcn.14022c4b0
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x14022c97f
mov eax, dword [rsp + 0x24]
jmp 0x14022cc5d
cmp dword [rsp + 0xd8], 0
jne 0x14022c9dd
mov eax, 1
mov word [rsp + 0x38], ax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x80], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x80]
movsx eax, byte [rcx + rax]
cmp eax, 1
jne 0x14022c9c4
mov dword [rsp + 0x3c], 0xffffffff
jmp 0x14022c9cc
mov dword [rsp + 0x3c], 1
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0xd8], eax
xor eax, eax
test eax, eax
jne 0x14022c989
xor edx, edx
mov rax, qword [rsp + 0xe0]
mov ecx, 8
div rcx
mov rax, rdx
mov qword [rsp + 0x78], rax
mov byte [rsp + 0x20], 0xff
mov qword [rsp + 0x28], 0
jmp 0x14022ca14
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x28], rax
jae 0x14022ca4e
mov eax, 7
sub rax, qword [rsp + 0x28]
mov ecx, 1
mov dword [rsp + 0x50], ecx
movzx ecx, al
mov eax, dword [rsp + 0x50]
shl eax, cl
movzx eax, al
movzx ecx, byte [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov byte [rsp + 0x20], al
jmp 0x14022ca07
xor edx, edx
mov rax, qword [rsp + 0xe0]
mov ecx, 8
div rcx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x28], 0
jmp 0x14022ca7d
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x48]
cmp qword [rsp + 0x28], rax
jae 0x14022cc29
mov qword [rsp + 0x30], 0
jmp 0x14022caa5
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xd0]
cmp qword [rsp + 0x30], rax
jae 0x14022cc24
cmp dword [rsp + 0xc8], 0xffffffff
jne 0x14022cace
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x60], rax
jmp 0x14022cae0
mov rax, qword [rsp + 0x48]
dec rax
sub rax, qword [rsp + 0x28]
mov qword [rsp + 0x60], rax
cmp dword [rsp + 0xd8], 0xffffffff
jne 0x14022caf6
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x68], rax
jmp 0x14022cb0b
mov rax, qword [rsp + 0xd0]
dec rax
sub rax, qword [rsp + 0x30]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x60]
imul rax, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xb0]
add rcx, rax
mov rax, rcx
add rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xd0]
sub rcx, rax
mov rax, rcx
cmp qword [rsp + 0x30], rax
jb 0x14022cb58
mov rax, qword [rsp + 0x70]
mov byte [rax], 0
jmp 0x14022ca98
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xd0]
sub rcx, rax
mov rax, rcx
dec rax
cmp qword [rsp + 0x30], rax
jne 0x14022cb96
mov eax, 4
imul rax, rax, 0
movzx ecx, byte [rsp + 0x20]
mov rdx, qword [rsp + 0x98]
mov eax, dword [rdx + rax]
and eax, ecx
mov dword [rsp + 0x40], eax
jmp 0x14022cbb3
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x98]
mov eax, dword [rcx + rax]
and eax, 0xff
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x70]
movzx ecx, byte [rsp + 0x40]
mov byte [rax], cl
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xd0]
sub rcx, rax
mov rax, rcx
dec rax
cmp qword [rsp + 0x30], rax
jne 0x14022cbec
mov eax, 8
sub rax, qword [rsp + 0x78]
mov dword [rsp + 0x44], eax
jmp 0x14022cbf4
mov dword [rsp + 0x44], 8
xor r9d, r9d
lea r8, [rsp + 0x88]
mov edx, dword [rsp + 0x44]
lea rcx, [rsp + 0x88]
call fcn.14022ce40
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x14022cc1f
jmp 0x14022cc4c
jmp 0x14022ca98
jmp 0x14022ca70
cmp qword [rsp + 0xc0], 0
je 0x14022cc44
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x48]
mov qword [rax], rcx
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x88]
call fcn.14022b3d0
mov eax, dword [rsp + 0x24]
add rsp, 0xa8
ret