Function at 0x140067520
Capabilities:
Check mutex on windows
Get common file path
Initialize winsock library
Move file

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x408]
sub rsp, 0x4e0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1402120d8]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
mov r15, rdx
mov r14d, ecx
xor r13d, r13d
mov dword [rsp + 0x30], r13d
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
lea r9, str.Wondershare.NotificationApp
mov edx, 1
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140067f73
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1c0]
call fcn.140175ab0
lea rdx, [rbp + 0x1c0]
mov ecx, 0x103
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], r13w
lea rax, [rbp + 0x1c0]
mov rsi, 0xffffffffffffffff
mov r8, rsi
nop
inc r8
cmp word [rax + r8*2], r13w
jne 0x1400675f0
lea rdx, [rbp + 0x1c0]
lea rcx, [rbp - 0x70]
call fcn.1400550f0
nop
mov r8d, reloc.WSOCK32.dll_ioctlsocket
lea rdx, str.Wondershare_
lea rcx, [rbp - 0x70]
call fcn.140067fe0
mov r8d, ioctlsocket
lea rdx, str.NativePush_
lea rcx, [rbp - 0x70]
call fcn.140067fe0
lea rcx, [rbp - 0x70]
call fcn.14008a1e0
mov r8d, reloc.WSOCK32.dll_ntohl
lea rdx, str.nativepush.log
lea rcx, [rbp - 0x70]
call fcn.140067fe0
mov r12d, 4
mov rax, qword gs:[0x58]
add r12, qword [rax]
mov eax, dword [r12]
cmp dword [0x14021e5f0], eax
jle 0x1400677a1
lea rcx, [0x14021e5f0]
call fcn.140157410
cmp dword [0x14021e5f0], 0xffffffff
jne 0x1400677a1
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x14021e600], xmm0
movups xmmword [0x14021e610], xmm0
movups xmmword [0x14021e620], xmm0
movups xmmword [0x14021e630], xmm0
movups xmmword [0x14021e640], xmm0
movups xmmword [0x14021e650], xmm0
mov qword [0x14021e660], rax
lea rax, vtable.simpleLog::Log.0
mov qword [0x14021e600], rax
mov qword [0x14021e620], r13
mov qword [0x14021e628], 7
mov word [0x14021e610], r13w
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x14021e638], rax
lea rcx, [0x14021e640]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
mov qword [0x14021e608], r13
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rdx, qword [rbp - 0x70]
mov r8, qword [rbp - 0x60]
lea rbx, [0x14021e610]
mov rcx, rbx
call fcn.1400550f0
mov dword [0x14021e630], 3
mov rdx, rbx
call fcn.140093880
mov r8, rbx
lea rdx, [rsp + 0x38]
call fcn.1400933c0
cmp qword [rax + 0x18], 8
jb 0x140067762
mov rax, qword [rax]
cmp qword [0x14021e628], 8
cmovae rbx, qword [0x14021e610]
mov rdx, rax
mov rcx, rbx
call fcn.140186f70
lea rcx, [rsp + 0x38]
call fcn.140050da0
nop
lea rcx, [0x1401ac280]
call fcn.140157820
nop
lea rcx, [0x14021e5f0]
call fcn.1401573b0
lea rax, [0x14021e600]
mov qword [0x14021d9a8], rax
lea rcx, [rbp - 0x38]
call fcn.14008b390
nop
mov rbx, qword [0x14021d9a8]
test rbx, rbx
je 0x1400677fa
lea rdi, [rbp - 0x38]
cmp qword [rbp - 0x20], 0x10
cmovae rdi, qword [rbp - 0x38]
mov rbx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, eax
mov qword [rsp + 0x20], rdi
lea r8, str._INFO___d___version__s_
mov edx, 3
mov rcx, qword [0x14021d9a8]
call qword [rbx]
nop
lea rcx, [rbp - 0x38]
call fcn.140050e10
mov qword [rbp + 0x80], r13
mov qword [rbp + 0x88], reloc.WSOCK32.dll_ntohs
mov byte [rbp + 0x70], 0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1c0]
call fcn.140175ab0
lea rdx, [rbp + 0x1c0]
mov ecx, 0x103
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r13w
lea rax, [rbp + 0x1c0]
nop word [rax + rax]
inc rsi
cmp word [rax + rsi*2], 0
jne 0x140067860
mov r8, rsi
lea rdx, [rbp + 0x1c0]
lea rcx, [rsp + 0x60]
call fcn.1400550f0
nop
mov r8d, reloc.WSOCK32.dll_ioctlsocket
lea rdx, str.Wondershare_
lea rcx, [rsp + 0x60]
call fcn.140067fe0
mov r8d, ioctlsocket
lea rdx, str.NativePush_
lea rcx, [rsp + 0x60]
call fcn.140067fe0
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x38]
call fcn.140089ce0
cmp qword [rax + 0x18], 0x10
jb 0x1400678c5
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.wsUpgrade.dll_set_log_dir]
lea rcx, [rbp - 0x38]
call fcn.140050e10
lea rcx, [0x1401dbbd8]
call qword [sym.imp.wsUpgrade.dll_set_sensors_project]
lea rcx, str.UA_Nativepush_Win
call qword [sym.imp.wsUpgrade.dll_set_track_id]
lea rcx, [0x1401dbe7c]
call qword [sym.imp.wsUpgrade.dll_set_user_id]
nop
lea rcx, [rsp + 0x60]
call fcn.140050da0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov r8, r15
mov edx, r14d
lea rcx, [rbp - 0x80]
call fcn.140067300
nop
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], reloc.WSOCK32.dll_ntohs
mov byte [rsp + 0x60], 0
mov r8d, 7
lea rdx, str.upgrade
lea rcx, [rsp + 0x60]
call fcn.140050e90
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.140054120
mov rbx, rax
lea rcx, [rsp + 0x60]
call fcn.140050e10
test rbx, rbx
je 0x140067a14
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], reloc.WSOCK32.dll_ntohs
mov byte [rsp + 0x60], 0
mov r8d, 3
lea rdx, [0x1401d63e8]
lea rcx, [rsp + 0x60]
call fcn.140050e90
nop
mov qword [rbp + 0x20], r13
mov qword [rbp + 0x28], reloc.WSOCK32.dll_ntohs
mov byte [rbp + 0x10], 0
mov dword [rsp + 0x30], 7
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.140054120
test rax, rax
je 0x1400679f7
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.14005df80
lea rcx, [rbp + 0x10]
cmp rcx, rax
je 0x1400679f7
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x1400679ea
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.140050e90
nop
lea rcx, [rsp + 0x60]
call fcn.140050e10
lea rdx, [rbp + 0x10]
call fcn.140088f50
nop
lea rcx, [rbp + 0x10]
call fcn.140050e10
lea rcx, [rbp + 0x70]
call fcn.1400872c0
test al, al
je 0x140067a3f
lea rcx, [rbp + 0x70]
call fcn.140087df0
test al, al
je 0x140067a3f
lea rcx, [rbp + 0x70]
call fcn.140088420
test al, al
jne 0x140067f3c
mov rax, qword [0x14021d9a8]
test rax, rax
je 0x140067a6f
mov rax, qword [rax]
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, eax
lea r8, str._INFO___d___init_toast_notification.
mov edx, 3
mov rcx, qword [0x14021d9a8]
call rbx
lea rcx, [rsp + 0x60]
call fcn.14008ab90
nop
mov r8d, reloc.WSOCK32.dll_ioctlsocket
lea rdx, str.Wondershare_
lea rcx, [rsp + 0x60]
call fcn.140067fe0
mov r8d, ioctlsocket
lea rdx, str.NativePush_
lea rcx, [rsp + 0x60]
call fcn.140067fe0
mov r8d, reloc.WSOCK32.dll_ntohl
lea rdx, str.NativePush.png
lea rcx, [rsp + 0x60]
call fcn.140067fe0
lea rax, [rbp + 0x10]
mov qword [rsp + 0x30], rax
mov qword [rbp + 0x20], r13
mov qword [rbp + 0x28], r13
mov rdi, qword [rsp + 0x70]
lea rsi, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rsi, qword [rsp + 0x60]
cmp rdi, 8
jae 0x140067afd
movups xmm0, xmmword [rsi]
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x28], 7
jmp 0x140067b3d
mov rbx, rdi
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmova rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rbp + 0x10]
call fcn.140055430
mov qword [rbp + 0x10], rax
lea r8, [rdi*2 + 2]
mov rdx, rsi
mov rcx, rax
call fcn.1401756a0
mov qword [rbp + 0x28], rbx
mov qword [rbp + 0x20], rdi
lea rax, [rsp + 0x38]
mov qword [rbp - 0x50], rax
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r13w
mov r8d, ioctlsocket
lea rdx, [0x1401dcf68]
lea rcx, [rsp + 0x38]
call fcn.1400550f0
nop
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r13w
mov r8d, reloc.WLDAP32.dll_Ordinal_27
lea rdx, str.Wondershare.NotificationApp
lea rcx, [rbp - 0x38]
call fcn.1400550f0
nop
lea r8, [rbp + 0x10]
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x38]
call fcn.140084a90
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_f912dda63e5796f0466d1137d1960068___void__class_CToastNotificationArgs____ptr64_.0
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x38]
mov qword [rbp], rax
lea rcx, [rbp - 0x38]
call fcn.140084fc0
nop
lea rcx, [rsp + 0x60]
call fcn.140050da0
lea rcx, [rbp + 0x90]
call fcn.14008ab90
nop
mov r8d, reloc.WSOCK32.dll_ioctlsocket
lea rdx, str.Wondershare_
lea rcx, [rbp + 0x90]
call fcn.140067fe0
mov r8d, ioctlsocket
lea rdx, str.NativePush_
lea rcx, [rbp + 0x90]
call fcn.140067fe0
mov r8d, 7
lea rdx, str.Images_
lea rcx, [rbp + 0x90]
call fcn.140067fe0
lea rcx, [rbp + 0x90]
call fcn.1400828e0
mov rax, qword [0x14021d9a8]
test rax, rax
je 0x140067c6b
mov rax, qword [rax]
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, eax
lea r8, str._INFO___d___init_db.
mov edx, 3
mov rcx, qword [0x14021d9a8]
call rbx
lea rcx, [rbp + 0x50]
call fcn.14008ab90
nop
mov r8d, reloc.WSOCK32.dll_ioctlsocket
lea rdx, str.Wondershare_
lea rcx, [rbp + 0x50]
call fcn.140067fe0
mov r8d, ioctlsocket
lea rdx, str.NativePush_
lea rcx, [rbp + 0x50]
call fcn.140067fe0
lea rcx, [rbp + 0x50]
call fcn.14008a1e0
mov r8d, reloc.WSOCK32.dll_listen
lea rdx, str.nativepush.db
lea rcx, [rbp + 0x50]
call fcn.140067fe0
mov eax, dword [r12]
cmp dword [0x14021e5b8], eax
jle 0x140067d03
lea rcx, [0x14021e5b8]
call fcn.140157410
cmp dword [0x14021e5b8], 0xffffffff
jne 0x140067d03
xorps xmm0, xmm0
movups xmmword [0x14021e5c0], xmm0
lea rcx, [0x1401ac1a0]
call fcn.140157820
lea rcx, [0x14021e5b8]
call fcn.1401573b0
lea rdx, [rbp + 0x50]
lea rcx, [0x14021e5c0]
call fcn.140077690
mov rax, qword [0x14021d9a8]
test rax, rax
je 0x140067d43
mov rax, qword [rax]
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, eax
lea r8, str._INFO___d___init_cloud_notification_manager.
mov edx, 3
mov rcx, qword [0x14021d9a8]
call rbx
call fcn.1400516a0
mov rbx, rax
call fcn.14004fb40
test rax, rax
lea rdx, [rax + 8]
jne 0x140067d5c
mov rdx, r13
mov rcx, rbx
call fcn.140051800
mov rax, qword [0x14021d9a8]
test rax, rax
je 0x140067d94
mov rax, qword [rax]
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, eax
lea r8, str._INFO___d___init_http_service.
mov edx, 3
mov rcx, qword [0x14021d9a8]
call rbx
mov ecx, 0x198
call fcn.140157540
mov r14, rax
xor edx, edx
mov r8d, 0x198
mov rcx, rax
call fcn.140175ab0
mov qword [rbp - 0x40], r14
mov ecx, 0x202
mov rdx, r14
call qword [sym.imp.WSOCK32.dll_WSAStartup]
mov ebx, eax
test eax, eax
jne 0x140067fa5
mov esi, 0x1f9a
mov r15d, 2
nop dword [rax + rax]
xor r8d, r8d
lea edx, [r8 + 1]
mov ecx, r15d
call qword [sym.imp.WSOCK32.dll_socket]
mov rdi, rax
mov word [rbp - 0x50], r15w
movzx ecx, si
call qword [sym.imp.WSOCK32.dll_htons]
mov word [rbp - 0x4e], ax
xor ecx, ecx
call qword [sym.imp.WSOCK32.dll_htonl]
mov dword [rbp - 0x4c], eax
mov r8d, reloc.WSOCK32.dll_recv
lea rdx, [rbp - 0x50]
mov rcx, rdi
call qword [sym.imp.WSOCK32.dll_bind]
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.WSOCK32.dll_closesocket]
cmp ebx, 0x2740
jne 0x140067e48
inc esi
cmp esi, 0x1ffe
jl 0x140067de0
jmp 0x140067e48
mov edx, esi
lea rcx, [rsp + 0x60]
call fcn.140067210
mov rbx, rax
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r13w
mov r8d, 8
lea rdx, str.HttpPort
lea rcx, [rbp - 0x38]
call fcn.1400550f0
mov r8, rbx
mov edx, 4
lea rcx, [rbp - 0x38]
call fcn.14008cd20
lea rcx, [rbp - 0x38]
call fcn.140050da0
nop
lea rcx, [rsp + 0x60]
call fcn.140050da0
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0xb0]
call fcn.140175ab0
movzx edx, si
lea rcx, [rbp + 0xb0]
call fcn.140058b00
nop
lea rcx, [rbp + 0xb0]
call fcn.140058eb0
mov rax, qword [0x14021d9a8]
test rax, rax
je 0x140067f04
mov rax, qword [rax]
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, eax
lea r8, str._INFO___d___exit.
mov edx, 3
mov rcx, qword [0x14021d9a8]
call rbx
nop
lea rcx, [rbp + 0xb0]
call fcn.140058d10
nop
call qword [sym.imp.WSOCK32.dll_WSACleanup]
mov edx, 0x198
mov rcx, r14
call fcn.14015757c
nop
lea rcx, [rbp + 0x50]
call fcn.140050da0
nop
lea rcx, [rbp + 0x90]
call fcn.140050da0
nop
mov r8, qword [rbp - 0x80]
mov r8, qword [r8 + 8]
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x80]
call fcn.14005b140
mov edx, 0x60
mov rcx, qword [rbp - 0x80]
call fcn.14015757c
nop
lea rcx, [rbp + 0x70]
call fcn.140050e10
nop
lea rcx, [rbp - 0x70]
call fcn.140050da0
xor eax, eax
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.1401571e0
lea r11, [rsp + 0x4e0]
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
lea rdx, str.WSAStartup
lea rcx, [rsp + 0x38]
call fcn.140050d60
mov r8, rax
mov edx, ebx
lea rcx, [rbp + 0x10]
call fcn.140066210
lea rdx, [0x14020f8f0]
lea rcx, [rbp + 0x10]
call fcn.1401760d0
int3