Function at 0x42fd1c
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
push ebx
push esi
push edi
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x2fc], 0
mov dword [ebp - 0x5c], 0x14d
mov dword [ebp - 4], 0x29a
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
cmp dword [0x46209c], 0
je 0x42fe87
cmp dword [0x462078], 0
je 0x42fe87
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x458], 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [0x462078]
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x458], 0x5a
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x454]
push eax
push 5
mov eax, dword [ebp - 0x18]
push eax
push 0
call dword [0x46209c]
movzx eax, ax
mov dword [ebp - 0x45c], eax
cmp dword [ebp - 0x45c], 0
je 0x42fe87
cmp dword [ebp - 0x454], 0
je 0x42fe87
xor eax, eax
mov al, byte [0xb4bb40]
test eax, eax
je 0x42fe52
mov edi, 0xb4bb40
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov edx, edi
mov edi, dword [ebp + 0x14]
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x454]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, edi
mov ebx, ecx
mov edi, dword [ebp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov esi, edx
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x42fe7a
mov edi, dword [ebp - 0x454]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov edx, edi
mov edi, dword [ebp + 0x14]
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x454]
push eax
call dword [0x4620a0]
mov eax, dword [ebp + 8]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x43003f
mov eax, dword [ebp + 0x10]
push eax
push 0xf00ff
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov dword [ebp - 0x54], eax
push 0x479148
mov eax, dword [ebp + 0x14]
push eax
call fcn.00452540
add esp, 8
test eax, eax
jne 0x42feef
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
mov eax, dword [ebp + 0x14]
movsx eax, byte [eax]
test eax, eax
jne 0x42ffb9
mov byte [ebp - 0x44c], 0
mov dword [ebp - 0x5c], 0x14d
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov dword [ebp - 0x450], eax
xor eax, eax
mov al, byte [0xb4bb40]
test eax, eax
je 0x42ff91
mov edi, 0xb4bb40
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov edx, edi
mov edi, dword [ebp + 0x14]
mov esi, 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 edi, [ebp - 0x44c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, edi
mov ebx, ecx
mov edi, dword [ebp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov esi, edx
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x42ffb9
lea edi, [ebp - 0x44c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov edx, edi
mov edi, dword [ebp + 0x14]
mov esi, 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 eax, [ebp - 0x450]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push 7
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x450]
push eax
push 0x38
lea eax, [ebp - 0x50]
push eax
push 0xa
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x2fc], eax
mov eax, dword [ebp - 0x2fc]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
cmp dword [0x462254], 0
je 0x43003a
xor eax, eax
mov al, byte [ebp + 0x18]
test eax, eax
je 0x43003a
mov eax, dword [ebp - 0x2fc]
push eax
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0042fbb1
add esp, 0xc
jmp 0x4300ae
cmp dword [0x45e03c], 0
je 0x4300a5
xor eax, eax
mov al, byte [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
push eax
push str._n_rOpen_Process___x____Impersonate_FAILED_GLE__d___is_TSE_Parent___d__
call fcn.00452380
add esp, 0x10
mov word [ebp - 0x2f8], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2f8]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov dword [ebp - 0x450], eax
lea eax, [ebp - 0x2f8]
push eax
mov eax, dword [ebp - 0x450]
push eax
push str._nGet_user_name___x____S__sync
call fcn.00452380
add esp, 0xc
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0
mov eax, dword [ebp - 0x58]
jmp 0x4300b6
pop edi
pop esi
pop ebx
leave
ret