Function at 0x431b74
Capabilities:
Enumerate files on windows
Link many functions at runtime

Disassembly:
mov eax, 0x4b3500
call fcn.0049dfc4
sub esp, 0x1f0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
call fcn.00478181
test eax, eax
jne 0x431fc1
xor ebx, ebx
mov dword [ebp - 0x5c], vtable.zpath.0
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
push dword [esi + 0x10]
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], ebx
call fcn.0041ab77
push str.Advapi32.dll
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x44], bl
mov byte [ebp - 0x43], bl
mov byte [ebp - 0x42], bl
mov byte [ebp - 0x41], bl
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], 1
mov byte [ebp - 0x3c], bl
mov byte [ebp - 0x3b], bl
mov byte [ebp - 0x3a], bl
mov byte [ebp - 0x39], bl
mov byte [ebp - 0x38], bl
mov byte [ebp - 0x37], 5
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [ebp - 0x14], ebx
cmp edi, ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
je 0x431c8b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.AllocateAndInitializeSid
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x431c81
push str.SetEntriesInAclA
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x48], eax
je 0x431c6d
push str.InitializeSecurityDescriptor
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x4c], eax
je 0x431c6d
push str.SetSecurityDescriptorDacl
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x431c6d
push str.SetFileSecurityA
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x2c], eax
je 0x431c6d
push str.FreeSid
push edi
call esi
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x48], ebx
je 0x431c81
cmp dword [ebp - 0x1c], ebx
je 0x431c81
cmp dword [ebp - 0x2c], ebx
je 0x431c81
cmp dword [ebp - 0x30], ebx
jne 0x431c8b
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x18], ebx
push 1
pop eax
mov dword [ebp - 4], eax
je 0x431faa
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0x44]
push eax
call dword [ebp - 0x14]
cmp eax, ebx
je 0x431f46
push 0x40
lea eax, [ebp - 0xbc]
push ebx
push eax
call fcn.0049ec00
mov eax, dword [ebp - 0x34]
add esp, 0xc
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0x24]
push 2
mov edi, 0x10000000
pop esi
mov dword [ebp - 0xbc], edi
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x3c]
push esi
push eax
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xb4], 3
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa4], 5
call dword [ebp - 0x14]
cmp eax, ebx
je 0x431f46
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xbc]
push ebx
push eax
push esi
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x94], 3
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], esi
call dword [ebp - 0x48]
cmp eax, ebx
jne 0x431f46
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x431f46
push 1
push eax
call dword [ebp - 0x4c]
cmp eax, ebx
je 0x431f46
push ebx
push dword [ebp - 0x28]
push 1
push dword [ebp - 0x20]
call dword [ebp - 0x1c]
cmp eax, ebx
je 0x431f46
mov eax, dword [ebp - 0x70]
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x431da9
xor esi, esi
jmp 0x431dd5
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0049dff0
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x14]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [ebp - 0x20]
push 4
push esi
call dword [ebp - 0x2c]
cmp eax, ebx
jne 0x431de8
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x7c]
push 0x4e7e38
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.0042900f
add esp, 0xc
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 5
call fcn.00410f26
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 4
call fcn.004036b2
mov eax, dword [ebp - 0x50]
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x431e24
xor esi, esi
jmp 0x431e50
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0049dff0
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x14]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x1fc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x431f3d
test byte [ebp - 0x1fc], 2
jne 0x431f25
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x1d0]
push 0x4e7e34
push eax
call esi
test eax, eax
je 0x431f25
lea eax, [ebp - 0x1d0]
push 0x4e7e30
push eax
call esi
test eax, eax
je 0x431f25
lea eax, [ebp - 0x7c]
lea ecx, [ebp - 0x6c]
push eax
call fcn.00403913
mov dword [ebp - 0x6c], vtable.zpath.0
lea eax, [ebp - 0x1d0]
lea ecx, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 6
call fcn.00428dd7
mov eax, dword [ebp - 0x60]
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x431eda
xor esi, esi
jmp 0x431f06
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0049dff0
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x14]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [ebp - 0x20]
push 4
push esi
call dword [ebp - 0x2c]
cmp eax, ebx
jne 0x431f19
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 4
call fcn.004036b2
lea eax, [ebp - 0x1fc]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x431e61
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x34], ebx
je 0x431f51
push dword [ebp - 0x34]
call dword [ebp - 0x30]
cmp dword [ebp - 0x24], ebx
je 0x431f5c
push dword [ebp - 0x24]
call dword [ebp - 0x30]
cmp dword [ebp - 0x28], ebx
je 0x431f6a
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x20], ebx
je 0x431f95
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x431f95
cmp dword [ebp - 0x18], ebx
mov dword [ebp - 4], 1
je 0x431faa
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], bl
call fcn.004036b2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.004036b2
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x208]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret