joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801e7dc0
Capabilities:
Check os version

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x160
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1804e0010]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
xor esi, esi
mov qword [rsp + 0x28], rsi
lea ecx, [rsi + 1]
call fcn.180393f74
mov qword [rsp + 0x28], rax
mov byte [rax], sil
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0x34]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], 0x11c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1801e7e40
cmp dword [rsp + 0x34], 6
setae cl
mov rax, qword [rsp + 0x28]
mov byte [rax], cl
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea rcx, [rsp + 0x28]
call fcn.18017c570
test al, al
je 0x1801e7e6b
lea rcx, [rsp + 0x28]
call fcn.18017bab0
test al, al
jne 0x1801e7e6b
xor bl, bl
jmp 0x1801e7f05
lea rbx, [rdi + 8]
mov rdx, rbx
xor ecx, ecx
call fcn.180380f40
test al, al
jne 0x1801e7e8e
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jb 0x1801e7e8b
mov rbx, qword [rbx]
mov word [rbx], si
lea rbx, [rdi + 0x28]
mov rdx, rbx
mov ecx, 0x1a
call fcn.180380f40
test al, al
jne 0x1801e7eb4
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jb 0x1801e7eb1
mov rbx, qword [rbx]
mov word [rbx], si
lea rbx, [rdi + 0x48]
mov rdx, rbx
mov ecx, 2
call fcn.180380f40
test al, al
jne 0x1801e7eda
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jb 0x1801e7ed7
mov rbx, qword [rbx]
mov word [rbx], si
lea rbx, [rdi + 0x68]
mov rdx, rbx
mov ecx, 0xb
call fcn.180380f40
test al, al
jne 0x1801e7f00
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jb 0x1801e7efd
mov rbx, qword [rbx]
mov word [rbx], si
mov byte [rdi], 1
mov bl, 1
lea rcx, [rsp + 0x28]
call fcn.18017b210
movzx eax, bl
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180393f50
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1801e8000
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov qword [r11 - 0x60], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rax, qword [0x1804e0010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, r8
mov rbp, rdx
mov qword [r11 - 0x58], rdx
xor r15d, r15d
mov dword [r11 - 0x68], r15d
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x1801e8047
mov rdx, qword [r8]
mov rcx, qword [r8 + 0x10]
test rcx, rcx
je 0x1801e8063
mov rax, rdx
cmp word [rax], 0x25
je 0x1801e809b
add rax, 2
sub rcx, 1
jne 0x1801e8053
mov rdx, rdi
mov rcx, rbp
call fcn.180005900
nop
mov dword [rsp + 0x20], 1
mov rax, rbp
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180393f50
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
test rax, rax
je 0x1801e8063
sub rax, rdx
sar rax, 1
cmp rax, 0xffffffffffffffff
je 0x1801e8063
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.180005900
nop
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1801e80c7
mov rcx, qword [rdi]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r14d, eax
test eax, eax
jne 0x1801e814a
mov rdx, rdi
mov rcx, rbp
call fcn.180005900
mov dword [rsp + 0x20], 1
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x1801e8131
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801e812c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801e812c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7240]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], r15w
jmp 0x1801e8077
lea ecx, [rax + 2]
mov eax, 2
mul rcx
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.1803944a8
mov rsi, rax
cmp qword [rdi + 0x18], 8
jb 0x1801e8175
mov rdi, qword [rdi]
lea r8d, [r14 + 1]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1801e81af
cmp eax, r14d
ja 0x1801e81af
mov eax, eax
mov word [rsi + rax*2], r15w
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x1801e8195
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.180005cd0
mov rcx, rsi
call fcn.180393fb0
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rbp + 0x10], xmm1
movdqa xmm0, xmmword [0x1803f7240]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], r15w
mov dword [rsp + 0x20], 1
jmp 0x1801e8131
Function at 0x1801f26c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1804e0010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ebp, r8d
mov rdi, rdx
mov r14, rcx
cmp r9, 2
jne 0x1801f2759
lea ecx, [r9 + 0x16]
call qword [sym.imp.gdiplus.dll_GdipAlloc]
mov rbx, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1801f274d
xor eax, eax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
lea rax, vtable.Gdiplus::Image.0
mov qword [rbx], rax
lea rax, vtable.Gdiplus::Bitmap.0
mov qword [rbx], rax
xor esi, esi
mov qword [rsp + 0x30], rsi
movzx edx, bp
lea r8, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.gdiplus.dll_GdipCreateBitmapFromResource]
mov dword [rbx + 0x10], eax
mov rax, qword [rsp + 0x30]
mov qword [rbx + 8], rax
jmp 0x1801f2751
xor esi, esi
mov ebx, esi
mov qword [r14], rbx
jmp 0x1801f2837
movzx edx, bp
mov r8, r9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x1801f2861
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test eax, eax
je 0x1801f2861
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x1801f2861
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x1801f2858
mov edx, esi
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x1801f2858
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1801f284f
mov r8d, esi
mov rdx, rbp
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor esi, esi
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x30]
lea edx, [rsi + 1]
mov rcx, rdi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x1801f284f
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1801f284f
call fcn.1801f2670
mov qword [r14], rax
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rcx, r14
call fcn.1801f2880
mov rcx, qword [r14]
mov eax, dword [rcx + 0x10]
mov dword [rcx + 0x10], esi
test eax, eax
sete al
jmp 0x1801f2863
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180393f50
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rcx + 0x18]
jmp 0x1801f26c0
Function at 0x1801f2b20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1804e0010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ebp, r8d
mov rdi, rdx
mov r14, rcx
cmp r9, 2
jne 0x1801f2759
lea ecx, [r9 + 0x16]
call qword [sym.imp.gdiplus.dll_GdipAlloc]
mov rbx, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1801f274d
xor eax, eax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
lea rax, vtable.Gdiplus::Image.0
mov qword [rbx], rax
lea rax, vtable.Gdiplus::Bitmap.0
mov qword [rbx], rax
xor esi, esi
mov qword [rsp + 0x30], rsi
movzx edx, bp
lea r8, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.gdiplus.dll_GdipCreateBitmapFromResource]
mov dword [rbx + 0x10], eax
mov rax, qword [rsp + 0x30]
mov qword [rbx + 8], rax
jmp 0x1801f2751
xor esi, esi
mov ebx, esi
mov qword [r14], rbx
jmp 0x1801f2837
movzx edx, bp
mov r8, r9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x1801f2861
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test eax, eax
je 0x1801f2861
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x1801f2861
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x1801f2858
mov edx, esi
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x1801f2858
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1801f284f
mov r8d, esi
mov rdx, rbp
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor esi, esi
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x30]
lea edx, [rsi + 1]
mov rcx, rdi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x1801f284f
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1801f284f
call fcn.1801f2670
mov qword [r14], rax
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rcx, r14
call fcn.1801f2880
mov rcx, qword [r14]
mov eax, dword [rcx + 0x10]
mov dword [rcx + 0x10], esi
test eax, eax
sete al
jmp 0x1801f2863
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180393f50
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rcx + 0x18]
jmp 0x1801f26c0
Function at 0x180201ea0
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 [0x1804e0010]
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.180005cd0
nop
mov qword [rbx + 8], rbp
mov word [rbx + 0x10], bp
cmp qword [rsp + 0x40], rbp
je 0x180201f27
lea r8, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae r8, qword [rsp + 0x30]
jmp 0x180201f2a
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 0x180201f4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x180201f4e
mov byte [rbx + 0x11], 1
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x180201f93
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180201f8e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180201f8e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], bp
lea rcx, [rbx + 0x18]
mov rdx, rdi
call fcn.180005900
nop
lea rcx, [rbx + 0x38]
mov rdx, rsi
call fcn.180005900
nop
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180393f50
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret

