Function at 0x180003210
Capabilities:
Create process on windows
Get common file path
Get system information on windows
Print debug messages

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x2f8]
sub rsp, 0x3f0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1800b37f0]
xor rax, rsp
mov qword [rbp + 0x2e0], rax
mov rbx, rcx
xor esi, esi
mov word [rbp + 0xd0], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0xd2]
call fcn.18003d9a0
mov edx, 0x104
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x180003522
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], rsi
mov word [rbp - 0x30], si
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0xd0]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0xd0]
lea rcx, [rbp - 0x30]
call fcn.180007540
nop
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
mov rax, qword [rbp - 0x20]
cmp word [rcx + rax*2 - 2], 0x5c
je 0x1800032e8
lea r8d, [rsi + 1]
lea rdx, [0x1800895dc]
lea rcx, [rbp - 0x30]
call fcn.1800096d0
mov rax, qword [0x1800c75d8]
test rax, rax
jne 0x18000330d
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1800c75d8], rax
test rax, rax
je 0x18000334b
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800c75e0], rax
lea rcx, [rbp + 0x98]
test rax, rax
je 0x180003334
call rax
jmp 0x18000333a
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [rbp + 0x98], 9
lea rdx, str.SysWOW64_
je 0x180003352
lea rdx, str.System32_
mov r8d, 9
lea rcx, [rbp - 0x30]
call fcn.1800096d0
lea r8, [rbp - 0x30]
lea rdx, [0x180089720]
lea rcx, [rbp + 0x48]
call fcn.18000c220
nop
lea r8, str.regsvr32.exe_
mov rdx, rax
lea rcx, [rbp - 8]
call fcn.18000c1b0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.18000c150
nop
cmp qword [rbp + 0x10], 8
jb 0x1800033aa
mov rcx, qword [rbp - 8]
call fcn.18003ad20
mov qword [rbp + 0x10], 7
mov qword [rbp + 8], rsi
mov word [rbp - 8], si
cmp qword [rbp + 0x60], 8
jb 0x1800033ca
mov rcx, qword [rbp + 0x48]
call fcn.18003ad20
mov qword [rbp + 0x60], 7
mov qword [rbp + 0x58], rsi
mov word [rbp + 0x48], si
lea r8, [rbp + 0x20]
lea rdx, str._PDFWATERMARK_
lea rcx, [rbp + 0x98]
call fcn.18000c220
nop
lea r8, [0x180089724]
mov rdx, rax
lea rcx, [rbp + 0x70]
call fcn.18000c1b0
nop
cmp qword [rbp + 0xb0], 8
jb 0x18000341c
mov rcx, qword [rbp + 0x98]
call fcn.18003ad20
lea rcx, [rbp + 0x70]
cmp qword [rbp + 0x88], 8
cmovae rcx, qword [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp qword [rbp + 0x88], 8
jb 0x180003446
mov rcx, qword [rbp + 0x70]
call fcn.18003ad20
cmp qword [rbp + 0x30], 0
ja 0x180003454
mov edi, esi
jmp 0x1800034ee
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0x60]
call fcn.18003d9a0
mov dword [rsp + 0x60], 0x68
mov dword [rbp - 0x64], 1
mov word [rbp - 0x60], si
xor eax, eax
mov qword [rbp - 8], rax
mov qword [rbp], rax
mov qword [rbp + 8], rax
lea rdx, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae rdx, qword [rbp + 0x20]
lea rax, [rbp - 8]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
or edx, 0xffffffff
mov rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test edi, edi
je 0x1800034ee
mov rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rbp + 0x38], 8
jb 0x1800034fe
mov rcx, qword [rbp + 0x20]
call fcn.18003ad20
mov qword [rbp + 0x38], 7
mov qword [rbp + 0x30], rsi
mov word [rbp + 0x20], si
cmp qword [rbp - 0x18], 8
jb 0x18000351e
mov rcx, qword [rbp - 0x30]
call fcn.18003ad20
mov eax, edi
jmp 0x180003524
mov eax, esi
mov rcx, qword [rbp + 0x2e0]
xor rcx, rsp
call fcn.18003aad0
lea r11, [rsp + 0x3f0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret