Function at 0x4e7a50
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e8d48
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x69001c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 4], 1
or esi, 0xffffffff
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x4e7cb3
push 0
push str..bat
mov edx, 0x62a670
lea ecx, [ebp - 0x28]
call fcn.0040ad90
add esp, 8
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x4e7abf
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00416940
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.004075e0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x48], 0x61675c
mov dword [ebp - 0x44], ebx
mov byte [ebp - 4], 7
cmp ebx, 0xffffffff
jne 0x4e7b22
mov byte [ebp - 4], 4
push eax
mov dword [ebp - 0x48], 0x61675c
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x44], 0
jmp 0x4e7c95
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
call fcn.00409c60
mov ecx, eax
test ecx, ecx
je 0x4e7d1e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x30]
push dword [ebp - 0x3c]
call fcn.004e9610
test al, al
jne 0x4e7b60
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x30]
call fcn.004e9430
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
call fcn.004e7d30
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 0x38]
push 0
push ecx
push dword [eax - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 0xa
mov eax, esi
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4e7ba9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov eax, esi
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4e7bc7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov dword [ebp - 0x48], 0x61675c
test ebx, ebx
je 0x4e7be4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x44], 0
lea edx, [edi + 4]
lea ecx, [ebp - 0x34]
call fcn.004feff0
mov byte [ebp - 4], 0xe
cmp byte [edi + 8], 0
jne 0x4e7c12
push 0
push dword [ebp - 0x34]
push 0
push dword [ebp - 0x2c]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x4e7c77
mov eax, dword [ebp - 0x2c]
xorps xmm0, xmm0
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x8c]
push eax
movlpd qword [ebp - 0x6c], xmm0
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x5c], xmm0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x8c], 0x3c
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x88], 0x500
mov dword [ebp - 0x80], str.runas
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x70], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov byte [ebp - 4], 4
mov eax, esi
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4e7c95
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4e7cb3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
lea eax, [edi + 4]
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 0
mov edx, dword [eax]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4e7cda
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x40], edi
mov dword [ebp - 4], 0xffffffff
mov edx, dword [edi]
sub edx, 0x10
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4e7d02
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059046a
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00409920
int3