Function at 0x433760
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 0x4339f3
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
lea ebp, [eax - 1]
xor edi, edi
mov dword [esp + 4], 0
mov dword [esp + 0xc], 0
jmp 0x4337f5
mov ebx, edi
mov ecx, edi
mov edi, dword [esp + 4]
sub ebx, edi
cmp ecx, dword [esp + 0xc]
je 0x433849
mov eax, edi
mov edi, ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + ebx], esi
add edi, 4
mov dword [ecx + 4], edi
mov eax, dword [esp + 0x40]
add esi, eax
dec esi
mov ebx, ecx
inc esi
cmp esi, dword [esp + 0x18]
jae 0x4339f3
test edx, edx
je 0x4337fe
cmp byte [edx], 0x3f
je 0x433809
movzx ecx, byte [esi]
mov eax, dword [esp + 0x3c]
cmp cl, byte [eax]
jne 0x4337ea
cmp dword [esp + 0x40], 2
jb 0x4337c0
xor ecx, ecx
jmp 0x43383c
movzx edx, byte [esi + ecx + 1]
mov eax, dword [esp + 0x3c]
cmp dl, byte [eax + ecx + 1]
mov edx, dword [esp + 0x44]
jne 0x43395f
inc ecx
cmp ebp, ecx
je 0x4337c0
test edx, edx
je 0x433820
cmp byte [edx + ecx + 1], 0x3f
jne 0x433820
jmp 0x433837
mov dword [esp + 8], ebx
mov eax, ebx
sar eax, 2
inc eax
mov ebx, ecx
xor ebx, edi
not edi
and edi, ecx
add edi, edi
sub edi, ebx
sar edi, 2
mov ebx, edi
shr ebx, 1
add ebx, edi
cmp ebx, eax
mov edi, ecx
ja 0x433870
mov ebx, eax
lea eax, [ebx*4]
push eax
call fcn.00409600
add esp, 4
mov edx, dword [esp + 4]
test edx, edx
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
je 0x4339cc
mov dword [esp + 0xc], ebx
cmp eax, edx
mov ebx, dword [esp + 8]
jbe 0x433966
cmp edi, eax
jbe 0x433966
test ebx, ebx
je 0x4339b5
mov dword [esp + 0x10], edi
mov edx, dword [esp + 8]
mov eax, dword [esp]
add eax, edx
dec eax
mov ecx, dword [esp + 4]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0x4338f4
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [ecx + edx]
mov byte [eax + edx], bl
dec edx
cmp edi, edx
jne 0x4338e0
add ecx, edx
add eax, edx
add edx, dword [esp + 8]
mov edi, dword [esp + 4]
sub edi, dword [esp + 0x10]
cmp edi, 0xfffffff8
ja 0x4339b5
neg edx
xor edi, edi
nop
nop
nop
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 0x433910
jmp 0x4339b5
add esi, ecx
jmp 0x4337ea
mov ecx, ebx
shr ecx, 2
mov eax, edx
mov edi, dword [esp]
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]
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 + 0x10], ebx
mov dword [esp + 0x14], edi
mov edx, dword [esp + 0x10]
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
test byte [esp + 8], 1
je 0x4339b5
movzx ecx, byte [ebx + eax - 1]
mov edx, dword [esp + 0x14]
mov byte [edx + eax - 1], cl
push dword [esp + 4]
call fcn.00409610
add esp, 4
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0xc]
mov eax, dword [esp]
mov dword [ecx], eax
lea edx, [eax + ebx*4]
mov edi, eax
mov ebx, dword [esp + 8]
add edi, ebx
mov dword [esp + 0xc], edx
mov dword [ecx + 8], edx
mov eax, dword [esp]
mov dword [esp + 4], eax
mov eax, dword [esp]
mov edx, dword [esp + 0x44]
jmp 0x4337d8
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret