Function at 0x510e90
Capabilities:
Access peb ldr_data
Create process on windows
Create process suspended
Delete file
Get common file path
Get process heap flags
Get process heap force flags
Query environment variable

Disassembly:
push ebp
xor edx, edx
mov ecx, 0x10
mov eax, edx
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x374]
push ebx
sub esp, 0x3bc
mov byte [0x84fdc0], 0
mov esi, dword [sym.imp.kernel32.dll_GetTempPathA]
rep stosd dword es:[edi], eax
mov eax, 1
mov dword [ebp - 0x378], 0x44
lea edi, [ebp - 0x374]
mov word [ebp - 0x348], ax
lea eax, [ebp - 0x22d]
mov dword [ebp - 0x34c], 1
mov dword [esp + 4], eax
mov dword [esp], 0x104
call esi
lea eax, [ebp - 0x22d]
mov ebx, dword [sym.imp.kernel32.dll_GetTempFileNameA]
sub esp, 8
mov dword [esp + 0xc], 0x84fdc0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x5eee65
mov dword [esp], eax
call ebx
lea eax, [ebp - 0x22d]
sub esp, 0x10
mov dword [esp + 0xc], 0x84fdc0
mov dword [esp + 8], 0x84fee0
mov dword [esp + 4], str.__s__process_dump___s_
mov dword [esp], eax
call fcn.0050d7a0
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0x562
lea eax, [ebp - 0x388]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x378]
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x22d]
mov dword [esp + 4], eax
mov eax, dword [sym.imp.kernel32.dll_CreateProcessA]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [ebp - 0x398], eax
call eax
sub esp, 0x28
mov dword [esp], eax
mov dword [esp + 4], 0x5ef99c
call fcn.0050e8b0
lea eax, [ebp - 0x388]
call fcn.0050e290
mov eax, dword [sym.imp.kernel32.dll_WritePrivateProfileStringA]
mov dword [esp + 0xc], 0x84fdc0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x3a0], eax
call eax
sub esp, 0x10
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsA]
mov dword [ebp - 0x390], eax
call fcn.00510c80
mov ecx, dword [sym.imp.kernel32.dll_DeleteFileA]
mov dword [0x57f4a4], 0x80fda0
mov dword [esp], 0x84fdc0
mov dword [ebp - 0x39c], ecx
call ecx
xor eax, eax
mov ecx, 0x10
mov edx, 1
rep stosd dword es:[edi], eax
sub esp, 4
lea edi, [ebp - 0x331]
mov word [ebp - 0x348], dx
mov dword [ebp - 0x378], 0x44
mov dword [ebp - 0x34c], 1
mov byte [0x84fdc0], 0
mov dword [esp + 4], edi
mov dword [esp], 0x104
call esi
sub esp, 8
mov dword [esp], edi
mov dword [esp + 0xc], 0x84fdc0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x5eee65
call ebx
lea edx, [ebp - 0x22d]
sub esp, 0x10
mov dword [esp + 0xc], 0x84fdc0
mov dword [esp + 8], 0x84fee0
mov dword [esp + 4], str.__s__process_dump___s_
mov dword [esp], edx
call fcn.0050d7a0
mov edi, dword [ebp - 0x390]
cmp byte [edi], 0
je 0x511380
mov esi, dword [sym.imp.msvcrt.dll_strlen]
xor ebx, ebx
nop
mov dword [esp], edi
call esi
add eax, 1
add edi, eax
add ebx, eax
cmp byte [edi], 0
jne 0x5110e0
add ebx, 0x100
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov dword [ebp - 0x394], eax
mov ebx, eax
mov dword [esp + 0xc], str.C:FOOBAR
mov dword [esp + 8], 0x43
mov dword [esp + 4], str._c:_s
mov dword [esp], eax
call fcn.0050d7a0
mov dword [esp], ebx
call esi
lea eax, [ebx + eax + 1]
mov ebx, dword [ebp - 0x390]
mov dword [eax + 0x3c], 0x424f4f46
lea edi, [eax + 0x43]
mov dword [eax], 0x48544150
mov dword [eax + 4], 0x5c3a433d
mov dword [eax + 8], 0x444e4957
mov dword [eax + 0xc], 0x3b53574f
mov dword [eax + 0x10], 0x575c3a43
mov dword [eax + 0x14], 0x4f444e49
mov dword [eax + 0x18], 0x535c5357
mov dword [eax + 0x1c], 0x45545359
mov dword [eax + 0x20], 0x3a433b4d
mov dword [eax + 0x24], 0x5c594d5c
mov dword [eax + 0x28], 0x5c4e574f
mov dword [eax + 0x2c], 0x524944
mov dword [eax + 0x30], 0x3d4f4f46
mov dword [eax + 0x34], 0x524142
mov dword [eax + 0x38], 0x3d524142
mov dword [eax + 0x3f], 0x524142
movzx edx, byte [ebx]
test dl, dl
je 0x511260
mov dword [ebp - 0x38c], esi
mov esi, ebx
mov ebx, edx
jmp 0x51121a
mov dword [esp], edi
mov dword [esp + 4], esi
call dword [sym.imp.msvcrt.dll_strcpy]
mov dword [esp], edi
mov eax, dword [ebp - 0x38c]
call eax
lea edi, [edi + eax + 1]
mov dword [esp], esi
mov eax, dword [ebp - 0x38c]
call eax
lea esi, [esi + eax + 1]
movzx ebx, byte [esi]
test bl, bl
je 0x511260
mov dword [esp + 8], 5
mov dword [esp + 4], str.PATH
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll_strncmp]
test eax, eax
je 0x511204
cmp bl, 0x3d
jne 0x5111e8
movzx eax, byte [esi + 1]
lea ecx, [eax - 0x41]
cmp cl, 0x19
ja 0x5111e8
cmp byte [esi + 2], 0x3a
jne 0x5111e8
cmp byte [esi + 3], 0x3d
jne 0x5111e8
cmp al, byte [esi + 4]
jne 0x5111e8
jmp 0x511204
mov byte [edi], 0
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0x597
lea eax, [ebp - 0x388]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x378]
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x22d]
mov dword [esp + 0x1c], 0
mov ebx, dword [ebp - 0x394]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [ebp - 0x398]
call eax
sub esp, 0x28
mov dword [esp], eax
mov dword [esp + 4], 0x5ef99c
call fcn.0050e8b0
lea eax, [ebp - 0x388]
call fcn.0050e290
mov dword [esp + 0xc], 0x84fdc0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [ebp - 0x3a0]
call eax
mov eax, ebx
sub esp, 0x10
call fcn.00510c80
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x390]
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
mov dword [0x57f4a4], 0x80fda0
sub esp, 4
mov dword [esp], 0x84fdc0
mov eax, dword [ebp - 0x39c]
call eax
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [sym.imp.msvcrt.dll_strlen]
mov ebx, 0x100
jmp 0x5110f7