Function at 0x1001a180
Capabilities:
Get common file path
Persist via run registry key
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cc3e0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x10102f10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x20], ebx
call fcn.100093c0
mov ecx, eax
test ecx, ecx
je 0x1001a454
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
call fcn.100093c0
mov ecx, eax
test ecx, ecx
je 0x1001a45e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
mov byte [ebp - 4], 1
jge 0x1001a210
push 0x104
lea ecx, [ebp - 0x14]
call fcn.1000a740
mov edi, dword [ebp - 0x14]
push 0
push 0x10
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [edi - 8]
mov dword [ebp - 0x2c], eax
push edi
call fcn.100965ac
add esp, 8
test eax, eax
js 0x1001a44a
cmp eax, dword [edi - 8]
jg 0x1001a44a
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
lea eax, [ebp - 0x10]
push eax
push str.Common_Desktop
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], ecx
call fcn.1001a510
add esp, 0x10
test eax, eax
jne 0x1001a28b
lea eax, [ebp - 0x10]
push eax
push str.Common_Desktop
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.1001a510
add esp, 0x10
test eax, eax
je 0x1001a33c
call fcn.100093c0
mov ecx, eax
test ecx, ecx
je 0x1001a468
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov byte [ebp - 4], 2
jge 0x1001a2cd
push 0x104
lea ecx, [ebp - 0x18]
call fcn.1000a740
mov esi, dword [ebp - 0x18]
push 0x104
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1001a312
push dword [esi - 8]
push esi
call fcn.100965ac
add esp, 8
test eax, eax
js 0x1001a44a
cmp eax, dword [esi - 8]
jg 0x1001a44a
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.10019a20
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov dword [ebp - 0x18], 1
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001a33c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x18], 1
lea esi, [ebx + 0x30]
push esi
mov dword [ebp - 0x28], esi
call fcn.1003acf6
add esp, 4
test eax, eax
je 0x1001a358
push eax
call fcn.1003adae
add esp, 4
mov eax, dword [ebx + 0x28]
lea ecx, [ebx + 0x24]
mov ebx, dword [ecx]
mov byte [ebp - 4], 3
mov dword [ebp - 0x1c], ecx
cmp ebx, eax
je 0x1001a39b
or edi, 0xffffffff
mov esi, eax
mov edx, dword [ebx]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001a389
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 4
cmp ebx, esi
jne 0x1001a370
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
mov ebx, dword [ecx]
mov dword [ecx + 4], ebx
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
sar eax, 2
cmp eax, 0x20
jae 0x1001a3b5
push 0x20
call fcn.1001a880
mov ecx, dword [ebp - 0x1c]
cmp dword [ebp - 0x2c], 0
mov ebx, dword [ebp - 0x20]
je 0x1001a3cd
push ecx
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.10019bc0
mov edi, dword [ebp - 0x14]
cmp dword [ebp - 0x18], 0
je 0x1001a3e1
push dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.10019bc0
push esi
mov byte [ebp - 4], 4
call fcn.1003ad1b
add esp, 4
test eax, eax
je 0x1001a3fb
push eax
call fcn.1003adae
add esp, 4
mov edx, dword [ebp - 0x10]
or ebx, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001a41c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1001a438
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.10008920
push 0x80004005
call fcn.10008920
push 0x80004005
call fcn.10008920
push 0x80004005
call fcn.10008920
int3