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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x52b182
cmp dword [ebp - 8], 0
je 0x52b182
mov eax, dword [ebp - 8]
cmp byte [eax], 0
je 0x52b182
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x11]
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 0x46]
je 0x52b18e
mov dword [ebp - 0x10], 0xfffffffb
jmp 0x52b543
cmp dword [ebp - 8], 0
je 0x52b1c0
mov eax, dword [ebp - 8]
cmp byte [eax], 1
jne 0x52b1c0
mov eax, dword [ebp - 8]
cmp dword [eax + 1], 0x80
je 0x52b1cc
mov eax, dword [ebp - 8]
cmp dword [eax + 1], 0xc0
je 0x52b1cc
mov eax, dword [ebp - 8]
cmp dword [eax + 1], 0x100
je 0x52b1cc
mov dword [ebp - 0x10], 0xfffffffe
jmp 0x52b543
cmp dword [ebp - 4], 0
je 0x52b20e
mov eax, dword [ebp - 4]
cmp byte [eax], 1
je 0x52b1ea
mov eax, dword [ebp - 4]
cmp byte [eax], 2
je 0x52b1ea
mov eax, dword [ebp - 4]
cmp byte [eax], 3
jne 0x52b20e
mov eax, dword [ebp - 4]
cmp dword [eax + 0x11], 0x80
je 0x52b21a
mov eax, dword [ebp - 4]
cmp dword [eax + 0x11], 0xc0
je 0x52b21a
mov eax, dword [ebp - 4]
cmp dword [eax + 0x11], 0x100
je 0x52b21a
mov dword [ebp - 0x10], 0xfffffffb
jmp 0x52b543
mov eax, dword [ebp - 4]
push dword [eax + 0x11]
mov eax, dword [ebp + 0xc]
pop edx
mov ecx, edx
cdq
idiv ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov al, byte [eax]
dec al
je 0x52b242
dec al
je 0x52b32b
jmp 0x52b52e
mov eax, dword [ebp - 0x20]
dec eax
test eax, eax
jl 0x52b537
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x11]
test eax, eax
jns 0x52b266
add eax, 0x1f
sar eax, 5
dec eax
test eax, eax
jl 0x52b2ad
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
shl eax, 2
add eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov al, byte [edx + eax]
and al, 0xff
mov edx, dword [ebp - 0x1c]
lea edx, [ebp + edx*8 - 0x48]
mov ecx, dword [ebp - 0x18]
mov byte [edx + ecx], al
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 4
jne 0x52b27e
inc dword [ebp - 0x18]
dec dword [ebp - 0x28]
jne 0x52b279
mov eax, dword [ebp - 8]
add eax, 0x4a
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x11]
mov eax, dword [ebp - 8]
mov edx, dword [eax + 1]
lea eax, [ebp - 0x48]
call fcn.0052a710
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x11]
test eax, eax
jns 0x52b2d5
add eax, 0x1f
sar eax, 5
dec eax
test eax, eax
jl 0x52b31a
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
shl eax, 2
add eax, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
lea ecx, [ebp + ecx*8 - 0x48]
mov ebx, dword [ebp - 0x18]
mov cl, byte [ecx + ebx]
mov byte [edx + eax], cl
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 4
jne 0x52b2ed
inc dword [ebp - 0x18]
dec dword [ebp - 0x28]
jne 0x52b2e8
inc dword [ebp - 0x14]
dec dword [ebp - 0x24]
jne 0x52b259
jmp 0x52b537
mov eax, dword [ebp - 0x20]
dec eax
cmp eax, 1
jl 0x52b45b
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x11]
test eax, eax
jns 0x52b348
add eax, 0x1f
sar eax, 5
dec eax
test eax, eax
jl 0x52b3a4
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x11]
test eax, eax
jns 0x52b36d
add eax, 7
sar eax, 3
imul dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
shl edx, 2
add eax, edx
add eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov al, byte [edx + eax]
and al, 0xff
mov edx, dword [ebp - 0x1c]
lea edx, [ebp + edx*8 - 0x48]
mov ecx, dword [ebp - 0x18]
mov byte [edx + ecx], al
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 4
jne 0x52b360
inc dword [ebp - 0x18]
dec dword [ebp - 0x24]
jne 0x52b35b
mov eax, dword [ebp - 8]
add eax, 0x4a
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x11]
mov eax, dword [ebp - 8]
mov edx, dword [eax + 1]
lea eax, [ebp - 0x48]
call fcn.0052a710
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x11]
test eax, eax
jns 0x52b3cc
add eax, 0x1f
sar eax, 5
dec eax
test eax, eax
jl 0x52b44e
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
dec eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x11]
test edx, edx
jns 0x52b3f5
add edx, 7
sar edx, 3
imul edx
mov edx, dword [ebp - 0x18]
shl edx, 2
add eax, edx
add eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov al, byte [edx + eax]
mov edx, dword [ebp - 0x1c]
lea edx, [ebp + edx*8 - 0x48]
mov ecx, dword [ebp - 0x18]
xor al, byte [edx + ecx]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x11]
test edx, edx
jns 0x52b425
add edx, 7
sar edx, 3
imul edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
shl ecx, 2
add edx, ecx
add edx, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov byte [ecx + edx], al
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 4
jne 0x52b3e4
inc dword [ebp - 0x18]
dec dword [ebp - 0x24]
jne 0x52b3df
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jne 0x52b33b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x11]
test eax, eax
jns 0x52b468
add eax, 0x1f
sar eax, 5
dec eax
test eax, eax
jl 0x52b4af
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
shl eax, 2
add eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov al, byte [edx + eax]
and al, 0xff
mov edx, dword [ebp - 0x1c]
lea edx, [ebp + edx*8 - 0x48]
mov ecx, dword [ebp - 0x18]
mov byte [edx + ecx], al
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 4
jne 0x52b480
inc dword [ebp - 0x18]
dec dword [ebp - 0x24]
jne 0x52b47b
mov eax, dword [ebp - 8]
add eax, 0x4a
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x11]
mov eax, dword [ebp - 8]
mov edx, dword [eax + 1]
lea eax, [ebp - 0x48]
call fcn.0052a710
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x11]
test eax, eax
jns 0x52b4d7
add eax, 0x1f
sar eax, 5
dec eax
test eax, eax
jl 0x52b537
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
shl eax, 2
add eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, byte [edx + eax + 1]
mov edx, dword [ebp - 0x1c]
lea edx, [ebp + edx*8 - 0x48]
mov ecx, dword [ebp - 0x18]
xor al, byte [edx + ecx]
mov edx, dword [ebp - 0x18]
shl edx, 2
add edx, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov byte [ecx + edx], al
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 4
jne 0x52b4ef
inc dword [ebp - 0x18]
dec dword [ebp - 0x24]
jne 0x52b4ea
jmp 0x52b537
mov dword [ebp - 0x10], 0xfffffffb
jmp 0x52b543
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x11]
imul dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
pop ebx
mov esp, ebp
pop ebp
ret 8