Function at 0x1003b4e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
call 0x1003b4ec
pop eax
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
mov edx, dword [ebp + 4]
mov ecx, dword [ebp]
mov esi, dword [eax]
mov dword [esp + 0x1c], edx
jmp 0x1003b524
mov ebp, edi
cmp ebp, dword [esp + 4]
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x34]
jb 0x1003b770
cmp ecx, dword [esp + 0x1c]
je 0x1003b76c
lea edi, [ecx + 1]
mov dword [ebp], edi
movzx edx, byte [ecx]
movzx eax, dl
test dl, dl
jns 0x1003b5b0
lea edi, [ecx + 2]
and eax, 0x1f
mov dword [ebp], edi
movzx ebx, byte [ecx + 1]
and ebx, 0x3f
cmp dl, 0xdf
jbe 0x1003b596
lea edi, [ecx + 3]
shl ebx, 6
mov dword [ebp], edi
mov dword [esp + 0x14], edi
movzx edi, byte [ecx + 2]
and edi, 0x3f
or edi, ebx
cmp dl, 0xf0
jb 0x1003b59d
lea edx, [ecx + 4]
and eax, 7
shl edi, 6
mov dword [ebp], edx
shl eax, 0x12
movzx ecx, byte [ecx + 3]
and ecx, 0x3f
or ecx, edi
mov edi, edx
or eax, ecx
cmp eax, 0x110000
jne 0x1003b5b0
jmp 0x1003b76c
shl eax, 6
or eax, ebx
jmp 0x1003b5b0
shl eax, 0xc
or eax, edi
mov edi, dword [esp + 0x14]
nop word cs:[eax + eax]
mov dword [esp + 0x14], edi
lea edi, [eax - 9]
mov byte [esp + 3], 2
mov byte [esp + 4], 0x5c
cmp edi, 0x1e
ja 0x1003b5f0
mov edi, dword [edi*4 + 0x1003b77c]
xor edx, edx
xor ebp, ebp
mov cl, 0x74
xor ebx, ebx
add edi, dword [esp + 0x18]
jmp edi
cmp eax, 0x5c
jne 0x1003b600
xor edx, edx
xor ebp, ebp
mov ecx, eax
jmp 0x1003b700
lea ecx, [eax - 0x20]
cmp ecx, 0x5f
jae 0x1003b638
cmp al, 0x22
je 0x1003b5f5
movzx ecx, al
cmp ecx, 0x5c
je 0x1003b6ed
cmp ecx, 0x27
je 0x1003b5f5
xor edx, edx
xor ebp, ebp
xor ecx, ecx
mov byte [esp + 3], 1
jmp 0x1003b6f3
mov edx, eax
mov byte [esp + 0xc], 0
mov word [esp + 0xa], 0
mov ecx, eax
mov byte [esp + 3], 0xa
shr edx, 0x14
or ecx, 1
movzx edx, byte [edx + str.0123456789abcdefC:Userslucak.rustup_toolchains_nightly_x86_64_pc_windows_msvclib_rustlib_src_rustlibrarycore_srcescape.rs_]
bsr ecx, ecx
xor ecx, 0x1c
shr ecx, 2
lea ebx, [ecx - 2]
mov byte [esp + 0xd], dl
mov edx, eax
shr edx, 0x10
and edx, 0xf
movzx edx, byte [edx + str.0123456789abcdefC:Userslucak.rustup_toolchains_nightly_x86_64_pc_windows_msvclib_rustlib_src_rustlibrarycore_srcescape.rs_]
mov byte [esp + 0xe], dl
mov edx, eax
shr edx, 0xc
and edx, 0xf
movzx edx, byte [edx + str.0123456789abcdefC:Userslucak.rustup_toolchains_nightly_x86_64_pc_windows_msvclib_rustlib_src_rustlibrarycore_srcescape.rs_]
mov byte [esp + 0xf], dl
mov edx, eax
shr edx, 8
and edx, 0xf
movzx edx, byte [edx + str.0123456789abcdefC:Userslucak.rustup_toolchains_nightly_x86_64_pc_windows_msvclib_rustlib_src_rustlibrarycore_srcescape.rs_]
mov byte [esp + 0x10], dl
mov edx, eax
and eax, 0xf
shr edx, 4
movzx eax, byte [eax + str.0123456789abcdefC:Userslucak.rustup_toolchains_nightly_x86_64_pc_windows_msvclib_rustlib_src_rustlibrarycore_srcescape.rs_]
and edx, 0xf
movzx edx, byte [edx + str.0123456789abcdefC:Userslucak.rustup_toolchains_nightly_x86_64_pc_windows_msvclib_rustlib_src_rustlibrarycore_srcescape.rs_]
mov byte [esp + 0x11], dl
mov byte [esp + 0x12], al
mov byte [esp + 0x13], 0x7d
mov word [esp + ecx + 8], 0x755c
mov byte [esp + ecx + 0xa], 0x7b
movzx eax, byte [esp + 0xa]
movzx ecx, byte [esp + 0xb]
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov byte [esp + 4], al
jmp 0x1003b702
xor edx, edx
xor ebp, ebp
mov ecx, eax
mov byte [esp + 4], al
nop word [eax + eax]
xor ebx, ebx
mov edi, edx
mov eax, dword [esp + 0x3c]
movzx edx, byte [esp + 4]
mov byte [eax], dl
movzx edx, byte [esp + 3]
mov byte [eax + 1], cl
mov dword [eax + 2], edi
mov dword [eax + 6], ebp
mov byte [eax + 0xa], bl
movzx ebx, bl
movzx edi, dl
mov byte [eax + 0xb], dl
cmp ebx, edi
mov dword [esp + 4], edi
cmova edi, ebx
nop word cs:[eax + eax]
nop dword [eax]
cmp edi, ebx
je 0x1003b510
mov eax, dword [esp + 0x3c]
mov ebp, ebx
inc ebx
mov byte [eax + 0xa], bl
movzx eax, byte [eax + ebp]
mov ecx, dword [esi + 0x18]
push eax
push dword [esi + 0x14]
call dword [ecx + 0x10]
add esp, 8
test al, al
je 0x1003b740
jmp 0x1003b512
xor eax, eax
jmp 0x1003b772
mov al, 1
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret