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

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
sub rsp, 0x60
mov qword [r11 - 0x58], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov qword [r11 - 0x50], rcx
xor ebp, ebp
mov qword [rcx], rbp
mov qword [r11 - 0x38], rbp
mov qword [r11 - 0x30], rbp
mov qword [r11 - 0x38], rbp
mov qword [r11 - 0x30], 7
mov word [rsp + 0x30], bp
lea r8d, [rbp + 0x26]
lea rdx, str.98B9F6E6_463F_4E42_874C_927C4C84A8F7
lea rcx, [r11 - 0x48]
call fcn.180004e70
nop
mov qword [rbx + 8], rbp
mov word [rbx + 0x10], bp
cmp qword [rsp + 0x40], rbp
je 0x180200497
lea r8, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae r8, qword [rsp + 0x30]
jmp 0x18020049a
mov r8, rbp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx + 8], rax
test rax, rax
je 0x1802004be
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1802004be
mov byte [rbx + 0x11], 1
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x180200503
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1802004fe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1802004fe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], bp
lea rcx, [rbx + 0x18]
mov rdx, rdi
call fcn.180004aa0
nop
lea rcx, [rbx + 0x38]
mov rdx, rsi
call fcn.180004aa0
nop
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180385c10
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret

Function at 0x180201070
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
mov rsi, r8
movzx edi, dl
test r8, r8
jne 0x1802010a6
xor al, al
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov byte [rsp + 0x50], 0
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne bl
mov byte [rsp + 0x50], bl
test bl, bl
je 0x180201136
mov rdx, rsi
mov ecx, 0xf
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x180201136
mov edx, 4
mov ecx, 0x2042
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x180201122
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x180201101
neg dil
sbb ecx, ecx
add ecx, 6
mov dword [rax], ecx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea rcx, str.Preferred_DropEffect
call qword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov ecx, eax
mov rdx, rbx
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
sete bl
mov byte [rsp + 0x50], bl
mov dil, 1
jmp 0x180201139
xor dil, dil
test bl, bl
je 0x18020114a
call qword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
sete byte [rsp + 0x50]
movzx eax, dil
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x180201160
Capabilities:
List drag and drop files
Open clipboard
Read clipboard data

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x4d0], rbx
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov rsi, rdx
mov byte [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne bl
mov byte [rsp + 0x20], bl
test bl, bl
je 0x180201362
mov ecx, 0xf
call qword [sym.imp.USER32.dll_GetClipboardData]
mov r15, rax
test rax, rax
je 0x180201362
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r12, rax
test rax, rax
je 0x180201362
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.SHELL32.dll_DragQueryFileW]
mov r14d, eax
lea ecx, [rax - 1]
cmp ecx, 0xfffffffd
ja 0x180201359
xor r13d, r13d
mov edi, r13d
test eax, eax
je 0x180201344
nop dword [rax]
xor edx, edx
mov r8d, 0x412
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x208
lea r8, [rsp + 0x50]
mov edx, edi
mov rcx, r12
call qword [sym.imp.SHELL32.dll_DragQueryFileW]
dec eax
cmp eax, 0x207
ja 0x180201339
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r13w
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x180201280
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.180004e70
nop
mov rdx, qword [rsi + 8]
cmp qword [rsi + 0x10], rdx
je 0x1802012d9
mov qword [rdx + 0x10], r13
mov qword [rdx + 0x18], r13
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rdx + 0x10], xmm1
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r13w
add qword [rsi + 8], 0x20
jmp 0x1802012e7
lea r8, [rsp + 0x30]
mov rcx, rsi
call fcn.18006c920
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x180201325
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180201320
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180201352
call fcn.180385c70
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r13w
inc edi
cmp edi, r14d
jb 0x180201220
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dil, 1
jmp 0x180201365
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor dil, dil
test bl, bl
je 0x180201376
call qword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
sete byte [rsp + 0x20]
movzx eax, dil
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.180385c10
mov rbx, qword [rsp + 0x4d0]
add rsp, 0x480
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180202770
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
mov dword [rsp + 0x20], VarUI4FromDisp
mov r8d, VarUI4FromDisp
lea rcx, [rsp + 0x24]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1802027de
mov eax, dword [rsp + 0x24]
cmp eax, 5
ja 0x1802027c4
jne 0x1802027de
cmp dword [rsp + 0x28], 0
jbe 0x1802027de
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180385c10
add rsp, 0x158
ret
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180385c10
add rsp, 0x158
ret

