Function at 0x4231b0
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 0x46e7fb
mov eax, dword fs:[0]
push eax
sub esp, 0x5ec
mov eax, dword [0x4b0408]
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.00412820
mov dword [ebp - 4], 0
mov ecx, esi
push 1
call fcn.00412ee0
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x21c]
push eax
call fcn.0041a7a0
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 0x423254
lea edi, [ebp - 0x118]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x423270
mov eax, dword [0x473fd0]
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 0x42352f
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, eax
nop dword [eax]
test byte [ebp - 0x460], 0x10
je 0x4234fa
mov ecx, 0x49f704
lea eax, [ebp - 0x434]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4232e8
test dl, dl
je 0x4232e4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4232e8
add eax, 2
add ecx, 2
test dl, dl
jne 0x4232c8
xor eax, eax
jmp 0x4232ed
sbb eax, eax
or eax, 1
test eax, eax
je 0x4234fa
mov ecx, 0x4745f4
lea eax, [ebp - 0x434]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x423320
test dl, dl
je 0x42331c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x423320
add eax, 2
add ecx, 2
test dl, dl
jne 0x423300
xor eax, eax
jmp 0x423325
sbb eax, eax
or eax, 1
test eax, eax
je 0x4234fa
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x21c]
push eax
call fcn.0041a7a0
lea edx, [ebp - 0x434]
add esp, 4
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x423356
lea edi, [ebp - 0x21c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x423366
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.0041a7a0
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 0x423390
lea ecx, [ebp - 0x118]
dec ecx
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4233b0
mov eax, dword [str.microsoft..32.dll]
mov dword [ecx], eax
mov eax, dword [0x48215c]
mov dword [ecx + 4], eax
mov eax, dword [0x482160]
mov dword [ecx + 8], eax
mov eax, dword [0x482164]
mov dword [ecx + 0xc], eax
mov eax, dword [0x482168]
mov dword [ecx + 0x10], eax
mov al, byte [0x48216c]
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 0x4234ee
nop dword [eax + eax]
test byte [ebp - 0x5a0], 0x10
jne 0x4234b7
cmp byte [ebp - 0x574], 0x2e
je 0x4234b7
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 0x423430
lea edx, [ebp - 0x574]
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x423450
lea edi, [ebp - 0x118]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x423460
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 0x423480
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.0042c0b7
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 0x4234a1
push eax
lea ecx, [ebp - 0x5f0]
call fcn.00412b40
push 0x140
lea eax, [ebp - 0x5a0]
push 0
push eax
call fcn.00431580
add esp, 0xc
lea eax, [ebp - 0x5a0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x423410
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call esi
jmp 0x4234f4
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.00431580
add esp, 0xc
lea eax, [ebp - 0x460]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4232b0
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.0041a7a0
add esp, 4
test ebx, ebx
je 0x4235f8
mov edx, dword [ebx]
test edx, edx
je 0x4235f8
xor ecx, ecx
mov al, byte [ebp + ecx - 0x21c]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x119], al
test al, al
jne 0x423564
mov esi, edx
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x423580
lea edi, [ebp - 0x118]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x423590
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 0x4235b0
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.0042c0b7
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 0x4235d1
push eax
lea ecx, [ebp - 0x5f0]
call fcn.00412b40
mov edx, dword [ebx + 4]
add ebx, 4
test edx, edx
jne 0x423562
xor ebx, ebx
nop word [eax + eax]
lea ecx, [ebp - 0x5f0]
call fcn.004130f0
test eax, eax
je 0x423721
test ebx, ebx
jle 0x42361f
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
lea ecx, [ebp - 0x5f0]
mov dword [ebp - 0x5a4], ebx
call fcn.004131a0
mov esi, eax
test esi, esi
je 0x423718
nop dword [eax + eax]
push esi
lea ecx, [ebp - 0x5f0]
call fcn.00413250
mov ecx, esi
mov dword [ebp - 0x5a8], eax
call fcn.00413190
mov edi, eax
push 0
test edi, edi
je 0x4236f6
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 0x423702
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 0x4236c0
cmp byte [ebp - 0x117], 0x5a
je 0x4236eb
push dword [ebp - 0x5b0]
lea eax, [ebp - 0x118]
mov byte [ebp - 0x15], 0
push eax
call fcn.00432630
add esp, 8
test eax, eax
je 0x4236eb
mov ecx, dword [ebp - 0x5ac]
push edi
call fcn.00412b40
jmp 0x4236f4
push edi
call fcn.0042c0c0
add esp, 4
push 0
push esi
lea ecx, [ebp - 0x5f0]
call fcn.00413490
mov eax, dword [ebp - 0x5a8]
mov esi, eax
test eax, eax
jne 0x423640
mov ebx, dword [ebp - 0x5a4]
cmp ebx, 0x32
jl 0x423600
push 1
lea ecx, [ebp - 0x5f0]
call fcn.00412ee0
cmp dword [ebp - 0x5b8], 0
je 0x423ab5
cmp dword [ebp - 0x5b4], 0
je 0x423ab5
mov esi, dword [ebp - 0x5ac]
mov ecx, esi
call fcn.004130f0
cmp eax, 1
jbe 0x423ab5
mov ecx, esi
call fcn.004131a0
mov edi, eax
mov dword [ebp - 0x5a8], edi
test edi, edi
je 0x423ab5
push edi
mov ecx, esi
call fcn.00413250
mov ecx, edi
mov dword [ebp - 0x5d4], eax
call fcn.00413190
mov ebx, eax
mov dword [ebp - 0x5a4], ebx
test ebx, ebx
je 0x423a9f
push 0x138
mov byte [ebp - 0x320], 0
call fcn.0042c084
add esp, 4
mov dword [ebp - 0x5f8], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x4237d0
push dword [ebp - 0x5b4]
mov ecx, eax
push ebx
push 1
call fcn.00456160
mov esi, eax
jmp 0x4237d2
xor esi, esi
mov byte [ebp - 4], 0
test esi, esi
je 0x423835
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 0x42382d
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 0x423a7e
push str.Wow64DisableWow64FsRedirection
push 0x4745e8
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 0x42386e
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 0x423a3c
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 0x423a2c
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 0x423a0a
mov esi, dword [ebp - 0x5a4]
push 0x5c
push esi
call fcn.004324f0
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 0x423906
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 0x4239c3
nop dword [eax + eax]
mov edx, dword [ebp - 0x5c0]
mov ecx, edi
sub esi, 4
jb 0x423951
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x423956
add ecx, 4
add edx, 4
sub esi, 4
jae 0x423940
cmp esi, 0xfffffffc
je 0x423983
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4239b3
cmp esi, 0xfffffffd
je 0x423983
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4239b3
cmp esi, 0xfffffffe
je 0x423983
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4239b3
cmp esi, 0xffffffff
je 0x423983
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x4239b3
cmp ebx, 0x104
jbe 0x4239b3
add edi, 0x20
sub ebx, 0x20
cmp byte [edi], 0
jne 0x4239b3
lea edx, [edi + 1]
mov ecx, edi
mov esi, 0x7c
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4239b3
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4239a0
jmp 0x4239c3
mov esi, dword [ebp - 0x5c4]
inc edi
sub ebx, 1
jne 0x423930
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 0x423a43
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 0x423a43
push ebx
mov byte [ebp - 0x320], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x423a43
mov byte [ebp - 0x320], 0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x5dc], 0
je 0x423a6f
push str.Wow64RevertWow64FsRedirection
push 0x4745e8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call esi
test eax, eax
je 0x423a6f
push dword [ebp - 0x5d8]
call eax
cmp byte [ebp - 0x320], 0
jne 0x423a99
mov ebx, dword [ebp - 0x5a4]
mov esi, dword [ebp - 0x5ac]
mov ecx, esi
push 0
push edi
call fcn.00413490
push ebx
call fcn.0042c0c0
add esp, 4
jmp 0x423a9f
mov esi, dword [ebp - 0x5ac]
mov eax, dword [ebp - 0x5d4]
mov edi, eax
mov dword [ebp - 0x5a8], eax
test eax, eax
jne 0x423775
mov ecx, dword [ebp - 0x5ac]
call fcn.004130f0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5f0]
call fcn.004128e0
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.0042bd08
mov esp, ebp
pop ebp
ret