Function at 0x62eb3900
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 edx, dword [eax + 0x74]
lea ecx, [esi - 0x106]
lea eax, [esi + esi]
mov dword [esp + 0x2c], eax
mov eax, esi
mov dword [esp + 0x28], ecx
jmp 0x62eb3974
test edi, edi
jne 0x62eb3b7e
xor edx, edx
lea edx, [ecx + edx]
cmp edx, 2
mov dword [ebx + 0x74], edx
jbe 0x62eb3964
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]
cmp edx, 0x105
mov dword [ebx + 0x48], eax
ja 0x62eb3a88
mov eax, dword [ebx]
mov eax, dword [eax + 4]
test eax, eax
je 0x62eb3a88
mov eax, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x6c]
add eax, dword [esp + 0x28]
sub edi, edx
sub edi, ecx
cmp ecx, eax
mov dword [esp + 0x20], ecx
jae 0x62eb39f7
mov ebp, dword [ebx]
mov edx, dword [ebp + 4]
test edx, edx
je 0x62eb3a80
mov eax, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x74]
mov dword [esp + 0x24], eax
xor eax, eax
cmp edi, edx
jb 0x62eb3924
mov dword [ebp + 4], eax
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
je 0x62eb3b20
cmp eax, 2
je 0x62eb3b50
mov eax, dword [ebp]
add ecx, dword [esp + 0x20]
add ecx, dword [esp + 0x24]
mov dword [esp + 8], edx
mov dword [esp + 0x18], edx
mov dword [esp], ecx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x18]
add dword [ebp], edx
add dword [ebp + 8], edx
mov ecx, dword [ebx + 0x74]
jmp 0x62eb392e
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 eax, dword [ebx + 0x6c]
mov edx, dword [ebx + 0x4c]
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x5c], esi
sub eax, esi
mov dword [esp + 0x20], eax
mov dword [ebx + 0x6c], eax
lea eax, [edx + edx]
add eax, dword [ebx + 0x44]
sub eax, 2
movzx ecx, word [eax]
mov ebp, ecx
sub ebp, esi
cmp esi, ecx
mov ecx, 0
cmovbe ecx, ebp
sub edx, 1
mov word [eax], cx
jne 0x62eb3a28
mov eax, dword [esp + 0x2c]
mov edx, esi
add eax, dword [ebx + 0x40]
lea esi, [esi]
sub eax, 2
movzx ecx, word [eax]
mov ebp, ecx
sub ebp, esi
cmp esi, ecx
mov ecx, 0
cmovbe ecx, ebp
sub edx, 1
mov word [eax], cx
jne 0x62eb3a50
mov ebp, dword [ebx]
add edi, esi
mov edx, dword [ebp + 4]
test edx, edx
jne 0x62eb3997
nop
lea esi, [esi]
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x16c0]
mov edi, dword [ebx + 0x3c]
cmp eax, edi
jae 0x62eb3a80
mov esi, dword [ebx + 0x6c]
add esi, edx
cmp eax, esi
jae 0x62eb3ae0
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
lea esi, [edi + esi]
mov dword [esp], eax
call fcn.62c9ba30
mov dword [ebx + 0x16c0], esi
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [esi + 0x102]
cmp eax, edx
jae 0x62eb3a80
sub esi, eax
sub edi, eax
add esi, 0x102
cmp esi, edi
cmova esi, edi
add eax, dword [ebx + 0x38]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.62c9ba30
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 + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp], eax
call fcn.62dfd5f0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [ebp + 0x30], eax
jmp 0x62eb39c6
mov dword [esp + 8], edx
mov eax, dword [ebp]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp], eax
call fcn.62dfe680
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [ebp + 0x30], eax
jmp 0x62eb39c6
mov eax, edx
mov edx, edi
sub eax, edi
jmp 0x62eb39ab