Function at 0x434e50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
add eax, esi
sub eax, dword [ebp + 0x18]
mov dword [ecx + 8], 0
mov dword [ecx + 4], 0
mov dword [ecx], 0
mov dword [esp + 0x2c], eax
cmp eax, esi
jbe 0x43517c
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
dec eax
mov dword [esp + 0x20], eax
xor eax, eax
xor ebx, ebx
jmp 0x434ecf
mov edi, ebx
sub edi, eax
sar edi, 2
mov ecx, dword [ebp + 8]
cmp ebx, dword [ecx + 8]
je 0x434f19
mov ebx, dword [ebp + 8]
mov dword [eax + edi*4], esi
mov ecx, ebx
mov ebx, dword [ebx + 4]
add ebx, 4
mov dword [ecx + 4], ebx
add esi, dword [esp + 0x20]
inc esi
cmp esi, dword [esp + 0x2c]
jae 0x43517c
test edx, edx
je 0x434ed8
cmp byte [edx], 0x3f
je 0x434ee2
movzx ecx, byte [esi]
mov edi, dword [ebp + 0x14]
cmp cl, byte [edi]
jne 0x434ec4
cmp dword [ebp + 0x18], 2
jb 0x434ea0
xor ecx, ecx
jmp 0x434f0c
movzx edx, byte [esi + ecx + 1]
mov edi, dword [ebp + 0x14]
cmp dl, byte [edi + ecx + 1]
mov edx, dword [ebp + 0x1c]
jne 0x4350ef
inc ecx
cmp dword [esp + 0x20], ecx
je 0x434ea0
test edx, edx
je 0x434ef0
cmp byte [edx + ecx + 1], 0x3f
jne 0x434ef0
jmp 0x434f05
lea ecx, [edi + 1]
mov edx, eax
not edx
and edx, ebx
add edx, edx
xor eax, ebx
sub edx, eax
sar edx, 2
mov eax, edx
shr eax, 1
add eax, edx
cmp eax, ecx
ja 0x434f37
mov eax, ecx
mov dword [esp + 0x28], edi
mov ecx, 0xffffffff
cmp eax, 0x40000000
mov ebx, dword [ebp + 8]
jae 0x434f51
lea ecx, [eax*4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
mov word [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0xb3b4b566
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x14]
cmp ecx, 0x19
ja 0x434fe4
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
movzx ecx, byte [esp + ecx + 0x30]
lea edi, [edx + 0x49]
and edi, ecx
mov eax, 0xb6
sub eax, edx
or eax, ecx
add eax, edi
sub ecx, eax
mov eax, dword [esp + 0x14]
mov byte [esp + eax + 0x30], cl
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, 0x1a
jb 0x434fb0
mov eax, dword [esp + 0x30]
mov eax, dword fs:[eax]
push dword [esp + 0x10]
push 0
push dword [eax + 0x18]
call dword [0x44851c]
mov edi, dword [ebx]
test edi, edi
je 0x43515c
mov edx, dword [ebx + 4]
mov ecx, edx
sub ecx, edi
lea ebx, [ecx + 0x7a6b66f3]
mov dword [esp + 0xc], ebx
cmp eax, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edi
jbe 0x4350f6
cmp edx, eax
jbe 0x4350f6
test ecx, ecx
je 0x435149
mov ebx, ecx
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
lea ecx, [eax + edi]
add ecx, 0x8594990c
mov eax, dword [esp + 0x1c]
add edi, eax
add edi, 0x8594990c
mov eax, dword [esp + 0x10]
not eax
add eax, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], ebx
mov eax, ebx
and eax, 7
je 0x435084
neg eax
xor edx, edx
nop
movzx ebx, byte [ecx + edx]
mov byte [edi + edx], bl
dec edx
cmp eax, edx
jne 0x435070
add edi, edx
add dword [esp + 0xc], edx
add ecx, edx
mov eax, dword [esp + 0x18]
cmp eax, 7
mov ebx, dword [esp + 0xc]
jb 0x435149
neg ebx
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [ecx + edx]
mov byte [edi + edx], al
movzx eax, byte [ecx + edx - 1]
mov byte [edi + edx - 1], al
movzx eax, byte [ecx + edx - 2]
mov byte [edi + edx - 2], al
movzx eax, byte [ecx + edx - 3]
mov byte [edi + edx - 3], al
movzx eax, byte [ecx + edx - 4]
mov byte [edi + edx - 4], al
movzx eax, byte [ecx + edx - 5]
mov byte [edi + edx - 5], al
movzx eax, byte [ecx + edx - 6]
mov byte [edi + edx - 6], al
movzx eax, byte [ecx + edx - 7]
mov byte [edi + edx - 7], al
add edx, 0xfffffff8
cmp ebx, edx
jne 0x4350a0
jmp 0x435149
add esi, ecx
jmp 0x434ec4
mov edx, eax
mov ebx, ecx
shr ecx, 2
mov eax, edi
mov edi, edx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
and ebx, 0xfffffffc
add ebx, edx
mov edx, 0x7a6b66f2
mov eax, dword [esp + 0xc]
sub edx, eax
or edx, 3
lea ecx, [eax + edx]
add ecx, 0x8594990e
mov dword [esp + 0xc], ecx
not edx
add edx, dword [esp + 0x10]
shr ecx, 1
mov eax, edx
mov edi, ebx
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov ecx, dword [esp + 0xc]
test cl, 1
je 0x435149
and ecx, 0xfffffffe
movzx eax, byte [edx + ecx]
mov byte [ebx + ecx], al
push dword [esp + 0x10]
call fcn.00433c00
add esp, 4
mov eax, dword [esp + 0x1c]
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov edx, dword [esp + 0x28]
lea ecx, [eax + edx*4]
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x24]
lea ecx, [eax + ecx*4]
mov dword [ebx + 8], ecx
mov edi, edx
mov edx, dword [ebp + 0x1c]
jmp 0x434eb2
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret