Function at 0x10065460
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov esi, dword [esp + 0x68]
call 0x10065470
pop eax
mov dword [esp + 0x44], eax
movzx edx, byte [esi]
cmp dl, 0x80
je 0x10065496
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 0x100654c4
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 0x100657a0
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x1006578e
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 0x1006555f
mov edi, esi
cmp edi, dword [esp]
mov ebx, dword [esp + 0x1c]
jb 0x10065891
cmp ebx, dword [esp + 0x40]
je 0x1006578e
lea eax, [ebx + 1]
mov dword [esp + 0x38], eax
movzx ecx, byte [ebx]
movzx edx, cl
test cl, cl
jns 0x100655e0
lea eax, [ebx + 2]
and edx, 0x1f
mov dword [esp + 0x38], eax
movzx esi, byte [ebx + 1]
and esi, 0x3f
cmp cl, 0xdf
jbe 0x100655d2
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 0x100655d9
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 0x100655e0
jmp 0x1006578e
shl edx, 6
or edx, esi
jmp 0x100655e0
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 0x10065620
mov esi, dword [esi*4 + 0x100658bc]
mov dword [esp], 0
mov ax, 0x74
xor ebp, ebp
xor ebx, ebx
add esi, dword [esp + 0x44]
jmp esi
cmp edx, 0x5c
jne 0x10065632
mov dword [esp], 0
xor ebp, ebp
mov eax, edx
jmp 0x1006565c
lea eax, [edx - 0x20]
cmp eax, 0x5f
jae 0x100656da
mov cl, 1
xor ebp, ebp
mov edi, edx
xor eax, eax
mov dword [esp], 0
jmp 0x1006565c
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 0x10065550
cmp edi, 9
mov byte [esp + 0x2a], bl
je 0x1006589b
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 0x100656a0
jmp 0x10065552
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 + 0x10085c67]
mov byte [esp + 0xb], al
mov eax, edx
shr eax, 0x10
and eax, 0xf
movzx eax, byte [eax + 0x10085c67]
mov byte [esp + 0xc], al
mov eax, edx
shr eax, 0xc
and eax, 0xf
movzx eax, byte [eax + 0x10085c67]
mov byte [esp + 0xd], al
mov eax, edx
shr eax, 8
and eax, 0xf
movzx eax, byte [eax + 0x10085c67]
mov byte [esp + 0xe], al
mov eax, edx
shr eax, 4
and eax, 0xf
movzx eax, byte [eax + 0x10085c67]
mov byte [esp + 0xf], al
mov eax, edx
or edx, 1
and eax, 0xf
movzx eax, byte [eax + 0x10085c67]
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 0x1006565e
cmp byte [esp + 5], 0x80
jne 0x10065815
xor eax, eax
jmp 0x10065893
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 0x10065529
mov ecx, ebx
lea eax, [esi + ebx]
add cl, 2
cmp eax, 0xffffffff
mov byte [esp + 0x2a], cl
je 0x100658a9
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 0x100657d0
cmp ebx, dword [esp + 0x14]
mov al, 1
jae 0x10065529
jmp 0x10065893
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 0x10065799
mov ecx, ebx
lea eax, [esi + ebx]
add cl, 2
cmp eax, 0xffffffff
mov byte [esp + 0x36], cl
je 0x100658a9
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 0x10065850
cmp ebx, dword [esp + 0x14]
mov al, 1
jae 0x10065799
jmp 0x10065893
mov al, 1
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x10087668
push 0xa
push 0xa
call sym.kso.dll_core::panicking::panic_bounds_check::hda298f763923bd76
push 0x10087668
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