Function at 0x180202800
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
mov dword [rsp + 0x20], VarUI4FromDisp
mov r8d, VarUI4FromDisp
lea rcx, [rsp + 0x24]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x18020285a
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180385c10
add rsp, 0x158
ret
cmp dword [rsp + 0x24], 6
setae al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180385c10
add rsp, 0x158
ret

Function at 0x180202880
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
mov dword [rsp + 0x20], VarUI4FromDisp
mov r8d, VarUI4FromDisp
lea rcx, [rsp + 0x24]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1802028ee
mov eax, dword [rsp + 0x24]
cmp eax, 6
ja 0x1802028d4
jb 0x1802028ee
cmp dword [rsp + 0x28], 1
jb 0x1802028ee
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180385c10
add rsp, 0x158
ret
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180385c10
add rsp, 0x158
ret

Function at 0x180202910
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
mov dword [rsp + 0x20], VarUI4FromDisp
mov r8d, VarUI4FromDisp
lea rcx, [rsp + 0x24]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x18020297e
mov eax, dword [rsp + 0x24]
cmp eax, 6
ja 0x180202964
jb 0x18020297e
cmp dword [rsp + 0x28], 2
jb 0x18020297e
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180385c10
add rsp, 0x158
ret
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180385c10
add rsp, 0x158
ret
Function at 0x1802029a0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
xor ebx, ebx
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x180202a8e
mov eax, dword [rsp + 0x24]
cmp eax, 4
jbe 0x180202a8e
cmp eax, 5
jne 0x180202a1e
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x180202a17
sub eax, 1
je 0x180202a8e
cmp eax, 1
jne 0x180202a17
lea ebx, [rax + 2]
jmp 0x180202a8e
mov ebx, 1
jmp 0x180202a8e
cmp eax, 6
jne 0x180202a73
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x180202a63
sub eax, 1
je 0x180202a59
sub eax, 1
je 0x180202a48
cmp eax, 1
jne 0x180202a8e
cmp byte [rsp + 0x13a], al
jne 0x180202a8e
lea ebx, [rax + 0xc]
jmp 0x180202a8e
cmp byte [rsp + 0x13a], 1
jne 0x180202a8e
mov ebx, 0xb
jmp 0x180202a8e
mov ebx, 7
lea eax, [rbx + 2]
jmp 0x180202a83
cmp byte [rsp + 0x13a], 1
setne bl
add ebx, 5
jmp 0x180202a8e
cmp eax, 0xa
jne 0x180202a8e
cmp dword [rsp + 0x28], ebx
jne 0x180202a8e
mov eax, 0xf
cmp byte [rsp + 0x13a], 1
cmove ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180385c10
add rsp, 0x150
pop rbx
ret

