Function at 0x10018570
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009c9a5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4c
push esi
mov eax, dword [0x100b7040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov al, byte [0x100baa67]
mov byte [ebp - 0x12], al
cmp al, 0x41
je 0x10018722
mov ecx, 0xd78dd4
mov byte [ebp - 0x11], 0
call fcn.10018420
mov ecx, eax
call fcn.10001d40
cmp ecx, eax
jne 0x100185e9
mov ecx, 0xd78dd4
call fcn.10018420
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, eax
je 0x100185ed
mov byte [ebp - 0x11], 1
call fcn.10001d50
cmp dword [0x100baaac], eax
mov edx, 1
movzx ecx, byte [ebp - 0x11]
cmovne ecx, edx
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ecx, eax
call fcn.10012d60
mov ecx, 0xd78dd4
mov esi, eax
call fcn.10018420
cmp esi, eax
jne 0x1001864c
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ecx, eax
call fcn.10012d60
mov ecx, dword [0x100baa48]
mov esi, eax
call fcn.10012d60
cmp eax, esi
jne 0x1001864c
cmp byte [ebp - 0x18], 0
je 0x10018722
movaps xmm0, xmmword [0x100af3b0]
xor ecx, ecx
movzx eax, byte [ebp - 0x12]
movups xmmword [ebp - 0x40], xmm0
push eax
movaps xmm0, xmmword [0x100af9a0]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0x706d6b71
mov word [ebp - 0x1c], 0x73
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0x24
jb 0x10018676
sub esp, 0x18
mov byte [ebp - 0x1b], 0
mov edx, esp
lea ecx, [ebp - 0x3f]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100186a6
sub ecx, esi
lea eax, [ebp - 0x3f]
push ecx
push eax
mov ecx, edx
call fcn.10002580
lea eax, [ebp - 0x58]
push eax
call fcn.1000a310
add esp, 0x20
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.1001d260
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x10018710
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10018706
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100187d8
push ecx
push edx
call fcn.100810d6
add esp, 8
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.100235a0
test eax, eax
je 0x100187c5
movaps xmm0, xmmword [0x100af750]
xor ecx, ecx
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0x767377
mov al, byte [ebp - 0x30]
xor byte [ebp + ecx - 0x2f], al
inc ecx
cmp ecx, 0x12
jb 0x10018743
xorps xmm0, xmm0
mov byte [ebp - 0x1d], 0
lea ecx, [ebp - 0x2f]
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10018770
sub ecx, edx
lea eax, [ebp - 0x2f]
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.10002580
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 1
call fcn.1001d260
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x100187c5
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100187bb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100187dd
push ecx
push edx
call fcn.100810d6
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.1008626f
call fcn.1008626f
int3