Function at 0x401b90
Capabilities:
Check os version
Get hostname
Get user security identifier
Impersonate user

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x710
mov eax, dword [0x405004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 4
push esi
mov esi, dword [ebp + 0xc]
je 0x401bdc
push dword [esi]
push str.Usage:__s__Domain___Username___Password_
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401040
add esp, 0xc
mov eax, 0x7f
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401f51
mov esp, ebp
pop ebp
ret
push ebx
push dword [esi + 4]
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.00401080
push 0x98
lea eax, [ebp - 0x39c]
mov dword [ebp - 0x708], 0x100
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0x3a0], 0x9c
lea eax, [ebp - 0x3a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x401c36
push str.Failed_to_retrieve_the_operating_system_version.
jmp 0x401cf2
cmp dword [ebp - 0x39c], 5
jne 0x401c4c
cmp dword [ebp - 0x398], 0
jne 0x401c4c
mov bl, 1
jmp 0x401c4e
xor bl, bl
mov ecx, 0x4031b1
lea eax, [ebp - 0x104]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401c80
test dl, dl
je 0x401c7c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401c80
add eax, 2
add ecx, 2
test dl, dl
jne 0x401c60
xor eax, eax
jmp 0x401c85
sbb eax, eax
or eax, 1
test eax, eax
je 0x401cc1
mov ecx, 0x4031b4
lea eax, [ebp - 0x104]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401cb4
test dl, dl
je 0x401cb0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401cb4
add eax, 2
add ecx, 2
test dl, dl
jne 0x401c94
xor eax, eax
jmp 0x401cb9
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401d7f
cmp byte [ebp - 0x306], 2
jne 0x401d6b
lea eax, [ebp - 0x70c]
mov dword [ebp - 0x70c], 0
push eax
push 0x64
push 0
call dword [sym.imp.NETAPI32.dll_NetWkstaGetInfo]
test eax, eax
je 0x401d32
push str.Failed_to_retrieve_workstation_information.
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 2
call esi
add esp, 4
push eax
call fcn.00401040
add esp, 8
push str.Failed_to_check_get_the_domain_info.
push 2
call esi
add esp, 4
push eax
call fcn.00401040
add esp, 8
mov eax, 2
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401f51
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x70c]
test eax, eax
je 0x401d49
push eax
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov eax, dword [ebp - 0x70c]
push 0
push 0
push dword [ebp - 0x708]
lea ecx, [ebp - 0x104]
push ecx
push 0xffffffffffffffff
push dword [eax + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x401d7f
lea eax, [ebp - 0x708]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push dword [esi + 8]
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.00401080
push dword [esi + 0xc]
lea eax, [ebp - 0x304]
push 0x100
push eax
call fcn.00401080
lea eax, [ebp - 0x204]
mov dword [ebp - 0x708], 0
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x70c], 0
push eax
lea eax, [ebp - 0x704]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x28
lea eax, [ebp - 0x710]
push eax
lea eax, [ebp - 0x708]
push eax
push 0
lea eax, [ebp - 0x70c]
push eax
push 0
lea eax, [ebp - 0x704]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x401e4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x401e4e
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x104]
push eax
push str.User_account__s_s_does_not_exist.
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401040
add esp, 0x10
xor eax, eax
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401f51
mov esp, ebp
pop ebp
ret
test bl, bl
je 0x401e89
lea eax, [ebp - 0x304]
push eax
lea edx, [ebp - 0x204]
lea ecx, [ebp - 0x104]
call fcn.004018b0
test eax, eax
jne 0x401f01
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x104]
push eax
push str.Incorrect_password_for_user__s_s.
push 2
jmp 0x401ed4
lea eax, [ebp - 0x708]
push eax
push 0
push 5
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.ADVAPI32.dll_LogonUserA]
push dword [ebp - 0x708]
test eax, eax
jne 0x401efb
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x104]
push eax
push str.Incorrect_password_for_user__s_s.
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401040
add esp, 0x10
mov eax, 1
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401f51
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi]
push str._s_ran_to_completion
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401040
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
xor eax, eax
pop ebx
pop esi
call fcn.00401f51
mov esp, ebp
pop ebp
ret