Function at 0x4056e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
mov eax, 0x1ab8
call fcn.00450d60
sub rsp, rax
mov rax, qword [0x00471210]
xor rax, rsp
mov qword [rsp + 0x1aa0], rax
cmp dword [rsp + 0x1ad8], 0
jbe 0x4059c1
mov dword [rsp + 0x1a80], 0x1a4c
mov dword [rsp + 0x20], 0
jmp 0x40574d
mov eax, dword [rsp + 0x20]
movzx ecx, byte [rsp + 0x20]
mov byte [rsp + rax + 0x30], cl
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x1a80]
cmp dword [rsp + 0x20], eax
jae 0x40575c
jmp 0x405735
mov dword [rsp + 0x1a88], 0
mov eax, dword [rsp + 0x1a88]
mov dword [rsp + 0x20], eax
jmp 0x40577f
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x1a80]
cmp dword [rsp + 0x20], eax
jae 0x405827
mov eax, dword [rsp + 0x20]
movzx eax, byte [rsp + rax + 0x30]
mov ecx, dword [rsp + 0x1a88]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x1a90], eax
xor edx, edx
mov eax, dword [rsp + 0x20]
div dword [rsp + 0x1ac8]
mov eax, edx
mov eax, eax
mov rcx, qword [rsp + 0x1ac0]
movzx eax, word [rcx + rax*2]
mov ecx, dword [rsp + 0x1a90]
add ecx, eax
mov eax, ecx
xor edx, edx
div dword [rsp + 0x1a80]
mov eax, edx
mov dword [rsp + 0x1a88], eax
mov eax, dword [rsp + 0x20]
movzx eax, byte [rsp + rax + 0x30]
mov byte [rsp + 0x1a8c], al
mov eax, dword [rsp + 0x1a88]
mov ecx, dword [rsp + 0x20]
movzx eax, byte [rsp + rax + 0x30]
mov byte [rsp + rcx + 0x30], al
mov eax, dword [rsp + 0x1a88]
movzx ecx, byte [rsp + 0x1a8c]
mov byte [rsp + rax + 0x30], cl
xor eax, eax
test eax, eax
jne 0x4057e5
jmp 0x405774
mov dword [rsp + 0x1a84], 0
mov eax, dword [rsp + 0x1a84]
mov dword [rsp + 0x1a88], eax
mov eax, dword [rsp + 0x1a88]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x1ad8]
mov ecx, dword [rsp + 0x1ad8]
sub ecx, 1
mov dword [rsp + 0x1ad8], ecx
test eax, eax
je 0x4059b7
mov eax, dword [rsp + 0x20]
add eax, 1
xor edx, edx
div dword [rsp + 0x1a80]
mov eax, edx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
movzx eax, byte [rsp + rax + 0x30]
mov ecx, dword [rsp + 0x1a88]
add ecx, eax
mov eax, ecx
xor edx, edx
div dword [rsp + 0x1a80]
mov eax, edx
mov dword [rsp + 0x1a88], eax
mov eax, dword [rsp + 0x20]
movzx eax, byte [rsp + rax + 0x30]
mov byte [rsp + 0x1a8d], al
mov eax, dword [rsp + 0x1a88]
mov ecx, dword [rsp + 0x20]
movzx eax, byte [rsp + rax + 0x30]
mov byte [rsp + rcx + 0x30], al
mov eax, dword [rsp + 0x1a88]
movzx ecx, byte [rsp + 0x1a8d]
mov byte [rsp + rax + 0x30], cl
xor eax, eax
test eax, eax
jne 0x4058a7
lea rdx, str.e6ZggaBC6pIyyNdA6y4DkIuzIxEXzrcTR
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetPropA]
lea rdx, str.e6ZggaBC6pIyyNdA6y4DkIuzIxEXzrcTR
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetPropA]
lea rdx, str.e6ZggaBC6pIyyNdA6y4DkIuzIxEXzrcTR
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetPropA]
lea rdx, str.e6ZggaBC6pIyyNdA6y4DkIuzIxEXzrcTR
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetPropA]
lea rdx, str.e6ZggaBC6pIyyNdA6y4DkIuzIxEXzrcTR
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetPropA]
lea rdx, str.e6ZggaBC6pIyyNdA6y4DkIuzIxEXzrcTR
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetPropA]
mov eax, dword [rsp + 0x1a84]
mov qword [rsp + 0x1a98], rax
mov ecx, dword [rsp + 0x20]
movzx ecx, byte [rsp + rcx + 0x30]
mov edx, dword [rsp + 0x1a88]
movzx edx, byte [rsp + rdx + 0x30]
add ecx, edx
mov eax, ecx
cdq
idiv dword [rsp + 0x1a80]
mov eax, edx
cdqe
movzx eax, byte [rsp + rax + 0x30]
mov rcx, qword [rsp + 0x1ad0]
mov rdx, qword [rsp + 0x1a98]
movzx ecx, byte [rcx + rdx]
xor ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x1a84]
mov rdx, qword [rsp + 0x1ad0]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x1a84]
add eax, 1
mov dword [rsp + 0x1a84], eax
jmp 0x40584b
mov rax, qword [rsp + 0x1ad0]
jmp 0x4059c3
xor eax, eax
mov rcx, qword [rsp + 0x1aa0]
xor rcx, rsp
call fcn.00434a90
add rsp, 0x1ab8
ret