Function at 0x4ac157
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [ebp - 0xc], eax
xor eax, eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
jmp 0x4ac210
mov eax, dword [ebp - 0x18]
lea edx, [eax*4]
mov eax, dword [ebp - 0x30]
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
jmp 0x4ac1c0
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov eax, dword [ebp - 0x1c]
lea edx, [eax + 1]
mov dword [ebp - 0x1c], edx
and ecx, 0xf
mov edx, ecx
mov byte [eax], dl
shr dword [ebp - 0x10], 4
add dword [ebp - 0x14], 1
cmp dword [ebp - 0x14], 6
jbe 0x4ac1a3
mov eax, dword [ebp - 0x18]
add eax, 1
lea edx, [eax*4]
mov eax, dword [ebp - 0x30]
add eax, edx
mov eax, dword [eax]
shl eax, 2
or dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
jmp 0x4ac206
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov eax, dword [ebp - 0x1c]
lea edx, [eax + 1]
mov dword [ebp - 0x1c], edx
and ecx, 0xf
mov edx, ecx
mov byte [eax], dl
shr dword [ebp - 0x10], 4
add dword [ebp - 0x14], 1
cmp dword [ebp - 0x14], 7
jbe 0x4ac1e9
add dword [ebp - 0x18], 2
cmp dword [ebp - 0x18], 7
jbe 0x4ac186
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov eax, dword [ebp - 0x1c]
lea edx, [eax + 1]
mov dword [ebp - 0x1c], edx
and ecx, 0xf
mov edx, ecx
mov byte [eax], dl
shr dword [ebp - 0x10], 4
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov eax, dword [ebp - 0x1c]
lea edx, [eax + 1]
mov dword [ebp - 0x1c], edx
and ecx, 0xf
mov edx, ecx
mov byte [eax], dl
shr dword [ebp - 0x10], 4
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov eax, dword [ebp - 0x1c]
lea edx, [eax + 1]
mov dword [ebp - 0x1c], edx
and ecx, 0xf
mov edx, ecx
mov byte [eax], dl
shr dword [ebp - 0x10], 4
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov eax, dword [ebp - 0x1c]
lea edx, [eax + 1]
mov dword [ebp - 0x1c], edx
and ecx, 0xf
mov edx, ecx
mov byte [eax], dl
shr dword [ebp - 0x10], 4
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x18], 0
jmp 0x4ac32c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
add eax, edx
movzx ecx, byte [eax]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
add eax, edx
movzx edx, byte [ebp - 0x1d]
add edx, ecx
mov byte [eax], dl
mov eax, dword [ebp - 0x18]
lea edx, [eax + 1]
mov eax, dword [ebp - 0x2c]
add eax, edx
movzx edx, byte [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
add eax, ecx
movzx eax, byte [eax]
sar al, 4
mov ecx, eax
mov eax, dword [ebp - 0x18]
lea ebx, [eax + 1]
mov eax, dword [ebp - 0x2c]
add eax, ebx
add edx, ecx
mov byte [eax], dl
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
add eax, edx
movzx edx, byte [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
add eax, ecx
and edx, 0xf
mov byte [eax], dl
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
add eax, edx
movzx eax, byte [eax]
sar al, 3
mov byte [ebp - 0x1d], al
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
add eax, edx
movzx edx, byte [eax]
movsx eax, byte [ebp - 0x1d]
shl eax, 4
mov ebx, eax
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
add eax, ecx
sub edx, ebx
mov byte [eax], dl
add dword [ebp - 0x18], 1
cmp dword [ebp - 0x18], 0x3e
jbe 0x4ac297
mov eax, dword [ebp - 0x2c]
add eax, 0x3f
movzx ecx, byte [eax]
mov eax, dword [ebp - 0x2c]
add eax, 0x3f
movzx edx, byte [ebp - 0x1d]
add edx, ecx
mov byte [eax], dl
nop
mov eax, dword [ebp - 0xc]
xor eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
je 0x4ac35e
call sub.libssp_0.dll___stack_chk_fail
add esp, 0x34
pop ebx
pop ebp
ret