Function at 0x10010690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001a09e
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x10024008]
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 - 0x38], edx
mov edi, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
push 0
push 0x1001b9d3
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.100017e0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x18]
mov ecx, eax
shr ecx, 1
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x1c]
lea ebx, [eax + 1]
shr ebx, 1
cmp ebx, ecx
ja 0x10010726
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], ebx
cmovae eax, dword [ebp - 0x2c]
mov byte [eax + ebx], 0
jmp 0x10010769
mov edx, dword [ebp - 0x18]
sub ebx, ecx
mov eax, edx
sub eax, ecx
cmp ebx, eax
ja 0x10010757
cmp edx, 0x10
lea esi, [ebp - 0x2c]
push ebx
cmovae esi, dword [ebp - 0x2c]
lea eax, [ebx + ecx]
add esi, ecx
mov dword [ebp - 0x1c], eax
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov byte [ebx + esi], 0
jmp 0x10010769
push ecx
push ebx
mov byte [ebp - 0x34], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x34]
push ebx
call fcn.10006300
xor edx, edx
xor ebx, ebx
cmp dword [ebp - 0x1c], edx
jbe 0x1001080e
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
cmovae ecx, esi
setae byte [ebp - 0x11]
test byte [ecx + edx], 0x40
je 0x1001079f
cmp byte [ebp - 0x11], 0
cmovne eax, esi
mov cl, byte [eax + edx]
add cl, 9
jmp 0x100107a9
cmp byte [ebp - 0x11], 0
cmovne eax, esi
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 esi, dword [ebp + 8]
cmovae ecx, esi
setae byte [ebp - 0x11]
test byte [ecx + edx + 1], 0x40
je 0x100107e5
cmp byte [ebp - 0x11], 0
cmovne eax, esi
mov cl, byte [eax + edx + 1]
add cl, 9
jmp 0x100107f0
cmp byte [ebp - 0x11], 0
cmovne eax, esi
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 0x10010776
mov esi, dword [ebp - 0x30]
push esi
call fcn.10017f27
mov edx, dword [ebp - 0x2c]
add esp, 4
xor ecx, ecx
mov ebx, eax
test esi, esi
je 0x10010848
cmp dword [ebp - 0x18], 0x10
setae byte [ebp - 0x11]
nop dword [eax]
cmp byte [ebp - 0x11], 0
lea eax, [ebp - 0x2c]
cmovne eax, edx
mov al, byte [eax + ecx]
xor al, byte [ebp - 0x38]
mov byte [ecx + ebx], al
inc ecx
cmp ecx, esi
jl 0x10010830
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
xor esi, esi
mov dword [ebp - 0x3c], 1
cmp dword [ebp - 0x30], esi
jbe 0x100108a7
xor eax, eax
nop word [eax + eax]
mov cl, byte [esi + ebx]
mov byte [ebp - 0x11], cl
cmp eax, dword [edi + 8]
je 0x10010892
mov byte [eax], cl
inc dword [edi + 4]
jmp 0x1001089e
lea ecx, [ebp - 0x11]
push ecx
push eax
mov ecx, edi
call fcn.10013650
mov eax, dword [edi + 4]
inc esi
cmp esi, dword [ebp - 0x30]
jl 0x10010880
push ebx
call fcn.10017f22
mov eax, dword [ebp - 0x18]
add esp, 4
cmp eax, 0x10
jb 0x100108e2
mov ecx, dword [ebp - 0x2c]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x100108d8
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10010908
push edx
push ecx
call fcn.10017b8e
add esp, 8
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x10010918
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001090e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001090e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10017b8e
add esp, 8
mov eax, edi
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.1001762d
mov esp, ebp
pop ebp
ret