Function at 0x100a75c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp esi, 2
je 0x100a75d7
cmp esi, 6
jne 0x100a795d
mov eax, dword [0x102187c8]
cmp dword [eax], 0
jne 0x100a75f3
mov dword [0x1042373c], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov edi, dword [0x10216634]
xorps xmm0, xmm0
add edi, 0x16b4
sub esp, 0x18
mov edx, esp
mov ecx, edi
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
lea ebx, [ecx + 1]
mov dword [edx + 0x14], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100a7620
sub ecx, ebx
push ecx
push edi
mov ecx, edx
call fcn.100291a0
call fcn.100a7d40
test al, al
je 0x100a7649
mov ebp, dword [0x10216634]
add ebp, 0x16b4
jmp 0x100a7662
mov eax, dword [0x102187c8]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x160]
call eax
push eax
call fcn.100a7970
mov ebp, eax
test ebp, ebp
je 0x100a795d
cmp esi, 2
jne 0x100a78f1
mov ecx, 0x4dcdb36c
call fcn.100c3de0
mov ecx, dword [0x102187c8]
movq xmm0, qword [str.YZRRTIH__W_A]
movq qword [esp + 0x12], xmm0
mov ecx, dword [ecx]
mov eax, dword [eax + ecx]
mov dword [0x1042373c], eax
mov eax, dword [0x1021663c]
mov esi, dword [eax + 0x48]
mov eax, dword [0x101affcc]
mov dword [esp + 0x1a], eax
mov ax, word [0x101affd0]
mov word [esp + 0x1e], ax
test ah, ah
je 0x100a77fd
xor ebx, ebx
cmp dword [0x10217ca4], 2
jl 0x100a77d0
movaps xmm2, xmmword [0x101ed000]
mov ebx, 8
movaps xmm3, xmmword [0x101ed430]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm1, xmm3
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101ed0a0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x101ed030]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101ed130]
movd xmm0, dword [str.YZRRTIH__W_A]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.4444444444444444]
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0x12], xmm1
movaps xmm1, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm1, xmm3
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101ed0a0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101ed130]
movd xmm0, dword [esp + 0x16]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.4444444444444444]
xorps xmm1, xmm0
movd dword [esp + 0x16], xmm1
nop dword [eax + eax]
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov cl, al
shl cl, 3
sub cl, al
mov al, bl
shl cl, 3
sub al, cl
add al, 0x34
xor byte [esp + ebx + 0x12], al
inc ebx
cmp ebx, 0xe
jl 0x100a77d0
xorps xmm0, xmm0
mov dword [esp + 0x30], 0
lea ecx, [esp + 0x12]
mov dword [esp + 0x34], 0
movups xmmword [esp + 0x20], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100a7820
sub ecx, edx
lea eax, [esp + 0x12]
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.100291a0
cmp dword [esp + 0x34], 0xf
lea edx, [esp + 0x20]
mov eax, dword [esi]
mov ecx, esi
cmova edx, dword [esp + 0x20]
push edx
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [esp + 0x34]
mov edi, eax
cmp ecx, 0xf
jbe 0x100a7888
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100a787e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a7965
push ecx
push edx
call fcn.1015fe24
add esp, 8
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0xf
mov byte [esp + 0x20], 0
test edi, edi
je 0x100a7900
mov eax, dword [edi]
mov ecx, edi
push 0
push 0xffffffffffffffff
push ebp
mov eax, dword [eax + 0x20]
push 0
call eax
cmp eax, 0xffffffff
je 0x100a795d
mov eax, dword [0x10216630]
mov ecx, ebp
mov eax, dword [eax + 0xa0]
call eax
mov edx, dword [edi]
mov esi, eax
push 0
push 0xffffffffffffffff
mov ecx, edi
push dword [esi + 8]
mov edx, dword [edx + 0x20]
push 0
call edx
mov eax, dword [edi]
mov ecx, edi
push 0
push 0xffffffffffffffff
push dword [esi + 0xc]
mov eax, dword [eax + 0x20]
push 0
call eax
jmp 0x100a7900
cmp esi, 6
jne 0x100a7900
mov edi, dword [0x1042373c]
test edi, edi
jne 0x100a7912
mov eax, dword [0x1021663c]
push ebp
mov ecx, dword [eax + 0x40]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov edi, eax
mov ecx, dword [0x102187c8]
push edi
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov edx, dword [edx + 0x12c]
call edx
mov eax, dword [0x1021663c]
mov ecx, 0xf060206d
mov esi, dword [eax + 0x18]
call fcn.100c3de0
mov edx, dword [0x102187c8]
mov ecx, esi
mov edx, dword [edx]
mov edx, dword [eax + edx]
mov eax, dword [esi]
push edx
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x100a795d
mov eax, dword [ecx]
push edi
mov eax, dword [eax + 0x12c]
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
call fcn.10164f66
int3