Function at 0x1400012e0
Capabilities:
Terminate process

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x360]
sub rsp, 0x460
mov rax, qword [0x14001c228]
xor rax, rsp
mov qword [rbp + 0x350], rax
movups xmm0, xmmword [str.htpasswd.tmp.XXXXXX]
mov eax, dword [0x140012b08]
xor ebx, ebx
mov dword [rsp + 0x50], ecx
xor r8d, r8d
movups xmmword [rbp + 0x30], xmm0
mov qword [rsp + 0x38], rdx
lea rdx, [rsp + 0x38]
xorps xmm0, xmm0
mov qword [rsp + 0x58], rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x40], rbx
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x60], rbx
mov r13d, ebx
mov dword [rbp + 0x40], eax
mov edi, ebx
mov dword [rsp + 0x48], ebx
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x6c], rbx
mov dword [rbp - 0x64], ebx
call fcn.140007f20
lea rcx, [0x140001af0]
call fcn.1400105e0
xor r9d, r9d
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call fcn.140008820
mov rdx, qword [rsp + 0x30]
lea rcx, [0x140001b30]
call fcn.1400086a0
mov rdx, qword [rsp + 0x30]
lea rcx, [0x14001cba8]
call fcn.14000a740
mov rax, qword [rsp + 0x30]
lea r9, [rsp + 0x48]
mov rdx, qword [rsp + 0x38]
lea r8, [rsp + 0x68]
mov ecx, dword [rsp + 0x50]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x70], 2
call fcn.140001010
mov r12d, dword [rsp + 0x48]
mov esi, r12d
mov r14, qword [rsp + 0x40]
and esi, 2
jne 0x14000154b
mov r9, qword [rsp + 0x30]
lea rcx, [rbp - 0x50]
mov r8d, 0x8000
mov rdx, r14
call fcn.140009470
test eax, eax
jne 0x1400014bb
cmp dword [rbp - 0x40], 1
jne 0x1400014bb
mov rax, qword [rsp + 0x30]
lea edi, [rbx + 1]
mov qword [rsp + 0x20], rax
mov r9d, 0xfff
mov qword [rsp + 0x40], rbx
mov rdx, r14
lea rcx, [rsp + 0x40]
test r12b, 8
jne 0x140001484
lea r8d, [rbx + 3]
call fcn.14000a2a0
test eax, eax
je 0x140001541
mov r8, qword [rsp + 0x38]
lea rdx, str._s:_cannot_open_file__s_for_read_write_access_r_n
mov rcx, qword [0x14001cba8]
mov r9, r14
mov r8, qword [r8]
call fcn.14000b100
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov r8d, edi
call fcn.14000a2a0
test eax, eax
je 0x140001541
mov r8, qword [rsp + 0x38]
lea rdx, str._s:_cannot_open_file__s_for_read_access_r_n
mov rcx, qword [0x14001cba8]
mov r9, r14
mov r8, qword [r8]
call fcn.14000b100
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
test r12b, 1
jne 0x1400014eb
mov r8, qword [rsp + 0x38]
lea rdx, str._s:_cannot_modify_file__s__use__c_to_create_it_r_n
mov rcx, qword [0x14001cba8]
mov r9, r14
mov r8, qword [r8]
call fcn.14000b100
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rax, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
mov r9d, 0xfff
mov qword [rsp + 0x20], rax
mov r8d, 6
mov qword [rsp + 0x40], rbx
mov rdx, r14
call fcn.14000a2a0
test eax, eax
je 0x140001541
mov r8, qword [rsp + 0x38]
lea rdx, str._s:_cannot_create_file__s_r_n
mov rcx, qword [0x14001cba8]
mov r9, r14
mov r8, qword [r8]
call fcn.14000b100
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [rsp + 0x40]
call fcn.14000a260
mov qword [rsp + 0x4b0], r15
mov r15, qword [rbp - 0x60]
test r12b, 0xc
jne 0x140001637
lea rax, [rbp + 0x250]
mov qword [rbp - 0x80], pe_nt_image_headers64
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x78], rax
call fcn.140001db0
mov ebx, eax
test eax, eax
je 0x140001597
mov r9, qword [rsp + 0x70]
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
jmp 0x1400015f7
mov rcx, qword [rsp + 0x68]
lea rax, [0x140012550]
xor ebx, ebx
lea r9, [rbp + 0x250]
mov qword [rsp + 0x28], rbx
lea r8, [0x140012554]
mov rdx, r15
mov qword [rsp + 0x20], rax
call fcn.140009030
mov qword [rsp + 0x78], rax
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], bl
jne 0x1400015d1
mov qword [rbp - 0x80], rcx
cmp rcx, 0x100
jb 0x14000161b
lea r9, str.resultant_record_too_long
mov ebx, 5
mov qword [rsp + 0x70], r9
mov r8, qword [rsp + 0x38]
lea rdx, str._s:__s_r_n
mov rcx, qword [0x14001cba8]
mov r8, qword [r8]
call fcn.14000b100
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
test esi, esi
je 0x140001637
mov rdx, rax
lea rcx, str._s_r_n
call fcn.140001a90
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov esi, r12d
and esi, 8
jne 0x1400016e1
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.14000bc70
test eax, eax
je 0x14000167b
mov r8, qword [rsp + 0x38]
lea rdx, str._s:_could_not_determine_temp_dir_r_n
mov rcx, qword [0x14001cba8]
mov r8, qword [r8]
call fcn.14000b100
lea ecx, [rsi + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov r8, qword [rsp + 0x60]
lea r9, [rbp + 0x30]
mov rcx, qword [rsp + 0x30]
lea rdx, str._s__s
call fcn.140008bd0
mov r9, qword [rsp + 0x30]
lea rcx, [0x14001c290]
xor r8d, r8d
mov qword [rsp + 0x60], rax
mov rdx, rax
call fcn.14000ba80
test eax, eax
je 0x1400016e1
mov r8, qword [rsp + 0x38]
lea rdx, str._s:_unable_to_create_temporary_file__s_r_n
mov r9, qword [rsp + 0x60]
mov rcx, qword [0x14001cba8]
mov r8, qword [r8]
call fcn.14000b100
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
test edi, edi
je 0x14000197f
test r12b, 1
jne 0x14000197f
mov rax, qword [rsp + 0x30]
lea rcx, [rsp + 0x58]
mov r9d, 0xfff
mov qword [rsp + 0x20], rax
mov r8d, 0x81
mov rdx, r14
call fcn.14000a2a0
test eax, eax
je 0x140001744
mov r8, qword [rsp + 0x38]
lea rdx, str._s:_unable_to_read_file__s_r_n
mov rcx, qword [0x14001cba8]
mov r9, r14
mov r8, qword [r8]
call fcn.14000b100
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov r8, qword [rsp + 0x58]
lea rcx, [rbp + 0x50]
mov edx, pe_nt_image_headers64
call fcn.14000ae80
test eax, eax
jne 0x140001970
nop
mov rcx, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbp + rcx + 0x50]
mov byte [rbp + rcx + 0x150], al
lea rcx, [rcx + 1]
test al, al
jne 0x140001770
movzx ecx, byte [rbp + 0x150]
lea rbx, [rbp + 0x150]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
je 0x1400017b1
nop dword [rax]
movzx ecx, byte [rbx + 1]
inc rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
jne 0x1400017a0
movzx eax, byte [rbx]
test al, al
je 0x1400018a2
cmp al, 0x23
je 0x1400018a2
mov edx, 0x3a
mov rcx, rbx
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x14000193c
mov byte [rax], 0
mov rcx, r15
sub rbx, r15
movzx r8d, byte [rcx]
movzx edx, byte [rcx + rbx]
sub r8d, edx
jne 0x1400017f7
inc rcx
test edx, edx
jne 0x1400017e3
test r8d, r8d
jne 0x1400018a2
inc r13d
test r12b, 4
je 0x140001821
mov rcx, qword [0x14001cba8]
lea rdx, str.Deleting
call fcn.14000b100
jmp 0x1400018b2
test esi, esi
je 0x140001888
lea rbx, [rax + 1]
mov rcx, rbx
lea rdx, [0x140012550]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcspn]
test rax, rax
je 0x14000191a
mov byte [rax + rbx], 0
mov rcx, qword [rbp - 0x78]
test rcx, rcx
jne 0x140001863
lea rcx, [rsp + 0x68]
call fcn.140001b90
mov edi, eax
test eax, eax
jne 0x1400018d4
mov rcx, qword [rbp - 0x78]
mov rdx, rbx
call fcn.1400022f0
mov dword [rsp + 0x48], eax
test eax, eax
je 0x1400018b2
cmp eax, 0x11188
jne 0x1400018db
lea rax, str.password_verification_failed
mov edi, 3
jmp 0x1400018f6
mov rcx, qword [0x14001cba8]
lea rdx, str.Updating
call fcn.14000b100
mov rdx, qword [rsp + 0x78]
jmp 0x1400018a6
lea rdx, [rbp + 0x50]
mov rcx, qword [0x14001c290]
call fcn.1400021f0
mov r8, qword [rsp + 0x58]
lea rcx, [rbp + 0x50]
mov edx, pe_nt_image_headers64
call fcn.14000ae80
test eax, eax
jne 0x140001970
xor ebx, ebx
jmp 0x140001760
mov rax, qword [rsp + 0x70]
jmp 0x1400018fb
mov rcx, qword [rsp + 0x68]
lea r8, [rsp + 0x48]
lea rdx, str.Could_not_verify_password:__pm
call fcn.140008bd0
mov edi, 9
mov qword [rsp + 0x70], rax
mov rcx, qword [0x14001cba8]
lea rdx, str._s_r_n
mov r8, rax
call fcn.14000b100
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [0x14001cba8]
lea rdx, str.Empty_hash_for_user__s_r_n
mov r8, r15
call fcn.14000b100
mov ecx, 7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov r8, qword [rsp + 0x38]
lea rdx, str._s:_The_file__s_does_not_appear_to_be_a_valid_htpasswd_file._r_n
mov rcx, qword [0x14001cba8]
mov r9, r14
mov r8, qword [r8]
call fcn.14000b100
mov rcx, qword [rsp + 0x58]
call fcn.14000a260
mov ecx, 7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [rsp + 0x58]
call fcn.14000a260
test r13d, r13d
jne 0x1400019e0
mov rcx, qword [0x14001cba8]
test r12b, 4
je 0x1400019a4
mov r8, r15
lea rdx, str.User__s_not_found_r_n
call fcn.14000b100
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
test esi, esi
je 0x1400019c3
mov r8, r15
lea rdx, str.User__s_not_found_r_n
call fcn.14000b100
mov ecx, 6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rdx, str.Adding
call fcn.14000b100
mov rdx, qword [rsp + 0x78]
mov rcx, qword [0x14001c290]
call fcn.1400021f0
mov rcx, qword [0x14001cba8]
mov r8, r15
test esi, esi
je 0x140001a03
lea rdx, str.Password_for_user__s_correct._r_n
call fcn.14000b100
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rdx, str.password_for_user__s_r_n
call fcn.14000b100
mov r9, qword [rsp + 0x30]
mov r8d, 0xfff
mov rcx, qword [rsp + 0x60]
mov rdx, r14
call fcn.14000abe0
test eax, eax
je 0x140001a55
mov r8, qword [rsp + 0x38]
lea rdx, str._s:_unable_to_update_file__s_r_n
mov rcx, qword [0x14001cba8]
mov r9, r14
mov r8, qword [r8]
call fcn.14000b100
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [0x14001c290]
call fcn.14000a260
mov r15, qword [rsp + 0x4b0]
xor eax, eax
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.140010690
add rsp, 0x460
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret