Function at 0x4540ed
Capabilities:
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510a6d
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x57d074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 1
xor ebx, ebx
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x4542be
call fcn.0040d266
push eax
lea ecx, [ebp - 0x10]
call fcn.0040d07d
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
push 0x53e7fc
call fcn.0040d859
mov byte [ebp - 4], 4
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.00479d00
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.0040d570
mov esi, str..bat
push esi
call fcn.004e07a4
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00410e44
mov esi, dword [ebp - 0x10]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov eax, 0x533e78
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 6
cmp ebx, 0xffffffff
jne 0x4541c8
mov byte [ebp - 4], 3
push ebx
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov dword [ebp - 0x28], ebx
jmp 0x4542b2
push esi
lea ecx, [ebp - 0x1c]
call fcn.00455566
mov byte [ebp - 4], 8
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.004542fb
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x18]
push 0
push ecx
push dword [eax - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.0040d570
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.0040d570
mov byte [ebp - 4], 3
mov dword [ebp - 0x2c], 0x533e78
test ebx, ebx
je 0x454237
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov dword [ebp - 0x28], ebx
jmp 0x454239
xor ebx, ebx
lea edx, [edi + 4]
lea ecx, [ebp - 0x14]
call fcn.00479020
mov byte [ebp - 4], 0xc
cmp byte [edi + 8], 0
jne 0x454262
push ebx
push dword [ebp - 0x14]
push ebx
push esi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x4542a3
push 0x3c
pop ebx
push ebx
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.004de4e0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], ebx
xor ebx, ebx
mov dword [ebp - 0x60], ebx
push eax
mov dword [ebp - 0x64], 0x500
mov dword [ebp - 0x5c], str.runas
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040d570
mov byte [ebp - 4], 1
lea ecx, [esi - 0x10]
call fcn.0040d570
mov byte [ebp - 4], bl
lea ecx, [edi + 4]
mov dword [ebp - 0x24], ecx
mov byte [ebp - 4], bl
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.0040d570
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x24], edi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.0040d570
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret