Function at 0x4308ba
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4bd928
push 0x40a700
mov eax, dword fs:[0]
push eax
push ecx
push ecx
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x4c12d4]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
movzx eax, byte [0x4c84d3]
test eax, eax
je 0x430911
and dword [ebp - 0x50], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x50]
jmp 0x430ab4
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00430750
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
add eax, 4
push eax
push dword [ebp + 8]
call fcn.00430750
pop ecx
pop ecx
mov dword [ebp - 0x2c], eax
cmp dword [ebp + 0x10], 3
jne 0x430a9a
cmp dword [0x4c7b34], 0x100
jge 0x430a9a
mov eax, dword [ebp - 0x28]
sub eax, dword [0x4c7b30]
add eax, dword [0x4c7b28]
mov dword [ebp - 0x20], eax
mov eax, dword [0x4c7b34]
mov ecx, dword [ebp - 0x20]
mov dword [eax*8 + 0x4c7b38], ecx
mov eax, dword [0x4c7b34]
mov ecx, dword [ebp - 0x2c]
mov dword [eax*8 + 0x4c7b3c], ecx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x20], 0
jbe 0x43099d
mov eax, dword [ebp - 0x20]
add eax, 0x30
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
sub eax, 0x30
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x30]
add eax, 0xe
push eax
push dword [ebp + 8]
call fcn.004307c7
pop ecx
pop ecx
movzx eax, ax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x18
jb 0x430a8f
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x40], eax
and dword [ebp - 0x38], 0
jmp 0x4309d7
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x1000
jge 0x430a4c
mov byte [ebp - 0x41], 0
and dword [ebp - 0x48], 0
jmp 0x4309f1
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 7
jge 0x430a33
push dword [ebp - 0x20]
push dword [ebp + 8]
call fcn.00430843
pop ecx
pop ecx
mov byte [ebp - 0x49], al
movzx eax, byte [ebp - 0x49]
and eax, 1
mov byte [ebp - 0x49], al
movzx eax, byte [ebp - 0x49]
mov ecx, dword [ebp - 0x48]
shl eax, cl
mov byte [ebp - 0x49], al
movzx eax, byte [ebp - 0x49]
movzx ecx, byte [ebp - 0x41]
or ecx, eax
mov byte [ebp - 0x41], cl
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
jmp 0x4309ea
mov eax, dword [0x4c7b2c]
add eax, dword [ebp - 0x38]
mov cl, byte [ebp - 0x41]
mov byte [eax], cl
movzx eax, byte [ebp - 0x41]
test eax, eax
jne 0x430a4a
jmp 0x430a4c
jmp 0x4309d0
cmp dword [ebp - 0x38], 5
jle 0x430a7b
push dword [0x4c7b2c]
call dword [fcn.0044f28c]
test eax, eax
jle 0x430a7b
mov byte [0x4c84d3], 1
and dword [ebp - 0x54], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x54]
jmp 0x430ab4
mov eax, dword [0x4c7b2c]
mov byte [eax], 0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x20], eax
mov eax, dword [0x4c7b34]
inc eax
mov dword [0x4c7b34], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x430ab1
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret