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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x552d03
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 1
or edi, 0xffffffff
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x47b6ae
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x47b70f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x47b719
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 4
mov eax, 0x589d9c
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x47b4c9
movzx eax, ax
push eax
call fcn.00412350
jmp 0x47b4d5
push 3
push 0x589d9c
call fcn.004126c0
mov byte [ebp - 4], 5
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.004942d0
mov byte [ebp - 4], 3
mov eax, edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47b502
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 4
push str..bat
lea ecx, [ebp - 0x14]
call fcn.00416df0
mov esi, dword [ebp - 0x14]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x34], 0x57dd34
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 7
cmp eax, 0xffffffff
jne 0x47b561
mov byte [ebp - 4], 3
push eax
mov dword [ebp - 0x34], 0x57dd34
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x30], 0
jmp 0x47b693
push esi
lea ecx, [ebp - 0x1c]
call fcn.0047d0c0
mov byte [ebp - 4], 9
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.0047b730
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
push 0
push ecx
push dword [eax - 0xc]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 9
mov eax, edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47b5b5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov eax, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47b5d3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], 0x57dd34
test eax, eax
je 0x47b5f3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x30], 0
lea edx, [ebx + 4]
lea ecx, [ebp - 0x18]
call fcn.00493aa0
mov byte [ebp - 4], 0xd
cmp byte [ebx + 8], 0
jne 0x47b61f
push 0
push dword [ebp - 0x18]
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x47b675
mov eax, dword [ebp - 0x18]
xorps xmm0, xmm0
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x70]
push eax
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x70], 0x3c
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x6c], 0x500
mov dword [ebp - 0x64], str.runas
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x54], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov byte [ebp - 4], 3
mov eax, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47b693
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, edi
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x47b6ae
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
lea eax, [ebx + 4]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0
mov edx, dword [eax]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47b6d5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebx]
sub edx, 0x10
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x47b6fd
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 esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004126a0
push 0x80004005
call fcn.004126a0
int3