Function at 0x403385
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x145c
call fcn.0040c4a0
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x50], ebx
lea edi, [esp + 0x54]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea esi, [esp + 0x30]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x30], ebx
stosd dword es:[edi], eax
call fcn.00407f7a
test eax, eax
je 0x4033d1
lea eax, [esp + 0x1c]
push eax
push 4
lea eax, [esp + 0x58]
push eax
push ebx
call dword [esp + 0x44]
jmp 0x4033d4
or eax, 0xffffffff
cmp eax, ebx
jne 0x403646
lea eax, [esp + 0x10]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionProfileList
push 0x80000002
call fcn.0040aecb
add esp, 0xc
test eax, eax
jne 0x403630
mov edi, 0x1fe
push edi
lea eax, [esp + 0x6e]
push ebx
push eax
mov dword [esp + 0x24], ebx
mov word [esp + 0x74], bx
call sub.msvcrt.dll_memset
lea eax, [esp + 0x74]
push eax
push ebx
push dword [esp + 0x24]
call fcn.0040aee5
add esp, 0x18
jmp 0x403602
mov esi, 0x3ff
push esi
lea eax, [esp + 0x86d]
push ebx
push eax
mov byte [esp + 0x874], bl
call sub.msvcrt.dll_memset
push edi
lea eax, [esp + 0x47a]
push ebx
push eax
mov word [esp + 0x480], bx
call sub.msvcrt.dll_memset
push 0x7fe
lea eax, [esp + 0xc86]
push ebx
push eax
mov word [esp + 0xc8c], bx
call sub.msvcrt.dll_memset
lea eax, [esp + 0x8c]
push eax
push str.RasDialParams__s0
lea eax, [esp + 0xc94]
push esi
push eax
call sub.msvcrt.dll__snwprintf
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0xa0]
push eax
push dword [esp + 0x4c]
mov dword [esp + 0x6c], esi
xor esi, esi
call fcn.0040aecb
add esp, 0x40
test eax, eax
jne 0x4035c4
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x86c]
push eax
lea eax, [esp + 0x50]
push eax
push ebx
push 0x40dacc
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4034e2
inc esi
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x4035c4
mov eax, 0xff
push edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x26e]
push ebx
push eax
mov word [esp + 0x274], bx
call sub.msvcrt.dll_memset
push edi
lea eax, [esp + 0x67a]
push ebx
push eax
mov word [esp + 0x680], bx
call sub.msvcrt.dll_memset
add esp, 0x18
lea esi, [esp + 0x14]
mov dword [esp + 0x14], ebx
call fcn.0040a388
test eax, eax
je 0x403580
push str.LookupAccountSidW
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x403580
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x670]
push ecx
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x278]
push ecx
lea ecx, [esp + 0x87c]
push ecx
push ebx
call eax
cmp word [esp + 0x268], bx
je 0x4035b4
lea eax, [esp + 0x268]
push eax
lea eax, [esp + 0x66c]
push eax
push str._s_s
lea eax, [esp + 0x474]
push 0xff
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x14
cmp dword [esp + 0x14], ebx
je 0x4035c4
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esp + 0x468]
push eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0xc70]
push eax
push dword [esp + 0x28]
lea eax, [esp + 0x40]
push dword [ebp + 8]
call fcn.004032c9
inc dword [esp + 0x18]
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x18]
call fcn.0040aee5
add esp, 0xc
test eax, eax
je 0x40342c
mov eax, 0x40d3d0
push eax
push eax
push str.L__RasDefaultCredentials0
push dword [esp + 0x28]
lea eax, [esp + 0x40]
push dword [ebp + 8]
call fcn.004032c9
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x1c]
lea esi, [esp + 0x30]
call fcn.00407f7a
test eax, eax
je 0x403646
push edi
call dword [esp + 0x40]
cmp dword [esp + 0x30], ebx
je 0x403656
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4