Function at 0x100d1990
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019b36d
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x101f6e00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push 8
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.1013ca30
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 0x100d1a2b
mov byte [ebp - 0x72], 0
jmp 0x100d1a39
push edx
lea ecx, [esi + 0x10]
call fcn.1004f3b0
mov al, byte [eax]
mov byte [ebp - 0x72], al
inc dword [esi + 8]
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.10084df0
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 0x100d1a5f
mov byte [ebp - 0x71], 0
jmp 0x100d1a6d
push edx
lea ecx, [esi + 0x10]
call fcn.1004f3b0
mov al, byte [eax]
mov byte [ebp - 0x71], al
inc dword [esi + 8]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edx + 1]
cmp eax, ecx
jbe 0x100d1a84
xor cl, cl
jmp 0x100d1a8f
push edx
lea ecx, [esi + 0x10]
call fcn.1004f3b0
mov cl, byte [eax]
movzx eax, byte [ebp - 0x72]
inc dword [esi + 8]
sub eax, 1
je 0x100d1bbf
sub eax, 1
jne 0x100d1d00
cmp dword [ebp - 0x14], 0xf
movaps xmm0, xmmword [0x101de9b0]
movzx eax, cl
push eax
movzx eax, byte [ebp - 0x71]
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x34], 0x550301
cmova eax, dword [ebp - 0x28]
xor ecx, ecx
movups xmmword [ebp - 0x54], xmm0
push eax
movaps xmm0, xmmword [str.CRYP_E]
movups xmmword [ebp - 0x44], xmm0
nop dword [eax]
mov al, byte [ebp + ecx - 0x53]
xor al, byte [ebp - 0x54]
mov byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x22
jb 0x100d1ae0
sub esp, 0x1c
mov byte [ebp - 0x31], 0
mov edx, esp
lea ecx, [ebp - 0x53]
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 0x100d1b20
sub ecx, esi
lea eax, [ebp - 0x53]
push ecx
push eax
mov ecx, edx
call fcn.100484d0
lea eax, [ebp - 0x70]
push eax
call fcn.10052ec0
add esp, 0x2c
mov byte [ebp - 4], 3
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0xf
mov dword [ebp - 0x7c], ecx
jbe 0x100d1b56
mov ecx, dword [ecx]
mov dword [ebp - 0x7c], ecx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100d1b60
sub ecx, edx
mov dword [ebp - 0x80], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.1013d380
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0x78], edi
call fcn.1013f8f0
push dword [ebp - 0x80]
lea esi, [edi + 0x20]
push dword [ebp - 0x7c]
push esi
call fcn.1013f190
mov eax, dword [ebp - 0x80]
add esp, 0x1c
mov dword [edi + 0x14], eax
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 [0x101d63dc]
call eax
jmp 0x100d1cda
cmp dword [ebp - 0x14], 0xf
movaps xmm0, xmmword [0x101de720]
movzx eax, cl
push eax
movzx eax, byte [ebp - 0x71]
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x34], 0x7120d53
cmova eax, dword [ebp - 0x28]
xor ecx, ecx
movups xmmword [ebp - 0x54], xmm0
push eax
movaps xmm0, xmmword [0x101ddab0]
movups xmmword [ebp - 0x44], xmm0
mov word [ebp - 0x30], 0x5305
mov byte [ebp - 0x2e], 0
nop dword [eax]
mov al, byte [ebp + ecx - 0x53]
xor al, byte [ebp - 0x54]
mov byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x25
jb 0x100d1c00
sub esp, 0x1c
mov byte [ebp - 0x2e], 0
mov edx, esp
lea ecx, [ebp - 0x53]
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 0x100d1c40
sub ecx, esi
lea eax, [ebp - 0x53]
push ecx
push eax
mov ecx, edx
call fcn.100484d0
lea eax, [ebp - 0x70]
push eax
call fcn.10052ec0
add esp, 0x2c
mov byte [ebp - 4], 2
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0xf
mov dword [ebp - 0x80], ecx
jbe 0x100d1c76
mov ecx, dword [ecx]
mov dword [ebp - 0x80], ecx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100d1c80
sub ecx, edx
mov dword [ebp - 0x7c], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.1013d380
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0x78], edi
call fcn.1013f8f0
push dword [ebp - 0x7c]
lea esi, [edi + 0x20]
push dword [ebp - 0x80]
push esi
call fcn.1013f190
mov eax, dword [ebp - 0x7c]
add esp, 0x1c
mov dword [edi + 0x14], eax
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 [0x101d63dc]
call eax
push edi
call fcn.1013c8d0
add esp, 4
lea ecx, [ebp - 0x70]
call fcn.100477d0
mov eax, dword [ebp - 0x70]
push 8
push eax
mov dword [ebp - 0x70], 0
call fcn.1013c8d0
add esp, 8
push 3
lea ecx, [ebp - 0x78]
call fcn.10139310
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x100d1d2d
mov eax, dword [ecx + 4]
mov dword [ecx + 4], 0
test eax, eax
je 0x100d1d2d
nop
mov dword [eax], 0
mov eax, dword [eax + 4]
test eax, eax
jne 0x100d1d20
lea ecx, [ebp - 0x78]
call fcn.101393c0
mov eax, dword [ebp - 0x14]
cmp eax, 0xf
jbe 0x100d1d98
mov edi, dword [ebp - 0x28]
lea esi, [eax + 1]
test edi, edi
jne 0x100d1d8e
test esi, esi
je 0x100d1d8e
push str.null_pointer_cannot_point_to_a_block_of_non_zero_size
push 0x101d467c
push edi
push 0x3b4
push 0x101d4680
push 2
call fcn.10143d00
add esp, 0x18
cmp eax, 1
jne 0x100d1d70
int3
push 0
push 0x3b4
push str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.40.33807includexmemory
push 0x101d47ac
push str._null_pointer_cannot_point_to_a_block_of_non_zero_size_
call fcn.10152640
add esp, 0x14
push esi
push edi
call fcn.10048760
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.1013c8d0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1013c8c0
mov esp, ebp
pop ebp
ret