Function at 0x62e8f360
Capabilities:
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x78]
test edx, edx
je 0x62e8f828
mov ebp, dword [esp + 0x64]
test ebp, ebp
js 0x62e8f710
mov edi, dword [esp + 0x68]
test edi, edi
je 0x62e8f868
mov edi, dword [esp + 0x68]
mov ebx, dword [edi]
cmp dword [esp + 0x64], ebx
jbe 0x62e8f6f0
mov edi, dword [esp + 0x74]
lea edx, [edi - 8]
and edx, 0xfffffff7
jne 0x62e8f620
test eax, 0xfffefc00
jne 0x62e8f7e8
movzx edx, al
lea ecx, [edx - 1]
cmp ecx, 2
ja 0x62e8f848
cmp edx, 3
je 0x62e8f750
cmp edx, 2
je 0x62e8f668
test ah, 1
je 0x62e8f888
movzx eax, byte [esp + 0x74]
mov edx, dword [esp + 0x24]
mov ebp, 2
lea ecx, [eax - 1]
mov eax, dword [esp + 0x20]
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
cmovne eax, edx
mov byte [esp + 0x30], al
test al, al
je 0x62e8f460
mov edi, ecx
mov ebp, 3
shr edi, 5
and edi, 1
mov esi, edi
shl edi, cl
xor esi, 1
shl esi, cl
mov ecx, edi
mov edx, esi
not ecx
not edx
mov eax, ecx
and edx, dword [esp + 0x20]
and eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
or eax, edx
mov dword [esp + 0x20], edx
jne 0x62e8f460
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
lea esi, [esi]
nop
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov eax, 9
cmp eax, esi
mov eax, 0
mov esi, 1
sbb eax, edi
mov edi, 0
jae 0x62e8f4c7
lea esi, [esi]
mov eax, 0xa
imul ecx, edi, 0xa
add ebp, 1
mul esi
mov dword [esp + 8], eax
mov edi, edx
mov esi, eax
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
add edi, ecx
mov dword [esp + 0xc], edi
mov dword [esp], eax
mov dword [esp + 4], edx
call sym.___udivdi3
mov ecx, 9
cmp ecx, eax
mov eax, 0
sbb eax, edx
jb 0x62e8f488
mov eax, ebp
movzx ebp, al
add ebp, ebx
cmp dword [esp + 0x64], ebp
jb 0x62e8f7c8
lea eax, [ebx + 1]
mov ebp, dword [esp + 0x60]
mov ecx, dword [esp + 0x60]
lea edx, [ebx + 2]
mov dword [esp + 0x34], eax
lea eax, [ebx + ebx]
add ebp, eax
cmp byte [esp + 0x30], 0
mov dword [esp + 0x2c], edx
lea ecx, [ecx + eax + 2]
je 0x62e8f51c
add ebx, 3
mov edx, 0x2d
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x60]
mov word [ebp], dx
mov ebp, ecx
lea ecx, [ebx + eax + 4]
mov ebx, dword [esp + 0x34]
mov eax, 1
cmp eax, esi
mov eax, 0
sbb eax, edi
jae 0x62e8f5d0
lea eax, [esp + 0x38]
mov edx, dword [esp + 0x24]
mov dword [esp + 8], esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], edi
mov dword [esp], eax
mov dword [esp + 4], edx
call sym.___udivmoddi4
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x30], ebx
add ebx, 1
mov ecx, eax
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x2c], esi
add ecx, 0x30
mov word [ebp + ebx*2 - 2], cx
mov ebp, edi
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], 0xa
mov dword [esp + 0xc], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
call sym.___udivdi3
mov esi, eax
mov eax, 0x13
cmp eax, dword [esp + 0x2c]
mov eax, 0
sbb eax, ebp
mov edi, edx
jb 0x62e8f530
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x60]
add ebx, ebx
add eax, 3
add ebp, ebx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x60]
lea ecx, [eax + ebx + 2]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 0x30], ecx
call sym.___udivdi3
mov ecx, dword [esp + 0x30]
add eax, 0x30
mov word [ebp], ax
xor eax, eax
mov edi, dword [esp + 0x2c]
mov word [ecx], ax
mov eax, dword [esp + 0x68]
mov dword [eax], edi
add esp, 0x4c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [edi - 0x20]
and edx, 0xffffffdf
je 0x62e8f3bf
mov dword [esp + 0x10], str.libfvalue_utf16_string_with_index_copy_from_integer
mov dword [esp + 0xc], str._s:_unsupported_integer_value_size.
mov dword [esp + 8], 0xe
mov eax, dword [esp + 0x7c]
mov dword [esp + 4], 0x72
mov dword [esp], eax
call dbg.libcerror_error_set
add esp, 0x4c
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esp + 0x74]
shr edx, 2
test eax, 0x10000
je 0x62e8f8e0
lea eax, [edx + 1]
movzx eax, al
add eax, ebx
cmp dword [esp + 0x64], eax
jb 0x62e8f7c8
movzx eax, byte [esp + 0x74]
mov edi, dword [esp + 0x60]
lea ecx, [eax - 4]
lea esi, [esi]
nop
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov esi, ebx
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
cmovne eax, edx
add ebx, 1
mov edx, eax
and edx, 0xf
movzx eax, dl
lea ebp, [eax + 0x57]
add eax, 0x30
cmp dl, 0xa
cmovae eax, ebp
mov word [edi + ebx*2 - 2], ax
sub cl, 4
jns 0x62e8f6a0
lea eax, [esi + 2]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x60]
lea ecx, [eax + ebx*2]
jmp 0x62e8f5fb
mov dword [esp + 0x10], str.libfvalue_utf16_string_with_index_copy_from_integer
mov dword [esp + 0xc], str._s:_invalid_UTF_16_string_index_value_out_of_bounds.
mov dword [esp + 8], 0xc
jmp 0x62e8f644
mov dword [esp + 0x10], str.libfvalue_utf16_string_with_index_copy_from_integer
mov dword [esp + 0xc], 0x62f29d88
mov dword [esp + 8], 4
mov eax, dword [esp + 0x7c]
mov dword [esp + 4], 0x61
mov dword [esp], eax
call dbg.libcerror_error_set
add esp, 0x4c
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov edx, ebp
or edx, edi
jne 0x62e8f7b0
lea eax, [ebx + 6]
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x64], eax
jb 0x62e8f7c8
mov edi, dword [esp + 0x60]
mov edx, 0x66
lea eax, [ebx + ebx]
mov ecx, 0x61
mov esi, 0x73
mov ebp, 0x65
mov word [edi + ebx*2], dx
mov ebx, 0x6c
mov word [edi + eax + 2], cx
lea ecx, [edi + eax + 0xa]
mov word [edi + eax + 4], bx
mov word [edi + eax + 6], si
mov word [edi + eax + 8], bp
jmp 0x62e8f5fb
lea eax, [ebx + 5]
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x64], eax
jae 0x62e8f8a0
lea esi, [esi]
mov dword [esp + 0x10], str.libfvalue_utf16_string_with_index_copy_from_integer
mov dword [esp + 0xc], str._s:_UTF_16_string_size_too_small.
mov dword [esp + 8], 5
jmp 0x62e8f728
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x10], str.libfvalue_utf16_string_with_index_copy_from_integer
mov dword [esp], eax
mov dword [esp + 0xc], 0x62f2993c
mov dword [esp + 8], 8
mov dword [esp + 4], 0x61
call dbg.libcerror_error_set
add esp, 0x4c
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], str.libfvalue_utf16_string_with_index_copy_from_integer
mov dword [esp + 0xc], 0x62f29d6c
mov dword [esp + 8], 1
jmp 0x62e8f728
mov dword [esp + 0x10], str.libfvalue_utf16_string_with_index_copy_from_integer
mov dword [esp + 0xc], str._s:_unsupported_string_format_type.
mov dword [esp + 8], 8
jmp 0x62e8f728
mov dword [esp + 0x10], str.libfvalue_utf16_string_with_index_copy_from_integer
mov dword [esp + 0xc], 0x62f29dc0
mov dword [esp + 8], 1
jmp 0x62e8f728
mov byte [esp + 0x30], 0
mov ebp, 2
jmp 0x62e8f460
mov edi, dword [esp + 0x60]
mov ecx, 0x74
lea eax, [ebx + ebx]
mov esi, 0x75
mov ebp, 0x65
mov word [edi + ebx*2], cx
mov ebx, 0x72
lea ecx, [edi + eax + 8]
mov word [edi + eax + 2], bx
mov word [edi + eax + 4], si
mov word [edi + eax + 6], bp
jmp 0x62e8f5fb
lea eax, [edx + 3]
movzx eax, al
add eax, ebx
cmp dword [esp + 0x64], eax
jb 0x62e8f7c8
mov edi, dword [esp + 0x60]
lea eax, [ebx + ebx]
mov ebp, 0x30
mov edx, 0x78
mov word [edi + ebx*2], bp
add ebx, 2
mov word [edi + eax + 2], dx
jmp 0x62e8f68c