Function at 0x1018d9e0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
call fcn.1018dc90
push 0xb00
push 0
push 0x1070e6a0
mov ebx, 0x1071b1b0
call fcn.1039a3e0
add esp, 0xc
mov esi, 0x1043cf34
xor edi, edi
nop
mov ecx, dword [esi - 4]
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x1018db27
movzx eax, byte [edi + 0x1043de60]
movzx edx, byte [edi + 0x1043de78]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], 0
jle 0x1018db27
mov ecx, edx
mov dword [ebp - 8], 0
imul ecx, eax
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0xc]
push dword [ebp - 0x10]
mov edx, dword [esi]
add edx, dword [ebp - 8]
push eax
push eax
mov eax, dword [esi + 4]
push ebx
push 0x40
movzx eax, byte [eax + ecx]
lea ecx, [eax + eax*2]
movzx eax, byte [edx]
lea ecx, [eax + ecx*2]
movzx eax, byte [edi + 0x1043de78]
imul eax, dword [edx + 8]
shl ecx, 6
sar eax, 3
sub ecx, eax
movzx eax, byte [edi + 0x1043de60]
imul eax, dword [edx + 4]
shl ecx, 6
sar eax, 3
sub ecx, eax
add ecx, 0x1070f9d0
push ecx
call dword [0x107597a8]
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 0xc]
push dword [ebp - 0x10]
mov dword [eax + ecx*4], ebx
mov eax, dword [ebp - 0x14]
mov edx, dword [esi]
add edx, dword [ebp - 8]
push eax
push eax
mov eax, dword [esi + 4]
add ebx, dword [ebp - 4]
push ebx
push 0x40
movzx eax, byte [eax + ecx]
xor eax, 1
lea ecx, [eax + eax*2]
movzx eax, byte [edx]
lea ecx, [eax + ecx*2]
movzx eax, byte [edi + 0x1043de78]
imul eax, dword [edx + 8]
shl ecx, 6
sar eax, 3
sub ecx, eax
movzx eax, byte [edi + 0x1043de60]
imul eax, dword [edx + 4]
shl ecx, 6
sar eax, 3
sub ecx, eax
add ecx, 0x1070f9d0
push ecx
call dword [0x107597a8]
mov ecx, dword [ebp - 0xc]
add esp, 0x30
mov eax, dword [esi + 8]
add dword [ebp - 8], 0xc
mov dword [eax + ecx*4 + 0x40], ebx
inc ecx
add ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
cmp ecx, dword [ebp - 0x18]
jl 0x1018da51
add esi, 0x10
inc edi
cmp esi, 0x1043d094
jl 0x1018da10
xor edx, edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], edx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
nop dword [eax + eax]
movzx edi, byte [ecx + 0x1043de60]
cmp edi, 0x20
ja 0x1018dc59
mov al, byte [ecx + 0x1043de78]
cmp al, 0x20
ja 0x1018dc59
movzx ebx, byte [ecx + 0x1070a3a0]
lea esi, [edx + ecx]
mov edx, dword [ebp - 0x10]
shl esi, 0xa
movzx edx, dl
add esi, 0x1073b1b0
movzx eax, al
mov dword [ebp - 8], eax
cmp edx, 3
ja case.0x1018db96.0
jmp dword [edx*4 + 0x1018dc80]
test eax, eax
je 0x1018dc56
mov eax, 0x1043df28
mov dword [ebp - 0x14], eax
nop dword [eax]
movzx eax, byte [eax]
push edi
push eax
push esi
call fcn.1039a3e0
mov eax, dword [ebp - 0x14]
add esp, 0xc
add eax, ebx
add esi, edi
sub dword [ebp - 8], 1
mov dword [ebp - 0x14], eax
jne 0x1018dbb0
jmp 0x1018dc53
test eax, eax
je 0x1018dc56
nop dword [eax + eax]
xor ecx, ecx
test edi, edi
je 0x1018dbff
mov edx, 0x1043df28
nop dword [eax + eax]
mov al, byte [edx]
add edx, ebx
mov byte [ecx + esi], al
inc ecx
cmp ecx, edi
jl 0x1018dbf0
mov eax, dword [ebp - 8]
add esi, edi
sub eax, 1
mov dword [ebp - 8], eax
jne 0x1018dbe0
jmp 0x1018dc53
xor edx, edx
test eax, eax
je 0x1018dc56
xor eax, eax
test edi, edi
je 0x1018dc2f
cmp edx, eax
mov ecx, eax
cmovb ecx, edx
imul ecx, ebx
mov cl, byte [ecx + 0x1043df28]
mov byte [eax + esi], cl
inc eax
cmp eax, edi
jl 0x1018dc17
inc edx
add esi, edi
cmp edx, dword [ebp - 8]
jl 0x1018dc11
jmp 0x1018dc53
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1018dc56
push edi
push 0x20
push esi
call fcn.1039a3e0
add esp, 0xc
add esi, edi
sub ebx, 1
jne 0x1018dc40
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
inc ecx
mov dword [ebp - 0xc], ecx
cmp ecx, 0x16
jl 0x1018db50
inc dword [ebp - 0x10]
add edx, 0x16
mov dword [ebp - 4], edx
cmp edx, 0x58
jl 0x1018db43
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret