Function at 0x4ac1e0
Capabilities:
Persist via run registry key
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d059d
mov eax, dword fs:[0]
push eax
sub esp, 0x6b0
mov eax, dword [0x517930]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x694], ecx
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x6ac], 0
cmp dword [ebx + 0x14], 0x10
mov esi, dword [ebx + 0x10]
jb 0x4ac231
mov ecx, dword [ebx]
jmp 0x4ac233
mov ecx, ebx
mov eax, 8
cmp esi, eax
cmovb eax, esi
push eax
push str.S_1_5_18
push ecx
call fcn.004a03c0
add esp, 0xc
test eax, eax
jne 0x4ac264
cmp esi, 8
jae 0x4ac25a
or eax, 0xffffffff
jmp 0x4ac262
xor eax, eax
cmp esi, 8
setne al
test eax, eax
sete al
test al, al
jne 0x4ac6db
cmp dword [ebx + 0x14], 0x10
jb 0x4ac279
mov ecx, dword [ebx]
jmp 0x4ac27b
mov ecx, ebx
mov eax, 8
cmp esi, eax
cmovb eax, esi
push eax
push str.S_1_5_19
push ecx
call fcn.004a03c0
add esp, 0xc
test eax, eax
jne 0x4ac2ac
cmp esi, 8
jae 0x4ac2a2
or eax, 0xffffffff
jmp 0x4ac2aa
xor eax, eax
cmp esi, 8
setne al
test eax, eax
sete al
test al, al
jne 0x4ac6db
cmp dword [ebx + 0x14], 0x10
jb 0x4ac2c1
mov eax, dword [ebx]
jmp 0x4ac2c3
mov eax, ebx
cmp esi, 8
mov ecx, 8
cmovb ecx, esi
push ecx
push str.S_1_5_20
push eax
call fcn.004a03c0
add esp, 0xc
test eax, eax
jne 0x4ac2f5
cmp esi, 8
jae 0x4ac2eb
or eax, 0xffffffff
jmp 0x4ac2f3
xor eax, eax
cmp esi, 8
setne al
test eax, eax
sete al
test al, al
jne 0x4ac6db
mov esi, dword [ebp - 0x694]
lea ecx, [ebp - 0x6a8]
push 1
push dword [esi + 0x2c]
call fcn.004b0c00
push ebx
lea eax, [ebp - 0x6b0]
mov dword [ebp - 4], 0
add esi, 0x30
push eax
mov ecx, esi
call fcn.004ae370
mov ecx, dword [eax]
cmp ecx, dword [esi]
je 0x4ac357
add ecx, 0x28
push ecx
mov ecx, edi
call fcn.004aaec0
lea ecx, [ebp - 0x6a8]
mov dword [ebp - 4], 0xffffffff
call fcn.004b0c30
jmp 0x4ac6fb
lea ecx, [ebp - 0x6a8]
mov dword [ebp - 4], 0xffffffff
call fcn.004b0c30
xor eax, eax
mov dword [ebp - 0x62c], 7
mov dword [ebp - 0x630], 0
mov word [ebp - 0x640], ax
push 0xffffffffffffffff
push eax
push ebx
lea ecx, [ebp - 0x658]
mov dword [ebp - 4], 1
mov dword [ebp - 0x644], 0xf
mov dword [ebp - 0x648], eax
mov byte [ebp - 0x658], al
call fcn.004a0700
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [ebp - 0x658]
mov byte [ebp - 4], 2
call fcn.004a0588
cmp dword [ebp - 0x644], 0x10
lea ecx, [ebp - 0x698]
lea eax, [ebp - 0x658]
cmovae eax, dword [ebp - 0x658]
push ecx
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4ac4e9
mov word [ebp - 0x628], ax
mov dword [ebp - 0x68c], eax
lea eax, [ebp - 0x690]
push eax
lea eax, [ebp - 0x628]
mov dword [ebp - 0x690], 0x208
push eax
lea eax, [ebp - 0x68c]
push eax
push 0
push str.AppData
push dword [ebp - 0x698]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4ac4ca
cmp dword [ebp - 0x68c], 2
jne 0x4ac471
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x218]
push 0x104
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4ac483
lea eax, [ebp - 0x218]
jmp 0x4ac477
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x640]
call fcn.004ab320
mov eax, dword [ebp - 0x694]
lea ecx, [ebp - 0x6a8]
push 1
push dword [eax + 0x2c]
call fcn.004b0c00
push ebx
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004ab4d0
lea ecx, [ebp - 0x640]
cmp eax, ecx
je 0x4ac4bb
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.004a5ccd
lea ecx, [ebp - 0x6a8]
mov byte [ebp - 4], 2
call fcn.004b0c30
push dword [ebp - 0x698]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x640]
mov ecx, edi
push eax
call fcn.004a9904
jmp 0x4ac5a4
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList_
lea ecx, [ebp - 0x688]
call fcn.004a0551
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp - 0x688]
mov byte [ebp - 4], 4
call fcn.004a05c3
cmp dword [ebp - 0x674], 0x10
lea ecx, [ebp - 0x68c]
lea eax, [ebp - 0x688]
cmovae eax, dword [ebp - 0x688]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4ac6bd
mov dword [ebp - 0x690], eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x69c]
push eax
lea eax, [ebp - 0x628]
mov dword [ebp - 0x69c], 0x208
push eax
lea eax, [ebp - 0x690]
push eax
push 0
push str.ProfileImagePath
push dword [ebp - 0x68c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x68c]
test eax, eax
je 0x4ac5bf
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x640]
mov ecx, edi
push eax
call fcn.004a9904
lea ecx, [ebp - 0x688]
call fcn.004a057e
lea ecx, [ebp - 0x658]
call fcn.004a057e
lea ecx, [ebp - 0x640]
call fcn.004a5aa0
jmp 0x4ac6fb
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x670]
call fcn.004a5a71
mov byte [ebp - 4], 5
call fcn.004ab7d0
push eax
call fcn.004ab710
add esp, 4
lea ecx, [ebp - 0x670]
test al, al
je 0x4ac5fa
push str.AppDataRoaming
jmp 0x4ac5ff
push str.Application_data
call fcn.004ab690
cmp dword [ebp - 0x690], 2
jne 0x4ac655
xor eax, eax
lea ecx, [ebp - 0x218]
cmp dword [ebp - 0x65c], 8
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x670]
cmovae eax, dword [ebp - 0x670]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4ac66b
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x640]
call fcn.004ab320
jmp 0x4ac66b
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x670]
push eax
lea ecx, [ebp - 0x640]
call fcn.004a5ccd
mov eax, dword [ebp - 0x694]
lea ecx, [ebp - 0x6bc]
push 1
push dword [eax + 0x2c]
call fcn.004b0c00
push ebx
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.004ab4d0
lea ecx, [ebp - 0x640]
cmp eax, ecx
je 0x4ac6a3
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.004a5ccd
lea ecx, [ebp - 0x6bc]
mov byte [ebp - 4], 5
call fcn.004b0c30
lea ecx, [ebp - 0x670]
call fcn.004a5aa0
lea ecx, [ebp - 0x688]
call fcn.004a057e
lea eax, [ebp - 0x640]
mov ecx, edi
push eax
call fcn.004a9904
jmp 0x4ac5a4
xor eax, eax
mov dword [edi + 0x14], 7
push eax
mov dword [edi + 0x10], 0
mov ecx, edi
push 0x51110c
mov word [edi], ax
call fcn.004a5e0c
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b5580
mov esp, ebp
pop ebp
ret 8