Function at 0x430080
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
add eax, esi
sub eax, dword [esp + 0x44]
mov dword [ecx + 8], 0
mov dword [ecx + 4], 0
mov dword [ecx], 0
mov dword [esp + 0x1c], eax
cmp eax, esi
jbe 0x4302bc
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
lea ebx, [eax - 1]
xor edi, edi
mov dword [esp], 0
mov dword [esp + 8], 0
mov dword [esp + 0x18], ebx
jmp 0x430111
mov ecx, edi
mov ebp, dword [esp]
sub ecx, ebp
mov ebx, ecx
sar ebx, 2
cmp edi, dword [esp + 8]
je 0x430155
mov eax, dword [esp + 0x34]
mov dword [ebp + ebx*4], esi
add edi, 4
mov dword [eax + 4], edi
mov ebx, dword [esp + 0x18]
add esi, ebx
inc esi
cmp esi, dword [esp + 0x1c]
jae 0x4302bc
test edx, edx
je 0x43011a
cmp byte [edx], 0x3f
je 0x430125
movzx ecx, byte [esi]
mov eax, dword [esp + 0x40]
cmp cl, byte [eax]
jne 0x430106
cmp dword [esp + 0x44], 2
jb 0x4300e0
xor ecx, ecx
jmp 0x430148
movzx edx, byte [esi + ecx + 1]
mov eax, dword [esp + 0x40]
cmp dl, byte [eax + ecx + 1]
mov edx, dword [esp + 0x48]
jne 0x4301c0
inc ecx
cmp ebx, ecx
je 0x4300e0
test edx, edx
je 0x430130
cmp byte [edx + ecx + 1], 0x3f
jne 0x430130
jmp 0x430143
mov dword [esp + 4], ecx
lea eax, [ebx + 1]
mov ecx, ebx
shr ecx, 1
mov edx, ecx
and edx, ebx
mov dword [esp + 0x14], ebx
xor ecx, ebx
lea ecx, [ecx + edx*2]
cmp ecx, eax
ja 0x430173
mov ecx, eax
mov dword [esp + 0x10], edi
mov eax, 0xffffffff
cmp ecx, 0x40000000
jae 0x43018b
lea eax, [ecx*4]
mov dword [esp + 8], ecx
push eax
call fcn.0042efc0
add esp, 4
mov ebp, eax
mov eax, dword [esp]
test eax, eax
mov ecx, dword [esp + 0x34]
je 0x430290
cmp ebp, eax
mov dword [esp + 0xc], ebp
jae 0x4301c7
mov edi, ebp
mov ecx, dword [esp + 4]
xchg esi, eax
rep movsb byte es:[edi], byte [esi]
xchg esi, eax
jmp 0x43027d
add esi, ecx
jmp 0x430106
mov ebx, dword [esp + 4]
test ebx, ebx
je 0x43027d
mov edx, dword [esp]
lea eax, [edx + ebx]
dec eax
mov ecx, dword [esp + 0xc]
add ecx, ebx
dec ecx
mov ebp, edx
not ebp
add ebp, dword [esp + 0x10]
and ebx, 7
je 0x430214
neg ebx
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [eax + edi]
mov byte [ecx + edi], dl
dec edi
cmp ebx, edi
jne 0x430200
add eax, edi
add dword [esp + 4], edi
add ecx, edi
cmp ebp, 7
mov edi, dword [esp + 4]
jb 0x43027d
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
movzx ebx, byte [eax + edx - 1]
mov byte [ecx + edx - 1], bl
movzx ebx, byte [eax + edx - 2]
mov byte [ecx + edx - 2], bl
movzx ebx, byte [eax + edx - 3]
mov byte [ecx + edx - 3], bl
movzx ebx, byte [eax + edx - 4]
mov byte [ecx + edx - 4], bl
movzx ebx, byte [eax + edx - 5]
mov byte [ecx + edx - 5], bl
movzx ebx, byte [eax + edx - 6]
mov byte [ecx + edx - 6], bl
movzx ebx, byte [eax + edx - 7]
mov byte [ecx + edx - 7], bl
add edx, 0xfffffff8
cmp edi, edx
jne 0x430230
push dword [esp]
call fcn.0042f050
add esp, 4
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0xc]
mov dword [ecx], ebp
mov ebx, dword [esp + 0x14]
lea edi, [ebx*4]
add edi, ebp
mov eax, dword [esp + 8]
lea eax, [ebp + eax*4]
mov dword [esp + 8], eax
mov dword [ecx + 8], eax
mov dword [esp], ebp
mov eax, ecx
mov edx, dword [esp + 0x48]
jmp 0x4300f6
mov eax, dword [esp + 0x34]
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret