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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a2c9e
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x10222354]
xor eax, ebp
mov dword [ebp - 0x2c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2cc], ecx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.100de0f0
add esp, 8
mov dword [ebp - 4], 0
push 0x101c2878
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.1008d070
add esp, 0xc
mov byte [ebp - 4], 1
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x20]
call fcn.10007fa0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x100d5b6e
mov dword [ebp - 0x294], 0xfffffed2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.1000ba80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1000ba80
mov eax, dword [ebp - 0x294]
jmp 0x100d60a7
push 4
call fcn.1016a074
add esp, 4
mov ecx, dword [ebp - 0x2cc]
mov dword [ecx], eax
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x2cc]
mov dword [edx + 8], 1
mov dword [ebp - 0x280], 0
jmp 0x100d5baf
mov eax, dword [ebp - 0x280]
add eax, 1
mov dword [ebp - 0x280], eax
mov ecx, dword [ebp - 0x2cc]
mov edx, dword [ebp - 0x280]
cmp edx, dword [ecx + 8]
jae 0x100d5bd7
mov eax, dword [ebp - 0x2cc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x280]
mov dword [ecx + edx*4], 0
jmp 0x100d5ba0
mov byte [ebp - 0x15], 0
push 0x248
call fcn.1016683f
add esp, 4
mov dword [ebp - 0x29c], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x29c], 0
je 0x100d5c0e
mov ecx, dword [ebp - 0x29c]
call fcn.100d6490
mov dword [ebp - 0x2d0], eax
jmp 0x100d5c18
mov dword [ebp - 0x2d0], 0
mov eax, dword [ebp - 0x2d0]
mov dword [ebp - 0x298], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x298]
mov dword [ebp - 0x284], ecx
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x2a0]
push ecx
call fcn.1008d070
add esp, 0xc
mov dword [ebp - 0x2d4], eax
mov ecx, dword [ebp - 0x2d4]
call fcn.10007f90
push eax
call fcn.100a6d10
mov edx, dword [ebp - 0x284]
mov dword [edx], eax
lea ecx, [ebp - 0x2a0]
call fcn.1000ba80
mov eax, dword [ebp - 0x284]
cmp dword [eax], 0
jne 0x100d5cc8
mov ecx, dword [ebp - 0x284]
mov dword [ebp - 0x2a8], ecx
mov edx, dword [ebp - 0x2a8]
mov dword [ebp - 0x2a4], edx
cmp dword [ebp - 0x2a4], 0
je 0x100d5cb9
push 1
mov ecx, dword [ebp - 0x2a4]
call fcn.100d6500
mov dword [ebp - 0x2d8], eax
jmp 0x100d5cc3
mov dword [ebp - 0x2d8], 0
jmp 0x100d6024
push 0x101c2884
mov eax, dword [ebp - 0x284]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
push str.PlugInit
mov edx, dword [ebp - 0x284]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
push str.PlugCreate
mov ecx, dword [ebp - 0x284]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x284]
mov dword [ecx + 0x214], eax
push 0x101c28a8
mov edx, dword [ebp - 0x284]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x284]
mov dword [ecx + 0x210], eax
push str.PlugTerm
mov edx, dword [ebp - 0x284]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x284]
mov dword [ecx + 0x20c], eax
push str.determineCommands
mov edx, dword [ebp - 0x284]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x28c], eax
push 0x101c28d4
mov ecx, dword [ebp - 0x284]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x288], eax
cmp dword [ebp - 0x28c], 0
jne 0x100d5dd5
cmp dword [ebp - 0x288], 0
jne 0x100d5dd5
cmp dword [ebp - 0x1c], 0
je 0x100d5dd5
cmp dword [ebp - 0x14], 0
je 0x100d5dd5
mov eax, dword [ebp - 0x284]
cmp dword [eax + 0x214], 0
je 0x100d5dd5
mov ecx, dword [ebp - 0x284]
cmp dword [ecx + 0x210], 0
je 0x100d5dd5
mov edx, dword [ebp - 0x284]
cmp dword [edx + 0x20c], 0
jne 0x100d5e29
mov eax, dword [ebp - 0x284]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x284]
mov dword [ebp - 0x2b0], edx
mov eax, dword [ebp - 0x2b0]
mov dword [ebp - 0x2ac], eax
cmp dword [ebp - 0x2ac], 0
je 0x100d5e1a
push 1
mov ecx, dword [ebp - 0x2ac]
call fcn.100d6500
mov dword [ebp - 0x2dc], eax
jmp 0x100d5e24
mov dword [ebp - 0x2dc], 0
jmp 0x100d6024
call dword [ebp - 0x1c]
movzx ecx, al
test ecx, ecx
jne 0x100d5e87
mov edx, dword [ebp - 0x284]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x284]
mov dword [ebp - 0x2b8], ecx
mov edx, dword [ebp - 0x2b8]
mov dword [ebp - 0x2b4], edx
cmp dword [ebp - 0x2b4], 0
je 0x100d5e78
push 1
mov ecx, dword [ebp - 0x2b4]
call fcn.100d6500
mov dword [ebp - 0x2e0], eax
jmp 0x100d5e82
mov dword [ebp - 0x2e0], 0
jmp 0x100d6024
lea eax, [ebp - 0x250]
push eax
push 0x101c28e4
push 0x104
mov ecx, dword [ebp - 0x284]
add ecx, 4
push ecx
call fcn.1016a1f2
add esp, 0x10
mov edx, dword [ebp - 0x2cc]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x2cc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x284]
mov dword [edx + eax*4], ecx
mov edx, dword [ebp - 0x2cc]
mov eax, dword [edx + 4]
add eax, 1
mov ecx, dword [ebp - 0x2cc]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x2cc]
mov eax, dword [ebp - 0x2cc]
mov ecx, dword [edx + 4]
cmp ecx, dword [eax + 8]
jne 0x100d5f77
mov edx, dword [ebp - 0x2cc]
mov eax, dword [edx + 8]
shl eax, 2
shl eax, 1
push eax
mov ecx, dword [ebp - 0x2cc]
mov edx, dword [ecx]
push edx
call fcn.1016d4cb
add esp, 8
mov ecx, dword [ebp - 0x2cc]
mov dword [ecx], eax
mov edx, dword [ebp - 0x2cc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x290], eax
jmp 0x100d5f39
mov ecx, dword [ebp - 0x290]
add ecx, 1
mov dword [ebp - 0x290], ecx
mov edx, dword [ebp - 0x2cc]
mov eax, dword [edx + 8]
shl eax, 1
cmp dword [ebp - 0x290], eax
jae 0x100d5f63
mov ecx, dword [ebp - 0x2cc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x290]
mov dword [edx + eax*4], 0
jmp 0x100d5f2a
mov ecx, dword [ebp - 0x2cc]
mov edx, dword [ecx + 8]
shl edx, 1
mov eax, dword [ebp - 0x2cc]
mov dword [eax + 8], edx
movzx ecx, byte [ebp + 8]
test ecx, ecx
jne 0x100d6017
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x2cc]
mov ecx, dword [eax + 0xc]
push ecx
call dword [ebp - 0x14]
movzx edx, al
test edx, edx
jne 0x100d6017
mov eax, dword [ebp - 0x284]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x284]
mov dword [ebp - 0x2c0], edx
mov eax, dword [ebp - 0x2c0]
mov dword [ebp - 0x2bc], eax
cmp dword [ebp - 0x2bc], 0
je 0x100d5fe0
push 1
mov ecx, dword [ebp - 0x2bc]
call fcn.100d6500
mov dword [ebp - 0x2e4], eax
jmp 0x100d5fea
mov dword [ebp - 0x2e4], 0
mov ecx, dword [ebp - 0x2cc]
mov edx, dword [ecx + 4]
sub edx, 1
mov eax, dword [ebp - 0x2cc]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x2cc]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x2cc]
mov ecx, dword [eax]
mov dword [ecx + edx*4], 0
mov byte [ebp - 0x15], 1
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x27c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100d5bdb
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
movzx eax, byte [ebp - 0x15]
test eax, eax
jne 0x100d607c
mov dword [ebp - 0x2c4], 0xfffffed2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.1000ba80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1000ba80
mov eax, dword [ebp - 0x2c4]
jmp 0x100d60a7
mov dword [ebp - 0x2c8], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.1000ba80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1000ba80
mov eax, dword [ebp - 0x2c8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.10165d18
mov esp, ebp
pop ebp
ret 4