Function at 0x10099b70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x58
call 0x10099b7e
pop eax
mov byte [ebp - 0x4c], 0x81
mov byte [ebp - 0x40], 0x81
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x24], ecx
mov ecx, edx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
add eax, edx
mov dl, 0x81
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
movzx eax, byte [ebp - 0x41]
mov esi, dword [ebp - 0x46]
movzx ebx, byte [ebp - 0x42]
mov dword [ebp - 0x1c], eax
movzx eax, byte [ebp - 0x4b]
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x4a]
mov dword [ebp - 0x10], eax
jmp 0x10099be5
mov al, 2
mov edi, edx
xor edx, edx
xor esi, esi
mov dword [ebp - 0x1c], eax
xor eax, eax
shld esi, ebx, 0x10
shl ebx, 0x10
mov dword [ebp - 0x18], esi
movzx esi, ax
or esi, ebx
mov ebx, edx
mov edx, edi
cmp dl, 0x81
je 0x10099c01
movzx eax, dl
cmp eax, 0x80
je 0x10099ddc
cmp bl, byte [ebp - 0x1c]
jb 0x10099e17
test ecx, ecx
je 0x10099e57
cmp ecx, dword [ebp - 0x2c]
je 0x10099e57
movzx ebx, byte [ecx]
test bl, bl
js 0x10099c30
inc ecx
cmp ebx, 0x27
jbe 0x10099c90
jmp 0x10099cd0
movzx edx, byte [ecx + 1]
mov eax, ebx
and eax, 0x1f
and edx, 0x3f
cmp bl, 0xdf
jbe 0x10099c80
mov esi, ecx
movzx ecx, byte [ecx + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp bl, 0xf0
jb 0x10099cbf
movzx ebx, byte [esi + 3]
and eax, 7
shl ecx, 6
shl eax, 0x12
and ebx, 0x3f
or ebx, ecx
or ebx, eax
cmp ebx, 0x110000
je 0x10099e57
mov ecx, esi
add ecx, 4
cmp ebx, 0x27
jbe 0x10099c90
jmp 0x10099cd0
shl eax, 6
add ecx, 2
or eax, edx
mov ebx, eax
cmp ebx, 0x27
ja 0x10099cd0
nop
mov esi, dword [ebx*4 + 0x10099e64]
mov al, 0x30
mov dl, 0x5c
mov dword [ebp - 0x10], eax
add esi, dword [ebp - 0x28]
jmp esi
shl eax, 0xc
add esi, 3
or ecx, eax
mov ebx, ecx
mov ecx, esi
cmp ebx, 0x27
jbe 0x10099c90
cmp ebx, 0x5c
jne 0x10099ce3
mov al, 0x5c
xor ebx, ebx
mov dl, 0x5c
mov dword [ebp - 0x10], eax
jmp 0x10099bc5
mov esi, ecx
cmp ebx, 0x2ff
jbe 0x10099cfd
push ebx
call sym.core::unicode::unicode_data::grapheme_extend::lookup_slow::h26731e30ea15f5e0
add esp, 4
test al, al
lea eax, [ebp - 0x58]
jne 0x10099d19
push ebx
call sym.core::unicode::printable::is_printable::hf5cae063eca2d0d5
add esp, 4
test al, al
lea eax, [ebp - 0x64]
je 0x10099d19
mov ecx, esi
mov dl, pe_nt_image_headers32
mov dword [ebp - 0x10], eax
jmp 0x10099bc5
mov ecx, ebx
mov byte [eax + 2], 0
mov word [eax], 0
or ecx, 1
bsr edx, ecx
mov ecx, ebx
shr ecx, 0x14
xor edx, 0x1c
movzx ecx, byte [ecx + 0x1015fd60]
shr edx, 2
mov byte [eax + 3], cl
mov ecx, ebx
shr ecx, 0x10
and ecx, 0xf
movzx ecx, byte [ecx + 0x1015fd60]
mov byte [eax + 4], cl
mov ecx, ebx
shr ecx, 0xc
and ecx, 0xf
movzx ecx, byte [ecx + 0x1015fd60]
mov byte [eax + 5], cl
mov ecx, ebx
shr ecx, 8
and ecx, 0xf
movzx ecx, byte [ecx + 0x1015fd60]
mov byte [eax + 6], cl
mov ecx, ebx
and ebx, 0xf
shr ecx, 4
and ecx, 0xf
movzx ecx, byte [ecx + 0x1015fd60]
mov byte [eax + 7], cl
movzx ecx, byte [ebx + 0x1015fd60]
mov byte [eax + 8], cl
mov byte [eax + 9], 0x7d
mov word [eax + edx - 2], 0x755c
mov byte [eax + edx], 0x7b
movzx ecx, byte [eax]
cmp cl, 0x81
je 0x10099e57
mov edi, ecx
mov ecx, esi
movzx ebx, byte [eax + 1]
mov esi, dword [eax + 6]
mov eax, dword [eax + 2]
add edx, 0xfffffffe
mov dword [ebp - 0x14], ecx
mov cl, 0xa
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
mov ebx, eax
shrd ebx, esi, 0x10
shr esi, 0x10
jmp 0x10099bd2
mov eax, dword [ebp - 0x18]
xorps xmm0, xmm0
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
movsd qword [ebp - 0x4c], xmm0
shld eax, esi, 0x10
xor esi, esi
jmp 0x10099e39
mov eax, dword [ebp - 0x10]
mov byte [ebp - 0x4c], dl
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], edx
mov byte [ebp - 0x4b], al
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x4a], esi
mov dword [ebp - 0x46], eax
movzx eax, bl
inc bl
movzx eax, byte [ebp + eax - 0x4c]
push eax
push dword [ebp - 0x24]
call sym.__LT_core..fmt..Formatter_u20_as_u20_core..fmt..Write_GT_::write_char::h4c8cd35cc7ced9cd
add esp, 8
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
test al, al
je 0x10099be5
mov al, 1
jmp 0x10099e59
xor eax, eax
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret