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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557648
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x5d8024]
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 0x47d223
push 0
push str..bat
mov edx, 0x591830
lea ecx, [ebp - 0x28]
call fcn.00409a10
add esp, 8
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x47d02f
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004152f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.00407f30
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], 0x5853b8
mov dword [ebp - 0x44], ebx
mov byte [ebp - 4], 7
cmp ebx, 0xffffffff
jne 0x47d092
mov byte [ebp - 4], 4
push eax
mov dword [ebp - 0x48], 0x5853b8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x44], 0
jmp 0x47d205
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
call fcn.004092f0
mov ecx, eax
test ecx, ecx
je 0x47d28e
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.0047ea30
test al, al
jne 0x47d0d0
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x30]
call fcn.0047e850
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
call fcn.0047d2a0
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 0x47d119
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 0x47d137
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov dword [ebp - 0x48], 0x5853b8
test ebx, ebx
je 0x47d154
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x44], 0
lea edx, [edi + 4]
lea ecx, [ebp - 0x34]
call fcn.00492160
mov byte [ebp - 4], 0xe
cmp byte [edi + 8], 0
jne 0x47d182
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 0x47d1e7
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 0x47d205
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 0x47d223
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 0x47d24a
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 0x47d272
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.00521dac
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00408fc0
int3