Function at 0x10013861
Capabilities:
Encode data using xor

Disassembly:
push 0x98
mov eax, 0x1003edba
call fcn.1003d7b1
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x70], eax
and dword [ebp - 4], 0
cmp dword [0x10057860], 0
je 0x10013cc3
lea eax, [ebx + 0x10]
push 0xa
mov dword [ebp - 0x44], eax
mov esi, eax
pop eax
mov dword [ebp - 0x2c], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x100138b0
xor dl, dl
call fcn.1000c8aa
mov eax, dword [ebp - 0x2c]
add esi, 4
sub eax, 1
mov dword [ebp - 0x2c], eax
jne 0x100138a0
mov ecx, dword [ebx]
call dword [0x1004b6a0]
mov esi, dword [ebp - 0x70]
mov ax, word [edi]
cmp ax, word [esi]
jb 0x100139fa
mov ax, word [edi + 2]
cmp ax, word [esi + 2]
jb 0x100139fa
mov ax, word [edi + 4]
cmp ax, word [esi + 4]
jb 0x100139fa
mov ax, word [edi + 6]
cmp ax, word [esi + 6]
jb 0x100139fa
mov ecx, dword [ebx + 0x10]
call fcn.1000c7c8
mov ecx, dword [ebx + 8]
mov edi, edx
call fcn.1000c7c8
mov ecx, dword [ebx + 0x10]
mov esi, eax
call fcn.1000c83b
mov ecx, dword [ebx + 8]
add eax, edi
push eax
mov edx, esi
call fcn.1000c861
cmp dword [ebp + 0x28], 0xf
lea eax, [ebp + 0x14]
pop ecx
cmova eax, dword [ebp + 0x14]
mov cl, 0x73
xor edx, edx
mov dword [ebp - 0x2c], 0x5673
push eax
mov eax, edx
xor byte [ebp + eax - 0x2b], cl
inc eax
cmp eax, 2
jae 0x1001394e
mov cl, byte [ebp - 0x2c]
jmp 0x1001393f
sub esp, 0x18
mov byte [ebp - 0x29], dl
lea eax, [ebp - 0x2b]
mov ecx, esp
push eax
call fcn.10003d99
lea eax, [ebp - 0x28]
push eax
call fcn.100039e2
add esp, 0x20
mov byte [ebp - 4], 1
mov edx, eax
mov ecx, dword [ebx + 4]
call fcn.1000d114
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.10003b97
movaps xmm0, xmmword [0x1004d6b0]
xor ecx, ecx
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x646d716c
mov dword [ebp - 0x14], 0x206475
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x16
jb 0x100139a0
sub esp, 0x18
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.10003d99
lea eax, [ebp - 0x8c]
push eax
call fcn.100039e2
add esp, 0x1c
mov byte [ebp - 4], 2
mov edx, eax
mov ecx, dword [ebx + 0x38]
call fcn.1000d114
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0
call fcn.10003b97
mov ecx, dword [ebx + 0x10]
mov dl, 1
call fcn.1000c8aa
jmp 0x10013cb9
cmp dword [ebp + 0x28], 0xf
lea eax, [ebp + 0x14]
mov cl, 0x69
mov dword [ebp - 0x2c], 0x1a4c69
cmova eax, dword [ebp + 0x14]
push eax
xor eax, eax
xor byte [ebp + eax - 0x2b], cl
inc eax
cmp eax, 2
jae 0x10013a20
mov cl, byte [ebp - 0x2c]
jmp 0x10013a11
sub esp, 0x18
mov byte [ebp - 0x29], 0
lea eax, [ebp - 0x2b]
mov ecx, esp
push eax
call fcn.10003d99
lea eax, [ebp - 0x8c]
push eax
call fcn.100039e2
add esp, 0x20
mov byte [ebp - 4], 3
mov edx, eax
mov ecx, dword [ebx + 4]
call fcn.1000d114
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0
call fcn.10003b97
mov eax, dword [ebp - 0x48]
lea ecx, [ebx + 0x10]
sub esi, eax
mov dword [ebp - 0x74], 4
sub edi, eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x64], edi
movzx edx, word [eax]
test dx, dx
je 0x10013ca3
mov ecx, edx
call fcn.10008491
mov dword [ebp - 0x2c], eax
mov cl, 0x13
mov dword [ebp - 0x40], 0x787d4613
xor eax, eax
mov dword [ebp - 0x3c], 0x7d647c7d
mov byte [ebp - 0x38], 0
xor byte [ebp + eax - 0x3f], cl
inc eax
cmp eax, 7
jae 0x10013ab0
mov cl, byte [ebp - 0x40]
jmp 0x10013aa1
lea eax, [ebp - 0x3f]
mov byte [ebp - 0x38], 0
push eax
lea ecx, [ebp - 0x28]
call fcn.10003d99
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10013adc
add eax, 4
lea ecx, [ebp - 0x28]
push eax
call fcn.1000743d
jmp 0x10013bc3
mov ecx, dword [ebp - 0x48]
xor eax, eax
inc eax
cmp word [ecx], ax
jne 0x10013bc3
cmp byte [0x100578dc], 0
mov ecx, dword [0x10057860]
mov dword [ebp - 0x2c], ecx
je 0x10013b46
mov ecx, 0x10b8134
call fcn.1000d24b
mov dword [ebp - 0x68], eax
test eax, eax
je 0x10013b40
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10013b40
mov eax, dword [ebp - 0x68]
add eax, 0x6dc
push 4
push eax
mov dword [ebp - 0x68], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov ecx, dword [ebp - 0x2c]
test eax, eax
jne 0x10013b43
mov eax, dword [ebp - 0x68]
mov al, byte [eax]
mov byte [ecx + 0x38], al
jmp 0x10013b43
mov ecx, dword [ebp - 0x2c]
xor eax, eax
inc eax
cmp byte [ecx + 0x38], al
jne 0x10013b7c
xor edx, edx
mov dword [ebp - 0x54], 0x65290045
mov cl, 0x45
mov dword [ebp - 0x50], 0x24372a08
mov word [ebp - 0x4c], 0x21
mov eax, edx
xor byte [ebp + eax - 0x53], cl
inc eax
cmp eax, 8
jae 0x10013b74
mov cl, byte [ebp - 0x54]
jmp 0x10013b65
mov byte [ebp - 0x4b], dl
lea edx, [ebp - 0x53]
jmp 0x10013ba7
mov cl, 0x6a
mov dword [ebp - 0x34], 0x180b216a
mov word [ebp - 0x30], 0x191f
xor eax, eax
mov byte [ebp - 0x2e], 0
xor byte [ebp + eax - 0x33], cl
inc eax
cmp eax, 5
jae 0x10013ba0
mov cl, byte [ebp - 0x34]
jmp 0x10013b91
mov byte [ebp - 0x2e], 0
lea edx, [ebp - 0x33]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x68], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10013baf
sub ecx, dword [ebp - 0x68]
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10003b04
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x14], 0xf
mov word [ebp - 0x5e], 0x457
mov word [ebp - 0x5b], 0xb40
movzx edx, word [eax + esi]
movzx ecx, word [edi + eax]
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push edx
push ecx
push eax
xor eax, eax
mov word [ebp - 0x58], 0x40
inc eax
mov cl, 0x24
mov byte [ebp - 0x5f], al
mov byte [ebp - 0x5c], al
mov byte [ebp - 0x59], al
xor eax, eax
mov byte [ebp - 0x60], cl
xor byte [ebp + eax - 0x5f], cl
inc eax
cmp eax, 8
jae 0x10013c10
mov cl, byte [ebp - 0x60]
jmp 0x10013c01
sub esp, 0x18
mov byte [ebp - 0x57], 0
lea eax, [ebp - 0x5f]
mov ecx, esp
push eax
call fcn.10003d99
lea eax, [ebp - 0xa4]
push eax
call fcn.100039e2
add esp, 0x28
mov esi, dword [ebp - 0x44]
mov edx, eax
mov byte [ebp - 4], 5
mov ecx, dword [esi + 0x28]
call fcn.1000d114
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 4
call fcn.10003b97
mov ecx, dword [esi]
call fcn.1000c7c8
mov ecx, dword [ebx + 8]
mov edi, edx
call fcn.1000c7c8
mov esi, eax
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
call fcn.1000c83b
mov ecx, dword [ebx + 8]
add eax, edi
push eax
mov edx, esi
call fcn.1000c861
mov eax, dword [ebp - 0x44]
mov dl, 1
pop ecx
mov ecx, dword [eax]
call fcn.1000c8aa
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.10003b97
mov edi, dword [ebp - 0x64]
mov esi, dword [ebp - 0x70]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
add ecx, 4
add eax, 2
sub dword [ebp - 0x74], 1
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], eax
jne 0x10013a75
mov ecx, dword [ebx]
push 1
call dword [0x1004b6a4]
lea ecx, [ebp + 0x14]
call fcn.10003b97
call fcn.1003d76f
ret 0x24