Function at 0x466f80
Capabilities:
Get session user name
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5511d9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x784
mov eax, dword [0x5b5ecc]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
mov ecx, dword [str.GrabberData]
mov edx, dword [0x59ec44]
mov eax, dword [0x59ec48]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x13c]
push ecx
push edx
mov dword [ebp - 0x28], eax
mov eax, dword [0x5ba8bc]
push 0
push 0
push str.TempPath
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x467062
lea ecx, [ebp - 0x13c]
push ecx
call fcn.0051f193
add esp, 4
test eax, eax
jne 0x467062
lea edi, [ebp - 0x13c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ebp + ecx - 0x13d], 0x5c
je 0x467099
mov edi, 0x598f5c
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x13c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x467099
lea eax, [ebp - 0x13c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x467099
lea ecx, [ebp - 0x13c]
push 0x5c
push ecx
call fcn.0051c7b0
add esp, 8
test eax, eax
je 0x467099
mov byte [eax], 0
lea edx, [ebp - 0x13c]
push 0x7e
push edx
call fcn.0051c7f0
add esp, 8
test eax, eax
je 0x467115
lea eax, [ebp - 0x13c]
lea ecx, [ebp - 0x20]
push eax
call fcn.00537b72
push ecx
lea edx, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x24], esp
push edx
mov byte [ebp - 4], 2
call fcn.00537879
lea eax, [ebp - 0x24]
push eax
call fcn.00426b90
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x13c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x24]
call fcn.00537b04
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00537b04
lea edi, [ebp - 0x13c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ebp + ecx - 0x13d], 0x5c
je 0x46715f
mov edi, 0x598f5c
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x13c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x690]
lea ecx, [ebp - 0x790]
push eax
lea edx, [ebp - 0x488]
push ecx
lea eax, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x13c]
push eax
push ecx
call fcn.0051d13a
add esp, 0x14
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x488]
lea ecx, [ebp - 0x18]
push edx
push eax
push ecx
lea edx, [ebp - 0x13c]
push str._s_s_s_
push edx
call fcn.0051d0e8
lea eax, [ebp - 0x13c]
push eax
call fcn.0051e372
add esp, 0x18
test eax, eax
je 0x467265
call fcn.0051ec14
cmp dword [eax], 0xd
je 0x467265
call fcn.0051ec14
cmp dword [eax], 0x11
je 0x467265
mov esi, dword [0x5bb1dc]
call fcn.0051ec14
mov ecx, dword [eax]
lea edx, [ebp - 0x13c]
push ecx
push edx
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.0053091a
add esp, 0x10
lea ecx, [ebp - 0x388]
call fcn.00459300
mov ecx, dword [ebp - 0x14]
push 1
push ecx
lea ecx, [ebp - 0x388]
mov byte [ebp - 4], 3
call fcn.004593e0
mov edx, dword [0x5bb1d8]
mov eax, dword [ebp - 0x14]
push 0x50030
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x388]
call fcn.004593d0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00537b04
mov eax, 0x7546
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x17c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x46728e
lea eax, [ebp - 0x17c]
push str.default_user
push eax
call fcn.0051d0e8
add esp, 8
lea edi, [ebp - 0x17c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4672fa
lea ecx, [ebp - 0x17c]
lea edx, [ebp - 0x30]
push ecx
lea eax, [ebp - 0x488]
push edx
lea ecx, [ebp - 0x18]
push eax
push ecx
lea edx, [ebp - 0x13c]
push str._s_s_s_s_
push edx
call fcn.0051d0e8
lea eax, [ebp - 0x13c]
push eax
call fcn.0051e372
add esp, 0x1c
test eax, eax
je 0x4673aa
call fcn.0051ec14
cmp dword [eax], 0xd
je 0x4673aa
call fcn.0051ec14
cmp dword [eax], 0x11
je 0x4673aa
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x488]
push ecx
lea eax, [ebp - 0x18]
push edx
push eax
lea ecx, [ebp - 0x13c]
push str._s_s_sdefault_user_
push ecx
call fcn.0051d0e8
lea edx, [ebp - 0x13c]
push edx
call fcn.0051e372
add esp, 0x18
test eax, eax
je 0x4673aa
call fcn.0051ec14
cmp dword [eax], 0xd
je 0x4673aa
call fcn.0051ec14
cmp dword [eax], 0x11
je 0x4673aa
mov esi, dword [0x5bb1dc]
call fcn.0051ec14
mov eax, dword [eax]
lea ecx, [ebp - 0x13c]
push eax
push ecx
lea edx, [ebp - 0x14]
push esi
push edx
call fcn.0053091a
add esp, 0x10
lea ecx, [ebp - 0x388]
call fcn.00459300
mov eax, dword [ebp - 0x14]
push 1
push eax
lea ecx, [ebp - 0x388]
mov byte [ebp - 4], 4
call fcn.004593e0
mov ecx, dword [0x5bb1d8]
mov edx, dword [ebp - 0x14]
push 0x50030
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x388]
jmp 0x46723e
push 0
call fcn.0051dc52
mov esi, eax
push esi
call fcn.0051e96d
add esp, 8
call fcn.0051e97a
push eax
lea eax, [ebp - 0x13c]
push esi
push eax
lea ecx, [ebp - 0x280]
push str._s_lda_ld_
push ecx
call fcn.0051d0e8
lea edx, [ebp - 0x280]
push edx
call fcn.0051e372
add esp, 0x18
test eax, eax
je 0x46746b
call fcn.0051ec14
cmp dword [eax], 0xd
je 0x46746b
call fcn.0051ec14
cmp dword [eax], 0x11
je 0x46746b
mov esi, dword [0x5bb1dc]
call fcn.0051ec14
mov eax, dword [eax]
lea ecx, [ebp - 0x280]
push eax
push ecx
lea edx, [ebp - 0x14]
push esi
push edx
call fcn.0053091a
add esp, 0x10
lea ecx, [ebp - 0x590]
call fcn.00459300
mov eax, dword [ebp - 0x14]
push 1
push eax
lea ecx, [ebp - 0x590]
mov byte [ebp - 4], 5
call fcn.004593e0
mov ecx, dword [0x5bb1d8]
mov edx, dword [ebp - 0x14]
push 0x50030
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x590]
jmp 0x46723e
lea eax, [ebp - 0x280]
lea ecx, [ebx + 0x414]
push eax
push 0x597ddc
push ecx
call fcn.0053091a
add esp, 0xc
lea edx, [ebp - 0x280]
push edx
push 0x597ddc
push 0x5babdc
call fcn.0053091a
mov eax, dword [0x5b5ecc]
add esp, 0xc
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x280]
lea edx, [ebp - 0x1c]
push ecx
push str._sgrprdb
push edx
mov byte [ebp - 4], 6
call fcn.0053091a
mov eax, dword [ebp - 0x1c]
add esp, 0xc
lea ecx, [ebx + 0x2e8]
push 0
push eax
call fcn.00510510
mov ecx, dword [ebp - 0x1c]
push 0
push ecx
lea ecx, [ebx + 8]
call fcn.00510c60
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00537b04
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00537b04
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret