Function at 0x100c55d
Capabilities:
Copy file
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xd40
mov eax, dword [0x102e050]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x57
pop esi
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], ecx
push eax
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], edi
call fcn.0100e821
xor ebx, ebx
cmp edi, ebx
je 0x100c856
cmp dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], ebx
je 0x100c856
push ebx
push 0x1002250
push edi
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push 0x104
push eax
call fcn.0101dab6
mov esi, eax
add esp, 0x14
cmp esi, ebx
jne 0x100c856
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], eax
cmp eax, reloc.NETAPI32.dll_NetApiBufferFree
je 0x100c842
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp - 0x20c], ax
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push edi
mov word [ebp - 0x414], ax
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
call fcn.0101ce9b
test byte [ebp - 0x874], 0x10
jne 0x100c80a
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
call fcn.01009545
test eax, eax
jl 0x100c80a
push ebx
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
mov edi, 0x10015ec
push edi
push dword [ebp - 0xad0]
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push 0x104
push eax
call fcn.0101dab6
mov esi, eax
add esp, 0x18
cmp esi, ebx
jne 0x100c80a
push ebx
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
push edi
push dword [ebp - 0xad8]
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push 0x104
push eax
call fcn.0101dab6
mov esi, eax
add esp, 0x18
cmp esi, ebx
jne 0x100c80a
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
xor edi, edi
push eax
inc edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], eax
cmp eax, reloc.NETAPI32.dll_NetApiBufferFree
je 0x100c76c
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], ebx
call fcn.0100b925
mov esi, eax
and eax, 0xffff
cmp eax, 0x714
jne 0x100c728
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], eax
xor esi, esi
cmp esi, ebx
jl 0x100c74d
cmp dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], ebx
jg 0x100c74d
push ebx
push ebx
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
push 0x40020045
push 4
push 4
call fcn.0100d069
xor edi, edi
push dword [ebp - 0xad4]
movzx esi, si
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, ebx
je 0x100c80a
cmp esi, ebx
jne 0x100c80a
push ebx
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x100c7c2
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov esi, eax
cmp esi, ebx
je 0x100c7ce
cmp esi, 0x20
jne 0x100c7ed
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
call fcn.0100ebce
mov esi, eax
cmp esi, ebx
jne 0x100c80a
push ebx
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x100c7c6
xor esi, esi
jmp 0x100c7ce
call edi
mov esi, eax
cmp esi, ebx
jne 0x100c7ed
push ebx
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
push 0x40020046
push 4
push 4
call fcn.0100d069
jmp 0x100c80a
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
push esi
push 0xc0020047
push 4
push 1
call fcn.0100d0dd
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
call fcn.0101cff5
cmp esi, ebx
jne 0x100c834
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
push dword [ebp - 0xacc]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100c5f7
push dword [ebp - 0xacc]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x100c856
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 3
je 0x100c854
cmp esi, 2
jne 0x100c856
xor esi, esi
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
call fcn.0100e8bd
cmp esi, ebx
jle 0x100c871
and esi, 0xffff
or esi, 0x80070000
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01007c80
leave
ret 0xc