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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x10e607c]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x438], eax
mov eax, dword [edi + 0x34]
mov word [esi + 6], bx
mov dword [esi], edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
push 0x10125f0
push dword [edi + 0xc]
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x434], eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10b3564
mov eax, dword [esi + 0x10]
or dword [eax], 0xffffffff
mov eax, dword [esi + 0x10]
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x438]
mov dword [eax + 0x40], ebx
xor ax, ax
jmp 0x10b3b14
push ebx
push ebx
lea eax, [ebp - 0x418]
push eax
push ebx
push dword [edi + 0xc]
push edi
call fcn.010bab05
test ax, ax
jne 0x10b3938
mov esi, dword [ebp - 0x434]
mov eax, dword [esi + 0x14f8]
cmp eax, ebx
je 0x10b35c3
add esi, 0x14fc
cmp word [esi], bx
je 0x10b35c3
lea ecx, [ebp - 0x420]
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 - 0x434]
add eax, 0x14f8
mov dword [eax], ebx
mov word [esi], bx
mov eax, dword [edi + 4]
test byte [eax + 0x60], 0x80
jne 0x10b3687
push 0x5c
push dword [ebp - 0x418]
call dword [sym.imp.msvcrt.dll_wcsrchr]
cmp eax, ebx
pop ecx
pop ecx
je 0x10b3687
add eax, 2
push 0x101286c
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10b3687
push dword [ebp - 0x418]
push edi
call fcn.010b2e2a
mov esi, eax
cmp esi, ebx
je 0x10b3687
mov eax, dword [ebp - 0x434]
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 0x10b3687
mov dword [ebp - 0x420], 1
lea eax, [ebp - 0x428]
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 0x10b3665
cmp dword [ebp - 0x428], 2
je 0x10b3687
call fcn.0107875a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x420]
cmp dword [ebp - 0x420], 0xa0
jl 0x10b363f
mov eax, dword [edi + 4]
cmp word [eax + 0x32], bx
jne 0x10b3700
push 0x208
lea eax, [ebp - 0x414]
push eax
push 0x1012818
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0x10
test eax, eax
mov eax, dword [ebp - 0x434]
jne 0x10b36ec
add eax, 0x96
cmp word [eax], bx
jne 0x10b3700
push edi
mov word [eax], 1
call fcn.0108f625
jmp 0x10b3700
add eax, 0x96
cmp word [eax], 1
jne 0x10b3700
push edi
mov word [eax], bx
call fcn.0108f6a7
mov esi, dword [ebp - 0x438]
mov ecx, dword [esi + 0x40]
test ch, 4
je 0x10b3718
mov dword [ebp - 0x424], 0x200000
movsx eax, word [ebp + 0x14]
sub eax, ebx
je 0x10b378b
dec eax
je 0x10b372e
dec eax
je 0x10b378b
mov edi, dword [ebp - 0x43c]
jmp 0x10b379a
test ch, 0x40
je 0x10b375d
push 0x80
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [esi + 0x16], 2
mov edi, 0x10d0100
jne 0x10b3775
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_EncryptFileW]
jmp 0x10b3775
test byte [esi + 0x16], 2
mov edi, 0xc10d0000
jne 0x10b3775
push ebx
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_DecryptFileW]
mov dword [ebp - 0x430], 4
mov dword [ebp - 0x41c], 2
jmp 0x10b379a
mov edi, 0x81000000
mov dword [ebp - 0x430], 3
mov ecx, dword [ebp - 0x424]
mov eax, dword [ebp - 0x41c]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
or ecx, 0xa000080
push ecx
push dword [ebp - 0x430]
or eax, 5
push ebx
push eax
push edi
push dword [ebp - 0x418]
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x420], eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x41c], eax
jne 0x10b397c
test edi, 0x10000
je 0x10b381d
push ebx
push dword [ebp - 0x428]
and edi, 0xfffeffff
push dword [ebp - 0x430]
push ebx
push dword [ebp - 0x420]
push edi
push dword [ebp - 0x418]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x41c], eax
jne 0x10b397c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x424], eax
mov eax, 0x80
cmp dword [ebp - 0x424], eax
je 0x10b3941
cmp dword [ebp - 0x424], 0xffffffff
je 0x10b3941
cmp word [ebp + 0x14], 1
jne 0x10b3941
push eax
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push dword [ebp - 0x428]
push dword [ebp - 0x430]
push ebx
push dword [ebp - 0x420]
push edi
push dword [ebp - 0x418]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x41c], eax
jne 0x10b397c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push dword [ebp - 0x428]
and edi, 0xfeffffff
push dword [ebp - 0x430]
push ebx
push dword [ebp - 0x420]
push edi
push dword [ebp - 0x418]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x41c], eax
jne 0x10b397c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x424]
mov esi, eax
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 0x43c]
push ebx
mov eax, esi
call fcn.010b3087
mov esi, eax
push dword [ebp - 0x42c]
call fcn.010ba429
cmp si, bx
je 0x10b3b11
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push 1
mov edi, eax
lea eax, [ebp - 0x418]
push eax
mov eax, dword [ebp - 0x42c]
push ebx
push dword [eax + 0xc]
push eax
call fcn.010bab05
test ax, ax
je 0x10b3a8d
or ax, 0xffff
jmp 0x10b3b14
push ebx
push dword [ebp - 0x428]
and edi, 0xfeffffff
push dword [ebp - 0x430]
push ebx
push dword [ebp - 0x420]
push edi
push dword [ebp - 0x418]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x41c], eax
jne 0x10b397c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10b38e9
mov esi, dword [ebp - 0x438]
and byte [esi + 0x84], 0xf7
test byte [esi + 0x41], 4
mov dword [ebp - 0x424], ebx
je 0x10b39b4
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x41c]
push esi
push dword [ebp - 0x418]
push dword [ebp - 0x42c]
call fcn.010b2954
lea eax, [ebp - 0x470]
push eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x10b3a6c
mov eax, dword [esi + 0x7c]
mov eax, dword [eax + 0x18]
cmp word [eax], bx
jne 0x10b39ec
mov eax, dword [ebp - 0x46c]
mov dword [esi + 0x60], eax
mov eax, dword [ebp - 0x468]
mov dword [esi + 0x64], eax
cmp dword [ebp - 0x424], 0xa0000003
jne 0x10b3a6c
mov edi, dword [ebp - 0x434]
mov eax, dword [edi + 0x78]
cmp eax, ebx
je 0x10b3a39
mov ecx, dword [eax]
cmp ecx, dword [ebp - 0x454]
jne 0x10b3a25
mov ecx, dword [eax + 4]
cmp ecx, dword [ebp - 0x440]
jne 0x10b3a25
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x444]
je 0x10b3a2c
mov eax, dword [eax + 0xc]
cmp eax, ebx
jne 0x10b3a05
cmp eax, ebx
je 0x10b3a39
or byte [esi + 0x84], 8
jmp 0x10b3a6c
push 1
push 0x10
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, ebx
pop ecx
pop ecx
je 0x10b3a6c
mov ecx, dword [ebp - 0x454]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x440]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x444]
mov dword [eax + 8], ecx
mov ecx, dword [edi + 0x78]
mov dword [eax + 0xc], ecx
mov dword [edi + 0x78], eax
mov eax, dword [ebp - 0x43c]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x41c]
mov dword [ecx], edx
mov ecx, dword [eax + 0x10]
mov dword [ecx + 4], ebx
mov dword [eax + 8], ebx
xor esi, esi
jmp 0x10b38f9
mov esi, dword [sym.imp.msvcrt.dll_wcsncmp]
push 8
push 0x1012740
push dword [ebp - 0x418]
call esi
add esp, 0xc
test eax, eax
jne 0x10b3abe
add dword [ebp - 0x418], 0xc
mov eax, dword [ebp - 0x418]
mov dword [eax], 0x5c005c
jmp 0x10b3adb
push 4
push 0x1005efc
push dword [ebp - 0x418]
call esi
add esp, 0xc
test eax, eax
jne 0x10b3adb
add dword [ebp - 0x418], 8
cmp word [ebp + 0x14], 1
push dword [ebp - 0x418]
jne 0x10b3aef
push 0x232f
jmp 0x10b3af4
push 0x232e
push edi
push ebx
push dword [ebp - 0x42c]
call fcn.0108dc85
push dword [ebp - 0x42c]
call fcn.010ba429
mov esi, 0xfffffe3f
mov ax, si
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01078836
leave
ret 0x10