Function at 0x180136f90
Capabilities:
Get common file path
Get domain controller name
Read .ini file

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x360]
sub rsp, 0x460
mov rax, qword [0x18018f008]
xor rax, rsp
mov qword [rbp + 0x350], rax
xor r13d, r13d
mov dword [rdx + 0xc], 0xc8
lea rax, [rdx + 0x10]
mov dword [rdx + 8], r13d
mov qword [rdx], rax
mov rsi, rdx
mov ebx, r13d
mov qword [rsp + 0x38], r13
lea edx, [r13 + 0x40]
mov byte [rax], bl
mov r15, rcx
lea r12d, [r13 - 1]
mov r14d, r13d
call sym.tcl86t.dll_hcl_UtfFindFirst
mov rdi, rax
test rax, rax
jne 0x180137069
lea rcx, [rsp + 0x50]
call fcn.180139710
test rax, rax
je 0x18013704e
mov rdx, rax
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x18013704e
lea rdx, [rsp + 0x50]
lea rcx, str.HOME
call sym.tcl86t.dll_hclGetEnv
mov qword [rsp + 0x30], rax
test rax, rax
je 0x18013704e
mov r8, rsi
lea rdx, [rsp + 0x30]
lea ecx, [rdi + 1]
call sym.tcl86t.dll_hcl_JoinPath
mov rbx, qword [rsi]
lea r14d, [r13 + 1]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
cmp rcx, rax
je 0x180137062
call sym.tcl86t.dll_hclpFree
mov byte [rsp + 0x60], r13b
jmp 0x1801370c6
lea rax, [rsp + 0x60]
mov dword [rsp + 0x58], r13d
lea rcx, [rdi + 1]
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x50]
mov dword [rsp + 0x5c], 0xc8
mov edx, r12d
mov byte [rsp + 0x60], bl
call sym.tcl86t.dll_hcl_UtfToUniCharDString
lea r8, [rsp + 0x38]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.NETAPI32.dll_NetGetDCName]
mov rcx, qword [rsp + 0x50]
mov r14d, eax
lea rax, [rsp + 0x60]
cmp rcx, rax
je 0x1801370bc
call sym.tcl86t.dll_hclpFree
mov r12d, edi
mov byte [rsp + 0x60], bl
sub r12d, r15d
mov dword [rsp + 0x5c], 0xc8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], r13d
test r14d, r14d
jne 0x180137239
lea r8, [rsp + 0x50]
mov edx, r12d
mov rcx, r15
call sym.tcl86t.dll_hcl_UtfToUniCharDString
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x40]
mov r8d, 1
mov rdx, rax
mov r14, rax
call qword [sym.imp.NETAPI32.dll_NetUserGetInfo]
test eax, eax
je 0x180137158
test rdi, rdi
jne 0x180137209
lea r8, [rsp + 0x38]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.NETAPI32.dll_NetGetDCName]
test eax, eax
jne 0x180137209
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x40]
lea r8d, [rax + 1]
mov rdx, r14
mov rdi, 0xffffffffffffffff
call qword [sym.imp.NETAPI32.dll_NetUserGetInfo]
test eax, eax
jne 0x180137116
mov rax, qword [rsp + 0x40]
mov dword [rsp + 0x30], 0x104
mov rbx, qword [rax + 0x18]
test rbx, rbx
je 0x180137190
cmp word [rbx], r13w
je 0x180137190
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rsi
mov rcx, rbx
mov edx, eax
mov dword [rsp + 0x30], eax
call sym.tcl86t.dll_hcl_UniCharToUtfDString
jmp 0x1801371da
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x140]
call qword [sym.imp.USERENV.dll_GetProfilesDirectoryW]
mov edx, dword [rsp + 0x30]
lea rcx, [rbp + 0x140]
dec edx
mov r8, rsi
call sym.tcl86t.dll_hcl_UniCharToUtfDString
mov r8d, 1
lea rdx, [0x180161274]
mov rcx, rsi
call sym.tcl86t.dll_hcl_DStringAppend
mov r8d, r12d
mov rdx, r15
mov rcx, rsi
call sym.tcl86t.dll_hcl_DStringAppend
mov edx, dword [rsp + 0x30]
mov ecx, r13d
mov rbx, qword [rsi]
test edx, edx
je 0x1801371fe
mov eax, ecx
cmp byte [rax + rbx], 0x5c
jne 0x1801371f8
mov byte [rax + rbx], 0x2f
mov edx, dword [rsp + 0x30]
inc ecx
cmp ecx, edx
jb 0x1801371e8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
cmp rcx, rax
je 0x18013721d
call sym.tcl86t.dll_hclpFree
lea rax, [rsp + 0x60]
mov dword [rsp + 0x58], r13d
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x5c], 0xc8
mov byte [rsp + 0x60], r13b
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180137249
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
test rbx, rbx
jne 0x1801372ab
cmp byte [r15], 0x2a
je 0x1801372ab
lea rax, str.system.ini
mov rdx, r15
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x30]
lea r8, [0x180160020]
mov dword [rsp + 0x20], 0x104
lea rcx, str.Password_Lists
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x1801372ab
mov edx, 0x104
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea r8d, [rbx + 3]
mov rcx, rsi
lea rdx, [rbp + 0x30]
call sym.tcl86t.dll_hcl_DStringAppend
mov rax, qword [rsi]
jmp 0x1801372ae
mov rax, rbx
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.180146240
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x460
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret