Function at 0x469169
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x38
mov eax, dword [0x4c54e8]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x44]
push ebx
mov ebx, dword [esp + 0x40]
test ebx, ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
jne 0x4691a3
pop esi
mov eax, 0x70000001
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004761ea
add esp, 0x38
ret 0x1c
cmp dword [esp + 0x48], 1
jge 0x4691c2
pop esi
mov eax, 0x70000002
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004761ea
add esp, 0x38
ret 0x1c
push edi
mov edi, dword [esp + 0x54]
cmp edi, 0x10
je 0x4691ef
cmp edi, 0x18
je 0x4691ef
cmp edi, 0x20
je 0x4691ef
pop edi
pop esi
mov eax, 0x70000009
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004761ea
add esp, 0x38
ret 0x1c
push ebp
mov ebp, dword [esp + 0x5c]
cmp ebp, 0x10
je 0x46921d
cmp ebp, 0x18
je 0x46921d
cmp ebp, 0x20
je 0x46921d
pop ebp
pop edi
pop esi
mov eax, 0x70000006
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004761ea
add esp, 0x38
ret 0x1c
mov ecx, dword [esp + 0x60]
cmp ecx, 2
ja 0x46966c
mov eax, dword [esp + 0x64]
cmp eax, 2
ja 0x469652
mov dword [esi + 0x10], ecx
xor ecx, ecx
xor edx, edx
test edi, edi
mov dword [esi + 0x14], eax
jle 0x46925f
lea esp, [esp]
mov al, byte [edx + ebx]
mov byte [esp + ecx + 0x24], al
lea eax, [edx + 1]
cdq
idiv dword [esp + 0x50]
add ecx, 1
cmp ecx, edi
jl 0x469249
mov ecx, dword [esp + 0x14]
push ebp
push ecx
lea ebx, [esi + 0x3dc]
push ebx
mov dword [esi + 8], ebp
call fcn.00476e69
mov edx, dword [esi + 8]
push edx
lea eax, [esi + 0x3fc]
push ebx
push eax
call fcn.00476e69
push edi
lea ecx, [esp + 0x40]
push ecx
lea edx, [esi + 0x18]
push edx
mov dword [esi + 0xc], edi
call fcn.00476e69
mov eax, dword [esi + 0xc]
add esp, 0x24
cmp eax, 0x10
je 0x4692c2
cmp eax, 0x18
je 0x4692b3
mov dword [esi + 0x3d8], 0xe
jmp 0x4692e5
xor eax, eax
cmp dword [esi + 8], 0x20
sete al
lea eax, [eax + eax + 0xc]
jmp 0x4692df
mov eax, dword [esi + 8]
cmp eax, 0x10
jne 0x4692d1
mov eax, 0xa
jmp 0x4692df
xor ecx, ecx
cmp eax, 0x18
setne cl
lea ecx, [ecx + ecx + 0xc]
mov eax, ecx
mov dword [esi + 0x3d8], eax
mov eax, dword [esi + 8]
cdq
and edx, 3
add eax, edx
mov ebp, eax
sar ebp, 2
xor edx, edx
cmp dword [esi + 0x3d8], edx
mov dword [esp + 0x18], ebp
jl 0x469323
lea ebx, [esi + 0x38]
jmp 0x469309
test ebp, ebp
jle 0x469315
mov ecx, ebp
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
add edx, 1
add ebx, 0x20
cmp edx, dword [esi + 0x3d8]
jle 0x469309
xor edx, edx
cmp dword [esi + 0x3d8], edx
jl 0x469353
lea ebx, [esi + 0x1f8]
lea ebx, [ebx]
test ebp, ebp
jle 0x469345
mov ecx, ebp
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
add edx, 1
add ebx, 0x20
cmp edx, dword [esi + 0x3d8]
jle 0x469339
mov eax, dword [esi + 0x3d8]
add eax, 1
imul eax, ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0xc]
cdq
and edx, 3
add eax, edx
mov edi, eax
sar edi, 2
test edi, edi
lea ecx, [esi + 0x41c]
lea eax, [esp + 0x24]
jle 0x4693b8
mov ebp, edi
movzx edx, byte [eax]
shl edx, 0x18
mov dword [ecx], edx
movzx edx, byte [eax + 1]
add eax, 1
shl edx, 0x10
or dword [ecx], edx
add eax, 1
xor edx, edx
mov dh, byte [eax]
add eax, 1
add eax, 1
add ecx, 4
or dword [ecx - 4], edx
movzx edx, byte [eax - 1]
or dword [ecx - 4], edx
sub ebp, 1
jne 0x469381
mov ebp, dword [esp + 0x18]
xor ebx, ebx
test edi, edi
mov dword [esp + 0x20], ebx
jle 0x46940e
lea ecx, [esi + 0x41c]
mov dword [esp + 0x10], ecx
cmp ebx, dword [esp + 0x1c]
jge 0x46940a
mov eax, ebx
cdq
idiv ebp
mov ecx, dword [ecx]
add ebx, 1
lea ebp, [edx + eax*8]
mov dword [esi + ebp*4 + 0x38], ecx
mov ecx, dword [esi + 0x3d8]
mov ebp, dword [esp + 0x18]
sub ecx, eax
lea edx, [edx + ecx*8]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
add ecx, 4
cmp ebx, edi
mov dword [esi + edx*4 + 0x1f8], eax
mov dword [esp + 0x10], ecx
jl 0x4693cc
mov dword [esp + 0x20], ebx
cmp ebx, dword [esp + 0x1c]
jge 0x4695ad
mov dword [esp + 0x10], 0x4a9370
jmp 0x469429
mov eax, dword [esi + edi*4 + 0x418]
mov ecx, eax
sar ecx, 0x10
and ecx, 0xff
movsx edx, byte [ecx + 0x4a6170]
mov ecx, dword [esp + 0x10]
movsx ecx, byte [ecx]
xor edx, ecx
add dword [esp + 0x10], 1
movzx ecx, ah
movzx ecx, byte [ecx + 0x4a6170]
shl edx, 8
xor edx, ecx
mov ecx, eax
and ecx, 0xff
movzx ecx, byte [ecx + 0x4a6170]
sar eax, 0x18
shl edx, 8
and eax, 0xff
movzx eax, byte [eax + 0x4a6170]
xor edx, ecx
shl edx, 8
xor edx, eax
xor dword [esi + 0x41c], edx
cmp edi, 8
je 0x4694bb
cmp edi, 1
jle 0x469546
lea eax, [esi + 0x420]
lea ecx, [edi - 1]
jmp 0x4694a9
mov edx, dword [eax - 4]
xor dword [eax], edx
add eax, 4
sub ecx, 1
jne 0x4694a9
jmp 0x469546
lea eax, [esi + 0x420]
mov ecx, 3
lea ecx, [ecx]
mov edx, dword [eax - 4]
xor dword [eax], edx
add eax, 4
sub ecx, 1
jne 0x4694c9
mov eax, dword [esi + 0x428]
mov ecx, eax
sar ecx, 0x18
and ecx, 0xff
movsx edx, byte [ecx + 0x4a6170]
mov ecx, eax
sar ecx, 0x10
and ecx, 0xff
movzx ecx, byte [ecx + 0x4a6170]
shl edx, 8
xor edx, ecx
movzx ecx, ah
movzx ecx, byte [ecx + 0x4a6170]
shl edx, 8
and eax, 0xff
movzx eax, byte [eax + 0x4a6170]
xor edx, ecx
shl edx, 8
xor edx, eax
xor dword [esi + 0x42c], edx
lea eax, [esi + 0x430]
mov ecx, 3
lea ecx, [ecx]
mov edx, dword [eax - 4]
xor dword [eax], edx
add eax, 4
sub ecx, 1
jne 0x469539
test edi, edi
mov dword [esp + 0x14], 0
jle 0x4695a3
lea ecx, [esi + 0x41c]
nop
cmp ebx, dword [esp + 0x1c]
jge 0x4695ad
mov eax, ebx
cdq
idiv ebp
mov ebp, dword [ecx]
add ecx, 4
lea ebx, [edx + eax*8]
mov dword [esi + ebx*4 + 0x38], ebp
mov ebx, dword [esi + 0x3d8]
mov ebp, dword [esp + 0x18]
sub ebx, eax
lea eax, [edx + ebx*8]
mov edx, dword [ecx - 4]
mov ebx, dword [esp + 0x20]
mov dword [esi + eax*4 + 0x1f8], edx
mov eax, dword [esp + 0x14]
add eax, 1
add ebx, 1
cmp eax, edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ebx
jl 0x469559
cmp ebx, dword [esp + 0x1c]
jl 0x469429
mov eax, 1
cmp dword [esi + 0x3d8], eax
mov dword [esp + 0x14], eax
jle 0x469634
lea ecx, [esi + 0x218]
mov dword [esp + 0x10], ecx
nop
test ebp, ebp
jle 0x469616
mov edx, ebp
mov eax, dword [ecx]
mov edi, eax
sar edi, 0x18
and edi, 0xff
mov edi, dword [edi*4 + 0x4a8370]
mov ebx, eax
sar ebx, 0x10
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4a8770]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x4a8b70]
and eax, 0xff
xor edi, dword [eax*4 + 0x4a8f70]
add ecx, 4
sub edx, 1
mov dword [ecx - 4], edi
jne 0x4695cf
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add eax, 1
add ecx, 0x20
cmp eax, dword [esi + 0x3d8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
jl 0x4695c9
pop ebp
pop edi
mov byte [esi + 4], 1
pop esi
mov eax, 0x6fffffff
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004761ea
add esp, 0x38
ret 0x1c
pop ebp
pop edi
pop esi
mov eax, 0x70000004
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004761ea
add esp, 0x38
ret 0x1c
mov ecx, dword [esp + 0x44]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 0x70000003
call fcn.004761ea
add esp, 0x38
ret 0x1c