Function at 0x180202ab0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
mov dword [rsp + 0x20], VarUI4FromDisp
mov r8d, VarUI4FromDisp
lea rcx, [rsp + 0x24]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x180202b0a
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180385c10
add rsp, 0x158
ret
cmp dword [rsp + 0x24], 0xa
setae al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180385c10
add rsp, 0x158
ret
Function at 0x180202d40
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, r9
mov rsi, r8
mov r15, rdx
mov r14, rcx
test rdx, rdx
jne 0x180202d7f
xor al, al
jmp 0x180202ee7
xor r12d, r12d
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r12w
lea r9, [rsp + 0x38]
call fcn.180203500
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x38]
test al, al
je 0x180202df4
cmp byte [rsp + 0xc0], r12b
je 0x180202e06
mov rax, qword [rbx + 0x10]
cmp qword [rsp + 0x48], rax
je 0x180202dd1
xor al, al
jmp 0x180202df0
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x180202dde
mov rdx, qword [rbx]
lea rcx, [rsp + 0x38]
cmp rbp, 8
cmovae rcx, rdi
call fcn.180154610
test al, al
jne 0x180202e47
cmp byte [r14], 0
je 0x180202e4b
mov byte [r14 + 1], 1
mov bl, 1
jmp 0x180202e92
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x180202e13
mov rcx, qword [rbx]
lea r8, [rsp + 0x38]
cmp rbp, 8
cmovae r8, rdi
mov rdx, qword [rsp + 0x48]
cmp rdx, qword [rbx + 0x10]
jne 0x180202df4
test rdx, rdx
je 0x180202e47
sub r8, rcx
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x180202df4
add rcx, 2
sub rdx, 1
jne 0x180202e33
mov bl, 1
jmp 0x180202e92
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 8
jb 0x180202e59
mov rbx, qword [rbx]
cmp qword [rsi + 0x18], 8
jb 0x180202e63
mov rsi, qword [rsi]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x180202e90
mov bl, 1
jmp 0x180202e92
xor bl, bl
cmp rbp, 8
jb 0x180202ed0
lea rdx, [rbp*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x180202ec8
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180202ec8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.180385c70
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r12w
movzx eax, bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180385c10
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180202f10
Capabilities:
Delete registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
jne 0x180202f48
xor al, al
jmp 0x1802030ae
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
movdqa xmm1, xmmword [0x1803e6740]
movdqu xmmword [rsp + 0x58], xmm1
xor r14d, r14d
mov word [rsp + 0x48], r14w
mov rdx, rbx
cmp qword [r8 + 0x18], 8
jb 0x180202f75
mov rdx, qword [r8]
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x1803e6740]
movdqu xmmword [rsp + 0x38], xmm1
mov word [rsp + 0x28], r14w
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x180202fa0
lea rcx, [rsp + 0x28]
call fcn.180004e70
nop
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x28]
mov rdx, rsi
call fcn.180203500
movzx ebp, al
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x180203010
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18020300b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18020300b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
movdqa xmm0, xmmword [0x1803e6740]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], r14w
test bpl, bpl
je 0x180203032
cmp byte [rdi], 0
je 0x180203074
mov byte [rdi + 1], 1
mov bl, 1
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x180203097
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180203092
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180203092
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
cmp qword [rbx + 0x18], 8
jb 0x18020307e
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x180203032
xor bl, bl
jmp 0x180203034
call fcn.180385c70
movdqa xmm0, xmmword [0x1803e6740]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r14w
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180385c10
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1802030d0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
je 0x180203154
mov r9d, dword [rcx + 4]
lea rax, [rsp + 0x48]
or r9d, 0x20019
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x20], rax
call fcn.180202b40
test al, al
je 0x180203128
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [rdi], 0
je 0x18020313a
mov byte [rdi + 1], 1
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp qword [rbx + 0x18], 8
jb 0x180203144
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x180203128
mov rbx, qword [rsp + 0x40]
xor al, al
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180203170
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x290
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r14d, r8d
mov rsi, rdx
mov rbp, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x1802031e9
mov r9d, r14d
lea rax, [rsp + 0x48]
or r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x18020320a
cmp eax, 2
jne 0x18020336f
mov eax, 1
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180385c10
add rsp, 0x290
pop r14
pop rsi
pop rbp
ret
mov qword [rsp + 0x288], rdi
mov rcx, rsi
mov qword [rsp + 0x280], r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
xor r15d, r15d
cmp word [rsi + rcx*2 - 2], 0x5c
lea rdi, [rsi + rcx*2]
je 0x180203245
mov eax, 0x5c
mov word [rdi], ax
add rdi, 2
mov word [rdi], r15w
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], r15
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], r15
xor edx, edx
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x18020333b
mov qword [rsp + 0x2c8], rbx
lea rbx, [rsp + 0x60]
sub rbx, rdi
nop word [rax + rax]
mov edx, 0x208
mov rax, rdi
nop dword [rax + rax]
lea rcx, [rdx + 0x7ffffdf6]
test rcx, rcx
je 0x1802032d2
movzx ecx, word [rbx + rax]
test cx, cx
je 0x1802032d2
mov word [rax], cx
add rax, 2
sub rdx, 1
jne 0x1802032b0
test rdx, rdx
lea rcx, [rax - 2]
mov r8d, r14d
mov rdx, rsi
cmovne rcx, rax
mov word [rcx], r15w
mov rcx, rbp
call fcn.180203170
test eax, eax
je 0x180203333
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], r15
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], r15
xor edx, edx
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1802032a0
mov rbx, qword [rsp + 0x2c8]
mov word [rdi - 2], r15w
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov r15, qword [rsp + 0x280]
mov rdi, qword [rsp + 0x288]
test eax, eax
je 0x1802031e9
xor eax, eax
jmp 0x1802031ee
Function at 0x180203380
Capabilities:
Delete registry key

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
jne 0x1802033af
xor al, al
jmp 0x1802033fa
mov r9d, dword [rcx + 4]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x4a8], rbp
or r9d, 0x20019
xor ebp, ebp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rbp
call fcn.180202b40
test al, al
je 0x1802033f0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [rdi], bpl
je 0x180203415
mov byte [rdi + 1], 1
mov al, 1
mov rbp, qword [rsp + 0x4a8]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.180385c10
add rsp, 0x470
pop rdi
pop rsi
pop rbx
ret
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x180203422
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
je 0x1802033f0
cmp qword [rbx + 0x18], 8
jb 0x180203439
mov rbx, qword [rbx]
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x412
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x40]
mov r9d, 0x208
sub rbx, rax
lea rdx, [rsp + 0x40]
nop
lea rax, [r9 + 0x7ffffdf6]
test rax, rax
je 0x180203482
movzx eax, word [rbx + rdx]
test ax, ax
je 0x180203482
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x180203460
mov r8d, dword [rdi + 4]
lea rax, [rdx - 2]
test r9, r9
mov rcx, rsi
cmovne rax, rdx
lea rdx, [rsp + 0x40]
mov word [rax], bp
call fcn.180203170
test eax, eax
setne al
jmp 0x1802033f2
Function at 0x1802037f9
Capabilities:
Get file system object information

Disassembly:
test rcx, rcx
je 0x1802038be
push rsi
push rdi
push r14
sub rsp, 0x300
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov rsi, r8
mov qword [rsp + 0x338], rbx
mov r14, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x2b8
call sub.VCRUNTIME140.dll_memset
mov ebx, 0xfffffffe
test r14, r14
je 0x18020386e
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x4009
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
mov edx, ebx
cmovne edx, dword [rsp + 0x38]
mov dword [r14], edx
test rsi, rsi
je 0x18020389b
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x400b
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
cmovne ebx, dword [rsp + 0x38]
mov dword [rsi], ebx
mov rbx, qword [rsp + 0x338]
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.180385c10
add rsp, 0x300
pop r14
pop rdi
pop rsi
ret

Function at 0x180203d10
Capabilities:
Get file system object information

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x320
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rsp + 0x310], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor esi, esi
mov dword [rsp + 0x30], esi
test rdx, rdx
jne 0x180203d65
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], 7
mov word [rcx], si
jmp 0x180203dc8
xor edx, edx
mov r8d, 0x2b8
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x20], 0x208
mov r9d, 0x2b8
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], si
jne 0x180203db0
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.180004e70
nop
mov dword [rsp + 0x30], 1
mov rax, rbx
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.180385c10
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180203e00
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x280
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
mov qword [rsp + 0x50], rcx
xor edi, edi
mov dword [rsp + 0x30], edi
mov word [rsp + 0x60], di
mov word [r11 - 0x20], di
mov qword [rsp + 0x40], rdi
lea r8, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x180203ea4
mov qword [rsp + 0x38], rdi
lea rcx, [rsp + 0x38]
call qword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
js 0x180203e94
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180203e94
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x60]
mov r8d, 0x8000
mov rdx, qword [rsp + 0x40]
call fcn.1802039a0
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180203ea4
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x180203ec0
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.180004e70
mov dword [rsp + 0x30], 1
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180203ef0
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rbx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180385c10
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rdi
ret