Function at 0x140034840
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.dingtalkscheme
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.dingtalkscheme
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1400348e2
mov rdx, qword [r15]
sub rdx, 0x18
mov rdi, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400348d1
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, [0x140281a50]
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 0x1400348b0
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 0x1400348b0
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 0x1400348b0
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rbp - 0x18]
mov qword [rbp + 0x58], rax
call fcn.140004c80
mov rcx, rax
test rax, rax
je 0x140034bb1
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rbp + 0x60], rax
lea rdx, [0x140286ab4]
mov rdi, 0xffffffffffffffff
cmp rdx, 0x10000
jae 0x140034a3e
movzx edx, dx
lea rcx, [rbp + 0x60]
call fcn.140005650
jmp 0x140034a58
mov rax, rdi
inc rax
cmp word [rdx + rax*2], 0
jne 0x140034a41
mov r8d, eax
lea rcx, [rbp + 0x60]
call fcn.14000ae10
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 0x140034bbc
test r14, r14
je 0x140034a8d
mov rdx, rax
mov rcx, r14
call fcn.140253bac
mov r13, rax
mov ecx, 0x7fffffff
sub ecx, r13d
cmp ecx, esi
jl 0x140034bbc
add esi, r13d
js 0x140034bbc
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x140034ac6
mov edx, esi
lea rcx, [rbp + 0x60]
call fcn.140005960
mov rbx, qword [rbp + 0x60]
mov eax, dword [rbp + 0x50]
cmp r12, rax
ja 0x140034ad2
lea r14, [rbx + r12*2]
lea rcx, [rbx + rax*2]
movsxd r8, r13d
add r8, r8
je 0x140034b09
test rcx, rcx
je 0x140034af9
test r14, r14
je 0x140034af2
mov rdx, r14
call fcn.1402430d0
jmp 0x140034b09
xor edx, edx
call fcn.140243780
call fcn.14025224c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14024809c
cmp esi, dword [rbx - 0xc]
jg 0x140034bbc
mov dword [rbx - 0x10], esi
movsxd rax, esi
xor ecx, ecx
mov word [rbx + rax*2], cx
lea rdx, [0x140288d70]
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], cx
jne 0x140034b30
mov r8d, eax
lea rcx, [rbp + 0x60]
call fcn.14000cce0
mov rbx, qword [rbp + 0x60]
mov edx, dword [rbx - 0x10]
lea esi, [rdx + rdx]
cmp dword [rbx - 8], 1
jle 0x140034b62
lea rcx, [rbp + 0x60]
call fcn.140004b60
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 0x140034ba5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
mov rdx, qword [r15]
sub rdx, 0x18
jmp 0x1400348be
mov ecx, 0x80004005
call fcn.140004b00
nop
mov ecx, 0x80070057
call fcn.140004b00
int3