Function at 0x10018c5e
Capabilities:
Encode data using xor

Disassembly:
push 0x64
mov eax, 0x10078e79
call fcn.10040a5d
mov esi, ecx
mov al, byte [esi + 0x20]
xor ebx, ebx
mov dword [ebp - 0x58], 0xe10
push 0x3c
pop ecx
test al, al
je 0x10018e11
mov eax, dword [esi + 0x24]
test eax, eax
jle 0x10018c8e
dec eax
mov dword [esi + 0x24], eax
mov edi, dword [esi + 0x24]
test edi, edi
js 0x10018e05
mov eax, edi
mov dword [ebp - 0x18], 0xf
cdq
idiv dword [ebp - 0x58]
push 0x3c
mov eax, edx
mov dword [ebp - 0x1c], ebx
cdq
idiv ecx
mov byte [ebp - 0x2c], bl
mov ecx, eax
mov eax, edi
cdq
pop edi
idiv edi
push 0xa
pop edi
mov dword [ebp - 4], ebx
mov eax, ebx
push edx
push ecx
cmp ecx, edi
jae 0x10018d18
cmp edx, edi
jae 0x10018cf4
mov cl, 0x24
mov dword [ebp - 0x38], 0x40011424
mov dword [ebp - 0x34], 0x4001141e
mov byte [ebp - 0x30], bl
xor byte [ebp + eax - 0x37], cl
inc eax
cmp eax, 7
jae 0x10018cef
mov cl, byte [ebp - 0x38]
jmp 0x10018ce0
mov byte [ebp - 0x30], bl
jmp 0x10018d5f
mov cl, 0x47
mov dword [ebp - 0x38], 0x23627747
mov dword [ebp - 0x34], 0x23627d
xor byte [ebp + eax - 0x37], cl
inc eax
cmp eax, 6
jae 0x10018d13
mov cl, byte [ebp - 0x38]
jmp 0x10018d04
mov byte [ebp - 0x31], bl
jmp 0x10018d5f
cmp edx, edi
jae 0x10018d3b
mov cl, 0x6a
mov dword [ebp - 0x38], 0x500e4f6a
mov dword [ebp - 0x34], 0xe4f5a
xor byte [ebp + eax - 0x37], cl
inc eax
cmp eax, 6
jae 0x10018d13
mov cl, byte [ebp - 0x38]
jmp 0x10018d2c
mov cl, 0x7d
mov dword [ebp - 0x38], 0x4719587d
mov word [ebp - 0x34], 0x1958
mov byte [ebp - 0x32], bl
xor byte [ebp + eax - 0x37], cl
inc eax
cmp eax, 5
jae 0x10018d5c
mov cl, byte [ebp - 0x38]
jmp 0x10018d4d
mov byte [ebp - 0x32], bl
sub esp, 0x18
lea eax, [ebp - 0x37]
mov ecx, esp
push eax
call fcn.10004181
lea eax, [ebp - 0x54]
push eax
call fcn.10003c4b
add esp, 0x24
lea ecx, [ebp - 0x2c]
push eax
call fcn.10007a5b
push ebx
push 1
lea ecx, [ebp - 0x54]
call fcn.10004036
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
movaps xmm0, xmmword [0x100957f0]
mov ecx, ebx
cmovae eax, dword [ebp - 0x2c]
push eax
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0x527c2a54
mov byte [ebp - 0x40], bl
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x13
jb 0x10018db0
sub esp, 0x18
mov byte [ebp - 0x40], bl
lea eax, [ebp - 0x53]
mov ecx, esp
push eax
call fcn.10004181
lea eax, [ebp - 0x70]
push eax
call fcn.10003c4b
add esp, 0x20
mov byte [ebp - 4], 1
mov edx, eax
mov ecx, dword [esi + 8]
call fcn.1000ff04
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.10004036
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
push ebx
push 1
call fcn.10004036
push 0x3c
pop ecx
cmp dword [esi + 0x24], 0
jg 0x10018e11
mov byte [esi + 0x20], bl
mov dword [esi + 0x24], ebx
mov al, byte [esi + 0x21]
test al, al
je 0x10018fbd
movzx eax, word [esi + 0x28]
test ax, ax
jle 0x10018e2a
dec eax
mov word [esi + 0x28], ax
movzx edi, word [esi + 0x28]
mov eax, edi
test ax, ax
js 0x10018fae
cwde
cdq
idiv dword [ebp - 0x58]
push 0x3c
mov eax, edx
mov dword [ebp - 0x18], 0xf
cdq
idiv ecx
mov dword [ebp - 0x1c], ebx
movzx ecx, ax
mov eax, edi
cwde
cdq
pop edi
idiv edi
mov byte [ebp - 0x2c], bl
movzx eax, dx
push 0xa
pop edx
mov dword [ebp - 4], 2
push eax
push ecx
cmp cx, dx
jae 0x10018ec2
cmp ax, dx
mov eax, ebx
jae 0x10018e9e
mov cl, 0x51
mov dword [ebp - 0x38], 0x35746151
mov dword [ebp - 0x34], 0x3574616b
mov byte [ebp - 0x30], bl
xor byte [ebp + eax - 0x37], cl
inc eax
cmp eax, 7
jae 0x10018e99
mov cl, byte [ebp - 0x38]
jmp 0x10018e8a
mov byte [ebp - 0x30], bl
jmp 0x10018f0c
mov cl, 0x38
mov dword [ebp - 0x38], 0x5c1d0838
mov dword [ebp - 0x34], 0x5c1d02
xor byte [ebp + eax - 0x37], cl
inc eax
cmp eax, 6
jae 0x10018ebd
mov cl, byte [ebp - 0x38]
jmp 0x10018eae
mov byte [ebp - 0x31], bl
jmp 0x10018f0c
cmp ax, dx
mov eax, ebx
jae 0x10018ee8
mov cl, 0x2d
mov dword [ebp - 0x38], 0x1749082d
mov dword [ebp - 0x34], 0x49081d
xor byte [ebp + eax - 0x37], cl
inc eax
cmp eax, 6
jae 0x10018ebd
mov cl, byte [ebp - 0x38]
jmp 0x10018ed9
mov cl, 0x57
mov dword [ebp - 0x38], 0x6d337257
mov word [ebp - 0x34], 0x3372
mov byte [ebp - 0x32], bl
xor byte [ebp + eax - 0x37], cl
inc eax
cmp eax, 5
jae 0x10018f09
mov cl, byte [ebp - 0x38]
jmp 0x10018efa
mov byte [ebp - 0x32], bl
sub esp, 0x18
lea eax, [ebp - 0x37]
mov ecx, esp
push eax
call fcn.10004181
lea eax, [ebp - 0x70]
push eax
call fcn.10003c4b
add esp, 0x24
lea ecx, [ebp - 0x2c]
push eax
call fcn.10007a5b
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.10004036
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
movaps xmm0, xmmword [0x10095840]
mov ecx, ebx
cmovae eax, dword [ebp - 0x2c]
push eax
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0x7d2b552e
mov word [ebp - 0x40], 0x53
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x14
jb 0x10018f60
sub esp, 0x18
mov byte [ebp - 0x3f], bl
lea eax, [ebp - 0x53]
mov ecx, esp
push eax
call fcn.10004181
lea eax, [ebp - 0x70]
push eax
call fcn.10003c4b
add esp, 0x20
mov byte [ebp - 4], 3
mov edx, eax
mov ecx, dword [esi + 0xc]
call fcn.1000ff04
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.10004036
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.10004036
cmp word [esi + 0x28], bx
jg 0x10018fbd
xor eax, eax
mov byte [esi + 0x21], bl
mov word [esi + 0x28], ax
call fcn.10040a07
ret