Function at 0x10001000
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1000850c
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.10001860
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.10002417
add esp, 8
test eax, eax
js 0x10001482
cmp eax, dword [edi - 8]
jg 0x10001482
xor ecx, ecx
push 0x5c
mov dword [edi - 0xc], eax
push edi
mov word [edi + eax*2], cx
call fcn.10002371
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.100015b0
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.100018c0
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.10001750
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.100018c0
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.10001750
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.100014b0
mov ecx, str.ComDLL_
lea esi, [esp + 0x14]
call fcn.100014b0
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [esp + 0x20], edi
cmp edi, 0xffffffff
je 0x1000135d
lea ebx, [ebx]
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.10001930
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [esp + 0x24]
push 0x1000b0d8
push eax
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10001290
call eax
test eax, eax
jne 0x100013fa
cmp word [esp + 0x58], 0
je 0x1000130d
xor ebx, ebx
mov edi, esi
cmp word [esi], bx
je 0x10001309
movzx eax, word [edi]
push eax
lea edx, [esp + 0x5c]
push edx
call fcn.1000239f
add esp, 8
test eax, eax
je 0x100012be
test ebx, ebx
jne 0x100012c0
mov ebx, edi
jmp 0x100012c0
xor ebx, ebx
add edi, 2
cmp word [edi], 0
jne 0x100012a1
test ebx, ebx
je 0x10001309
sub ebx, esi
sar ebx, 1
js 0x10001482
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x100012f7
mov eax, ebx
lea ecx, [esp + 0x14]
call fcn.10001860
mov esi, dword [esp + 0x14]
cmp ebx, dword [esi - 8]
jg 0x10001482
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x2c]
push ecx
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
mov byte [esp + 0x290], 1
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000134c
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 0x10001390
mov byte [esp + 0x290], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10001385
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 0x100013a9
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 0x100013d4
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.10002362
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
add esi, 0xfffffff0
mov byte [esp + 0x290], 1
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10001425
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
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000144d
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 0x10001478
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x100013d6
push 0x80070057
call fcn.10001d60
int3