Function at 0x59b9e0
Capabilities:
Get hostname
Get user security identifier

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ff52c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x60], ecx
sub esp, 0x10
mov dword [ebp - 0x18], 0
mov edx, 0x20006
mov ecx, str.HKLM64SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
call fcn.005d7210
add esp, 4
lea ecx, [ebp - 0x18]
push eax
call fcn.005d6a60
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.005d6a00
test eax, eax
je 0x59bc34
test esi, esi
mov edi, 0x62439c
push 0
cmovne edi, dword [ebp - 0x60]
push edi
push 1
push str.DefaultUserName
call fcn.005d5f20
test al, al
je 0x59bc34
mov ecx, edi
call fcn.005d8c40
test eax, eax
je 0x59bb44
push 0x100
push 0x40
mov dword [ebp - 0x58], 0x100
mov dword [ebp - 0x1c], 0x100
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
lea ecx, [ebp - 0x60]
call fcn.005d8180
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x28]
movq qword [ebp - 0x28], xmm0
call fcn.005dc5e0
push 0
push 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push dword [ebp - 0x1c]
call fcn.005db9a0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x28]
call fcn.005dc190
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x60]
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x59bb16
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x28]
call fcn.005dc190
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
lea ecx, [ebp - 0x28]
call fcn.005dc190
push eax
push 1
push str.DefaultDomainName
lea ecx, [ebp - 0x18]
call fcn.005d5f20
lea ecx, [ebp - 0x28]
call fcn.005dc430
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.005d8100
test esi, esi
jne 0x59bb5a
call fcn.0059bc70
test al, al
jne 0x59bb5a
mov byte [ebp - 0x59], 2
jmp 0x59bc38
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
push eax
push 0x20
lea eax, [ebp - 0x48]
xorps xmm0, xmm0
push eax
push 0
movups xmmword [ebp - 0x48], xmm0
movq qword [ebp - 0x38], xmm0
call dword [sym.imp.ADVAPI32.dll_LsaOpenPolicy]
test eax, eax
jne 0x59bc34
lea edx, [ebp - 0x30]
mov ecx, str.DefaultPassword
call fcn.0059ac00
test esi, esi
mov edi, 0x62796c
mov eax, 0x62a118
cmovne edi, eax
je 0x59bbe6
mov ecx, esi
call fcn.005dc3a0
cmp eax, 0xa
jge 0x59bbc9
push 0
mov ecx, esi
call fcn.005dc190
push eax
push 0xb
mov ecx, esi
call fcn.005db9a0
mov eax, 0xa
add eax, eax
mov ecx, esi
mov word [ebp - 0x54], ax
add eax, 2
mov word [ebp - 0x52], ax
call fcn.005dc190
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x54]
push eax
jmp 0x59bbe8
push 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_LsaStorePrivateData]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x59bc06
push eax
call dword [sym.imp.ADVAPI32.dll_LsaClose]
push 0
push edi
push 1
push str.AutoAdminLogon
lea ecx, [ebp - 0x18]
call fcn.005d5f20
movzx esi, al
lea ecx, [ebp - 0x18]
imul esi, dword [ebp - 0x60]
push str.DefaultPassword
call fcn.005d5df0
test esi, esi
sete byte [ebp - 0x59]
jmp 0x59bc38
mov byte [ebp - 0x59], 0
lea ecx, [ebp - 0x18]
call fcn.005d69e0
mov al, byte [ebp - 0x59]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret