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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502870
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x56d078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 1
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x4531a6
call fcn.00406abb
push eax
lea ecx, [ebp - 0x10]
call fcn.004068e6
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
push 0x52f568
call fcn.00409ea5
mov byte [ebp - 4], 4
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.00474730
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00406bb0
push str..bat
lea ecx, [ebp - 0x10]
call fcn.004070ba
mov edi, dword [ebp - 0x10]
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
and dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 6
cmp eax, 0xffffffff
jne 0x45308f
mov byte [ebp - 4], 3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x2c], 0
jmp 0x45319a
call fcn.00406abb
push eax
lea ecx, [ebp - 0x1c]
call fcn.004068e6
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x14]
push edi
call fcn.00454533
mov byte [ebp - 4], 0xa
mov ecx, str._echo_off__r_nATTRIB__r___s___r_n:try__r_ndel___s___r_nif_exist___s__goto_try_r_nATTRIB__r___s___r_ndel___s___cls
push dword [ebp - 0x14]
cmp byte [ebx + 9], 0
mov eax, str._echo_off__r_nATTRIB__r___s___r_n:try__r_nrd___s___r_nif_exist___s__goto_try_r_nATTRIB__r___s___r_ndel___s___cls
push dword [ebp - 0x14]
cmove eax, ecx
push dword [ebx]
push dword [ebx]
push dword [ebx]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00454835
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x24]
add esp, 0x1c
push 0
push eax
push dword [esi - 0xc]
push esi
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00406bb0
mov byte [ebp - 4], 6
lea ecx, [esi - 0x10]
call fcn.00406bb0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x45311f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x2c], 0
lea edx, [ebx + 4]
lea ecx, [ebp - 0x18]
call fcn.00473d20
mov byte [ebp - 4], 0xd
cmp byte [ebx + 8], 0
jne 0x45314a
xor eax, eax
push eax
push dword [ebp - 0x18]
push eax
push edi
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x45318b
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.004cfc80
mov eax, dword [ebp - 0x18]
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x60], ecx
push eax
mov dword [ebp - 0x64], 0x500
mov dword [ebp - 0x5c], str.runas
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x4c], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00406bb0
mov byte [ebp - 4], 1
lea ecx, [edi - 0x10]
call fcn.00406bb0
mov byte [ebp - 4], 0
lea ecx, [ebx + 4]
mov dword [ebp - 0x24], ecx
mov byte [ebp - 4], 0
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.00406bb0
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x24], ebx
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.00406bb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret