Function at 0x4330d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
add eax, esi
sub eax, dword [esp + 0x40]
mov dword [ebx + 8], 0
mov dword [ebx + 4], 0
mov dword [ebx], 0
mov dword [esp + 0x18], eax
cmp eax, esi
jbe 0x433340
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
lea ebp, [eax - 1]
xor edi, edi
mov dword [esp], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], ebp
jmp 0x433158
mov ecx, edi
mov eax, dword [esp]
sub ecx, eax
cmp edi, dword [esp + 0xc]
je 0x4331a9
mov dword [eax + ecx], esi
add edi, 4
mov dword [ebx + 4], edi
mov ecx, dword [esp + 0x40]
add esi, ecx
dec esi
inc esi
cmp esi, dword [esp + 0x18]
jae 0x433340
test edx, edx
je 0x433161
cmp byte [edx], 0x3f
je 0x43316c
movzx ecx, byte [esi]
mov eax, dword [esp + 0x3c]
cmp cl, byte [eax]
jne 0x43314d
cmp dword [esp + 0x40], 2
jb 0x433130
xor ecx, ecx
jmp 0x43319c
movzx edx, byte [esi + ecx + 1]
mov eax, dword [esp + 0x3c]
cmp dl, byte [eax + ecx + 1]
mov edx, dword [esp + 0x44]
jne 0x43324a
inc ecx
cmp ebp, ecx
je 0x433130
test edx, edx
je 0x433180
cmp byte [edx + ecx + 1], 0x3f
jne 0x433180
jmp 0x433197
mov dword [esp + 4], edi
mov dword [esp + 8], ecx
sar ecx, 2
lea edi, [ecx + 1]
mov edx, ecx
shr edx, 1
mov eax, edx
and eax, ecx
xor edx, ecx
lea eax, [edx + eax*2]
cmp eax, edi
ja 0x4331ca
mov eax, edi
mov dword [esp + 0xc], eax
lea eax, [eax*4]
push eax
call fcn.004090a0
add esp, 4
mov edi, eax
mov eax, dword [esp]
test eax, eax
je 0x433310
mov ebp, dword [esp + 8]
lea ebx, [ebp + 0x28bd2a0]
cmp edi, eax
mov dword [esp + 0x10], edi
jbe 0x433251
cmp dword [esp + 4], edi
jbe 0x433251
test ebp, ebp
je 0x4332fd
mov eax, dword [esp + 0x10]
add eax, ebx
add eax, 0xfd742d5f
mov ecx, dword [esp]
add ecx, ebx
add ecx, 0xfd742d5f
and ebx, 7
je 0x433296
neg ebx
xor edx, edx
mov edi, dword [esp + 4]
nop
nop
mov ebp, ebx
movzx ebx, byte [ecx + edx]
mov byte [eax + edx], bl
mov ebx, ebp
dec edx
cmp ebp, edx
jne 0x433230
add ecx, edx
add eax, edx
add edx, dword [esp + 8]
jmp 0x43329e
add esi, ecx
jmp 0x43314d
mov ecx, ebp
shr ecx, 2
mov dword [esp + 4], ebx
mov ebx, edi
mov edx, dword [esp]
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov edx, ebp
and edx, 0xfffffffc
lea ebp, [ebx + edx]
mov ebx, dword [esp + 4]
add edx, dword [esp]
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov eax, edx
mov edi, ebp
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
test bl, 1
je 0x4332fd
and ebx, 2
movzx eax, byte [edx + ebx]
mov byte [ebp + ebx], al
jmp 0x4332fd
mov edx, dword [esp + 8]
mov edi, dword [esp + 4]
mov ebx, dword [esp]
sub ebx, edi
cmp ebx, 0xfffffff8
ja 0x4332fd
neg edx
xor edi, edi
nop
nop
nop
nop
movzx ebx, byte [ecx + edi]
mov byte [eax + edi], bl
movzx ebx, byte [ecx + edi - 1]
mov byte [eax + edi - 1], bl
movzx ebx, byte [ecx + edi - 2]
mov byte [eax + edi - 2], bl
movzx ebx, byte [ecx + edi - 3]
mov byte [eax + edi - 3], bl
movzx ebx, byte [ecx + edi - 4]
mov byte [eax + edi - 4], bl
movzx ebx, byte [ecx + edi - 5]
mov byte [eax + edi - 5], bl
movzx ebx, byte [ecx + edi - 6]
mov byte [eax + edi - 6], bl
movzx ebx, byte [ecx + edi - 7]
mov byte [eax + edi - 7], bl
add edi, 0xfffffff8
cmp edx, edi
jne 0x4332b0
push dword [esp]
call fcn.004090b0
add esp, 4
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x10]
mov ebp, ebx
mov dword [ebx], edi
mov eax, dword [esp + 0xc]
lea eax, [edi + eax*4]
mov ebx, edi
mov ecx, dword [esp + 8]
add ebx, ecx
mov dword [esp + 0xc], eax
mov dword [ebp + 8], eax
mov eax, edi
mov dword [esp], edi
mov edx, dword [esp + 0x44]
mov edi, ebx
mov ebx, ebp
mov ebp, dword [esp + 0x14]
jmp 0x43313d
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret