joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1802009d0
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 [0x1804cd010]
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.180004ea0
nop
mov qword [rbx + 8], rbp
mov word [rbx + 0x10], bp
cmp qword [rsp + 0x40], rbp
je 0x180200a57
lea r8, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae r8, qword [rsp + 0x30]
jmp 0x180200a5a
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 0x180200a7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x180200a7e
mov byte [rbx + 0x11], 1
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x180200ac3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180200abe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180200abe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], bp
lea rcx, [rbx + 0x18]
mov rdx, rdi
call fcn.180004ad0
nop
lea rcx, [rbx + 0x38]
mov rdx, rsi
call fcn.180004ad0
nop
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180388400
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret

Function at 0x180201630
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 0x180201666
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 0x1802016f6
mov rdx, rsi
mov ecx, 0xf
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x1802016f6
mov edx, 4
mov ecx, 0x2042
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x1802016e2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1802016c1
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 0x1802016f9
xor dil, dil
test bl, bl
je 0x18020170a
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 0x180201720
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 [0x1804cd010]
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 0x180201922
mov ecx, 0xf
call qword [sym.imp.USER32.dll_GetClipboardData]
mov r15, rax
test rax, rax
je 0x180201922
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r12, rax
test rax, rax
je 0x180201922
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 0x180201919
xor r13d, r13d
mov edi, r13d
test eax, eax
je 0x180201904
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 0x1802018f9
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 0x180201840
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.180004ea0
nop
mov rdx, qword [rsi + 8]
cmp qword [rsi + 0x10], rdx
je 0x180201899
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 0x1802018a7
lea r8, [rsp + 0x30]
mov rcx, rsi
call fcn.18006c9b0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1802018e5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1802018e0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180201912
call fcn.180388460
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r13w
inc edi
cmp edi, r14d
jb 0x1802017e0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dil, 1
jmp 0x180201925
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 0x180201936
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.180388400
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 0x180202d30
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1804cd010]
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 0x180202d9e
mov eax, dword [rsp + 0x24]
cmp eax, 5
ja 0x180202d84
jne 0x180202d9e
cmp dword [rsp + 0x28], 0
jbe 0x180202d9e
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180388400
add rsp, 0x158
ret
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180388400
add rsp, 0x158
ret

Function at 0x180202dc0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1804cd010]
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 0x180202e1a
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180388400
add rsp, 0x158
ret
cmp dword [rsp + 0x24], 6
setae al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180388400
add rsp, 0x158
ret

Function at 0x180202e40
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1804cd010]
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 0x180202eae
mov eax, dword [rsp + 0x24]
cmp eax, 6
ja 0x180202e94
jb 0x180202eae
cmp dword [rsp + 0x28], 1
jb 0x180202eae
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180388400
add rsp, 0x158
ret
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180388400
add rsp, 0x158
ret

Function at 0x180202ed0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1804cd010]
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 0x180202f3e
mov eax, dword [rsp + 0x24]
cmp eax, 6
ja 0x180202f24
jb 0x180202f3e
cmp dword [rsp + 0x28], 2
jb 0x180202f3e
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180388400
add rsp, 0x158
ret
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180388400
add rsp, 0x158
ret
Function at 0x180202f60
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1804cd010]
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 0x18020304e
mov eax, dword [rsp + 0x24]
cmp eax, 4
jbe 0x18020304e
cmp eax, 5
jne 0x180202fde
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x180202fd7
sub eax, 1
je 0x18020304e
cmp eax, 1
jne 0x180202fd7
lea ebx, [rax + 2]
jmp 0x18020304e
mov ebx, 1
jmp 0x18020304e
cmp eax, 6
jne 0x180203033
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x180203023
sub eax, 1
je 0x180203019
sub eax, 1
je 0x180203008
cmp eax, 1
jne 0x18020304e
cmp byte [rsp + 0x13a], al
jne 0x18020304e
lea ebx, [rax + 0xc]
jmp 0x18020304e
cmp byte [rsp + 0x13a], 1
jne 0x18020304e
mov ebx, 0xb
jmp 0x18020304e
mov ebx, 7
lea eax, [rbx + 2]
jmp 0x180203043
cmp byte [rsp + 0x13a], 1
setne bl
add ebx, 5
jmp 0x18020304e
cmp eax, 0xa
jne 0x18020304e
cmp dword [rsp + 0x28], ebx
jne 0x18020304e
mov eax, 0xf
cmp byte [rsp + 0x13a], 1
cmove ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180388400
add rsp, 0x150
pop rbx
ret

