Function at 0x10a0d44
Capabilities:
Get file attributes
Query environment variable
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x34]
xor ebx, ebx
mov word [esi + 6], bx
mov dword [esi], edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
push 0x1011c24
push dword [edi + 0xc]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10a0d9e
mov eax, dword [esi + 0x10]
or dword [eax], 0xffffffff
mov eax, dword [esi + 0x10]
mov dword [eax + 4], ebx
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x40], ebx
xor ax, ax
jmp 0x10a1238
push ebx
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push dword [edi + 0xc]
push edi
call fcn.010a7a67
test ax, ax
jne 0x10a10c6
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + 0x14f8]
cmp eax, ebx
je 0x10a0df1
add esi, 0x14fc
cmp word [esi], bx
je 0x10a0df1
lea ecx, [ebp - 0x10]
push ecx
push eax
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x54]
add eax, 4
push eax
push esi
call sub.query.dll_SetCatalogState
mov eax, dword [ebp - 0x1c]
add eax, 0x14f8
mov dword [eax], ebx
mov word [esi], bx
mov eax, dword [edi + 4]
test byte [eax + 0x60], 0x80
jne 0x10a0e99
push 0x5c
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_wcsrchr]
cmp eax, ebx
pop ecx
pop ecx
je 0x10a0e99
add eax, 2
push 0x1011ea4
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10a0e99
push dword [ebp - 4]
push edi
call fcn.010a0727
mov esi, eax
cmp esi, ebx
je 0x10a0e99
mov eax, dword [ebp - 0x1c]
add eax, 0x14f8
push eax
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x54]
push 2
add eax, 4
push eax
push esi
call sub.query.dll_SetCatalogState
test eax, eax
jne 0x10a0e99
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x14]
push eax
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x54]
push 0x10
add eax, 4
push eax
push esi
call sub.query.dll_SetCatalogState
test eax, eax
jne 0x10a0e7d
cmp dword [ebp - 0x14], 2
je 0x10a0e99
call fcn.0106e781
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0xa0
jl 0x10a0e5d
mov eax, dword [edi + 4]
cmp word [eax + 0x32], bx
jne 0x10a0f0c
push 0x208
lea eax, [ebp - 0x460]
push eax
push 0x1011e50
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
push eax
lea eax, [ebp - 0x460]
push eax
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0x10
test eax, eax
mov eax, dword [ebp - 0x1c]
jne 0x10a0ef8
add eax, 0x96
cmp word [eax], bx
jne 0x10a0f0c
push edi
mov word [eax], 1
call fcn.010801c8
jmp 0x10a0f0c
add eax, 0x96
cmp word [eax], 1
jne 0x10a0f0c
push edi
mov word [eax], bx
call fcn.01080243
mov esi, dword [ebp + 0x10]
mov ecx, dword [esi + 0x40]
test ch, 4
je 0x10a0f1e
mov dword [ebp - 0xc], 0x200000
movsx eax, word [ebp + 0x14]
sub eax, ebx
je 0x10a0f7f
dec eax
je 0x10a0f31
dec eax
je 0x10a0f7f
mov edi, dword [ebp + 0x14]
jmp 0x10a0f8b
test ch, 0x40
je 0x10a0f5a
push 0x80
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [esi + 0x16], 2
mov edi, 0x10d0100
jne 0x10a0f6f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_EncryptFileW]
jmp 0x10a0f6f
test byte [esi + 0x16], 2
mov edi, 0xc10d0000
jne 0x10a0f6f
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_DecryptFileW]
mov dword [ebp - 0x18], 4
mov dword [ebp - 8], 2
jmp 0x10a0f8b
mov edi, 0x81000000
mov dword [ebp - 0x18], 3
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
or ecx, 0xa000080
push ecx
push dword [ebp - 0x18]
or eax, 5
push ebx
push eax
push edi
push dword [ebp - 4]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x10a10f8
test edi, 0x10000
je 0x10a0fea
push ebx
push dword [ebp - 0x14]
and edi, 0xfffeffff
push dword [ebp - 0x18]
push ebx
push dword [ebp - 0x10]
push edi
push dword [ebp - 4]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x10a10f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0xc], eax
mov eax, 0x80
cmp dword [ebp - 0xc], eax
je 0x10a10cf
cmp dword [ebp - 0xc], 0xffffffff
je 0x10a10cf
cmp word [ebp + 0x14], 1
jne 0x10a10cf
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push ebx
push dword [ebp - 0x10]
push edi
push dword [ebp - 4]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x10a10f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push dword [ebp - 0x14]
and edi, 0xfeffffff
push dword [ebp - 0x18]
push ebx
push dword [ebp - 0x10]
push edi
push dword [ebp - 4]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x10a10f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0xc]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp + 0xc]
push ebx
mov eax, esi
call fcn.010a091e
mov esi, eax
push dword [ebp + 8]
call fcn.010a7422
cmp si, bx
je 0x10a1235
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push 1
mov edi, eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push ebx
push dword [eax + 0xc]
push eax
call fcn.010a7a67
test ax, ax
je 0x10a11c9
or ax, 0xffff
jmp 0x10a1238
push ebx
push dword [ebp - 0x14]
and edi, 0xfeffffff
push dword [ebp - 0x18]
push ebx
push dword [ebp - 0x10]
push edi
push dword [ebp - 4]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x10a10f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10a1083
mov esi, dword [ebp + 0x10]
and byte [esi + 0x84], 0xf7
test byte [esi + 0x41], 4
mov dword [ebp - 0xc], ebx
je 0x10a111e
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.010a0329
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x10a11ae
mov eax, dword [esi + 0x7c]
mov eax, dword [eax + 0x18]
cmp word [eax], bx
jne 0x10a1146
mov eax, dword [ebp - 0x4c]
mov dword [esi + 0x60], eax
mov eax, dword [ebp - 0x48]
mov dword [esi + 0x64], eax
cmp dword [ebp - 0xc], 0xa0000003
jne 0x10a11ae
mov edi, dword [ebp - 0x1c]
mov eax, dword [edi + 0x78]
cmp eax, ebx
je 0x10a1184
mov ecx, dword [eax]
cmp ecx, dword [ebp - 0x34]
jne 0x10a1170
mov ecx, dword [eax + 4]
cmp ecx, dword [ebp - 0x20]
jne 0x10a1170
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x24]
je 0x10a1177
mov eax, dword [eax + 0xc]
cmp eax, ebx
jne 0x10a1159
cmp eax, ebx
je 0x10a1184
or byte [esi + 0x84], 8
jmp 0x10a11ae
push 1
push 0x10
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, ebx
pop ecx
pop ecx
je 0x10a11ae
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x24]
mov dword [eax + 8], ecx
mov ecx, dword [edi + 0x78]
mov dword [eax + 0xc], ecx
mov dword [edi + 0x78], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov ecx, dword [eax + 0x10]
mov dword [ecx + 4], ebx
mov dword [eax + 8], ebx
xor esi, esi
jmp 0x10a1090
mov esi, dword [sym.imp.msvcrt.dll_wcsncmp]
push 8
push 0x1011d74
push dword [ebp - 4]
call esi
add esp, 0xc
test eax, eax
jne 0x10a11f1
add dword [ebp - 4], 0xc
mov eax, dword [ebp - 4]
mov dword [eax], 0x5c005c
jmp 0x10a1208
push 4
push 0x1005e34
push dword [ebp - 4]
call esi
add esp, 0xc
test eax, eax
jne 0x10a1208
add dword [ebp - 4], 8
cmp word [ebp + 0x14], 1
push dword [ebp - 4]
jne 0x10a1219
push 0x232f
jmp 0x10a121e
push 0x232e
push edi
push ebx
push dword [ebp + 8]
call fcn.0107f1b8
push dword [ebp + 8]
call fcn.010a7422
mov esi, 0xfffffe3f
mov ax, si
pop edi
pop esi
pop ebx
leave
ret 0x10