Function at 0x10003c60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
lea edi, [ebx + 1]
mov dword [ebp - 4], esi
mov eax, esi
lea ecx, [esi + edx]
xor edx, edx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0xc]
add ecx, ebx
mov dword [ebp + 0xc], edx
movzx ebx, byte [esi]
mov dword [ebp - 0xc], ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp - 0x1c]
shl ebx, 8
add esi, 0xfffffffe
or ebx, ecx
mov dword [ebp - 8], esi
cmp eax, esi
jae 0x10003f1b
movzx ecx, byte [eax + 2]
mov esi, dword [ebp + 0x10]
shl ebx, 8
or ebx, ecx
mov edx, ebx
mov dword [ebp - 0x18], ebx
shr edx, 5
xor edx, ebx
lea ecx, [ebx + ebx*4]
shr edx, 3
sub edx, ecx
mov ecx, dword [ebp + 0x10]
and edx, 0xffff
mov ebx, dword [ecx + edx*4]
mov ecx, eax
sub ecx, dword [ebp - 4]
add ebx, dword [ebp - 4]
mov dword [esi + edx*4], ecx
mov ecx, eax
mov esi, dword [ebp - 8]
sub ecx, ebx
dec ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ecx
cmp ecx, 0x2000
jge 0x10003ee5
cmp ebx, dword [ebp - 4]
jbe 0x10003ee5
mov cl, byte [ebx + 2]
cmp cl, byte [eax + 2]
jne 0x10003ee5
movzx esi, byte [ebx + 1]
lea edx, [eax + 1]
movzx ecx, byte [ebx]
mov dword [ebp - 0x24], edx
movzx edx, byte [edx]
shl esi, 8
or esi, ecx
shl edx, 8
movzx ecx, byte [eax]
or edx, ecx
cmp esi, edx
jne 0x10003ee2
mov ecx, dword [ebp - 8]
mov edx, 0x108
sub ecx, eax
mov ebx, 2
cmp ecx, 0x108
cmova ecx, edx
mov dword [ebp - 0x20], ecx
lea ecx, [edi + 4]
cmp ecx, dword [ebp - 0xc]
jb 0x10003d6c
mov esi, dword [ebp + 0xc]
xor edx, edx
test esi, esi
mov ecx, edi
sete dl
sub ecx, edx
add ecx, 4
cmp ecx, dword [ebp - 0xc]
jae 0x10003f12
mov esi, dword [ebp + 0xc]
mov ecx, edi
mov dl, byte [ebp + 0xc]
sub ecx, esi
dec dl
mov byte [ecx - 1], dl
xor ecx, ecx
mov edx, dword [ebp - 0x10]
test esi, esi
mov esi, dword [ebp - 0x20]
sete cl
sub edi, ecx
cmp esi, 0x10
jbe 0x10003e83
mov cl, byte [edx + 3]
mov ebx, 3
cmp cl, byte [eax + 3]
jne 0x10003e97
mov cl, byte [edx + 4]
mov ebx, 4
cmp cl, byte [eax + 4]
jne 0x10003e97
mov cl, byte [edx + 5]
mov ebx, 5
cmp cl, byte [eax + 5]
jne 0x10003e97
mov cl, byte [edx + 6]
mov ebx, 6
cmp cl, byte [eax + 6]
jne 0x10003e97
mov cl, byte [edx + 7]
mov ebx, 7
cmp cl, byte [eax + 7]
jne 0x10003e97
mov cl, byte [edx + 8]
mov ebx, 8
cmp cl, byte [eax + 8]
jne 0x10003e97
mov cl, byte [edx + 9]
mov ebx, 9
cmp cl, byte [eax + 9]
jne 0x10003e97
mov cl, byte [edx + 0xa]
mov ebx, 0xa
cmp cl, byte [eax + 0xa]
jne 0x10003e97
mov cl, byte [edx + 0xb]
mov ebx, 0xb
cmp cl, byte [eax + 0xb]
jne 0x10003e97
mov cl, byte [edx + 0xc]
mov ebx, 0xc
cmp cl, byte [eax + 0xc]
jne 0x10003e97
mov cl, byte [edx + 0xd]
mov ebx, 0xd
cmp cl, byte [eax + 0xd]
jne 0x10003e97
mov cl, byte [edx + 0xe]
mov ebx, 0xe
cmp cl, byte [eax + 0xe]
jne 0x10003e97
mov cl, byte [edx + 0xf]
mov ebx, 0xf
cmp cl, byte [eax + 0xf]
jne 0x10003e97
mov cl, byte [edx + 0x10]
mov ebx, 0x10
cmp cl, byte [eax + 0x10]
jne 0x10003e97
mov cl, byte [edx + 0x11]
mov ebx, 0x11
cmp cl, byte [eax + 0x11]
jne 0x10003e97
mov cl, byte [edx + 0x12]
mov ebx, 0x12
cmp cl, byte [eax + 0x12]
jne 0x10003e97
lea ecx, [ebx + eax]
sub edx, eax
inc ebx
lea ecx, [ecx + 1]
cmp ebx, esi
jae 0x10003e97
mov al, byte [edx + ecx]
cmp al, byte [ecx]
je 0x10003e88
mov edx, dword [ebp - 0x14]
sub ebx, 2
cmp ebx, 7
jae 0x10003eb3
mov ecx, edx
mov al, bl
sar ecx, 8
shl al, 5
add cl, al
mov byte [edi], cl
inc edi
jmp 0x10003ec5
mov eax, edx
sar eax, 8
sub al, 0x20
mov byte [edi], al
lea eax, [ebx - 7]
mov byte [edi + 1], al
add edi, 2
mov eax, dword [ebp - 0x24]
inc eax
mov byte [edi], dl
xor edx, edx
add eax, ebx
add edi, 2
mov dword [ebp + 0xc], edx
cmp eax, dword [ebp - 8]
jae 0x10003f1b
mov ebx, dword [ebp - 0x18]
jmp 0x10003ca6
mov esi, dword [ebp - 8]
cmp edi, dword [ebp - 0xc]
jae 0x10003f12
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
inc edx
mov byte [edi], cl
inc eax
inc edi
mov dword [ebp + 0xc], edx
cmp edx, 0x20
jne 0x10003f06
xor edx, edx
mov byte [edi - 0x21], 0x1f
mov dword [ebp + 0xc], edx
inc edi
cmp eax, esi
jae 0x10003f1b
mov ebx, dword [ebp - 0x18]
jmp 0x10003ca6
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 3]
cmp ecx, dword [ebp - 0xc]
ja 0x10003f12
mov ebx, dword [ebp - 0x1c]
cmp eax, ebx
jae 0x10003f4d
lea ebx, [ebx]
mov cl, byte [eax]
inc edx
mov byte [edi], cl
inc eax
inc edi
cmp edx, 0x20
jne 0x10003f43
mov byte [edi - 0x21], 0x1f
xor edx, edx
inc edi
cmp eax, ebx
jb 0x10003f30
mov dword [ebp + 0xc], edx
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
mov ecx, edi
sub ecx, eax
dec dl
mov byte [ecx - 1], dl
xor ecx, ecx
test eax, eax
sete cl
sub edi, ecx
sub edi, dword [ebp + 8]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret