Function at 0x1003b040
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
call 0x1003b04c
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 0x1003b084
mov ebp, edi
cmp ebp, dword [esp + 4]
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x34]
jb 0x1003b2d0
cmp ecx, dword [esp + 0x1c]
je 0x1003b2cc
lea edi, [ecx + 1]
mov dword [ebp], edi
movzx edx, byte [ecx]
movzx eax, dl
test dl, dl
jns 0x1003b110
lea edi, [ecx + 2]
and eax, 0x1f
mov dword [ebp], edi
movzx ebx, byte [ecx + 1]
and ebx, 0x3f
cmp dl, 0xdf
jbe 0x1003b0f6
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 0x1003b0fd
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 0x1003b110
jmp 0x1003b2cc
shl eax, 6
or eax, ebx
jmp 0x1003b110
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 0x1003b150
mov edi, dword [edi*4 + 0x1003b2dc]
xor edx, edx
xor ebp, ebp
mov cl, 0x74
xor ebx, ebx
add edi, dword [esp + 0x18]
jmp edi
cmp eax, 0x5c
jne 0x1003b160
xor edx, edx
xor ebp, ebp
mov ecx, eax
jmp 0x1003b260
lea ecx, [eax - 0x20]
cmp ecx, 0x5f
jae 0x1003b198
cmp al, 0x22
je 0x1003b155
movzx ecx, al
cmp ecx, 0x5c
je 0x1003b24d
cmp ecx, 0x27
je 0x1003b155
xor edx, edx
xor ebp, ebp
xor ecx, ecx
mov byte [esp + 3], 1
jmp 0x1003b253
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 0x1003b262
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 0x1003b070
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 0x1003b2a0
jmp 0x1003b072
xor eax, eax
jmp 0x1003b2d2
mov al, 1
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret