Function at 0x10016d6
Capabilities:
Copy file
Enumerate files on windows
Get session user name
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001240
push 0x1002218
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
mov eax, 0x29bc
call fcn.01002230
mov eax, dword [0x1003020]
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x29a8], ecx
or dword [ebp - 0x2980], 0xffffffff
or dword [ebp - 0x2984], 0xffffffff
xor eax, eax
mov dword [ebp - 0x2990], eax
mov dword [ebp - 0x298c], eax
mov dword [ebp - 4], eax
cmp dword [ebp + 8], eax
lea eax, [ebp - 0x364]
push eax
je 0x100192b
mov dword [ebp - 0x29a4], 0x104
call fcn.010013b0
mov esi, eax
neg esi
sbb esi, esi
neg esi
mov dword [ebp - 0x2988], esi
jne 0x1001c2d
lea ecx, [ebp - 0x364]
lea edx, [ebp - 0x260]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x1001771
lea eax, [ebp - 0x878]
push eax
call fcn.010014a5
mov esi, eax
neg esi
sbb esi, esi
neg esi
mov dword [ebp - 0x2988], esi
jne 0x1001c2d
lea eax, [ebp - 0x29a4]
push eax
lea eax, [ebp - 0x97c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edi, [ebp - 0x260]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10017b6
mov esi, 0x100115c
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x97c]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10017cd
sub eax, edx
lea edi, [ebp - 0x260]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10017dd
mov ecx, eax
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x260]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10017fc
mov esi, 0x1001234
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
mov dword [ebp - 0x2980], ebx
cmp ebx, 0xffffffff
je 0x1001c25
lea ecx, [ebp - 0x364]
lea edx, [ebp - 0x774]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x100183e
lea edi, [ebp - 0x774]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100184f
mov esi, 0x100115c
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x130]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001866
sub eax, edx
lea edi, [ebp - 0x774]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1001876
mov ecx, eax
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x878]
lea ecx, [ebp - 0x670]
mov dl, byte [eax]
mov byte [ecx], dl
inc eax
inc ecx
test dl, dl
jne 0x100189a
lea edi, [ebp - 0x670]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10018ab
mov esi, 0x100115c
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x130]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10018c2
sub eax, edx
lea edi, [ebp - 0x670]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10018d2
mov ecx, eax
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 1
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x774]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x15c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1001832
cmp ebx, 0xffffffff
je 0x100195d
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 0x2980], 0xffffffff
jmp 0x100195d
call fcn.010013b0
lea ecx, [ebp - 0x364]
lea edx, [ebp - 0x260]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x100193c
lea edi, [ebp - 0x260]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100194d
mov esi, 0x1001228
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor esi, esi
cmp dword [ebp + 8], esi
lea eax, [ebp - 0x878]
jne 0x1001970
lea eax, [ebp - 0x364]
mov dword [ebp - 0x29a0], eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x2980], eax
cmp eax, 0xffffffff
je 0x1001c27
mov edx, dword [ebp - 0x29a0]
lea ecx, [ebp - 0x56c]
mov al, byte [edx]
mov byte [ecx], al
inc edx
inc ecx
test al, al
jne 0x10019a5
lea edi, [ebp - 0x56c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10019b6
mov esi, 0x100115c
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x130]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10019cd
sub eax, esi
lea edi, [ebp - 0x56c]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10019dd
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x56c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x2984], eax
cmp eax, 0xffffffff
je 0x1001bf7
mov eax, dword [ebp - 0x13c]
inc eax
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov esi, eax
mov dword [ebp - 0x29d4], esi
mov ebx, esi
mov dword [ebp - 0x298c], ebx
test esi, esi
jne 0x1001a4b
push 8
pop esi
jmp 0x1001c27
push 0
lea eax, [ebp - 0x2990]
push eax
push dword [ebp - 0x13c]
push esi
push dword [ebp - 0x2984]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x29cc], eax
test eax, eax
je 0x1001bd7
mov eax, dword [ebp - 0x2990]
mov byte [esi + eax], 0
mov dword [ebp - 0x2998], esi
lea eax, [ebp - 0x29b0]
push eax
lea eax, [ebp - 0x29bc]
push eax
lea eax, [ebp - 0x29b4]
push eax
push dword [ebp - 0x2998]
mov ecx, dword [ebp - 0x29a8]
call fcn.01001617
mov dword [ebp - 0x2998], eax
test eax, eax
je 0x1001bd7
mov eax, dword [0x1001220]
mov dword [ebp - 0x468], eax
mov eax, dword [0x1001224]
mov dword [ebp - 0x464], eax
lea eax, [ebp - 0x130]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001ad7
sub eax, esi
lea edi, [ebp - 0x468]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1001ae7
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x100121c
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.msvcrt.dll_strstr]
pop ecx
pop ecx
mov dword [ebp - 0x29c0], eax
mov ecx, dword [ebp - 0x29b4]
inc eax
mov dl, byte [ecx]
mov byte [eax], dl
inc ecx
inc eax
test dl, dl
jne 0x1001b1e
mov dword [ebp - 0x2994], 1
lea eax, [ebp - 0x297c]
mov dword [ebp - 0x29c8], eax
mov dword [ebp - 0x299c], 0x2000
lea eax, [ebp - 0x299c]
push eax
lea eax, [ebp - 0x297c]
push eax
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.WININET.dll_GetUrlCacheEntryInfoA]
mov dword [ebp - 0x2988], eax
test eax, eax
jne 0x1001b8c
lea eax, [ebp - 0x29b0]
push eax
lea eax, [ebp - 0x295c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x1001b8c
and dword [ebp - 0x2994], 0
cmp dword [ebp - 0x2994], 0
je 0x1001a85
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp - 0x29ac]
push dword [ebp - 0x29b0]
push dword [ebp - 0x29b8]
push dword [ebp - 0x29bc]
lea eax, [ebp - 0x56c]
push eax
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.WININET.dll_CommitUrlCacheEntryA]
mov dword [ebp - 0x29d0], eax
jmp 0x1001a85
mov dword [ebp - 0x29c4], ebx
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x2984]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x2984], 0xffffffff
lea eax, [ebp - 0x15c]
push eax
push dword [ebp - 0x2980]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1001999
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x2988], esi
cmp esi, 0x12
jne 0x1001c2d
xor esi, esi
mov dword [ebp - 0x2988], esi
cmp dword [ebp - 0x2984], 0xffffffff
je 0x1001c42
push dword [ebp - 0x2984]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2980], 0xffffffff
je 0x1001c57
push dword [ebp - 0x2980]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x1001ca5
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x1c]
call fcn.01001f44
pop edi
pop esi
pop ebx
leave
ret 4