Function at 0x5622e0
Capabilities:
Persist via default file association registry key
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x650
mov qword [rsp + 0xa0], 0xfffffffffffffffe
xor r13d, r13d
mov dil, r13b
mov ebx, r13d
mov r14d, 0x100
lea rcx, [rsp + 0xa8]
call fcn.004d1424
nop
mov rdx, rax
lea rcx, [rsp + 0x158]
call fcn.00401f00
nop
mov r8, rax
lea rdx, [0x0079ea88]
lea rcx, [rsp + 0x1f8]
call fcn.00420494
nop
lea r8, str.___magnet__1
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.0040fd24
nop
lea rax, [rsp + 0x1f8]
mov rcx, qword [rsp + 0x240]
cmp rcx, rax
je 0x562397
cmp rcx, r13
je 0x562397
mov rax, qword [rsp + 0x1f8]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, r14
jbe 0x562391
call fcn.006a4944
jmp 0x562397
call fcn.006a3610
nop
lea rax, [rsp + 0x158]
mov rcx, qword [rsp + 0x1a0]
cmp rcx, rax
je 0x5623d5
cmp rcx, r13
je 0x5623d5
mov rax, qword [rsp + 0x158]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, r14
jbe 0x5623cf
call fcn.006a4944
jmp 0x5623d5
call fcn.006a3610
nop
lea rax, [rsp + 0xa8]
mov rcx, qword [rsp + 0xd0]
cmp rcx, rax
je 0x56240b
cmp rcx, r13
je 0x56240b
mov rdx, qword [rsp + 0xa8]
sub rdx, rcx
cmp rdx, r14
jbe 0x562406
call fcn.006a4944
jmp 0x56240b
call fcn.006a3610
mov word [rsp + 0x250], r13w
lea rax, str.adcShellOpenCommand
lea rbp, str.SoftwareClasses_adcShellOpenCommand
cmp ebx, r13d
cmovne rbp, rax
mov eax, ebx
neg eax
sbb rsi, rsi
add rsi, 0xffffffff80000001
lea rax, [rsp + 0x6a0]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, r13d
jne 0x5624ac
mov dword [rsp + 0x690], 0x400
lea rax, [rsp + 0x690]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x250]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x698]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x6a0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x6a0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, [rsp + 0x690]
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x108]
call fcn.004023b4
lea rdx, [rsp + 0x250]
mov rcx, qword [rsp + 0x150]
call fcn.006e454c
cmp eax, r13d
setne r12b
lea rax, [rsp + 0x108]
mov rcx, qword [rsp + 0x150]
cmp rcx, rax
je 0x562522
cmp rcx, r13
je 0x562522
mov rax, qword [rsp + 0x108]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, r14
jbe 0x56251d
call fcn.006a4944
jmp 0x562522
call fcn.006a3610
cmp r12b, r13b
je 0x5627fa
lea rax, [0x0079eef0]
lea rdx, str.SoftwareClasses_adc
cmp ebx, r13d
cmovne rdx, rax
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x6a0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov r12d, 0x20006
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, r13d
je 0x5625c1
lea rax, [rsp + 0x50]
mov rcx, qword [rsp + 0x98]
cmp rcx, rax
je 0x562833
cmp rcx, r13
je 0x562833
mov rdx, qword [rsp + 0x50]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
cmp rdx, r14
jbe 0x5625b7
call fcn.006a4944
jmp 0x562833
call fcn.006a3610
jmp 0x562833
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdx, str.URL:Direct_Connect_Protocol
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea eax, [rcx + rcx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x6a0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x28], 2
lea rdi, [0x0078dc30]
mov qword [rsp + 0x20], rdi
mov r9d, 1
xor r8d, r8d
lea rdx, str.URL_Protocol
mov rcx, qword [rsp + 0x6a0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x6a0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x6a0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
sub rdx, rcx
sar rdx, 1
lea eax, [rdx + rdx + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x6a0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x6a0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, str.adcDefaultIcon
lea rdx, str.SoftwareClasses_adcDefaultIcon
cmp ebx, r13d
cmovne rdx, rax
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x6a0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea rcx, [rsp + 0xd8]
call fcn.004d1424
nop
mov rdx, rax
lea rcx, [rsp + 0x1a8]
call fcn.00401f00
nop
lea rcx, [rsp + 0x50]
cmp rax, rcx
je 0x56273b
mov r8, qword [rax + 0x40]
mov rdx, qword [rax + 0x48]
lea rcx, [rsp + 0x50]
call fcn.00406d38
nop
lea rax, [rsp + 0x1a8]
mov rcx, qword [rsp + 0x1f0]
cmp rcx, rax
je 0x562779
cmp rcx, r13
je 0x562779
mov rax, qword [rsp + 0x1a8]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, r14
jbe 0x562773
call fcn.006a4944
jmp 0x562779
call fcn.006a3610
nop
lea rax, [rsp + 0xd8]
mov rcx, qword [rsp + 0x100]
cmp rcx, rax
je 0x5627af
cmp rcx, r13
je 0x5627af
mov rdx, qword [rsp + 0xd8]
sub rdx, rcx
cmp rdx, r14
jbe 0x5627aa
call fcn.006a4944
jmp 0x5627af
call fcn.006a3610
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
sub rax, rcx
sar rax, 1
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x6a0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x6a0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dil, 1
lea rax, [rsp + 0x50]
mov rcx, qword [rsp + 0x98]
cmp rcx, rax
je 0x562833
cmp rcx, r13
je 0x562833
mov rdx, qword [rsp + 0x50]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
cmp rdx, r14
jbe 0x56282e
call fcn.006a4944
jmp 0x562833
call fcn.006a3610
inc ebx
cmp ebx, 2
jl 0x56230d
cmp dil, r13b
jne 0x562859
xor r8d, r8d
lea rdx, [0x00889700]
mov rcx, qword [0x00862cd0]
call fcn.00415954
add rsp, 0x650
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret