Function at 0x42adc0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434d9b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x441008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x441a80]
test eax, eax
jle 0x42ae06
inc eax
mov dword [0x441a80], eax
mov al, 1
jmp 0x42b090
lea ecx, [ebp - 0x230]
mov byte [ebp - 0x221], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x22c], 0
call fcn.0040ee90
lea eax, [ebp - 0x22c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.0040fa70
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0xffffffff
mov bl, al
call fcn.0040ef10
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x42b07d
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x238], eax
test eax, eax
je 0x42b07d
push str.ImpersonateLoggedOnUser
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [ebp - 0x228]
push ebx
call eax
test eax, eax
je 0x42b06f
inc dword [0x441a80]
mov eax, dword [esi]
test eax, eax
je 0x42aead
push eax
call edi
mov dword [esi], ebx
xor ebx, ebx
mov byte [ebp - 0x221], 1
cmp dword [0x441540], ebx
jne 0x42b06f
push 0x20a
lea eax, [ebp - 0x220]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x234], 0x104
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov ecx, dword [0x441544]
add esp, 4
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], ecx
cmp eax, ecx
ja 0x42af69
lea esi, [eax + eax]
mov dword [0x441540], eax
cmp ecx, 8
lea eax, [ebp - 0x220]
push esi
mov edi, 0x441530
cmovae edi, dword [0x441530]
push eax
push edi
call dword [sym.imp.VCRUNTIME140.dll_memmove]
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x42b083
cmp eax, 0x7ffffffe
ja 0x42b0ac
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x42af88
mov esi, 0x7ffffffe
jmp 0x42afa6
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x42af9e
mov esi, 0x7ffffffe
jmp 0x42afa6
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x42afb8
or ecx, 0xffffffff
jmp 0x42afc0
cmp ecx, 0x1000
jb 0x42afe9
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.004226e9
add esp, 4
test eax, eax
je 0x42afe3
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x42affc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
test ecx, ecx
je 0x42affa
push ecx
call fcn.004226e9
add esp, 4
mov edi, eax
jmp 0x42affc
xor edi, edi
mov eax, dword [ebp - 0x230]
mov dword [0x441544], esi
mov dword [0x441540], eax
lea esi, [eax + eax]
push esi
lea eax, [ebp - 0x220]
push eax
push edi
call dword [sym.imp.VCRUNTIME140.dll_memcpy]
mov ecx, dword [ebp - 0x22c]
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
cmp ecx, 8
jb 0x42b063
mov eax, dword [0x441530]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x42b059
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42afe3
mov eax, edx
push ecx
push eax
call fcn.00422996
add esp, 8
mov dword [0x441530], edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x42b083
mov ebx, dword [ebp - 0x228]
test ebx, ebx
je 0x42b08a
push ebx
call edi
mov al, byte [ebp - 0x221]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004226d8
mov esp, ebp
pop ebp
ret
call fcn.00403000
int3