Function at 0x401344
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Link many functions at runtime
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7cc
mov dword [ebp - 0x1c], 0
lea edi, [ebp - 0x12d]
mov ecx, 0x105
xor eax, eax
rep stosb byte es:[edi], al
lea edi, [ebp - 0x232]
mov cx, 0x105
rep stosb byte es:[edi], al
lea edi, [ebp - 0x337]
mov cx, 0x105
rep stosb byte es:[edi], al
lea edi, [ebp - 0x43c]
mov cx, 0x105
rep stosb byte es:[edi], al
lea edi, [ebp - 0x541]
mov cx, 0x105
rep stosb byte es:[edi], al
lea edi, [ebp - 0x646]
mov cx, 0x105
rep stosb byte es:[edi], al
lea edi, [ebp - 0x74b]
mov cx, 0x105
rep stosb byte es:[edi], al
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [esp], str.kernel32.dll
call sub.KERNEL32.dll_LoadLibraryA
push edx
mov ebx, eax
mov dword [esp + 4], str.LoadLibraryA
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [ebp - 0x780], eax
mov dword [esp + 4], str.GetProcAddress
mov dword [esp], ebx
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [ebp - 0x77c], eax
mov dword [esp + 4], str.ExitProcess
mov dword [esp], ebx
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [ebp - 0x778], eax
mov dword [esp + 4], str.ExitThread
mov dword [esp], ebx
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [ebp - 0x788], eax
mov dword [esp + 4], str.FreeLibraryAndExitThread
mov dword [esp], ebx
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40407d
mov dword [esp + 4], 0x104
lea esi, [ebp - 0x12d]
mov dword [ebp - 0x7a0], esi
mov dword [esp], esi
call sub.ntdll.dll__snprintf
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40407d
mov dword [esp + 4], 0x104
lea esi, [ebp - 0x232]
mov dword [ebp - 0x7a4], esi
mov dword [esp], esi
call sub.ntdll.dll__snprintf
mov dword [esp + 8], str.user32.dll
mov dword [esp + 4], 0x104
lea esi, [ebp - 0x646]
mov dword [esp], esi
call sub.ntdll.dll__snprintf
mov dword [esp + 8], str.MessageBoxA
mov dword [esp + 4], 0x104
lea edi, [ebp - 0x74b]
mov dword [ebp - 0x79c], edi
mov dword [esp], edi
call sub.ntdll.dll__snprintf
mov dword [esp + 8], str.Error
mov dword [esp + 4], 0x104
lea edi, [ebp - 0x337]
mov dword [ebp - 0x7a8], edi
mov dword [esp], edi
call sub.ntdll.dll__snprintf
lea edx, [ebp - 0x12d]
mov dword [esp + 0xc], edx
mov dword [esp + 8], str.Could_not_load_the_dll:__s
mov dword [esp + 4], 0x104
lea edi, [ebp - 0x43c]
mov dword [ebp - 0x7ac], edi
mov dword [esp], edi
call sub.ntdll.dll__snprintf
lea edx, [ebp - 0x232]
mov dword [esp + 0xc], edx
mov dword [esp + 8], str.Could_not_load_the_function:__s
mov dword [esp + 4], 0x104
lea edi, [ebp - 0x541]
mov dword [ebp - 0x7b0], edi
mov dword [esp], edi
call sub.ntdll.dll__snprintf
call sub.KERNEL32.dll_GetProcessHeap
mov dword [esp + 8], 0x409
mov dword [esp + 4], 8
mov dword [esp], eax
call sub.KERNEL32.dll_HeapAlloc
sub esp, 0xc
mov ebx, eax
mov dword [ebp - 0x28], 0x409
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], 0x3000
lea eax, [ebp - 0x28]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
sub esp, 0x18
test eax, eax
js 0x401adc
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x75c], ecx
mov dword [ebx], 0
add ecx, 4
mov dword [ebp - 0x774], ecx
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
mov ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, ecx
not edx
lea eax, [ebx + 0x10]
mov edi, eax
mov ecx, edx
rep movsb byte es:[edi], byte [esi]
add edx, 0x10
mov dword [ebp - 0x770], edx
mov ecx, 0xffffffff
mov edi, dword [ebp - 0x79c]
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, ecx
not edx
mov esi, dword [ebp - 0x770]
lea eax, [ebx + esi]
mov edi, eax
mov esi, dword [ebp - 0x79c]
mov ecx, edx
rep movsb byte es:[edi], byte [esi]
add edx, dword [ebp - 0x770]
mov dword [ebp - 0x76c], edx
mov ecx, 0xffffffff
mov edi, dword [ebp - 0x7a0]
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, ecx
not edx
mov esi, dword [ebp - 0x76c]
lea eax, [ebx + esi]
mov edi, eax
mov esi, dword [ebp - 0x7a0]
mov ecx, edx
rep movsb byte es:[edi], byte [esi]
add edx, dword [ebp - 0x76c]
mov dword [ebp - 0x768], edx
mov ecx, 0xffffffff
mov edi, dword [ebp - 0x7a4]
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, ecx
not edx
mov esi, dword [ebp - 0x768]
lea eax, [ebx + esi]
mov edi, eax
mov esi, dword [ebp - 0x7a4]
mov ecx, edx
rep movsb byte es:[edi], byte [esi]
add edx, dword [ebp - 0x768]
mov dword [ebp - 0x760], edx
add edx, dword [ebp - 0x75c]
mov dword [ebp - 0x784], edx
mov ecx, 0xffffffff
mov edi, dword [ebp - 0x7a8]
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, ecx
not edx
mov esi, dword [ebp - 0x760]
lea eax, [ebx + esi]
mov edi, eax
mov esi, dword [ebp - 0x7a8]
mov ecx, edx
rep movsb byte es:[edi], byte [esi]
add edx, dword [ebp - 0x760]
mov dword [ebp - 0x764], edx
mov ecx, 0xffffffff
mov edi, dword [ebp - 0x7ac]
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, ecx
not edx
mov esi, dword [ebp - 0x764]
lea eax, [ebx + esi]
mov edi, eax
mov esi, dword [ebp - 0x7ac]
mov ecx, edx
rep movsb byte es:[edi], byte [esi]
add edx, dword [ebp - 0x764]
mov dword [ebp - 0x760], edx
mov ecx, 0xffffffff
mov edi, dword [ebp - 0x7b0]
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, ecx
not edx
mov esi, dword [ebp - 0x760]
lea eax, [ebx + esi]
mov edi, eax
mov esi, dword [ebp - 0x7b0]
mov ecx, edx
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x760]
add esi, edx
mov byte [ebx + esi], 0xcc
mov byte [ebx + esi + 1], 0xcc
mov byte [ebx + esi + 2], 0xcc
lea edi, [esi + 3]
mov byte [ebx + edi], 0x68
mov eax, dword [ebp - 0x75c]
add eax, 0x10
mov dword [ebx + esi + 4], eax
mov byte [ebx + esi + 8], 0xb8
mov eax, dword [ebp - 0x780]
mov dword [ebx + esi + 9], eax
mov byte [ebx + esi + 0xd], 0xff
mov byte [ebx + esi + 0xe], 0xd0
mov byte [ebx + esi + 0xf], 0x68
mov edx, dword [ebp - 0x770]
add edx, dword [ebp - 0x75c]
mov dword [ebx + esi + 0x10], edx
mov byte [ebx + esi + 0x14], 0x50
mov byte [ebx + esi + 0x15], 0xb8
mov edx, dword [ebp - 0x77c]
mov dword [ebx + esi + 0x16], edx
mov byte [ebx + esi + 0x1a], 0xff
mov byte [ebx + esi + 0x1b], 0xd0
mov byte [ebx + esi + 0x1c], 0xa3
mov ecx, dword [ebp - 0x774]
mov dword [ebx + esi + 0x1d], ecx
mov byte [ebx + esi + 0x21], 0x68
mov edx, dword [ebp - 0x76c]
add edx, dword [ebp - 0x75c]
mov dword [ebx + esi + 0x22], edx
mov byte [ebx + esi + 0x26], 0xb8
mov dword [ebx + esi + 0x27], eax
mov byte [ebx + esi + 0x2b], 0xff
mov byte [ebx + esi + 0x2c], 0xd0
mov byte [ebx + esi + 0x2d], 0x83
mov byte [ebx + esi + 0x2e], 0xf8
mov byte [ebx + esi + 0x2f], 0
mov byte [ebx + esi + 0x30], 0x75
mov byte [ebx + esi + 0x31], 0x1e
mov byte [ebx + esi + 0x32], 0x6a
mov byte [ebx + esi + 0x33], 0x10
mov byte [ebx + esi + 0x34], 0x68
mov eax, dword [ebp - 0x784]
mov dword [ebx + esi + 0x35], eax
mov byte [ebx + esi + 0x39], 0x68
mov edx, dword [ebp - 0x764]
add edx, dword [ebp - 0x75c]
mov dword [ebx + esi + 0x3a], edx
mov byte [ebx + esi + 0x3e], 0x6a
mov byte [ebx + esi + 0x3f], 0
mov byte [ebx + esi + 0x40], 0xa1
mov dword [ebx + esi + 0x41], ecx
mov byte [ebx + esi + 0x45], 0xff
mov byte [ebx + esi + 0x46], 0xd0
mov byte [ebx + esi + 0x47], 0x6a
mov byte [ebx + esi + 0x48], 0
mov byte [ebx + esi + 0x49], 0xb8
mov edx, dword [ebp - 0x778]
mov dword [ebx + esi + 0x4a], edx
mov byte [ebx + esi + 0x4e], 0xff
mov byte [ebx + esi + 0x4f], 0xd0
mov byte [ebx + esi + 0x50], 0xa3
mov eax, dword [ebp - 0x75c]
add eax, 8
mov dword [ebx + esi + 0x51], eax
mov byte [ebx + esi + 0x55], 0x68
mov edx, dword [ebp - 0x768]
add edx, dword [ebp - 0x75c]
mov dword [ebx + esi + 0x56], edx
mov byte [ebx + esi + 0x5a], 0x50
mov byte [ebx + esi + 0x5b], 0xb8
mov ecx, dword [ebp - 0x77c]
mov dword [ebx + esi + 0x5c], ecx
mov byte [ebx + esi + 0x60], 0xff
mov byte [ebx + esi + 0x61], 0xd0
mov byte [ebx + esi + 0x62], 0x83
mov byte [ebx + esi + 0x63], 0xf8
mov byte [ebx + esi + 0x64], 0
mov byte [ebx + esi + 0x65], 0x75
mov byte [ebx + esi + 0x66], 0x1c
mov byte [ebx + esi + 0x67], 0x6a
mov byte [ebx + esi + 0x68], 0x10
mov byte [ebx + esi + 0x69], 0x68
mov eax, dword [ebp - 0x784]
mov dword [ebx + esi + 0x6a], eax
mov byte [ebx + esi + 0x6e], 0x68
mov edx, dword [ebp - 0x760]
add edx, dword [ebp - 0x75c]
mov dword [ebx + esi + 0x6f], edx
mov byte [ebx + esi + 0x73], 0x6a
mov byte [ebx + esi + 0x74], 0
mov byte [ebx + esi + 0x75], 0xa1
mov edx, dword [ebp - 0x774]
mov dword [ebx + esi + 0x76], edx
mov byte [ebx + esi + 0x7a], 0xff
mov byte [ebx + esi + 0x7b], 0xd0
mov byte [ebx + esi + 0x7c], 0x6a
mov byte [ebx + esi + 0x7d], 0
mov byte [ebx + esi + 0x7e], 0xb8
mov ecx, dword [ebp - 0x778]
mov dword [ebx + esi + 0x7f], ecx
mov byte [ebx + esi + 0x83], 0x68
mov eax, dword [ebp - 0x75c]
add eax, 0xc
mov dword [ebx + esi + 0x84], eax
mov byte [ebx + esi + 0x88], 0xff
mov byte [ebx + esi + 0x89], 0xd0
mov byte [ebx + esi + 0x8a], 0x6a
mov byte [ebx + esi + 0x8b], 0
mov byte [ebx + esi + 0x8c], 0xb8
mov eax, dword [ebp - 0x788]
mov dword [ebx + esi + 0x8d], eax
mov byte [ebx + esi + 0x91], 0xff
mov byte [ebx + esi + 0x92], 0xd0
add esi, 0x93
lea edx, [ebp - 0x20]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], esi
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [esp], eax
mov dword [ebp - 0x78c], edx
call sub.KERNEL32.dll_VirtualProtectEx
sub esp, 0x14
lea eax, [ebp - 0x24]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [esp], eax
call sub.KERNEL32.dll_WriteProcessMemory
sub esp, 0x14
mov edx, dword [ebp - 0x78c]
mov dword [esp + 0x10], edx
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtectEx
sub esp, 0x14
mov dword [esp + 8], esi
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_NtFlushInstructionCache]
sub esp, 0xc
call sub.KERNEL32.dll_GetProcessHeap
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_HeapFree
sub esp, 0xc
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
add edi, dword [ebp - 0x75c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov dword [esp], eax
call sub.KERNEL32.dll_CreateRemoteThread
sub esp, 0x1c
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
sub esp, 8
mov dword [esp + 0xc], 0x8000
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualFreeEx
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret