Function at 0x1008eef0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c8
mov edi, dword [esp + 0x1e8]
mov eax, dword [esp + 0x1dc]
mov dword [esp], eax
add eax, 0x14
mov ecx, esp
push eax
push ecx
call fcn.1008e920
add esp, 8
mov ecx, dword [esp]
add eax, ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 8], eax
cmp ecx, eax
jae 0x1008f152
mov ebp, dword [esp + 0x1e4]
lea esi, [esp + 0x3c]
lea eax, [ebp + 0x10]
mov dword [esp + 0x2c], eax
lea eax, [ebp + 0x14]
mov dword [esp + 0x28], eax
lea eax, [ebp + 0x1c]
mov dword [esp + 0xc], eax
lea eax, [ebp + 0x18]
mov dword [esp + 0x24], eax
lea eax, [ebp + 4]
mov dword [esp + 0x20], eax
lea eax, [ebp + 0xc]
mov dword [esp + 0x1c], eax
lea eax, [ebp + 8]
mov dword [esp + 0x18], eax
lea eax, [ebp + 0x28]
mov dword [esp + 0x30], eax
jmp 0x1008eb76
add edx, 0xffffffd0
mov dword [esi + 4], edx
add esi, 4
mov ecx, dword [esp]
cmp ecx, dword [esp + 8]
jae 0x1008f150
lea ebx, [ecx + 1]
mov dword [esp], ebx
movzx edx, byte [ecx]
lea eax, [edx - 3]
cmp eax, 0x91
ja case.0x1008eb8d.4
jmp dword [eax*4 + 0x1008f208]
add edx, 0xffffffb0
cmp edx, 7
ja case.default.0x1008eba2
mov eax, ebp
jmp dword [edx*4 + 0x1008f4e8]
mov eax, dword [esp + 0x18]
jmp case.0x1008eba2.80
mov dword [esp + 0x34], edx
mov dword [esp + 0x14], esi
mov dword [esp + 4], 0
mov ecx, 0xfffffff9
xor edi, edi
mov dword [esp + 0x10], ebx
mov eax, ebx
nop dword [eax]
cmp eax, dword [esp + 8]
je 0x1008f15f
add ecx, 7
movzx ebx, byte [eax]
mov bh, bl
and bh, 0x7f
movzx esi, bh
xor ebp, ebp
shld ebp, esi, cl
inc eax
shl esi, cl
test cl, 0x20
cmovne ebp, esi
mov edx, 0
cmovne esi, edx
or edi, ebp
or dword [esp + 4], esi
inc dword [esp + 0x10]
test bl, bl
js 0x1008ebe0
cmp bl, 0x40
setae bl
cmp ecx, 0x39
setb bh
add cl, 7
mov eax, 0xffffffff
shl eax, cl
test cl, 0x20
mov ecx, 0
cmovne eax, ecx
test bl, bh
cmove eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp], ecx
mov edx, dword [esp + 0x34]
add edx, 0xffffff92
cmp edx, 9
ja case.default.0x1008eba2
mov ebp, dword [esp + 0x1e4]
mov ecx, ebp
mov esi, dword [esp + 0x14]
jmp dword [edx*4 + 0x1008f498]
mov ecx, dword [esp + 0xc]
jmp case.0x1008ec66.112
mov eax, dword [esp + 0xc]
jmp case.0x1008eba2.80
mov eax, dword [esp + 0x1c]
jmp case.0x1008eba2.80
mov eax, dword [esp + 0x20]
jmp case.0x1008eba2.80
mov eax, dword [esp + 0x2c]
jmp case.0x1008eba2.80
mov eax, dword [esp + 0x24]
jmp case.0x1008eba2.80
mov eax, dword [esp + 0x28]
nop word cs:[eax + eax]
mov eax, dword [eax]
jmp 0x1008ef60
mov ecx, dword [esp + 0x1c]
jmp case.0x1008ec66.112
mov ecx, dword [esp + 0x2c]
jmp case.0x1008ec66.112
mov ecx, dword [esp + 0x30]
jmp case.0x1008ec66.112
mov ecx, dword [esp + 0x18]
jmp case.0x1008ec66.112
mov ecx, dword [esp + 0x24]
jmp case.0x1008ec66.112
mov ecx, dword [esp + 0x20]
jmp case.0x1008ec66.112
mov ecx, dword [esp + 0x28]
nop
mov edx, dword [esp + 4]
or edx, eax
add edx, dword [ecx]
jmp 0x1008eb63
mov eax, dword [ecx + 1]
add ecx, 5
jmp 0x1008ef59
mov eax, dword [ecx + 1]
add ecx, 9
jmp 0x1008ef59
mov dword [esp + 0x14], esi
push dword [esp + 8]
lea eax, [esp + 4]
push eax
call fcn.1008e920
add esp, 8
mov dword [esp + 0x34], eax
mov esi, dword [esp]
mov dword [esp + 4], 0
mov ecx, 0xfffffff9
xor edi, edi
mov ebx, esi
mov dword [esp + 0x10], esi
cmp ebx, dword [esp + 8]
je 0x1008f15f
add ecx, 7
movzx eax, byte [ebx]
mov ah, al
and ah, 0x7f
movzx esi, ah
xor edx, edx
shld edx, esi, cl
inc ebx
shl esi, cl
test cl, 0x20
cmovne edx, esi
mov ebp, 0
cmovne esi, ebp
or edi, edx
or dword [esp + 4], esi
mov esi, dword [esp + 0x10]
inc esi
test al, al
js 0x1008ed20
cmp al, 0x40
setae al
cmp ecx, 0x39
setb dl
add cl, 7
mov edi, 0xffffffff
shl edi, cl
test cl, 0x20
mov ecx, 0
cmovne edi, ecx
test al, dl
cmove edi, ecx
mov dword [esp], esi
mov ecx, dword [esp + 0x34]
add ecx, 2
cmp ecx, 9
ja case.default.0x1008eba2
mov ebp, dword [esp + 0x1e4]
mov eax, ebp
mov esi, dword [esp + 0x14]
jmp dword [ecx*4 + 0x1008f470]
mov eax, dword [esp + 0xc]
jmp case.0x1008eda6.0
mov eax, dword [esi - 4]
xor ecx, ecx
cmp eax, dword [esi]
setb cl
jmp 0x1008f063
mov eax, dword [esi - 4]
xor ecx, ecx
cmp eax, dword [esi]
setbe cl
jmp 0x1008f063
mov eax, dword [esi - 4]
cdq
idiv dword [esi]
mov dword [esi - 4], edx
add esi, 0xfffffffc
jmp 0x1008eb69
mov eax, dword [esi - 4]
xor ecx, ecx
cmp eax, dword [esi]
sete cl
jmp 0x1008f063
movsx eax, word [ecx + 1]
jmp 0x1008ef56
movsx eax, word [ecx + 1]
add ecx, 3
mov dword [esp], ecx
lea edx, [esi - 4]
cmp dword [esi], 0
je 0x1008f0b0
add ecx, eax
mov dword [esp], ecx
mov esi, edx
jmp 0x1008eb69
mov eax, dword [esi - 4]
xor ecx, ecx
cmp eax, dword [esi]
setae cl
jmp 0x1008f063
mov dword [esp + 0x14], esi
mov dword [esp + 4], 0
mov ecx, 0xfffffff9
mov edi, ebx
xor ebx, ebx
mov dword [esp + 0x10], edi
nop word [eax + eax]
cmp edi, dword [esp + 8]
je 0x1008f15f
add ecx, 7
movzx eax, byte [edi]
mov ah, al
and ah, 0x7f
movzx esi, ah
xor edx, edx
shld edx, esi, cl
inc edi
shl esi, cl
test cl, 0x20
cmovne edx, esi
mov ebp, 0
cmovne esi, ebp
or ebx, edx
or dword [esp + 4], esi
inc dword [esp + 0x10]
test al, al
js 0x1008ee50
cmp al, 0x40
setae al
cmp ecx, 0x39
setb dl
add cl, 7
mov esi, 0xffffffff
shl esi, cl
test cl, 0x20
mov ecx, 0
cmovne esi, ecx
test al, dl
cmove esi, ecx
mov eax, dword [esp + 4]
or eax, esi
mov ecx, dword [esp + 0x10]
mov dword [esp], ecx
mov esi, dword [esp + 0x14]
mov dword [esi + 4], eax
add esi, 4
mov ebp, dword [esp + 0x1e4]
jmp 0x1008eb69
mov eax, dword [esi]
and dword [esi - 4], eax
add esi, 0xfffffffc
jmp 0x1008eb69
mov eax, dword [esi - 4]
xor ecx, ecx
cmp eax, dword [esi]
seta cl
jmp 0x1008f063
mov eax, dword [esi]
xor dword [esi - 4], eax
add esi, 0xfffffffc
jmp 0x1008eb69
mov eax, dword [esi]
test eax, eax
jns 0x1008eb69
neg eax
mov dword [esi], eax
jmp 0x1008eb69
mov eax, dword [esi]
jmp 0x1008ef60
movsx eax, byte [ecx + 1]
jmp 0x1008ef31
push dword [esp + 8]
lea eax, [esp + 4]
push eax
call fcn.1008e920
add esp, 8
jmp 0x1008ef60
movzx eax, byte [ecx + 1]
add ecx, 2
jmp 0x1008ef59
add esi, 0xfffffffc
jmp 0x1008eb69
mov eax, dword [esi]
movsd xmm0, qword [esi - 8]
movsd qword [esi - 4], xmm0
mov dword [esi - 8], eax
jmp 0x1008eb69
movzx eax, word [ecx + 1]
add ecx, 3
mov dword [esp], ecx
nop dword [eax]
mov dword [esi + 4], eax
jmp 0x1008eb66
mov eax, dword [esi]
jmp case.0x1008efeb.4
mov eax, dword [esi - 4]
cdq
idiv dword [esi]
jmp 0x1008f02d
mov eax, dword [esi - 4]
jmp 0x1008ef60
movsd xmm0, qword [esi - 4]
shufps xmm0, xmm0, 0xe1
movlps qword [esi - 4], xmm0
jmp 0x1008eb69
movzx eax, byte [ecx + 1]
add ecx, 2
mov dword [esp], ecx
shl eax, 2
neg eax
mov eax, dword [esi + eax]
jmp 0x1008ef60
not dword [esi]
jmp 0x1008eb69
movzx ecx, byte [esi]
shl dword [esi - 4], cl
add esi, 0xfffffffc
jmp 0x1008eb69
movzx ecx, byte [esi]
shr dword [esi - 4], cl
add esi, 0xfffffffc
jmp 0x1008eb69
mov eax, dword [esi]
add dword [esi - 4], eax
add esi, 0xfffffffc
jmp 0x1008eb69
mov eax, dword [esi]
lea edx, [ecx + 2]
mov dword [esp], edx
movzx ecx, byte [ecx + 1]
dec ecx
cmp ecx, 7
ja case.0x1008efeb.3
jmp dword [ecx*4 + 0x1008f450]
mov eax, dword [eax]
mov dword [esi], eax
jmp 0x1008eb69
push dword [esp + 8]
lea eax, [esp + 4]
push eax
call fcn.1008e920
add esp, 8
add dword [esi], eax
jmp 0x1008eb69
movzx ecx, byte [esi]
sar dword [esi - 4], cl
add esi, 0xfffffffc
jmp 0x1008eb69
mov eax, dword [esi]
mov eax, dword [eax]
jmp 0x1008f02d
mov eax, dword [esi - 4]
imul eax, dword [esi]
mov dword [esi - 4], eax
add esi, 0xfffffffc
jmp 0x1008eb69
mov eax, dword [esi]
sub dword [esi - 4], eax
add esi, 0xfffffffc
jmp 0x1008eb69
mov eax, dword [esi]
or dword [esi - 4], eax
add esi, 0xfffffffc
jmp 0x1008eb69
neg dword [esi]
jmp 0x1008eb69
mov eax, dword [esi - 4]
xor ecx, ecx
cmp eax, dword [esi]
setne cl
mov dword [esi - 4], ecx
add esi, 0xfffffffc
jmp 0x1008eb69
movsx eax, word [ecx + 1]
add eax, ecx
add eax, 3
mov dword [esp], eax
jmp 0x1008eb69
push dword [esp + 8]
lea eax, [esp + 4]
push eax
call fcn.1008e920
add esp, 8
add eax, 2
cmp eax, 9
ja case.default.0x1008eba2
mov ecx, ebp
jmp dword [eax*4 + 0x1008f4c0]
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
jmp 0x1008ef60
mov esi, edx
jmp 0x1008eb69
movzx eax, byte [eax]
mov dword [esi], eax
jmp 0x1008eb69
movzx eax, word [eax]
mov dword [esi], eax
jmp 0x1008eb69
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
jmp 0x1008ef60
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
jmp 0x1008ef60
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
jmp 0x1008ef60
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
jmp 0x1008ef60
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
jmp 0x1008ef60
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
jmp 0x1008ef60
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
jmp 0x1008ef60
mov eax, dword [esp + 0x1c]
jmp case.0x1008eda6.0
mov eax, dword [esp + 0x2c]
jmp case.0x1008eda6.0
mov eax, dword [esp + 0x30]
jmp case.0x1008eda6.0
mov eax, dword [esp + 0x18]
jmp case.0x1008eda6.0
mov eax, dword [esp + 0x24]
jmp case.0x1008eda6.0
mov eax, dword [esp + 0x20]
jmp case.0x1008eda6.0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 4]
or ecx, edi
add ecx, dword [eax]
mov dword [esi + 4], ecx
jmp 0x1008eb66
mov edi, dword [esi]
mov eax, edi
add esp, 0x1c8
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [fcn.1008b180]
push 2
call esi
add esp, 4
push str.truncated_sleb128_expression
push str.getSLEB128
push str.libunwind:__s____s_n
push eax
call fcn.10083670
add esp, 0x10
push 2
call esi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
call sub.msvcrt.dll_abort
mov esi, dword [fcn.1008b180]
push 2
call esi
add esp, 4
push str.unsupported_x86_register
push str.getRegister
jmp 0x1008f176
mov esi, dword [fcn.1008b180]
push 2
call esi
add esp, 4
push str.DWARF_opcode_not_implemented
jmp 0x1008f1ec
mov esi, dword [fcn.1008b180]
push 2
call esi
add esp, 4
push str.DW_OP_piece_not_implemented
jmp 0x1008f1ec
mov esi, dword [fcn.1008b180]
push 2
call esi
add esp, 4
push str.DW_OP_fbreg_not_implemented
push str.evaluateExpression
jmp 0x1008f176
mov esi, dword [fcn.1008b180]
push 2
call esi
add esp, 4
push str.DW_OP_deref_size_with_bad_size
jmp 0x1008f1ec