Function at 0x1f1940
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 0x1f19b0
cmp esi, 1
je 0x1f19b0
mov ebx, dword [esp + 0x3c]
jmp 0x1f1961
inc ebx
movzx eax, byte [ebx]
movzx ecx, al
lea edx, [ecx - 9]
cmp edx, 5
jb 0x1f1960
cmp ecx, 0x20
je 0x1f1960
cmp ecx, 0x2b
je 0x1f197e
cmp ecx, 0x2d
jne 0x1f19c5
cmp al, 0x2b
sete dl
inc ebx
test esi, esi
jle 0x1f19cb
mov ecx, esi
cmp esi, 0x10
jne 0x1f19e1
mov ecx, 0x10
cmp byte [ebx], 0x30
jne 0x1f19e1
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 0x1f19e1
xor edi, edi
test eax, eax
je 0x1f1b93
mov dword [eax], 0x16
jmp 0x1f1b93
mov dl, 1
test esi, esi
jg 0x1f1988
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 0x1f1a50
mov ebp, esi
mov dword [esp], 0
mov eax, dword [esp + 0x48]
test eax, eax
mov ecx, edx
je 0x1f1b2d
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 0x1f1a7b
mov ecx, eax
and ecx, 0xffffffdf
add ecx, 0xffffffbf
cmp ecx, 0x19
mov ecx, dword [esp + 0x10]
ja 0x1f1b62
or al, 0x20
movsx ebp, al
add ebp, 0xffffffa9
cmp ebp, ecx
jge 0x1f1b62
mov edx, ecx
mov eax, edi
mov esi, dword [esp + 8]
xor eax, esi
mov ecx, dword [esp]
or eax, ecx
je 0x1f1a30
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 0x1f1ac0
mov dword [esp], 0
mov eax, dword [esp + 8]
mov edx, eax
jmp 0x1f1acc
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 0x1f1b0f
xor esi, esi
mov ebp, ecx
and bl, al
mov eax, dword [esp + 0x48]
test eax, eax
mov dword [esp], esi
je 0x1f1b47
test bl, bl
jne 0x1f1b47
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
jmp 0x1f1a47
mov dword [esp + 0xc], 0x22
mov eax, ebx
mov ebp, esi
mov esi, ebx
mov dword [esp], 0
jmp 0x1f1a20
test bl, bl
mov ecx, dword [esp + 0x10]
jne 0x1f1b57
mov dword [esp + 0xc], 0x22
mov ebx, dword [esp + 0x18]
mov esi, ebx
jmp 0x1f1a20
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1f1b6c
mov dword [eax], esi
mov ecx, dword [esp + 0x48]
test ecx, ecx
mov eax, dword [esp + 0xc]
je 0x1f1b7a
mov eax, dword [ecx]
cmp eax, 0x22
jne 0x1f1b8a
mov edi, SysReAllocString
sub edi, dword [esp + 0x1c]
jmp 0x1f1b93
cmp byte [esp + 7], 0
jne 0x1f1b93
neg edi
mov eax, edi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret