Function at 0x1000c250
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ccc04
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xf8
push esi
push edi
mov eax, dword [0x100f7040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edx + 1]
cmp eax, ecx
jbe 0x1000c2a6
mov byte [ebp - 0x11], 0
jmp 0x1000c2b4
push edx
lea ecx, [esi + 0x10]
call fcn.1000bce0
mov al, byte [eax]
mov byte [ebp - 0x11], al
inc dword [esi + 8]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edx + 4]
cmp eax, ecx
jbe 0x1000c2d0
mov dword [ebp - 0x40], 0
jmp 0x1000c2de
push edx
lea ecx, [esi + 0x10]
call fcn.1000bce0
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
add dword [esi + 8], 4
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edx + 4]
cmp eax, ecx
jbe 0x1000c2f6
xor edx, edx
jmp 0x1000c301
push edx
lea ecx, [esi + 0x10]
call fcn.1000bce0
mov edx, dword [eax]
add dword [esi + 8], 4
mov eax, dword [0x100faf58]
mov dword [ebp - 0x3c], edx
test eax, eax
je 0x1000c48b
mov cl, byte [ebp - 0x11]
cmp cl, 1
je 0x1000c4a0
cmp cl, 2
je 0x1000c4a0
mov ecx, dword [0x100faf5c]
mov edi, dword [ebp - 0x3c]
mov dl, byte [ebp - 0x11]
cmp dl, 3
je 0x1000c344
cmp dl, 4
jne 0x1000c48b
mov esi, dword [eax + 0x94]
test esi, esi
je 0x1000c47f
push 0x2e
mov edx, edi
lea ecx, [ebp - 0x78]
call fcn.10019780
add esp, 4
mov dword [ebp - 4], 4
lea edx, [eax + 4]
cmp dword [eax + 0x18], 0xf
jbe 0x1000c373
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x5c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], 0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c394
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x5c]
call fcn.10003370
mov byte [ebp - 4], 5
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x1000c438
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1000c438
cmp dword [ebp - 0x44], 0xf
lea ecx, [ebp - 0x58]
cmova ecx, dword [ebp - 0x58]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c3d4
sub ecx, edx
mov dword [ebp - 0x38], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.10089390
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.1008c3c0
add esp, 0xc
lea edx, [ebp - 0x58]
cmp dword [ebp - 0x44], 0xf
lea esi, [edi + 0x20]
cmova edx, dword [ebp - 0x58]
push dword [ebp - 0x38]
push edx
push esi
call fcn.1008be40
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov ecx, dword [ebp - 0x34]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x100ec660]
push edi
call fcn.10089370
add esp, 4
lea ecx, [ebp - 0x5c]
call fcn.10002f50
mov eax, dword [ebp - 0x5c]
push 8
push eax
mov dword [ebp - 0x5c], 0
call fcn.10089370
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.10002f50
mov eax, dword [ebp - 0x78]
push 8
push eax
mov dword [ebp - 0x78], 0
call fcn.10089370
mov ecx, dword [0x100faf5c]
add esp, 8
test ecx, ecx
je 0x1000c48b
push dword [ebp - 0x3c]
call fcn.100275e0
movzx eax, byte [ebp - 0x11]
dec eax
cmp eax, 3
ja case.default.0x1000c499
jmp dword [eax*4 + 0x1000cb90]
mov esi, dword [eax + 0x94]
test esi, esi
je 0x1000c5e4
push 0x2e
lea ecx, [ebp - 0xcc]
call fcn.10019780
add esp, 4
mov dword [ebp - 4], 0
lea edx, [eax + 4]
cmp dword [eax + 0x18], 0xf
jbe 0x1000c4d0
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c4f1
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.10003370
mov byte [ebp - 4], 1
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x1000c595
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1000c595
cmp dword [ebp - 0x18], 0xf
lea ecx, [ebp - 0x2c]
cmova ecx, dword [ebp - 0x2c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c531
sub ecx, edx
mov dword [ebp - 0x38], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.10089390
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.1008c3c0
add esp, 0xc
lea edx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0xf
lea esi, [edi + 0x20]
cmova edx, dword [ebp - 0x2c]
push dword [ebp - 0x38]
push edx
push esi
call fcn.1008be40
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov ecx, dword [ebp - 0x34]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x100ec660]
push edi
call fcn.10089370
add esp, 4
lea ecx, [ebp - 0x30]
call fcn.10002f50
mov eax, dword [ebp - 0x30]
push 8
push eax
mov dword [ebp - 0x30], 0
call fcn.10089370
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcc]
call fcn.10002f50
mov eax, dword [ebp - 0xcc]
push 8
push eax
mov dword [ebp - 0xcc], 0
call fcn.10089370
mov eax, dword [0x100faf58]
add esp, 8
mov esi, dword [eax + 0x58]
test esi, esi
je 0x1000c754
cmp dword [esi + 4], 0
je 0x1000c754
mov edx, dword [ebp - 0x3c]
lea ecx, [ebp - 0xe8]
push 0x2c
call fcn.10019780
add esp, 4
mov dword [ebp - 4], 2
lea edx, [eax + 4]
cmp dword [eax + 0x18], 0xf
jbe 0x1000c61e
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x94], 0
xorps xmm0, xmm0
mov dword [ebp - 0x80], 0
movups xmmword [ebp - 0x90], xmm0
mov dword [ebp - 0x7c], 0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c645
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x94]
call fcn.10003370
mov byte [ebp - 4], 3
mov eax, dword [esi + 4]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x1000c6fc
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1000c6fc
cmp dword [ebp - 0x7c], 0xf
lea ecx, [ebp - 0x90]
cmova ecx, dword [ebp - 0x90]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c692
sub ecx, edx
mov dword [ebp - 0x38], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.10089390
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.1008c3c0
add esp, 0xc
lea edx, [ebp - 0x90]
cmp dword [ebp - 0x7c], 0xf
lea esi, [edi + 0x20]
cmova edx, dword [ebp - 0x90]
push dword [ebp - 0x38]
push edx
push esi
call fcn.1008be40
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov ecx, dword [ebp - 0x34]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x100ec660]
push edi
call fcn.10089370
add esp, 4
lea ecx, [ebp - 0x94]
call fcn.10002f50
mov eax, dword [ebp - 0x94]
push 8
push eax
mov dword [ebp - 0x94], 0
call fcn.10089370
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe8]
call fcn.10002f50
mov eax, dword [ebp - 0xe8]
push 8
push eax
mov dword [ebp - 0xe8], 0
call fcn.10089370
mov eax, dword [0x100faf58]
add esp, 8
mov ecx, dword [0x100faf5c]
test ecx, ecx
je 0x1000c330
mov edi, dword [ebp - 0x3c]
push edi
call fcn.10027540
mov eax, dword [0x100faf58]
mov ecx, dword [0x100faf5c]
jmp 0x1000c333
movaps xmm0, xmmword [0x100eed30]
xor ecx, ecx
push dword [ebp - 0x40]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0x4504c43
mov dword [ebp - 0x1c], 0x4c574567
mov word [ebp - 0x18], 0xa
nop
mov al, byte [ebp + ecx - 0x2f]
xor al, byte [ebp - 0x30]
mov byte [ebp + ecx - 0x2f], al
inc ecx
cmp ecx, 0x18
jb 0x1000c7a0
sub esp, 0x1c
mov byte [ebp - 0x17], 0
mov edx, esp
lea ecx, [ebp - 0x2f]
xorps xmm0, xmm0
lea esi, [ecx + 1]
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c7e0
sub ecx, esi
lea eax, [ebp - 0x2f]
push ecx
push eax
mov ecx, edx
call fcn.10003370
lea eax, [ebp - 0x78]
push eax
call fcn.1000d7c0
add esp, 0x24
mov dword [ebp - 4], 6
lea edx, [eax + 4]
cmp dword [eax + 0x18], 0xf
jbe 0x1000c813
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x5c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c834
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x5c]
call fcn.10003370
mov byte [ebp - 4], 7
mov edx, 0xff6565ff
lea ecx, [ebp - 0x5c]
call fcn.1000cba0
lea ecx, [ebp - 0x5c]
call fcn.10002f50
mov eax, dword [ebp - 0x5c]
push 8
push eax
mov dword [ebp - 0x5c], 0
call fcn.10089370
add esp, 8
lea ecx, [ebp - 0x78]
call fcn.10002f50
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x78], 0
jmp 0x1000cb6e
movaps xmm0, xmmword [0x100ee520]
xor ecx, ecx
push dword [ebp - 0x40]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x42594b69
mov word [ebp - 0x18], 4
nop dword [eax]
mov al, byte [ebp + ecx - 0x2b]
xor al, byte [ebp - 0x2c]
mov byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x14
jb 0x1000c8b0
sub esp, 0x1c
mov byte [ebp - 0x17], 0
mov edx, esp
lea ecx, [ebp - 0x2b]
xorps xmm0, xmm0
lea esi, [ecx + 1]
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c8f0
sub ecx, esi
lea eax, [ebp - 0x2b]
push ecx
push eax
mov ecx, edx
call fcn.10003370
lea eax, [ebp - 0x78]
push eax
call fcn.1000d7c0
add esp, 0x24
mov dword [ebp - 4], 8
lea edx, [eax + 4]
cmp dword [eax + 0x18], 0xf
jbe 0x1000c923
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x5c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c944
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x5c]
call fcn.10003370
mov byte [ebp - 4], 9
mov edx, 0xffff3b3b
jmp 0x1000c850
movaps xmm0, xmmword [str.4fQWQ_BQP]
xor ecx, ecx
push dword [ebp - 0x40]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0x55585576
mov dword [ebp - 0x1c], 0x1a51575a
mov byte [ebp - 0x18], 0
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x2f]
xor al, byte [ebp - 0x30]
mov byte [ebp + ecx - 0x2f], al
inc ecx
cmp ecx, 0x17
jb 0x1000c990
sub esp, 0x1c
mov byte [ebp - 0x18], 0
mov edx, esp
lea ecx, [ebp - 0x2f]
xorps xmm0, xmm0
lea esi, [ecx + 1]
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c9d0
sub ecx, esi
lea eax, [ebp - 0x2f]
push ecx
push eax
mov ecx, edx
call fcn.10003370
lea eax, [ebp - 0x78]
push eax
call fcn.1000d7c0
add esp, 0x24
mov dword [ebp - 4], 0xa
lea edx, [eax + 4]
cmp dword [eax + 0x18], 0xf
jbe 0x1000ca03
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x5c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000ca24
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x5c]
call fcn.10003370
mov byte [ebp - 4], 0xb
jmp 0x1000c84b
movaps xmm0, xmmword [0x100ee490]
xor ecx, ecx
push dword [ebp - 0x40]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x49020409
mov byte [ebp - 0x18], 0
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x2b]
xor al, byte [ebp - 0x2c]
mov byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x13
jb 0x1000ca60
sub esp, 0x1c
mov byte [ebp - 0x18], 0
mov edx, esp
lea ecx, [ebp - 0x2b]
xorps xmm0, xmm0
lea esi, [ecx + 1]
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000caa0
sub ecx, esi
lea eax, [ebp - 0x2b]
push ecx
push eax
mov ecx, edx
call fcn.10003370
lea eax, [ebp - 0x104]
push eax
call fcn.1000d7c0
add esp, 0x24
mov dword [ebp - 4], 0xc
lea edx, [eax + 4]
cmp dword [eax + 0x18], 0xf
jbe 0x1000cad6
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0xb0], 0
xorps xmm0, xmm0
mov dword [ebp - 0x9c], 0
movups xmmword [ebp - 0xac], xmm0
mov dword [ebp - 0x98], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000cb03
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xb0]
call fcn.10003370
mov edx, 0xffff3b3b
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xb0]
call fcn.1000cba0
lea ecx, [ebp - 0xb0]
call fcn.10002f50
mov eax, dword [ebp - 0xb0]
push 8
push eax
mov dword [ebp - 0xb0], 0
call fcn.10089370
add esp, 8
lea ecx, [ebp - 0x104]
call fcn.10002f50
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x104], 0
push 8
push eax
call fcn.10089370
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret