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

Disassembly:
sub esp, 0x424
mov ecx, dword [esp + 0x428]
push ebx
xor eax, eax
cmp byte [ecx + 0x22], al
push ebp
push esi
push edi
setne al
push 0x400
lea edx, [esp + 0x38]
push 0
push edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x3c], eax
call fcn.004858b0
mov esi, dword [esp + 0x44c]
xor edi, edi
xor ebx, ebx
add esp, 0xc
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
test esi, esi
jle 0x42ebad
jmp 0x42ea84
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x43c]
cmp ebx, edx
jge 0x42ebad
mov eax, esi
sub eax, edi
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x42eb83
mov eax, edx
sub eax, ebx
add eax, 0xfffffff9
mov dword [esp + 0x28], eax
mov eax, edi
imul eax, edx
mov dword [esp + 0x1c], eax
jmp 0x42eac8
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x28]
jge 0x42eb83
add eax, ecx
add eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x438]
mov edx, dword [ecx + 0x197c]
mov ecx, dword [esp + 0x30]
lea eax, [edx + eax*4]
movzx edi, byte [ecx + eax]
movzx ebx, byte [ecx + eax + 1]
movzx ebp, byte [ecx + eax + 2]
add ecx, eax
mov eax, 7
add ecx, 6
add dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
lea esp, [esp]
movzx esi, byte [ecx - 2]
mov eax, esi
sub eax, edi
cdq
xor eax, edx
sub eax, edx
inc dword [esp + eax*4 + 0x34]
lea eax, [esp + eax*4 + 0x34]
mov edi, esi
movzx esi, byte [ecx - 1]
mov eax, esi
sub eax, ebx
cdq
xor eax, edx
sub eax, edx
inc dword [esp + eax*4 + 0x34]
lea eax, [esp + eax*4 + 0x34]
mov ebx, esi
movzx esi, byte [ecx]
mov eax, esi
sub eax, ebp
cdq
xor eax, edx
sub eax, edx
inc dword [esp + eax*4 + 0x34]
lea eax, [esp + eax*4 + 0x34]
add ecx, 4
sub dword [esp + 0x24], 1
mov ebp, esi
jne 0x42eb10
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x43c]
add dword [esp + 0x1c], edx
mov esi, dword [esp + 0x440]
inc eax
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
jl 0x42eac0
cmp edx, esi
jle 0x42eb95
add dword [esp + 0x10], esi
mov dword [esp + 0x14], 0
jmp 0x42eba1
add dword [esp + 0x14], edx
mov dword [esp + 0x10], 0
mov edi, dword [esp + 0x14]
cmp edi, esi
jl 0x42ea80
mov ebx, dword [esp + 0x34]
mov eax, ebx
shl eax, 5
add eax, ebx
cdq
idiv dword [esp + 0x18]
cmp eax, 0x5f
jl 0x42ebd1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x424
ret 0xc
xor eax, eax
mov ecx, 1
jmp 0x42ebe0
mov edx, dword [esp + ecx*4 + 0x34]
mov esi, edx
imul esi, ecx
imul esi, ecx
add eax, esi
test edx, edx
je 0x42ebc2
mov esi, dword [esp + ecx*4 + 0x30]
add esi, esi
cmp edx, esi
jg 0x42ebc2
inc ecx
cmp ecx, 8
jl 0x42ebe0
xor esi, esi
xor edi, edi
cmp ecx, 0x100
jge 0x42ec5e
mov edx, 0x100
sub edx, ecx
cmp edx, 2
jl 0x42ec46
lea edx, [ecx + 1]
lea ecx, [ecx]
mov ebp, dword [esp + ecx*4 + 0x34]
imul ebp, ecx
imul ebp, ecx
add esi, ebp
mov ebp, dword [esp + ecx*4 + 0x38]
imul ebp, edx
imul ebp, edx
add ecx, 2
add edi, ebp
add edx, 2
cmp ecx, 0xff
jl 0x42ec20
cmp ecx, 0x100
jge 0x42ec5a
mov edx, dword [esp + ecx*4 + 0x34]
imul edx, ecx
imul edx, ecx
add eax, edx
add edi, esi
add eax, edi
mov ecx, dword [esp + 0x18]
pop edi
pop esi
lea ecx, [ecx + ecx*2]
sub ecx, ebx
xor edx, edx
pop ebp
div ecx
pop ebx
add esp, 0x424
ret 0xc