Function at 0x100c28b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100eb7bb
push eax
mov dword fs:[0], esp
sub esp, 0x264
push ebx
mov ebx, ecx
push esi
push edi
mov al, byte [ebx + 0x34]
test al, al
je 0x100c2b9e
push 0x1010e880
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [0x1010e818]
test al, al
jne 0x100c2967
mov eax, dword [ebx + 0x38]
mov ecx, dword [0x1010e81c]
cmp eax, ecx
jne 0x100c2967
mov ecx, 4
mov edi, 0x1010e820
lea esi, [ebx + 0x3c]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x100c2967
mov ecx, dword [ebx + 0x50]
mov eax, dword [0x1010e834]
cmp ecx, eax
jne 0x100c2967
test ecx, ecx
je 0x100c2933
mov esi, dword [ebx + 0x4c]
mov edi, dword [0x1010e830]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
sete al
test al, al
je 0x100c2967
lea edi, [ebx + 0x54]
mov ecx, 8
mov esi, 0x1010e838
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x1010e858]
lea edi, [ebx + 0x7c]
mov dword [ebx + 0x74], ecx
mov edx, dword [0x1010e85c]
mov ecx, 8
mov esi, 0x1010e860
mov dword [ebx + 0x78], edx
rep movsd dword es:[edi], dword [esi]
mov byte [ebx + 0x34], 0
push 0x1010e880
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebx + 0x34]
test al, al
je 0x100c2b9e
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x4c]
push ebp
push eax
push ecx
lea ecx, [esp + 0x17c]
call fcn.100c15b0
mov ecx, 0x40
lea esi, [esp + 0x174]
lea edi, [esp + 0x74]
push 0x10
rep movsd dword es:[edi], dword [esi]
lea edx, [ebx + 0x3c]
lea ecx, [esp + 0x78]
call fcn.100df950
push 4
lea edx, [esp + 0x18]
lea ecx, [esp + 0x78]
mov byte [esp + 0x18], 0
mov byte [esp + 0x19], 0
mov byte [esp + 0x1a], 0
mov byte [esp + 0x1b], 1
call fcn.100df950
lea eax, [esp + 0x14]
lea ecx, [esp + 0x74]
push eax
call fcn.100c1680
mov ecx, 8
lea esi, [esp + 0x14]
lea edi, [esp + 0x34]
mov eax, 1
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x38]
shl eax, cl
dec eax
xor ebp, ebp
test eax, eax
je 0x100c2a57
mov dword [esp + 0x10], eax
mov ecx, 0x40
lea esi, [esp + 0x174]
lea edi, [esp + 0x74]
push 0x20
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x18]
lea ecx, [esp + 0x78]
call fcn.100df950
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x78]
call fcn.100c1680
xor eax, eax
mov dl, byte [esp + eax + 0x14]
mov cl, byte [esp + eax + 0x34]
xor cl, dl
mov byte [esp + eax + 0x34], cl
inc eax
cmp eax, 0x20
jb 0x100c2a38
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x100c2a07
test ebp, ebp
jne 0x100c2a60
lea edi, [ebx + 0x54]
jmp 0x100c2a6c
cmp ebp, 1
lea edi, [ebx + 0x7c]
je 0x100c2a6c
lea edi, [esp + 0x54]
inc ebp
mov ecx, 8
lea esi, [esp + 0x34]
cmp ebp, 3
rep movsd dword es:[edi], dword [esi]
mov eax, 0x10
jb 0x100c29ff
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x78], ecx
mov eax, 8
mov edx, eax
and edx, 7
lea ecx, [edx + ebx + 0x74]
mov dl, byte [esp + eax + 0x54]
xor byte [ecx], dl
inc eax
cmp eax, 0x20
jb 0x100c2a99
lea esi, [ebx + 0x34]
push 0x1010e880
mov dword [esp + 0x14], 0x1010e880
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, ebx
mov dword [esp + 0x27c], 0
neg eax
sbb eax, eax
and eax, esi
mov esi, 0x10
mov ebp, eax
mov cl, byte [eax]
sub ebp, 0x1010e818
mov byte [0x1010e818], cl
mov edx, dword [eax + 4]
mov dword [0x1010e81c], edx
mov ecx, 0x1010e820
mov dl, byte [ecx + ebp]
mov byte [ecx], dl
inc ecx
dec esi
jne 0x100c2afd
add eax, 0x18
cmp eax, 0x1010e830
je 0x100c2b59
mov esi, dword [eax]
mov edi, dword [eax + 4]
cmp edi, dword [0x1010e834]
je 0x100c2b3f
mov ecx, 0x1010e830
call fcn.1004c974
test edi, edi
je 0x100c2b59
push edi
call fcn.100035d5
add esp, 4
mov dword [0x1010e830], eax
mov dword [0x1010e834], edi
test edi, edi
je 0x100c2b59
mov ecx, edi
mov edi, dword [0x1010e830]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, 0x1010e838
mov esi, 0x20
mov cl, byte [eax + ebp]
mov byte [eax], cl
inc eax
dec esi
jne 0x100c2b63
mov eax, 0x1010e858
mov esi, 8
mov dl, byte [eax + ebp]
mov byte [eax], dl
inc eax
dec esi
jne 0x100c2b76
mov eax, 0x1010e860
mov esi, 0x20
mov cl, byte [eax + ebp]
mov byte [eax], cl
inc eax
dec esi
jne 0x100c2b89
push 0x1010e880
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
mov eax, dword [ebx + 0xa8]
xor ecx, ecx
and eax, 1
or eax, ecx
je 0x100c2bd0
mov al, byte [ebx + 0xa4]
test al, al
je 0x100c2bd0
mov ecx, 2
lea edi, [ebx + 0x9c]
lea esi, [ebx + 0x74]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
mov eax, edx
sete al
jmp 0x100c2bd2
mov al, 1
mov ecx, dword [esp + 0x270]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x270
ret