Function at 0x10001000
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10008afc
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x1000c070]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
mov eax, dword [0x1000c070]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
mov eax, dword [0x1000d8f0]
mov dword [esp + 0x24], eax
mov dword [eax], 0
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x290], 0
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x290], 1
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x290], 2
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x100010d2
mov eax, 0x104
lea ecx, [esp + 0x1c]
call fcn.10001dc0
mov edi, dword [esp + 0x1c]
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [edi - 8]
push eax
push edi
call fcn.100029a7
add esp, 8
test eax, eax
js 0x100014db
cmp eax, dword [edi - 8]
jg 0x100014db
xor ecx, ecx
push 0x5c
mov dword [edi - 0xc], eax
push edi
mov word [edi + eax*2], cx
call fcn.10002901
add esp, 8
test eax, eax
jne 0x1000111b
or eax, 0xffffffff
jmp 0x1000111f
sub eax, edi
sar eax, 1
inc eax
lea ecx, [esp + 0x28]
lea edx, [esp + 0x1c]
call fcn.10001af0
mov byte [esp + 0x290], 3
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [ebx - 0x10]
cmp eax, edi
je 0x10001187
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x10001176
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x10001176
call fcn.10001e20
mov esi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x1000116d
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea ebx, [esi + 0x10]
mov dword [esp + 0x18], ebx
jmp 0x10001187
mov edi, dword [ecx - 0xc]
push ecx
lea ebx, [esp + 0x1c]
call fcn.10001cb0
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
lea eax, [ebx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x100011d7
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x100011ca
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x100011ca
call fcn.10001e20
mov ebx, eax
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x100011c1
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x100011d7
mov edi, dword [ebx - 0xc]
push ebx
lea ebx, [esp + 0x18]
call fcn.10001cb0
mov byte [esp + 0x290], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100011ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, str.ComDLL.dll
lea esi, [esp + 0x18]
call fcn.100019f0
mov ecx, str.ComDLL_
lea esi, [esp + 0x14]
call fcn.100019f0
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
je 0x100013b2
jmp 0x10001240
lea eax, [esp + 0x58]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10001247
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x5c]
push edx
lea ebx, [esp + 0x1c]
call fcn.10001e90
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [esp + 0x24]
mov dword [edi], eax
test eax, eax
je 0x10001374
push 0x1000b0d8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10001298
call eax
test eax, eax
jne 0x1000144f
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp word [esp + 0x58], 0
mov dword [edi], 0
je 0x10001320
xor ebx, ebx
mov edi, esi
cmp word [esi], bx
je 0x10001320
movzx eax, word [edi]
push eax
lea ecx, [esp + 0x5c]
push ecx
call fcn.1000292f
add esp, 8
test eax, eax
je 0x100012d5
test ebx, ebx
jne 0x100012d7
mov ebx, edi
jmp 0x100012d7
xor ebx, ebx
add edi, 2
cmp word [edi], 0
jne 0x100012b8
test ebx, ebx
je 0x10001320
sub ebx, esi
sar ebx, 1
js 0x100014db
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x1000130e
mov eax, ebx
lea ecx, [esp + 0x14]
call fcn.10001dc0
mov esi, dword [esp + 0x14]
cmp ebx, dword [esi - 8]
jg 0x100014db
xor edx, edx
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], dx
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10001240
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
add esi, 0xfffffff0
or edx, 0xffffffff
lea ecx, [esi + 0xc]
mov byte [esp + 0x290], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10001363
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [esp + 0x290], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
jmp 0x100013e5
cmp word [esp + 0x58], 0
je 0x10001320
xor ebx, ebx
mov edi, esi
cmp word [esi], bx
je 0x10001320
movzx eax, word [edi]
push eax
lea ecx, [esp + 0x5c]
push ecx
call fcn.1000292f
add esp, 8
test eax, eax
je 0x100013a2
test ebx, ebx
jne 0x100013a4
mov ebx, edi
jmp 0x100013a4
xor ebx, ebx
add edi, 2
cmp word [edi], 0
jne 0x10001385
jmp 0x100012e0
mov byte [esp + 0x290], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100013da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x290], 0
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100013fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x290], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10001429
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.100028f2
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
add esi, 0xfffffff0
mov byte [esp + 0x290], 1
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x1000147e
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [esp + 0x290], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100014a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x290], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100014d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x1000142b
push 0x80070057
call fcn.100022c0
int3