Function at 0x140013ad0
Capabilities:
Check mutex on windows
Create thread
Get common file path
Get disk information
Write file on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x230]
sub rsp, 0x330
movaps xmmword [rsp + 0x320], xmm6
mov rax, qword [0x1400b1008]
xor rax, rsp
mov qword [rbp + 0x210], rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jne 0x140014093
mov edx, 0x104
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x140014093
movzx eax, byte [rbp - 0x10]
lea r9, [0x1400d680c]
mov qword [rsp + 0x348], rsi
lea rcx, [rbp - 0x30]
xor esi, esi
xor r8d, r8d
mov dword [rsp + 0x38], esi
xor edx, edx
mov dword [rbp - 0x30], esi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov byte [rbp - 0x30], al
mov word [rbp - 0x2f], 0x5c3a
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x14001408b
lea rax, [rbp - 0x10]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [rsi + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x14001408b
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x340], rbx
mov ecx, 0x79fe6d
call fcn.140019fe0
lea r9, [rbp - 0x10]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
mov edx, 0x104
lea rcx, [rbp + 0x100]
call fcn.14000f3f0
lea r8, [rbp + 0x100]
mov byte [0x1400d69b0], 1
mov edx, 0x104
lea rcx, [0x1400d69b1]
call fcn.14006f6d8
lea rcx, [0x1400d6ab8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x1400d69b0]
call fcn.140017d90
lea r8, [rbp - 0x20]
mov qword [rsp + 0x68], rsi
lea rdx, [rsp + 0x68]
mov ecx, 0x3ea
call fcn.140018e20
mov rbx, qword [rsp + 0x68]
test al, al
je 0x140013c5c
lea r8, [0x1400a62d4]
mov qword [rbp - 0x30], rsi
lea rdx, str.cacert.pem
lea rcx, [rbp - 0x30]
call fcn.14006aa10
mov r9, qword [rbp - 0x30]
test r9, r9
je 0x140013c5c
mov r8, qword [rbp - 0x20]
lea edx, [rsi + 1]
mov rcx, rbx
call fcn.14006a7a0
mov rcx, qword [rbp - 0x30]
call fcn.140069e78
test rbx, rbx
je 0x140013c69
mov rcx, rbx
call fcn.14006ac0c
call fcn.140014690
test al, al
je 0x140014083
xor r8d, r8d
mov qword [rsp + 0x350], rdi
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x68], rsi
mov ecx, 0x3e8
xor bl, bl
call fcn.140018a10
mov rdi, qword [rsp + 0x68]
test al, al
je 0x140013ce7
lea rdx, [rbp - 0x20]
mov ecx, 0x4296d2
call fcn.140019fe0
mov r9, rax
lea rcx, [rbp - 0x30]
mov r8, rdi
mov edx, reloc.WS2_32.dll_recv
call fcn.14000f3f0
lea r8, [rbp - 0x30]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
test rax, rax
je 0x140013ce7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140013ce7
mov bl, 1
test rdi, rdi
je 0x140013cf4
mov rcx, rdi
call fcn.14006ac0c
test bl, bl
je 0x14001407b
xor r8d, r8d
mov qword [rsp + 0x68], rsi
lea rdx, [rsp + 0x68]
mov ecx, 0x3e8
mov rbx, rsi
call fcn.140018a10
mov rdi, qword [rsp + 0x68]
test al, al
je 0x140013d57
lea rdx, [rbp - 0x20]
mov ecx, 0x973c8f
call fcn.140019fe0
mov r9, rax
lea rcx, [rbp - 0x30]
mov r8, rdi
mov edx, reloc.WS2_32.dll_recv
call fcn.14000f3f0
xor r8d, r8d
lea r9, [rbp - 0x30]
xor ecx, ecx
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rbx, rax
test rdi, rdi
je 0x140013d64
mov rcx, rdi
call fcn.14006ac0c
mov qword [rsp + 0x70], rbx
test rbx, rbx
je 0x14001407b
mov edx, 0x8005
mov dword [rsp + 0x30], 2
mov ecx, edx
mov dword [rsp + 0x28], esi
lea r9, [0x140012420]
mov dword [rsp + 0x20], esi
xor r8d, r8d
call qword [sym.imp.USER32.dll_SetWinEventHook]
test rax, rax
je 0x14001407b
mov edx, 0x800e
mov dword [rsp + 0x30], 2
mov ecx, edx
mov dword [rsp + 0x28], esi
lea r9, [0x140012420]
mov dword [rsp + 0x20], esi
xor r8d, r8d
call qword [sym.imp.USER32.dll_SetWinEventHook]
test rax, rax
je 0x14001407b
mov edx, 3
mov dword [rsp + 0x30], 2
mov ecx, edx
mov dword [rsp + 0x28], esi
lea r9, [0x140012420]
mov dword [rsp + 0x20], esi
xor r8d, r8d
call qword [sym.imp.USER32.dll_SetWinEventHook]
test rax, rax
je 0x14001407b
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rbx, rax
test rax, rax
je 0x14001407b
lea rax, [0x1400d67f0]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x14000fcc0]
xor edx, edx
mov dword [rsp + 0x20], esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
mov rcx, rbx
test rax, rax
je 0x140014075
mov edx, 0x3e8
mov qword [rsp + 0x358], r14
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea r8, [rsp + 0x60]
mov byte [rsp + 0x60], sil
mov dword [0x1400d5f20], eax
call fcn.140017400
cmp byte [rsp + 0x60], sil
je 0x140013ea7
xor edx, edx
xor r8d, r8d
lea ecx, [rdx + 1]
call fcn.140011e80
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov r8d, 0x3e8
call qword [sym.imp.USER32.dll_SetTimer]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov r8d, 0x493e0
mov rbx, rax
call qword [sym.imp.USER32.dll_SetTimer]
xorps xmm0, xmm0
mov qword [rbp - 0x80], 0x50
mov rdi, rax
movdqa xmmword [rbp - 0x70], xmm0
lea rax, [0x14001a430]
movdqa xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
mov qword [rbp - 0x78], rax
lea r14, str.wcbClass
movdqa xmmword [rbp - 0x60], xmm1
lea rcx, [rbp - 0x80]
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x40], r14
call qword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x140013f52
mov qword [rsp + 0x58], rsi
xor r9d, r9d
mov qword [rsp + 0x50], rsi
xor r8d, r8d
mov qword [rsp + 0x48], rsi
mov rdx, r14
mov qword [rsp + 0x40], 0xfffffffffffffffd
xor ecx, ecx
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov r14, qword [rsp + 0x358]
xorps xmm6, xmm6
nop dword [rax]
xor r8d, r8d
mov dword [rsp + 0x20], 0x1cff
mov r9d, 0xffffffff
lea rdx, [rsp + 0x70]
lea ecx, [r8 + 1]
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
je 0x14001406c
cmp eax, 1
jne 0x14001407b
xor r9d, r9d
mov dword [rsp + 0x20], eax
xor r8d, r8d
lea rcx, [rbp - 0x80]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140013f60
nop dword [rax + rax]
mov eax, dword [rbp - 0x78]
cmp eax, 0x113
jne 0x14001402a
mov rax, qword [rbp - 0x70]
cmp rax, rbx
jne 0x140013ff8
lea r8, [rbp - 0x30]
mov edx, 0x103e
call fcn.140017110
test al, al
je 0x140014031
xor ecx, ecx
call fcn.14006ab90
mov ecx, dword [rbp - 0x30]
mov edx, eax
call fcn.14006cdc0
comisd xmm6, xmm0
jb 0x140014031
xor ecx, ecx
call fcn.140014a10
jmp 0x14001407b
cmp rax, rdi
jne 0x140014031
mov qword [rsp + 0x28], rsi
lea r8, [0x1400191e0]
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140014031
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140014031
cmp eax, 0x401
je 0x140013fec
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_DispatchMessageA]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rbp - 0x80]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x140013fb0
jmp 0x140013f60
mov cl, 1
call fcn.140014e50
jmp 0x14001407b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x350]
mov rbx, qword [rsp + 0x340]
mov rsi, qword [rsp + 0x348]
xor eax, eax
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.14001a6d0
movaps xmm6, xmmword [rsp + 0x320]
add rsp, 0x330
pop rbp
ret