Function at 0x4ab970
Capabilities:
Get user security identifier
Persist via run registry key
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d051a
mov eax, dword fs:[0]
push eax
sub esp, 0xa50
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 - 0xa28], ecx
mov edi, dword [ebp + 8]
xor eax, eax
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0xa3c], edi
mov dword [ebp - 0xa5c], 0
mov dword [ebp - 0x950], 0xf
mov dword [ebp - 0x954], 0
mov byte [ebp - 0x964], 0
mov dword [ebp - 0x938], 7
mov dword [ebp - 0x93c], 0
mov word [ebp - 0x94c], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x9f8], 7
mov dword [ebp - 0x9fc], eax
mov word [ebp - 0xa0c], ax
mov dword [ebp - 0x9e0], 7
mov dword [ebp - 0x9e4], eax
mov word [ebp - 0x9f4], ax
mov dword [ebp - 0x9c8], 0xf
mov dword [ebp - 0x9cc], eax
mov byte [ebp - 0x9dc], al
lea eax, [ebp - 0xa0c]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x4aba56
push 0xffffffffffffffff
push 0
push ebx
mov ecx, eax
call fcn.004a5ccd
lea eax, [ebp - 0x9f4]
cmp eax, esi
je 0x4aba6c
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.004a5ccd
mov eax, dword [ebp - 0xa28]
lea ecx, [ebp - 0xa38]
push 1
push dword [eax + 0x2c]
call fcn.004b0c00
mov eax, dword [ebp - 0xa28]
lea ecx, [ebp - 0xa0c]
push ecx
add eax, 0x1c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa54]
mov dword [ebp - 0xa2c], eax
push ecx
mov ecx, eax
call fcn.004ae2e0
mov ecx, dword [ebp - 0xa2c]
mov eax, dword [eax]
cmp eax, dword [ecx]
je 0x4abb6e
push 0xffffffffffffffff
lea esi, [eax + 0x58]
mov dword [edi + 0x14], 0xf
push 0
mov dword [edi + 0x10], 0
mov ecx, edi
push esi
mov byte [edi], 0
call fcn.004a0700
lea ecx, [edi + 0x18]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x18]
push eax
mov byte [ebp - 4], 3
call fcn.004a5ccd
lea ecx, [ebp - 0xa38]
mov byte [ebp - 4], 1
call fcn.004b0c30
lea ecx, [ebp - 0xa0c]
call fcn.004ab260
cmp dword [ebp - 0x938], 8
jb 0x4abb31
push dword [ebp - 0x94c]
call fcn.004b557b
add esp, 4
xor eax, eax
mov dword [ebp - 0x938], 7
cmp dword [ebp - 0x950], 0x10
mov dword [ebp - 0x93c], 0
mov word [ebp - 0x94c], ax
jb 0x4ac1bf
push dword [ebp - 0x964]
call fcn.004b557b
add esp, 4
jmp 0x4ac1bf
lea ecx, [ebp - 0xa38]
mov byte [ebp - 4], 1
call fcn.004b0c30
xor eax, eax
mov dword [ebp - 0xa50], 0x104
lea ecx, [ebp - 0xa40]
mov dword [ebp - 0xa4c], 0x208
mov dword [ebp - 0xa40], 0x5c
lea edx, [ecx + 2]
mov dword [ebp - 0x980], 7
mov dword [ebp - 0x984], 0
mov word [ebp - 0x994], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4abbc1
sub ecx, edx
lea eax, [ebp - 0xa40]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x994]
call fcn.004a5e0c
lea eax, [ebp - 0x994]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x9ac]
push ebx
push eax
call fcn.004a9a70
push esi
push eax
lea eax, [ebp - 0x97c]
mov byte [ebp - 4], 5
push eax
call fcn.004a9a40
add esp, 0x18
cmp dword [ebp - 0x998], 8
jb 0x4abc27
push dword [ebp - 0x9ac]
call fcn.004b557b
add esp, 4
xor eax, eax
mov dword [ebp - 0x998], 7
mov dword [ebp - 0x99c], 0
mov word [ebp - 0x9ac], ax
cmp dword [ebp - 0x980], 8
mov byte [ebp - 4], 8
jb 0x4abc5f
push dword [ebp - 0x994]
call fcn.004b557b
add esp, 4
lea ecx, [ebp - 0xa58]
mov dword [ebp - 0x980], 7
push ecx
lea ecx, [ebp - 0xa4c]
mov dword [ebp - 0x984], 0
push ecx
xor eax, eax
lea ecx, [ebp - 0x934]
cmp dword [ebp - 0x968], 8
push ecx
lea ecx, [ebp - 0xa50]
mov word [ebp - 0x994], ax
push ecx
lea ecx, [ebp - 0x31c]
lea eax, [ebp - 0x97c]
cmovae eax, dword [ebp - 0x97c]
push ecx
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x4ac16b
lea eax, [ebp - 0xa48]
push eax
lea eax, [ebp - 0x31c]
push eax
call sub.ADVAPI32.dll_ConvertSidToStringSidA
test eax, eax
je 0x4ac16b
mov edx, dword [ebp - 0xa48]
cmp byte [edx], 0
jne 0x4abcee
xor ecx, ecx
jmp 0x4abcfc
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4abcf3
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x964]
call fcn.004a083c
push dword [ebp - 0xa48]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [ebp - 0xa28]
lea ecx, [ebp - 0xa38]
push 1
push dword [ebx + 0x2c]
call fcn.004b0c00
lea eax, [ebp - 0xa0c]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebx + 0x1c]
call fcn.004ab3b0
mov esi, eax
lea eax, [ebp - 0x964]
cmp esi, eax
je 0x4abd56
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004a0700
lea ecx, [esi + 0x18]
lea eax, [ebp - 0x94c]
cmp ecx, eax
je 0x4abd6d
push 0xffffffffffffffff
push 0
push eax
call fcn.004a5ccd
lea ecx, [ebp - 0xa38]
mov byte [ebp - 4], 8
call fcn.004b0c30
cmp dword [ebp - 0x950], 0x10
lea ecx, [ebp - 0x964]
mov esi, dword [ebp - 0x954]
mov eax, 8
cmovae ecx, dword [ebp - 0x964]
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 0x4abdc7
cmp esi, 8
jae 0x4abdbd
or eax, 0xffffffff
jmp 0x4abdc5
xor eax, eax
cmp esi, 8
setne al
test eax, eax
sete al
test al, al
jne 0x4ac16b
lea eax, [ebp - 0x964]
push str.S_1_5_19
push eax
call fcn.004a62b0
add esp, 8
test al, al
jne 0x4ac16b
lea eax, [ebp - 0x964]
push str.S_1_5_20
push eax
call fcn.004a62b0
add esp, 8
test al, al
jne 0x4ac16b
xor eax, eax
mov dword [ebp - 0x998], 7
mov dword [ebp - 0x99c], 0
mov word [ebp - 0x9ac], ax
lea eax, [ebp - 0x964]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0xa24]
call fcn.004a10af
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [ebp - 0xa24]
mov byte [ebp - 4], 0xb
call fcn.004a0588
cmp dword [ebp - 0xa10], 0x10
lea ecx, [ebp - 0xa44]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 0xa24]
cmovae eax, dword [ebp - 0xa24]
push ecx
push eax
push reloc.WS2_32.dll_closesocket
call esi
test eax, eax
jne 0x4abf6f
mov word [ebp - 0x72c], ax
mov dword [ebp - 0xa28], eax
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x31c]
mov dword [ebp - 0xa2c], 0x208
push eax
lea eax, [ebp - 0xa28]
push eax
push 0
push str.AppData
push dword [ebp - 0xa44]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4abf50
cmp dword [ebp - 0xa28], 2
jne 0x4abefe
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x218]
push 0x104
push eax
lea eax, [ebp - 0x72c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4abf10
lea eax, [ebp - 0x218]
jmp 0x4abf04
lea eax, [ebp - 0x72c]
push eax
lea ecx, [ebp - 0x94c]
call fcn.004ab320
push 1
push dword [ebx + 0x2c]
lea ecx, [ebp - 0xa38]
call fcn.004b0c00
lea eax, [ebp - 0x964]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0xa0c]
push eax
lea ecx, [ebx + 0x1c]
call fcn.004ab3b0
mov ecx, eax
call fcn.004ab370
lea ecx, [ebp - 0xa38]
mov byte [ebp - 4], 0xb
call fcn.004b0c30
push dword [ebp - 0xa44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x964]
mov ecx, edi
push eax
call fcn.004ab060
jmp 0x4ac02c
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList_
lea ecx, [ebp - 0x994]
call fcn.004a0551
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x964]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x994]
call fcn.004a05c3
cmp dword [ebp - 0x980], 0x10
lea ecx, [ebp - 0xa28]
lea eax, [ebp - 0x994]
cmovae eax, dword [ebp - 0x994]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x4ac149
mov dword [ebp - 0xa2c], eax
mov word [ebp - 0x72c], ax
lea eax, [ebp - 0xa3c]
push eax
lea eax, [ebp - 0x72c]
mov dword [ebp - 0xa3c], 0x208
push eax
lea eax, [ebp - 0xa2c]
push eax
push 0
push str.ProfileImagePath
push dword [ebp - 0xa28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xa28]
test eax, eax
je 0x4ac052
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x964]
mov ecx, edi
push eax
call fcn.004ab060
lea ecx, [ebp - 0x994]
call fcn.004a057e
lea ecx, [ebp - 0xa24]
call fcn.004a057e
lea ecx, [ebp - 0x9ac]
call fcn.004a5aa0
lea ecx, [ebp - 0x97c]
call fcn.004a5aa0
jmp 0x4ac1a9
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x72c]
push eax
lea ecx, [ebp - 0x9c4]
call fcn.004a5a71
mov byte [ebp - 4], 0xe
call fcn.004ab7d0
push eax
call fcn.004ab710
add esp, 4
lea ecx, [ebp - 0x9c4]
test al, al
je 0x4ac08d
push str.AppDataRoaming
jmp 0x4ac092
push str.Application_data
call fcn.004ab690
cmp dword [ebp - 0xa2c], 2
jne 0x4ac0e8
xor eax, eax
lea ecx, [ebp - 0x218]
cmp dword [ebp - 0x9b0], 8
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x9c4]
cmovae eax, dword [ebp - 0x9c4]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4ac0fe
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x94c]
call fcn.004ab320
jmp 0x4ac0fe
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x9c4]
push eax
lea ecx, [ebp - 0x94c]
call fcn.004a5ccd
push 1
push dword [ebx + 0x2c]
lea ecx, [ebp - 0xa38]
call fcn.004b0c00
lea eax, [ebp - 0x964]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0xa0c]
push eax
lea ecx, [ebx + 0x1c]
call fcn.004ab3b0
mov ecx, eax
call fcn.004ab370
lea ecx, [ebp - 0xa38]
mov byte [ebp - 4], 0xe
call fcn.004b0c30
lea ecx, [ebp - 0x9c4]
call fcn.004a5aa0
lea ecx, [ebp - 0x994]
mov byte [ebp - 4], 0xb
call fcn.004a057e
lea eax, [ebp - 0x964]
mov ecx, edi
push eax
call fcn.004ab060
jmp 0x4ac02c
lea eax, [ebp - 0x964]
mov ecx, edi
push eax
call fcn.004ab060
cmp dword [ebp - 0x968], 8
jb 0x4ac190
push dword [ebp - 0x97c]
call fcn.004b557b
add esp, 4
xor eax, eax
mov dword [ebp - 0x968], 7
mov dword [ebp - 0x96c], eax
mov word [ebp - 0x97c], ax
lea ecx, [ebp - 0xa0c]
call fcn.004ab260
lea ecx, [ebp - 0x964]
call fcn.004ab2d0
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 0xc