joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015860
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1402e3910]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x30]
mov rsi, r8
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x20], 0
mov rbp, rdx
mov rdi, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14001593e
mov ecx, dword [rsp + 0x34]
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x1400158be
cmp ecx, 7
jne 0x14001593e
mov ecx, dword [rsp + 0x30]
inc ecx
mov qword [rsp + 0x78], rbx
call fcn.140015c98
mov rbx, rax
test rax, rax
jne 0x1400158f0
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401cb100
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [rsp + 0x30]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, rbp
mov rcx, rdi
mov byte [rax + rbx], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
sete dil
test eax, eax
jne 0x140015930
mov rdx, rbx
mov rcx, rsi
call fcn.140010a90
mov rcx, rbx
call fcn.140015ca0
movzx eax, dil
jmp 0x1400158d6
xor al, al
jmp 0x1400158db

Function at 0x140015950
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1402e3910]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
mov qword [rcx], rdx
mov qword [r11 - 0x20], rsi
lea rdi, [rcx + 0x10]
mov qword [r11 - 0x28], rsi
lea rax, [r11 - 0x18]
mov qword [r11 - 0x30], rsi
mov r10, rdx
mov qword [r11 - 0x38], rdi
mov rbx, rcx
mov qword [r11 - 0x40], rax
xor r9d, r9d
mov qword [r11 - 0x48], rsi
xor r8d, r8d
mov qword [rcx + 8], rsi
xor edx, edx
mov qword [r11 - 0x50], rsi
mov rcx, r10
mov qword [r11 - 0x58], rsi
mov dword [rdi], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
inc dword [rdi]
test eax, eax
je 0x1400159d0
mov rcx, qword [rbx + 8]
mov dword [rdi], esi
call fcn.140015ca0
mov qword [rbx + 8], rsi
jmp 0x1400159db
mov ecx, dword [rdi]
call fcn.140015c98
mov qword [rbx + 8], rax
mov rax, rbx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1401cb100
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140018ad0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
xor esi, esi
xor edi, edi
mov r15, r9
mov rbx, r8
mov r14, rdx
mov r12, rcx
test r8, r8
je 0x140018b42
call fcn.140035330
mov r8d, 0xf0
mov rdx, rbx
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140018b42
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x140018ba2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
mov ebp, 1
test rsi, rsi
je 0x140018b7a
mov rcx, qword [r12]
mov rbx, qword [rcx + 0x40]
mov rcx, rbx
call fcn.1401cb730
mov r9, r15
mov r8, rsi
mov rdx, r14
mov rcx, r12
call rbx
mov ebp, eax
test rdi, rdi
je 0x140018b7a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rdi, qword [r14 + 0xc8]
test rdi, rdi
je 0x140018ba0
mov rdx, qword [rdi]
mov rbx, qword [rdx + 0x140]
mov rcx, rbx
call fcn.1401cb730
mov rdx, r15
mov rcx, rdi
call rbx
mov eax, ebp
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002a628
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx + 0xb0], 0
mov edi, r9d
mov rbx, r8
mov rax, rdx
je 0x14002a6a2
xor r8d, r8d
call fcn.14002a8e4
mov rsi, rax
test rax, rax
jne 0x14002a65e
mov eax, edi
jmp 0x14002a6b8
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
cmove edi, dword [rsp + 0x30]
jmp 0x14002a65a
mov r9, qword [rcx + 0xd8]
mov r8d, edi
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14002b364
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CDialog.virtual_720
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov qword [rcx + 0xf0], rdx
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
cmp rdx, 0x10000
jae 0x14002b3a3
cmp dword [rcx + 0xe8], 0
jne 0x14002b3a3
movzx eax, di
mov dword [rcx + 0xe8], eax
call fcn.140035330
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.14002b75c
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002b400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14, r8
mov rbx, rdx
mov r15, rcx
xor edi, edi
call fcn.140035330
lea r8d, [rdi + 5]
mov rdx, rbx
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x14002b45c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov r9, rbp
mov r8, r14
mov rdx, rdi
mov rcx, r15
call fcn.14002b494
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x140030364
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x1400303d7
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400303eb
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x1400303eb
mov rcx, rax
call fcn.1401cb730
mov rcx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rsi
mov rcx, rbp
call rdi
jmp 0x1400303f0
cmp dword [rcx + 8], 0
je 0x1400303eb
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x1400303f0
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140032618
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
or edx, 0xffffffff
mov rsi, rcx
call fcn.1400fdbb0
xor ebx, ebx
test eax, eax
je 0x140032681
mov rcx, rsi
mov edi, 0x811c9dc5
call fcn.1401d6110
mov r9, rax
mov eax, 0xcccccccd
mul r9d
shr edx, 3
test r9d, r9d
je 0x14003266f
movzx r8d, word [rsi + rbx*2]
inc ebx
imul edi, edi, 0x1000193
add ebx, edx
xor edi, r8d
cmp ebx, r9d
jb 0x140032658
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call fcn.140032120
int3
Function at 0x140036cc8
Capabilities:
Get graphical window text

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
movsxd rbp, r8d
mov rsi, rdx
mov rdi, rcx
cmp qword [rcx + 0xd0], 0
jne 0x140036d09
mov r8d, ebp
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x140036de6
call fcn.140032868
mov r14, rax
test rax, rax
jne 0x140036d21
mov ecx, 0x80004005
call fcn.1400063a0
int3
mov rax, qword [rax]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call fcn.1401cb730
mov rcx, r14
call rbx
add rax, 0x18
mov qword [rsp + 0x50], rax
mov rdi, qword [rdi + 0xd0]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x118]
mov rcx, rbx
call fcn.1401cb730
lea rdx, [rsp + 0x50]
mov rcx, rdi
call rbx
mov rdx, rbp
or rbx, 0xffffffffffffffff
mov r9, rbx
mov r8, qword [rsp + 0x50]
mov rcx, rsi
call fcn.1401d70f4
test eax, eax
je 0x140036da2
cmp eax, 0xc
je 0x140036d9c
cmp eax, 0x16
je 0x140036d96
cmp eax, 0x22
je 0x140036d96
cmp eax, 0x50
je 0x140036da2
call fcn.140032120
int3
call fcn.140032120
int3
call fcn.140032144
int3
test rsi, rsi
jne 0x140036dab
xor ebp, ebp
jmp 0x140036db6
mov rcx, rsi
call fcn.1401d6110
mov rbp, rax
mov rsi, qword [rsp + 0x50]
mov ecx, ebx
lock xadd dword [rsi - 8], ecx
add ecx, ebx
test ecx, ecx
jg 0x140036de4
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call fcn.1401cb730
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
mov eax, ebp
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x14003a238
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
mov rsi, rdx
mov r14, rcx
test rdx, rdx
je 0x14003a2a0
call fcn.140035330
mov r8d, 0xf0
mov rdx, rsi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14003a2a0
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x14003a2c2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, r14
call fcn.1400def10
mov esi, eax
test rdi, rdi
je 0x14003a2c0
test rbx, rbx
je 0x14003a2c0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14003b190
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x14003b268
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x14003b268
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14003b268
test rsi, rsi
je 0x14003b268
xor r15d, r15d
xor ebp, ebp
xor edi, edi
call fcn.140035330
lea r8, str.AFX_DIALOG_LAYOUT
mov rdx, rsi
mov r14, qword [rax + 0x18]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x14003b235
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rsi
mov rcx, r14
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x14003b268
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
mov r8d, r15d
mov rdx, rbp
mov rcx, rbx
call fcn.140107420
mov esi, eax
test rbp, rbp
je 0x14003b258
test rdi, rdi
je 0x14003b258
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
test esi, esi
je 0x14003b264
mov rcx, rbx
call fcn.14003adf8
mov eax, esi
jmp 0x14003b26a
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x14003c3a4
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rbx, r8
mov rcx, qword [rcx + 0x40]
call fcn.14004452c
mov rdi, rax
test rax, rax
je 0x14003c420
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov esi, eax
test rbx, rbx
je 0x14003c41b
cmp dword [rbx], 0x40
jb 0x14003c41b
mov rcx, qword [rbp + 0x40]
xor r9d, r9d
or dword [rbx + 4], 1
xor r8d, r8d
or qword [rbx + 0x30], 0xffffffffffffffff
mov edx, 0x87
mov qword [rbx + 8], rcx
mov rcx, rdi
mov qword [rbx + 0x10], rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x14003c41b
or dword [rbx + 4], 0x80000002
mov rax, rsi
jmp 0x14003c424
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14004596c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov rcx, qword [rdx]
cmp dword [rcx - 0x10], 0
je 0x14004599e
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14004599e
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.1401104f0
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400459b0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rsi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1400459db
mov r8, rdx
mov rdx, qword [rdi]
call fcn.140030364
jmp 0x140045a53
cmp byte [0x1402ef5a8], 0
jne 0x140045a22
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140045a12
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [0x1402ef5a0], rax
jmp 0x140045a19
mov rbx, qword [0x1402ef5a0]
mov byte [0x1402ef5a8], 1
jmp 0x140045a29
mov rbx, qword [0x1402ef5a0]
test rbx, rbx
je 0x140045a47
mov rcx, rbx
call fcn.1401cb730
mov r8d, dword [rdi + 8]
xor r9d, r9d
mov rcx, qword [rdi]
mov rdx, rsi
call rbx
jmp 0x140045a53
mov rcx, qword [rdi]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14005db80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov r15, rcx
test r8, r8
jne 0x14005dbb1
call fcn.140035330
mov rdi, qword [rax + 0x18]
lea r8, [0x140233628]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
jne 0x14005dbd0
xor eax, eax
jmp 0x14005dc1c
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x14005dbcc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x14005dc11
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, r14
mov rcx, r15
mov r8d, eax
call fcn.14005dc38
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1401099d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
test byte [rdx + 4], 1
mov esi, r8d
mov rbx, rdx
mov rbp, rcx
je 0x1401099f9
mov rdi, qword [rdx + 0x10]
jmp 0x140109a4a
mov rdx, qword [rdx + 0x10]
mov r8d, 5
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x140109a1a
call fcn.140033524
mov rcx, qword [rbx + 8]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
jne 0x140109a34
call fcn.140033524
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
jne 0x140109a4a
call fcn.140033524
call fcn.140035330
cmp qword [rax + 0x68], 0
je 0x140109a64
mov rdx, rdi
mov rcx, rbp
call fcn.140108ce4
mov rdi, rax
mov edx, esi
mov rcx, rdi
call fcn.140109cd0
mov rcx, qword [rbp + 0xf8]
mov rsi, rax
test rcx, rcx
je 0x140109a8b
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp + 0xf8], 0
test rsi, rsi
je 0x140109a9a
mov rdi, rsi
mov qword [rbp + 0xf8], rsi
or dword [rbx + 4], 1
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov qword [rbx + 0x10], rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14012d458
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x14012d628
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea rax, [r11 + 8]
mov qword [r11 - 0x10], rax
lea r9, [r11 + 0x20]
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
test eax, eax
jne 0x14012d66a
mov ecx, dword [rsp + 0x58]
sub ecx, 4
neg ecx
sbb eax, eax
and eax, 0xd
test eax, eax
sete dl
mov eax, edx
add rsp, 0x38
ret
Function at 0x14012daf4
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x14012dbc6
test rbx, rbx
je 0x14012dbcc
test r9, r9
je 0x14012dbd2
and qword [r8], 0
xor r8d, r8d
and dword [r9], 0
mov rcx, qword [rcx + 8]
mov qword [rax - 0x10], r9
lea r9, [rax + 0x10]
and qword [rax - 0x18], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14012dbaf
cmp dword [rsp + 0x48], 3
jne 0x14012dbaf
test eax, eax
jne 0x14012dbaf
cmp dword [rdi], eax
je 0x14012dbaf
mov ecx, dword [rdi]
call fcn.140015c98
mov qword [rbx], rax
lea r9, [rsp + 0x48]
mov rcx, qword [rbp + 8]
xor r8d, r8d
mov qword [rsp + 0x28], rdi
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14012dba3
cmp dword [rsp + 0x48], 3
jne 0x14012dba3
test eax, eax
jne 0x14012dba3
mov eax, 1
jmp 0x14012dbb1
mov rcx, qword [rbx]
call fcn.140015ca0
and qword [rbx], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.140032120
int3
call fcn.140032120
int3
call fcn.140032120
int3

