Function at 0x10012170
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007a4fd
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x100a1084]
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 - 0x54], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x70], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], eax
mov dword [esi + 0x10], 0
jb 0x100121d6
mov eax, dword [esi]
jmp 0x100121d8
mov eax, esi
mov byte [eax], 0
mov dword [ebp - 0x70], 1
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 1
test edx, edx
je 0x100123b0
mov ebx, dword [edx + 0x4c]
mov eax, 0x12e0be83
mul edi
mov eax, edi
mov byte [ebp - 0x2c], 0
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0x1d
dec eax
cmp eax, 2
mov eax, 0xcccccccd
jbe 0x100122c2
mul ebx
movaps xmm0, xmmword [0x10096640]
movups xmmword [ebp - 0x50], xmm0
movaps xmm0, xmmword [0x10095f50]
mov eax, ebx
mov dword [ebp - 0x30], 0x313d216b
shr edx, 3
movups xmmword [ebp - 0x40], xmm0
lea ecx, [edx + edx*4]
add ecx, ecx
sub eax, ecx
mov ecx, 0x64
push eax
mov eax, edx
xor edx, edx
div ecx
mov eax, 0x10624dd3
mov ecx, 0x2710
push edx
mul ebx
shr edx, 6
mov eax, edx
xor edx, edx
div ecx
mov eax, 0x6b5fca6b
push edx
mul ebx
shr edx, 0x16
xor ecx, ecx
push edx
nop dword [eax]
mov al, byte [ebp - 0x50]
xor byte [ebp + ecx - 0x4f], al
inc ecx
cmp ecx, 0x23
jb 0x10012290
sub esp, 0x18
mov byte [ebp - 0x2c], 0
lea eax, [ebp - 0x4f]
mov ecx, esp
push eax
call fcn.100029b0
lea eax, [ebp - 0x6c]
push eax
call fcn.10005a00
add esp, 0x2c
mov ebx, eax
jmp 0x1001234d
mul ebx
movaps xmm0, xmmword [str.sozoRCKoEIHy]
movups xmmword [ebp - 0x50], xmm0
movaps xmm0, xmmword [0x10096280]
mov eax, ebx
mov dword [ebp - 0x30], 0x525e4208
shr edx, 3
movups xmmword [ebp - 0x40], xmm0
lea ecx, [edx + edx*4]
add ecx, ecx
sub eax, ecx
mov ecx, 0x64
push eax
mov eax, edx
xor edx, edx
div ecx
mov eax, 0x10624dd3
mov ecx, 0x2710
push edx
mul ebx
shr edx, 6
mov eax, edx
xor edx, edx
div ecx
mov eax, 0x6b5fca6b
push edx
mul ebx
shr edx, 0x16
xor ecx, ecx
push edx
nop dword [eax]
mov al, byte [ebp - 0x50]
xor byte [ebp + ecx - 0x4f], al
inc ecx
cmp ecx, 0x23
jb 0x10012320
sub esp, 0x18
mov byte [ebp - 0x2c], 0
lea eax, [ebp - 0x4f]
mov ecx, esp
push eax
call fcn.100029b0
lea eax, [ebp - 0x6c]
push eax
call fcn.10005a00
add esp, 0x2c
mov ebx, eax
lea eax, [ebp - 0x28]
cmp eax, ebx
je 0x10012384
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10012369
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10002790
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10005910
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x58]
cmp eax, 0x10
jb 0x1001239d
inc eax
lea ecx, [ebp - 0x6c]
push eax
push dword [ebp - 0x6c]
call fcn.10002790
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x100123b0
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.10002470
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x100124cc
mov ebx, dword [eax + 0x48]
test ebx, ebx
je 0x100124cc
mov eax, 0x12e0be83
mov byte [ebp - 0x2c], 0
mul edi
mov eax, 0xcccccccd
sub edi, edx
shr edi, 1
add edi, edx
mul ebx
mov eax, ebx
shr edi, 0x1d
shr edx, 3
dec edi
lea ecx, [edx + edx*4]
add ecx, ecx
sub eax, ecx
mov ecx, 0x64
push eax
mov eax, edx
xor edx, edx
div ecx
mov eax, 0x10624dd3
mov ecx, 0x2710
push edx
mul ebx
shr edx, 6
mov eax, edx
xor edx, edx
div ecx
mov eax, 0x6b5fca6b
xor ecx, ecx
push edx
mul ebx
shr edx, 0x16
push edx
cmp edi, 2
jbe 0x1001244f
movaps xmm0, xmmword [0x10096530]
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x30], 0x232f3379
movaps xmm0, xmmword [0x100960e0]
movups xmmword [ebp - 0x40], xmm0
mov al, byte [ebp - 0x50]
xor byte [ebp + ecx - 0x4f], al
inc ecx
cmp ecx, 0x23
jb 0x10012440
jmp 0x1001247d
movaps xmm0, xmmword [0x10096590]
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x30], 0x28243872
movaps xmm0, xmmword [0x10096160]
movups xmmword [ebp - 0x40], xmm0
nop dword [eax]
mov al, byte [ebp - 0x50]
xor byte [ebp + ecx - 0x4f], al
inc ecx
cmp ecx, 0x23
jb 0x10012470
sub esp, 0x18
mov byte [ebp - 0x2c], 0
lea eax, [ebp - 0x4f]
mov ecx, esp
push eax
call fcn.100029b0
lea eax, [ebp - 0x6c]
push eax
call fcn.10005a00
add esp, 0x2c
lea ecx, [ebp - 0x28]
push eax
call fcn.100074c0
mov eax, dword [ebp - 0x58]
cmp eax, 0x10
jb 0x100124b9
inc eax
lea ecx, [ebp - 0x6c]
push eax
push dword [ebp - 0x6c]
call fcn.10002790
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x100124cc
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.10002470
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x100124e1
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.10002790
mov eax, esi
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.1003e245
mov esp, ebp
pop ebp
ret