Function at 0x100015e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 4
mov ebx, ecx
call fcn.100090bc
mov edi, eax
push 4
mov dword [ebp - 0xc], edi
call fcn.100090bc
mov esi, eax
add esp, 8
mov eax, dword [ebx + 0x4c]
xor edx, edx
mov dword [ebp - 0x10], esi
lea ecx, [eax*4]
test ecx, ecx
jle 0x10001641
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
sub edi, ecx
nop
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
inc edx
mov esi, dword [ebx + 0x4c]
lea eax, [esi*4]
cmp edx, eax
jl 0x10001620
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov eax, dword [ebx + 0x4c]
lea edx, [eax*4]
mov eax, dword [ebx + 0x50]
inc eax
mov dword [ebp - 0xc], edx
imul eax, dword [ebx + 0x48]
shl eax, 2
cmp edx, eax
jge 0x100018b3
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffffd
add ecx, edx
mov dword [ebp - 8], ecx
nop dword [eax]
mov al, byte [ecx - 1]
mov byte [edi], al
mov byte [ebp + 0xb], al
mov al, byte [ecx]
mov byte [edi + 1], al
mov byte [ebp - 1], al
mov al, byte [ecx + 1]
mov byte [edi + 2], al
mov byte [ebp - 2], al
mov al, byte [ecx + 2]
mov byte [edi + 3], al
mov ecx, dword [ebx + 0x4c]
mov byte [ebp - 3], al
mov eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
cdq
idiv ecx
test edx, edx
jne 0x10001787
movzx ecx, byte [ebp - 1]
mov eax, ecx
and eax, 0xfffffff0
and ecx, reloc.WS2_32.dll_ntohs
jns 0x100016c1
dec ecx
or ecx, 0xfffffff0
inc ecx
movzx eax, byte [eax + ecx + str.cw]
movzx ecx, byte [ebp - 2]
mov byte [edi], al
mov eax, ecx
and eax, 0xfffffff0
and ecx, reloc.WS2_32.dll_ntohs
jns 0x100016e1
dec ecx
or ecx, 0xfffffff0
inc ecx
movzx eax, byte [eax + ecx + str.cw]
movzx ecx, byte [ebp - 3]
mov byte [edi + 1], al
mov eax, ecx
and eax, 0xfffffff0
and ecx, reloc.WS2_32.dll_ntohs
jns 0x10001702
dec ecx
or ecx, 0xfffffff0
inc ecx
movzx eax, byte [eax + ecx + str.cw]
movzx ecx, byte [ebp + 0xb]
mov byte [edi + 2], al
mov eax, ecx
and eax, 0xfffffff0
and ecx, reloc.WS2_32.dll_ntohs
jns 0x10001723
dec ecx
or ecx, 0xfffffff0
inc ecx
movzx eax, byte [eax + ecx + str.cw]
mov cl, 1
mov byte [edi + 3], al
mov esi, dword [ebx + 0x4c]
mov eax, dword [ebp - 0xc]
shl esi, 2
cdq
idiv esi
lea edx, [eax - 1]
test edx, edx
jle 0x10001757
mov al, cl
add cl, cl
shr al, 7
movzx eax, al
imul eax, eax, 0x1b
xor cl, al
sub edx, 1
jne 0x10001743
mov esi, dword [ebp - 0x10]
mov byte [esi], cl
mov word [esi + 2], 0
mov byte [esi + 1], 0
xor byte [edi], cl
mov al, byte [edi]
mov byte [ebp + 0xb], al
movzx eax, byte [esi + 1]
xor byte [edi + 1], al
movzx eax, byte [esi + 2]
xor byte [edi + 2], al
movzx eax, byte [esi + 3]
xor byte [edi + 3], al
jmp 0x10001826
mov al, byte [ebp + 0xb]
mov byte [ebp + 0xb], al
cmp ecx, 6
jle 0x10001826
mov byte [ebp + 0xb], al
cmp edx, 4
jne 0x10001826
movzx ecx, al
mov eax, ecx
and eax, 0xfffffff0
and ecx, reloc.WS2_32.dll_ntohs
jns 0x100017b7
dec ecx
or ecx, 0xfffffff0
inc ecx
mov al, byte [eax + ecx + str.cw]
movzx ecx, byte [ebp - 1]
mov byte [ebp + 0xb], al
mov byte [edi], al
mov eax, ecx
and eax, 0xfffffff0
and ecx, reloc.WS2_32.dll_ntohs
jns 0x100017d9
dec ecx
or ecx, 0xfffffff0
inc ecx
movzx eax, byte [eax + ecx + str.cw]
movzx ecx, byte [ebp - 2]
mov byte [edi + 1], al
mov eax, ecx
and eax, 0xfffffff0
and ecx, reloc.WS2_32.dll_ntohs
jns 0x100017fa
dec ecx
or ecx, 0xfffffff0
inc ecx
movzx eax, byte [eax + ecx + str.cw]
movzx ecx, byte [ebp - 3]
mov byte [edi + 2], al
mov eax, ecx
and eax, 0xfffffff0
and ecx, reloc.WS2_32.dll_ntohs
jns 0x1000181b
dec ecx
or ecx, 0xfffffff0
inc ecx
movzx eax, byte [eax + ecx + str.cw]
mov byte [edi + 3], al
mov ecx, dword [ebx + 0x4c]
mov edx, dword [ebp - 0xc]
mov eax, edx
shl ecx, 2
sub eax, ecx
mov ecx, dword [ebp + 0xc]
movzx eax, byte [eax + ecx]
xor al, byte [ebp + 0xb]
mov ecx, dword [ebp - 8]
mov byte [ecx + 3], al
mov eax, edx
mov ecx, dword [ebx + 0x4c]
shl ecx, 2
sub eax, ecx
mov ecx, dword [ebp + 0xc]
movzx eax, byte [eax + ecx + 1]
xor al, byte [edi + 1]
mov ecx, dword [ebp - 8]
mov byte [ecx + 4], al
mov eax, edx
mov ecx, dword [ebx + 0x4c]
shl ecx, 2
sub eax, ecx
mov ecx, dword [ebp + 0xc]
movzx eax, byte [eax + ecx + 2]
xor al, byte [edi + 2]
mov ecx, dword [ebp - 8]
mov byte [ecx + 5], al
mov eax, edx
mov ecx, dword [ebx + 0x4c]
add edx, 4
shl ecx, 2
sub eax, ecx
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp + 0xc]
movzx eax, byte [eax + ecx + 3]
xor al, byte [edi + 3]
mov ecx, dword [ebp - 8]
mov byte [ecx + 6], al
add ecx, 4
mov eax, dword [ebx + 0x50]
inc eax
mov dword [ebp - 8], ecx
imul eax, dword [ebx + 0x48]
shl eax, 2
cmp edx, eax
jl 0x10001670
push esi
call fcn.100090c5
push edi
call fcn.100090c5
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8