Function at 0x4ac364
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x44
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [ebp - 0xc], eax
xor eax, eax
mov eax, dword [ebp - 0x44]
sub eax, 1
mov edx, 1
mov ecx, eax
shl edx, cl
mov eax, edx
sub eax, 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0x100
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0
jmp 0x4ac3f7
mov eax, dword [ebp - 0x2c]
lea edx, [eax*4]
mov eax, dword [ebp - 0x40]
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0
jmp 0x4ac3ed
mov eax, dword [ebp - 0x18]
mov ecx, eax
mov eax, dword [ebp - 0x1c]
lea edx, [eax + 1]
mov dword [ebp - 0x1c], edx
and ecx, 1
mov edx, ecx
mov byte [eax], dl
add dword [ebp - 0x28], 1
shr dword [ebp - 0x18], 1
cmp dword [ebp - 0x28], 0x1d
jle 0x4ac3d1
add dword [ebp - 0x2c], 1
cmp dword [ebp - 0x2c], 7
jle 0x4ac3b4
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0
jmp 0x4ac42b
mov eax, dword [ebp - 0x18]
mov ecx, eax
mov eax, dword [ebp - 0x1c]
lea edx, [eax + 1]
mov dword [ebp - 0x1c], edx
and ecx, 1
mov edx, ecx
mov byte [eax], dl
add dword [ebp - 0x28], 1
shr dword [ebp - 0x18], 1
cmp dword [ebp - 0x28], 0xf
jle 0x4ac40f
mov dword [ebp - 0x28], 0
jmp 0x4ac5c6
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
add eax, edx
movzx eax, byte [eax]
test al, al
je 0x4ac5be
mov dword [ebp - 0x20], 1
jmp 0x4ac5a7
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
add eax, edx
movzx eax, byte [eax]
movsx edx, al
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
add eax, ecx
mov ecx, eax
mov eax, dword [ebp - 0x3c]
add eax, ecx
movzx eax, byte [eax]
movsx ebx, al
mov eax, dword [ebp - 0x20]
mov ecx, eax
shl ebx, cl
mov eax, ebx
add eax, edx
cmp dword [ebp - 0x14], eax
jl 0x4ac4dd
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
add eax, edx
movzx edx, byte [eax]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
add eax, ecx
mov ecx, eax
mov eax, dword [ebp - 0x3c]
add eax, ecx
movzx eax, byte [eax]
movsx ebx, al
mov eax, dword [ebp - 0x20]
mov ecx, eax
shl ebx, cl
mov eax, ebx
mov ebx, eax
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
add eax, ecx
add edx, ebx
mov byte [eax], dl
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
add eax, edx
mov edx, eax
mov eax, dword [ebp - 0x3c]
add eax, edx
mov byte [eax], 0
jmp 0x4ac5a3
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
add eax, edx
movzx eax, byte [eax]
movsx edx, al
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
add eax, ecx
mov ecx, eax
mov eax, dword [ebp - 0x3c]
add eax, ecx
movzx eax, byte [eax]
movsx ebx, al
mov eax, dword [ebp - 0x20]
mov ecx, eax
shl ebx, cl
mov eax, ebx
sub edx, eax
mov eax, dword [ebp - 0x14]
neg eax
cmp edx, eax
jl 0x4ac58d
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
add eax, edx
movzx edx, byte [eax]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
add eax, ecx
mov ecx, eax
mov eax, dword [ebp - 0x3c]
add eax, ecx
movzx eax, byte [eax]
movsx ebx, al
mov eax, dword [ebp - 0x20]
mov ecx, eax
shl ebx, cl
mov eax, ebx
mov ebx, eax
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
add eax, ecx
sub edx, ebx
mov byte [eax], dl
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
add eax, edx
mov dword [ebp - 0x24], eax
jmp 0x4ac583
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x3c]
add eax, edx
movzx eax, byte [eax]
test al, al
jne 0x4ac574
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x3c]
add eax, edx
mov byte [eax], 1
jmp 0x4ac5a3
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x3c]
add eax, edx
mov byte [eax], 0
add dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x10]
jl 0x4ac558
jmp 0x4ac5a3
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
add eax, edx
mov edx, eax
mov eax, dword [ebp - 0x3c]
add eax, edx
movzx eax, byte [eax]
test al, al
jne 0x4ac5c1
add dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x28]
cmp dword [ebp - 0x20], eax
jge 0x4ac5c2
cmp dword [ebp - 0x20], 6
jle 0x4ac45c
jmp 0x4ac5c2
nop
jmp 0x4ac5c2
nop
add dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x10]
jl 0x4ac43d
nop
mov eax, dword [ebp - 0xc]
xor eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
je 0x4ac5e3
call sub.libssp_0.dll___stack_chk_fail
add esp, 0x44
pop ebx
pop ebp
ret