Function at 0x100bac30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x44
mov eax, dword [0x1020a0c0]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword fs:[0x2c]
mov edx, dword [0x102296ac]
push ebx
push esi
mov bl, cl
mov esi, dword [eax + edx*4]
mov eax, dword [0x104e56f4]
push edi
mov byte [esp + 0x1b], bl
cmp eax, dword [esi + 4]
jle 0x100bac96
push 0x104e56f4
call fcn.1019d7b4
add esp, 4
cmp dword [0x104e56f4], 0xffffffff
jne 0x100bac96
push 0x101c9970
call fcn.1019d442
push 0x104e56f4
call fcn.1019d76a
add esp, 8
mov eax, dword [0x10227c40]
mov edi, dword [0x102296a0]
mov dl, byte [0x104e1e05]
mov cl, byte [eax + 0x1641]
test cl, cl
jne 0x100bacbe
cmp byte [eax + 0x1766], 0
je 0x100bae6c
test dl, dl
jne 0x100bae5c
mov eax, dword [0x10227c48]
movq xmm0, qword [0x101f0be4]
mov ecx, dword [eax + 0x20]
mov eax, dword [0x101f0bec]
mov dword [esp + 0x44], eax
mov ax, word [0x101f0bf0]
mov dword [esp + 0x1c], ecx
movq qword [esp + 0x3c], xmm0
mov word [esp + 0x48], ax
test ah, ah
je 0x100bae40
xor ebx, ebx
cmp edi, 2
jl 0x100bae10
movaps xmm2, xmmword [0x101ff6c0]
mov eax, 4
movaps xmm3, xmmword [0x101ffba0]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
mov ebx, 8
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
movd xmm4, eax
mov eax, 0x1f
psrad xmm1, xmm4
movaps xmm0, xmm1
movd xmm5, eax
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101ff720]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x101ff700]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x101ff7d0]
movd xmm0, dword [0x101f0be4]
packuswb xmm1, xmm1
paddb xmm1, xmmword [0x101ff830]
pxor xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0x3c], xmm1
movaps xmm1, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm4
movaps xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101ff720]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x101ff7d0]
movd xmm0, dword [esp + 0x40]
packuswb xmm1, xmm1
paddb xmm1, xmmword [0x101ff830]
pxor xmm1, xmm0
movd dword [esp + 0x40], xmm1
nop dword [eax + eax]
mov eax, 0x5397829d
mov cl, bl
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x31
sub cl, al
add cl, 0x36
xor byte [esp + ebx + 0x3c], cl
inc ebx
cmp ebx, 0xe
jl 0x100bae10
mov bl, byte [esp + 0x1b]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
lea edx, [esp + 0x3c]
push 0
push edx
push 0x10227110
mov eax, dword [eax + 0xc]
call eax
mov byte [0x104e1e05], 1
jmp 0x100bae8b
test cl, cl
jne 0x100bae68
cmp byte [eax + 0x1766], cl
je 0x100bae6c
test bl, bl
je 0x100bae90
test dl, dl
je 0x100bae90
mov eax, dword [0x10227c48]
push 0x10227110
mov ecx, dword [eax + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
mov byte [0x104e1e05], 0
mov eax, dword [0x10227c40]
mov ecx, dword [0x104e56cc]
cmp ecx, dword [esi + 4]
jle 0x100baed0
push 0x104e56cc
call fcn.1019d7b4
add esp, 4
cmp dword [0x104e56cc], 0xffffffff
jne 0x100baecb
push 0x101c9960
call fcn.1019d442
push 0x104e56cc
call fcn.1019d76a
add esp, 8
mov eax, dword [0x10227c40]
mov cl, byte [eax + 0x1641]
mov dl, byte [0x104e1e04]
test cl, cl
jne 0x100baeed
cmp byte [eax + 0x1766], 0
je 0x100bb098
test dl, dl
jne 0x100bb088
mov eax, dword [0x10227c48]
movq xmm0, qword [0x101f0be4]
mov ecx, dword [eax + 0x20]
mov eax, dword [0x101f0bec]
mov dword [esp + 0x44], eax
mov ax, word [0x101f0bf0]
mov dword [esp + 0x1c], ecx
movq qword [esp + 0x3c], xmm0
mov word [esp + 0x48], ax
test ah, ah
je 0x100bb06c
xor ebx, ebx
cmp edi, 2
jl 0x100bb040
movaps xmm2, xmmword [0x101ff6c0]
mov eax, 4
movaps xmm4, xmmword [0x101ffba0]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
mov ebx, 8
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
movd xmm5, eax
mov eax, 0x1f
psrad xmm1, xmm5
movaps xmm0, xmm1
movd xmm6, eax
mov eax, dword [0x101ff830]
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101ff720]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x101ff700]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x101ff7d0]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [0x101f0be4]
pxor xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0x3c], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101ff720]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x101ff7d0]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [esp + 0x40]
pxor xmm1, xmm0
movd dword [esp + 0x40], xmm1
nop
mov eax, 0x5397829d
mov cl, bl
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x31
sub cl, al
add cl, 0x36
xor byte [esp + ebx + 0x3c], cl
inc ebx
cmp ebx, 0xe
jl 0x100bb040
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
lea edx, [esp + 0x3c]
push 0
push edx
push 0x1022711c
mov eax, dword [eax + 0xc]
call eax
mov byte [0x104e1e04], 1
jmp 0x100bb0b7
test cl, cl
jne 0x100bb094
cmp byte [eax + 0x1766], cl
je 0x100bb098
test bl, bl
je 0x100bb0bc
test dl, dl
je 0x100bb0bc
mov eax, dword [0x10227c48]
push 0x1022711c
mov ecx, dword [eax + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
mov byte [0x104e1e04], 0
mov eax, dword [0x10227c40]
mov ecx, dword [0x104e56bc]
cmp ecx, dword [esi + 4]
jle 0x100bb0fc
push 0x104e56bc
call fcn.1019d7b4
add esp, 4
cmp dword [0x104e56bc], 0xffffffff
jne 0x100bb0f7
push 0x101c9950
call fcn.1019d442
push 0x104e56bc
call fcn.1019d76a
add esp, 8
mov eax, dword [0x10227c40]
mov dl, byte [eax + 0x14f1]
mov cl, byte [0x104e1dfc]
test dl, dl
jne 0x100bb119
cmp byte [eax + 0x14d2], 0
je 0x100bb2f2
test cl, cl
jne 0x100bb2e6
mov eax, dword [0x10227c48]
movups xmm0, xmmword [str.F_Y__Ic_QP4264EPKMI_]
mov esi, dword [eax + 0x20]
movups xmmword [esp + 0x3c], xmm0
psrldq xmm0, 0xf
movd eax, xmm0
test al, al
je 0x100bb2b8
xor ebx, ebx
cmp edi, 2
jl 0x100bb290
movaps xmm0, xmmword [0x101ff830]
mov eax, 4
movaps xmm4, xmmword [0x101ff6c0]
xor ecx, ecx
movaps xmm3, xmmword [0x101ffba0]
movaps xmm6, xmmword [0x101ff720]
movd xmm5, eax
mov eax, 0x1f
movaps xmmword [esp + 0x20], xmm0
mov edx, dword [esp + 0x20]
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 [0x101ff7d0]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [esp + ecx + 0x3c]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [esp + ecx + 0x3c], 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 [0x101ff7d0]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [esp + ecx + 0x40]
pxor xmm1, xmm0
movd dword [esp + ecx + 0x40], xmm1
add ecx, 8
cmp ecx, 0x10
jl 0x100bb190
jmp 0x100bb2b8
mov eax, 0x5397829d
mov cl, bl
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x31
sub cl, al
add cl, 0x36
xor byte [esp + ebx + 0x3c], cl
inc ebx
cmp ebx, 0x10
jl 0x100bb290
mov eax, dword [esi]
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0x1022710c
mov eax, dword [eax + 0xc]
mov ecx, esi
call eax
mov byte [0x104e1dfc], 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.1019d163
mov esp, ebp
pop ebp
ret
test dl, dl
jne 0x100bb2f9
cmp byte [eax + 0x14d2], dl
jne 0x100bb2f9
cmp byte [esp + 0x1b], 0
je 0x100bb318
test cl, cl
je 0x100bb318
mov eax, dword [0x10227c48]
push 0x1022710c
mov ecx, dword [eax + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
mov byte [0x104e1dfc], 0
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1019d163
mov esp, ebp
pop ebp
ret