Function at 0x10065510
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov esi, dword [esp + 0x68]
call 0x10065520
pop eax
mov dword [esp + 0x44], eax
movzx edx, byte [esi]
cmp dl, 0x80
je 0x10065546
mov ah, byte [esi + 9]
movsd xmm0, qword [esi + 1]
mov al, byte [esi + 0xa]
movzx ecx, byte [esi + 0xb]
mov byte [esp + 0x50], ah
movsd qword [esp + 0x48], xmm0
mov ah, byte [esi + 0xc]
mov edi, dword [esi + 0x1c]
mov ebx, dword [esi + 0x18]
cmp ah, 0x80
mov dword [esp + 0x40], edi
mov byte [esp + 5], ah
je 0x10065574
mov ah, byte [esi + 0x15]
movsd xmm0, qword [esi + 0xd]
mov ch, byte [esi + 0x16]
mov dh, byte [esi + 0x17]
mov byte [esp + 0x10], ah
movsd qword [esp + 8], xmm0
mov ah, byte [esp + 0x50]
movsd xmm0, qword [esp + 0x48]
mov esi, dword [esp + 0x40]
cmp dl, 0x80
mov byte [esp + 7], ch
mov byte [esp + 6], dh
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x29], ah
mov ah, byte [esp + 0x10]
movsd qword [esp + 0x21], xmm0
movsd xmm0, qword [esp + 8]
mov byte [esp + 0x35], ah
mov ah, byte [esp + 5]
movsd qword [esp + 0x2d], xmm0
mov byte [esp + 0x20], dl
mov byte [esp + 0x2a], al
mov byte [esp + 0x2b], cl
mov byte [esp + 0x2c], ah
mov byte [esp + 0x36], ch
mov byte [esp + 0x37], dh
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], esi
jne 0x10065850
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x1006583e
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
jmp 0x1006560f
mov edi, esi
cmp edi, dword [esp]
mov ebx, dword [esp + 0x1c]
jb 0x10065941
cmp ebx, dword [esp + 0x40]
je 0x1006583e
lea eax, [ebx + 1]
mov dword [esp + 0x38], eax
movzx ecx, byte [ebx]
movzx edx, cl
test cl, cl
jns 0x10065690
lea eax, [ebx + 2]
and edx, 0x1f
mov dword [esp + 0x38], eax
movzx esi, byte [ebx + 1]
and esi, 0x3f
cmp cl, 0xdf
jbe 0x10065682
lea edi, [ebx + 3]
shl esi, 6
mov dword [esp + 0x38], edi
movzx eax, byte [ebx + 2]
and eax, 0x3f
or eax, esi
cmp cl, 0xf0
jb 0x10065689
lea ecx, [ebx + 4]
and edx, 7
shl eax, 6
mov dword [esp + 0x38], ecx
shl edx, 0x12
movzx esi, byte [ebx + 3]
and esi, 0x3f
or esi, eax
mov eax, ecx
or edx, esi
cmp edx, 0x110000
jne 0x10065690
jmp 0x1006583e
shl edx, 6
or edx, esi
jmp 0x10065690
shl edx, 0xc
or edx, eax
mov eax, edi
lea esi, [edx - 9]
mov cl, 2
mov di, 0x5c
mov dword [esp + 0x1c], eax
cmp esi, 0x1e
ja 0x100656d0
mov esi, dword [esi*4 + 0x1006596c]
mov dword [esp], 0
mov ax, 0x74
xor ebp, ebp
xor ebx, ebx
add esi, dword [esp + 0x44]
jmp esi
cmp edx, 0x5c
jne 0x100656e2
mov dword [esp], 0
xor ebp, ebp
mov eax, edx
jmp 0x1006570c
lea eax, [edx - 0x20]
cmp eax, 0x5f
jae 0x1006578a
mov cl, 1
xor ebp, ebp
mov edi, edx
xor eax, eax
mov dword [esp], 0
jmp 0x1006570c
xor ebx, ebx
mov edx, edi
shl eax, 8
movzx edi, bl
movzx esi, cl
movzx edx, dl
or edx, eax
cmp edi, esi
mov word [esp + 0x20], dx
mov edx, dword [esp]
mov dword [esp], esi
cmova esi, edi
mov dword [esp + 0x26], ebp
dec edi
inc bl
mov ebp, esi
neg ebp
mov dword [esp + 0x22], edx
mov byte [esp + 0x2b], cl
nop word cs:[eax + eax]
nop dword [eax + eax]
lea eax, [ebp + edi]
cmp eax, 0xffffffff
je 0x10065600
cmp edi, 9
mov byte [esp + 0x2a], bl
je 0x1006594b
movzx eax, byte [esp + edi + 0x21]
push eax
push dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
call dword [eax + 0x10]
add esp, 8
inc edi
inc bl
test al, al
je 0x10065750
jmp 0x10065602
mov eax, edx
mov byte [esp + 0xa], 0
mov word [esp + 8], 0
mov byte [esp + 0x11], 0x7d
shr eax, 0x14
movzx eax, byte [eax + 0x10084c67]
mov byte [esp + 0xb], al
mov eax, edx
shr eax, 0x10
and eax, 0xf
movzx eax, byte [eax + 0x10084c67]
mov byte [esp + 0xc], al
mov eax, edx
shr eax, 0xc
and eax, 0xf
movzx eax, byte [eax + 0x10084c67]
mov byte [esp + 0xd], al
mov eax, edx
shr eax, 8
and eax, 0xf
movzx eax, byte [eax + 0x10084c67]
mov byte [esp + 0xe], al
mov eax, edx
shr eax, 4
and eax, 0xf
movzx eax, byte [eax + 0x10084c67]
mov byte [esp + 0xf], al
mov eax, edx
or edx, 1
and eax, 0xf
movzx eax, byte [eax + 0x10084c67]
mov byte [esp + 0x10], al
bsr eax, edx
xor eax, 0x1c
shr eax, 2
mov byte [esp + eax + 8], 0x7b
mov word [esp + eax + 6], 0x755c
lea ebx, [eax - 2]
movzx eax, word [esp + 8]
mov ecx, dword [esp + 0xa]
mov ebp, dword [esp + 0xe]
mov edi, eax
mov dword [esp], ecx
shr eax, 8
mov cl, 0xa
jmp 0x1006570e
cmp byte [esp + 5], 0x80
jne 0x100658c5
xor eax, eax
jmp 0x10065943
mov edx, dword [esp + 0x6c]
movzx ebp, cl
movzx ebx, al
mov esi, 0xa
cmp ebx, ebp
mov dword [esp + 0x14], ebp
cmova ebp, ebx
cmp ebx, 0xb
cmovae esi, ebx
dec ebx
neg ebp
mov ecx, dword [edx + 0x14]
mov edi, dword [edx + 0x18]
mov dword [esp], esi
neg esi
mov dword [esp + 0x18], ecx
lea eax, [ebp + ebx]
cmp eax, 0xffffffff
je 0x100655d9
mov ecx, ebx
lea eax, [esi + ebx]
add cl, 2
cmp eax, 0xffffffff
mov byte [esp + 0x2a], cl
je 0x10065959
movzx eax, byte [esp + ebx + 0x21]
push eax
push dword [esp + 0x1c]
call dword [edi + 0x10]
add esp, 8
inc ebx
test al, al
je 0x10065880
cmp ebx, dword [esp + 0x14]
mov al, 1
jae 0x100655d9
jmp 0x10065943
mov eax, dword [esp + 0x6c]
movzx ebp, byte [esp + 6]
movzx ebx, byte [esp + 7]
mov esi, 0xa
mov ecx, dword [eax + 0x14]
cmp ebx, ebp
mov edi, dword [eax + 0x18]
mov dword [esp + 0x14], ebp
cmova ebp, ebx
cmp ebx, 0xb
cmovae esi, ebx
dec ebx
neg ebp
mov dword [esp], esi
neg esi
mov dword [esp + 0x18], ecx
nop dword [eax]
lea eax, [ebp + ebx]
cmp eax, 0xffffffff
je 0x10065849
mov ecx, ebx
lea eax, [esi + ebx]
add cl, 2
cmp eax, 0xffffffff
mov byte [esp + 0x36], cl
je 0x10065959
movzx eax, byte [esp + ebx + 0x2d]
push eax
push dword [esp + 0x1c]
call dword [edi + 0x10]
add esp, 8
inc ebx
test al, al
je 0x10065900
cmp ebx, dword [esp + 0x14]
mov al, 1
jae 0x10065849
jmp 0x10065943
mov al, 1
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x10086668
push 0xa
push 0xa
call sym.kso.dll_core::panicking::panic_bounds_check::hda298f763923bd76
push 0x10086668
push 0xa
push dword [esp + 8]
call sym.kso.dll_core::panicking::panic_bounds_check::hda298f763923bd76
nop dword [eax]
out dx, al
add dword [eax], eax
add byte [esi - 0x3dffffff], bl
add dword [eax], eax
add dl, al
add dword [eax], eax
add bh, bl
add dword [eax], eax
add dl, al
add dword [eax], eax
add dl, al
add dword [eax], eax
add dl, al
add dword [eax], eax
add dl, al
add dword [eax], eax
add dl, al
add dword [eax], eax
add dl, al
add dword [eax], eax
add dl, al
add dword [eax], eax
add dl, al
add dword [eax], eax
add dl, al
add dword [eax], eax
add dl, al
add dword [eax], eax
add dl, al
add dword [eax], eax
add dl, al
add dword [eax], eax
add dl, al
add dword [eax], eax
add dl, al
add dword [eax], eax
add dl, al
add dword [eax], eax
add dl, al
add dword [eax], eax
add dl, al
add dword [eax], eax
add dl, al
add dword [eax], eax
add dl, al
add dword [eax], eax
add dl, al
add dword [eax], eax
add byte [ebp - 0x3dffffff], dh
add dword [eax], eax
add dl, al
add dword [eax], eax
add dl, al
add dword [eax], eax
add dl, al
add dword [eax], eax
add byte [ebp - 0x33ffffff], dh
int3