Function at 0x180203070
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1804cd010]
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 0x1802030ca
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180388400
add rsp, 0x158
ret
cmp dword [rsp + 0x24], 0xa
setae al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180388400
add rsp, 0x158
ret
Function at 0x180203300
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 [0x1804cd010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, r9
mov rsi, r8
mov r15, rdx
mov r14, rcx
test rdx, rdx
jne 0x18020333f
xor al, al
jmp 0x1802034a7
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.180203ac0
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x38]
test al, al
je 0x1802033b4
cmp byte [rsp + 0xc0], r12b
je 0x1802033c6
mov rax, qword [rbx + 0x10]
cmp qword [rsp + 0x48], rax
je 0x180203391
xor al, al
jmp 0x1802033b0
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x18020339e
mov rdx, qword [rbx]
lea rcx, [rsp + 0x38]
cmp rbp, 8
cmovae rcx, rdi
call fcn.180154bd0
test al, al
jne 0x180203407
cmp byte [r14], 0
je 0x18020340b
mov byte [r14 + 1], 1
mov bl, 1
jmp 0x180203452
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1802033d3
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 0x1802033b4
test rdx, rdx
je 0x180203407
sub r8, rcx
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x1802033b4
add rcx, 2
sub rdx, 1
jne 0x1802033f3
mov bl, 1
jmp 0x180203452
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 8
jb 0x180203419
mov rbx, qword [rbx]
cmp qword [rsi + 0x18], 8
jb 0x180203423
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 0x180203450
mov bl, 1
jmp 0x180203452
xor bl, bl
cmp rbp, 8
jb 0x180203490
lea rdx, [rbp*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x180203488
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180203488
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.180388460
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.180388400
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1802034d0
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 [0x1804cd010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
jne 0x180203508
xor al, al
jmp 0x18020366e
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
movdqa xmm1, xmmword [0x1803e8770]
movdqu xmmword [rsp + 0x58], xmm1
xor r14d, r14d
mov word [rsp + 0x48], r14w
mov rdx, rbx
cmp qword [r8 + 0x18], 8
jb 0x180203535
mov rdx, qword [r8]
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x1803e8770]
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 0x180203560
lea rcx, [rsp + 0x28]
call fcn.180004ea0
nop
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x28]
mov rdx, rsi
call fcn.180203ac0
movzx ebp, al
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x1802035d0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1802035cb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1802035cb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
movdqa xmm0, xmmword [0x1803e8770]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], r14w
test bpl, bpl
je 0x1802035f2
cmp byte [rdi], 0
je 0x180203634
mov byte [rdi + 1], 1
mov bl, 1
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x180203657
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180203652
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180203652
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
cmp qword [rbx + 0x18], 8
jb 0x18020363e
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x1802035f2
xor bl, bl
jmp 0x1802035f4
call fcn.180388460
movdqa xmm0, xmmword [0x1803e8770]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r14w
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180388400
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x180203690
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 0x180203714
mov r9d, dword [rcx + 4]
lea rax, [rsp + 0x48]
or r9d, 0x20019
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x20], rax
call fcn.180203100
test al, al
je 0x1802036e8
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [rdi], 0
je 0x1802036fa
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 0x180203704
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x1802036e8
mov rbx, qword [rsp + 0x40]
xor al, al
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180203730
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x290
mov rax, qword [0x1804cd010]
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 0x1802037a9
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 0x1802037ca
cmp eax, 2
jne 0x18020392f
mov eax, 1
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180388400
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 0x180203805
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 0x1802038fb
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 0x180203892
movzx ecx, word [rbx + rax]
test cx, cx
je 0x180203892
mov word [rax], cx
add rax, 2
sub rdx, 1
jne 0x180203870
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.180203730
test eax, eax
je 0x1802038f3
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 0x180203860
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 0x1802037a9
xor eax, eax
jmp 0x1802037ae
Function at 0x180203940
Capabilities:
Delete registry key

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x1804cd010]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
jne 0x18020396f
xor al, al
jmp 0x1802039ba
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.180203100
test al, al
je 0x1802039b0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [rdi], bpl
je 0x1802039d5
mov byte [rdi + 1], 1
mov al, 1
mov rbp, qword [rsp + 0x4a8]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.180388400
add rsp, 0x470
pop rdi
pop rsi
pop rbx
ret
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x1802039e2
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
je 0x1802039b0
cmp qword [rbx + 0x18], 8
jb 0x1802039f9
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 0x180203a42
movzx eax, word [rbx + rdx]
test ax, ax
je 0x180203a42
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x180203a20
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.180203730
test eax, eax
setne al
jmp 0x1802039b2
Function at 0x180203db9
Capabilities:
Get file system object information

Disassembly:
test rcx, rcx
je 0x180203e7e
push rsi
push rdi
push r14
sub rsp, 0x300
mov rax, qword [0x1804cd010]
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 0x180203e2e
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 0x180203e5b
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.180388400
add rsp, 0x300
pop r14
pop rdi
pop rsi
ret

Function at 0x1802042d0
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 [0x1804cd010]
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 0x180204325
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], 7
mov word [rcx], si
jmp 0x180204388
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 0x180204370
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.180004ea0
nop
mov dword [rsp + 0x30], 1
mov rax, rbx
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.180388400
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1802043c0
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 [0x1804cd010]
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 0x180204464
mov qword [rsp + 0x38], rdi
lea rcx, [rsp + 0x38]
call qword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
js 0x180204454
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180204454
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x60]
mov r8d, 0x8000
mov rdx, qword [rsp + 0x40]
call fcn.180203f60
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180204464
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 0x180204480
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.180004ea0
mov dword [rsp + 0x30], 1
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1802044b0
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rbx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180388400
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rdi
ret