Function at 0x10c0875
Capabilities:
Enumerate files on windows
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc9c
mov eax, dword [0x10de03c]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x34]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [edi + 0x14f4], ebx
mov dword [ebp - 0xc94], eax
mov dword [ebp - 0xc98], edi
jne 0x10c08c2
push 0x834
call fcn.010a4e23
cmp eax, ebx
mov dword [edi + 0x14f4], eax
je 0x10c0d6a
mov eax, dword [esi + 0x14]
test byte [eax + 0x9f], 2
mov dword [ebp - 0x834], 0xf750e6c3
mov word [ebp - 0x830], 0x38ee
mov word [ebp - 0x82e], 0x11d1
mov byte [ebp - 0x82c], 0x85
mov byte [ebp - 0x82b], 0xe5
mov byte [ebp - 0x82a], 0
mov byte [ebp - 0x829], 0xc0
mov byte [ebp - 0x828], 0x4f
mov byte [ebp - 0x827], 0xc2
mov byte [ebp - 0x826], 0x95
mov byte [ebp - 0x825], 0xee
mov dword [ebp - 0xc9c], ebx
jne 0x10c093b
mov eax, dword [esi + 4]
cmp byte [eax + 0x30], 6
jne 0x10c093b
mov dword [ebp - 0xc9c], 1
mov esi, dword [sym.imp.msvcrt.dll__wcsupr]
xor eax, eax
cmp word [ebp - 0xc9c], bx
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, 0x83
lea edi, [ebp - 0xc90]
rep stosd dword es:[edi], eax
jne 0x10c09e9
lea eax, [ebp - 0xc90]
push eax
xor edi, edi
push edi
call sub.sfc_os.dll_SfcGetNextProtectedFile
test eax, eax
je 0x10c09e9
push 0x208
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0xc90]
push eax
call ebx
cmp eax, 0x410
ja 0x10c0963
cmp dword [ebp - 0xc94], edi
je 0x10c09c1
push dword [ebp - 0xc94]
call dword [sym.imp.msvcrt.dll_wcslen]
push eax
push dword [ebp - 0xc94]
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0x10
test eax, eax
jne 0x10c0963
lea eax, [ebp - 0x824]
push eax
call esi
pop ecx
push edi
lea eax, [ebp - 0x824]
push eax
mov eax, dword [ebp - 0xc98]
push dword [eax + 0x14f4]
call fcn.010a509d
jmp 0x10c0963
xor eax, eax
mov ecx, 0x104
lea edi, [ebp - 0x414]
rep stosd dword es:[edi], eax
push 0x208
lea eax, [ebp - 0x414]
push eax
push 0x1012770
call ebx
cmp dword [ebp - 0xc94], 0
je 0x10c0a56
push dword [ebp - 0xc94]
call dword [sym.imp.msvcrt.dll_wcslen]
push eax
push dword [ebp - 0xc94]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0x10
test eax, eax
je 0x10c0a56
mov eax, dword [ebp - 0xc98]
push 1
push dword [eax + 0x14f4]
call fcn.010a4f80
xor ax, ax
jmp 0x10c0d6e
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
lea edi, [ebp + eax*2 - 0x414]
lea eax, [ebp - 0x414]
mov dword [esp], 0x1012758
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x414]
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0xa84]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0xc94], eax
je 0x10c0afa
lea eax, [ebp - 0xa58]
push eax
push edi
call dword [sym.imp.msvcrt.dll_wcscpy]
push edi
call esi
add esp, 0xc
push 0
lea eax, [ebp - 0x414]
push eax
mov eax, dword [ebp - 0xc98]
push dword [eax + 0x14f4]
call fcn.010a509d
lea eax, [ebp - 0xa84]
push eax
push dword [ebp - 0xc94]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10c0aa9
push dword [ebp - 0xc94]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x101272c
push edi
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x414]
push eax
call esi
add esp, 0xc
push 0
lea eax, [ebp - 0x414]
push eax
mov eax, dword [ebp - 0xc98]
push dword [eax + 0x14f4]
call fcn.010a509d
xor eax, eax
mov ecx, 0x104
lea edi, [ebp - 0x414]
rep stosd dword es:[edi], eax
push 0x208
lea eax, [ebp - 0x414]
push eax
push 0x10126d8
call ebx
lea eax, [ebp - 0x414]
push eax
call esi
pop ecx
push 0
lea eax, [ebp - 0x414]
push eax
mov eax, dword [ebp - 0xc98]
push dword [eax + 0x14f4]
call fcn.010a509d
xor eax, eax
mov ecx, 0x104
lea edi, [ebp - 0x414]
rep stosd dword es:[edi], eax
push 0x208
lea eax, [ebp - 0x414]
push eax
push 0x1012610
call ebx
lea eax, [ebp - 0x414]
push eax
call esi
pop ecx
push 0
lea eax, [ebp - 0x414]
push eax
mov eax, dword [ebp - 0xc98]
push dword [eax + 0x14f4]
call fcn.010a509d
xor eax, eax
cmp word [ebp - 0xc9c], ax
mov ecx, 0x104
lea edi, [ebp - 0x414]
rep stosd dword es:[edi], eax
jne 0x10c0a3b
push 0x208
lea eax, [ebp - 0x414]
push eax
push 0x10125d0
call ebx
lea eax, [ebp - 0x414]
push eax
lea edi, [ebp - 0x831]
call dword [sym.imp.msvcrt.dll_wcslen]
or dword [ebp - 0xc9c], 0xffffffff
lea eax, [ebp + eax*2 - 0x414]
pop ecx
mov dword [ebp - 0xc94], eax
xor ebx, ebx
cmp ebx, 4
je 0x10c0c25
cmp ebx, 6
je 0x10c0c25
cmp ebx, 8
je 0x10c0c25
cmp ebx, 0xa
jne 0x10c0c77
mov eax, dword [ebp - 0xc94]
add dword [ebp - 0xc94], 2
cmp ebx, 4
mov word [eax], 0x2d
jne 0x10c0c42
lea edi, [ebp - 0x82f]
cmp ebx, 6
jne 0x10c0c4d
lea edi, [ebp - 0x82d]
cmp ebx, 8
jne 0x10c0c62
mov dword [ebp - 0xc9c], 1
lea edi, [ebp - 0x82c]
cmp ebx, 0xa
jne 0x10c0c77
mov dword [ebp - 0xc9c], 1
lea edi, [ebp - 0x82a]
movzx eax, byte [edi]
push eax
push 0x10125c4
push dword [ebp - 0xc94]
call dword [sym.imp.msvcrt.dll_swprintf]
add edi, dword [ebp - 0xc9c]
add dword [ebp - 0xc94], 4
add esp, 0xc
inc ebx
cmp ebx, 0x10
jl 0x10c0c11
mov edi, dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x414]
push 0x10125c0
push eax
call edi
lea eax, [ebp - 0x414]
push 0x1004204
push eax
call edi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
lea ebx, [ebp + eax*2 - 0x414]
lea eax, [ebp - 0x414]
push eax
call esi
lea eax, [ebp - 0x414]
push 0x10054a8
push eax
call edi
add esp, 0x20
lea eax, [ebp - 0xa84]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10c0a3b
lea eax, [ebp - 0xa58]
push eax
push ebx
call dword [sym.imp.msvcrt.dll_wcscpy]
push ebx
call esi
add esp, 0xc
test byte [ebp - 0xa84], 0x10
jne 0x10c0d4c
push 1
lea eax, [ebp - 0x414]
push eax
mov eax, dword [ebp - 0xc98]
push dword [eax + 0x14f4]
call fcn.010a509d
lea eax, [ebp - 0xa84]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10c0d15
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x10c0a3b
mov ax, 0xfe07
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075aef
leave
ret 8