Function at 0x67c784
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 0x67c817
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 0x67c80d
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 0x67c7f1
add dword [ebp - 0x2c], 1
cmp dword [ebp - 0x2c], 7
jle 0x67c7d4
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0
jmp 0x67c84b
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 0x67c82f
mov dword [ebp - 0x28], 0
jmp 0x67c9e6
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
add eax, edx
movzx eax, byte [eax]
test al, al
je 0x67c9de
mov dword [ebp - 0x20], 1
jmp 0x67c9c7
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 0x67c8fd
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 0x67c9c3
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 0x67c9ad
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 0x67c9a3
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x3c]
add eax, edx
movzx eax, byte [eax]
test al, al
jne 0x67c994
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x3c]
add eax, edx
mov byte [eax], 1
jmp 0x67c9c3
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 0x67c978
jmp 0x67c9c3
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 0x67c9e1
add dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x28]
cmp dword [ebp - 0x20], eax
jge 0x67c9e2
cmp dword [ebp - 0x20], 6
jle 0x67c87c
jmp 0x67c9e2
nop
jmp 0x67c9e2
nop
add dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x10]
jl 0x67c85d
nop
mov eax, dword [ebp - 0xc]
xor eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
je 0x67ca03
call sub.libssp_0.dll___stack_chk_fail
add esp, 0x44
pop ebx
pop ebp
ret