Function at 0x140001b10
Capabilities:
Add user account
Get hostname
Get user security identifier

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
lea rbp, [rsp - 0xd00]
sub rsp, 0xe00
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xcf0], rax
mov rbx, rdx
cmp ecx, 4
je 0x140001b65
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rbx]
lea rdx, str.Usage:__s__Domain___Username___Password__n
mov rcx, rax
call fcn.140001080
mov eax, 0x7f
jmp 0x140001f95
mov r8, qword [rdx + 8]
mov qword [rsp + 0xe10], rdi
xor edi, edi
cmp byte [r8], 0x2e
jne 0x140001c81
cmp byte [r8 + 1], dil
jne 0x140001c81
xorps xmm0, xmm0
mov dword [rbp - 0x70], 0x9c
xor eax, eax
lea rcx, [rbp - 0x70]
movups xmmword [rbp - 0x6c], xmm0
mov qword [rbp + 0x24], rax
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rbp - 0xc], xmm0
movups xmmword [rbp + 4], xmm0
movups xmmword [rbp + 0x14], xmm0
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x140001bed
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Failed_to_retrieve_the_operating_system_version_information._n
call fcn.140001080
mov eax, 1
jmp 0x140001f8d
cmp byte [rbp + 0x2a], 2
jne 0x140001c65
lea r8, [rsp + 0x48]
mov qword [rsp + 0x48], rdi
mov edx, 0x64
xor ecx, ecx
call qword [sym.imp.NETAPI32.dll_NetWkstaGetInfo]
test eax, eax
je 0x140001c32
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Failed_to_retrieve_workstation_information._n
call fcn.140001080
mov eax, 1
jmp 0x140001f8d
mov r9, qword [rsp + 0x48]
lea r8, [0x140003714]
mov edx, 0x100
lea rcx, [rbp + 0x150]
mov r9, qword [r9 + 0x10]
call fcn.1400010d0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140001c92
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
jmp 0x140001c92
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x100
lea rcx, [rbp + 0x150]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
jmp 0x140001c92
mov edx, 0x100
lea rcx, [rbp + 0x150]
call fcn.1400010d0
mov r8, qword [rbx + 0x10]
lea rcx, [rbp + 0x50]
mov edx, 0x100
call fcn.1400010d0
mov r8, qword [rbx + 0x18]
lea rcx, [rbp + 0x250]
mov edx, 0x100
call fcn.1400010d0
lea r9, [rbp + 0x50]
mov dword [rsp + 0x40], edi
lea r8, [rbp + 0x150]
mov dword [rsp + 0x44], edi
lea rdx, str._s_s
lea rcx, [rbp + 0x4f0]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rax, [rsp + 0x48]
xor r8d, r8d
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x44]
lea rax, [rsp + 0x40]
xor ecx, ecx
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 0x4f0]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x140001f2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x140001f2e
movups xmm0, xmmword [str.PostgreSQL_service_account]
movzx eax, word [0x140003368]
lea r8, [rbp + 0x50]
mov word [rbp + 0x48], ax
mov r9d, 0xffffffff
movzx eax, byte [0x14000336a]
xor edx, edx
movups xmmword [rbp + 0x30], xmm0
xor ecx, ecx
mov dword [rsp + 0x28], edi
movsd xmm0, qword [0x140003360]
movsd qword [rbp + 0x40], xmm0
mov dword [rsp + 0x44], edi
mov byte [rbp + 0x4a], al
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x28], eax
mov r9d, 0xffffffff
lea r8, [rbp + 0x50]
xor edx, edx
lea rax, [rbp + 0x350]
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov r9d, 0xffffffff
mov dword [rsp + 0x28], edi
lea r8, [rbp + 0x250]
mov qword [rsp + 0x20], rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x28], eax
mov r9d, 0xffffffff
lea r8, [rbp + 0x250]
xor edx, edx
lea rax, [rbp + 0x420]
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov r9d, 0xffffffff
mov dword [rsp + 0x28], edi
lea r8, [rbp + 0x30]
mov qword [rsp + 0x20], rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x28], eax
mov r9d, 0xffffffff
lea r8, [rbp + 0x30]
xor edx, edx
lea rax, [rbp + 0x4f0]
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rbp + 0x350]
mov dword [rsp + 0x64], 1
mov qword [rsp + 0x50], rax
lea r9, [rsp + 0x44]
lea rax, [rbp + 0x420]
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x50]
lea rax, [rbp + 0x4f0]
mov dword [rsp + 0x78], 0x10041
mov edx, 1
mov qword [rsp + 0x70], rax
xor ecx, ecx
mov qword [rbp - 0x80], rdi
call qword [sym.imp.NETAPI32.dll_NetUserAdd]
test eax, eax
je 0x140001f53
cmp eax, 0x8b2
ja 0x140001ebb
je 0x140001eb2
sub eax, 5
je 0x140001ea9
sub eax, 0x8aa
je 0x140001ea0
cmp eax, 1
jne 0x140001ec7
lea rax, str.The_user_account_already_exists.
jmp 0x140001ee0
lea rax, str.The_group_already_exists.
jmp 0x140001ee0
lea rax, str.Access_Denied.
jmp 0x140001ee0
lea rax, str.The_operation_is_allowed_only_on_the_primary_domain_controller_of_the_domain.
jmp 0x140001ee0
sub eax, 0x8c5
je 0x140001ed9
cmp eax, 0x6a
je 0x140001ed0
lea rax, str.Unknown_error.
jmp 0x140001ee0
lea rax, str.The_computer_name_is_invalid.
jmp 0x140001ee0
lea rax, str.The_password_is_too_short_or_not_complex_enough.
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x150]
lea rax, [rbp + 0x50]
mov edx, 0x3ff
lea r8, str.The_service_user_account__s_s_could_not_be_created:__s_n
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x8f0]
call fcn.1400010d0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [rbp + 0x8f0]
call fcn.140001080
mov eax, 1
jmp 0x140001f8d
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea r9, [rbp + 0x50]
lea r8, [rbp + 0x150]
lea rdx, str.User_account__s_s_already_exists._n
call fcn.140001080
lea r8, [rbp + 0x8f0]
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x150]
call fcn.140001620
test al, al
je 0x140001f0d
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rbx]
lea rdx, str._s_ran_to_completion_n
mov rcx, rax
call fcn.140001080
xor eax, eax
mov rdi, qword [rsp + 0xe10]
mov rcx, qword [rbp + 0xcf0]
xor rcx, rsp
call fcn.140001fd0
mov rbx, qword [rsp + 0xe20]
add rsp, 0xe00
pop rbp
ret