Function at 0x431800
Capabilities:
Enumerate files on windows
Get common file path
Get file size
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47efbb
mov eax, dword fs:[0]
push eax
sub esp, 0x5ec
mov eax, dword [0x4c3408]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x5f0]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x5b0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x5b8], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x5bc], eax
mov eax, dword [ebp + 0x1c]
push 0
mov dword [ebp - 0x5ac], esi
mov dword [ebp - 0x5a8], ebx
mov dword [ebp - 0x5b4], eax
call fcn.00420860
mov dword [ebp - 4], 0
mov ecx, esi
push 1
call fcn.00420ff0
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x21c]
push eax
call fcn.004288a0
add esp, 4
xor ecx, ecx
mov al, byte [ebp + ecx - 0x21c]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x119], al
test al, al
jne 0x4318a4
lea edi, [ebp - 0x118]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4318c0
mov eax, dword [0x483fe8]
mov dword [edi], eax
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x5a4], eax
cmp eax, 0xffffffff
je 0x431b7f
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, eax
nop dword [eax]
test byte [ebp - 0x460], 0x10
je 0x431b4a
mov ecx, 0x4afcdc
lea eax, [ebp - 0x434]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x431938
test dl, dl
je 0x431934
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x431938
add eax, 2
add ecx, 2
test dl, dl
jne 0x431918
xor eax, eax
jmp 0x43193d
sbb eax, eax
or eax, 1
test eax, eax
je 0x431b4a
mov ecx, 0x48460c
lea eax, [ebp - 0x434]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x431970
test dl, dl
je 0x43196c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x431970
add eax, 2
add ecx, 2
test dl, dl
jne 0x431950
xor eax, eax
jmp 0x431975
sbb eax, eax
or eax, 1
test eax, eax
je 0x431b4a
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x21c]
push eax
call fcn.004288a0
lea edx, [ebp - 0x434]
add esp, 4
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4319a6
lea edi, [ebp - 0x21c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4319b6
mov ecx, edx
lea eax, [ebp - 0x21c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.004288a0
add esp, 4
xor ecx, ecx
nop dword [eax]
mov al, byte [ebp + ecx - 0x21c]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x119], al
test al, al
jne 0x4319e0
lea ecx, [ebp - 0x118]
dec ecx
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x431a00
mov eax, dword [str.microsoft..32.dll]
mov dword [ecx], eax
mov eax, dword [0x49262c]
mov dword [ecx + 4], eax
mov eax, dword [0x492630]
mov dword [ecx + 8], eax
mov eax, dword [0x492634]
mov dword [ecx + 0xc], eax
mov eax, dword [0x492638]
mov dword [ecx + 0x10], eax
mov al, byte [0x49263c]
mov byte [ecx + 0x14], al
lea eax, [ebp - 0x5a0]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x431b3e
nop dword [eax + eax]
test byte [ebp - 0x5a0], 0x10
jne 0x431b07
cmp byte [ebp - 0x574], 0x2e
je 0x431b07
xor eax, eax
nop dword [eax]
mov cl, byte [ebp + eax - 0x21c]
lea eax, [eax + 1]
mov byte [ebp + eax - 0x119], cl
test cl, cl
jne 0x431a80
lea edx, [ebp - 0x574]
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x431aa0
lea edi, [ebp - 0x118]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x431ab0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x431ad0
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.0043a304
lea edx, [ebp - 0x118]
mov esi, eax
mov ecx, edx
add esp, 4
sub esi, ecx
mov cl, byte [edx]
mov byte [esi + edx], cl
inc edx
test cl, cl
jne 0x431af1
push eax
lea ecx, [ebp - 0x5f0]
call fcn.00420c50
push 0x140
lea eax, [ebp - 0x5a0]
push 0
push eax
call fcn.0043f7e0
add esp, 0xc
lea eax, [ebp - 0x5a0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x431a60
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call esi
jmp 0x431b44
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp - 0x5a4]
push 0x140
lea eax, [ebp - 0x460]
push 0
push eax
call fcn.0043f7e0
add esp, 0xc
lea eax, [ebp - 0x460]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x431900
push ebx
call esi
mov ebx, dword [ebp - 0x5a8]
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x21c]
push eax
call fcn.004288a0
add esp, 4
test ebx, ebx
je 0x431c48
mov edx, dword [ebx]
test edx, edx
je 0x431c48
xor ecx, ecx
mov al, byte [ebp + ecx - 0x21c]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x119], al
test al, al
jne 0x431bb4
mov esi, edx
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x431bd0
lea edi, [ebp - 0x118]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x431be0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x431c00
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.0043a304
lea edx, [ebp - 0x118]
mov esi, eax
mov ecx, edx
add esp, 4
sub esi, ecx
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx - 1], cl
test cl, cl
jne 0x431c21
push eax
lea ecx, [ebp - 0x5f0]
call fcn.00420c50
mov edx, dword [ebx + 4]
add ebx, 4
test edx, edx
jne 0x431bb2
xor ebx, ebx
nop word [eax + eax]
lea ecx, [ebp - 0x5f0]
call fcn.00421200
test eax, eax
je 0x431d71
test ebx, ebx
jle 0x431c6f
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
lea ecx, [ebp - 0x5f0]
mov dword [ebp - 0x5a4], ebx
call fcn.004212b0
mov esi, eax
test esi, esi
je 0x431d68
nop dword [eax + eax]
push esi
lea ecx, [ebp - 0x5f0]
call fcn.00421360
mov ecx, esi
mov dword [ebp - 0x5a8], eax
call fcn.004212a0
mov edi, eax
push 0
test edi, edi
je 0x431d46
push 0
push 3
push 0
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x431d52
push 0
lea eax, [ebp - 0x5f4]
mov byte [ebp - 0x118], 0
push eax
push 0x104
lea eax, [ebp - 0x118]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x118], 0x4d
jne 0x431d10
cmp byte [ebp - 0x117], 0x5a
je 0x431d3b
push dword [ebp - 0x5b0]
lea eax, [ebp - 0x118]
mov byte [ebp - 0x15], 0
push eax
call fcn.00440890
add esp, 8
test eax, eax
je 0x431d3b
mov ecx, dword [ebp - 0x5ac]
push edi
call fcn.00420c50
jmp 0x431d44
push edi
call fcn.0043a30d
add esp, 4
push 0
push esi
lea ecx, [ebp - 0x5f0]
call fcn.004215a0
mov eax, dword [ebp - 0x5a8]
mov esi, eax
test eax, eax
jne 0x431c90
mov ebx, dword [ebp - 0x5a4]
cmp ebx, 0x32
jl 0x431c50
push 1
lea ecx, [ebp - 0x5f0]
call fcn.00420ff0
cmp dword [ebp - 0x5b8], 0
je 0x432105
cmp dword [ebp - 0x5b4], 0
je 0x432105
mov esi, dword [ebp - 0x5ac]
mov ecx, esi
call fcn.00421200
cmp eax, 1
jbe 0x432105
mov ecx, esi
call fcn.004212b0
mov edi, eax
mov dword [ebp - 0x5a8], edi
test edi, edi
je 0x432105
push edi
mov ecx, esi
call fcn.00421360
mov ecx, edi
mov dword [ebp - 0x5d4], eax
call fcn.004212a0
mov ebx, eax
mov dword [ebp - 0x5a4], ebx
test ebx, ebx
je 0x4320ef
push 0x138
mov byte [ebp - 0x320], 0
call fcn.0043a2d1
add esp, 4
mov dword [ebp - 0x5f8], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x431e20
push dword [ebp - 0x5b4]
mov ecx, eax
push ebx
push 1
call fcn.00464570
mov esi, eax
jmp 0x431e22
xor esi, esi
mov byte [ebp - 4], 0
test esi, esi
je 0x431e85
mov eax, dword [esi]
lea ecx, [ebp - 0x320]
push 0
push 1
push 0x104
push ecx
push 1
push dword [ebp - 0x5b8]
mov ecx, esi
push dword [ebp - 0x5b0]
call dword [eax + 8]
cmp byte [ebp - 0x320], 0
jne 0x431e7d
mov eax, dword [esi]
lea ecx, [ebp - 0x320]
push 0
push 1
push 0x104
push ecx
push 1
push dword [ebp - 0x5bc]
mov ecx, esi
push dword [ebp - 0x5b0]
call dword [eax + 8]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
cmp byte [ebp - 0x320], 0
je 0x4320ce
push str.Wow64DisableWow64FsRedirection
push 0x484600
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
mov dword [ebp - 0x5dc], eax
test eax, eax
je 0x431ebe
lea ecx, [ebp - 0x5d8]
push ecx
call eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x320]
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp - 0x5cc], ebx
cmp ebx, 0xffffffff
je 0x43208c
push 0
push 0
push 0
push 0x8000002
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x5d0], eax
test eax, eax
je 0x43207c
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x5c8], edi
test edi, edi
je 0x43205a
mov esi, dword [ebp - 0x5a4]
push 0x5c
push esi
call fcn.00440750
add esp, 8
mov edx, esi
test eax, eax
lea ecx, [eax + 1]
cmovne edx, ecx
mov ecx, edx
mov dword [ebp - 0x5c0], edx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x431f56
sub ecx, edx
push 0
push ebx
lea esi, [ecx + 1]
mov dword [ebp - 0x5c4], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
sub ebx, esi
je 0x432013
nop dword [eax + eax]
mov edx, dword [ebp - 0x5c0]
mov ecx, edi
sub esi, 4
jb 0x431fa1
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x431fa6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x431f90
cmp esi, 0xfffffffc
je 0x431fd3
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x432003
cmp esi, 0xfffffffd
je 0x431fd3
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x432003
cmp esi, 0xfffffffe
je 0x431fd3
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x432003
cmp esi, 0xffffffff
je 0x431fd3
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x432003
cmp ebx, 0x104
jbe 0x432003
add edi, 0x20
sub ebx, 0x20
cmp byte [edi], 0
jne 0x432003
lea edx, [edi + 1]
mov ecx, edi
mov esi, 0x7c
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x432003
add ecx, 4
add edx, 4
sub esi, 4
jae 0x431ff0
jmp 0x432013
mov esi, dword [ebp - 0x5c4]
inc edi
sub ebx, 1
jne 0x431f80
movzx eax, byte [ebp - 0x320]
xor ecx, ecx
push dword [ebp - 0x5c8]
test ebx, ebx
cmove eax, ecx
mov byte [ebp - 0x320], al
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x5d0]
mov ebx, dword [ebp - 0x5cc]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x5a8]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x432093
push dword [ebp - 0x5d0]
mov byte [ebp - 0x320], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x5a8]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x432093
push ebx
mov byte [ebp - 0x320], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x432093
mov byte [ebp - 0x320], 0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x5dc], 0
je 0x4320bf
push str.Wow64RevertWow64FsRedirection
push 0x484600
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call esi
test eax, eax
je 0x4320bf
push dword [ebp - 0x5d8]
call eax
cmp byte [ebp - 0x320], 0
jne 0x4320e9
mov ebx, dword [ebp - 0x5a4]
mov esi, dword [ebp - 0x5ac]
mov ecx, esi
push 0
push edi
call fcn.004215a0
push ebx
call fcn.0043a30d
add esp, 4
jmp 0x4320ef
mov esi, dword [ebp - 0x5ac]
mov eax, dword [ebp - 0x5d4]
mov edi, eax
mov dword [ebp - 0x5a8], eax
test eax, eax
jne 0x431dc5
mov ecx, dword [ebp - 0x5ac]
call fcn.00421200
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5f0]
call fcn.00420920
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00439f38
mov esp, ebp
pop ebp
ret