Function at 0x412290
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
call 0x41229e
pop eax
mov byte [ebp - 0x54], 0x81
mov byte [ebp - 0x48], 0x81
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x2c], ecx
mov cl, 0x81
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
movzx eax, byte [ebp - 0x4a]
mov ebx, dword [ebp - 0x4e]
mov esi, dword [ebp - 0x52]
mov dword [ebp - 0x10], eax
movzx eax, byte [ebp - 0x49]
mov dword [ebp - 0x28], eax
movzx eax, byte [ebp - 0x53]
mov dword [ebp - 0x14], eax
jmp 0x412308
mov dword [ebp - 0x14], eax
xor eax, eax
xor edi, edi
xor ebx, ebx
mov ecx, dword [ebp - 0x24]
shld ebx, edi, 0x10
shl edi, 0x10
movzx esi, ax
or esi, edi
cmp cl, 0x81
je 0x412327
movzx eax, cl
cmp eax, 0x80
je 0x41253c
mov eax, dword [ebp - 0x28]
cmp byte [ebp - 0x10], al
jb 0x412571
test edx, edx
je 0x4125b2
cmp edx, dword [ebp - 0x34]
je 0x4125b2
movzx ecx, byte [edx]
movzx edi, cl
test cl, cl
js 0x412380
inc edx
mov al, 2
cmp edi, 0x27
mov dword [ebp - 0x28], eax
ja 0x412427
mov ecx, dword [edi*4 + 0x4125bc]
mov al, 0x30
mov dword [ebp - 0x10], 0
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov al, 0x5c
mov dword [ebp - 0x24], eax
xor eax, eax
add ecx, dword [ebp - 0x30]
jmp ecx
mov esi, edx
movzx edx, byte [edx + 1]
and edi, 0x1f
and edx, 0x3f
cmp cl, 0xdf
jbe 0x4123db
movzx eax, byte [esi + 2]
shl edx, 6
and eax, 0x3f
or eax, edx
cmp cl, 0xf0
jb 0x41240f
movzx ecx, byte [esi + 3]
and edi, 7
shl eax, 6
mov edx, edi
shl edx, 0x12
and ecx, 0x3f
or ecx, eax
mov edi, ecx
or edi, edx
cmp edi, 0x110000
je 0x4125b2
mov edx, esi
add edx, 4
mov al, 2
cmp edi, 0x27
mov dword [ebp - 0x28], eax
jbe 0x412351
jmp 0x412427
shl edi, 6
add esi, 2
or edi, edx
jmp 0x412417
shl edi, 0xc
add esi, 3
or edi, eax
mov edx, esi
mov al, 2
cmp edi, 0x27
mov dword [ebp - 0x28], eax
jbe 0x412351
cmp edi, 0x5c
jne 0x41243f
mov al, 0x5c
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], eax
mov al, 0x5c
jmp 0x4122f0
mov esi, edx
cmp edi, 0x2ff
jbe 0x412456
push edi
call fcn.00429da0
add esp, 4
test al, al
jne 0x412478
mov al, 0x80
mov dword [ebp - 0x24], eax
push edi
call fcn.00429070
add esp, 4
test al, al
je 0x412478
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x28], eax
mov edx, esi
jmp 0x4122f9
mov eax, edi
mov byte [ebp - 0x1c], 0
mov word [ebp - 0x1e], 0
or eax, 1
bsr eax, eax
xor eax, 0x1c
shr eax, 2
lea ecx, [eax - 2]
mov dword [ebp - 0x10], ecx
mov ecx, edi
shr ecx, 0x14
movzx ecx, byte [ecx + str.0123456789abcdef]
mov byte [ebp - 0x1b], cl
mov ecx, edi
shr ecx, 0x10
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdef]
mov byte [ebp - 0x1a], cl
mov ecx, edi
shr ecx, 0xc
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdef]
mov byte [ebp - 0x19], cl
mov ecx, edi
shr ecx, 8
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdef]
mov byte [ebp - 0x18], cl
mov ecx, edi
and edi, 0xf
shr ecx, 4
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdef]
mov byte [ebp - 0x17], cl
movzx ecx, byte [edi + str.0123456789abcdef]
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], 0x7d
mov word [ebp + eax - 0x20], 0x755c
mov byte [ebp + eax - 0x1e], 0x7b
mov eax, dword [ebp - 0x1c]
movzx edx, byte [ebp - 0x1d]
movzx ecx, byte [ebp - 0x1e]
mov ebx, dword [ebp - 0x18]
mov edi, eax
mov dword [ebp - 0x14], edx
mov edx, esi
shrd edi, ebx, 0x10
shr ebx, 0x10
cmp cl, 0x81
je 0x4125b2
mov dword [ebp - 0x24], ecx
mov cl, 0xa
mov dword [ebp - 0x28], ecx
jmp 0x4122f9
mov eax, ebx
xorps xmm0, xmm0
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x10], 0
shld eax, esi, 0x10
xor esi, esi
movsd qword [ebp - 0x54], xmm0
jmp 0x412595
mov edi, ecx
mov byte [ebp - 0x54], cl
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x24], edx
mov byte [ebp - 0x53], al
movzx eax, cl
mov dword [ebp - 0x52], esi
mov dword [ebp - 0x4e], ebx
inc cl
movzx eax, byte [ebp + eax - 0x54]
mov dword [ebp - 0x10], ecx
push eax
push dword [ebp - 0x2c]
call fcn.004278e0
add esp, 8
mov edx, dword [ebp - 0x24]
test al, al
mov ecx, edi
je 0x412308
mov al, 1
jmp 0x4125b4
xor eax, eax
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret