Function at 0x1400792d0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x120
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x14017c430]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov r14, qword [0x140183698]
mov ecx, reloc.WS2_32.dll_recv
call fcn.1400d5224
mov rsi, rax
mov qword [rsp + 0x50], rax
xor edi, edi
test rax, rax
je 0x140079337
mov qword [rax], 0xffffffff80000002
mov qword [rax + 8], rdi
jmp 0x14007933a
mov rsi, rdi
test rsi, rsi
je 0x14007939b
lea r13, [rsi + 8]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14012b4c0]
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1400793a2
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [r13]
test rcx, rcx
je 0x140079393
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [r13], rdi
mov rcx, rsi
call fcn.1400d4d78
xor eax, eax
jmp 0x1400795b9
mov qword [rsp + 0x80], rdi
mov edx, 0x400
lea rcx, [rsp + 0x80]
call fcn.14001c170
nop
mov ebp, 4
mov r12, qword [0x140183698]
add r12, 0x1648
mov qword [rsp + 0x50], r12
lea r15, vtable.CLockMgr_class_CMutexWrapper_.0
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r12
mov dword [rsp + 0x68], 1
or ebx, 0xffffffff
cmp qword [r12], 0
je 0x140079415
call qword [sym.imp.USER32.dll_InSendMessage]
mov ecx, 0x2710
test eax, eax
cmovne ebx, ecx
mov edx, ebx
mov rcx, qword [r12]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
mov rbx, qword [r14 + 0x278]
cmp rbx, qword [r14 + 0x280]
je 0x14007952c
mov r15d, edi
nop dword [rax]
mov rax, qword [rbx]
mov ecx, dword [rax - 0x10]
lea r12d, [rcx + rcx]
mov ecx, ebp
mov rax, qword [rsp + 0x80]
mov dword [rcx + rax], r12d
add ebp, 4
mov rax, qword [rbx]
cmp dword [rax - 8], 1
jle 0x14007945f
mov edx, dword [rax - 0x10]
mov rcx, rbx
call fcn.140001fb0
mov r8d, r12d
mov ecx, ebp
add rcx, qword [rsp + 0x80]
mov rdx, qword [rbx]
call fcn.1400d5d30
add ebp, r12d
mov ecx, dword [rbx + 0x18]
mov rax, qword [rsp + 0x80]
mov dword [rbp + rax], ecx
add ebp, 4
lea edx, [rbp + 0x400]
lea rcx, [rsp + 0x80]
call fcn.140079f40
add rbx, 0x20
inc r15d
cmp rbx, qword [r14 + 0x280]
jne 0x140079430
mov r12, qword [rsp + 0x50]
mov rax, qword [rsp + 0x80]
mov dword [rax], r15d
or rcx, 0xffffffffffffffff
test ebp, ebp
je 0x1400794f3
mov rdx, qword [rsp + 0x80]
mov r8d, ebp
lea r9, [0x14017e9a4]
cmp rcx, 4
jl 0x1400794e1
mov rcx, rdi
jmp 0x1400794e4
inc rcx
movzx eax, byte [rcx + r9]
xor byte [rdx], al
inc rdx
dec r8
jne 0x1400794d6
mov dword [rsp + 0x28], ebp
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
lea rdx, str.servUsers
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14007955d
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14007955d
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
mov r9d, 3
xor r8d, r8d
lea rdx, str.servUsers
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140079564
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140079564
lea r15, vtable.CLockMgr_class_CMutexWrapper_.0
mov rcx, qword [r13]
test rcx, rcx
je 0x140079577
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [r13], rdi
mov rcx, rsi
call fcn.1400d4d78
nop
mov qword [rsp + 0x58], r15
mov rcx, qword [r12]
test rcx, rcx
je 0x140079595
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop
lea rcx, [rsp + 0x88]
cmp qword [rsp + 0x80], rcx
je 0x1400795b4
lea rcx, [rsp + 0x80]
call fcn.140043680
mov eax, 1
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.1400d4d90
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret