Function at 0x401330
Capabilities:
Copy file
Create process on windows
Enumerate files on windows
Get disk size

Disassembly:
mov eax, 0x1144
call fcn.00403d10
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1140], eax
mov eax, dword [esp + 0x1150]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1154]
push edi
mov edi, dword [esp + 0x115c]
push 0x206
xor ebx, ebx
lea edx, [esp + 0xf4e]
xor ecx, ecx
push ebx
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x1c], eax
mov word [esp + 0xf54], cx
call fcn.00403bf0
push 0x206
lea ecx, [esp + 0xd52]
xor eax, eax
push ebx
push ecx
mov word [esp + 0xd58], ax
call fcn.00403bf0
push 0x206
lea eax, [esp + 0x94e]
xor edx, edx
push ebx
push eax
mov word [esp + 0x954], dx
call fcn.00403bf0
push 0x206
lea edx, [esp + 0x552]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x558], cx
call fcn.00403bf0
push 0x1fe
lea ecx, [esp + 0x766]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x76c], ax
call fcn.00403bf0
push 0x40
lea edx, [esp + 0x80]
push ebx
push edx
mov dword [esp + 0x84], ebx
call fcn.00403bf0
xor eax, eax
add esp, 0x48
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ebx
push 0xa
push ecx
push edx
call fcn.00403d40
mov dword [esp + 0x1c], edx
lea edx, [esp + 0xf48]
mov dword [esp + 0x18], eax
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x401453
lea eax, [esp + 0xf48]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x401470
mov ecx, dword [0x40d278]
mov edx, dword [0x40d27c]
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [eax], ecx
mov dword [eax + 4], edx
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0xf4c]
push ecx
call esi
mov ebp, eax
cmp ebp, 0xffffffff
je 0x401c86
mov ecx, 0x40d270
lea eax, [esp + 0xb4]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4014e6
cmp dx, bx
je 0x4014e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4014e6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x4014c0
xor eax, eax
jmp 0x4014eb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x401731
lea edx, [esp + 0x88]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4014b0
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0xf4c]
push ecx
call esi
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x401c86
lea esi, [esp + 0x930]
sub esi, edi
lea eax, [esp + 0x528]
sub eax, dword [esp + 0x10]
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], eax
mov edi, edi
push 0x208
lea edx, [esp + 0x934]
push ebx
push edx
call fcn.00403bf0
add esp, 0xc
mov eax, edi
jmp 0x401570
movzx ecx, word [eax]
mov word [esi + eax], cx
add eax, 2
cmp cx, bx
jne 0x401570
lea eax, [esp + 0xb4]
mov esi, eax
jmp 0x401590
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401590
lea edi, [esp + 0x930]
sub eax, esi
add edi, 0xfffffffe
jmp 0x4015b0
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x4015b0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x208
lea eax, [esp + 0x52c]
and ecx, 3
push ebx
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00403bf0
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x90]
add esp, 0xc
mov eax, ebp
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x4015f0
lea eax, [esp + 0xb4]
mov edx, eax
jmp 0x401610
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401610
lea edi, [esp + 0x528]
sub eax, edx
add edi, 0xfffffffe
jmp 0x401630
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x401630
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test byte [esp + 0x88], 0x10
rep movsb byte es:[edi], byte [esi]
jne 0x401c52
push 0x208
lea ecx, [esp + 0xd44]
push ebx
push ecx
call fcn.00403bf0
lea edx, [esp + 0xd4c]
add esp, 0xc
mov eax, ebp
sub edx, ebp
jmp 0x401680
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x401680
lea eax, [esp + 0xd40]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4016a0
mov edx, dword [0x40d278]
mov ecx, dword [0x40d27c]
mov dword [eax], edx
lea edx, [esp + 0x2d8]
mov dword [eax + 4], ecx
push edx
lea eax, [esp + 0xd44]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401c7b
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x4016f0
lea ecx, [esp + 0x304]
lea eax, [esp + 0xb4]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401a27
cmp dx, bx
je 0x40172a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401a27
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x401700
xor eax, eax
jmp 0x401a2c
push 0x208
lea eax, [esp + 0x934]
push ebx
push eax
call fcn.00403bf0
lea edx, [esp + 0x93c]
add esp, 0xc
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x401752
lea eax, [esp + 0xb4]
mov esi, eax
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401770
lea edi, [esp + 0x930]
sub eax, esi
add edi, 0xfffffffe
jmp 0x401790
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x401790
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x208
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x52c]
push ebx
push ecx
call fcn.00403bf0
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x534]
add esp, 0xc
sub edx, eax
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x4017d0
lea eax, [esp + 0xb4]
mov esi, eax
jmp 0x4017f0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4017f0
lea edi, [esp + 0x528]
sub eax, esi
add edi, 0xfffffffe
jmp 0x401810
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
xor eax, 0x249c8bf4
adc dword fs:[eax], eax
add byte [ebx + 0x2e9c1c8], cl
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp ebx, 1
je 0x40184b
cmp ebx, 4
jne 0x4018f3
push 0
lea edx, [esp + 0x52c]
push edx
lea edx, [esp + 0x938]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x200
lea ecx, [esp + 0x734]
push 0
push ecx
call fcn.00403bf0
mov edx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x740]
push str.cmd.exe__c_DEL__F__S__Q___s_
push eax
call fcn.00403c6a
push 0x44
lea ecx, [esp + 0x58]
push 0
push ecx
call fcn.00403bf0
add esp, 0x24
xor eax, eax
xor edx, edx
lea ecx, [esp + 0x2c]
push ecx
mov word [esp + 0x70], dx
lea edx, [esp + 0x40]
push edx
push eax
push eax
push 0x8000020
push 1
push eax
push eax
lea ecx, [esp + 0x750]
push ecx
push eax
mov dword [esp + 0x64], 0x44
mov dword [esp + 0x68], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x90], 1
call esi
mov edx, dword [esp + 0x2c]
push 0xffffffffffffffff
push edx
call edi
cmp ebx, 2
je 0x401901
cmp ebx, 8
jne 0x401a21
push 0x200
xor ebx, ebx
lea eax, [esp + 0x734]
push ebx
push eax
call fcn.00403bf0
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x740]
push str.cmd.exe__c_DEL__F__S__Q___s_
push edx
call fcn.00403c6a
push 0x44
lea eax, [esp + 0x58]
push ebx
push eax
call fcn.00403bf0
add esp, 0x24
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x40]
push eax
push ebx
push ebx
push 0x8000020
push 0x21
xor ecx, ecx
push ebx
mov word [esp + 0x88], cx
push ebx
lea ecx, [esp + 0x750]
push ecx
push ebx
mov dword [esp + 0x64], 0x44
mov dword [esp + 0x68], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x90], 1
call esi
mov edx, dword [esp + 0x2c]
push 0xffffffffffffffff
push edx
call edi
push 0x200
lea eax, [esp + 0x734]
push ebx
push eax
call fcn.00403bf0
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x740]
push 0x60d230
jb 0x4019a0
scasb al, byte es:[edi]
and al, byte [eax]
add byte [edx + 0x44], ch
lea eax, [esp + 0x58]
push ebx
push eax
call fcn.00403bf0
add esp, 0x24
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x40]
push eax
push ebx
push ebx
push 0x8000020
push 1
xor ecx, ecx
push ebx
mov word [esp + 0x88], cx
push ebx
lea ecx, [esp + 0x750]
push ecx
push ebx
mov dword [esp + 0x64], 0x44
mov dword [esp + 0x68], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x90], 1
call esi
mov edx, dword [esp + 0x2c]
push 0xffffffffffffffff
push edx
call edi
push ebp
jmp 0x401c9a
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x401a45
lea ecx, [esp + 0x2d8]
push ecx
push esi
call ebp
test eax, eax
jne 0x4016f0
jmp 0x401a4a
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, ebx
jne 0x401c58
mov esi, dword [esp + 0x1164]
cmp esi, 4
jne 0x401a91
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0xa8]
cmp dword [esp + 0x1c], eax
jb 0x401c8a
ja 0x401a89
cmp dword [esp + 0x18], ecx
jb 0x401c8a
sub dword [esp + 0x18], ecx
sbb dword [esp + 0x1c], eax
push ebx
lea edx, [esp + 0x52c]
push edx
lea eax, [esp + 0x938]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp esi, 2
jne 0x401c58
push 0x44
lea ecx, [esp + 0x40]
push ebx
push ecx
call fcn.00403bf0
push 0x206
lea ecx, [esp + 0xb4a]
xor edx, edx
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x54], 0x44
mov dword [esp + 0x58], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x80], 1
mov word [esp + 0x84], dx
mov word [esp + 0xb50], ax
call fcn.00403bf0
lea eax, [esp + 0x540]
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401b14
sub eax, edx
sar eax, 1
mov ecx, 0x40d228
lea eax, [esp + eax*2 + 0x522]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401b56
cmp dx, bx
je 0x401b52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401b56
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x401b30
xor eax, eax
jmp 0x401b5b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x401c2c
push 0x208
lea edx, [esp + 0xb3c]
push ebx
push edx
call fcn.00403bf0
add esp, 0xc
xor eax, eax
jmp 0x401b80
movzx ecx, word [eax + 0x40d20c]
mov word [esp + eax + 0xb38], cx
add eax, 2
cmp cx, bx
jne 0x401b80
lea eax, [esp + 0x528]
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401ba0
lea edi, [esp + 0xb38]
sub eax, edx
add edi, 0xfffffffe
jmp 0x401bc0
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x401bc0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb38]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x401be6
mov eax, dword [0x40d208]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x40]
push edx
push ebx
push ebx
push 0x8000020
push 1
push ebx
mov dword [edi], eax
push ebx
lea eax, [esp + 0xb58]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [esp + 0x2c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x401c58
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x40]
push eax
push ebx
push ebx
push 0x8000020
push 1
push ebx
push ebx
push ebx
lea ecx, [esp + 0x54c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
jmp 0x401c58
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x88]
push edx
push esi
call ebp
test eax, eax
je 0x401c99
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x80]
jmp 0x401550
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x401ca5
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x401ca5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
mov ecx, dword [esp + 0x1150]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403be0
add esp, 0x1144
ret