Function at 0x4323b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
cmp esi, 0x24
ja 0x432420
cmp esi, 1
je 0x432420
mov ebx, dword [esp + 0x3c]
jmp 0x4323d1
inc ebx
movzx eax, byte [ebx]
movzx ecx, al
lea edx, [ecx - 9]
cmp edx, 5
jb 0x4323d0
cmp ecx, 0x20
je 0x4323d0
cmp ecx, 0x2b
je 0x4323ee
cmp ecx, 0x2d
jne 0x432435
inc ebx
cmp al, 0x2b
sete dl
test esi, esi
jle 0x43243b
mov ecx, esi
cmp esi, 0x10
jne 0x432451
mov ecx, 0x10
cmp byte [ebx], 0x30
jne 0x432451
movzx eax, byte [ebx + 1]
and al, 0xdf
xor ecx, ecx
cmp al, 0x58
sete cl
lea ebx, [ebx + ecx*2]
mov ecx, 0x10
jmp 0x432451
xor edi, edi
test eax, eax
je 0x432603
mov dword [eax], 0x16
jmp 0x432603
mov dl, 1
test esi, esi
jg 0x4323f8
xor eax, eax
xor ecx, ecx
cmp byte [ebx], 0x30
setne al
sete cl
add ebx, ecx
lea ecx, [eax*2 + 8]
mov byte [esp + 7], dl
movzx eax, dl
mov esi, SysReAllocString
mov dword [esp + 0x1c], eax
sub esi, eax
mov dword [esp + 0xc], 0
mov eax, esi
xor edx, edx
div ecx
mov dword [esp + 0x24], eax
mov dword [esp + 8], esi
not esi
mov dword [esp + 0x20], esi
xor ebp, ebp
mov dword [esp], 0
mov dword [esp + 0x10], ecx
mov esi, dword [esp + 0x3c]
inc ebx
jmp 0x4324c0
mov ebp, esi
mov dword [esp], 0
mov eax, dword [esp + 0x48]
test eax, eax
mov ecx, edx
je 0x43259d
mov dword [eax], 0x22
mov esi, ebx
inc ebx
mov edi, ebp
movsx eax, byte [ebx - 1]
lea ebp, [eax - 0x30]
cmp ebp, 0xa
jb 0x4324eb
mov ecx, eax
and ecx, 0xffffffdf
add ecx, 0xffffffbf
cmp ecx, 0x19
mov ecx, dword [esp + 0x10]
ja 0x4325d2
or al, 0x20
movsx ebp, al
add ebp, 0xffffffa9
cmp ebp, ecx
jge 0x4325d2
mov edx, ecx
mov eax, edi
mov esi, dword [esp + 8]
xor eax, esi
mov ecx, dword [esp]
or eax, ecx
je 0x4324a0
mov dword [esp + 0x18], ebx
mov eax, edi
mov esi, edx
mul edx
cmp dword [esp + 0x24], edi
mov edi, 0
sbb edi, ecx
setae bl
jae 0x432530
mov dword [esp], 0
mov eax, dword [esp + 8]
mov edx, eax
jmp 0x43253c
imul ecx, esi
add edx, ecx
mov dword [esp], edx
mov edx, dword [esp + 8]
mov dword [esp + 0x14], eax
mov esi, ebp
sar esi, 0x1f
mov edi, esi
mov eax, 0xffffffff
and edi, eax
mov eax, ebp
and eax, dword [esp + 0x20]
mov ecx, ebp
not ecx
and ecx, edx
sub ecx, eax
mov eax, 0
sbb eax, edi
mov edi, dword [esp + 0x14]
add ebp, edi
mov edx, dword [esp]
adc esi, edx
cmp ecx, edi
sbb eax, edx
setae al
mov ecx, dword [esp + 8]
jae 0x43257f
xor esi, esi
mov ebp, ecx
and bl, al
mov eax, dword [esp + 0x48]
test eax, eax
mov dword [esp], esi
je 0x4325b7
test bl, bl
jne 0x4325b7
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
jmp 0x4324b7
mov dword [esp + 0xc], 0x22
mov eax, ebx
mov ebp, esi
mov esi, ebx
mov dword [esp], 0
jmp 0x432490
test bl, bl
mov ecx, dword [esp + 0x10]
jne 0x4325c7
mov dword [esp + 0xc], 0x22
mov ebx, dword [esp + 0x18]
mov esi, ebx
jmp 0x432490
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4325dc
mov dword [eax], esi
mov ecx, dword [esp + 0x48]
test ecx, ecx
mov eax, dword [esp + 0xc]
je 0x4325ea
mov eax, dword [ecx]
cmp eax, 0x22
jne 0x4325fa
mov edi, SysReAllocString
sub edi, dword [esp + 0x1c]
jmp 0x432603
cmp byte [esp + 7], 0
jne 0x432603
neg edi
mov eax, edi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret