Function at 0x431480
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
cmp esi, 0x24
ja 0x4314fd
cmp esi, 1
je 0x4314fd
mov ebx, dword [esp + 0x40]
mov dword [esp + 4], ebx
jmp 0x4314b1
inc ebx
movzx eax, byte [ebx]
movzx ecx, al
lea edx, [ecx - 9]
cmp edx, 5
jb 0x4314b0
cmp ecx, 0x20
je 0x4314b0
cmp ecx, 0x2b
mov edx, esi
je 0x4314d0
cmp ecx, 0x2d
jne 0x431513
inc ebx
cmp al, 0x2b
sete byte [esp + 3]
test edx, edx
jle 0x43151c
cmp edx, 0x10
jne 0x431534
cmp byte [ebx], 0x30
jne 0x4314f6
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 0x431536
xor edi, edi
test ebp, ebp
je 0x4316ec
mov dword [ebp], 0x16
jmp 0x4316ec
mov byte [esp + 3], 1
test edx, edx
jg 0x4314dc
xor eax, eax
xor ecx, ecx
cmp byte [ebx], 0x30
setne al
sete cl
add ebx, ecx
lea ecx, [eax*2 + 8]
jmp 0x431536
mov ecx, edx
movzx eax, byte [esp + 3]
mov esi, SysReAllocString
mov dword [esp + 0x1c], eax
sub esi, eax
mov dword [esp + 0x10], 0
mov eax, esi
xor edx, edx
div ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], esi
not esi
mov dword [esp + 0x20], esi
xor esi, esi
mov dword [esp + 8], 0
mov edx, ecx
mov dword [esp + 0x28], ecx
inc ebx
jmp 0x4315a2
mov esi, ecx
mov dword [esp + 8], 0
mov ebp, dword [esp + 0x4c]
test ebp, ebp
je 0x431686
mov dword [ebp], 0x22
mov dword [esp + 4], ebx
inc ebx
mov edi, esi
movsx eax, byte [ebx - 1]
lea esi, [eax - 0x30]
cmp esi, 0xa
jb 0x4315ce
mov ecx, eax
and ecx, 0xffffffdf
add ecx, 0xffffffbf
cmp ecx, 0x19
ja 0x4316ba
mov ecx, eax
not ecx
or ecx, 0xffffffdf
lea esi, [eax + ecx]
add esi, 0xffffffca
cmp esi, edx
jge 0x4316ba
mov eax, edi
mov ecx, dword [esp + 0xc]
xor eax, ecx
mov ebp, dword [esp + 8]
or eax, ebp
je 0x431580
mov dword [esp + 0x18], ebx
mov eax, edi
mov ecx, edx
mul edx
cmp dword [esp + 0x24], edi
mov edi, 0
sbb edi, ebp
setae bl
jae 0x431610
mov dword [esp + 4], 0
mov eax, dword [esp + 0xc]
mov edx, eax
jmp 0x43161d
imul ebp, ecx
add edx, ebp
mov dword [esp + 4], edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x14], eax
mov edi, esi
sar edi, 0x1f
mov eax, edi
mov ecx, 0xffffffff
and eax, ecx
mov ecx, esi
and ecx, dword [esp + 0x20]
mov ebp, esi
not ebp
and ebp, edx
sub ebp, ecx
mov ecx, 0
sbb ecx, eax
mov eax, dword [esp + 0x14]
add esi, eax
mov edx, dword [esp + 4]
adc edi, edx
mov dword [esp + 8], edi
cmp ebp, eax
sbb ecx, edx
setae al
mov ecx, dword [esp + 0xc]
jae 0x43166b
mov dword [esp + 8], 0
mov esi, ecx
and bl, al
mov ebp, dword [esp + 0x4c]
test ebp, ebp
mov edx, dword [esp + 0x28]
je 0x4316a1
test bl, bl
jne 0x4316a1
mov ebx, dword [esp + 0x18]
jmp 0x431596
mov dword [esp + 0x10], 0x22
mov dword [esp + 4], ebx
mov esi, ecx
mov dword [esp + 8], 0
jmp 0x431572
test bl, bl
jne 0x4316ad
mov dword [esp + 0x10], 0x22
mov ebx, dword [esp + 0x18]
mov dword [esp + 4], ebx
jmp 0x431572
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4316c8
mov ecx, dword [esp + 4]
mov dword [eax], ecx
test ebp, ebp
mov eax, dword [esp + 0x10]
je 0x4316d3
mov eax, dword [ebp]
cmp eax, 0x22
jne 0x4316e3
mov edi, SysReAllocString
sub edi, dword [esp + 0x1c]
jmp 0x4316ec
cmp byte [esp + 3], 0
jne 0x4316ec
neg edi
mov eax, edi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret