Function at 0x503dd0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c
call fcn.0065d180
push ebx
mov ebx, dword [ebp + 0x1c]
xorps xmm0, xmm0
push esi
mov esi, ecx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 8]
mov eax, edx
mov ecx, dword [ebp + 0xc]
shld ecx, eax, 5
push edi
shl eax, 5
mov edi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], eax
movlpd qword [ebp - 0x28], xmm0
test ecx, ecx
jb 0x503e72
ja 0x503e14
test eax, eax
je 0x503e72
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
movzx eax, byte [edi]
lea edi, [edi + 4]
mov dword [ebx], eax
movzx edx, byte [edi - 3]
shl edx, 8
or edx, eax
mov dword [ebx], edx
movzx ecx, byte [edi - 2]
shl ecx, 0x10
or ecx, edx
mov dword [ebx], ecx
movzx eax, byte [edi - 1]
shl eax, 0x18
or eax, ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebx], eax
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
adc ecx, 0
add ebx, 4
mov dword [ebp - 0x18], ecx
cmp ecx, dword [ebp - 0x10]
jb 0x503e23
ja 0x503e6c
cmp eax, esi
jb 0x503e23
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
xor eax, eax
mov edi, 1
cmp eax, dword [ebp + 0x14]
ja 0x503ec9
jb 0x503e85
cmp edi, dword [ebp + 0x10]
jae 0x503ec9
mov eax, edx
mov dword [ebp - 8], edx
shl eax, 7
xor esi, esi
mov dword [ebp - 0x20], eax
push dword [ebp + 0xc]
mov ecx, ebx
push edx
mov edx, ebx
sub edx, eax
call fcn.00503cb0
mov eax, dword [ebp - 0x20]
add esp, 8
mov edx, dword [ebp + 8]
add edi, 1
adc esi, 0
add ebx, eax
cmp esi, dword [ebp + 0x14]
jb 0x503e92
ja 0x503ebe
cmp edi, dword [ebp + 0x10]
jb 0x503e92
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
jmp 0x503ece
mov eax, edx
mov dword [ebp - 8], eax
push dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp - 0xc]
mov ecx, edi
push edx
mov edx, ebx
shl edx, 7
add edx, 0xffffff80
imul edx, eax
add edx, dword [ebp + 0x1c]
call fcn.00503cb0
mov ecx, dword [ebp + 0x14]
add esp, 8
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
test ecx, ecx
jb 0x503fcc
ja 0x503f0d
test ebx, ebx
je 0x503fcc
mov eax, dword [ebp - 8]
lea edx, [edi - 0x40]
mov esi, dword [ebp - 0x10]
shl eax, 7
add edx, eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], eax
nop word [eax + eax]
push ecx
push ebx
push 0
push dword [edx]
call fcn.006878f0
mov edx, eax
xorps xmm0, xmm0
imul edx, dword [ebp - 8]
movlpd qword [ebp - 0x28], xmm0
shl edx, 7
add edx, dword [ebp + 0x1c]
test esi, esi
jb 0x503f8c
ja 0x503f5b
cmp dword [ebp - 4], 0
je 0x503f89
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
lea edx, [edx + 4]
mov ebx, dword [ebp + 0x18]
mov eax, dword [eax + ecx*4]
xor eax, dword [edx - 4]
mov dword [ebx + ecx*4], eax
add ecx, 1
mov ebx, dword [ebp - 4]
adc edi, 0
cmp edi, esi
jb 0x503f61
ja 0x503f86
cmp ecx, ebx
jb 0x503f61
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp + 0x10]
push dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
mov ecx, edi
push dword [ebp + 8]
call fcn.00503cb0
mov eax, dword [ebp - 0x18]
add esp, 8
mov edx, dword [ebp - 0x1c]
add eax, 1
mov ecx, dword [ebp + 0x14]
adc edx, 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
cmp edx, ecx
mov edx, dword [ebp - 0x20]
jb 0x503f30
ja 0x503fc9
cmp eax, ebx
jb 0x503f30
mov esi, dword [ebp - 0x14]
cmp dword [ebp - 0x10], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
jb 0x504023
mov ebx, dword [ebp - 4]
ja 0x503fe3
test ebx, ebx
je 0x504023
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
nop dword [eax]
mov eax, dword [ebp - 0xc]
lea esi, [esi + 4]
mov ecx, dword [eax + edx*4]
mov eax, ecx
shr eax, 8
mov byte [esi - 4], cl
mov byte [esi - 3], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
add edx, 1
mov byte [esi - 2], al
adc edi, 0
mov byte [esi - 1], cl
cmp edi, dword [ebp - 0x10]
jb 0x503ff0
ja 0x504023
cmp edx, ebx
jb 0x503ff0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret