Function at 0x100112c0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x100b5004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100aa50b], 0
mov eax, dword [0x100aa508]
movups xmm0, xmmword [0x100aa4f8]
mov dword [ebp - 0x44], eax
mov eax, 4
push esi
push edi
mov edi, dword [0x100ddd64]
mov esi, 0x54f
mov dword [ebp - 0x14], ecx
lea edx, [eax + 0x1b]
movups xmmword [ebp - 0x54], xmm0
je 0x10011480
xor ecx, ecx
mov dword [ebp - 8], ecx
cmp edi, 2
jl 0x10011453
movaps xmm0, xmmword [0x100aca80]
movaps xmm4, xmmword [0x100aca30]
movaps xmm3, xmmword [0x100acab0]
movaps xmm6, xmmword [0x100aca50]
movaps xmmword [ebp - 0x70], xmm0
movd xmm7, edx
mov edx, dword [ebp - 0x70]
movd xmm5, eax
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x100aca70]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [ebp + ecx - 0x54]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [ebp + ecx - 0x54], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x100aca70]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [ebp + ecx - 0x50]
pxor xmm1, xmm0
movd dword [ebp + ecx - 0x50], xmm1
add ecx, 8
cmp ecx, 0x10
jl 0x10011354
mov dword [ebp - 8], ecx
cmp ecx, 0x14
jge 0x10011480
mov eax, 0x5397829d
imul ecx
mov al, 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub al, cl
mov ecx, dword [ebp - 8]
movsx eax, al
imul eax, eax, 0x31
add al, cl
xor byte [ebp + ecx - 0x54], al
inc ecx
mov dword [ebp - 8], ecx
cmp ecx, 0x14
jl 0x10011453
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x54]
push eax
push dword [ecx + 0x54]
call fcn.10010b40
movups xmm0, xmmword [0x100aa4e0]
mov dword [ebp - 0x24], eax
xor ecx, ecx
mov eax, dword [0x100aa4f0]
mov dword [ebp - 0x30], eax
mov ax, word [0x100aa4f4]
mov word [ebp - 0x2c], ax
mov al, byte [0x100aa4f6]
mov byte [ebp - 0x2a], al
mov dword [ebp - 8], ecx
movups xmmword [ebp - 0x40], xmm0
cmp edi, 2
jl 0x10011600
movaps xmm0, xmmword [0x100aca80]
mov eax, 4
movaps xmm4, xmmword [0x100aca30]
movaps xmm3, xmmword [0x100acab0]
movaps xmm6, xmmword [0x100aca50]
movd xmm5, eax
mov eax, 0x1f
movaps xmmword [ebp - 0x70], xmm0
mov edx, dword [ebp - 0x70]
movd xmm7, eax
nop word [eax + eax]
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x100aca70]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [ebp + ecx - 0x40]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [ebp + ecx - 0x40], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x100aca70]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [ebp + ecx - 0x3c]
pxor xmm1, xmm0
movd dword [ebp + ecx - 0x3c], xmm1
add ecx, 8
cmp ecx, 0x10
jl 0x10011500
mov dword [ebp - 8], ecx
cmp ecx, 0x17
jge 0x1001162d
nop
mov eax, 0x5397829d
imul ecx
mov al, 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub al, cl
mov ecx, dword [ebp - 8]
movsx eax, al
imul eax, eax, 0x31
add al, cl
xor byte [ebp + ecx - 0x40], al
inc ecx
mov dword [ebp - 8], ecx
cmp ecx, 0x17
jl 0x10011600
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x40]
push eax
push dword [edi + 0x54]
call fcn.10010b40
cmp dword [ebp - 0x24], 0
mov dword [ebp - 0x28], eax
je 0x1001174c
test eax, eax
je 0x1001174c
mov eax, dword [edi + 0x54]
xor esi, esi
mov edi, dword [eax + 0x3c]
add edi, eax
xor eax, eax
cmp ax, word [edi + 6]
jae 0x100116c9
movzx eax, si
lea ecx, [eax + eax*4]
movzx eax, word [edi + 0x14]
add eax, edi
lea eax, [eax + ecx*8]
add eax, 0x18
mov dword [ebp - 0x20], eax
mov eax, dword [0x100aa4d8]
mov dword [ebp - 0x1c], eax
mov ax, word [0x100aa4dc]
mov word [ebp - 0x18], ax
test ah, ah
je 0x100116b1
xor ecx, ecx
mov eax, 0x5397829d
mul ecx
shr edx, 4
movsx eax, dl
mov dl, cl
imul eax, eax, 0x31
sub dl, al
add dl, 0x31
xor byte [ebp + ecx - 0x1c], dl
inc ecx
cmp ecx, 6
jl 0x10011690
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x100116e1
inc esi
cmp si, word [edi + 6]
jb 0x10011663
mov eax, 0x54f
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bc9e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
mov esi, dword [eax + 0xc]
mov edi, dword [eax + 8]
lea eax, [ebp - 8]
add esi, dword [ecx + 0x54]
push eax
push 0x40
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push 0xffffffffffffffff
mov dword [ebp - 0xc], edi
call dword [ebp - 0x28]
test eax, eax
jne 0x1001174e
push eax
mov eax, dword [ebp - 0x14]
push edi
push esi
push esi
push dword [eax + 0x44]
call dword [ebp - 0x24]
test eax, eax
jne 0x1001174e
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
call dword [ebp - 0x28]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bc9e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1007bc9e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret