Function at 0x1800440c0
Capabilities:
Check mutex on windows
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1d0
mov qword [rsp + 0x150], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rbx, r9
mov rdi, rcx
xor eax, eax
mov dword [rsp + 0x38], eax
or rsi, 0xffffffffffffffff
mov rcx, rsi
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x180044855
test rdx, rdx
je 0x180044855
mov rcx, rsi
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x180044855
test r8, r8
je 0x180044855
test rbx, rbx
je 0x180044855
mov rcx, rsi
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x180044855
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.180043990
lea rdx, [rsp + 0x170]
lea eax, [rsi + 2]
test rdx, rdx
je 0x1800441ca
xor r9d, r9d
lea r8, [rsp + 0x178]
mov edx, eax
lea rcx, str.D:_D_OICI_GA___BG__D_OICI_GA___AN__A_OICI_GA___AU__A_OICI_GA___BA_
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
lea r8, [rsp + 0x48]
lea rdx, str.Global_
lea rcx, [rsp + 0x110]
call fcn.180001514
mov r8, qword [rax]
xor edx, edx
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
mov qword [rsp + 0x100], rax
mov rdx, qword [rsp + 0x110]
add rdx, 0xffffffffffffffe8
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x180044223
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [rsp + 0x50], eax
or edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp ebx, 0xb7
je 0x1800442b4
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov ecx, 0xa000
call fcn.180043fc0
lea r8, [rsp + 0x40]
lea rdx, str.Global_
lea rcx, [rsp + 0x120]
call fcn.180001514
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rax]
mov ecx, 0xa000
call fcn.180043fc0
mov rdx, qword [rsp + 0x120]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1800442b4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1800442b4
or rsi, 0xffffffffffffffff
xor ebp, ebp
lea r8, [rsp + 0x40]
lea rdx, str.Global_
lea rcx, [rsp + 0x108]
call fcn.180001514
mov r8, qword [rax]
xor edx, edx
lea ecx, [rbp + 6]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov r12, rax
mov rdx, qword [rsp + 0x108]
add rdx, 0xffffffffffffffe8
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x180044302
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test r12, r12
je 0x180044576
xor esi, esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 6]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
test rax, rax
je 0x180044578
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov r15d, dword [rbx + 8]
mov edi, dword [rbx + 0xc]
lea r13d, [r15 - 0x10]
lea ecx, [rsi + 8]
call fcn.180052a04
test rax, rax
je 0x18004435d
lea rcx, [rsp + 0xc0]
mov qword [rax], rcx
jmp 0x180044360
mov rax, rsi
mov qword [rsp + 0xc0], rax
lea rcx, [rsp + 0xc0]
call fcn.1800488a0
mov qword [rsp + 0xf0], rax
mov byte [rax + 0x69], 1
mov rax, qword [rsp + 0xf0]
mov qword [rax + 8], rax
mov rax, qword [rsp + 0xf0]
mov qword [rax], rax
mov rax, qword [rsp + 0xf0]
mov qword [rax + 0x10], rax
mov qword [rsp + 0xf8], rsi
mov r8d, r13d
lea rdx, [rbx + 0x10]
lea rcx, [rsp + 0xc0]
call fcn.180045c70
mov r9, qword [rsp + 0x220]
mov r8, qword [rsp + 0x218]
mov rdx, qword [rsp + 0x210]
lea rcx, [rsp + 0xc0]
call fcn.180044dc0
mov dword [rsp + 0x34], esi
lea r9, [rsp + 0x34]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xc0]
call fcn.180046020
cmp dword [rsp + 0x34], r13d
ja 0x18004442a
lea r9, [rsp + 0x34]
mov r8d, r13d
lea rdx, [rbx + 0x10]
lea rcx, [rsp + 0xc0]
call fcn.180046020
mov dword [rsp + 0x38], 1
jmp 0x18004443a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, eax
mov eax, 1
cmove ebp, eax
test ebp, ebp
je 0x18004445b
mov ecx, r13d
call fcn.18004a00c
mov rsi, rax
mov r9d, r13d
lea r8, [rbx + 0x10]
mov edx, r13d
mov rcx, rax
call fcn.18005217c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x1800444ca
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rsp + 0x40]
lea rdx, str.Global_
lea rcx, [rsp + 0x118]
call fcn.180001514
lea ecx, [r15 + r15]
mov r9d, r13d
mov r8, rsi
mov rdx, qword [rax]
call fcn.180043fc0
mov rdx, qword [rsp + 0x118]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1800444ca
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test rsi, rsi
je 0x1800444d8
mov rcx, rsi
call fcn.1800520c4
nop
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0xc0]
mov qword [rsp + 0x70], rcx
mov rax, qword [rax]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x60], rcx
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x1a0], xmm0
movaps xmm1, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x160], xmm1
lea r9, [rsp + 0x1a0]
lea r8, [rsp + 0x160]
lea rdx, [rsp + 0x1c0]
lea rcx, [rsp + 0xc0]
call fcn.180047c50
mov rcx, qword [rsp + 0xf0]
call fcn.1800520c4
xor esi, esi
mov qword [rsp + 0xf0], rsi
mov qword [rsp + 0xf8], rsi
mov rcx, qword [rsp + 0xc0]
call fcn.1800520c4
test ebp, ebp
jne 0x1800442b0
jmp 0x180044578
xor esi, esi
mov rdi, qword [rsp + 0x40]
nop dword [rax]
mov ebp, esi
mov r8, rdi
xor edx, edx
lea ecx, [rdx + 6]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov r13, rax
test rax, rax
je 0x1800447e9
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 6]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r12, rax
test rax, rax
je 0x1800447e9
mov rax, qword [rax]
mov qword [rsp + 0x70], rax
mov ebx, dword [r12 + 8]
mov dword [rsp + 0x58], ebx
mov esi, dword [r12 + 0xc]
lea r14d, [rbx - 0x10]
mov ecx, 8
call fcn.180052a04
test rax, rax
je 0x1800445f6
lea rcx, [rsp + 0x80]
mov qword [rax], rcx
jmp 0x1800445f8
xor eax, eax
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x80]
call fcn.1800488a0
mov qword [rsp + 0xb0], rax
mov byte [rax + 0x69], 1
mov rax, qword [rsp + 0xb0]
mov qword [rax + 8], rax
mov rax, qword [rsp + 0xb0]
mov qword [rax], rax
mov rax, qword [rsp + 0xb0]
mov qword [rax + 0x10], rax
mov qword [rsp + 0xb8], 0
mov r8d, r14d
lea rdx, [r12 + 0x10]
lea rcx, [rsp + 0x80]
call fcn.180045c70
mov r9, qword [rsp + 0x220]
mov r8, qword [rsp + 0x218]
mov rdx, qword [rsp + 0x210]
lea rcx, [rsp + 0x80]
call fcn.180044dc0
mov dword [rsp + 0x30], 0
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.180046020
cmp dword [rsp + 0x30], r14d
ja 0x1800446cc
lea r9, [rsp + 0x30]
mov r8d, r14d
lea rdx, [r12 + 0x10]
lea rcx, [rsp + 0x80]
call fcn.180046020
mov dword [rsp + 0x38], 1
jmp 0x1800446dc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, eax
mov eax, 1
cmove ebp, eax
xor esi, esi
test ebp, ebp
je 0x180044704
mov ecx, r14d
call fcn.18004a00c
mov rsi, rax
mov r9d, r14d
lea r8, [r12 + 0x10]
mov edx, r14d
mov rcx, rax
call fcn.18005217c
mov ebx, dword [rsp + 0x58]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x180044736
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [rbx + rbx]
mov r9d, r14d
mov r8, rsi
mov rdx, rdi
call fcn.180043fc0
test rsi, rsi
je 0x180044744
mov rcx, rsi
call fcn.1800520c4
nop
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x60], rcx
mov rax, qword [rax]
mov qword [rsp + 0x138], rax
mov qword [rsp + 0x130], rcx
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x140], xmm0
movaps xmm1, xmmword [rsp + 0x130]
movdqa xmmword [rsp + 0x190], xmm1
lea r9, [rsp + 0x140]
lea r8, [rsp + 0x190]
lea rdx, [rsp + 0x1b0]
lea rcx, [rsp + 0x80]
call fcn.180047c50
mov rcx, qword [rsp + 0xb0]
call fcn.1800520c4
xor esi, esi
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0xb8], rsi
mov rcx, qword [rsp + 0x80]
call fcn.1800520c4
test ebp, ebp
jne 0x180044580
mov rbx, qword [rsp + 0x100]
test rbx, rbx
je 0x180044813
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [rsp + 0x50], 0xb7
jne 0x180044813
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rdx, [rdi - 0x18]
or rdi, 0xffffffffffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180044832
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x18004484f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [rsp + 0x38]
jmp 0x180044857
xor eax, eax
mov rbx, qword [rsp + 0x228]
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret