Function at 0x140001d40
Capabilities:
Impersonate user

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x100]
sub rsp, 0x200
movaps xmmword [rsp + 0x1f0], xmm6
mov rax, qword [0x14000d040]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov rdi, rdx
mov qword [rbp - 0x60], rdx
mov rbx, rcx
xor r15d, r15d
mov dword [rsp + 0x38], r15d
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140008938]
mov qword [rbp - 0x50], rax
lea rcx, [rbp + 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
nop
mov eax, 8
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], eax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t______ptr64__bool____ptr64]
nop
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + rcx - 0x50], rax
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x54], edx
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp - 0x48], rax
mov byte [rbp + 0x34], r15b
mov byte [rbp + 0x2a], r15b
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Init_void____ptr64]
mov qword [rbp + 0x38], r15
mov rax, qword [0x14000dc18]
mov qword [rbp + 0x2c], rax
mov qword [rbp + 0x20], r15
mov r8d, 0xa
lea rdx, str.success.txt
lea rcx, [rbp - 0x48]
call fcn.140004820
test rax, rax
jne 0x140001e6c
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x50]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x50]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
test al, al
je 0x140001ead
lea rdx, str.Failed_to_open_file_for_writing.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140004c80
mov rcx, rax
lea rdx, [0x140004e60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
jmp 0x140002540
xor al, al
mov byte [rsp + 0x30], al
mov rcx, qword [rbx + 8]
mov qword [rbp - 0x68], rcx
mov r13, qword [rbx]
mov rbx, rcx
sub rbx, r13
sar rbx, 5
mov rax, qword [rdi + 8]
sub rax, qword [rdi]
sar rax, 5
imul rbx, rax
mov qword [rsp + 0x38], rbx
mov rax, r15
mov qword [rbp - 0x80], rax
cmp r13, rcx
je 0x1400024d1
movsd xmm6, qword [0x1400089e8]
nop dword [rax]
nop dword [rax + rax]
mov r12, qword [rdi]
mov r14, qword [rdi + 8]
mov qword [rbp - 0x78], r14
cmp r12, r14
je 0x140002498
imul rcx, rax, 0x32
mov qword [rbp - 0x70], rcx
nop dword [rax]
mov qword [rbp - 0x58], r15
mov r8, r12
cmp qword [r12 + 0x18], 7
jbe 0x140001f33
mov r8, qword [r12]
mov rcx, r13
cmp qword [r13 + 0x18], 7
jbe 0x140001f41
mov rcx, qword [r13]
lea rax, [rbp - 0x58]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9d, 2
lea rdx, [0x1400086b4]
call qword [sym.imp.ADVAPI32.dll_LogonUserW]
test eax, eax
je 0x14000237b
mov byte [rsp + 0x30], 1
mov r14, qword [r13 + 0x10]
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, r14
cmp rax, 0x13
jb 0x140002603
mov r15, r13
cmp qword [r13 + 0x18], 7
jbe 0x140001f9b
mov r15, qword [r13]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
lea rsi, [r14 + 0x13]
mov edi, 7
lea rbx, [rsp + 0x40]
cmp rsi, rdi
jbe 0x140002050
mov rdi, rsi
or rdi, 7
cmp rdi, rcx
jbe 0x140001fe5
mov rdi, rcx
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x14000200e
cmp rdi, 0xa
mov ecx, 0xa
cmovb rdi, rcx
lea rcx, [rdi + 1]
movabs rdx, 0x7fffffffffffffff
cmp rcx, rdx
ja 0x140002609
add rcx, rcx
je 0x140002048
cmp rcx, 0x1000
jb 0x140002043
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140002609
mov rcx, rax
call fcn.1400060a0
test rax, rax
je 0x1400024b5
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14000204b
call fcn.1400060a0
mov rbx, rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
movups xmm0, xmmword [str.Success:_Username:]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [0x1400086f0]
movups xmmword [rbx + 0x10], xmm1
mov eax, dword [0x140008700]
mov dword [rbx + 0x20], eax
movzx eax, word [0x140008704]
mov word [rbx + 0x24], ax
lea rcx, [rbx + 0x26]
lea r8, [r14 + r14]
mov rdx, r15
call fcn.140006fd3
xor r15d, r15d
mov word [rbx + rsi*2], r15w
mov r14d, dword [rsp + 0x34]
or r14d, 1
mov rdi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
sub rax, rdi
cmp rax, 0x10
jb 0x1400020f5
lea rax, [rdi + 0x10]
mov qword [rsp + 0x50], rax
lea rbx, [rsp + 0x40]
cmp rcx, 7
cmova rbx, qword [rsp + 0x40]
lea rcx, [rbx + rdi*2]
mov r8d, 0x20
lea rdx, str._with_Password:
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2 + 0x20], r15w
lea rax, [rsp + 0x40]
jmp 0x140002114
mov qword [rsp + 0x20], 0x10
lea r9, str._with_Password:
mov edx, 0x10
lea rcx, [rsp + 0x40]
call fcn.140005450
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r15
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
or r14d, 2
mov r9, r12
cmp qword [r12 + 0x18], 7
jbe 0x14000215a
mov r9, qword [r12]
mov rdi, qword [r12 + 0x10]
mov rsi, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
sub rax, rsi
cmp rdi, rax
ja 0x1400021ac
lea rax, [rsi + rdi]
mov qword [rsp + 0x70], rax
lea rbx, [rsp + 0x60]
cmp rcx, 7
cmova rbx, qword [rsp + 0x60]
lea rcx, [rbx + rsi*2]
lea r8, [rdi + rdi]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
lea rax, [rsi + rdi]
mov word [rbx + rax*2], r15w
lea rax, [rsp + 0x60]
jmp 0x1400021be
mov qword [rsp + 0x20], rdi
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.140005450
xorps xmm0, xmm0
movups xmmword [rbp + 0xc0], xmm0
mov qword [rbp + 0xd0], r15
mov qword [rbp + 0xd8], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xc0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xd0], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
or r14d, 4
mov dword [rsp + 0x34], r14d
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x140002246
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002241
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400024bc
call fcn.1400060dc
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r15w
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x14000229c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002297
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400024c3
call fcn.1400060dc
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r15w
lea rdx, [rbp + 0xc0]
cmp qword [rbp + 0xd8], 7
cmova rdx, qword [rbp + 0xc0]
mov r8, qword [rbp + 0xd0]
lea rcx, [rbp - 0x50]
call fcn.140005840
lea rdx, [0x140004e60]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rdx, [rbp + 0xc0]
cmp qword [rbp + 0xd8], 7
cmova rdx, qword [rbp + 0xc0]
mov r8, qword [rbp + 0xd0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140005840
lea rdx, [0x140004e60]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp + 0xd8]
cmp rdx, 7
jbe 0x140002372
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000236d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400024ca
call fcn.1400060dc
mov r14, qword [rbp - 0x78]
mov rbx, qword [rsp + 0x38]
mov rax, qword [rbp - 0x80]
inc rax
mov qword [rbp - 0x80], rax
mov r8, qword [rbp - 0x70]
add r8, 0x32
mov qword [rbp - 0x70], r8
xorps xmm0, xmm0
test rax, rax
js 0x1400023a1
cvtsi2sd xmm0, rax
jmp 0x1400023b6
mov rcx, rax
shr rcx, 1
and eax, 1
or rcx, rax
cvtsi2sd xmm0, rcx
addsd xmm0, xmm0
mulsd xmm0, xmm6
xorps xmm1, xmm1
test rbx, rbx
js 0x1400023c9
cvtsi2sd xmm1, rbx
jmp 0x1400023e1
mov rcx, rbx
shr rcx, 1
mov rax, rbx
and eax, 1
or rcx, rax
cvtsi2sd xmm1, rcx
addsd xmm1, xmm1
divsd xmm0, xmm1
cvttsd2si esi, xmm0
xor edx, edx
mov rax, r8
div rbx
mov rdi, rax
lea rdx, str.__
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140004c80
mov ebx, r15d
nop word [rax + rax]
cmp ebx, edi
jge 0x14000241d
lea rdx, [0x140008638]
jmp 0x14000242d
lea rdx, [0x14000863c]
je 0x14000242d
lea rdx, [0x140008640]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140004c80
inc ebx
cmp ebx, 0x32
jl 0x140002410
lea rdx, [0x14000864c]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140004c80
mov rcx, rax
mov edx, esi
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x140008644]
call fcn.140004c80
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::flush_void____ptr64]
add r12, 0x20
cmp r12, r14
mov rbx, qword [rsp + 0x38]
jne 0x140001f20
mov rax, qword [rbp - 0x80]
mov rdi, qword [rbp - 0x60]
mov rcx, qword [rbp - 0x68]
add r13, 0x20
cmp r13, rcx
jne 0x140001f00
cmp byte [rsp + 0x30], 0
je 0x1400024d1
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
jmp 0x140002507
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rdx, str.No_successful_login_attempts_found.
lea rcx, [rbp - 0x50]
call fcn.140004c80
mov rcx, rax
lea rdx, [0x140004e60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rdx, str._nNo_successful_login_attempts_found.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140004c80
mov rcx, rax
lea rdx, [0x140004e60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rcx, [rbp - 0x48]
call fcn.140004760
test rax, rax
jne 0x140002540
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x50]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + rcx - 0x50], rax
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x54], edx
lea rax, vtable.std::basic_filebuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp - 0x48], rax
cmp qword [rbp + 0x38], 0
je 0x1400025a3
lea rcx, [rbp + 0x28]
mov rax, qword [rbp - 0x30]
cmp qword [rax], rcx
jne 0x1400025a3
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x40]
mov qword [rax], rcx
mov rax, qword [rbp - 0x10]
mov qword [rax], rcx
sub rdx, rcx
sar rdx, 1
mov rax, qword [rbp + 8]
mov dword [rax], edx
cmp byte [rbp + 0x34], 0
je 0x1400025b2
lea rcx, [rbp - 0x48]
call fcn.140004760
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rbp + 0x58]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.140006080
mov rbx, qword [rsp + 0x250]
movaps xmm6, xmmword [rsp + 0x1f0]
add rsp, 0x200
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400011b0
nop
call fcn.140001110
int3