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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c48ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1adc
call fcn.004a91d0
mov eax, dword [0x508e4c]
xor eax, ebp
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x1ae0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
push edi
lea edi, [ebx + 0x84]
mov dword [esp + 0x18], eax
mov eax, dword [edi]
test eax, eax
mov dword [esp + 0x30], edi
je 0x46b452
push eax
call fcn.004a8b23
add esp, 4
mov dword [edi], 0
mov ecx, dword [esp + 0x18]
lea eax, [ebx + 0x88]
push eax
push edi
push ecx
mov dword [esp + 0x2c], eax
call fcn.00446340
add esp, 0xc
test al, al
je 0x46b4c1
mov al, byte [ebp + 0xc]
test al, al
jne 0x46b4ae
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
xor ecx, ecx
test eax, eax
jle 0x46b990
mov eax, dword [edi]
lea esi, [ecx + eax]
mov al, cl
mov dl, 0x21
imul dl
mov dl, al
mov eax, dword [esp + 0x20]
add dl, byte [eax]
mov bl, byte [esi]
add dl, 0x7a
xor bl, dl
mov byte [esi], bl
mov edx, dword [eax]
inc ecx
cmp ecx, edx
jl 0x46b486
jmp 0x46b990
mov eax, dword [edi]
movzx ecx, byte [eax + 3]
mov dword [ebx + 0xf4], ecx
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x46b4c8
xor al, al
jmp 0x46b992
push 0
push 0
push 0x10001
push 0x400
call fcn.00475180
mov dword [esp + 0x20], eax
call fcn.00474cb0
push eax
call fcn.00474bb0
mov edi, eax
mov eax, dword [esi + 0x18]
add esp, 0x14
cmp eax, 0x10
mov dword [esp + 0x38], edi
jb 0x46b500
mov esi, dword [esi + 4]
jmp 0x46b503
add esi, 4
mov edx, dword [esp + 0x10]
push esi
push 0
push 0
push 0
push 0
push edx
push edi
call fcn.00474c70
lea eax, [esp + 0x44]
push eax
push 0
push 0x73
push edi
call fcn.00474af0
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx]
push edx
call fcn.004a7989
mov edx, dword [esp + 0x58]
mov dword [ebx + 0xec], eax
mov ecx, dword [edx]
mov dword [ebx + 0xf0], ecx
mov ecx, dword [edx]
mov esi, dword [edx + 4]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0xf0]
add esp, 0x30
xor ecx, ecx
test eax, eax
jle 0x46b59e
xor esi, esi
lea ebx, [ebx]
mov eax, dword [ebx + 0xec]
movzx edi, byte [ecx + eax]
lea edx, [ecx + eax]
mov eax, dword [ebx + 0xf0]
lea eax, [esi + eax + 0x3f]
and eax, 0xff
xor eax, edi
mov byte [edx], al
mov eax, dword [ebx + 0xf0]
inc ecx
add esi, 0x21
cmp ecx, eax
jl 0x46b570
xor esi, esi
mov dword [esp + 0x10c0], 0xf
mov dword [esp + 0x10bc], esi
mov byte [esp + 0x10ac], 0
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
push edx
push ecx
lea ecx, [esp + 0x10b0]
mov dword [esp + 0x1afc], esi
call fcn.004016f0
lea edx, [esp + 0x10a8]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.0046aff0
add esp, 8
push 0xffffffffffffffff
push esi
push eax
lea ecx, [esp + 0x10b4]
mov byte [esp + 0x1b00], 1
call fcn.00401280
cmp dword [esp + 0x54], 0x10
mov byte [esp + 0x1af4], 0
jb 0x46b624
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004a7e92
add esp, 4
mov edx, dword [esp + 0x10]
mov byte [esp + 0x12e0], 0
xor eax, eax
mov ecx, 0x1ff
lea edi, [esp + 0x12e1]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
stosb byte es:[edi], al
call fcn.00474410
mov ebx, eax
mov eax, dword [esp + 0x10c0]
xor edx, edx
sub ebx, 0x2a
div ebx
add esp, 4
lea ecx, [esp + 0x58]
mov dword [esp + 0x14], 0
mov esi, edx
mov edi, eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], edi
call fcn.00471eb0
mov dword [esp + 0x10dc], 0xf
mov dword [esp + 0x10d8], 0
mov byte [esp + 0x10c8], 0
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
add ecx, 0x30
push 0x20
push ecx
lea ecx, [esp + 0x10cc]
mov byte [esp + 0x1afc], 3
call fcn.004016f0
cmp dword [esp + 0x10dc], 0x10
mov eax, dword [esp + 0x10c8]
jae 0x46b6d0
lea eax, [esp + 0x10c8]
push eax
lea ecx, [esp + 0x5c]
call fcn.004721a0
mov edx, dword [esp + 0x10]
push edx
call fcn.00474410
mov dword [esp + 0x1c], eax
xor eax, eax
add esp, 4
cmp edi, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], eax
jle 0x46b7f4
mov dword [esp + 0x24], eax
cmp dword [esp + 0x10c0], 0x10
mov edx, dword [esp + 0x10ac]
jae 0x46b719
lea edx, [esp + 0x10ac]
mov esi, dword [esp + 0x24]
add esi, edx
mov ecx, ebx
mov edx, ecx
shr ecx, 2
lea edi, [esp + 0x10e0]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
cdq
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x30
idiv ecx
lea eax, [esp + 0x12e0]
test edx, edx
jne 0x46b766
mov edx, dword [esp + 0x10]
push 4
push edx
push eax
lea ecx, [esp + 0x10ec]
push ecx
push ebx
call fcn.00474430
add esp, 0x14
mov esi, eax
jmp 0x46b793
mov ecx, ebx
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x10e0]
lea edi, [esp + 0x12e0]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x60]
call fcn.00471ef0
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
lea eax, [esi + edi]
push eax
push ecx
mov dword [esp + 0x14], eax
call fcn.004aae2a
mov ecx, esi
mov edx, ecx
shr ecx, 2
add edi, eax
lea esi, [esp + 0x12e8]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov ecx, edx
mov edx, dword [esp + 0x2c]
and ecx, 3
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
add esp, 8
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x34]
inc eax
add edx, ebx
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], edx
jl 0x46b701
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x46b8d3
mov ecx, dword [esp + 0x10c0]
imul ebx, eax
cmp ecx, 0x10
mov edx, dword [esp + 0x10ac]
jae 0x46b819
lea edx, [esp + 0x10ac]
mov ecx, esi
lea esi, [edx + ebx]
mov edx, ecx
shr ecx, 2
lea edi, [esp + 0x10e0]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cdq
mov ecx, 0x30
idiv ecx
test edx, edx
jne 0x46b867
mov edx, dword [esp + 0x10]
push 4
push edx
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x12e8]
push eax
lea ecx, [esp + 0x10ec]
push ecx
push edx
call fcn.00474430
add esp, 0x14
mov esi, eax
jmp 0x46b89d
mov ecx, dword [esp + 0x2c]
mov eax, ecx
shr ecx, 2
lea esi, [esp + 0x10e0]
lea edi, [esp + 0x12e0]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
push esi
lea ecx, [esp + 0x12e4]
push ecx
lea ecx, [esp + 0x60]
call fcn.00471ef0
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
lea ebx, [esi + edi]
push ebx
push edx
call fcn.004aae2a
mov ecx, esi
add edi, eax
mov dword [esp + 0x1c], eax
mov eax, ecx
shr ecx, 2
lea esi, [esp + 0x12e8]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 8
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0xc], ebx
mov edi, dword [esp + 0x30]
mov eax, dword [edi]
push eax
call fcn.004a8b23
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
push eax
mov dword [esi], eax
call fcn.004a7989
mov ecx, dword [esi]
mov esi, dword [esp + 0x1c]
mov edx, ecx
mov dword [edi], eax
shr ecx, 2
mov edi, eax
mov eax, dword [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004a9dd4
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00474b80
mov edx, dword [esp + 0x20]
push edx
call fcn.004742c0
mov eax, dword [esp + 0x10f0]
mov esi, 0x10
add esp, 0x14
cmp eax, esi
jb 0x46b948
mov eax, dword [esp + 0x10c8]
push eax
call fcn.004a7e92
add esp, 4
lea ecx, [esp + 0x58]
mov dword [esp + 0x10dc], 0xf
mov dword [esp + 0x10d8], 0
mov byte [esp + 0x10c8], 0
mov byte [esp + 0x1af4], 0
call fcn.0046ea90
cmp dword [esp + 0x10c0], esi
jb 0x46b990
mov ecx, dword [esp + 0x10ac]
push ecx
call fcn.004a7e92
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x1aec]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1ae4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8b15
mov esp, ebp
pop ebp
ret 0xc