Function at 0x100ba980
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1c8
mov eax, dword [0x1020f0c0]
xor eax, esp
mov dword [esp + 0x1c4], eax
mov eax, dword [0x1022ee74]
push esi
mov esi, ecx
push edi
cmp dword [eax], 0
mov dword [esp + 0x14], esi
je 0x100bad00
xorps xmm0, xmm0
mov dword [esp + 0x40], 0
xor eax, eax
movaps xmmword [esp + 0x30], xmm0
mov dword [esp + 0x44], 7
mov word [esp + 0x30], ax
test esi, esi
je 0x100babc4
mov ax, word [0x101f42ec]
xor edx, edx
movq xmm0, qword [str.T_dTX_S4_B]
mov word [esp + 0x2c], ax
mov al, byte [0x101f42ee]
movq qword [esp + 0x24], xmm0
mov byte [esp + 0x2e], al
mov dword [esp + 0x10], edx
nop
mov eax, 0x2f684bdb
mul edx
mov eax, dword [esp + 0x10]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [esp + 0x10]
shr eax, 5
mov cl, dl
movsx eax, al
imul eax, eax, 0x36
sub cl, al
add cl, 0x38
xor byte [esp + edx + 0x24], cl
inc edx
mov dword [esp + 0x10], edx
cmp edx, 0xb
jl 0x100baa00
mov eax, dword [esi]
lea ecx, [esp + 0x24]
push 0
push ecx
mov ecx, esi
mov eax, dword [eax + 0x18]
call eax
mov edx, eax
lea ecx, [esp + 0x50]
call fcn.1003da90
lea ecx, [esp + 0x30]
call fcn.10002350
movaps xmm0, xmmword [esp + 0x50]
xor edx, edx
mov al, byte [0x101f4434]
movaps xmmword [esp + 0x30], xmm0
movq xmm0, qword [esp + 0x60]
movq qword [esp + 0x40], xmm0
movq xmm0, qword [str.YMNZ_V_M_]
movq qword [esp + 0x24], xmm0
mov byte [esp + 0x2c], al
mov dword [esp + 0x10], edx
nop word [eax + eax]
mov eax, 0x2f684bdb
mul edx
mov eax, dword [esp + 0x10]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [esp + 0x10]
shr eax, 5
mov cl, dl
movsx eax, al
imul eax, eax, 0x36
sub cl, al
add cl, 0x38
xor byte [esp + edx + 0x24], cl
inc edx
mov dword [esp + 0x10], edx
cmp edx, 9
jl 0x100baa90
mov eax, dword [esi]
lea ecx, [esp + 0x24]
push 0
push ecx
mov ecx, esi
mov eax, dword [eax + 0x18]
call eax
mov ecx, dword [0x1022ccd0]
mov dword [esp + 0x10], eax
mov edi, dword [ecx + 0x10]
mov ecx, dword [0x1022ee74]
mov esi, dword [ecx]
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x28]
lea ecx, [esi + 8]
call edx
mov ecx, dword [edi]
mov edx, dword [ecx + 0x20]
lea ecx, [esp + 0x70]
push ecx
push eax
mov ecx, edi
call edx
or edi, 0xffffffff
test al, al
mov ecx, edi
cmovne ecx, dword [esp + 0x100]
cmp dword [esp + 0x10], ecx
jne 0x100bacc8
mov esi, dword [esp + 0x14]
push ecx
mov dword [esp], 0
mov ecx, esi
push 0x101f237c
mov eax, dword [esi]
mov eax, dword [eax + 0x20]
call eax
mov eax, dword [esi]
fstp st(0)
push ecx
mov dword [esp], 0
mov ecx, esi
push 0x101f2390
mov eax, dword [eax + 0x20]
call eax
mov eax, dword [esi]
fstp st(0)
push ecx
mov dword [esp], 0
mov ecx, esi
push 0x101f238c
mov eax, dword [eax + 0x20]
call eax
mov eax, dword [0x1022ee74]
fstp st(0)
mov ecx, dword [eax]
test ecx, ecx
je 0x100bacc8
mov eax, dword [0x1022ccd0]
add ecx, 8
mov esi, dword [eax + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
mov edx, dword [esi]
lea ecx, [esp + 0x70]
push ecx
push eax
mov ecx, esi
mov edx, dword [edx + 0x20]
call edx
test al, al
cmovne edi, dword [esp + 0x100]
cmp dword [esp + 0x10], edi
jne 0x100bacc8
mov eax, dword [0x1022ccc4]
mov eax, dword [eax + 0x10]
movss xmm0, dword [eax]
movss dword [0x104569e0], xmm0
jmp 0x100bacc8
mov ecx, dword [0x1022ccc4]
mov eax, dword [0x1022ccc8]
movss xmm1, dword [0x104569e0]
mov ecx, dword [ecx + 0x10]
addss xmm1, dword [eax + 0x1788]
movss xmm0, dword [ecx]
comiss xmm0, xmm1
ja 0x100bacc8
cmp byte [eax + 0x1afd], 0
je 0x100bacc8
movups xmm0, xmmword [eax + 0x1ae8]
lea edx, [esp + 0x24]
lea ecx, [esp + 0x18]
movups xmmword [esp + 0x50], xmm0
call fcn.10037210
test al, al
jne 0x100bacc8
movss xmm1, dword [0x10201190]
movss xmm0, dword [esp + 0x5c]
mov eax, dword [0x1022ccd0]
mulss xmm0, xmm1
mov ecx, dword [eax + 0x5c]
cvttss2si eax, xmm0
mov edx, dword [ecx]
movss xmm0, dword [esp + 0x58]
mulss xmm0, xmm1
push eax
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x58]
mulss xmm0, xmm1
push eax
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x58]
mulss xmm0, xmm1
push eax
cvttss2si eax, xmm0
push eax
mov eax, dword [edx + 0x64]
call eax
mov eax, dword [0x1022ccd0]
mov ecx, dword [eax + 0x5c]
mov eax, dword [0x1022ccd8]
mov edx, dword [ecx]
push dword [eax + 0x14]
mov eax, dword [edx + 0x5c]
call eax
mov eax, dword [0x1022ccd0]
mov ecx, dword [eax + 0x5c]
cvttss2si eax, dword [esp + 0x28]
mov edx, dword [ecx]
push eax
cvttss2si eax, dword [esp + 0x28]
push eax
mov eax, dword [edx + 0x68]
call eax
mov eax, dword [0x1022ccd0]
lea edx, [esp + 0x30]
cmp dword [esp + 0x44], 7
push 0
push dword [esp + 0x44]
mov ecx, dword [eax + 0x5c]
cmova edx, dword [esp + 0x38]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x70]
call eax
mov ecx, dword [esp + 0x44]
cmp ecx, 7
jbe 0x100bad00
mov edx, dword [esp + 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100bacf6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100bad14
push ecx
push edx
call fcn.101a201e
add esp, 8
mov ecx, dword [esp + 0x1cc]
pop edi
pop esi
xor ecx, esp
call fcn.101a1d25
mov esp, ebp
pop ebp
ret
call fcn.101a7156
int3