Function at 0x1000c9f0
Capabilities:
Get session user name
Impersonate user

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1003cdca
mov eax, dword fs:[0]
push eax
sub esp, 0x4b8
mov eax, dword [0x1004d330]
xor eax, esp
mov dword [esp + 0x4b0], eax
push ebx
push esi
push edi
mov eax, dword [0x1004d330]
xor eax, esp
push eax
lea eax, [esp + 0x4c8]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push str.weak_passwords
lea ecx, [esp + 0x50]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
call fcn.10003809
xor esi, esi
lea edx, [esp + 0x4c]
lea edi, [esp + 0xa0]
mov dword [esp + 0x4d0], esi
call fcn.1000c939
xor edi, edi
push esi
inc edi
push edi
lea ecx, [esp + 0x54]
mov byte [esp + 0x4d8], 2
call fcn.10003fff
push str.scan_pw
call fcn.10023941
pop ecx
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x6c]
call fcn.100012c1
pop ecx
mov byte [esp + 0x4d0], 3
cmp dword [eax + 0x18], 8
jb 0x1000caab
mov eax, dword [eax + 4]
jmp 0x1000caae
add eax, 4
push 0x10041c60
push eax
lea eax, [esp + 0x34]
push eax
call fcn.10015588
add esp, 0xc
push esi
push edi
lea esi, [esp + 0x70]
mov byte [esp + 0x4d8], 5
call fcn.100041a3
push dword [esp + 0xb4]
push str.pw_size:_d
call fcn.10023941
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x40]
pop ecx
pop ecx
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
jne 0x1000cb00
mov dword [ebx], edi
jmp 0x1000cce0
xor eax, eax
mov word [esp + 0xbc], ax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0xc0]
push eax
mov dword [esp + 0x30], 0x200
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor esi, esi
cmp word [esp + 0xbc], si
jne 0x1000cb47
lea eax, [esp + 0xbc]
push eax
push str.UserName:_ls
call fcn.10023941
pop ecx
pop ecx
jmp 0x1000caf9
mov ebx, dword [sym.imp.ADVAPI32.dll_LogonUserW]
lea eax, [esp + 0x14]
push eax
push esi
push 2
push 0x10041984
push 0x10042884
lea eax, [esp + 0xd0]
push eax
mov dword [esp + 0x2c], esi
call ebx
test eax, eax
jne 0x1000cb7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x52f
je 0x1000cbe9
cmp dword [esp + 0x14], esi
je 0x1000cb8e
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x38]
cmp esi, dword [esp + 0x3c]
jbe 0x1000cb9d
call fcn.10025982
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x3c]
cmp dword [esp + 0x38], esi
jbe 0x1000cbb8
call fcn.10025982
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x48], esi
lea edi, [esp + 0x44]
lea esi, [esp + 0x20]
mov dword [esp + 0x44], eax
call fcn.10003a6e
test al, al
je 0x1000cce0
call fcn.10007137
cmp dword [eax + 0x18], 8
jb 0x1000cc2a
mov eax, dword [eax + 4]
jmp 0x1000cc2d
push str.not_find_pw
call fcn.10023941
pop ecx
lea eax, [esp + 0xbc]
push eax
push 0x10042818
lea ecx, [esp + 0x54]
call fcn.10015739
pop ecx
pop ecx
push 0xffffffffffffffff
push dword [esp + 0x20]
xor ebx, ebx
mov byte [esp + 0x4d8], 6
call fcn.1000404a
lea esi, [esp + 0x4c]
jmp 0x1000ccd1
add eax, 4
lea ecx, [esp + 0x14]
push ecx
xor esi, esi
push esi
push 2
push eax
push 0x10042884
lea eax, [esp + 0xd0]
push eax
mov dword [esp + 0x2c], esi
call ebx
test eax, eax
jne 0x1000cc5d
lea esi, [esp + 0x20]
call fcn.1000b915
jmp 0x1000cba9
cmp dword [esp + 0x14], esi
je 0x1000cc6d
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x20]
call fcn.10007137
cmp dword [eax + 0x18], 8
jb 0x1000cc81
mov eax, dword [eax + 4]
jmp 0x1000cc84
add eax, 4
push eax
lea eax, [esp + 0xc0]
push eax
push str.user__ls_match_pw__ls
call fcn.10023941
add esp, 0xc
lea eax, [esp + 0xbc]
push eax
push 0x10042864
lea ecx, [esp + 0x8c]
call fcn.10015739
pop ecx
pop ecx
push 0xffffffffffffffff
push dword [esp + 0x20]
xor ebx, ebx
mov byte [esp + 0x4d8], 7
call fcn.1000404a
lea esi, [esp + 0x84]
push 0
push 1
call fcn.100041a3
mov eax, dword [esp + 0x18]
and dword [eax], ebx
lea esi, [esp + 0x2c]
call fcn.1000429b
push dword [esp + 0x2c]
call fcn.100251f0
pop ecx
push 0
push 1
lea ecx, [esp + 0xa8]
call fcn.10003fff
mov al, 1
mov ecx, dword [esp + 0x4c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b0]
xor ecx, esp
call fcn.100251b7
mov esp, ebp
pop ebp
ret 8