Function at 0x10018419
Capabilities:
Encode data using xor

Disassembly:
push 0xbc
mov eax, 0x1003f2e5
call fcn.1003d7e1
mov esi, ecx
movzx eax, word [ebp + 0xc]
movzx ecx, word [ebp + 0x14]
movzx edi, word [ebp + 8]
and dword [ebp - 0x5c], 0
mov dword [ebp - 0x64], eax
movzx eax, word [ebp + 0x10]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x68], ecx
mov dword [ebp - 4], 1
test di, di
je 0x1001873b
test ax, ax
je 0x1001873b
cmp dword [esi + 0x2c], 0
ja 0x1001873b
cmp dword [ebp + 0x2c], 0xf
lea eax, [ebp + 0x18]
lea ecx, [ebp - 0x28]
cmova eax, dword [ebp + 0x18]
push eax
call fcn.10003d9a
push 2
pop ebx
mov byte [ebp - 4], bl
lea edx, [ebp - 0x28]
mov ecx, dword [esi + 4]
call fcn.1000d186
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.10003b98
cmp dword [ebp + 0x44], 0xf
lea eax, [ebp + 0x30]
lea ecx, [ebp - 0x28]
cmova eax, dword [ebp + 0x30]
push eax
call fcn.10003d9a
mov byte [ebp - 4], 3
lea edx, [ebp - 0x28]
mov ecx, dword [esi + 8]
call fcn.1000d186
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.10003b98
mov ecx, dword [esi + 0xc]
xor edx, edx
call fcn.1000d1a9
mov ecx, dword [esi + 0x10]
xor edx, edx
call fcn.1000d1a9
or eax, 0xffffffff
cmp di, ax
je 0x10018731
cmp word [ebp - 0x60], ax
je 0x10018731
xor edx, edx
mov word [ebp - 0x4c], 0x1c6f
mov cl, 0x6f
mov byte [ebp - 0x4a], 0x16
mov byte [ebp - 0x49], bl
mov eax, edx
mov dword [ebp - 0x48], 0x3303000d
mov byte [ebp - 0x44], dl
xor byte [ebp + eax - 0x4b], cl
inc eax
cmp eax, 7
jae 0x10018520
mov cl, byte [ebp - 0x4c]
jmp 0x10018511
lea eax, [ebp - 0x4b]
mov byte [ebp - 0x44], dl
push eax
mov edx, 0x10055470
lea ecx, [ebp - 0x40]
call fcn.1000c3bf
pop ecx
mov eax, dword [ebp - 0x64]
mov byte [ebp - 4], 4
test ax, ax
jne 0x10018583
movaps xmm0, xmmword [0x1004d3d0]
xor ecx, ecx
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x48], 0x501a5f46
mov word [ebp - 0x44], 0x404c
mov byte [ebp - 0x42], al
mov al, byte [ebp - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0x15
jb 0x1001855e
lea eax, [ebp - 0x57]
mov byte [ebp - 0x42], 0
push eax
lea ecx, [ebp - 0x98]
call fcn.10003d9a
xor ebx, ebx
inc ebx
jmp 0x100185d5
cmp dword [ebp - 0x2c], 0xf
lea ecx, [ebp - 0x40]
movaps xmm0, xmmword [0x1004d720]
cmova ecx, dword [ebp - 0x40]
cwde
push eax
movsx eax, di
push eax
push 1
push ecx
movups xmmword [ebp - 0x54], xmm0
mov word [ebp - 0x44], 0x7c
xor ecx, ecx
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x10
jb 0x100185aa
sub esp, 0x18
mov byte [ebp - 0x43], 0
lea eax, [ebp - 0x53]
mov ecx, esp
push eax
call fcn.10003d9a
lea eax, [ebp - 0x80]
push eax
call fcn.100039e3
add esp, 0x2c
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x5c], ebx
call fcn.100039aa
mov dword [ebp - 4], 6
test bl, 2
je 0x100185fb
and ebx, 0xfffffffd
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x5c], ebx
call fcn.10003b98
mov byte [ebp - 4], 7
test bl, 1
je 0x10018615
and ebx, 0xfffffffe
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x5c], ebx
call fcn.10003b98
mov ecx, dword [esi + 0x14]
lea edx, [ebp - 0x28]
call fcn.1000cdf8
mov ecx, dword [esi + 0x14]
sub esp, 0x1c
call fcn.1000ce3e
mov eax, dword [ebp - 0x68]
add esp, 0x1c
test ax, ax
jne 0x10018678
movaps xmm0, xmmword [0x1004d8f0]
xor ecx, ecx
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x48], 0x7a30756c
mov word [ebp - 0x44], 0x6a66
mov byte [ebp - 0x42], al
mov al, byte [ebp - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0x15
jb 0x10018653
lea eax, [ebp - 0x57]
mov byte [ebp - 0x42], 0
push eax
lea ecx, [ebp - 0xc8]
call fcn.10003d9a
or ebx, 4
jmp 0x100186d1
cmp dword [ebp - 0x2c], 0xf
lea ecx, [ebp - 0x40]
movaps xmm0, xmmword [0x1004ce70]
cmova ecx, dword [ebp - 0x40]
cwde
push eax
mov eax, dword [ebp - 0x60]
cwde
push eax
push 1
push ecx
movups xmmword [ebp - 0x54], xmm0
mov word [ebp - 0x44], 0x27
xor ecx, ecx
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x10
jb 0x100186a0
sub esp, 0x18
mov byte [ebp - 0x43], 0
lea eax, [ebp - 0x53]
mov ecx, esp
push eax
call fcn.10003d9a
lea eax, [ebp - 0xb0]
push eax
call fcn.100039e3
add esp, 0x2c
or ebx, 8
push eax
lea ecx, [ebp - 0x28]
call fcn.10008b15
test bl, 8
je 0x100186ed
lea ecx, [ebp - 0xb0]
and ebx, 0xfffffff7
call fcn.10003b98
mov dword [ebp - 4], 7
test bl, 4
je 0x10018704
lea ecx, [ebp - 0xc8]
call fcn.10003b98
mov ecx, dword [esi + 0x18]
lea edx, [ebp - 0x28]
call fcn.1000cdf8
mov ecx, dword [esi + 0x18]
sub esp, 0x1c
call fcn.1000ce3e
add esp, 0x1c
lea ecx, [ebp - 0x28]
call fcn.10003b98
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.10003b98
mov ecx, dword [esi + 0x34]
mov dl, 1
call fcn.1000c91c
lea ecx, [ebp + 0x18]
call fcn.10003b98
lea ecx, [ebp + 0x30]
call fcn.10003b98
call fcn.1003d79f
ret 0x40