joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180191420
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x1804610b0]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rcx
mov edx, 0x10
lea rcx, [rbp - 0x18]
call fcn.18003df50
xor edi, edi
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], di
lea r8d, [rdi + 0x44]
lea rdx, str.RCIM_PICFACE_SKIN_SHARED_MUTEX53007B9A_580F_4DD3_A122_34F2835BFE77
lea rcx, [rbp - 0x40]
call fcn.180033930
nop
mov qword [rbp - 0x18], rdi
mov word [rbp - 0x10], di
mov word [rbp - 0x10], di
cmp qword [rbp - 0x30], rdi
je 0x1801914ab
lea r8, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae r8, qword [rbp - 0x40]
jmp 0x1801914ae
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbp - 0x18], rax
test rax, rax
je 0x1801914db
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, byte [rbp - 0xf]
mov edx, 1
cmp eax, 0xb7
cmove ecx, edx
mov byte [rbp - 0xf], cl
lea rcx, [rbp - 0x40]
call fcn.1800338a0
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
lea rax, [rbp - 0x18]
mov qword [rbp - 0x50], rax
mov byte [rbp - 0x48], 0
mov rcx, qword [rbp - 0x18]
test rcx, rcx
jne 0x180191507
xor al, al
jmp 0x180191523
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x18019151d
xor al, al
jmp 0x180191523
mov byte [rbp - 0x10], 1
mov al, 1
mov byte [rbp - 0x48], al
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x180191534
mov ebx, dword [rcx + 8]
jmp 0x180191536
mov ebx, edi
test al, al
je 0x18019154d
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x180191549
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [rbp - 0x10], 0
mov qword [rbp - 0x50], rdi
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x180191564
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x18], rdi
mov word [rbp - 0x10], 0
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1802994c0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x180191590
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1804610b0]
xor rax, rsp
mov qword [rbp - 8], rax
mov ebx, edx
mov rdi, rcx
mov edx, 0x10
lea rcx, [rbp - 0x18]
call fcn.18003df50
xor esi, esi
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], si
lea r8d, [rsi + 0x44]
lea rdx, str.RCIM_PICFACE_SKIN_SHARED_MUTEX53007B9A_580F_4DD3_A122_34F2835BFE77
lea rcx, [rbp - 0x40]
call fcn.180033930
nop
mov qword [rbp - 0x18], rsi
mov word [rbp - 0x10], si
mov word [rbp - 0x10], si
cmp qword [rbp - 0x30], rsi
je 0x180191621
lea r8, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae r8, qword [rbp - 0x40]
jmp 0x180191624
mov r8, rsi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbp - 0x18], rax
test rax, rax
je 0x180191651
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, byte [rbp - 0xf]
mov edx, 1
cmp eax, 0xb7
cmove ecx, edx
mov byte [rbp - 0xf], cl
lea rcx, [rbp - 0x40]
call fcn.1800338a0
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
lea rax, [rbp - 0x18]
mov qword [rbp - 0x50], rax
mov byte [rbp - 0x48], 0
mov rcx, qword [rbp - 0x18]
test rcx, rcx
jne 0x18019167d
xor al, al
jmp 0x180191699
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x180191693
xor al, al
jmp 0x180191699
mov byte [rbp - 0x10], 1
mov al, 1
mov byte [rbp - 0x48], al
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1801916a8
mov dword [rcx + 8], ebx
test al, al
je 0x1801916bf
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1801916bb
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [rbp - 0x10], 0
mov qword [rbp - 0x50], rsi
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1801916d6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x18], rsi
mov word [rbp - 0x10], 0
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1802994c0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x180191700
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x1804610b0]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rcx
mov edx, 0x10
lea rcx, [rbp - 0x18]
call fcn.18003df50
xor edi, edi
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], di
lea r8d, [rdi + 0x44]
lea rdx, str.RCIM_PICFACE_SKIN_SHARED_MUTEX53007B9A_580F_4DD3_A122_34F2835BFE77
lea rcx, [rbp - 0x40]
call fcn.180033930
nop
mov qword [rbp - 0x18], rdi
mov word [rbp - 0x10], di
mov word [rbp - 0x10], di
cmp qword [rbp - 0x30], rdi
je 0x18019178b
lea r8, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae r8, qword [rbp - 0x40]
jmp 0x18019178e
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbp - 0x18], rax
test rax, rax
je 0x1801917bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, byte [rbp - 0xf]
mov edx, 1
cmp eax, 0xb7
cmove ecx, edx
mov byte [rbp - 0xf], cl
lea rcx, [rbp - 0x40]
call fcn.1800338a0
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
lea rax, [rbp - 0x18]
mov qword [rbp - 0x50], rax
mov byte [rbp - 0x48], 0
mov rcx, qword [rbp - 0x18]
test rcx, rcx
jne 0x1801917e7
xor al, al
jmp 0x180191803
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x1801917fd
xor al, al
jmp 0x180191803
mov byte [rbp - 0x10], 1
mov al, 1
mov byte [rbp - 0x48], al
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x180191814
mov ebx, dword [rcx + 0xc]
jmp 0x180191819
mov ebx, 0xf4ceb4
test al, al
je 0x180191830
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x18019182c
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [rbp - 0x10], 0
mov qword [rbp - 0x50], rdi
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x180191847
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x18], rdi
mov word [rbp - 0x10], 0
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1802994c0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x180191870
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1804610b0]
xor rax, rsp
mov qword [rbp - 8], rax
mov ebx, edx
mov rdi, rcx
mov edx, 0x10
lea rcx, [rbp - 0x18]
call fcn.18003df50
xor esi, esi
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], si
lea r8d, [rsi + 0x44]
lea rdx, str.RCIM_PICFACE_SKIN_SHARED_MUTEX53007B9A_580F_4DD3_A122_34F2835BFE77
lea rcx, [rbp - 0x40]
call fcn.180033930
nop
mov qword [rbp - 0x18], rsi
mov word [rbp - 0x10], si
mov word [rbp - 0x10], si
cmp qword [rbp - 0x30], rsi
je 0x180191901
lea r8, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae r8, qword [rbp - 0x40]
jmp 0x180191904
mov r8, rsi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbp - 0x18], rax
test rax, rax
je 0x180191931
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, byte [rbp - 0xf]
mov edx, 1
cmp eax, 0xb7
cmove ecx, edx
mov byte [rbp - 0xf], cl
lea rcx, [rbp - 0x40]
call fcn.1800338a0
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
lea rax, [rbp - 0x18]
mov qword [rbp - 0x50], rax
mov byte [rbp - 0x48], 0
mov rcx, qword [rbp - 0x18]
test rcx, rcx
jne 0x18019195d
xor al, al
jmp 0x180191979
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x180191973
xor al, al
jmp 0x180191979
mov byte [rbp - 0x10], 1
mov al, 1
mov byte [rbp - 0x48], al
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x180191988
mov dword [rcx + 0xc], ebx
test al, al
je 0x18019199f
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x18019199b
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [rbp - 0x10], 0
mov qword [rbp - 0x50], rsi
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1801919b6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x18], rsi
mov word [rbp - 0x10], 0
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1802994c0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1801919e0
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x1804610b0]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rcx
mov edx, 0x10
lea rcx, [rbp - 0x18]
call fcn.18003df50
xor edi, edi
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], di
lea r8d, [rdi + 0x44]
lea rdx, str.RCIM_PICFACE_SKIN_SHARED_MUTEX53007B9A_580F_4DD3_A122_34F2835BFE77
lea rcx, [rbp - 0x40]
call fcn.180033930
nop
mov qword [rbp - 0x18], rdi
mov word [rbp - 0x10], di
mov word [rbp - 0x10], di
cmp qword [rbp - 0x30], rdi
je 0x180191a6b
lea r8, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae r8, qword [rbp - 0x40]
jmp 0x180191a6e
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbp - 0x18], rax
test rax, rax
je 0x180191a9b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, byte [rbp - 0xf]
mov edx, 1
cmp eax, 0xb7
cmove ecx, edx
mov byte [rbp - 0xf], cl
lea rcx, [rbp - 0x40]
call fcn.1800338a0
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
lea rax, [rbp - 0x18]
mov qword [rbp - 0x50], rax
mov byte [rbp - 0x48], 0
mov rcx, qword [rbp - 0x18]
test rcx, rcx
jne 0x180191ac7
xor al, al
jmp 0x180191ae3
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x180191add
xor al, al
jmp 0x180191ae3
mov byte [rbp - 0x10], 1
mov al, 1
mov byte [rbp - 0x48], al
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x180191af4
mov ebx, dword [rcx + 0x10]
jmp 0x180191af9
mov ebx, 0xcccccc
test al, al
je 0x180191b10
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x180191b0c
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [rbp - 0x10], 0
mov qword [rbp - 0x50], rdi
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x180191b27
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x18], rdi
mov word [rbp - 0x10], 0
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1802994c0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x180191b50
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1804610b0]
xor rax, rsp
mov qword [rbp - 8], rax
mov ebx, edx
mov rdi, rcx
mov edx, 0x10
lea rcx, [rbp - 0x18]
call fcn.18003df50
xor esi, esi
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], si
lea r8d, [rsi + 0x44]
lea rdx, str.RCIM_PICFACE_SKIN_SHARED_MUTEX53007B9A_580F_4DD3_A122_34F2835BFE77
lea rcx, [rbp - 0x40]
call fcn.180033930
nop
mov qword [rbp - 0x18], rsi
mov word [rbp - 0x10], si
mov word [rbp - 0x10], si
cmp qword [rbp - 0x30], rsi
je 0x180191be1
lea r8, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae r8, qword [rbp - 0x40]
jmp 0x180191be4
mov r8, rsi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbp - 0x18], rax
test rax, rax
je 0x180191c11
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, byte [rbp - 0xf]
mov edx, 1
cmp eax, 0xb7
cmove ecx, edx
mov byte [rbp - 0xf], cl
lea rcx, [rbp - 0x40]
call fcn.1800338a0
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
lea rax, [rbp - 0x18]
mov qword [rbp - 0x50], rax
mov byte [rbp - 0x48], 0
mov rcx, qword [rbp - 0x18]
test rcx, rcx
jne 0x180191c3d
xor al, al
jmp 0x180191c59
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x180191c53
xor al, al
jmp 0x180191c59
mov byte [rbp - 0x10], 1
mov al, 1
mov byte [rbp - 0x48], al
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x180191c68
mov dword [rcx + 0x10], ebx
test al, al
je 0x180191c7f
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x180191c7b
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [rbp - 0x10], 0
mov qword [rbp - 0x50], rsi
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x180191c96
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x18], rsi
mov word [rbp - 0x10], 0
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1802994c0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x180191cc0
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov qword [rbp - 0x11], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1804610b0]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rdi, rcx
xor esi, esi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x49], xmm0
movdqa xmm1, xmmword [0x180397e60]
movdqu xmmword [rbp - 0x49], xmm1
mov word [rbp - 0x59], si
lea r8d, [rsi + 0x44]
lea rdx, str.RCIM_PICFACE_SKIN_SHARED_MUTEX53007B9A_580F_4DD3_A122_34F2835BFE77
lea rcx, [rbp - 0x59]
call fcn.180033930
nop
mov r8b, 1
lea rdx, [rbp - 0x59]
lea rcx, [rbp + 7]
call fcn.18017f350
nop
lea rcx, [rbp - 0x59]
call fcn.1800338a0
lea edx, [rsi + 0x10]
lea rcx, [rbp - 9]
call fcn.18003df50
mov qword [rbp - 9], rsi
mov word [rbp - 1], si
mov word [rbp - 1], si
cmp qword [rbp + 0x17], rsi
je 0x180191d6c
lea r8, [rbp + 7]
cmp qword [rbp + 0x1f], 8
cmovae r8, qword [rbp + 7]
jmp 0x180191d6f
mov r8, rsi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbp - 9], rax
test rax, rax
je 0x180191d9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, byte [rbp]
mov edx, 1
cmp eax, 0xb7
cmove ecx, edx
mov byte [rbp], cl
xor eax, eax
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x51], rax
lea rax, [rbp - 9]
mov qword [rbp - 0x59], rax
mov byte [rbp - 0x51], 0
mov rcx, qword [rbp - 9]
test rcx, rcx
jne 0x180191dbf
xor bl, bl
jmp 0x180191ddb
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x180191dd5
xor bl, bl
jmp 0x180191ddb
mov byte [rbp - 1], 1
mov bl, 1
mov byte [rbp - 0x51], bl
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
movdqa xmm1, xmmword [0x180397e60]
movdqu xmmword [rbp - 0x21], xmm1
mov word [rbp - 0x31], si
mov r8d, 0x3e
lea rdx, str.RCIM_PICFACE_SKIN_SHARED53007B9A_580F_4DD3_A122_34F2835BFE77
lea rcx, [rbp - 0x31]
call fcn.180033930
nop
mov r8b, 1
lea rdx, [rbp - 0x31]
lea rcx, [rbp + 0x27]
call fcn.18017f350
nop
lea rcx, [rbp - 0x31]
call fcn.1800338a0
mov byte [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x27]
lea rcx, [rdi + 8]
call fcn.18018a9f0
test al, al
jne 0x180191e65
cmp qword [rbp + 0x37], 0
je 0x180191e65
mov byte [rsp + 0x20], 1
xor r9d, r9d
lea r8d, [r9 + 0x14]
lea rdx, [rbp + 0x27]
lea rcx, [rdi + 8]
call fcn.18018ac00
nop
lea rcx, [rbp + 0x27]
call fcn.1800338a0
nop
test bl, bl
je 0x180191e86
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x180191e82
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [rbp - 1], 0
mov qword [rbp - 0x59], rsi
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x180191e9d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 9], rsi
mov word [rbp - 1], 0
lea rcx, [rbp + 7]
call fcn.1800338a0
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1802994c0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x180195420
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x320
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x1804610b0]
xor rax, rsp
mov qword [rsp + 0x310], rax
mov rcx, qword [rsp + 0x330]
call fcn.180037950
movzx eax, al
test eax, eax
je 0x18019546d
xor al, al
jmp 0x1801956ee
lea rcx, [rsp + 0xa0]
call fcn.180037a00
nop
xor edx, edx
mov rcx, qword [rsp + 0x330]
call fcn.1800555e0
movzx eax, word [rax]
cmp eax, 0x40
jne 0x1801954e5
mov rcx, qword [rsp + 0x330]
call fcn.180037960
dec rax
mov r8d, eax
mov rdx, qword [rsp + 0x330]
lea rcx, [rsp + 0x60]
call fcn.1801db8d0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0xa0]
call fcn.1800379a0
nop
lea rcx, [rsp + 0x60]
call fcn.180033840
jmp 0x1801954fa
mov rdx, qword [rsp + 0x330]
lea rcx, [rsp + 0xa0]
call fcn.1800392f0
lea rax, [rsp + 0x100]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rcx, [rsp + 0xa0]
call fcn.180037970
mov r8d, 0x104
lea rdx, [rsp + 0x100]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x180195552
mov byte [rsp + 0x20], 0
lea rcx, [rsp + 0xa0]
call fcn.180033840
movzx eax, byte [rsp + 0x20]
jmp 0x1801956ee
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0xa0]
call fcn.180033910
lea rdx, [0x180389d60]
lea rcx, [rsp + 0xc0]
call fcn.180033860
nop
xor r8d, r8d
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0xa0]
call fcn.1800daf80
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
je 0x180195671
mov r8d, dword [rsp + 0x28]
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x80]
call fcn.1801db870
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x338]
call fcn.1800379a0
nop
lea rcx, [rsp + 0x80]
call fcn.180033840
cmp qword [rsp + 0x340], 0
je 0x18019566f
lea rcx, [rsp + 0xa0]
call fcn.180037960
sub rax, qword [rsp + 0x28]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0xc0]
call fcn.180037960
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov r8d, eax
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xe0]
call fcn.1801db8d0
nop
lea rcx, [rsp + 0xe0]
call fcn.180037970
xor edx, edx
mov rcx, rax
call fcn.1801daff0
mov rcx, qword [rsp + 0x340]
mov dword [rcx], eax
lea rcx, [rsp + 0xe0]
call fcn.180033840
jmp 0x18019569f
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x338]
call fcn.1800392f0
cmp qword [rsp + 0x340], 0
je 0x18019569f
mov rax, qword [rsp + 0x340]
mov dword [rax], 0
mov rcx, qword [rsp + 0x338]
call fcn.180037950
movzx eax, al
test eax, eax
jne 0x1801956bd
mov dword [rsp + 0x24], 1
jmp 0x1801956c5
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
mov byte [rsp + 0x21], al
lea rcx, [rsp + 0xc0]
call fcn.180033840
nop
lea rcx, [rsp + 0xa0]
call fcn.180033840
movzx eax, byte [rsp + 0x21]
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.1802994c0
add rsp, 0x320
pop rdi
ret
Function at 0x180196680
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x260
mov rax, qword [0x1804610b0]
xor rax, rsp
mov qword [rsp + 0x250], rax
cmp qword [rsp + 0x278], 0
jne 0x1801966c0
xor al, al
jmp 0x1801967d5
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov dword [rsp + 0x30], 0x208
mov rcx, qword [rsp + 0x280]
call fcn.180037970
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x18019671c
xor al, al
jmp 0x1801967d5
mov rax, qword [rsp + 0x288]
add rax, 0x10
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.180033910
mov dword [rsp + 0x30], 0x208
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Profile
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x180196774
xor al, al
jmp 0x1801967d5
mov rax, qword [rsp + 0x288]
add rax, 0x30
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.180033910
mov dword [rsp + 0x30], 4
mov rax, qword [rsp + 0x288]
add rax, 4
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.KeyboardLayout
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1801967d3
xor al, al
jmp 0x1801967d5
mov al, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1802994c0
add rsp, 0x260
pop rdi
ret
Function at 0x1801967f0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x1804610b0]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x78], 0
jne 0x180196826
xor al, al
jmp 0x18019698b
mov byte [rsp + 0x30], 0
mov rax, qword [rsp + 0x88]
add rax, 0x10
mov rcx, rax
call fcn.180037960
shl rax, 1
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x88]
add rax, 0x10
mov rcx, rax
call fcn.180037970
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x80]
call fcn.180037970
mov ecx, dword [rsp + 0x34]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x18019689e
mov byte [rsp + 0x30], 1
mov rax, qword [rsp + 0x88]
add rax, 0x30
mov rcx, rax
call fcn.180037960
shl rax, 1
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x88]
add rax, 0x30
mov rcx, rax
call fcn.180037970
mov ecx, dword [rsp + 0x34]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.Profile
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1801968fe
mov byte [rsp + 0x30], 1
mov dword [rsp + 0x48], 0
mov rax, qword [rsp + 0x88]
add rax, 0x10
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call fcn.1801958f0
movzx eax, al
test eax, eax
jne 0x180196935
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 4]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.KeyboardLayout
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x18019696b
mov byte [rsp + 0x30], 1
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x18019697e
mov dword [rsp + 0x38], 1
jmp 0x180196986
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1802994c0
add rsp, 0x68
ret