Function at 0x446bf0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x2b0
mov ecx, dword [ebp + 8]
mov eax, dword [0x5c4738]
xor eax, ebp
mov dword [esp + 0x2a8], eax
mov esi, dword [ecx]
mov edi, dword [ecx + 4]
cmp edi, esi
je 0x446c44
cmp byte [edi - 1], 0
jns 0x446c2a
push dword [edi - 0xc]
call fcn.004cf0d6
add esp, 4
lea ebx, [edi - 0x18]
cmp byte [edi - 0xd], 0
jns 0x446c3e
push dword [edi - 0x18]
call fcn.004cf0d6
add esp, 4
mov edi, ebx
cmp esi, ebx
jne 0x446c19
mov eax, dword [ebp + 8]
mov dword [eax + 4], esi
lea esi, [esp + 0x60]
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi - 4], esi
lea edi, [esp + 0x5c]
mov ecx, edi
push ebx
call fcn.0040e060
mov dword [edi + 8], ebx
mov dword [edi], esi
mov dword [edi + 4], ebx
lea esi, [esp + 0xa0]
mov dword [esi], ebx
push esi
push 0x20219
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x446c97
mov ebx, dword [esp + 0xa0]
jne 0x446ce0
push 0x208
push 0xff
push esi
call fcn.004d5a00
add esp, 0xc
lea eax, [esp + 0x98]
mov dword [eax], 0x104
xor ecx, ecx
dec ecx
lea edx, [esp + 0x88]
mov dword [edx], ecx
mov dword [edx + 4], ecx
xor edi, edi
push edx
push edi
push edi
push edi
push eax
push esi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x44739e
test ebx, ebx
je 0x446ceb
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x6c]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax - 4], eax
mov edi, dword [esp + 0x5c]
lea eax, [esp + 0x60]
cmp edi, eax
je 0x447301
lea ebx, [esp + 0x78]
lea esi, [edi + 0x10]
xor eax, eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb0], eax
xorps xmm0, xmm0
movaps xmmword [esp + 0xa0], xmm0
push 0x20
call fcn.004cf0a6
add esp, 4
mov dword [esp + 0x88], eax
mov dword [esp + 0x90], 0x80000010
mov dword [esp + 0x8c], 0xc
movsd xmm0, qword [0x588b1c]
movsd qword [eax + 0x10], xmm0
movups xmm0, xmmword [str.LOCALAPPDATA]
movups xmmword [eax], xmm0
mov word [eax + 0x18], 0
mov ecx, ebx
push esi
call fcn.0040f3e0
mov ecx, ebx
push str.Volatile_Environment
call fcn.0041e580
mov ecx, 0x80000003
mov edx, eax
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.0044a460
add esp, 8
mov ebx, eax
cmp byte [esp + 0x83], 0
jns 0x446dba
push dword [esp + 0x78]
call fcn.004cf0d6
add esp, 4
cmp byte [esp + 0x93], 0
jns 0x446dd3
push dword [esp + 0x88]
call fcn.004cf0d6
add esp, 4
test bl, bl
jne 0x446e44
cmp byte [esp + 0xb7], 0
lea ebx, [esp + 0x78]
jns 0x446df4
push dword [esp + 0xac]
call fcn.004cf0d6
add esp, 4
cmp byte [esp + 0xab], 0
jns 0x446e0d
push dword [esp + 0xa0]
call fcn.004cf0d6
add esp, 4
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x446e1e
mov eax, ecx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x446e14
jmp 0x446e34
mov eax, dword [edi + 8]
cmp dword [eax], edi
je 0x446e34
add edi, 8
mov ecx, dword [edi]
lea edi, [ecx + 8]
mov eax, dword [ecx + 8]
cmp dword [eax], ecx
jne 0x446e28
mov edi, eax
lea ecx, [esp + 0x60]
cmp eax, ecx
jne 0x446d0d
jmp 0x446ea4
lea ecx, [esp + 0xa0]
push esi
call fcn.004c5e90
mov dword [esp + 0x78], esi
lea ecx, [esp + 0x68]
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x7c]
push eax
push 0x591e70
push esi
lea eax, [esp + 0x98]
push eax
call fcn.0054fb00
mov ebx, dword [esp + 0x88]
lea ecx, [ebx + 0x1c]
lea eax, [esp + 0xa0]
push eax
call fcn.004c5e90
add ebx, 0x28
mov ecx, ebx
lea eax, [esp + 0xac]
push eax
call fcn.004c5e90
jmp 0x446dd7
mov ebx, dword [esp + 0x5c]
lea eax, [esp + 0x60]
cmp ebx, eax
lea esi, [esp + 0xa0]
je 0x447301
lea edi, [ebx + 0x10]
lea ecx, [esp + 0x68]
push edi
push esi
call fcn.0054f7c0
xor ecx, ecx
lea eax, [esp + 0x6c]
cmp dword [esp + 0xa0], eax
je 0x446f0e
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x446ee9
mov eax, ecx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x446edf
jmp 0x446eff
mov eax, dword [ebx + 8]
cmp dword [eax], ebx
je 0x446eff
add ebx, 8
mov ecx, dword [ebx]
lea ebx, [ecx + 8]
mov eax, dword [ecx + 8]
cmp dword [eax], ecx
jne 0x446ef3
mov ebx, eax
lea ecx, [esp + 0x60]
cmp eax, ecx
jne 0x446ebb
jmp 0x447301
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x30], edi
mov ecx, edi
xor edi, edi
lea edx, [esp + 0x88]
call fcn.0054f8e0
test al, al
je 0x447296
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb0], edi
xorps xmm0, xmm0
movaps xmmword [esp + 0xa0], xmm0
mov esi, dword [esp + 0x68]
lea eax, [esp + 0x6c]
cmp esi, eax
mov edx, 0
je 0x4472bf
lea ecx, [esi + 0x10]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x78], edx
mov dword [esp + 0x80], edx
lea edi, [esp + 0x78]
mov edx, edi
call fcn.0054f8e0
mov ecx, 7
test al, al
je 0x4471b4
lea eax, [esi + 0x28]
movzx edx, byte [esp + 0x83]
test dl, dl
cmovs edx, dword [esp + 0x7c]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x78]
cmovns edx, edi
mov dword [esp + 0x1c], edx
movzx edx, byte [esi + 0x33]
test dl, dl
js 0x446fc8
mov dword [esp + 0x18], edx
mov edi, eax
jmp 0x446fd2
mov edi, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x18], edx
xor edx, edx
cmp dword [esp + 0xc], 0
je 0x4470f8
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x18]
cmp edi, dword [esp + 0xc]
jl 0x4471b6
mov ecx, dword [esp + 0x1c]
movzx ecx, word [ecx]
mov word [esp + 0x12], cx
mov ecx, dword [esp + 0x14]
lea edx, [ecx + edi*2]
add edx, 0xfffffffe
mov dword [esp + 0x24], edx
mov ecx, dword [esp + 0xc]
lea edx, [ecx - 1]
mov dword [esp + 0x28], edx
mov edx, edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 8], edi
mov edi, ecx
mov ecx, edx
sub ecx, edi
inc ecx
je 0x4470c4
mov edi, dword [esp + 0x28]
sub edi, edx
xor ecx, ecx
movzx edx, word [esp + 0x12]
mov eax, dword [esp + 8]
cmp word [eax + ecx], dx
je 0x447050
add ecx, 2
inc edi
jne 0x44703e
jmp 0x4470c4
mov eax, dword [esp + 8]
add eax, ecx
mov dword [esp + 0x2c], eax
mov edx, 0
je 0x4470c6
mov eax, dword [esp + 0x1c]
movzx edi, word [esp + 0x12]
cmp di, word [eax]
jne 0x4470a4
xor edi, edi
inc edi
cmp dword [esp + 0xc], edi
je 0x4470d0
mov eax, dword [esp + 0x2c]
movzx eax, word [eax + edi*2]
mov word [esp + 0x10], ax
lea eax, [edi + 1]
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x1c]
movzx eax, word [esp + 0x10]
cmp ax, word [edx + edi*2]
mov edx, 0
mov edi, dword [esp + 0x34]
je 0x447072
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 8]
sub edx, eax
lea edi, [eax + ecx]
add edi, 2
sub edx, ecx
sar edx, 1
mov ecx, dword [esp + 0xc]
cmp edx, ecx
jge 0x447020
xor edx, edx
mov ecx, 7
jmp 0x4471b6
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
lea eax, [edi + eax*2]
sub eax, dword [esp + 8]
cmp eax, ecx
je 0x4470c6
sub edi, dword [esp + 8]
cmp edi, ecx
mov ecx, 7
mov eax, dword [esp + 0x20]
jne 0x4471b6
mov edx, eax
xor eax, eax
dec eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
lea eax, [esi + 0x34]
lea ecx, [esp + 0x50]
push eax
xor edi, edi
dec edi
push edi
push dword [esp + 0x14]
push edx
call fcn.00418b90
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x8c]
push eax
lea edi, [esp + 0x4c]
push edi
call fcn.0044b150
add esp, 0xc
movzx eax, byte [esp + 0x4f]
mov edx, edi
test al, al
jns 0x447158
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
lea edi, [esp + 0x38]
mov ecx, edi
push eax
push edx
call fcn.004cae90
push edi
call fcn.0042fa90
add esp, 4
mov byte [esp + 8], al
mov ecx, edi
call fcn.004c5e70
xor ecx, ecx
cmp byte [esp + 8], 0
jne 0x447219
cmp byte [esp + 0x4f], 0
jns 0x44719d
push dword [esp + 0x44]
mov edi, ecx
call fcn.004cf0d6
mov ecx, edi
add esp, 4
cmp byte [esp + 0x5b], 0
jns 0x4471b4
push dword [esp + 0x50]
mov edi, ecx
call fcn.004cf0d6
mov ecx, edi
add esp, 4
xor edx, edx
cmp byte [esp + 0x83], 0
jns 0x4471d2
push dword [esp + 0x78]
mov edi, ecx
call fcn.004cf0d6
mov ecx, edi
xor edx, edx
add esp, 4
cmp ecx, 7
je 0x4471df
test ecx, ecx
jne 0x4472a6
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4471f0
mov eax, ecx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x4471e6
jmp 0x447206
mov eax, dword [esi + 8]
cmp dword [eax], esi
je 0x447206
add esi, 8
mov ecx, dword [esi]
lea esi, [ecx + 8]
mov eax, dword [ecx + 8]
cmp dword [eax], ecx
jne 0x4471fa
mov esi, eax
lea ecx, [esp + 0x6c]
cmp eax, ecx
jne 0x446f6d
jmp 0x4472a6
lea ecx, [esp + 0xa0]
mov edi, dword [esp + 0x30]
push edi
call fcn.004c5e90
lea ecx, [esp + 0xac]
lea eax, [esp + 0x44]
push eax
call fcn.004c5e90
mov dword [esp + 0x98], edi
lea ecx, [esp + 0x68]
lea eax, [esp + 0x9c]
push eax
lea eax, [esp + 0x9c]
push eax
push 0x591e70
push edi
lea eax, [esp + 0x48]
push eax
call fcn.0054fb00
mov edi, dword [esp + 0x38]
lea ecx, [edi + 0x1c]
lea eax, [esp + 0xa0]
push eax
call fcn.004c5e90
add edi, 0x28
mov ecx, edi
lea eax, [esp + 0xac]
push eax
call fcn.004c5e90
mov ecx, 6
jmp 0x447186
cmp byte [esp + 0x93], 0
jns 0x446ed8
jmp 0x4472ed
cmp byte [esp + 0xb7], 0
jns 0x4472bf
push dword [esp + 0xac]
call fcn.004cf0d6
add esp, 4
cmp byte [esp + 0xab], 0
jns 0x4472d8
push dword [esp + 0xa0]
call fcn.004cf0d6
add esp, 4
cmp byte [esp + 0x93], 0
lea esi, [esp + 0xa0]
jns 0x446ed8
push dword [esp + 0x88]
call fcn.004cf0d6
add esp, 4
jmp 0x446ed8
mov esi, dword [esp + 0x68]
lea eax, [esp + 0x6c]
cmp esi, eax
mov ebx, dword [ebp + 8]
je 0x447370
lea eax, [esi + 0x1c]
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 8]
je 0x447337
mov ecx, edi
push eax
call fcn.0040f3e0
lea ecx, [edi + 0xc]
lea eax, [esi + 0x28]
push eax
call fcn.0040f3e0
add edi, 0x18
mov dword [ebx + 4], edi
jmp 0x44733f
mov ecx, ebx
push eax
call fcn.00493070
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x447350
mov eax, ecx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x447346
jmp 0x447366
mov eax, dword [esi + 8]
cmp dword [eax], esi
je 0x447366
add esi, 8
mov ecx, dword [esi]
lea esi, [ecx + 8]
mov eax, dword [ecx + 8]
cmp dword [eax], ecx
jne 0x44735a
mov esi, eax
lea ecx, [esp + 0x6c]
cmp eax, ecx
jne 0x447310
lea ecx, [esp + 0x68]
push dword [ecx + 4]
call fcn.00450110
lea ecx, [esp + 0x5c]
push dword [ecx + 4]
call fcn.0040e060
mov ecx, dword [esp + 0x2a8]
xor ecx, ebp
call fcn.004d25a3
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
inc eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x70], edi
push esi
call fcn.004d00f2
add esp, 4
cmp eax, 0x7ffffff0
jae 0x4476ae
mov ebx, eax
cmp eax, 5
jb 0x4473ff
lea esi, [ebx + 8]
and esi, 0xfffffff8
lea eax, [esi + esi]
push eax
call fcn.004cf0a6
add esp, 4
mov edi, eax
mov dword [esp + 0x68], eax
or esi, 0x80000000
mov dword [esp + 0x70], esi
lea esi, [esp + 0xa0]
mov dword [esp + 0x6c], ebx
jmp 0x44740b
mov byte [esp + 0x73], bl
lea edi, [esp + 0x68]
test ebx, ebx
je 0x44741a
mov eax, ebx
add eax, ebx
push eax
push esi
push edi
call fcn.004d4f00
add esp, 0xc
mov word [edi + ebx*2], 0
cmp byte [esp + 0x73], 0
lea eax, [esp + 0x68]
jns 0x44742f
mov eax, dword [esp + 0x68]
mov dword [esp + 0x88], 0
lea ecx, [esp + 0x88]
push ecx
push eax
call sub.ADVAPI32.dll_ConvertStringSidToSidW
xor ebx, ebx
test eax, eax
je 0x4474a3
mov edi, dword [esp + 0x88]
test edi, edi
je 0x4474a3
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x44], eax
push eax
lea ecx, [esp + 0x48]
push ecx
push eax
lea ecx, [esp + 0x5c]
push ecx
push eax
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
jne 0x447487
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x44749a
cmp dword [esp + 0x44], 0
je 0x44749a
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x44759a
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp byte [esp + 0x73], 0
jns 0x4474b6
push dword [esp + 0x68]
call fcn.004cf0d6
add esp, 4
test bl, bl
mov edi, 0
jne 0x44752b
push 0x208
push 0xff
push esi
call fcn.004d5a00
add esp, 0xc
mov dword [esp + 0x98], 0x104
xor eax, eax
dec eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x88]
push eax
push edi
push edi
push edi
lea eax, [esp + 0xa8]
push eax
push esi
mov esi, dword [esp + 0x20]
push esi
mov ebx, dword [esp + 0x28]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc esi
mov dword [esp + 8], esi
lea esi, [esp + 0xa0]
test eax, eax
je 0x4473a9
jmp 0x446ce0
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], edi
mov dword [esp + 0x90], edi
push esi
call fcn.004d00f2
add esp, 4
cmp eax, 0x7ffffff0
jae 0x4476b7
mov ebx, eax
cmp eax, 5
jb 0x44764d
lea esi, [ebx + 8]
and esi, 0xfffffff8
lea eax, [esi + esi]
push eax
call fcn.004cf0a6
add esp, 4
mov edi, eax
mov dword [esp + 0x88], eax
or esi, 0x80000000
mov dword [esp + 0x90], esi
lea esi, [esp + 0xa0]
mov dword [esp + 0x8c], ebx
jmp 0x44765f
xor ebx, ebx
dec ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
lea ecx, [esp + 0x88]
push eax
call fcn.0054f9e0
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
lea ecx, [esp + 0x78]
push dword [esp + 0x44]
call fcn.0054f9e0
mov dword [esp + 0x38], ebx
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x80]
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x98]
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
setne bl
cmp dword [esp + 0x38], 1
sete byte [esp + 0x10]
mov eax, dword [esp + 0x78]
test eax, eax
je 0x447629
mov dword [esp + 0x7c], eax
push eax
call fcn.004cf0d6
add esp, 4
mov eax, dword [esp + 0x88]
test eax, eax
je 0x447644
mov dword [esp + 0x8c], eax
push eax
call fcn.004cf0d6
add esp, 4
and bl, byte [esp + 0x10]
jmp 0x44749c
mov byte [esp + 0x93], bl
lea edi, [esp + 0x88]
test ebx, ebx
je 0x44766e
mov eax, ebx
add eax, ebx
push eax
push esi
push edi
call fcn.004d4f00
add esp, 0xc
mov word [edi + ebx*2], 0
lea ecx, [esp + 0x5c]
lea eax, [esp + 0x88]
push eax
push eax
lea eax, [esp + 0x80]
push eax
call fcn.0054fa40
cmp byte [esp + 0x93], 0
jns 0x4476a7
push dword [esp + 0x88]
call fcn.004cf0d6
add esp, 4
xor edi, edi
jmp 0x4474bf
lea ecx, [esp + 0x68]
call fcn.004fc800
lea ecx, [esp + 0x88]
call fcn.004fc800
int3