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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x900
mov rax, qword [0x10004a110]
xor rax, rsp
mov qword [rsp + 0x8f0], rax
mov rsi, qword [rsp + 0x960]
xor r15d, r15d
mov r13, r8
mov r14, rcx
mov rbp, r9
mov r9, rdx
mov ebx, 0x121
lea r8, [0x100020708]
lea rcx, [rsp + 0x6a0]
mov rdx, rbx
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x54], r15d
mov dword [rsp + 0x50], 1
mov r12d, r15d
call fcn.10002e570
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov rdx, r14
mov rcx, 0xffffffff80000000
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, r15d
jne 0x100038c8d
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x54]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
lea rdx, [0x100020720]
xor r8d, r8d
mov dword [rsp + 0x54], 0x244
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r15d
jne 0x100038b7b
cmp dword [rsp + 0x50], 1
je 0x100038baa
mov rcx, qword [rsp + 0x58]
lea rax, [0x100001db4]
lea rdx, [0x100020720]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x54]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x54], 0x244
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r15d
jne 0x100038bf9
cmp dword [rsp + 0x50], 1
jne 0x100038bf9
lea rax, [rsp + 0x70]
cmp rax, r15
je 0x100038bf9
cmp r15w, word [rsp + 0x70]
jne 0x100038c48
lea r8, [0x100020740]
lea rcx, [rsp + 0x70]
mov r9, r14
mov rdx, rbx
call fcn.10002e570
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x70]
mov r9d, 1
xor r8d, r8d
repne scasw ax, word [rdi]
xor edx, edx
not rcx
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
repne scasw ax, word [rdi]
lea rdx, [0x100020760]
xor r8d, r8d
not rcx
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbp
mov ebp, 1
mov r9d, ebp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100038c92
mov ebp, 1
lea r8, [0x10001eb38]
lea rcx, [rsp + 0x2c0]
mov r9, r14
mov edx, 0xc7
call fcn.10002e570
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
lea rdx, [rsp + 0x2c0]
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, r15d
jne 0x1000390c9
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x54]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
xor edx, edx
mov word [rsp + 0x70], r15w
mov dword [rsp + 0x54], 0x244
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x50]
cmp eax, r15d
jne 0x100038ee8
cmp ecx, ebp
je 0x100038d44
cmp ecx, 2
jne 0x100038ee8
lea rax, [rsp + 0x70]
cmp rax, r15
je 0x100038ee8
cmp r15w, word [rsp + 0x70]
je 0x100038ee8
lea r9, [0x10001edf0]
lea r8, [0x100020780]
lea rcx, [rsp + 0x2c0]
mov edx, 0xc7
mov edi, r15d
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x20], r14
call fcn.10002e570
mov rcx, qword [0x10004d400]
lea r11, [rsp + 0x60]
lea rdx, [rsp + 0x2c0]
mov r9d, ebp
xor r8d, r8d
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, r15d
jne 0x100038e25
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x54]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x2c0]
lea rdx, [0x1000204b0]
xor r8d, r8d
mov dword [rsp + 0x54], 0x190
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r15d
jne 0x100038e15
cmp dword [rsp + 0x50], ebp
jne 0x100038e15
lea rdx, [0x1000204d8]
lea rcx, [rsp + 0x2c0]
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, r15d
setne dil
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, r15d
jne 0x100038e3d
lea r8, [rsp + 0x70]
mov rdx, r13
xor ecx, ecx
call fcn.100037964
cmp eax, r15d
je 0x100038f59
lea rdx, [rsp + 0x70]
lea rax, [rsp + 0x450]
lea rcx, [rsp + 0x450]
sub rdx, rax
lea rax, [rbx + 0x7ffffedd]
cmp rax, r15
je 0x100038e77
movzx eax, word [rdx + rcx]
cmp ax, r15w
je 0x100038e77
mov word [rcx], ax
add rcx, 2
sub rbx, rbp
jne 0x100038e55
cmp rbx, r15
jne 0x100038e80
sub rcx, 2
mov word [rcx], r15w
lea rcx, [rsp + 0x450]
call qword [sym.imp.msvcrt.dll__wcslwr]
lea rcx, [rsp + 0x450]
call fcn.100037734
cmp eax, r15d
jne 0x100038ee4
mov r9d, dword [rsp + 0x50]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x70]
lea rdx, [0x1000206c8]
xor r8d, r8d
repne scasw ax, word [rdi]
not rcx
sub rcx, rbp
lea eax, [rcx + rcx + 2]
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [rsp + 0x50]
mov r12d, ebp
cmp ecx, ebp
je 0x100038ef4
cmp ecx, 2
jne 0x100038f1a
lea rax, [rsp + 0x70]
cmp rax, r15
je 0x100038f12
lea rdx, [rsp + 0x6a0]
lea rcx, [rsp + 0x70]
call fcn.1000378ac
jmp 0x100038f15
mov eax, r15d
cmp eax, r15d
jne 0x100038f59
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x6a0]
repne scasw ax, word [rdi]
mov r9d, ebp
xor r8d, r8d
not rcx
xor edx, edx
sub rcx, rbp
lea eax, [rcx + rcx + 2]
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x6a0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp r12d, r15d
je 0x1000390c9
cmp rsi, r15
je 0x1000390c9
cmp r15w, word [rsi]
je 0x1000390c9
lea r8, [0x1000206e8]
lea rcx, [rsp + 0x2c0]
mov r9, r14
mov edx, 0xc7
call fcn.10002e570
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
lea rdx, [rsp + 0x2c0]
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, r15d
jne 0x1000390c9
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x54]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x54], 0x244
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r15d
jne 0x100039089
cmp dword [rsp + 0x50], ebp
je 0x100039024
cmp dword [rsp + 0x50], 2
jne 0x100039089
lea rax, [rsp + 0x70]
cmp rax, r15
je 0x100039089
cmp r15w, word [rsp + 0x70]
je 0x100039089
lea rdx, [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, r15d
je 0x100039089
mov r9d, dword [rsp + 0x50]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x70]
lea rdx, [0x1000206c8]
xor r8d, r8d
repne scasw ax, word [rdi]
not rcx
sub rcx, rbp
lea eax, [rcx + rcx + 2]
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
mov r9d, 2
xor r8d, r8d
not rcx
xor edx, edx
sub rcx, rbp
lea eax, [rcx + rcx + 2]
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x8f0]
xor rcx, rsp
call fcn.1000475f0
mov rbx, qword [rsp + 0x950]
add rsp, 0x900
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret