Function at 0x1001b970
Capabilities:
Persist via run registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x113c
call fcn.10033810
mov eax, dword [0x10042074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push dword [ebp + 0xc]
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
push 0x100
lea eax, [ebp - 0x104]
mov dword [ebp - 0x1108], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x1108]
xor esi, esi
push eax
mov dword [ebp - 0x1114], esi
mov dword [ebp - 0x1110], esi
call fcn.1001dc30
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x1c
test eax, eax
jne 0x1001ba16
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.1001d9e0
add esp, 8
test eax, eax
je 0x1001bd8d
lea ecx, [ebp - 0x104]
mov edx, ebx
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x1001ba04
jmp 0x1001bd8d
lea eax, [ebp - 0x1124]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionProfileList
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1001bcfc
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1134]
mov dword [ebp - 0x1134], 0x104
push eax
lea eax, [ebp - 0x208]
push eax
push dword [ebp - 0x1110]
push dword [ebp - 0x1124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push dword [ebp - 0x1124]
test eax, eax
jne 0x1001bcfa
call edi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x608]
push str.SoftwareMicrosoftWindows_NTCurrentVersionProfileList_s
push eax
call fcn.1001a8c0
add esp, 0xc
lea eax, [ebp - 0x1120]
push eax
lea eax, [ebp - 0x608]
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1001bca5
mov dword [ebp - 0x111c], eax
lea eax, [ebp - 0x111c]
push eax
lea eax, [ebp - 0x1130]
push eax
lea eax, [ebp - 0x1128]
push eax
push 0
push 0x1003a0cc
push dword [ebp - 0x1120]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x111c]
test eax, eax
je 0x1001bc99
push eax
call sub.mfc140.dll_Ordinal_265
add esp, 4
mov esi, eax
lea eax, [ebp - 0x111c]
mov dword [ebp - 0x1118], esi
push eax
push esi
lea eax, [ebp - 0x1128]
push eax
push 0
push 0x1003a0cc
push dword [ebp - 0x1120]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x1108]
mov ecx, esi
mov esi, dword [ebp - 0x111c]
mov edx, dword [eax]
sub esi, 4
jb 0x1001bb48
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1001bb51
add ecx, 4
add edx, 4
sub esi, 4
jae 0x1001bb37
cmp esi, 0xfffffffc
je 0x1001bccc
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1001bb8e
cmp esi, 0xfffffffd
je 0x1001bccc
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1001bb8e
cmp esi, 0xfffffffe
je 0x1001bccc
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1001bb8e
cmp esi, 0xffffffff
je 0x1001bccc
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x1001bccc
lea eax, [ebp - 0x1138]
mov dword [ebp - 0x110c], 0
push eax
lea eax, [ebp - 0x110c]
mov dword [ebp - 0x1138], 4
push eax
lea eax, [ebp - 0x1128]
mov dword [ebp - 0x1128], 4
push eax
push 0
push str.RefCount
push dword [ebp - 0x1120]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001bc85
cmp dword [ebp - 0x110c], eax
jbe 0x1001bc85
lea eax, [ebp - 0x113c]
push eax
lea eax, [ebp - 0x208]
push eax
push reloc.WSOCK32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1001bc85
lea ecx, [ebp - 0x208]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001bc12
sub ecx, edx
cmp ecx, 0x14
jbe 0x1001bc7d
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0xd04]
push str._sSoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push eax
call fcn.1001a8c0
push 0x400
lea eax, [ebp - 0x1104]
push eax
push str.Personal
lea eax, [ebp - 0xd04]
push eax
push reloc.WSOCK32.dll_closesocket
call fcn.1001e740
add esp, 0x20
test eax, eax
je 0x1001bc7d
lea ecx, [ebp - 0x208]
mov edx, ebx
mov eax, ecx
sub edx, eax
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x1001bc70
push dword [ebp - 0x113c]
call edi
mov esi, dword [ebp - 0x1114]
push dword [ebp - 0x1118]
call sub.mfc140.dll_Ordinal_266
add esp, 4
push dword [ebp - 0x1120]
call edi
test esi, esi
jne 0x1001bcfc
inc dword [ebp - 0x1110]
lea eax, [ebp - 0x1124]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionProfileList
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x1001ba35
jmp 0x1001bcfc
lea ecx, [ebp - 0x208]
mov edx, ebx
mov eax, ecx
sub edx, eax
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x1001bce0
mov esi, 1
mov dword [ebp - 0x1114], esi
jmp 0x1001bc8b
call edi
push dword [ebp - 0x1108]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
jne 0x1001bd8d
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.1001d9e0
add esp, 8
test eax, eax
je 0x1001bd8d
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0xd04]
push str._sSoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push eax
call fcn.1001a8c0
push 0x400
lea eax, [ebp - 0x1104]
push eax
push str.Personal
lea eax, [ebp - 0xd04]
push eax
push reloc.WSOCK32.dll_closesocket
call fcn.1001e740
add esp, 0x20
test eax, eax
je 0x1001bd8d
lea ecx, [ebp - 0x104]
mov edx, ebx
mov eax, ecx
sub edx, eax
nop word [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x1001bd80
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001bd92
sub ecx, edx
je 0x1001be3b
push ebx
lea eax, [ebp - 0xd04]
push str._sSoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push eax
call fcn.1001a8c0
push 0x400
xor esi, esi
lea eax, [ebp - 0x904]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [ebp - 0x1108]
push eax
lea eax, [ebp - 0xd04]
push eax
push reloc.WSOCK32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov eax, dword [ebp - 0x1108]
test eax, eax
je 0x1001be3b
lea ecx, [ebp - 0x110c]
mov dword [ebp - 0x110c], 0x400
push ecx
lea ecx, [ebp - 0x904]
push ecx
lea ecx, [ebp - 0x1118]
push ecx
push esi
push str.Personal
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x110c], esi
je 0x1001be2b
test eax, eax
mov eax, 1
cmove esi, eax
push dword [ebp - 0x1108]
call edi
test esi, esi
jne 0x1001bf9b
lea eax, [ebp - 0x112c]
push eax
push str.SoftwareMicrosoftProtected_Storage_System_Provider
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1001bfb1
xor edi, edi
mov dword [ebp - 0x1108], 0x400
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x1108]
push eax
lea eax, [ebp - 0x904]
push eax
push edi
push dword [ebp - 0x112c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x1001bf81
nop dword [eax]
lea eax, [ebp - 0x904]
push eax
lea eax, [ebp - 0xd04]
push str._sSoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push eax
call fcn.1001a8c0
push 0x400
xor esi, esi
lea eax, [ebp - 0x504]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [ebp - 0x1110]
push eax
lea eax, [ebp - 0xd04]
push eax
push reloc.WSOCK32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov eax, dword [ebp - 0x1110]
test eax, eax
je 0x1001bf30
lea ecx, [ebp - 0x110c]
mov dword [ebp - 0x110c], 0x400
push ecx
lea ecx, [ebp - 0x504]
push ecx
lea ecx, [ebp - 0x1118]
push ecx
push esi
push str.Personal
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x110c], esi
je 0x1001bf20
test eax, eax
mov eax, 1
cmove esi, eax
push dword [ebp - 0x1110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1001bf68
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1108]
mov dword [ebp - 0x1108], 0x400
push eax
lea eax, [ebp - 0x904]
inc edi
push eax
push edi
push dword [ebp - 0x112c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x1001be90
jmp 0x1001bf81
lea ecx, [ebp - 0x904]
mov edx, ebx
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x1001bf74
push dword [ebp - 0x112c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x1001bf90
sub ebx, ecx
je 0x1001bfb1
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100337f6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100337f6
mov esp, ebp
pop ebp
ret