Function at 0x405cb0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x10d40
call fcn.00413170
push ebx
push ebp
push esi
push edi
push 0x10d1a
call fcn.0041315e
mov esi, eax
lea ecx, [esp + 0x38]
sub eax, ecx
mov edx, esi
sub edx, ecx
add esp, 4
xor edi, edi
xor ebx, ebx
inc edx
mov dword [esp + 0x10], edx
lea edx, [esp + 0x34]
mov ecx, 1
sub ecx, edx
mov dword [esp + 0x2c], ecx
mov ecx, esi
sub ecx, edx
add ecx, 2
mov dword [esp + 0x30], ecx
mov ebp, dword [esp + 0x10d60]
mov ecx, 2
sub ecx, edx
mov dword [esp + 0x28], ecx
mov ecx, esi
sub ecx, edx
add ecx, 3
mov dword [esp + 0x18], ecx
mov ecx, 3
sub ecx, edx
mov dword [esp + 0x1c], ecx
mov ecx, esi
sub ecx, edx
add ecx, 4
mov dword [esp + 0x24], ecx
mov ecx, 4
sub ecx, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ecx
jmp 0x405d42
mov eax, dword [esp + 0x14]
lea ecx, [esp + ebx + 0x34]
mov byte [eax + ecx], bl
mov eax, ebx
cdq
idiv ebp
mov eax, dword [esp + 0x10d5c]
mov dl, byte [edx + eax]
mov byte [ecx], dl
mov edx, dword [esp + 0x10]
mov al, bl
inc al
mov byte [edx + ecx], al
mov eax, dword [esp + 0x2c]
add eax, ecx
cdq
idiv ebp
mov eax, dword [esp + 0x10d5c]
mov dl, byte [edx + eax]
mov byte [ecx + 1], dl
mov edx, dword [esp + 0x30]
mov al, bl
add al, 2
mov byte [edx + ecx], al
mov eax, dword [esp + 0x28]
add eax, ecx
cdq
idiv ebp
mov eax, dword [esp + 0x10d5c]
mov dl, byte [edx + eax]
mov byte [ecx + 2], dl
mov edx, dword [esp + 0x18]
mov al, bl
add al, 3
mov byte [edx + ecx], al
mov eax, dword [esp + 0x1c]
add eax, ecx
cdq
idiv ebp
mov eax, dword [esp + 0x10d5c]
mov dl, byte [edx + eax]
mov byte [ecx + 3], dl
mov edx, dword [esp + 0x24]
mov al, bl
add al, 4
mov byte [edx + ecx], al
mov eax, dword [esp + 0x20]
add eax, ecx
cdq
idiv ebp
mov eax, dword [esp + 0x10d5c]
add ebx, 5
cmp ebx, 0x10d1a
mov dl, byte [edx + eax]
mov byte [ecx + 4], dl
jl 0x405d3e
lea eax, [esp + 0x35]
sub eax, esi
mov dword [esp + 0x20], eax
lea eax, [esp + 0x36]
sub eax, esi
mov dword [esp + 0x24], eax
lea eax, [esp + 0x37]
sub eax, esi
mov dword [esp + 0x1c], eax
lea ebp, [esp + 0x34]
lea eax, [esp + 0x38]
sub ebp, esi
sub eax, esi
mov ecx, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x35d2
mov dword [esp + 0x14], 0x10d1a
lea ecx, [ecx]
mov bl, byte [ecx]
movzx edx, byte [ecx + ebp]
add edx, edi
movzx eax, bl
add eax, edx
cdq
mov edi, 0x10d1a
idiv edi
add ecx, 5
mov al, byte [edx + esi]
mov byte [edx + esi], bl
mov bl, byte [ecx - 4]
mov byte [ecx - 5], al
mov eax, dword [esp + 0x20]
movzx edi, byte [eax + ecx - 5]
add edi, edx
movzx eax, bl
add eax, edi
cdq
mov edi, 0x10d1a
idiv edi
mov al, byte [edx + esi]
mov byte [edx + esi], bl
mov bl, byte [ecx - 3]
mov byte [ecx - 4], al
mov eax, dword [esp + 0x24]
movzx edi, byte [eax + ecx - 5]
add edi, edx
movzx eax, bl
add eax, edi
cdq
mov edi, 0x10d1a
idiv edi
mov al, byte [edx + esi]
mov byte [edx + esi], bl
mov bl, byte [ecx - 2]
mov byte [ecx - 3], al
mov eax, dword [esp + 0x1c]
movzx edi, byte [eax + ecx - 5]
add edi, edx
movzx eax, bl
add eax, edi
cdq
mov edi, 0x10d1a
idiv edi
mov al, byte [edx + esi]
mov byte [edx + esi], bl
mov bl, byte [ecx - 1]
mov byte [ecx - 2], al
mov eax, dword [esp + 0x18]
movzx edi, byte [eax + ecx - 5]
add edi, edx
movzx eax, bl
add eax, edi
cdq
mov edi, 0x10d1a
idiv edi
mov edi, edx
mov al, byte [edi + esi]
mov byte [edi + esi], bl
mov byte [ecx - 1], al
dec dword [esp + 0x10]
jne 0x405e30
mov eax, dword [esp + 0x10d58]
xor ecx, ecx
test eax, eax
jle 0x405f64
mov ebx, dword [esp + 0x10d64]
mov ebp, dword [esp + 0x10d54]
sub ebp, ebx
mov dword [esp + 0x10], eax
mov edi, edi
mov eax, dword [esp + 0x14]
inc eax
cdq
mov edi, 0x10d1a
idiv edi
mov edi, edx
movzx eax, byte [edi + esi]
add eax, ecx
cdq
mov ecx, 0x10d1a
idiv ecx
mov dword [esp + 0x14], edi
mov ecx, edx
mov dl, byte [edi + esi]
mov al, byte [ecx + esi]
mov byte [ecx + esi], dl
mov byte [edi + esi], al
movzx edx, byte [ecx + esi]
movzx eax, al
add eax, edx
cdq
mov edi, 0x10d1a
idiv edi
mov al, byte [edx + esi]
xor al, byte [ebx + ebp]
mov byte [ebx], al
mov eax, dword [esp + 0x10]
inc ebx
dec eax
mov dword [esp + 0x10], eax
jne 0x405f10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10d40
ret