Function at 0x100c5870
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017f81d
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x101dadb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
push 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.10048e10
lea ecx, [ebp - 0x2c]
add esp, 4
mov dword [eax + 4], 0
mov dword [ebp - 0x2c], eax
mov dword [eax], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 1
mov edx, dword [esi + 8]
mov byte [esi + 4], 0
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edx + 1]
cmp eax, ecx
jbe 0x100c590a
xor bh, bh
jmp 0x100c5918
push edx
lea ecx, [esi + 0x10]
call fcn.1004f440
mov edx, dword [esi + 8]
mov bh, byte [eax]
lea eax, [edx + 1]
mov ecx, esi
mov dword [esi + 8], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.1007ff60
mov esi, eax
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edx + 1]
cmp eax, ecx
jbe 0x100c593f
xor bl, bl
jmp 0x100c594d
push edx
lea ecx, [esi + 0x10]
call fcn.1004f440
mov edx, dword [esi + 8]
mov bl, byte [eax]
inc edx
mov dword [esi + 8], edx
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edx + 1]
cmp eax, ecx
jbe 0x100c5962
xor cl, cl
jmp 0x100c5970
push edx
lea ecx, [esi + 0x10]
call fcn.1004f440
mov edx, dword [esi + 8]
mov cl, byte [eax]
lea eax, [edx + 1]
mov dword [esi + 8], eax
movzx eax, bh
sub eax, 1
je 0x100c5a5c
sub eax, 1
jne 0x100c5b84
cmp dword [ebp - 0x14], 0x10
movaps xmm0, xmmword [0x101c28b0]
movzx eax, cl
push eax
movzx eax, bl
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x50], 0x4d1b19
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
movups xmmword [ebp - 0x70], xmm0
push eax
movaps xmm0, xmmword [0x101c1c90]
movups xmmword [ebp - 0x60], xmm0
nop
mov al, byte [ebp - 0x70]
xor byte [ebp + ecx - 0x6f], al
inc ecx
cmp ecx, 0x22
jb 0x100c59c0
sub esp, 0x1c
mov byte [ebp - 0x4d], 0
lea eax, [ebp - 0x6f]
mov ecx, esp
push eax
call fcn.10047670
lea eax, [ebp - 0x48]
push eax
call fcn.1004a7a0
add esp, 0x2c
mov byte [ebp - 4], 3
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0x74], ecx
jb 0x100c5a00
mov ecx, dword [ecx]
mov dword [ebp - 0x74], ecx
mov ebx, ecx
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100c5a05
sub ebx, ecx
lea esi, [ebx + 0x21]
push esi
call fcn.10120ea0
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0x78], edi
call fcn.10123240
push ebx
push dword [ebp - 0x74]
lea esi, [edi + 0x20]
push esi
call fcn.10122ae0
add esp, 0x1c
mov dword [edi + 0x14], ebx
mov dword [edi + 4], esi
mov dword [edi + 0x18], 0x1f
mov ecx, dword ds:[0xf3690c]
push 0
push 0xffffffffffffffff
push dword [ebp - 0x78]
mov eax, dword [0x101ba6ac]
call eax
jmp 0x100c5b37
cmp dword [ebp - 0x14], 0x10
movaps xmm0, xmmword [0x101c2940]
movzx eax, cl
push eax
movzx eax, bl
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x50], 0x13061947
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
movups xmmword [ebp - 0x70], xmm0
push eax
movaps xmm0, xmmword [0x101c1dc0]
movups xmmword [ebp - 0x60], xmm0
mov word [ebp - 0x4c], 0x4711
mov byte [ebp - 0x4a], 0
nop dword [eax]
mov al, byte [ebp - 0x70]
xor byte [ebp + ecx - 0x6f], al
inc ecx
cmp ecx, 0x25
jb 0x100c5aa0
sub esp, 0x1c
mov byte [ebp - 0x4a], 0
lea eax, [ebp - 0x6f]
mov ecx, esp
push eax
call fcn.10047670
lea eax, [ebp - 0x48]
push eax
call fcn.1004a7a0
add esp, 0x2c
mov byte [ebp - 4], 2
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0x74], ecx
jb 0x100c5ae0
mov ecx, dword [ecx]
mov dword [ebp - 0x74], ecx
mov ebx, ecx
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100c5ae5
sub ebx, ecx
lea esi, [ebx + 0x21]
push esi
call fcn.10120ea0
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0x78], edi
call fcn.10123240
push ebx
push dword [ebp - 0x74]
lea esi, [edi + 0x20]
push esi
call fcn.10122ae0
add esp, 0x1c
mov dword [edi + 0x14], ebx
mov dword [edi + 4], esi
mov dword [edi + 0x18], 0x1f
mov ecx, dword ds:[0xf3690c]
push 0
push 0xffffffffffffffff
push dword [ebp - 0x78]
mov eax, dword [0x101ba6ac]
call eax
push edi
call fcn.10120260
add esp, 4
lea ecx, [ebp - 0x48]
call fcn.100447b0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x100c5b5d
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10048ea0
add esp, 8
mov eax, dword [ebp - 0x48]
push 8
push eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
call fcn.10048ea0
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.100447b0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x100c5ba1
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10048ea0
add esp, 8
mov eax, dword [ebp - 0x2c]
push 8
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
call fcn.10048ea0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10120250
mov esp, ebp
pop ebp
ret