Function at 0x180202b00
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 0x180202b36
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 0x180202bc6
mov rdx, rsi
mov ecx, 0xf
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x180202bc6
mov edx, 4
mov ecx, 0x2042
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x180202bb2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x180202b91
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 0x180202bc9
xor dil, dil
test bl, bl
je 0x180202bda
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 0x180202bf0
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 [0x1804e0010]
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 0x180202df2
mov ecx, 0xf
call qword [sym.imp.USER32.dll_GetClipboardData]
mov r15, rax
test rax, rax
je 0x180202df2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r12, rax
test rax, rax
je 0x180202df2
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 0x180202de9
xor r13d, r13d
mov edi, r13d
test eax, eax
je 0x180202dd4
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 0x180202dc9
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 0x180202d10
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.180005cd0
nop
mov rdx, qword [rsi + 8]
cmp qword [rsi + 0x10], rdx
je 0x180202d69
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 0x180202d77
lea r8, [rsp + 0x30]
mov rcx, rsi
call fcn.18006eb60
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x180202db5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180202db0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180202de2
call fcn.180393fb0
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r13w
inc edi
cmp edi, r14d
jb 0x180202cb0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dil, 1
jmp 0x180202df5
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 0x180202e06
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.180393f50
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 0x1802045a0
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 [0x1804e0010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, r9
mov rsi, r8
mov r15, rdx
mov r14, rcx
test rdx, rdx
jne 0x1802045df
xor al, al
jmp 0x180204747
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.180204d60
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x38]
test al, al
je 0x180204654
cmp byte [rsp + 0xc0], r12b
je 0x180204666
mov rax, qword [rbx + 0x10]
cmp qword [rsp + 0x48], rax
je 0x180204631
xor al, al
jmp 0x180204650
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x18020463e
mov rdx, qword [rbx]
lea rcx, [rsp + 0x38]
cmp rbp, 8
cmovae rcx, rdi
call fcn.180159c10
test al, al
jne 0x1802046a7
cmp byte [r14], 0
je 0x1802046ab
mov byte [r14 + 1], 1
mov bl, 1
jmp 0x1802046f2
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x180204673
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 0x180204654
test rdx, rdx
je 0x1802046a7
sub r8, rcx
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x180204654
add rcx, 2
sub rdx, 1
jne 0x180204693
mov bl, 1
jmp 0x1802046f2
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 8
jb 0x1802046b9
mov rbx, qword [rbx]
cmp qword [rsi + 0x18], 8
jb 0x1802046c3
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 0x1802046f0
mov bl, 1
jmp 0x1802046f2
xor bl, bl
cmp rbp, 8
jb 0x180204730
lea rdx, [rbp*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x180204728
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180204728
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.180393fb0
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.180393f50
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180204770
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 [0x1804e0010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
jne 0x1802047a8
xor al, al
jmp 0x18020490e
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
movdqa xmm1, xmmword [0x1803f7240]
movdqu xmmword [rsp + 0x58], xmm1
xor r14d, r14d
mov word [rsp + 0x48], r14w
mov rdx, rbx
cmp qword [r8 + 0x18], 8
jb 0x1802047d5
mov rdx, qword [r8]
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x1803f7240]
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 0x180204800
lea rcx, [rsp + 0x28]
call fcn.180005cd0
nop
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x28]
mov rdx, rsi
call fcn.180204d60
movzx ebp, al
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x180204870
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18020486b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18020486b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7240]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], r14w
test bpl, bpl
je 0x180204892
cmp byte [rdi], 0
je 0x1802048d4
mov byte [rdi + 1], 1
mov bl, 1
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x1802048f7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1802048f2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1802048f2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
cmp qword [rbx + 0x18], 8
jb 0x1802048de
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x180204892
xor bl, bl
jmp 0x180204894
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7240]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r14w
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180393f50
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x290
mov rax, qword [0x1804e0010]
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 0x180204a49
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 0x180204a6a
cmp eax, 2
jne 0x180204bcf
mov eax, 1
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180393f50
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 0x180204aa5
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 0x180204b9b
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 0x180204b32
movzx ecx, word [rbx + rax]
test cx, cx
je 0x180204b32
mov word [rax], cx
add rax, 2
sub rdx, 1
jne 0x180204b10
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.1802049d0
test eax, eax
je 0x180204b93
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 0x180204b00
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 0x180204a49
xor eax, eax
jmp 0x180204a4e