Function at 0x1000d9e0
Capabilities:
Create thread
Encode data using xor
Set file attributes
Terminate process

Disassembly:
cmp dword [0x100411a8], 1
je 0x1000db70
jmp fcn.1000df00
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100289eb
mov eax, dword fs:[0]
push eax
sub esp, 0x170
push ebx
push esi
push edi
mov eax, dword [0x10040cf8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x1004118c], 1
mov edi, dword [sym.imp.ucrtbased.dll_malloc]
jne 0x1000dd33
mov dword [ebp - 0x10], 0x1002d260
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x10]
add esi, 0x14
cmp byte [ebx + 0x13], 0
je 0x1000dc05
mov eax, dword [ebx + 0xf]
inc eax
push eax
call edi
mov edi, eax
add esp, 4
mov eax, dword [ebx + 0xf]
xor edx, edx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1000dbf9
sub esi, edi
nop
mov eax, edx
lea ecx, [edx + edi]
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [esi + ecx]
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
cmp edx, eax
jb 0x1000dbe0
mov byte [eax + edi], 0
mov esi, edi
mov edi, dword [sym.imp.ucrtbased.dll_malloc]
push 1
push 0x40
push 8
push esi
lea ecx, [ebp - 0xcc]
call fcn.100049c0
mov dword [ebp - 0x10], 0x1002d288
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x10]
add esi, 0x14
mov dword [ebp - 4], 0
cmp byte [ebx + 0x13], 0
je 0x1000dc6f
mov eax, dword [ebx + 0xf]
inc eax
push eax
call edi
mov edi, eax
add esp, 4
mov eax, dword [ebx + 0xf]
xor edx, edx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1000dc69
sub esi, edi
nop
mov eax, edx
lea ecx, [edx + edi]
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [esi + ecx]
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
cmp edx, eax
jb 0x1000dc50
mov byte [eax + edi], 0
mov esi, edi
lea eax, [ebp - 0xcc]
push esi
push eax
call fcn.10004550
mov dword [ebp - 0x10], 0x1002d2b0
add esp, 8
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x10]
add esi, 0x14
cmp byte [ebx + 0x13], 0
je 0x1000dcd3
mov eax, dword [ebx + 0xf]
inc eax
push eax
mov eax, dword [sym.imp.ucrtbased.dll_malloc]
call eax
mov edi, eax
add esp, 4
mov eax, dword [ebx + 0xf]
xor edx, edx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1000dccd
sub esi, edi
mov eax, edx
lea ecx, [edx + edi]
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [esi + ecx]
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
cmp edx, eax
jb 0x1000dcb4
mov byte [eax + edi], 0
mov esi, edi
push esi
push dword [0x100410c4]
lea eax, [ebp - 0xcc]
push eax
call fcn.10004550
add esp, 8
push eax
call fcn.10004550
add esp, 8
lea ecx, [ebp - 0xc8]
call fcn.100054a0
test eax, eax
jne 0x1000dd1b
push eax
mov eax, dword [ebp - 0xcc]
lea ecx, [ebp - 0xcc]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140D.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0xcc]
mov dword [ebp - 4], 0xffffffff
call fcn.10004fb0
mov edi, dword [sym.imp.ucrtbased.dll_malloc]
cmp dword [0x1004119c], 1
jne 0x1000deed
lea eax, [ebp - 0x1c]
push eax
call sub.ucrtbased.dll__time64
lea eax, [ebp - 0x1c]
push eax
call sub.ucrtbased.dll__localtime64
add esp, 8
lea ecx, [ebp - 0x17c]
mov esi, eax
push 1
push 0x40
push 8
push 0x1002d2d4
call fcn.100049c0
lea eax, [ebp - 0x17c]
mov dword [ebp - 4], 1
push 0x1002d2d8
push eax
call fcn.10004550
push esi
call dword [sym.imp.ucrtbased.dll_asctime]
push eax
lea eax, [ebp - 0x17c]
push eax
call fcn.10004550
mov dword [ebp - 0x10], 0x1002d2e8
add esp, 0x14
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x10]
add esi, 0x14
mov dword [ebp - 0x14], ebx
cmp byte [ebx + 0x13], 0
je 0x1000ddef
mov eax, dword [ebx + 0xf]
inc eax
push eax
call edi
mov ebx, dword [ebx + 0xf]
add esp, 4
xor edx, edx
mov edi, eax
test ebx, ebx
je 0x1000dde9
sub esi, edi
nop dword [eax]
mov ecx, dword [ebp - 0x14]
mov eax, edx
and eax, 7
mov al, byte [eax + ecx + 7]
lea ecx, [edx + edi]
xor al, byte [esi + ecx]
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x1000ddd0
mov byte [ebx + edi], 0
mov esi, edi
lea eax, [ebp - 0x17c]
push esi
push eax
call fcn.10004550
mov dword [ebp - 0x10], 0x1002d310
add esp, 8
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x10]
add esi, 0x14
cmp byte [ebx + 0x13], 0
je 0x1000de53
mov eax, dword [ebx + 0xf]
inc eax
push eax
mov eax, dword [sym.imp.ucrtbased.dll_malloc]
call eax
mov edi, eax
add esp, 4
mov eax, dword [ebx + 0xf]
xor edx, edx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000de4d
sub esi, edi
mov eax, edx
lea ecx, [edx + edi]
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [esi + ecx]
mov byte [ecx], al
mov eax, dword [ebp - 0x14]
cmp edx, eax
jb 0x1000de34
mov byte [eax + edi], 0
mov esi, edi
push esi
push dword [0x100410c4]
lea eax, [ebp - 0x17c]
push eax
call fcn.10004550
add esp, 8
push eax
call fcn.10004550
mov dword [ebp - 0x10], 0x1002d334
add esp, 8
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x10]
add esi, 0x14
cmp byte [ebx + 0x13], 0
je 0x1000dec5
mov eax, dword [ebx + 0xf]
inc eax
push eax
call dword [sym.imp.ucrtbased.dll_malloc]
mov edi, eax
add esp, 4
mov eax, dword [ebx + 0xf]
xor edx, edx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000debf
sub esi, edi
mov eax, edx
lea ecx, [edx + edi]
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [esi + ecx]
mov byte [ecx], al
mov eax, dword [ebp - 0x14]
cmp edx, eax
jb 0x1000dea6
mov byte [eax + edi], 0
mov esi, edi
lea eax, [ebp - 0x17c]
push esi
push eax
call fcn.10004550
add esp, 8
lea ecx, [ebp - 0x17c]
call fcn.1000eb70
push 2
push 0x1002d370
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]