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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001230
push 0x1001fc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
mov eax, 0x29b8
call fcn.01001f80
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], ecx
or dword [ebp - 0x20], 0xffffffff
or dword [ebp - 0x24], 0xffffffff
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], eax
cmp dword [ebp + 8], eax
lea eax, [ebp - 0x134]
push eax
je 0x1001820
mov dword [ebp - 0x30], 0x104
call fcn.01001310
mov esi, eax
neg esi
sbb esi, esi
neg esi
mov dword [ebp - 0x138], esi
jne 0x1001b04
lea ecx, [ebp - 0x134]
lea edx, [ebp - 0x23c]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x100166f
lea eax, [ebp - 0x340]
push eax
call fcn.010013f3
mov esi, eax
neg esi
sbb esi, esi
neg esi
mov dword [ebp - 0x138], esi
jne 0x1001b04
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edi, [ebp - 0x23c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10016b1
mov esi, 0x100114c
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x444]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10016c8
sub eax, edx
lea edi, [ebp - 0x23c]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10016d8
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 - 0x23c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10016f7
mov esi, 0x1001224
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x584]
push eax
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
mov dword [ebp - 0x20], ebx
cmp ebx, 0xffffffff
je 0x1001afc
lea ecx, [ebp - 0x134]
lea edx, [ebp - 0x688]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x1001736
lea edi, [ebp - 0x688]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1001747
mov esi, 0x100114c
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x558]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100175e
sub eax, edx
lea edi, [ebp - 0x688]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100176e
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 - 0x340]
lea ecx, [ebp - 0x78c]
mov dl, byte [eax]
mov byte [ecx], dl
inc eax
inc ecx
test dl, dl
jne 0x1001792
lea edi, [ebp - 0x78c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10017a3
mov esi, 0x100114c
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x558]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10017ba
sub eax, edx
lea edi, [ebp - 0x78c]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10017ca
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 - 0x78c]
push eax
lea eax, [ebp - 0x688]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x584]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100172a
cmp ebx, 0xffffffff
je 0x1001852
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 0x20], 0xffffffff
jmp 0x1001852
call fcn.01001310
lea ecx, [ebp - 0x134]
lea edx, [ebp - 0x23c]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x1001831
lea edi, [ebp - 0x23c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1001842
mov esi, 0x1001218
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 - 0x340]
jne 0x1001865
lea eax, [ebp - 0x134]
mov dword [ebp - 0x790], eax
lea eax, [ebp - 0x584]
push eax
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
je 0x1001afe
mov edx, dword [ebp - 0x790]
lea ecx, [ebp - 0x894]
mov al, byte [edx]
mov byte [ecx], al
inc edx
inc ecx
test al, al
jne 0x1001897
lea edi, [ebp - 0x894]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10018a8
mov esi, 0x100114c
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x558]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10018bf
sub eax, esi
lea edi, [ebp - 0x894]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10018cf
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 - 0x894]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x1001ad1
mov eax, dword [ebp - 0x564]
inc eax
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov esi, eax
mov dword [ebp - 0x898], esi
mov ebx, esi
mov dword [ebp - 0x2c], ebx
test esi, esi
jne 0x1001937
push 8
pop esi
jmp 0x1001afe
push 0
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x564]
push esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x89c], eax
test eax, eax
je 0x1001ab7
mov eax, dword [ebp - 0x28]
and byte [esi + eax], 0
mov dword [ebp - 0x8a0], esi
lea eax, [ebp - 0x8a8]
push eax
lea eax, [ebp - 0x8b0]
push eax
lea eax, [ebp - 0x8b4]
push eax
push dword [ebp - 0x8a0]
mov ecx, dword [ebp - 0x1c]
call fcn.0100152f
mov dword [ebp - 0x8a0], eax
test eax, eax
je 0x1001ab7
mov eax, dword [0x1001210]
mov dword [ebp - 0x9b8], eax
mov eax, dword [0x1001214]
mov dword [ebp - 0x9b4], eax
lea eax, [ebp - 0x558]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10019b7
sub eax, esi
lea edi, [ebp - 0x9b8]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10019c7
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 0x100120c
lea eax, [ebp - 0x9b8]
push eax
call dword [sym.imp.msvcrt.dll_strstr]
pop ecx
pop ecx
mov dword [ebp - 0x9bc], eax
mov ecx, dword [ebp - 0x8b4]
inc eax
mov dl, byte [ecx]
mov byte [eax], dl
inc ecx
inc eax
test dl, dl
jne 0x10019fe
mov dword [ebp - 0x9c0], 1
lea eax, [ebp - 0x29c0]
mov dword [ebp - 0x29c4], eax
mov dword [ebp - 0x29c8], 0x2000
lea eax, [ebp - 0x29c8]
push eax
lea eax, [ebp - 0x29c0]
push eax
lea eax, [ebp - 0x9b8]
push eax
call dword [sym.imp.WININET.dll_GetUrlCacheEntryInfoA]
mov dword [ebp - 0x138], eax
test eax, eax
jne 0x1001a6c
lea eax, [ebp - 0x8a8]
push eax
lea eax, [ebp - 0x29a0]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x1001a6c
and dword [ebp - 0x9c0], 0
cmp dword [ebp - 0x9c0], 0
je 0x1001968
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp - 0x8a4]
push dword [ebp - 0x8a8]
push dword [ebp - 0x8ac]
push dword [ebp - 0x8b0]
lea eax, [ebp - 0x894]
push eax
lea eax, [ebp - 0x9b8]
push eax
call dword [sym.imp.WININET.dll_CommitUrlCacheEntryA]
mov dword [ebp - 0x29cc], eax
jmp 0x1001968
mov dword [ebp - 0x29d0], ebx
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x24], 0xffffffff
lea eax, [ebp - 0x584]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100188b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x138], esi
cmp esi, 0x12
jne 0x1001b04
xor esi, esi
mov dword [ebp - 0x138], esi
cmp dword [ebp - 0x24], 0xffffffff
je 0x1001b13
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], 0xffffffff
je 0x1001b22
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x1001b61
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4