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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x552bbb
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x5d0074]
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 - 0x34], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 4], 1
or esi, 0xffffffff
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x47c0da
push 0
push str..bat
mov edx, 0x589f68
lea ecx, [ebp - 0x28]
call fcn.00408440
add esp, 8
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x47bf1c
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004144e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.00407c80
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 - 0x44], 0x57dd44
mov dword [ebp - 0x40], ebx
mov byte [ebp - 4], 7
cmp ebx, 0xffffffff
jne 0x47bf7f
mov byte [ebp - 4], 4
push eax
mov dword [ebp - 0x44], 0x57dd44
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x40], 0
jmp 0x47c0bc
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x34]
call fcn.0047d9f0
mov byte [ebp - 4], 9
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
call fcn.0047c150
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x3c]
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], 9
mov eax, esi
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47bfd3
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 - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47bff1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov dword [ebp - 0x44], 0x57dd44
test ebx, ebx
je 0x47c00e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x40], 0
lea edx, [edi + 4]
lea ecx, [ebp - 0x30]
call fcn.00493c30
mov byte [ebp - 4], 0xd
cmp byte [edi + 8], 0
jne 0x47c03c
push 0
push dword [ebp - 0x30]
push 0
push dword [ebp - 0x2c]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x47c09e
mov eax, dword [ebp - 0x2c]
xorps xmm0, xmm0
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x88]
push eax
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x60], xmm0
movlpd qword [ebp - 0x58], xmm0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x88], 0x3c
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x84], 0x500
mov dword [ebp - 0x7c], str.runas
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x6c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov byte [ebp - 4], 4
mov eax, esi
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47c0bc
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 0x47c0da
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 - 0x3c], 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 0x47c101
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x3c], 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 0x47c129
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.00520c02
mov esp, ebp
pop ebp
ret