Function at 0x425900
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa44
mov eax, dword [0x440d84]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
mov dword [ebp - 0x624], ebx
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x414]
push eax
push 2
mov dword [ebp - 0x62c], 0x104
call sub.Secur32.dll_GetUserNameExW
push 0x40c
lea eax, [ebp - 0xa40]
push 0
push eax
mov dword [ebp - 0x628], 0x104
mov dword [ebp - 0x630], 0x104
mov dword [ebp - 0xa44], 0
call sub.MSVCR110.dll_memset
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call sub.MSVCR110.dll_memset
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR110.dll_memset
add esp, 0x24
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0xa44]
push eax
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x425b8f
lea eax, [ebp - 0xa44]
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x425a20
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b9f8
mov esp, ebp
pop ebp
ret 4
push esi
push edi
lea eax, [ebp - 0xa44]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
mov esi, eax
lea eax, [ebp - 0xa44]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
movzx eax, byte [eax]
push 1
push str.S__lu_
mov dword [ebp - 0x620], eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004293c0
mov cl, byte [esi]
add esp, 0x10
mov edi, eax
test cl, cl
jne 0x425ac6
cmp byte [esi + 1], cl
jne 0x425ac6
movzx ecx, byte [esi + 2]
movzx eax, byte [esi + 3]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 4]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 5]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
shl ecx, 8
add ecx, eax
push ecx
push 0x437aac
lea eax, [ebp - 0x20c]
push eax
call esi
mov ecx, 0x104
sub ecx, eax
push ecx
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp + eax*2 - 0x20c]
push eax
call fcn.004293c0
add esp, 0x10
jmp 0x425b18
movzx eax, byte [esi + 5]
push eax
movzx eax, byte [esi + 4]
push eax
movzx eax, byte [esi + 3]
push eax
movzx eax, byte [esi + 2]
push eax
movzx eax, byte [esi + 1]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
movzx eax, cl
push eax
push str.0x_02hx_02hx_02hx_02hx_02hx_02hx
lea eax, [ebp - 0x20c]
push eax
call esi
mov ecx, 0x104
sub ecx, eax
push ecx
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp + eax*2 - 0x20c]
push eax
call fcn.004293c0
add esp, 0x24
xor esi, esi
add edi, eax
cmp dword [ebp - 0x620], esi
jbe 0x425b6c
mov ebx, dword [ebp - 0x620]
lea ebx, [ebx]
push esi
lea eax, [ebp - 0xa44]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
push dword [eax]
mov eax, 0x104
sub eax, edi
push str.__lu
push eax
lea eax, [ebp - 0x20c]
lea eax, [eax + edi*2]
push eax
call fcn.004293c0
inc esi
add esp, 0x10
add edi, eax
cmp esi, ebx
jb 0x425b30
mov ebx, dword [ebp - 0x624]
lea ecx, [ebp - 0x20c]
mov eax, ecx
pop edi
sub ebx, eax
pop esi
jmp 0x425b80
movzx eax, word [ecx]
mov word [ebx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x425b80
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0042b9f8
mov esp, ebp
pop ebp
ret 4