Function at 0x427f30
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.00462100
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 0x4280bd
jmp 0x427f94
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x43c]
cmp ebx, edx
jge 0x4280bd
mov eax, esi
sub eax, edi
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x428093
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 0x427fd8
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x28]
jge 0x428093
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 0x428020
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 0x427fd0
cmp edx, esi
jle 0x4280a5
add dword [esp + 0x10], esi
mov dword [esp + 0x14], 0
jmp 0x4280b1
add dword [esp + 0x14], edx
mov dword [esp + 0x10], 0
mov edi, dword [esp + 0x14]
cmp edi, esi
jl 0x427f90
mov ebx, dword [esp + 0x34]
mov eax, ebx
shl eax, 5
add eax, ebx
cdq
idiv dword [esp + 0x18]
cmp eax, 0x5f
jl 0x4280e1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x424
ret 0xc
xor edi, edi
mov eax, 1
jmp 0x4280f0
mov ecx, dword [esp + eax*4 + 0x34]
mov edx, ecx
imul edx, eax
imul edx, eax
add edi, edx
test ecx, ecx
je 0x4280d2
mov edx, dword [esp + eax*4 + 0x30]
add edx, edx
cmp ecx, edx
jg 0x4280d2
inc eax
cmp eax, 8
jl 0x4280f0
mov ecx, 0x100
sub ecx, eax
xor edx, edx
xor esi, esi
cmp ecx, 2
jl 0x42814a
lea ecx, [eax + 1]
mov ebp, dword [esp + eax*4 + 0x34]
imul ebp, eax
imul ebp, eax
add edx, ebp
mov ebp, dword [esp + eax*4 + 0x38]
imul ebp, ecx
imul ebp, ecx
add eax, 2
add esi, ebp
add ecx, 2
cmp eax, 0xff
jl 0x428125
cmp eax, 0x100
jge 0x42815d
mov ecx, dword [esp + eax*4 + 0x34]
imul ecx, eax
imul ecx, eax
add edi, ecx
mov ecx, dword [esp + 0x18]
lea eax, [esi + edx]
add eax, edi
lea edx, [ecx + ecx*2]
pop edi
mov ecx, edx
pop esi
sub ecx, ebx
xor edx, edx
pop ebp
div ecx
pop ebx
add esp, 0x424
ret 0xc