Function at 0x10005a30
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1000b27c
push eax
mov dword fs:[0], esp
sub esp, 0x208
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
je 0x10005bb6
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 1
call edi
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
push eax
push 0x1000d594
lea eax, [ebp - 0x14]
push str.CONOUT_
push eax
call esi
push 2
call edi
push eax
push 0x1000d594
lea eax, [ebp - 0x14]
push str.CONOUT_
push eax
call esi
push 0
call edi
push eax
push 0x1000d5a0
lea eax, [ebp - 0x14]
push str.CONIN_
push eax
call esi
mov edx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
add esp, 0x3c
mov eax, dword [edx]
push 0
push 0
mov ecx, dword [eax + 4]
add ecx, edx
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
mov edx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::clog]
push 0
push 0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
mov edx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push 0
push 0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
mov edx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
push 0
push 0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push str.CONOUT_
call esi
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push str.CONIN_
mov ebx, eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_SetStdHandle]
mov edi, eax
push ebx
push 0xfffffffffffffff5
call esi
push ebx
push 0xfffffffffffffff4
call esi
push edi
push 0xfffffffffffffff6
call esi
mov edx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
push 0
push 0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::clear_int__bool_]
mov edx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wclog]
push 0
push 0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::clear_int__bool_]
mov edx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
push 0
push 0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::clear_int__bool_]
mov edx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t___std::wcin]
push 0
push 0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::clear_int__bool_]
push 0x1000d5ac
push 0x65
push dword [0x10063724]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1000614f
push eax
push dword [0x10063724]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000614f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000614f
push 0x40
push 0x3000
push 0x9c4000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x1000614f
push 0x9c4000
push esi
push ebx
call sub.VCRUNTIME140.dll_memcpy
push 0x9c4000
push ebx
push str.___Base_allocated___0x_p_with_size_0x_X._n
call fcn.10005090
lea esi, [ebx - 0x38650000]
push esi
push str.___Relocating_base:_0x_X_n
call fcn.10005090
add esp, 0x20
mov ecx, 0x1000d6d0
nop dword [eax]
mov eax, dword [ecx]
add ecx, 4
add dword [eax + ebx], esi
cmp ecx, str..dummy
jne 0x10005c50
push 0x147d1
push str.___Handled__d_relocations._n
call fcn.10005090
push 0x78
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.10008d08
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
push 0x18
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
call fcn.10008d08
add esp, 0x10
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x80], eax
mov byte [ebp - 4], 1
mov eax, dword [0x1006372c]
mov edi, dword [0x10063728]
mov dword [ebp - 0x78], eax
cmp edi, eax
je 0x10005fd6
lea eax, [ebp - 0x9c]
mov dword [ebp - 0xc4], eax
nop dword [eax + eax]
mov eax, dword [edi]
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0xc0], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0xbc], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0xb8], eax
lea eax, [edi + 0xc]
push eax
call fcn.100064a0
mov byte [ebp - 0x84], 0xff
mov byte [ebp - 4], 3
movsx eax, byte [edi + 0x3c]
inc eax
sub eax, 0
je 0x10005d5b
sub eax, 1
je 0x10005d45
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x9c], eax
mov byte [ebp - 0x84], 1
jmp 0x10005d5b
lea eax, [edi + 0x24]
push eax
lea ecx, [ebp - 0x9c]
call fcn.100064a0
mov byte [ebp - 0x84], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0xb4]
cmp dword [ebp - 0xa0], 0x10
cmovae eax, dword [ebp - 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x10005dca
cmp dword [ebp - 0xa0], 0x10
lea eax, [ebp - 0xb4]
cmovae eax, dword [ebp - 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x10005dca
cmp dword [ebp - 0xa0], 0x10
lea eax, [ebp - 0xb4]
cmovae eax, dword [ebp - 0xb4]
push eax
push str.___Unable_to_load_module__s__n
call fcn.10005090
add esp, 8
jmp 0x10005fb0
push 0x104
lea ecx, [ebp - 0x214]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [ebp - 0x1c]
mov ecx, esi
mov edx, dword [ebp - 0x10]
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10005e04
nop
cmp dword [eax + 0x10], edx
jae 0x10005dfa
mov eax, dword [eax + 8]
jmp 0x10005dfe
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x10005df0
cmp byte [ecx + 0xd], 0
jne 0x10005e0f
cmp edx, dword [ecx + 0x10]
jae 0x10005e11
mov ecx, esi
cmp ecx, esi
jne 0x10005e48
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10006230
mov esi, eax
sub esp, 8
lea eax, [ebp - 0x214]
mov edx, esp
mov ecx, eax
mov dword [edx], eax
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005e35
sub ecx, ebx
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.10007d40
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10006230
lea edx, [ebp - 0x20]
mov dword [ebp - 0xec], vtable.std::_Func_impl_no_alloc_class__int___cdecl_KaabaEntry_void_::_22::_lambda_1___void__struct_lolz::ExportData_t__.0
mov dword [ebp - 0xe4], edx
xor ecx, ecx
lea edx, [ebp - 0xec]
mov dword [ebp - 0x20], ecx
lea ebx, [eax + 0x40]
mov dword [ebp - 0xc8], edx
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xe8], eax
mov byte [ebp - 4], 5
xor esi, esi
mov eax, dword [ebx + 4]
cmp dword [eax + 0x18], esi
jbe 0x10005f31
nop dword [eax]
push ecx
push esi
lea eax, [ebp - 0x110]
mov ecx, ebx
push eax
call fcn.10006cb0
mov byte [ebp - 4], 6
cmp dword [ebp - 0xf8], 0
je 0x10005edd
mov ecx, dword [ebp - 0xc8]
lea eax, [ebp - 0x110]
mov dword [ebp - 0x74], eax
test ecx, ecx
je 0x10006143
mov eax, dword [ecx]
lea edx, [ebp - 0x74]
push edx
call dword [eax + 8]
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0xfc]
cmp edx, 0x10
jb 0x10005f1b
mov ecx, dword [ebp - 0x110]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10005f11
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006149
push edx
push ecx
call fcn.1000916d
add esp, 8
mov eax, dword [ebx + 4]
inc esi
cmp esi, dword [eax + 0x18]
jb 0x10005ea0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0xc8]
mov byte [ebp - 4], 4
test edx, edx
je 0x10005f55
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc8]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0xec]
cmp ecx, eax
setne al
push eax
call edx
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x10005f8c
movsx eax, byte [ebp - 0x84]
test eax, eax
jne 0x10006165
cmp dword [ebp - 0x88], 0x10
lea eax, [ebp - 0x9c]
cmovae eax, dword [ebp - 0x9c]
push eax
push str.___Could_not_find_import__s_n
call fcn.10005090
add esp, 8
jmp 0x10005fb0
add ecx, dword [ebp - 0x10]
cmp dword [ebp - 0xbc], 0xffffffff
mov dword [ebp - 0x20], ecx
jne 0x10005fb0
cmp dword [ebp - 0xc0], 3
jne 0x10005fb0
mov eax, dword [ebp - 0xb8]
mov edx, dword [ebp - 0x14]
mov dword [eax + edx], ecx
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 1
call fcn.10005990
add edi, 0x40
cmp edi, dword [ebp - 0x78]
jne 0x10005cf0
mov eax, dword [0x1006372c]
mov edi, dword [0x10063728]
sub eax, edi
sar eax, 6
push eax
push str.___Fixed__d_calls_to_imports._n
call fcn.10005090
mov ebx, dword [ebp - 0x1c]
add esp, 8
mov edi, dword [ebx + 4]
cmp byte [edi + 0xd], 0
jne 0x10006020
push dword [edi + 8]
lea eax, [ebp - 0x1c]
push eax
mov ecx, eax
call fcn.100065e0
mov esi, edi
mov edi, dword [edi]
lea ecx, [esi + 0x14]
call fcn.100069d0
push 0x78
push esi
call fcn.1000916d
add esp, 8
cmp byte [edi + 0xd], 0
je 0x10005ff5
mov dword [ebx + 4], ebx
mov dword [ebx], ebx
mov dword [ebx + 8], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
lea esi, [ebx + 0x50aec4]
push esi
push str.___Invoking_OEP___0x_p_n
call fcn.10005090
add esp, 8
push 0
push 1
push ebx
call esi
mov dword [ebp - 0x70], 0x2d290891
xor edx, edx
mov dword [ebp - 0x6c], 0x6a490bfa
mov dword [ebp - 0x68], 0x5dc07289
mov dword [ebp - 0x64], 0xa03e4062
mov dword [ebp - 0x60], 0x8719708a
mov dword [ebp - 0x5c], 0x1fe9b2a4
mov dword [ebp - 0x58], 0xa9701064
mov dword [ebp - 0x54], 0x7f3ef0ba
mov dword [ebp - 0x50], 0xad2193e9
mov dword [ebp - 0x4c], 0x5a0f9032
mov dword [ebp - 0x48], 0x47e953c7
mov dword [ebp - 0x44], 0x8fb88331
mov dword [ebp - 0x40], 0x3039ea77
mov dword [ebp - 0x3c], 0xcf8e5ab9
mov dword [ebp - 0x38], 0x5fa0f011
mov dword [ebp - 0x34], 0xf730e3f2
mov dword [ebp - 0x30], 0xd47e11f
mov dword [ebp - 0x2c], 0x183880b2
mov dword [ebp - 0x28], 0xf2de7812
mov word [ebp - 0x24], 0xe367
nop word [eax + eax]
mov al, byte [ebp + edx - 0x70]
mov cl, 0x2c
neg al
xor al, dl
neg al
xor al, dl
sub al, 0x1f
xor al, 0xdd
sub cl, al
ror cl, 2
sub cl, 0x24
xor cl, dl
not cl
ror cl, 1
xor cl, dl
sub cl, 7
mov byte [ebp + edx - 0x70], cl
inc edx
cmp edx, 0x4e
jb 0x100060e0
lea eax, [ebp - 0x70]
push eax
push 0x1000d694
call fcn.10005090
add esp, 8
lea ecx, [ebp - 0x80]
call fcn.100061f0
lea ecx, [ebp - 0x1c]
call fcn.10006350
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ecx, dword [ebp - 0xc]
mov eax, 1
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10005250
int3