Function at 0x43031a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4ba9c8
push 0x40a640
mov eax, dword fs:[0]
push eax
push ecx
push ecx
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x4bf2d4]
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 [0x4c3d07]
test eax, eax
je 0x430371
and dword [ebp - 0x50], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x50]
jmp 0x430514
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004301b0
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.004301b0
pop ecx
pop ecx
mov dword [ebp - 0x2c], eax
cmp dword [ebp + 0x10], 3
jne 0x4304fa
cmp dword [0x4c3350], 0x100
jge 0x4304fa
mov eax, dword [ebp - 0x28]
sub eax, dword [0x4c334c]
add eax, dword [0x4c3344]
mov dword [ebp - 0x20], eax
mov eax, dword [0x4c3350]
mov ecx, dword [ebp - 0x20]
mov dword [eax*8 + 0x4c3358], ecx
mov eax, dword [0x4c3350]
mov ecx, dword [ebp - 0x2c]
mov dword [eax*8 + 0x4c335c], ecx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x20], 0
jbe 0x4303fd
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.00430227
pop ecx
pop ecx
movzx eax, ax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x18
jb 0x4304ef
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 0x430437
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x1000
jge 0x4304ac
mov byte [ebp - 0x41], 0
and dword [ebp - 0x48], 0
jmp 0x430451
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 7
jge 0x430493
push dword [ebp - 0x20]
push dword [ebp + 8]
call fcn.004302a3
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 0x43044a
mov eax, dword [0x4c3348]
add eax, dword [ebp - 0x38]
mov cl, byte [ebp - 0x41]
mov byte [eax], cl
movzx eax, byte [ebp - 0x41]
test eax, eax
jne 0x4304aa
jmp 0x4304ac
jmp 0x430430
cmp dword [ebp - 0x38], 5
jle 0x4304db
push dword [0x4c3348]
call dword [fcn.0044e288]
test eax, eax
jle 0x4304db
mov byte [0x4c3d07], 1
and dword [ebp - 0x54], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x54]
jmp 0x430514
mov eax, dword [0x4c3348]
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 [0x4c3350]
inc eax
mov dword [0x4c3350], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x430511
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