Function at 0x1002d0e0
Capabilities:
Check for time delay via gettickcount
Persist via run registry key
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011ee85
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x1016e750]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
call fcn.10022690
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x1002d12e
push 0x80004005
call fcn.100223c0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
push dword [0x10172298]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x2c]
push str.bInitialized_d__InitType_d
push eax
call fcn.10044f30
add esp, 0x10
mov byte [ebp - 4], 1
mov ecx, str.DynamicPaths_Initialize
mov edx, dword [eax]
call fcn.10043b30
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1002d192
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x24]
mov edx, 1
mov eax, dword [0x10172298]
test ecx, ecx
mov edi, dword [ebp - 0x2c]
cmove eax, edx
mov dword [0x10172298], eax
xor eax, eax
mov dword [ebp - 0x20], eax
test ecx, ecx
je 0x1002d1c7
shl eax, 4
cmp dword [eax + 0x1016f604], ecx
jne 0x1002da90
mov eax, dword [ebp - 0x20]
shl eax, 4
mov ecx, dword [eax + 0x1016f60c]
mov dword [ebp - 0x1c], eax
lea eax, [eax + 0x1016f60c]
mov dword [ebp - 0x18], eax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002d1e0
sub ecx, edx
mov dword [ebp - 0x28], 0
sar ecx, 1
cmp ecx, 9
jbe 0x1002d256
mov ebx, dword [ebp - 0x18]
mov edx, str._UnWow64_
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x14]
lea eax, [eax + ecx*2]
add eax, 0xffffffee
mov edi, edi
mov cx, word [eax]
cmp cx, word [edx]
jne 0x1002d236
test cx, cx
je 0x1002d232
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x1002d236
add eax, 4
add edx, 4
test cx, cx
jne 0x1002d210
xor eax, eax
jmp 0x1002d23b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1002d256
call fcn.100476b0
mov edx, dword [ebp - 0x28]
test eax, eax
mov ecx, 1
cmovne edx, ecx
mov dword [ebp - 0x28], edx
jmp 0x1002d25b
mov ecx, 1
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x1016f604]
inc eax
cmp eax, 5
ja case.0x1002d26e.0
jmp dword [eax*4 + 0x1002db90]
push 0
push 0
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push dword [edx + 0x1016f608]
lea esi, [ebp - 0x10]
call fcn.10023fc0
push ecx
mov ecx, esp
mov byte [ebp - 4], 2
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
call fcn.10023fc0
mov edx, esi
mov byte [ebp - 4], 0
mov ecx, SysFreeString
call fcn.10045b00
add esp, 0x14
test eax, eax
je 0x1002d381
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jle 0x1002d2e7
push 0x7e
push esi
call fcn.101033a1
add esp, 8
test eax, eax
je 0x1002d2e7
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x1002d2e7
lea ecx, [ebp - 0x10]
call fcn.10046cd0
mov esi, dword [ebp - 0x10]
push esi
call fcn.10104bb4
mov ecx, dword [ebp - 0x18]
add esp, 4
mov dword [ecx], eax
jmp 0x1002d387
push 0
push 0
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x54], esp
push dword [edx + 0x1016f608]
lea esi, [ebp - 0x10]
call fcn.10023fc0
push ecx
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
call fcn.10023fc0
mov byte [ebp - 4], 4
call fcn.1002ec70
mov edx, esi
mov byte [ebp - 4], 0
mov ecx, eax
call fcn.10045b00
add esp, 0x14
test eax, eax
je 0x1002d381
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jle 0x1002d371
push 0x7e
push esi
call fcn.101033a1
add esp, 8
test eax, eax
je 0x1002d371
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x1002d371
lea ecx, [ebp - 0x10]
call fcn.10046cd0
mov esi, dword [ebp - 0x10]
push esi
call fcn.10104bb4
mov ecx, dword [ebp - 0x18]
add esp, 4
mov dword [ecx], eax
jmp 0x1002d387
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp dword [ebp - 0x28], 0
je 0x1002d9c7
mov eax, dword [ecx]
mov ecx, eax
mov dword [ebp - 0x28], eax
lea edx, [ecx + 2]
jmp 0x1002d3a0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002d3a0
mov eax, dword [ebp - 0x28]
sub ecx, edx
sar ecx, 1
mov edx, str.__x86_
lea eax, [eax + ecx*2]
add eax, 0xfffffff4
lea ecx, [ecx]
mov cx, word [eax]
cmp cx, word [edx]
jne 0x1002d99c
test cx, cx
je 0x1002d3ea
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x1002d99c
add eax, 4
add edx, 4
test cx, cx
jne 0x1002d3c0
xor eax, eax
jmp 0x1002d9a1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x514
or eax, ecx
jge 0x1002d413
push 0x514
lea ecx, [ebp - 0x10]
call fcn.100249c0
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
push 0x514
push esi
push dword [edx + 0x1016f608]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [esi - 8]
mov dword [ebp - 0x30], eax
push esi
call fcn.1010374b
add esp, 8
test eax, eax
js 0x1002dab5
cmp eax, dword [esi - 8]
jg 0x1002dab5
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp - 0x30], ecx
jbe case.0x1002d26e.0
cmp dword [esi - 0xc], ecx
jle 0x1002d47f
push 0x7e
push esi
call fcn.101033a1
add esp, 8
test eax, eax
je 0x1002d47f
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x1002d47f
lea ecx, [ebp - 0x10]
call fcn.10046cd0
mov esi, dword [ebp - 0x10]
push esi
call fcn.10104bb4
mov ecx, dword [ebp - 0x18]
add esp, 4
mov dword [ecx], eax
jmp 0x1002d387
push str._MyExe_
push dword [edx + 0x1016f600]
call fcn.10103523
add esp, 8
test eax, eax
jne 0x1002d558
mov ecx, dword [0x101750d8]
cmp dword [ecx - 0xc], eax
je 0x1002d4d2
add ecx, 0xfffffff0
call fcn.10024750
lea edi, [eax + 0x10]
mov dword [ebp - 0x2c], edi
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 5
or ebx, 1
jmp 0x1002d4e4
lea ecx, [ebp - 0x34]
call fcn.100446a0
mov dword [ebp - 4], 6
or ebx, 2
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call fcn.100244b0
mov dword [ebp - 4], 5
test bl, 2
je 0x1002d51f
mov edx, dword [ebp - 0x34]
and ebx, 0xfffffffd
add edx, 0xfffffff0
mov dword [ebp - 0x14], ebx
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002d51f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0
test bl, 1
je 0x1002d626
and ebx, 0xfffffffe
lea edx, [edi - 0x10]
mov dword [ebp - 0x14], ebx
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002d626
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1002d626
mov eax, dword [ebp - 0x1c]
push str._ExeDir_
push dword [eax + 0x1016f600]
call fcn.10103523
add esp, 8
test eax, eax
jne 0x1002d5ff
mov ecx, dword [0x101750d8]
cmp dword [ecx - 0xc], eax
je 0x1002d5b2
push ecx
mov eax, 0x5c
add ecx, 0xfffffff0
movzx ebx, ax
mov esi, esp
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x3c]
mov edx, ebx
mov dword [esi], eax
call fcn.100452e0
add esp, 4
mov byte [ebp - 4], 7
mov ebx, dword [ebp - 0x14]
or ebx, 4
jmp 0x1002d5c4
lea ecx, [ebp - 0x38]
call fcn.100446f0
mov dword [ebp - 4], 8
or ebx, 8
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call fcn.100244b0
test bl, 8
je 0x1002d5e3
and ebx, 0xfffffff7
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x14], ebx
call fcn.10024080
mov dword [ebp - 4], 0
test bl, 4
je 0x1002d626
and ebx, 0xfffffffb
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x14], ebx
call fcn.10024080
jmp 0x1002d626
mov eax, dword [ebp - 0x1c]
push str._AppID_
push dword [eax + 0x1016f600]
call fcn.10103523
add esp, 8
test eax, eax
jne 0x1002d629
push 0x1017507c
lea ecx, [ebp - 0x10]
call fcn.100244b0
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jle 0x1002d652
push 0x7e
push esi
call fcn.101033a1
add esp, 8
test eax, eax
je 0x1002d652
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x1002d652
lea ecx, [ebp - 0x10]
call fcn.10046cd0
mov esi, dword [ebp - 0x10]
push esi
call fcn.10104bb4
mov ecx, dword [ebp - 0x18]
add esp, 4
mov dword [ecx], eax
jmp 0x1002d387
push str._Common_Profile_
push dword [edx + 0x1016f600]
call fcn.10103523
add esp, 8
test eax, eax
jne 0x1002d717
push eax
push eax
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x54], esp
push str.Common_Desktop
lea esi, [ebp - 0x10]
call fcn.10023fc0
push ecx
mov ecx, esp
mov byte [ebp - 4], 9
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
call fcn.10023fc0
mov edx, esi
mov byte [ebp - 4], 0
mov ecx, SysFreeString
call fcn.10045b00
mov ecx, dword [ebp - 0x10]
add esp, 0x10
mov eax, 0x5c
mov esi, esp
movzx ebx, ax
lea ecx, [ecx - 0x10]
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x40]
mov edx, ebx
mov dword [esi], eax
call fcn.100452e0
add esp, 4
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xa
call fcn.100244b0
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002d70f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x14]
jmp 0x1002d95d
mov eax, dword [ebp - 0x1c]
push str._Program_Files__x86__
push dword [eax + 0x1016f600]
call fcn.10103523
add esp, 8
test eax, eax
jne 0x1002d816
cmp dword [ebp - 0x20], eax
jne 0x1002d816
call fcn.100476b0
mov ecx, 1
sub ecx, dword [esi - 4]
test eax, eax
mov eax, dword [esi - 8]
je 0x1002d7d1
sub eax, 0x514
or eax, ecx
jge 0x1002d76b
push 0x514
lea ecx, [ebp - 0x10]
call fcn.100249c0
mov esi, dword [ebp - 0x10]
push 0x514
push esi
push str.ProgramFiles_x86_
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ecx
lea ecx, [ebp - 0x10]
call fcn.10024210
cmp dword [esi - 0xc], 0
jne 0x1002d964
push 0
push 0
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x54], esp
push str.ProgramFilesDir__x86_
lea esi, [ebp - 0x10]
call fcn.10023fc0
push ecx
mov ecx, esp
mov byte [ebp - 4], 0xb
push str.SOFTWAREMicrosoftWindowsCurrentVersion
call fcn.10023fc0
mov edx, esi
mov byte [ebp - 4], 0
mov ecx, SysFreeString
call fcn.10045b00
add esp, 0x14
jmp 0x1002d95d
sub eax, 0x514
or eax, ecx
jge 0x1002d7ea
push 0x514
lea ecx, [ebp - 0x10]
call fcn.100249c0
mov esi, dword [ebp - 0x10]
push 0x514
push esi
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ecx
lea ecx, [ebp - 0x10]
call fcn.10024210
push str.__x86_
lea ecx, [ebp - 0x10]
call fcn.100245f0
jmp 0x1002d95d
mov eax, dword [ebp - 0x1c]
push str._Program_Files_
push dword [eax + 0x1016f600]
call fcn.10103523
add esp, 8
test eax, eax
jne 0x1002d8c2
cmp dword [ebp - 0x20], 1
jne 0x1002d8c2
call fcn.100476b0
mov ecx, 1
sub ecx, dword [esi - 4]
test eax, eax
mov eax, dword [esi - 8]
je 0x1002d88a
sub eax, 0x514
or eax, ecx
jge 0x1002d86b
push 0x514
lea ecx, [ebp - 0x10]
call fcn.100249c0
mov esi, dword [ebp - 0x10]
push 0x514
push esi
push str.ProgramW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ecx
lea ecx, [ebp - 0x10]
call fcn.10024210
jmp 0x1002d960
sub eax, 0x514
or eax, ecx
jge 0x1002d8a3
push 0x514
lea ecx, [ebp - 0x10]
call fcn.100249c0
mov esi, dword [ebp - 0x10]
push 0x514
push esi
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ecx
lea ecx, [ebp - 0x10]
call fcn.10024210
jmp 0x1002d960
mov eax, dword [ebp - 0x1c]
push str.AppDataXP
push dword [eax + 0x1016f608]
call fcn.10103523
add esp, 8
test eax, eax
jne 0x1002d936
push ecx
mov ecx, esp
mov dword [ebp - 0x54], esp
push 0x1012ec40
call fcn.10023fc0
push ecx
mov byte [ebp - 4], 0xc
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.Application_Data
call fcn.10023fc0
push ecx
mov ecx, esp
mov byte [ebp - 4], 0xd
call fcn.10048ea0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.10044c80
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xe
call fcn.100244b0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.10024080
jmp 0x1002d95d
mov eax, dword [ebp - 0x1c]
push str._Scripts_
push dword [eax + 0x1016f600]
call fcn.10103523
add esp, 8
test eax, eax
jne 0x1002d960
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
push dword [eax]
call fcn.100240c0
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jle 0x1002d989
push 0x7e
push esi
call fcn.101033a1
add esp, 8
test eax, eax
je 0x1002d989
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x1002d989
lea ecx, [ebp - 0x10]
call fcn.10046cd0
mov esi, dword [ebp - 0x10]
push esi
call fcn.10104bb4
mov ecx, dword [ebp - 0x18]
add esp, 4
mov dword [ecx], eax
jmp 0x1002d387
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1002d9c7
mov edx, dword [ebp - 0x28]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x30], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002d9b0
sub ecx, dword [ebp - 0x30]
sar ecx, 1
xor eax, eax
mov word [edx + ecx*2 - 0xc], ax
mov eax, dword [0x101751f0]
cmp dword [eax - 0xc], 0
je 0x1002d9e5
mov ecx, dword [ebp - 0x18]
call fcn.1002ed50
mov eax, dword [0x101751f0]
cmp dword [eax - 0xc], 0
jne 0x1002d9ec
mov eax, 0x1012ec60
jmp 0x1002da0a
push eax
lea eax, [ebp - 0x4c]
push str.__Forced_UserProfile_s
push eax
call fcn.10044f30
add esp, 0xc
mov byte [ebp - 4], 0xf
or ebx, 0x10
mov eax, dword [eax]
mov dword [ebp - 0x14], ebx
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x1016f600]
lea eax, [ebp - 0x48]
push str._s___s_s
push eax
call fcn.10044f30
add esp, 0x14
mov dword [ebp - 4], 0x10
mov ecx, str.DynamicPaths_Initialize
mov edx, dword [eax]
call fcn.10043b30
mov byte [ebp - 4], 0xf
or ecx, 0xffffffff
mov edx, dword [ebp - 0x48]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002da5e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0
test bl, 0x10
je 0x1002da8d
mov edx, dword [ebp - 0x4c]
and ebx, 0xffffffef
add edx, 0xfffffff0
mov dword [ebp - 0x14], ebx
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002da8d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp eax, 0x25
jl 0x1002d1b1
mov eax, dword [0x101751e8]
cmp dword [eax - 0xc], 0
jne 0x1002dabf
lea ecx, [ebp - 0x4c]
call fcn.10046750
jmp 0x1002dad1
push 0x80070057
call fcn.100223c0
push eax
lea eax, [ebp - 0x4c]
push str.RegistryUser_s
push eax
call fcn.10044f30
add esp, 0xc
push dword [eax]
call fcn.10104bb4
mov edx, dword [ebp - 0x4c]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov dword [0x1016f5ec], eax
add esp, 4
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002dafd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x1016f5ec]
add eax, 2
mov dword [0x1016f5fc], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
push str.Took__dms
push eax
call fcn.10044f30
add esp, 0xc
mov byte [ebp - 4], 0x11
mov ecx, str.DynamicPaths_Initialize
mov edx, dword [eax]
call fcn.10043b30
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp - 0x4c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002db56
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002db77
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret