Function at 0x100b6970
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
push 0xffffffffffffffff
push 0x100eb818
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x278
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x1c], esi
cmp byte [esi + 0x34], 0
je 0x100b6deb
push 0x10115018
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [0x10112050], 0
jne 0x100b6ab6
mov eax, dword [esi + 0x38]
cmp eax, dword [0x10112054]
jne 0x100b6ab6
lea ecx, [esi + 0x3c]
mov edx, 0x10112058
mov edi, 0xc
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100b6ab6
add ecx, 4
add edx, 4
sub edi, 4
jae 0x100b69f0
mov ecx, dword [esi + 0x50]
cmp ecx, dword [0x1011206c]
jne 0x100b6ab6
test ecx, ecx
je 0x100b6a73
mov edx, dword [esi + 0x4c]
mov edi, dword [0x10112068]
sub ecx, 4
jb 0x100b6a37
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x100b6a3c
add edx, 4
add edi, 4
sub ecx, 4
jae 0x100b6a26
cmp ecx, 0xfffffffc
je 0x100b6a6d
mov al, byte [edx]
cmp al, byte [edi]
jne 0x100b6a69
cmp ecx, 0xfffffffd
je 0x100b6a6d
mov al, byte [edx + 1]
cmp al, byte [edi + 1]
jne 0x100b6a69
cmp ecx, 0xfffffffe
je 0x100b6a6d
mov al, byte [edx + 2]
cmp al, byte [edi + 2]
jne 0x100b6a69
cmp ecx, 0xffffffff
je 0x100b6a6d
mov al, byte [edx + 3]
cmp al, byte [edi + 3]
je 0x100b6a6d
xor al, al
jmp 0x100b6a6f
mov al, 1
test al, al
je 0x100b6ab6
movups xmm0, xmmword [0x10112070]
movups xmmword [esi + 0x54], xmm0
movups xmm0, xmmword [0x10112080]
movups xmmword [esi + 0x64], xmm0
mov eax, dword [0x10112090]
mov dword [esi + 0x74], eax
mov eax, dword [0x10112094]
mov dword [esi + 0x78], eax
movups xmm0, xmmword [0x10112098]
movups xmmword [esi + 0x7c], xmm0
movups xmm0, xmmword [0x101120a8]
movups xmmword [esi + 0x8c], xmm0
mov byte [esi + 0x34], 0
push 0x10115018
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esi + 0x34], 0
je 0x100b6deb
push dword [esi + 0x50]
lea ecx, [ebp - 0x280]
push dword [esi + 0x4c]
call fcn.100b5ca0
mov ecx, 0x40
lea esi, [ebp - 0x280]
lea edi, [ebp - 0x180]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x180]
push 0x10
lea edx, [esi + 0x3c]
call fcn.100d5530
push 4
lea edx, [ebp - 0x60]
mov dword [ebp - 0x60], 0x1000000
lea ecx, [ebp - 0x180]
call fcn.100d5530
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x180]
call fcn.100b5c70
mov ecx, dword [esi + 0x38]
mov eax, 1
movaps xmm0, xmmword [ebp - 0x60]
movaps xmm1, xmmword [ebp - 0x50]
shl eax, cl
dec eax
movaps xmmword [ebp - 0x80], xmm0
xor ecx, ecx
movaps xmmword [ebp - 0x70], xmm1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
nop dword [eax + eax]
test eax, eax
je 0x100b6bbf
mov ecx, 0x40
lea esi, [ebp - 0x280]
lea edi, [ebp - 0x180]
rep movsd dword es:[edi], dword [esi]
push 0x20
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x180]
call fcn.100d5530
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x180]
call fcn.100b5c70
xor eax, eax
nop dword [eax + eax]
movups xmm0, xmmword [ebp + eax - 0x80]
movups xmm1, xmmword [ebp + eax - 0x60]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x80], xmm1
add eax, 0x10
cmp eax, 0x20
jb 0x100b6b90
sub dword [ebp - 0x14], 1
jne 0x100b6b54
movaps xmm1, xmmword [ebp - 0x70]
movaps xmm0, xmmword [ebp - 0x80]
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x100b6bc8
lea eax, [esi + 0x54]
jmp 0x100b6bd3
lea eax, [esi + 0x7c]
cmp ecx, 1
je 0x100b6bd3
lea eax, [ebp - 0x3c]
movups xmmword [eax], xmm0
inc ecx
mov dword [ebp - 0x18], ecx
movups xmmword [eax + 0x10], xmm1
mov eax, 0x10
mov dword [ebp - 0x14], eax
cmp ecx, 3
jb 0x100b6b50
movzx eax, byte [ebp - 0x3c]
mov ecx, 8
mov byte [esi + 0x74], al
movzx eax, byte [ebp - 0x3b]
mov byte [esi + 0x75], al
movzx eax, byte [ebp - 0x3a]
lea edx, [ecx + 5]
mov byte [esi + 0x76], al
lea edi, [ecx + 3]
movzx eax, byte [ebp - 0x39]
mov byte [esi + 0x77], al
movzx eax, byte [ebp - 0x38]
mov byte [esi + 0x78], al
movzx eax, byte [ebp - 0x37]
mov byte [esi + 0x79], al
movzx eax, byte [ebp - 0x36]
mov byte [esi + 0x7a], al
movzx eax, byte [ebp - 0x35]
mov byte [esi + 0x7b], al
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 9
nop dword [eax]
mov eax, dword [ebp - 0x14]
and ecx, 7
movzx eax, byte [ebp + eax - 0x3d]
xor byte [ecx + esi + 0x74], al
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
and ecx, 7
movzx eax, byte [ebp + eax - 0x3c]
xor byte [ecx + esi + 0x74], al
lea ecx, [edi - 1]
movzx eax, byte [ebp + edi - 0x3d]
and ecx, 7
xor byte [ecx + esi + 0x74], al
mov ecx, edi
movzx eax, byte [ebp + edi - 0x3c]
and ecx, 7
add edi, 6
xor byte [ecx + esi + 0x74], al
lea ecx, [edx - 1]
movzx eax, byte [ebp + edx - 0x3d]
and ecx, 7
xor byte [ecx + esi + 0x74], al
mov ecx, edx
movzx eax, byte [ebp + edx - 0x3c]
and ecx, 7
add edx, 6
xor byte [ecx + esi + 0x74], al
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
add eax, 6
add ecx, 6
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
cmp eax, 0x21
jb 0x100b6c40
push 0x10115018
mov byte [esi + 0x34], 0
mov dword [ebp - 0x1c], 0x10115018
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [esi + 0x34]
xor ecx, ecx
mov byte [0x10112050], al
mov eax, dword [esi + 0x38]
mov dword [ebp - 4], 0
mov dword [0x10112054], eax
nop word [eax + eax]
mov al, byte [esi + ecx + 0x3c]
mov byte [ecx + 0x10112058], al
inc ecx
cmp ecx, 0x10
jb 0x100b6cf0
lea edi, [esi + 0x4c]
cmp edi, 0x10112068
je 0x100b6d6b
mov ecx, dword [edi]
mov edi, dword [edi + 4]
mov eax, dword [0x10112068]
mov dword [ebp - 0x18], ecx
cmp edi, dword [0x1011206c]
je 0x100b6d5c
test eax, eax
je 0x100b6d37
push eax
call fcn.100d5dfe
add esp, 4
mov dword [0x10112068], 0
mov dword [0x1011206c], 0
test edi, edi
je 0x100b6d6b
push edi
call fcn.100d5df5
mov ecx, dword [ebp - 0x18]
add esp, 4
mov dword [0x10112068], eax
mov dword [0x1011206c], edi
test edi, edi
je 0x100b6d6b
push edi
push ecx
push eax
call fcn.100d8b00
add esp, 0xc
xor ecx, ecx
nop dword [eax]
mov al, byte [esi + ecx + 0x54]
mov byte [ecx + 0x10112070], al
inc ecx
cmp ecx, 0x20
jb 0x100b6d70
movzx eax, byte [esi + 0x74]
xor ecx, ecx
mov byte [0x10112090], al
movzx eax, byte [esi + 0x75]
mov byte [0x10112091], al
movzx eax, byte [esi + 0x76]
mov byte [0x10112092], al
movzx eax, byte [esi + 0x77]
mov byte [0x10112093], al
movzx eax, byte [esi + 0x78]
mov byte [0x10112094], al
movzx eax, byte [esi + 0x79]
mov byte [0x10112095], al
movzx eax, byte [esi + 0x7a]
mov byte [0x10112096], al
movzx eax, byte [esi + 0x7b]
mov byte [0x10112097], al
nop word [eax + eax]
mov al, byte [esi + ecx + 0x7c]
mov byte [ecx + 0x10112098], al
inc ecx
cmp ecx, 0x20
jb 0x100b6dd0
push 0x10115018
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0xa8]
and eax, 1
or eax, 0
je 0x100b6e2d
cmp byte [esi + 0xa4], 0
je 0x100b6e2d
mov eax, dword [esi + 0x74]
cmp eax, dword [esi + 0x9c]
jne 0x100b6e18
mov eax, dword [esi + 0x78]
cmp eax, dword [esi + 0xa0]
je 0x100b6e2d
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret