Function at 0x52ca30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ba26d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x6360e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
comisd xmm0, xmmword [ebp + 0x18]
jae 0x52cdd6
mov esi, dword [ebp + 0x14]
movsd xmm0, qword [esi + 0x18]
mulsd xmm0, qword [0x604f48]
call fcn.005a08e0
movsd xmm0, qword [esi]
movzx edi, al
shl edi, 8
call fcn.005a08e0
movsd xmm0, qword [esi + 8]
movzx eax, al
or edi, eax
shl edi, 8
call fcn.005a08e0
movsd xmm0, qword [esi + 0x10]
movzx eax, al
or edi, eax
shl edi, 8
call fcn.005a08e0
movzx eax, al
or edi, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], edi
mov eax, dword [eax]
test eax, eax
je 0x52cac7
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x1c], eax
jmp 0x52cace
mov dword [ebp - 0x1c], 0
xor esi, esi
xor ebx, ebx
mov dword [ebp + 0x14], ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x20], esi
movsd xmm0, qword [ebp + 0x18]
xor ecx, ecx
mov dword [ebp - 4], esi
movsd xmm1, qword [0x604db8]
comisd xmm1, xmm0
mov dword [ebp - 0x18], ecx
jbe 0x52cb6e
subsd xmm1, xmm0
lea ecx, [ebp - 0x18]
call fcn.004fabe0
lea ecx, [ebp - 0x20]
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x1c], ebx
cmp ecx, eax
je 0x52cb1e
mov ebx, dword [eax]
mov dword [eax], esi
mov esi, ebx
mov dword [ebp + 0x14], ebx
mov dword [ebp - 0x10], esi
mov dword [ebp + 0x1c], ebx
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x52cb34
push eax
call fcn.005772e5
mov ebx, dword [ebp + 0x1c]
add esp, 4
mov dword [ebp + 0x14], ebx
mov eax, edi
mov dword [ebp + 0x1c], edi
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + ebx + 0x100]
mov byte [ebp + 0x1e], al
movzx eax, byte [ebp + 0x1d]
movzx eax, byte [eax + ebx + 0x100]
mov byte [ebp + 0x1d], al
movzx eax, byte [ebp + 0x1c]
movzx eax, byte [eax + ebx + 0x100]
mov byte [ebp + 0x1c], al
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov esi, eax
imul esi, dword [ebp - 0x1c]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
je 0x52cb91
cmp dword [eax + 0x18], 0
jbe 0x52cb91
mov eax, dword [eax + 0x1c]
jmp 0x52cb93
xor eax, eax
mov edx, dword [edx]
lea edi, [esi + edx*4]
add edi, eax
mov eax, dword [ebp + 0x10]
mov esi, dword [eax]
mov eax, dword [eax + 4]
sub esi, edx
mov edx, dword [ebp - 0x1c]
neg edx
mov dword [ebp + 8], esi
sub eax, dword [ebp + 0xc]
cmovns edx, dword [ebp - 0x1c]
mov dword [ebp + 0x1c], edx
cdq
xor eax, edx
sub eax, edx
mov edx, esi
mov esi, dword [ebp - 0x10]
mov dword [ebp + 0x10], eax
cmp edx, eax
jne 0x52cc3e
mov eax, dword [ebp + 0x1c]
add eax, 4
mov dword [ebp + 8], eax
lea eax, [edx + 1]
test eax, eax
jle 0x52cdc9
test ebx, ebx
je 0x52cc24
mov esi, dword [ebp + 8]
mov edx, eax
mov eax, dword [edi]
mov dword [ebp + 8], eax
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + ebx]
add al, byte [ebp - 0x16]
mov byte [ebp + 0xa], al
movzx eax, byte [ebp + 9]
movzx eax, byte [eax + ebx]
add al, ch
mov byte [ebp + 9], al
movzx eax, byte [ebp + 8]
movzx eax, byte [eax + ebx]
add al, cl
mov byte [ebp + 8], al
mov eax, dword [ebp + 8]
mov dword [edi], eax
add edi, esi
sub edx, 1
jne 0x52cbe4
jmp 0x52cdc6
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
nop word [eax + eax]
mov dword [edi], edx
add edi, ecx
sub eax, 1
jne 0x52cc30
jmp 0x52cdc9
mov ebx, dword [ebp + 0x10]
lea eax, [edx + edx]
lea edx, [ebx + ebx]
cmp dword [ebp + 8], ebx
jle 0x52cd13
mov eax, dword [ebp + 8]
mov ebx, edx
sub ebx, eax
inc eax
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x52cdc9
cmp dword [ebp + 0x14], 0
je 0x52ccd6
mov esi, dword [ebp + 0x14]
nop dword [eax]
mov eax, dword [edi]
mov dword [ebp + 0xc], eax
shr eax, 0x10
movzx eax, al
mov edx, dword [ebp + 0x1c]
add edx, edi
movzx eax, byte [eax + esi]
add al, byte [ebp - 0x16]
mov byte [ebp + 0xe], al
movzx eax, byte [ebp + 0xd]
movzx eax, byte [eax + esi]
add al, ch
mov byte [ebp + 0xd], al
movzx eax, byte [ebp + 0xc]
movzx eax, byte [eax + esi]
mov esi, dword [ebp + 8]
add al, cl
test ebx, ebx
mov byte [ebp + 0xc], al
mov eax, dword [ebp + 0xc]
mov dword [edi], eax
cmovs edx, edi
lea edi, [esi + esi]
mov eax, ebx
mov esi, dword [ebp + 0x10]
sub eax, edi
test ebx, ebx
lea edi, [edx + 4]
cmovs eax, ebx
sub dword [ebp - 0x1c], 1
mov ebx, eax
lea ebx, [ebx + esi*2]
mov esi, dword [ebp + 0x14]
jne 0x52cc70
jmp 0x52cdc6
mov edx, dword [ebp - 0x14]
mov esi, eax
nop dword [eax + eax]
mov ecx, dword [ebp + 0x1c]
mov eax, ebx
mov dword [edi], edx
add ecx, edi
mov edx, dword [ebp + 8]
test ebx, ebx
cmovs ecx, edi
lea edi, [edx + edx]
mov edx, dword [ebp + 0x10]
sub eax, edi
test ebx, ebx
lea edi, [ecx + 4]
cmovs eax, ebx
mov ebx, eax
lea ebx, [ebx + edx*2]
mov edx, dword [ebp - 0x14]
sub esi, 1
jne 0x52cce0
jmp 0x52cdc6
mov ebx, eax
mov eax, dword [ebp + 0x10]
sub ebx, eax
inc eax
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x52cdc9
cmp dword [ebp + 0x14], 0
je 0x52cd93
mov esi, dword [ebp + 0x14]
nop
mov eax, dword [edi]
lea edx, [edi + 4]
mov dword [ebp + 0xc], eax
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + esi]
add al, byte [ebp - 0x16]
mov byte [ebp + 0xe], al
movzx eax, byte [ebp + 0xd]
movzx eax, byte [eax + esi]
add al, ch
mov byte [ebp + 0xd], al
movzx eax, byte [ebp + 0xc]
movzx eax, byte [eax + esi]
mov esi, dword [ebp + 0x10]
add al, cl
test ebx, ebx
mov byte [ebp + 0xc], al
mov eax, dword [ebp + 0xc]
mov dword [edi], eax
cmovs edx, edi
mov eax, ebx
lea edi, [esi + esi]
mov esi, dword [ebp + 0x14]
sub eax, edi
mov edi, dword [ebp + 8]
test ebx, ebx
cmovs eax, ebx
mov ebx, eax
lea ebx, [ebx + edi*2]
mov edi, dword [ebp + 0x1c]
add edi, edx
sub dword [ebp - 0x1c], 1
jne 0x52cd30
jmp 0x52cdc6
mov edx, dword [ebp - 0x14]
mov esi, eax
mov dword [edi], edx
lea ecx, [edi + 4]
mov edx, dword [ebp + 0x10]
test ebx, ebx
mov eax, ebx
cmovs ecx, edi
lea edi, [edx + edx]
mov edx, dword [ebp - 0x14]
sub eax, edi
mov edi, dword [ebp + 8]
test ebx, ebx
cmovs eax, ebx
mov ebx, eax
lea ebx, [ebx + edi*2]
mov edi, dword [ebp + 0x1c]
add edi, ecx
sub esi, 1
jne 0x52cd98
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x52cdd6
push esi
call fcn.005772e5
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18