Function at 0x100bfac0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x44
mov eax, dword [0x1020f0c0]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword fs:[0x2c]
mov edx, dword [0x1022e69c]
push ebx
push esi
push edi
mov edi, dword [eax + edx*4]
mov bl, cl
mov eax, dword [0x10521cd8]
mov byte [esp + 0x1b], bl
cmp eax, dword [edi + 4]
jle 0x100bfb26
push 0x10521cd8
call fcn.101a22b8
add esp, 4
cmp dword [0x10521cd8], 0xffffffff
jne 0x100bfb26
push 0x101ce640
call fcn.101a2004
push 0x10521cd8
call fcn.101a2267
add esp, 8
mov eax, dword [0x1022ccc8]
mov esi, dword [0x1022e690]
mov dl, byte [0x10456995]
mov cl, byte [eax + 0x17a1]
test cl, cl
jne 0x100bfb4e
cmp byte [eax + 0x18c6], 0
je 0x100bfcec
test dl, dl
jne 0x100bfcdc
mov eax, dword [0x1022ccd0]
movq xmm0, qword [0x101dbcb8]
mov ecx, dword [eax + 0x20]
mov eax, dword [0x101dbcc0]
mov dword [esp + 0x44], eax
mov ax, word [0x101dbcc4]
mov dword [esp + 0x1c], ecx
movq qword [esp + 0x3c], xmm0
mov word [esp + 0x48], ax
test ah, ah
je 0x100bfcc0
xor ebx, ebx
cmp esi, 2
jl 0x100bfc90
movaps xmm2, xmmword [0x10201400]
mov ebx, 8
movaps xmm3, xmmword [0x102017d0]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10201480]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x10201440]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x10201520]
movd xmm0, dword [0x101dbcb8]
packuswb xmm1, xmm1
paddb xmm1, xmmword [0x10201560]
xorps 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, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10201480]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x10201520]
movd xmm0, dword [esp + 0x40]
packuswb xmm1, xmm1
paddb xmm1, xmmword [0x10201560]
xorps xmm1, xmm0
movd dword [esp + 0x40], xmm1
nop dword [eax]
mov eax, 0x4bda12f7
mov cl, bl
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x36
sub cl, al
add cl, 0x38
xor byte [esp + ebx + 0x3c], cl
inc ebx
cmp ebx, 0xe
jl 0x100bfc90
mov bl, byte [esp + 0x1b]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
lea edx, [esp + 0x3c]
push 0
push edx
push 0x1022c178
mov eax, dword [eax + 0xc]
call eax
mov byte [0x10456995], 1
jmp 0x100bfd0b
test cl, cl
jne 0x100bfce8
cmp byte [eax + 0x18c6], cl
je 0x100bfcec
test bl, bl
je 0x100bfd10
test dl, dl
je 0x100bfd10
mov eax, dword [0x1022ccd0]
push 0x1022c178
mov ecx, dword [eax + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
mov byte [0x10456995], 0
mov eax, dword [0x1022ccc8]
mov ecx, dword [0x10521cb0]
cmp ecx, dword [edi + 4]
jle 0x100bfd50
push 0x10521cb0
call fcn.101a22b8
add esp, 4
cmp dword [0x10521cb0], 0xffffffff
jne 0x100bfd4b
push 0x101ce630
call fcn.101a2004
push 0x10521cb0
call fcn.101a2267
add esp, 8
mov eax, dword [0x1022ccc8]
mov cl, byte [eax + 0x17a1]
mov dl, byte [0x10456994]
test cl, cl
jne 0x100bfd6d
cmp byte [eax + 0x18c6], 0
je 0x100bff08
test dl, dl
jne 0x100bfef8
mov eax, dword [0x1022ccd0]
movq xmm0, qword [0x101dbcb8]
mov ecx, dword [eax + 0x20]
mov eax, dword [0x101dbcc0]
mov dword [esp + 0x44], eax
mov ax, word [0x101dbcc4]
mov dword [esp + 0x1c], ecx
movq qword [esp + 0x3c], xmm0
mov word [esp + 0x48], ax
test ah, ah
je 0x100bfedc
xor ebx, ebx
cmp esi, 2
jl 0x100bfeb0
movaps xmm2, xmmword [0x10201400]
mov ebx, 8
movaps xmm4, xmmword [0x102017d0]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
mov eax, dword [0x10201560]
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10201480]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x10201440]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x10201520]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [0x101dbcb8]
xorps 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, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10201480]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x10201520]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [esp + 0x40]
xorps xmm1, xmm0
movd dword [esp + 0x40], xmm1
nop dword [eax]
mov eax, 0x4bda12f7
mov cl, bl
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x36
sub cl, al
add cl, 0x38
xor byte [esp + ebx + 0x3c], cl
inc ebx
cmp ebx, 0xe
jl 0x100bfeb0
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
lea edx, [esp + 0x3c]
push 0
push edx
push 0x1022c184
mov eax, dword [eax + 0xc]
call eax
mov byte [0x10456994], 1
jmp 0x100bff27
test cl, cl
jne 0x100bff04
cmp byte [eax + 0x18c6], cl
je 0x100bff08
test bl, bl
je 0x100bff2c
test dl, dl
je 0x100bff2c
mov eax, dword [0x1022ccd0]
push 0x1022c184
mov ecx, dword [eax + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
mov byte [0x10456994], 0
mov eax, dword [0x1022ccc8]
mov ecx, dword [0x10521c94]
cmp ecx, dword [edi + 4]
jle 0x100bff6c
push 0x10521c94
call fcn.101a22b8
add esp, 4
cmp dword [0x10521c94], 0xffffffff
jne 0x100bff67
push 0x101ce620
call fcn.101a2004
push 0x10521c94
call fcn.101a2267
add esp, 8
mov eax, dword [0x1022ccc8]
mov dl, byte [eax + 0x1651]
mov cl, byte [0x1045698c]
test dl, dl
jne 0x100bff89
cmp byte [eax + 0x1632], 0
je 0x100c0149
test cl, cl
jne 0x100c013d
mov eax, dword [0x1022ccd0]
movups xmm0, xmmword [str.HU_BYOaY_.600_6GUVPN_]
mov edi, dword [eax + 0x20]
movups xmmword [esp + 0x3c], xmm0
psrldq xmm0, 0xf
movd eax, xmm0
test al, al
je 0x100c010f
xor ebx, ebx
cmp esi, 2
jl 0x100c00e7
movaps xmm0, xmmword [0x10201560]
lea esi, [esp + 0x40]
movaps xmm4, xmmword [0x10201400]
xor ecx, ecx
movaps xmm3, xmmword [0x102017d0]
movaps xmm5, xmmword [0x10201480]
movaps xmmword [esp + 0x20], xmm0
mov edx, dword [esp + 0x20]
nop dword [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, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x10201520]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [esp + ecx + 0x3c]
xorps 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, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x10201520]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [esi + ecx]
xorps xmm1, xmm0
movd dword [esi + ecx], xmm1
add ecx, 8
cmp ecx, 0x10
jl 0x100bfff0
jmp 0x100c010f
mov eax, 0x4bda12f7
mov cl, bl
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x36
sub cl, al
add cl, 0x38
xor byte [esp + ebx + 0x3c], cl
inc ebx
cmp ebx, 0x10
jl 0x100c00e7
mov eax, dword [edi]
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0x1022c174
mov eax, dword [eax + 0xc]
mov ecx, edi
call eax
mov byte [0x1045698c], 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.101a1d25
mov esp, ebp
pop ebp
ret
test dl, dl
jne 0x100c0150
cmp byte [eax + 0x1632], dl
jne 0x100c0150
cmp byte [esp + 0x1b], 0
je 0x100c016f
test cl, cl
je 0x100c016f
mov eax, dword [0x1022ccd0]
push 0x1022c174
mov ecx, dword [eax + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
mov byte [0x1045698c], 0
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101a1d25
mov esp, ebp
pop ebp
ret