Function at 0x78b36a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, eax
mov edx, dword [eax + 0x2c]
mov esi, dword [eax + 0x74]
lea eax, [edx + edx]
mov dword [ebp - 0x30], eax
mov eax, edx
lea ecx, reloc.MSVCRT.dll_strncpy
mov dword [ebp - 0x2c], ecx
jmp 0x78b3e1
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jne 0x78b5c0
xor eax, eax
lea esi, [eax + esi]
mov dword [ebx + 0x74], esi
cmp esi, 2
jbe 0x78b3d1
mov ecx, dword [ebx + 0x38]
mov eax, dword [ebx + 0x6c]
movzx edi, byte [ecx + eax]
mov dword [ebx + 0x48], edi
movzx eax, byte [ecx + eax + 1]
mov ecx, dword [ebx + 0x58]
shl edi, cl
xor eax, edi
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp esi, 0x105
ja 0x78b4e2
mov eax, dword [ebx]
mov eax, dword [eax + 4]
test eax, eax
je 0x78b4e2
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x6c]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebx + 0x3c]
sub ecx, esi
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x28]
sub dword [ebp - 0x1c], ecx
add eax, dword [ebp - 0x2c]
cmp ecx, eax
jae 0x78b466
mov ecx, dword [ebx]
mov dword [ebp - 0x24], ecx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x78b4da
mov edi, dword [ebx + 0x38]
mov esi, dword [ebx + 0x74]
cmp dword [ebp - 0x1c], eax
jb 0x78b38e
xor eax, eax
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 4], eax
mov eax, dword [ecx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
je 0x78b55e
cmp eax, 2
je 0x78b58a
add esi, dword [ebp - 0x28]
lea eax, [edi + esi]
mov ecx, dword [ebp - 0x24]
mov esi, dword [ecx]
mov edi, eax
mov ecx, dword [ebp - 0x20]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
add dword [eax], ecx
add dword [eax + 8], ecx
mov eax, ecx
mov esi, dword [ebx + 0x74]
jmp 0x78b39b
mov eax, dword [ebx + 0x38]
lea esi, [eax + edx]
mov edi, eax
mov ecx, edx
rep movsb byte es:[edi], byte [esi]
sub dword [ebx + 0x70], edx
mov eax, dword [ebx + 0x6c]
sub eax, edx
mov dword [ebp - 0x28], eax
mov dword [ebx + 0x6c], eax
sub dword [ebx + 0x5c], edx
mov ecx, dword [ebx + 0x4c]
lea eax, [ecx + ecx]
add eax, dword [ebx + 0x44]
nop
sub eax, 2
movzx esi, word [eax]
mov edi, esi
sub edi, edx
cmp edx, esi
jbe 0x78b49e
xor edi, edi
mov word [eax], di
dec ecx
jne 0x78b48e
mov eax, dword [ebp - 0x30]
add eax, dword [ebx + 0x40]
mov ecx, edx
nop
sub eax, 2
movzx esi, word [eax]
mov edi, esi
sub edi, edx
cmp edx, esi
jbe 0x78b4be
xor edi, edi
mov word [eax], di
dec ecx
jne 0x78b4ae
add dword [ebp - 0x1c], edx
mov ecx, dword [ebx]
mov dword [ebp - 0x24], ecx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x78b40f
add esp, 0x3c
pop ebx
pop esi
pop edi
leave
ret
mov eax, dword [ebx + reloc.MSVCRT.dll_strncpy]
mov edx, dword [ebx + 0x3c]
cmp eax, edx
jae 0x78b4da
add esi, dword [ebx + 0x6c]
cmp eax, esi
jae 0x78b526
sub edx, esi
cmp edx, 0x102
ja 0x78b5b6
mov eax, dword [ebx + 0x38]
add eax, esi
mov dword [ebp - 0x1c], eax
xor eax, eax
mov edi, dword [ebp - 0x1c]
mov ecx, edx
rep stosb byte es:[edi], al
lea esi, [edx + esi]
mov dword [ebx + reloc.MSVCRT.dll_strncpy], esi
add esp, 0x3c
pop ebx
pop esi
pop edi
leave
ret
lea ecx, reloc.MSVCRT.dll_strncpy
cmp eax, ecx
jae 0x78b4da
sub esi, eax
mov ecx, edx
sub ecx, eax
lea edx, reloc.MSVCRT.dll_strncpy
cmp edx, ecx
jbe 0x78b542
mov edx, ecx
mov esi, dword [ebx + 0x38]
add esi, eax
xor eax, eax
mov edi, esi
mov ecx, edx
rep stosb byte es:[edi], al
add dword [ebx + reloc.MSVCRT.dll_strncpy], edx
add esp, 0x3c
pop ebx
pop esi
pop edi
leave
ret
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], eax
mov eax, dword [ecx]
mov dword [esp + 4], eax
mov eax, dword [ecx + 0x30]
mov dword [esp], eax
mov dword [ebp - 0x34], edx
call fcn.0078a8f2
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x30], eax
mov edx, dword [ebp - 0x34]
jmp 0x78b43e
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx]
mov dword [esp + 4], eax
mov eax, dword [ecx + 0x30]
mov dword [esp], eax
mov dword [ebp - 0x34], edx
call fcn.0078b00e
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x30], eax
mov edx, dword [ebp - 0x34]
jmp 0x78b43e
mov edx, 0x102
jmp 0x78b504
sub eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
jmp 0x78b420