Function at 0xeaa680
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x3c
mov esi, dword [eax + 0x2c]
mov eax, dword [eax + 0x74]
lea ecx, [esi - 0x106]
mov dword [esp + 0x24], ecx
mov ecx, esi
neg ecx
lea edx, [esi + esi]
add ecx, ecx
mov dword [esp + 0x28], edx
mov edx, esi
mov dword [esp + 0x2c], ecx
jmp 0xeaa6fc
test edi, edi
jne 0xeaa870
add eax, ecx
cmp eax, 2
mov dword [ebx + 0x74], eax
jbe 0xeaa6ec
mov ecx, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx edi, byte [ecx + edx]
mov dword [ebx + 0x48], edi
movzx edx, byte [ecx + edx + 1]
mov ecx, dword [ebx + 0x58]
shl edi, cl
xor edx, edi
and edx, dword [ebx + 0x54]
cmp eax, 0x105
mov dword [ebx + 0x48], edx
ja 0xeaa818
mov edx, dword [ebx]
mov edx, dword [edx + 4]
test edx, edx
je 0xeaa818
mov edx, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x6c]
add edx, dword [esp + 0x24]
sub edi, eax
sub edi, ecx
cmp ecx, edx
mov dword [esp + 0x1c], ecx
jae 0xeaa780
mov ebp, dword [ebx]
mov edx, dword [ebp + 4]
test edx, edx
je 0xeaa810
mov ecx, dword [ebx + 0x38]
xor eax, eax
cmp edi, edx
mov dword [esp + 0x20], ecx
mov ecx, dword [ebx + 0x74]
jb 0xeaa6b0
mov dword [ebp + 4], eax
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
je 0xeaa888
cmp eax, 2
je 0xeaa8f8
mov eax, dword [ebp]
add ecx, dword [esp + 0x1c]
add ecx, dword [esp + 0x20]
mov dword [esp + 8], edx
mov dword [esp + 0x14], edx
mov dword [esp], ecx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x14]
add dword [ebp], edx
add dword [ebp + 8], edx
mov ecx, dword [ebx + 0x74]
mov eax, edx
jmp 0xeaa6b8
mov eax, dword [ebx + 0x38]
mov dword [esp + 8], esi
lea edx, [eax + esi]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x4c]
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x5c], esi
sub edx, esi
mov dword [esp + 0x1c], edx
mov ecx, eax
mov dword [ebx + 0x6c], edx
lea edx, [eax + eax]
neg ecx
add edx, dword [ebx + 0x44]
lea ecx, [edx + ecx*2]
movzx edx, word [ecx + eax*2 - 2]
mov ebp, edx
sub ebp, esi
cmp esi, edx
mov edx, 0
cmova ebp, edx
mov word [ecx + eax*2 - 2], bp
sub eax, 1
jne 0xeaa7b8
mov ecx, dword [esp + 0x28]
mov eax, esi
add ecx, dword [ebx + 0x40]
add ecx, dword [esp + 0x2c]
movzx edx, word [ecx + eax*2 - 2]
mov ebp, edx
sub ebp, esi
cmp esi, edx
mov edx, 0
cmova ebp, edx
mov word [ecx + eax*2 - 2], bp
sub eax, 1
jne 0xeaa7e2
mov ebp, dword [ebx]
add edi, esi
mov edx, dword [ebp + 4]
test edx, edx
jne 0xeaa71f
nop
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebx + 0x16c0]
mov edi, dword [ebx + 0x3c]
cmp edx, edi
jae 0xeaa810
mov esi, dword [ebx + 0x6c]
add esi, eax
cmp edx, esi
jae 0xeaa8b6
mov eax, edi
mov edi, 0x102
sub eax, esi
cmp eax, 0x102
cmovbe edi, eax
mov eax, dword [ebx + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
add eax, esi
add esi, edi
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [ebx + 0x16c0], esi
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, edx
mov edx, edi
sub eax, edi
mov dword [ebp + 4], eax
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0xeaa741
mov dword [esp + 8], edx
mov eax, dword [ebp]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov dword [esp], eax
call fcn.00eadfb0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [ebp + 0x30], eax
jmp 0xeaa74a
lea eax, [esi + 0x102]
cmp edx, eax
jae 0xeaa810
sub esi, edx
sub edi, edx
add esi, 0x102
cmp esi, edi
cmova esi, edi
add edx, dword [ebx + 0x38]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], edx
call sub.msvcrt.dll_memset
add dword [ebx + 0x16c0], esi
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], edx
mov eax, dword [ebp]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov dword [esp], eax
call fcn.00eadc40
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [ebp + 0x30], eax
jmp 0xeaa74a