Function at 0x14012e004
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x14012e015
xor eax, eax
jmp 0x14012e043
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, 4
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x14012e04c
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x14012e05d
xor eax, eax
jmp 0x14012e081
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov r9d, 3
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140179150
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
cmp qword [0x1402eb898], 0
mov rdi, rcx
jne 0x14017916e
xor eax, eax
jmp 0x140179269
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 0x40]
call fcn.140036f24
mov edx, 1
mov rcx, rdi
call fcn.1401790d4
mov rcx, rax
call fcn.140115b84
test rax, rax
jne 0x14017919b
xor r9d, r9d
jmp 0x14017919f
mov r9, qword [rax + 8]
mov rcx, qword [rdi + 0x40]
mov ebx, 0x1003
mov edx, ebx
xor r8d, r8d
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rax
call fcn.140115b84
xor edx, edx
mov rcx, rdi
call fcn.1401790d4
mov rcx, rax
call fcn.140115b84
test rax, rax
jne 0x1401791d7
xor r9d, r9d
jmp 0x1401791db
mov r9, qword [rax + 8]
mov rcx, qword [rdi + 0x40]
mov r8d, 1
mov edx, ebx
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rax
call fcn.140115b84
mov rax, qword [rdi]
mov rbx, qword [rax + 0x328]
mov rcx, rbx
call fcn.1401cb730
mov rcx, rdi
call rbx
cmp qword [rdi + 0x248], 0
jne 0x140179264
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x28]
xorps xmm0, xmm0
xor edx, edx
xor ecx, ecx
movdqu xmmword [rsp + 0x20], xmm0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
js 0x140179264
mov rcx, qword [rdi]
mov rbx, qword [rcx + 0x310]
mov rcx, rbx
call fcn.1401cb730
lea rdx, [rsp + 0x20]
mov rcx, rdi
call rbx
mov rdx, qword [rsp + 0x28]
mov rcx, qword [0x1402eb898]
call fcn.1400197e8
mov eax, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140179d00
Capabilities:
Get file system object information

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x678]
sub rsp, 0x750
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1402e3910]
xor rax, rsp
mov qword [rbp + 0x640], rax
mov r14d, r9d
mov rsi, rdx
mov r15, rcx
mov r10, qword [rbp + 0x6a0]
test r10, r10
jne 0x140179d51
call fcn.140032120
int3
mov ecx, r14d
test r14d, r14d
je 0x140179ead
sub ecx, 1
je 0x140179da7
sub ecx, 1
je 0x140179d71
cmp ecx, 1
je 0x140179da7
jmp 0x140179eda
mov dword [rsp + 0x20], 0x408
mov r9d, 0x2b8
lea r8, [rbp + 0x170]
xor edx, edx
mov rcx, qword [r10 + 8]
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
je 0x140179eda
lea rdx, [rbp + 0x388]
jmp 0x140179ee1
lea rdx, [rbp + 0x430]
mov rcx, qword [r10 + 8]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x140179eda
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
and qword [rsp + 0x50], 0
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x430]
call fcn.1401101e0
test eax, eax
je 0x140179eda
call fcn.140032868
mov rdi, rax
test rax, rax
jne 0x140179e03
mov ecx, 0x80004005
call fcn.1400063a0
int3
mov rax, qword [rax]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call fcn.1401cb730
mov rcx, rdi
call rbx
add rax, 0x18
mov qword [rsp + 0x30], rax
cmp r14d, 1
jne 0x140179e46
test byte [rsp + 0x60], 0x18
jne 0x140179e67
mov rax, qword [r15]
mov rbx, qword [rax + 0x340]
mov rcx, rbx
call fcn.1401cb730
mov rdx, qword [rsp + 0x58]
jmp 0x140179e5d
mov rax, qword [r15]
mov rbx, qword [rax + 0x348]
mov rcx, rbx
call fcn.1401cb730
lea rdx, [rsp + 0x48]
lea r8, [rsp + 0x30]
mov rcx, r15
call rbx
mov rcx, qword [rsp + 0x30]
add rcx, 0xffffffffffffffe8
call fcn.140016850
add rax, 0x18
mov qword [rsi], rax
mov r14, qword [rsp + 0x30]
or eax, 0xffffffff
lock xadd dword [r14 - 8], eax
sub eax, 1
jg 0x140179ee9
mov rdi, qword [r14 - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call fcn.1401cb730
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
jmp 0x140179ee9
mov dword [rsp + 0x20], 0x208
mov r9d, 0x2b8
lea r8, [rbp + 0x170]
xor edx, edx
mov rcx, qword [r10 + 8]
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
lea rdx, [rbp + 0x180]
jne 0x140179ee1
lea rdx, [0x1402973cc]
mov rcx, rsi
call fcn.140005dd0
mov rax, rsi
mov rcx, qword [rbp + 0x640]
xor rcx, rsp
call fcn.1401cb100
mov rbx, qword [rsp + 0x790]
add rsp, 0x750
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret