Function at 0x402600
Capabilities:
Check if file exists
Create directory
Create process on windows
Delete file
Enumerate files on windows
Get common file path
Get file attributes
Get file size
Move file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1b3c
call fcn.0040d450
mov eax, dword [0x414060]
xor eax, esp
mov dword [esp + 0x1b38], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
push 0x410
lea ecx, [esp + 0x1324]
push ecx
xor ebx, ebx
push ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
lea edx, [esp + 0x1338]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4029f9
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea edi, [ebx + 8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
cmp eax, edi
jbe 0x4029f9
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0xc], 0xfffffff8
mov eax, dword [esp + 0xc]
push 2
push 0
push eax
push esi
call ebx
push 0
lea ecx, [esp + 0x14]
push ecx
push 8
lea edx, [esp + 0x24]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x1c]
test eax, eax
mov eax, dword [esp + 0x18]
je 0x4026d3
cmp dword [esp + 0x10], 8
jne 0x4026de
cmp eax, 0xbaadf00d
jne 0x4026d3
cmp ecx, 0xdeadbeef
je 0x4026f5
dec dword [esp + 0xc]
inc edi
cmp edi, dword [esp + 0x14]
jb 0x402690
cmp eax, 0xbaadf00d
jne 0x4029f9
cmp ecx, 0xdeadbeef
jne 0x4029f9
push 2
add edi, 4
push 0
mov eax, edi
neg eax
push eax
push esi
mov dword [esp + 0x1c], 0
call ebx
push 0
lea ecx, [esp + 0x14]
push ecx
push 4
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0xc]
add edi, eax
test eax, eax
je 0x4029f9
cmp edi, dword [esp + 0x14]
jae 0x4029f9
push 2
push 0
neg edi
push edi
push esi
call ebx
mov eax, dword [esp + 0xc]
push eax
call fcn.00403159
mov edx, dword [esp + 0x10]
add esp, 4
push 0
lea ecx, [esp + 0x14]
push ecx
push edx
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x48]
push eax
call fcn.00402530
mov ecx, dword [esp + 0xc]
push ecx
mov edx, edi
lea ecx, [esp + 0x4c]
call fcn.00402340
test eax, eax
je 0x4029f0
lea edx, [esp + 0x2e0]
push edx
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
lea eax, [esp + 0x2e4]
push eax
call esi
lea ecx, [esp + 0x2e0]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0x410cf0
lea edx, [esp + 0x2e4]
push 0x208
push edx
call fcn.00404f72
lea eax, [esp + 0x2ec]
add esp, 0xc
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4027e0
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x2e2], cx
xor eax, eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov word [esp + 0x44], ax
lea ecx, [esp + 0x28]
lea edx, [esp + 0x2e0]
mov eax, 0x614
push ecx
mov dword [esp + 0x30], 3
mov dword [esp + 0x34], edx
mov word [esp + 0x3c], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push 0
lea edx, [esp + 0x2e4]
push edx
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [esp + 0x2e0]
push eax
call ebx
cmp eax, 0xffffffff
je 0x4029f0
test al, 0x10
je 0x4029f0
lea ecx, [esp + 0x2e0]
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.00402000
lea eax, [esp + 0x2e0]
push eax
lea ecx, [esp + 0xb04]
push 0x410
push ecx
call fcn.00404e08
add esp, 0xc
push str..
lea edx, [esp + 0xb04]
push 0x410
push edx
call fcn.00404f72
add esp, 0xc
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0xb04]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
cmp edi, 0xffffffff
je 0x402967
test byte [esp + 0x90], 0x10
jne 0x40294d
lea edx, [esp + 0x2e0]
push edx
lea eax, [esp + 0xb04]
push 0x410
push eax
call fcn.00404e08
add esp, 0xc
push 0x410cec
lea ecx, [esp + 0xb04]
push 0x410
push ecx
call fcn.00404f72
add esp, 0xc
lea edx, [esp + 0xbc]
push edx
lea eax, [esp + 0xb04]
push 0x410
push eax
call fcn.00404f72
add esp, 0xc
push 4
push 0
lea ecx, [esp + 0xb08]
push ecx
call esi
lea edx, [esp + 0x90]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4028e1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 4
push 0
lea eax, [esp + 0x2e8]
push eax
call esi
lea ecx, [esp + 0x2e0]
push ecx
lea edx, [esp + 0x6f4]
push 0x208
push edx
call fcn.00404e08
add esp, 0xc
lea eax, [esp + 0x6f0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.SEAutorun.com
lea ecx, [esp + 0x6f4]
push 0x208
push ecx
call fcn.00404f72
add esp, 0xc
lea edx, [esp + 0x6f0]
push edx
call ebx
push 1
push 0
cmp eax, 0xffffffff
je 0x4029dc
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x6fc]
push ecx
jmp 0x4029e6
push 0
lea edx, [esp + 0x2ec]
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea edi, [esp + 0x48]
call fcn.00402590
mov ecx, dword [esp + 0x1b44]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00404bf2
mov esp, ebp
pop ebp
ret 0x10