Function at 0x1400380e0
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x68
mov r15, rcx
lea rdx, str.dingtalk
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor r13d, r13d
mov qword [rsp + 0x40], r13
lea rax, [rbp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.dingtalk
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140038182
mov rdx, qword [r15]
sub rdx, 0x18
mov rdi, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140038171
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov dword [rsp + 0x28], r13d
lea rax, [0x140284a60]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.URL_Protocol
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov qword [rsp + 0x40], r13
lea rax, [rbp - 0x18]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Shell
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x18]
mov qword [rbp + 0x58], rcx
test ebx, ebx
jne 0x140038150
mov qword [rsp + 0x40], r13
lea rax, [rbp - 0x18]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Open
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140038150
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x18]
mov qword [rbp + 0x58], rcx
mov qword [rsp + 0x40], r13
lea rax, [rbp - 0x18]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Command
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140038150
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rbp - 0x18]
mov qword [rbp + 0x58], rax
call fcn.140004ca0
mov rcx, rax
test rax, rax
je 0x140038451
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rbp + 0x60], rax
lea rdx, [0x140289fc4]
mov rdi, 0xffffffffffffffff
cmp rdx, 0x10000
jae 0x1400382de
movzx edx, dx
lea rcx, [rbp + 0x60]
call fcn.140005670
jmp 0x1400382f8
mov rax, rdi
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400382e1
mov r8d, eax
lea rcx, [rbp + 0x60]
call fcn.14000ae30
nop
mov r14, qword [r15]
movsxd rax, dword [r14 - 0x10]
mov r12, r14
mov rbx, qword [rbp + 0x60]
sub r12, rbx
sar r12, 1
mov esi, dword [rbx - 0x10]
mov dword [rbp + 0x50], esi
test eax, eax
js 0x14003845c
test r14, r14
je 0x14003832d
mov rdx, rax
mov rcx, r14
call fcn.14025660c
mov r13, rax
mov ecx, 0x7fffffff
sub ecx, r13d
cmp ecx, esi
jl 0x14003845c
add esi, r13d
js 0x14003845c
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x140038366
mov edx, esi
lea rcx, [rbp + 0x60]
call fcn.140005980
mov rbx, qword [rbp + 0x60]
mov eax, dword [rbp + 0x50]
cmp r12, rax
ja 0x140038372
lea r14, [rbx + r12*2]
lea rcx, [rbx + rax*2]
movsxd r8, r13d
add r8, r8
je 0x1400383a9
test rcx, rcx
je 0x140038399
test r14, r14
je 0x140038392
mov rdx, r14
call fcn.140245860
jmp 0x1400383a9
xor edx, edx
call fcn.140245f10
call fcn.1402549dc
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14024a82c
cmp esi, dword [rbx - 0xc]
jg 0x14003845c
mov dword [rbx - 0x10], esi
movsxd rax, esi
xor ecx, ecx
mov word [rbx + rax*2], cx
lea rdx, [0x14028c148]
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], cx
jne 0x1400383d0
mov r8d, eax
lea rcx, [rbp + 0x60]
call fcn.1400127b0
mov rbx, qword [rbp + 0x60]
mov edx, dword [rbx - 0x10]
lea esi, [rdx + rdx]
cmp dword [rbx - 8], 1
jle 0x140038402
lea rcx, [rbp + 0x60]
call fcn.140004b80
mov rbx, qword [rbp + 0x60]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140038445
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
mov rdx, qword [r15]
sub rdx, 0x18
jmp 0x14003815e
mov ecx, 0x80004005
call fcn.140004b20
nop
mov ecx, 0x80070057
call fcn.140004b20
int3