Function at 0x140003848
Capabilities:
Check os version
Contain obfuscated stackstrings
Get common file path
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x104f0]
mov eax, 0x105f0
call fcn.140030360
sub rsp, rax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x10648], rbx
mov rax, qword [0x140052a10]
xor rax, rsp
mov qword [rbp + 0x104e0], rax
mov qword [rsp + 0x60], r8
mov rsi, rdx
mov r15, rcx
xor edi, edi
mov dword [rsp + 0x70], edi
mov ebx, VarUI4FromDisp
mov r8d, ebx
xor edx, edx
lea rcx, [rbp - 0x80]
call fcn.1400221f0
mov dword [rbp - 0x80], ebx
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rbp - 0x7c], 6
jb 0x140003cab
mov dword [rbp + 0x2a0], 0x680053
mov dword [rbp + 0x2a4], 0x6c0065
mov dword [rbp + 0x2a8], 0x33006c
lea ebx, [rdi + 0x32]
mov dword [rbp + 0x2ac], 0x2e0032
mov dword [rbp + 0x2b0], 0x6c0064
mov dword [rbp + 0x2b4], 0x6c
lea rcx, [rbp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x140003fe3
movdqa xmm0, xmmword [0x140048bc0]
movdqu xmmword [rbp + 0x2b8], xmm0
mov dword [rbp + 0x2c8], 0x68746150
mov byte [rbp + 0x2cc], 0
lea rdx, [rbp + 0x2b8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [r15 + 0x630], rax
test rax, rax
je 0x140003c9d
lea r9, [rsp + 0x78]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14003d8e0]
call rax
test eax, eax
js 0x140003c9d
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x1a0]
call fcn.1400221f0
lea rcx, [rbp + 0x1a0]
call fcn.14000a790
nop
mov dword [rbp - 0x80], 0x5c005c
mov dword [rbp - 0x7c], 0x44007b
mov dword [rbp - 0x78], 0x300032
mov dword [rbp - 0x74], 0x300032
mov dword [rbp - 0x70], 0x340044
mov dword [rbp - 0x6c], 0x2d0037
mov dword [rbp - 0x68], 0x300037
mov dword [rbp - 0x64], 0x440037
mov dword [rbp - 0x60], 0x34002d
mov dword [rbp - 0x5c], 0x320045
mov dword [rbp - 0x58], 0x2d0036
mov dword [rbp - 0x54], 0x340042
mov dword [rbp - 0x50], 0x390044
mov dword [rbp - 0x4c], 0x37002d
mov dword [rbp - 0x48], 0x390033
mov dword [rbp - 0x44], 0x340043
mov dword [rbp - 0x40], 0x340046
mov dword [rbp - 0x3c], 0x320043
mov dword [rbp - 0x38], 0x390045
mov dword [rbp - 0x34], 0x7d0041
mov dword [rbp - 0x30], 0x5c005c
mov dword [rbp - 0x2c], 0x46007b
mov dword [rbp - 0x28], 0x430042
mov dword [rbp - 0x24], 0x360030
mov dword [rbp - 0x20], 0x320035
mov dword [rbp - 0x1c], 0x2d0043
mov dword [rbp - 0x18], 0x420037
mov dword [rbp - 0x14], 0x390032
mov dword [rbp - 0x10], 0x34002d
mov dword [rbp - 0xc], 0x420046
mov dword [rbp - 8], 0x2d0036
mov dword [rbp - 4], 0x410038
mov dword [rbp], 0x410044
mov dword [rbp + 4], 0x39002d
mov dword [rbp + 8], 0x460031
mov dword [rbp + 0xc], 0x340035
mov dword [rbp + 0x10], 0x320042
mov dword [rbp + 0x14], 0x370036
mov dword [rbp + 0x18], 0x440041
mov dword [rbp + 0x1c], 0x7d0034
mov dword [rbp + 0x20], 0x5c005c
mov dword [rbp + 0x24], 0x2e0031
mov dword [rbp + 0x28], 0x35
xor r15d, r15d
mov rdx, qword [rsp + 0x78]
lea rcx, [rbp + 0x1b0]
call fcn.14000e8e4
mov rcx, rax
lea rdx, [rbp - 0x80]
call fcn.14000e8e4
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x1a0]
call fcn.14000aab8
cmp qword [rax + 0x18], 8
jb 0x140003b08
mov rax, qword [rax]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
mov rdi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
je 0x140003b31
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov bl, r15b
jne 0x140003b33
mov bl, 1
cmp qword [rsp + 0x58], 8
jb 0x140003b45
mov rcx, qword [rsp + 0x40]
call fcn.140021758
test bl, bl
je 0x140003c6b
lea rdx, [0x1400462bc]
lea rcx, [rbp + 0x1b0]
call fcn.14000eb10
mov rcx, rax
mov rdx, rsi
call fcn.14000ede8
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x1a0]
call fcn.14000aab8
cmp qword [rax + 0x18], 8
jb 0x140003b86
mov rax, qword [rax]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0xc0120089
lea r8d, [r9 + 3]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp qword [rsp + 0x58], 8
jb 0x140003bc5
mov rcx, qword [rsp + 0x40]
call fcn.140021758
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r15
mov word [rsp + 0x40], r15w
cmp rbx, 0xffffffffffffffff
je 0x140003c6b
mov dword [rsp + 0x70], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x70]
mov r8d, 0x10000
lea rdx, [rbp + 0x4e0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140003c6b
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x140003c6b
mov r8d, eax
mov qword [rsp + 0x58], 0xf
mov qword [rsp + 0x50], r15
mov byte [rsp + 0x40], r15b
lea rdx, [rbp + 0x4e0]
lea rcx, [rsp + 0x40]
call fcn.140009528
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.140009374
cmp qword [rsp + 0x58], 0x10
jb 0x140003c6b
mov rcx, qword [rsp + 0x40]
call fcn.140021758
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
lea rcx, [rbp + 0x238]
call fcn.14000a9e8
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x238], rax
lea rcx, [rbp + 0x238]
call fcn.140021380
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140003fe3
lea rax, [rbp + 0x2d0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140003fe3
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0xa0]
call fcn.1400221f0
lea rcx, [rbp + 0xa0]
call fcn.14000a790
nop
mov dword [rbp - 0x80], 0x5c005c
mov dword [rbp - 0x7c], 0x44007b
mov ebx, 0x32
mov dword [rbp - 0x78], 0x300032
mov dword [rbp - 0x74], 0x300032
mov dword [rbp - 0x70], 0x340044
mov dword [rbp - 0x6c], 0x2d0037
mov dword [rbp - 0x68], 0x300037
mov dword [rbp - 0x64], 0x440037
mov dword [rbp - 0x60], 0x34002d
mov dword [rbp - 0x5c], 0x320045
mov dword [rbp - 0x58], 0x2d0036
mov dword [rbp - 0x54], 0x340042
mov dword [rbp - 0x50], 0x390044
mov dword [rbp - 0x4c], 0x37002d
mov dword [rbp - 0x48], 0x390033
mov dword [rbp - 0x44], 0x340043
mov dword [rbp - 0x40], 0x340046
mov dword [rbp - 0x3c], 0x320043
mov dword [rbp - 0x38], 0x390045
mov dword [rbp - 0x34], 0x7d0041
mov dword [rbp - 0x30], 0x5c005c
mov dword [rbp - 0x2c], 0x46007b
mov dword [rbp - 0x28], 0x430042
mov dword [rbp - 0x24], 0x360030
mov dword [rbp - 0x20], 0x320035
mov dword [rbp - 0x1c], 0x2d0043
mov dword [rbp - 0x18], 0x420037
mov dword [rbp - 0x14], 0x390032
mov dword [rbp - 0x10], 0x34002d
mov dword [rbp - 0xc], 0x420046
mov dword [rbp - 8], 0x2d0036
mov dword [rbp - 4], 0x410038
mov dword [rbp], 0x410044
mov dword [rbp + 4], 0x39002d
mov dword [rbp + 8], 0x460031
mov dword [rbp + 0xc], 0x340035
mov dword [rbp + 0x10], 0x320042
mov dword [rbp + 0x14], 0x370036
mov dword [rbp + 0x18], 0x440041
mov dword [rbp + 0x1c], 0x7d0034
mov dword [rbp + 0x20], 0x5c005c
mov dword [rbp + 0x24], 0x2e0031
mov dword [rbp + 0x28], 0x35
xor edi, edi
lea rdx, [rbp + 0x2d0]
lea rcx, [rbp + 0xb0]
call fcn.14000e8e4
mov rcx, rax
lea rdx, [rbp - 0x80]
call fcn.14000e8e4
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0xa0]
call fcn.14000aab8
cmp qword [rax + 0x18], 8
jb 0x140003e60
mov rax, qword [rax]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
mov r14, qword [rsp + 0x60]
je 0x140003e84
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov bl, dil
jne 0x140003e86
mov bl, 1
cmp qword [rsp + 0x58], 8
jb 0x140003e98
mov rcx, qword [rsp + 0x40]
call fcn.140021758
test bl, bl
je 0x140003fbd
lea rdx, [0x1400462bc]
lea rcx, [rbp + 0xb0]
call fcn.14000eb10
mov rcx, rax
mov rdx, rsi
call fcn.14000ede8
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0xa0]
call fcn.14000aab8
cmp qword [rax + 0x18], 8
jb 0x140003ed9
mov rax, qword [rax]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0xc0120089
lea r8d, [r9 + 3]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp qword [rsp + 0x58], 8
jb 0x140003f18
mov rcx, qword [rsp + 0x40]
call fcn.140021758
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rdi
mov word [rsp + 0x40], di
cmp rbx, 0xffffffffffffffff
je 0x140003fbd
mov dword [rsp + 0x70], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x70]
mov r8d, 0x10000
lea rdx, [rbp + 0x4e0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140003fbd
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x140003fbd
mov r8d, eax
mov qword [rsp + 0x58], 0xf
mov qword [rsp + 0x50], rdi
mov byte [rsp + 0x40], dil
lea rdx, [rbp + 0x4e0]
lea rcx, [rsp + 0x40]
call fcn.140009528
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.140009374
cmp qword [rsp + 0x58], 0x10
jb 0x140003fbd
mov rcx, qword [rsp + 0x40]
call fcn.140021758
nop
lea rcx, [rbp + 0x138]
call fcn.14000a9e8
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x138], rax
lea rcx, [rbp + 0x138]
call fcn.140021380
mov rcx, qword [rbp + 0x104e0]
xor rcx, rsp
call fcn.140021770
mov rbx, qword [rsp + 0x10648]
add rsp, 0x105f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret