Function at 0x140010070
Capabilities:
Get common file path
Get hostname
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x30460]
mov eax, 0x30560
call fcn.14004f660
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x30450], rax
movzx eax, word [0x14005c404]
xor edi, edi
mov word [rbp - 0x80], ax
xorps xmm0, xmm0
xor eax, eax
mov qword [rsp + 0x68], rdi
mov qword [rbp - 0x6e], rax
mov r14, rdx
mov dword [rbp - 0x66], eax
mov rsi, rcx
mov word [rbp - 0x62], ax
mov ebx, edi
mov dword [rsp + 0x64], 0x8000
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x54], 0x44
movups xmmword [rbp - 0x7e], xmm0
mov dword [rsp + 0x58], socket
mov dword [rsp + 0x50], edi
call fcn.14003d440
mov dword [rax], edi
call fcn.14000fc50
test eax, eax
jne 0x140010826
mov rax, qword [0x140094c10]
cmp qword [0x140094c08], rax
je 0x140010155
mov qword [0x140094c08], rax
mov ecx, edi
lea rax, [0x140078d34]
mov qword [0x140094be0], rcx
mov qword [0x140094be8], rax
mov qword [0x140094bf0], rdi
mov qword [0x140094bfc], rdi
mov dword [0x140094c04], edi
mov dword [0x140094bf8], 1
jmp 0x14001015c
mov rcx, qword [0x140094be0]
test rcx, rcx
je 0x140010166
call fcn.14003d000
mov rcx, qword [0x140094c00]
test rcx, rcx
je 0x140010177
call fcn.14003d000
mov qword [0x140094be0], rdi
mov qword [0x140094c00], rdi
test rsi, rsi
je 0x140010202
mov rcx, rsi
call fcn.14003da80
mov rbx, rax
test rax, rax
jne 0x1400101e9
call fcn.14003d440
mov qword [rsp + 0x40], rsi
lea rdx, str.get_passwd
mov qword [rsp + 0x38], rdx
lea rcx, str.C:__w1_scontribwin32win32compatpwd.c
xor r9d, r9d
mov r8d, 0xcc
mov dword [rax], 0xc
lea rax, str._s_failed_to_duplicate__s
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 2
call fcn.14001ae20
jmp 0x140010801
lea rdx, [0x140078d94]
mov rcx, rax
call fcn.140032604
test rax, rax
je 0x140010202
mov word [rax], 0x5c
lea rdx, [rbp - 0x60]
test r14, r14
je 0x140010279
mov r8, r14
mov ecx, 0x44
call qword [sym.imp.ADVAPI32.dll_CopySid]
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
jne 0x140010340
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xe
jg 0x1400102e6
je 0x1400102d5
mov ecx, eax
sub ecx, 1
je 0x14001032f
sub ecx, 1
je 0x14001030d
sub ecx, 1
je 0x14001030d
cmp ecx, 2
je 0x1400102fc
call fcn.14003d440
mov dword [rax], ebx
jmp 0x140010801
lea r8, [rsp + 0x54]
mov rcx, rbx
call fcn.14000ef30
test rax, rax
jne 0x140010219
call fcn.14003d440
lea rdx, str.get_passwd
xor r9d, r9d
mov r8d, 0xda
mov ecx, dword [rax]
lea rax, str._s:_lookup_sid___failed:__d.
mov dword [rsp + 0x40], ecx
lea rcx, str.C:__w1_scontribwin32win32compatpwd.c
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 5
call fcn.14001ae20
jmp 0x140010801
mov ebx, 0xc
call fcn.14003d440
mov dword [rax], ebx
jmp 0x140010801
cmp eax, 0x32
je 0x14001032f
cmp eax, 0x50
je 0x14001031e
cmp eax, 0x7b
je 0x14001030d
cmp eax, 0x522
jne 0x140010334
mov ebx, 0xd
call fcn.14003d440
mov dword [rax], ebx
jmp 0x140010801
mov ebx, 2
call fcn.14003d440
mov dword [rax], ebx
jmp 0x140010801
mov ebx, setsockopt
call fcn.14003d440
mov dword [rax], ebx
jmp 0x140010801
mov ebx, 0x82
call fcn.14003d440
mov dword [rax], ebx
jmp 0x140010801
lea rax, [rsp + 0x50]
mov dword [rsp + 0x5c], 0x101
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x5c]
lea rax, [rsp + 0x58]
xor ecx, ecx
mov qword [rsp + 0x28], rax
lea r8, [rbp + 0x240]
lea rax, [rbp - 0x80]
lea rdx, [rbp - 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
jne 0x140010433
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xe
jg 0x1400103b3
je 0x1400103ac
mov ecx, eax
sub ecx, 1
je 0x1400103de
sub ecx, 1
je 0x1400103d0
sub ecx, 1
je 0x1400103d0
cmp ecx, 2
je 0x1400103c9
jmp 0x1400103e3
mov ebx, 0xc
jmp 0x1400103e3
cmp eax, 0x32
je 0x1400103de
cmp eax, 0x50
je 0x1400103d7
cmp eax, 0x7b
je 0x1400103d0
cmp eax, 0x522
jne 0x1400103e3
mov ebx, 0xd
jmp 0x1400103e3
mov ebx, 2
jmp 0x1400103e3
mov ebx, setsockopt
jmp 0x1400103e3
mov ebx, 0x82
call fcn.14003d440
mov dword [rax], ebx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rdx, str.get_passwd
mov qword [rsp + 0x38], rdx
xor r9d, r9d
lea rax, str._s:_LookupAccountSid___failed:__d.
mov r8d, 0xeb
mov qword [rsp + 0x30], rax
lea rcx, str.C:__w1_scontribwin32win32compatpwd.c
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 5
call fcn.14001ae20
jmp 0x140010801
cmp dword [rsp + 0x50], 1
je 0x14001048c
call fcn.14003d440
lea rdx, str.get_passwd
xor r9d, r9d
mov r8d, 0xf2
lea rcx, str.C:__w1_scontribwin32win32compatpwd.c
mov dword [rax], 2
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x40], eax
lea rax, str._s:_Invalid_account_type:__d.
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 7
call fcn.14001ae20
jmp 0x140010801
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], socket
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x1400104ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
mov r9d, 1
mov r8d, 0xfa
lea rdx, str.get_passwd
lea rax, str.GetComputerNameW___failed_with_error:_d
mov qword [rsp + 0x30], rax
lea rcx, str.C:__w1_scontribwin32win32compatpwd.c
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 2
call fcn.14001ae20
jmp 0x140010801
lea rdx, [rbp - 0x10]
mov dword [rsp + 0x78], edi
lea rcx, [rbp - 0x80]
mov word [rsp + 0x7c], 0x500
call fcn.14003e674
test eax, eax
je 0x140010555
lea rcx, [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
mov rcx, rax
mov eax, edi
cmp eax, dword [rcx]
jne 0x14001052e
movzx eax, word [rsp + 0x7c]
cmp ax, word [rcx + 4]
jne 0x14001052e
cmp dword [rbp - 0x58], 0x12
je 0x140010555
lea rax, [rbp + 0x240]
mov edx, 0x111
lea r9, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea rcx, [rbp + 0x10]
call fcn.140001800
jmp 0x14001056a
lea r8, [rbp + 0x240]
mov edx, 0x111
lea rcx, [rbp + 0x10]
call fcn.14003fccc
mov r9, qword [rsp + 0x68]
lea r8, str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList_ls
mov edx, 0x8000
lea rcx, [rbp + 0x20450]
call fcn.140001800
cmp eax, 0xffffffff
je 0x140010624
lea rax, [rsp + 0x70]
mov r9d, 0x20101
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x20450]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140010624
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
lea rdx, str.ProfileImagePath
lea rax, [rbp + 0x10450]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140010624
xor r8d, r8d
lea rcx, [rbp + 0x10450]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x8000
ja 0x140010624
mov r8d, 0x8000
lea rdx, [rbp + 0x450]
lea rcx, [rbp + 0x10450]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x140010689
mov edx, 0x8000
lea rcx, [rbp + 0x450]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x140010689
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
xor r9d, r9d
mov r8d, 0x111
lea rdx, str.get_passwd
lea rax, str.GetWindowsDirectoryW_failed_with__d
mov qword [rsp + 0x30], rax
lea rcx, str.C:__w1_scontribwin32win32compatpwd.c
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 7
call fcn.14001ae20
call fcn.14003d440
mov dword [rax], 0x83
jmp 0x140010801
lea rax, [rbp + 0x10]
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], di
jne 0x140010694
inc rdx
lea rcx, [rbp + 0x10]
call fcn.140040038
mov qword [rsp + 0x38], rdi
lea r8, [rbp + 0x10]
mov qword [rsp + 0x30], rdi
mov r9d, 0xffffffff
mov dword [rsp + 0x28], edi
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rsi, eax
test eax, eax
je 0x1400107d0
mov rcx, rsi
call fcn.14003d014
mov rbx, rax
test rax, rax
je 0x1400107d0
mov qword [rsp + 0x38], rdi
lea r8, [rbp + 0x10]
mov qword [rsp + 0x30], rdi
mov r9d, 0xffffffff
mov dword [rsp + 0x28], esi
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x1400107d0
mov qword [rsp + 0x38], rdi
lea r8, [rbp + 0x450]
mov qword [rsp + 0x30], rdi
mov r9d, 0xffffffff
mov dword [rsp + 0x28], edi
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rdi
mov qword [0x140094be0], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rsi, eax
test eax, eax
je 0x1400107b0
mov rcx, rsi
call fcn.14003d014
mov rbx, rax
test rax, rax
je 0x1400107b0
mov qword [rsp + 0x38], rdi
lea r8, [rbp + 0x450]
mov qword [rsp + 0x30], rdi
mov r9d, 0xffffffff
mov dword [rsp + 0x28], esi
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x1400107b0
mov qword [0x140094c00], rbx
lea rdi, [0x140094be0]
jmp 0x140010801
mov rax, qword [0x140094be0]
mov rcx, rdi
mov qword [0x140094c00], rcx
test rax, rax
je 0x1400107de
mov rcx, rax
call fcn.14003d000
jmp 0x1400107d7
mov qword [0x140094be0], rdi
mov rcx, qword [0x140094c00]
test rcx, rcx
je 0x1400107e8
call fcn.14003d000
mov qword [0x140094be0], rdi
mov qword [0x140094c00], rdi
call fcn.14003d440
mov dword [rax], 0xc
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140010811
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140010821
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rdi
jmp 0x140010828
xor eax, eax
mov rcx, qword [rbp + 0x30450]
xor rcx, rsp
call fcn.1400313f0
lea r11, [rsp + 0x30560]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret