Function at 0x100015a3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x678
xor eax, eax
mov dword [ebp - 0x28], 1
push ebx
push esi
push edi
xor edx, edx
lea edi, [ebp - 0x5b]
mov byte [ebp - 0x5c], dl
stosd dword es:[edi], eax
mov byte [ebp - 0x1c], dl
push 7
pop ecx
stosd dword es:[edi], eax
mov byte [ebp - 0x48], dl
push 0x3ff
push edx
stosd dword es:[edi], eax
mov byte [ebp - 0x55c], dl
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x1b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x47]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x55b]
push eax
call fcn.10017e80
mov ebx, dword [ebp + 0x10]
add esp, 0xc
lea esi, [ebx + 0x200]
push esi
call fcn.10017f36
pop ecx
push esi
xor esi, esi
mov dword [ebp - 0xc], eax
push esi
push eax
call fcn.10017e80
add esp, 0xc
lea eax, [ebp - 0x674]
push 0x118
push esi
push eax
call fcn.10017e80
add esp, 0xc
lea eax, [ebp - 0x15c]
push 0xec
push esi
push eax
call fcn.10017e80
mov edi, dword [ebp + 0x18]
mov eax, ebx
cdq
add esp, 0xc
mov ecx, edx
mov ebx, eax
mov dword [ebp - 8], ecx
and dword [edi], esi
cmp dword [ebp + 8], esi
je 0x100018b3
cmp dword [ebp + 8], 1
jne 0x10001af9
test ecx, ecx
jl 0x10001af9
jg 0x1000167e
cmp ebx, 0x30
jb 0x10001af9
and eax, 0xf
or eax, 0
jne 0x10001af9
push 0x10
pop esi
push esi
push dword [ebp + 0xc]
add ebx, 0xffffffd0
lea eax, [ebp - 0x55c]
push eax
adc ecx, 0xffffffff
mov dword [ebp - 8], ecx
call fcn.10017fb0
add esp, 0xc
lea eax, [ebp - 0x55c]
push esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10017fb0
movzx eax, byte [ebp - 0xd]
add esp, 0xc
and eax, 0xf
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x48]
push 0x20
push 0
push eax
call fcn.10017e80
add esp, 0xc
lea eax, [ebp - 0x1c]
push esi
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.10017fb0
add esp, 0xc
mov edi, 0x2000
xor edx, edx
lea ecx, [ebp - 0x15c]
call fcn.1000e0f0
push 0x20
lea edx, [ebp - 0x48]
call fcn.10010680
mov edx, dword [ebp + 0x1c]
pop ecx
push 0x20
lea ecx, [ebp - 0x15c]
call fcn.10010680
pop ecx
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x15c]
call fcn.10010730
dec edi
jne 0x100016ed
push ecx
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x674]
call fcn.1000d420
pop ecx
push edi
push 0x20
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x15c]
call fcn.10010bd0
cmp dword [ebp - 8], edi
xorps xmm0, xmm0
mov edi, dword [ebp + 0x18]
pop ecx
pop ecx
movlpd qword [ebp - 0x24], xmm0
jl 0x10001854
jg 0x10001768
test ebx, ebx
je 0x10001854
mov eax, dword [ebp - 0x20]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp + 0x18], eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x10
add eax, ecx
push esi
push eax
lea eax, [ebp - 0x55c]
push eax
call fcn.10017fb0
add esp, 0xc
lea eax, [ebp - 0x55c]
push esi
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.10017fb0
add esp, 0xc
lea edx, [ebp - 0x55c]
lea ecx, [ebp - 0x15c]
push esi
call fcn.10010680
pop ecx
lea eax, [ebp - 0x55c]
xor edx, edx
push eax
push eax
lea ecx, [ebp - 0x674]
call fcn.1000d630
pop ecx
pop ecx
xor ecx, ecx
mov al, byte [ebp + ecx - 0x1c]
xor byte [ebp + ecx - 0x55c], al
inc ecx
cmp ecx, esi
jl 0x100017cd
push esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10017fb0
mov edx, dword [ebp - 0x4c]
add esp, 0xc
test edx, edx
jle 0x10001810
mov ecx, dword [ebp - 8]
mov eax, ebx
sub eax, esi
sbb ecx, 0
cmp dword [ebp + 0x18], eax
jne 0x10001810
cmp dword [ebp + 8], ecx
jne 0x10001810
mov eax, edx
mov dword [ebp + 0x1c], eax
jmp 0x10001815
mov eax, esi
mov dword [ebp + 0x1c], esi
push eax
lea eax, [ebp - 0x55c]
push eax
mov eax, dword [edi]
add eax, dword [ebp - 0xc]
push eax
call fcn.10017fb0
mov eax, dword [ebp + 0x1c]
add esp, 0xc
add dword [edi], eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
add eax, esi
mov dword [ebp + 0x18], eax
adc ecx, 0
mov dword [ebp + 8], ecx
cmp ecx, dword [ebp - 8]
jl 0x10001774
jg 0x10001854
cmp eax, ebx
jb 0x10001774
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x15c]
call fcn.10010d10
mov esi, dword [ebp + 0xc]
push 0x20
lea eax, [esi + 0x10]
add eax, ebx
push eax
lea eax, [ebp - 0x55c]
push eax
call fcn.10017fb0
add esp, 0xc
xor dl, dl
xor ecx, ecx
mov al, byte [ebp + ecx - 0x55c]
xor al, byte [ebp + ecx - 0x48]
or dl, al
inc ecx
cmp ecx, 0x20
jl 0x10001880
test dl, dl
jne 0x10001af9
push dword [ebp + 0x10]
push 0
push esi
call fcn.10017e80
add esp, 0xc
push dword [edi]
push dword [ebp - 0xc]
jmp 0x10001aea
xor esi, esi
mov edi, ecx
mov ecx, esi
mov eax, ebx
shl ecx, 3
mov edx, edi
call fcn.1002a420
mov byte [ebp + esi - 0x55c], al
inc esi
cmp esi, 8
jl 0x100018b7
push 0x10
pop esi
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x5c]
push eax
call fcn.10017fb0
add esp, 0xc
lea ecx, [ebp - 0x15c]
xor edx, edx
call fcn.1000e0f0
push 8
lea edx, [ebp - 0x55c]
call fcn.10010680
pop ecx
push esi
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x15c]
call fcn.10010680
pop ecx
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x15c]
call fcn.10010730
push esi
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10017fb0
mov cl, byte [ebp - 0xd]
add esp, 0xc
mov al, cl
xor al, bl
and al, 0xf
xor cl, al
lea eax, [ebp - 0x1c]
push esi
push eax
push dword [ebp - 0xc]
mov byte [ebp - 0xd], cl
call fcn.10017fb0
mov edi, dword [ebp + 0x18]
lea eax, [ebp - 0x48]
add esp, 0xc
add dword [edi], esi
push 0x20
push 0
push eax
call fcn.10017e80
add esp, 0xc
lea eax, [ebp - 0x1c]
push esi
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.10017fb0
add esp, 0xc
mov edi, 0x2000
xor edx, edx
lea ecx, [ebp - 0x15c]
call fcn.1000e0f0
push 0x20
lea edx, [ebp - 0x48]
call fcn.10010680
mov edx, dword [ebp + 0x1c]
pop ecx
push 0x20
lea ecx, [ebp - 0x15c]
call fcn.10010680
pop ecx
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x15c]
call fcn.10010730
dec edi
jne 0x10001978
push ecx
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x674]
call fcn.1000c5b0
pop ecx
push edi
push 0x20
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x15c]
call fcn.10010bd0
mov eax, dword [ebp - 8]
xorps xmm0, xmm0
mov edi, dword [ebp + 0x18]
movlpd qword [ebp - 0x24], xmm0
pop ecx
pop ecx
test eax, eax
jl 0x10001ac0
jg 0x100019f5
test ebx, ebx
je 0x10001ac0
mov ecx, dword [ebp - 0x20]
mov dword [ebp + 0x18], ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp + 8], ecx
mov edx, ebx
sub edx, ecx
sbb eax, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
js 0x10001a17
jg 0x10001a13
cmp edx, esi
jbe 0x10001a17
mov eax, esi
jmp 0x10001a1b
mov eax, ebx
sub eax, ecx
push eax
mov eax, dword [ebp + 0xc]
add eax, ecx
push eax
lea eax, [ebp - 0x55c]
push eax
call fcn.10017fb0
add esp, 0xc
xor ecx, ecx
mov al, byte [ebp + ecx - 0x1c]
xor byte [ebp + ecx - 0x55c], al
inc ecx
cmp ecx, esi
jl 0x10001a33
lea eax, [ebp - 0x55c]
xor edx, edx
push eax
push eax
inc edx
lea ecx, [ebp - 0x674]
call fcn.1000d630
push esi
lea edx, [ebp - 0x55c]
lea ecx, [ebp - 0x15c]
call fcn.10010680
add esp, 0xc
lea eax, [ebp - 0x55c]
push esi
push eax
mov eax, dword [edi]
add eax, dword [ebp - 0xc]
push eax
call fcn.10017fb0
add dword [edi], esi
lea eax, [ebp - 0x55c]
add esp, 0xc
push esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10017fb0
mov ecx, dword [ebp + 8]
add esp, 0xc
mov edx, dword [ebp + 0x18]
add ecx, esi
mov eax, dword [ebp - 8]
adc edx, 0
mov dword [ebp + 8], ecx
mov dword [ebp + 0x18], edx
cmp edx, eax
jl 0x10001a01
jg 0x10001ac0
cmp ecx, ebx
jb 0x10001a01
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x15c]
call fcn.10010d10
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 0x48]
push 0x20
push eax
mov eax, dword [edi]
add eax, ebx
push eax
call fcn.10017fb0
add esp, 0xc
add dword [edi], 0x20
push dword [edi]
push ebx
push dword [ebp + 0x14]
call fcn.10017fb0
add esp, 0xc
and dword [ebp - 0x28], 0
push 0x400
lea eax, [ebp - 0x55c]
push 0
push eax
call fcn.10017e80
add esp, 0xc
lea eax, [ebp - 0x48]
push 0x20
push 0
push eax
call fcn.10017e80
add esp, 0xc
lea ecx, [ebp - 0x674]
call fcn.1000c590
lea ecx, [ebp - 0x15c]
call fcn.1000e0d0
push dword [ebp - 0xc]
call fcn.100185f4
mov eax, dword [ebp - 0x28]
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c