Function at 0x10012200
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001ccce
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10028008]
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 dword [ebp - 0x34], edx
mov esi, ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
push 0
push 0x1001e9f3
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.10001de0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x18]
mov edi, eax
inc eax
shr edi, 1
push ecx
shr eax, 1
lea ecx, [ebp - 0x2c]
push eax
mov dword [ebp - 0x30], edi
call fcn.10005da0
xor edx, edx
xor ebx, ebx
cmp dword [ebp - 0x1c], edx
jbe 0x1001232b
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
cmovae ecx, edi
setae byte [ebp - 0x11]
test byte [ecx + edx], 0x40
je 0x100122b9
cmp byte [ebp - 0x11], 0
cmovne eax, edi
mov cl, byte [eax + edx]
add cl, 9
jmp 0x100122c3
cmp byte [ebp - 0x11], 0
cmovne eax, edi
mov cl, byte [eax + edx]
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
shl cl, 4
mov byte [eax + ebx], cl
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
mov edi, dword [ebp + 8]
cmovae ecx, edi
setae byte [ebp - 0x11]
test byte [ecx + edx + 1], 0x40
je 0x100122ff
cmp byte [ebp - 0x11], 0
cmovne eax, edi
mov cl, byte [eax + edx + 1]
add cl, 9
jmp 0x1001230a
cmp byte [ebp - 0x11], 0
cmovne eax, edi
mov cl, byte [eax + edx + 1]
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
and cl, 0xf
add edx, 2
or byte [eax + ebx], cl
inc ebx
cmp ebx, dword [ebp - 0x1c]
jb 0x10012290
mov edi, dword [ebp - 0x30]
push edi
call fcn.1001a923
mov edx, dword [ebp - 0x2c]
add esp, 4
xor ecx, ecx
mov ebx, eax
test edi, edi
je 0x10012368
cmp dword [ebp - 0x18], 0x10
setae byte [ebp - 0x11]
nop word [eax + eax]
cmp byte [ebp - 0x11], 0
lea eax, [ebp - 0x2c]
cmovne eax, edx
mov al, byte [eax + ecx]
xor al, byte [ebp - 0x34]
mov byte [ecx + ebx], al
inc ecx
cmp ecx, edi
jl 0x10012350
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
xor edi, edi
mov dword [ebp - 0x38], 1
cmp dword [ebp - 0x30], edi
jbe 0x100123c7
xor eax, eax
nop word [eax + eax]
mov cl, byte [edi + ebx]
mov byte [ebp - 0x11], cl
cmp eax, dword [esi + 8]
je 0x100123b2
mov byte [eax], cl
inc dword [esi + 4]
jmp 0x100123be
lea ecx, [ebp - 0x11]
push ecx
push eax
mov ecx, esi
call fcn.10016240
mov eax, dword [esi + 4]
inc edi
cmp edi, dword [ebp - 0x30]
jl 0x100123a0
push ebx
call fcn.1001a91e
mov eax, dword [ebp - 0x18]
add esp, 4
cmp eax, 0x10
jb 0x10012402
mov ecx, dword [ebp - 0x2c]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x100123f8
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012428
push edx
push ecx
call fcn.1001a58a
add esp, 8
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x10012438
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001242e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001242e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1001a58a
add esp, 8
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.1001a029
mov esp, ebp
pop ebp
ret