Function at 0x433ef0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
add eax, ebp
sub eax, dword [esp + 0x44]
mov dword [ebx + 8], 0
mov dword [ebx + 4], 0
mov dword [ebx], 0
mov dword [esp + 0x1c], eax
cmp eax, ebp
jbe 0x434191
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
lea esi, [eax - 1]
xor edi, edi
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
jmp 0x433f83
mov ebx, dword [esp]
mov edi, ebx
mov eax, dword [esp + 0xc]
sub edi, eax
mov ecx, edi
sar ecx, 2
cmp ebx, dword [esp + 0x10]
je 0x433fd9
mov ebx, dword [esp + 0x34]
mov edi, dword [esp]
mov dword [eax + ecx*4], ebp
add edi, 4
mov dword [ebx + 4], edi
add ebp, esi
inc ebp
cmp ebp, dword [esp + 0x1c]
jae 0x434191
test edx, edx
je 0x433f8c
cmp byte [edx], 0x3f
je 0x433f98
movzx ecx, byte [ebp]
mov eax, dword [esp + 0x40]
cmp cl, byte [eax]
jne 0x433f78
mov dword [esp], edi
cmp dword [esp + 0x44], 2
jb 0x433f50
xor ecx, ecx
jmp 0x433fcc
movzx edx, byte [ebp + ecx + 1]
mov eax, dword [esp + 0x40]
cmp dl, byte [eax + ecx + 1]
mov edx, dword [esp + 0x48]
jne 0x434095
inc ecx
cmp esi, ecx
je 0x433f50
test edx, edx
je 0x433fb0
cmp byte [edx + ecx + 1], 0x3f
jne 0x433fb0
jmp 0x433fc7
mov dword [esp + 8], edi
lea eax, [ecx + 1]
mov edx, ecx
shr edx, 1
add edx, ecx
cmp edx, eax
ja 0x433fec
mov edx, eax
mov dword [esp + 0x18], ecx
mov eax, 0xffffffff
cmp edx, 0x40000000
mov ebx, dword [esp + 0x34]
jae 0x434008
lea eax, [edx*4]
mov dword [esp + 0x10], edx
push eax
call fcn.00432f20
add esp, 4
mov edx, dword [esp + 0xc]
test edx, edx
mov ecx, dword [esp]
mov dword [esp + 4], eax
je 0x434165
cmp eax, edx
jae 0x43409f
mov ebx, dword [esp + 8]
mov ecx, ebx
shr ecx, 2
mov eax, edx
mov edi, dword [esp + 4]
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, edx
mov edx, ebx
and ebx, 0xfffffffc
mov ecx, dword [esp + 4]
lea edi, [ecx + ebx]
add ebx, eax
mov eax, edx
and eax, 3
mov ecx, eax
shr ecx, 1
mov edx, ebx
mov dword [esp], ebx
mov dword [esp + 0x14], edi
mov edx, dword [esp]
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov edx, dword [esp + 8]
test dl, 1
je 0x434151
xor eax, 1
mov ecx, edx
or ecx, 2
and ecx, eax
and edx, 2
movzx eax, byte [ebx + ecx]
mov ecx, dword [esp + 0x14]
mov byte [ecx + edx], al
jmp 0x434151
add ebp, ecx
mov edi, dword [esp]
jmp 0x433f78
mov edi, dword [esp + 8]
test edi, edi
je 0x434151
mov edx, dword [esp + 0xc]
lea eax, [edx + edi]
dec eax
mov ebx, ecx
mov ecx, dword [esp + 4]
add ecx, edi
dec ecx
not edx
add edx, ebx
mov ebx, edi
and ebx, 7
je 0x4340f0
mov dword [esp], edx
neg ebx
xor edi, edi
nop
nop
movzx edx, byte [eax + edi]
mov byte [ecx + edi], dl
dec edi
cmp ebx, edi
jne 0x4340d0
mov ebx, dword [esp + 8]
add ebx, edi
add eax, edi
add ecx, edi
mov edx, dword [esp]
cmp edx, 7
jae 0x4340f9
jmp 0x434151
mov ebx, dword [esp + 8]
cmp edx, 7
jb 0x434151
neg ebx
xor edx, edx
nop
nop
nop
mov edi, ebx
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
mov ebx, edi
add edx, 0xfffffff8
cmp edi, edx
jne 0x434100
push dword [esp + 0xc]
call fcn.00432fd0
add esp, 4
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 4]
mov dword [ebx], eax
mov ecx, dword [esp + 0x18]
lea edi, [eax + ecx*4]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 4]
lea edx, [edx + eax*4]
mov eax, dword [esp + 4]
mov dword [esp + 0x10], edx
mov dword [ebx + 8], edx
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x48]
jmp 0x433f6d
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret