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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x645d01
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcf8
mov eax, dword [0x6f7b78]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], eax
mov ecx, 6
mov esi, str.GrabberData
lea edi, [ebp - 0x64]
mov eax, dword [0x6fcafc]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x26c]
push ecx
push edx
push ebx
push ebx
push str.TempPath
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x4c], 0x80
mov dword [ebp - 0x48], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x4d4eda
lea ecx, [ebp - 0x26c]
push ecx
call fcn.0060b2c8
add esp, 4
test eax, eax
jne 0x4d4eda
lea edx, [ebp - 0x26c]
push edx
call fcn.00609a4e
add esp, 4
cmp word [ebp + eax*2 - 0x26e], 0x5c
je 0x4d4f10
lea eax, [ebp - 0x26c]
push 0x6c91c0
push eax
call fcn.00609a6b
add esp, 8
jmp 0x4d4f10
lea ecx, [ebp - 0x26c]
push 0x104
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4d4f10
lea edx, [ebp - 0x26c]
push 0x5c
push edx
call fcn.00609ba3
add esp, 8
cmp eax, ebx
je 0x4d4f10
mov word [eax], bx
lea eax, [ebp - 0x26c]
push 0x7e
push eax
call fcn.0060a17b
add esp, 8
test eax, eax
je 0x4d4f90
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x24], ebx
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x20], bx
call fcn.00401f20
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x4f2]
mov word [ebp - 0x4f4], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 2
cmp eax, ebx
jne 0x4d4f64
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x4f4]
push edx
push eax
call fcn.00453970
add esp, 8
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.00609a95
add esp, 8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x26c]
push ecx
call fcn.00609a4e
add esp, 4
cmp word [ebp + eax*2 - 0x26e], 0x5c
je 0x4d4fbe
lea edx, [ebp - 0x26c]
push 0x6c91c0
push edx
call fcn.00609a6b
add esp, 8
lea eax, [ebp - 0xd04]
lea ecx, [ebp - 0xb04]
push eax
lea edx, [ebp - 0x904]
push ecx
lea eax, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x26c]
push eax
push ecx
call fcn.0060a943
add esp, 0x14
lea edx, [ebp - 0x64]
lea eax, [ebp - 0x904]
lea ecx, [ebp - 0x44]
push edx
push eax
push ecx
lea edx, [ebp - 0x26c]
push 0x6d2bdc
push edx
call fcn.0060aac7
lea eax, [ebp - 0x26c]
push eax
call fcn.0060bc6e
add esp, 0x18
cmp eax, ebx
je 0x4d50e0
call fcn.0060c9c8
cmp dword [eax], 0xd
je 0x4d50e0
call fcn.0060c9c8
cmp dword [eax], 0x11
je 0x4d50e0
lea ecx, [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00622e4a
mov esi, dword [0x6fda5c]
mov byte [ebp - 4], 3
call fcn.0060c9c8
mov edx, dword [eax]
mov eax, dword [ebp - 0x18]
push edx
push eax
lea ecx, [ebp - 0x14]
push esi
push ecx
call fcn.0061fae1
add esp, 0x10
lea ecx, [ebp - 0x4fc]
call fcn.004be6a0
mov edx, dword [ebp - 0x14]
push 1
push edx
lea ecx, [ebp - 0x4fc]
mov byte [ebp - 4], 4
call fcn.004be7c0
mov eax, dword [0x6fda58]
mov ecx, dword [ebp - 0x14]
push 0x50030
push eax
push ecx
push ebx
call fcn.00457010
add esp, 0x10
lea ecx, [ebp - 0x4fc]
mov byte [ebp - 4], 3
call fcn.004be7b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00622d8a
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00622d8a
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 edx, [ebp - 0x4c]
lea eax, [ebp - 0x2ec]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x4d5109
lea ecx, [ebp - 0x2ec]
push 0x6cdea4
push ecx
call fcn.0060aac7
add esp, 8
lea edx, [ebp - 0x2ec]
push edx
call fcn.00609a4e
add esp, 4
test eax, eax
je 0x4d5176
lea eax, [ebp - 0x2ec]
lea ecx, [ebp - 0x64]
push eax
lea edx, [ebp - 0x904]
push ecx
lea eax, [ebp - 0x44]
push edx
push eax
lea ecx, [ebp - 0x26c]
push str._s_s_s_s_
push ecx
call fcn.0060aac7
lea edx, [ebp - 0x26c]
push edx
call fcn.0060bc6e
add esp, 0x1c
test eax, eax
je 0x4d5250
call fcn.0060c9c8
cmp dword [eax], 0xd
je 0x4d5250
call fcn.0060c9c8
cmp dword [eax], 0x11
je 0x4d5250
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0x904]
push eax
lea edx, [ebp - 0x44]
push ecx
push edx
lea eax, [ebp - 0x26c]
push str._s_s_sdefault_user_
push eax
call fcn.0060aac7
lea ecx, [ebp - 0x26c]
push ecx
call fcn.0060bc6e
add esp, 0x18
cmp eax, ebx
je 0x4d5250
call fcn.0060c9c8
cmp dword [eax], 0xd
je 0x4d5250
call fcn.0060c9c8
cmp dword [eax], 0x11
je 0x4d5250
lea edx, [ebp - 0x26c]
lea ecx, [ebp - 0x18]
push edx
call fcn.00622e4a
mov esi, dword [0x6fda5c]
mov bl, 5
mov byte [ebp - 4], bl
call fcn.0060c9c8
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
push eax
push ecx
lea edx, [ebp - 0x14]
push esi
push edx
call fcn.0061fae1
add esp, 0x10
lea ecx, [ebp - 0x4fc]
call fcn.004be6a0
mov eax, dword [ebp - 0x14]
push 1
push eax
lea ecx, [ebp - 0x4fc]
mov byte [ebp - 4], 6
call fcn.004be7c0
mov ecx, dword [0x6fda58]
mov edx, dword [ebp - 0x14]
push 0x50030
push ecx
push edx
push 0
call fcn.00457010
add esp, 0x10
lea ecx, [ebp - 0x4fc]
mov byte [ebp - 4], bl
call fcn.004be7b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
jmp 0x4d50b9
push ebx
call fcn.0060b449
mov esi, eax
push esi
call fcn.0060c28d
add esp, 8
call fcn.0060c29a
push eax
lea eax, [ebp - 0x26c]
push esi
push eax
lea ecx, [ebp - 0x704]
push str._s_lua_lu_
push ecx
call fcn.0060aac7
lea edx, [ebp - 0x704]
push edx
call fcn.0060bc6e
add esp, 0x18
cmp eax, ebx
je 0x4d533a
call fcn.0060c9c8
cmp dword [eax], 0xd
je 0x4d533a
call fcn.0060c9c8
cmp dword [eax], 0x11
je 0x4d533a
lea eax, [ebp - 0x704]
lea ecx, [ebp - 0x18]
push eax
call fcn.00622e4a
mov esi, dword [0x6fda5c]
mov bl, 7
mov byte [ebp - 4], bl
call fcn.0060c9c8
mov ecx, dword [eax]
mov edx, dword [ebp - 0x18]
push ecx
push edx
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.0061fae1
add esp, 0x10
lea ecx, [ebp - 0x4fc]
call fcn.004be6a0
mov ecx, dword [ebp - 0x14]
push 1
push ecx
lea ecx, [ebp - 0x4fc]
mov byte [ebp - 4], 8
call fcn.004be7c0
mov edx, dword [0x6fda58]
mov eax, dword [ebp - 0x14]
push 0x50030
push edx
push eax
push 0
call fcn.00457010
add esp, 0x10
lea ecx, [ebp - 0x4fc]
mov byte [ebp - 4], bl
call fcn.004be7b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
jmp 0x4d50b9
mov ecx, dword [ebp - 0x18]
mov edx, 0x6c910c
test edx, edx
lea esi, [ecx + 0x41c]
je 0x4d5562
lea eax, [ebp - 0x704]
test eax, eax
je 0x4d5480
lea ecx, [ebp - 0x704]
mov dword [ebp - 0x24], ebx
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x20], bx
call fcn.00401f20
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.00401070
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x2c], bx
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xa
call fcn.00401070
mov edi, 0x6c910c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4d53ec
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
push 0xffffffffffffffff
push 0x6c910c
push ebx
push ebx
call esi
cmp eax, ebx
mov dword [ebp - 0x28], eax
je 0x4d53ef
lea edx, [eax + eax + 2]
push edx
call fcn.00622acb
add esp, 4
cmp eax, ebx
mov dword [ebp - 0x30], eax
je 0x4d53ec
mov ecx, dword [ebp - 0x28]
push ecx
push eax
push 0xffffffffffffffff
push 0x6c910c
push ebx
push ebx
call esi
mov dword [ebp - 0x28], eax
jmp 0x4d53ef
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.00401f10
push eax
call fcn.00609a4e
lea esi, [eax + esi + 2]
lea ebx, [esi + esi]
push ebx
call fcn.00622acb
mov edx, dword [ebp - 0x18]
mov edi, eax
add esp, 8
lea eax, [edx + 0x41c]
test edi, edi
mov dword [eax], edi
je 0x4d5468
mov ecx, ebx
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x24]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x30]
call fcn.00401f10
push eax
mov eax, dword [ebp - 0x18]
push esi
mov ecx, dword [eax + 0x41c]
lea esi, [eax + 0x41c]
push ecx
call fcn.006099de
mov edx, dword [esi]
push edx
call fcn.00609a4e
add esp, 0x14
mov dword [esi + 8], eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 9
call fcn.00401070
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00401070
lea eax, [ebp - 0x704]
test eax, eax
je 0x4d5562
lea ecx, [ebp - 0x704]
xor esi, esi
push ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], esi
mov word [ebp - 0x2c], si
call fcn.00401f20
mov ecx, 0x6fcf50
mov byte [ebp - 4], 0xb
call fcn.00401070
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x20], si
push esi
push 0x6c910c
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xc
call fcn.004027e0
mov eax, dword [ebp - 0x30]
cmp eax, esi
jne 0x4d54dd
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x1c]
push eax
call fcn.00609a4e
lea ebx, [eax + esi + 2]
lea esi, [ebx + ebx]
push esi
call fcn.00622acb
mov edi, eax
add esp, 8
test edi, edi
mov dword [0x6fcf50], edi
je 0x4d554a
mov ecx, esi
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x4d551e
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
jne 0x4d5528
lea ecx, [ebp - 0x20]
push eax
mov eax, dword [0x6fcf50]
push ecx
push ebx
push eax
call fcn.006099de
mov ecx, dword [0x6fcf50]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [0x6fcf58], eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xb
call fcn.00401070
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00401070
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], eax
mov word [ebp - 0x38], ax
mov edx, str._sgrprdb
mov byte [ebp - 4], 0xd
test edx, edx
je 0x4d5658
lea ecx, [ebp - 0x704]
test ecx, ecx
je 0x4d5658
lea edx, [ebp - 0x704]
xor esi, esi
push edx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], esi
mov word [ebp - 0x2c], si
call fcn.00401f20
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xe
call fcn.00401070
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x20], si
push esi
push str._sgrprdb
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xf
call fcn.004027e0
mov eax, dword [ebp - 0x30]
cmp eax, esi
jne 0x4d55da
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x1c]
push eax
call fcn.00609a4e
lea ebx, [eax + esi + 2]
lea esi, [ebx + ebx]
push esi
call fcn.00622acb
mov edi, eax
add esp, 8
test edi, edi
mov dword [ebp - 0x3c], edi
je 0x4d563d
mov ecx, esi
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x4d5618
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
jne 0x4d5622
lea ecx, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x3c]
push ecx
push ebx
push eax
call fcn.006099de
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xe
call fcn.00401070
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xd
call fcn.00401070
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x4d565f
lea eax, [ebp - 0x38]
mov esi, dword [ebp - 0x18]
push 0
push eax
lea ecx, [esi + 0x300]
call fcn.005f9800
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x4d567a
lea eax, [ebp - 0x38]
push 0
push eax
lea ecx, [esi + 8]
call fcn.005fa2e0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00622d8a
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