Function at 0x103c6e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov ebx, ecx
mov esi, dword [esp + 0x2c]
mov byte [esp + 2], 0
mov dword [esp + 0xc], ecx
jmp 0x103c74c
mov eax, dword [esp + 0x2c]
push dword [eax]
call fcn.0102a440
add esp, 4
mov ebx, dword [esp + 8]
mov esi, dword [esp + 0x2c]
mov dword [esi], ebx
mov edx, dword [esp + 4]
lea eax, [ebx + edx]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x10]
add eax, ebx
mov dword [esi + 8], eax
mov eax, dword [esp + 0x14]
movzx ecx, byte [esp + 3]
mov ebp, ebx
mov ebx, dword [esp + 0xc]
mov byte [ebp + edx], cl
inc dword [esi + 4]
cmp byte [esp + 2], 0xa
je 0x103c902
push 0x1006c792
push dword [0xef94d8]
call fcn.0105f180
add esp, 8
push 8
push 1
lea ecx, [esp + 0xa]
push ecx
push dword [ebx]
call eax
test eax, eax
jle 0x103c8c3
movzx ecx, byte [esp + 2]
mov ebp, dword [esi]
mov edi, dword [esi + 4]
mov edx, edi
sub edx, ebp
cmp edi, dword [esi + 8]
jne 0x103c73a
mov byte [esp + 3], cl
mov dword [esp + 0x14], eax
mov eax, edx
and eax, 1
mov ecx, edx
xor ecx, 1
lea eax, [ecx + eax*2]
mov esi, edx
shr esi, 1
mov dword [esp + 4], edx
lea ecx, [esi + edx]
cmp ecx, eax
ja 0x103c7ad
mov ecx, eax
mov dword [esp + 0x10], ecx
push ecx
call fcn.0102a430
add esp, 4
mov ebx, eax
test ebp, ebp
je 0x103c712
cmp ebx, ebp
mov edx, dword [esp + 4]
mov dword [esp + 8], ebx
jbe 0x103c882
cmp edi, ebx
jbe 0x103c882
test edx, edx
je 0x103c700
mov edx, dword [esp + 4]
lea eax, [edx + ebp]
dec eax
mov ecx, dword [esp + 8]
add ecx, edx
dec ecx
mov esi, edx
and esi, 7
je 0x103c814
neg esi
xor edx, edx
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp esi, edx
jne 0x103c800
add eax, edx
add ecx, edx
add edx, dword [esp + 4]
sub ebp, edi
cmp ebp, 0xfffffff8
ja 0x103c700
neg edx
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + esi]
mov byte [ecx + esi], bl
movzx ebx, byte [eax + esi - 1]
mov byte [ecx + esi - 1], bl
movzx ebx, byte [eax + esi - 2]
mov byte [ecx + esi - 2], bl
movzx ebx, byte [eax + esi - 3]
mov byte [ecx + esi - 3], bl
movzx ebx, byte [eax + esi - 4]
mov byte [ecx + esi - 4], bl
movzx ebx, byte [eax + esi - 5]
mov byte [ecx + esi - 5], bl
movzx ebx, byte [eax + esi - 6]
mov byte [ecx + esi - 6], bl
movzx ebx, byte [eax + esi - 7]
mov byte [ecx + esi - 7], bl
add esi, 0xfffffff8
cmp edx, esi
jne 0x103c830
jmp 0x103c700
mov ecx, edx
shr ecx, 2
mov eax, ebp
mov edi, ebx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, edx
and edx, 0xfffffffc
add ebx, edx
add edx, ebp
and esi, 1
mov ebp, edx
mov edi, ebx
mov ecx, esi
xchg esi, ebp
rep movsw word es:[edi], word [esi]
xchg esi, ebp
test al, 1
je 0x103c700
mov ecx, dword [esp + 4]
and ecx, 2
movzx edx, byte [edx + ecx]
mov byte [ebx + ecx], dl
jmp 0x103c700
cmp dword [ebx], 0xffffffff
je 0x103c902
push 0xea8d1240
push dword [0xef94d8]
mov esi, eax
call fcn.0105f180
add esp, 8
push 2
push dword [ebx]
call eax
push 0xa3d60213
push dword [0xef94d8]
call fcn.0105f180
add esp, 8
push dword [ebx]
call eax
mov eax, esi
mov dword [ebx], 0xffffffff
test eax, eax
setg al
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 4