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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5100af
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x57c074]
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 0x4551fc
call fcn.0040d439
push eax
lea ecx, [ebp - 0x10]
call fcn.0040d250
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
push 0x53db70
call fcn.0040da2c
mov byte [ebp - 4], 4
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.00479510
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.0040d743
mov esi, str..bat
push esi
call fcn.004dfc45
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.0041107c
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, 0x532e68
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 6
cmp ebx, 0xffffffff
jne 0x455106
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 0x4551f0
push esi
lea ecx, [ebp - 0x1c]
call fcn.00456401
mov byte [ebp - 4], 8
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.00455239
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.0040d743
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.0040d743
mov byte [ebp - 4], 3
mov dword [ebp - 0x2c], 0x532e68
test ebx, ebx
je 0x455175
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov dword [ebp - 0x28], ebx
jmp 0x455177
xor ebx, ebx
lea edx, [edi + 4]
lea ecx, [ebp - 0x14]
call fcn.00478830
mov byte [ebp - 4], 0xc
cmp byte [edi + 8], 0
jne 0x4551a0
push ebx
push dword [ebp - 0x14]
push ebx
push esi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x4551e1
push 0x3c
pop ebx
push ebx
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.004dd970
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.0040d743
mov byte [ebp - 4], 1
lea ecx, [esi - 0x10]
call fcn.0040d743
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.0040d743
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x24], edi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.0040d743
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret