Function at 0x14003803c
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp + 0xf], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x1401411c8]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rbx, r8
mov r15, rdx
mov r13, rcx
mov qword [rbp + 0x17], rbx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
xor r14d, r14d
mov qword [rbp - 0x19], r14
movdqu xmmword [rbp - 9], xmm0
mov qword [rbp + 7], r14
mov qword [rbp - 0x31], r14
mov rax, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 8
jb 0x1400380a8
mov rdx, qword [r8]
jmp 0x1400380ab
mov rdx, rbx
lea r8d, [rax + rax]
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x29]
lea rcx, [rbp - 0x31]
call fcn.14003f79c
mov esi, eax
mov rax, qword [rbp - 0x29]
mov qword [rbp - 0x11], rax
mov r12, qword [rbp - 9]
test esi, esi
js 0x14003824c
mov qword [rbp - 0x39], r14
lea rdx, [r13 + 0x58]
cmp qword [rdx + 0x18], 8
jb 0x1400380ed
mov rdx, qword [rdx]
mov qword [rsp + 0x40], r14
lea rax, [rbp - 0x39]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov edi, 2
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400381dc
mov rax, qword [r15 + 0x10]
cmp qword [r15 + 0x18], 8
jb 0x140038139
mov rcx, qword [r15]
jmp 0x14003813c
mov rcx, r15
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.UserName
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov r14d, eax
test eax, eax
jne 0x1400381c6
mov rax, qword [rbp - 0x21]
mov rcx, qword [rbp - 0x29]
sub rax, rcx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
lea r9d, [r14 + 3]
xor r8d, r8d
lea rdx, str.Password
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov r14d, eax
test eax, eax
jne 0x1400381c6
mov rax, qword [rbp - 1]
sub rax, r12
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r12
lea r9d, [r14 + 3]
xor r8d, r8d
lea rdx, str.Salt
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov r14d, eax
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test r14d, r14d
je 0x140038290
xor r14d, r14d
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
cmp dword [0x140142444], edi
jb 0x140038213
mov r8d, esi
lea rdx, str.Failed_save_credentials_to_registry:_0x_x
mov ecx, edi
call fcn.14003929c
lea rax, section..data
mov rcx, qword [section..data]
cmp rcx, rax
je 0x140038293
test byte [rcx + 0x1c], 8
je 0x140038293
cmp byte [rcx + 0x19], dil
jb 0x140038293
mov edx, ntohs
mov r9d, esi
lea r8, [0x1400fe2a0]
mov rcx, qword [rcx + 0x10]
call fcn.140007608
jmp 0x140038293
mov edi, 2
cmp dword [0x140142444], edi
jb 0x14003826a
mov r8d, esi
lea rdx, str.Failed_hash_credentials:_0x_x
mov ecx, edi
call fcn.14003929c
lea rax, section..data
mov rcx, qword [section..data]
cmp rcx, rax
je 0x140038293
test byte [rcx + 0x1c], 8
je 0x140038293
cmp byte [rcx + 0x19], dil
jb 0x140038293
mov edx, ntohs
jmp 0x140038237
xor r14d, r14d
test esi, esi
js 0x14003831f
lea rcx, [r13 + 8]
cmp rcx, r15
je 0x1400382b3
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, r15
call fcn.140006c68
lea rdi, [r13 + 0x28]
lea rax, [rbp - 0x29]
cmp rdi, rax
je 0x1400382e9
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400382ce
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov rax, qword [rbp - 0x29]
mov qword [rdi], rax
mov rax, qword [rbp - 0x21]
mov qword [rdi + 8], rax
mov rax, qword [rbp - 0x19]
mov qword [rdi + 0x10], rax
mov qword [rbp - 0x11], r14
lea rdi, [r13 + 0x40]
lea rax, [rbp - 9]
cmp rdi, rax
je 0x14003831a
mov rcx, qword [rdi]
test rcx, rcx
je 0x140038304
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rdi], r12
mov rax, qword [rbp - 1]
mov qword [rdi + 8], rax
mov rax, qword [rbp + 7]
mov qword [rdi + 0x10], rax
mov r12, r14
mov byte [r13 + 0x78], 1
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x140038334
xor edx, edx
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptReleaseContext]
mov qword [rbp - 0x31], r14
test r12, r12
je 0x140038343
mov rcx, r12
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop
mov rax, qword [rbp - 0x11]
test rax, rax
je 0x140038356
mov rcx, rax
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop
cmp qword [rbx + 0x18], 8
jb 0x140038366
mov rcx, qword [rbx]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
mov word [rbx], r14w
mov eax, esi
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1400c20a0
mov rbx, qword [rsp + 0x108]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret