joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c41a0
Capabilities:
Clear file content

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
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400b888c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400b888c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400c42ed
cmp rax, 0xffffffffffffffff
je 0x1400c42ed
xor edi, edi
test rbp, rbp
jle 0x1400c429b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400b2080
mov rbx, rax
test rax, rax
jne 0x1400c4228
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400c4291
mov edx, 0x8000
mov ecx, r14d
call fcn.1400b050c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400b6e9c
cmp eax, 0xffffffff
je 0x1400c4271
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400c4238
mov edx, r15d
mov ecx, r14d
call fcn.1400b050c
jmp 0x1400c4291
cmp byte [rsi + 0x38], dil
je 0x1400c4288
cmp dword [rsi + 0x34], 5
jne 0x1400c4288
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400c4291
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400b2100
jmp 0x1400c42ff
jns 0x1400c42ff
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400b888c
cmp rax, 0xffffffffffffffff
jne 0x1400c42b9
cmp byte [rsi + 0x30], dil
je 0x1400c42ff
jmp 0x1400c42f5
mov ecx, r14d
call fcn.1400bd0b4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400c42ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400c42ff
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400c42fa
mov edi, dword [rsi + 0x2c]
jmp 0x1400c42ff
mov edi, 0x16
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400b888c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400c4c20
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400c4c48
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400c4c48
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14093c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14093c1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14093c089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14093c06f
add dl, dl
jne 0x14093c096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14093c0f6
xor eax, eax
add dl, dl
jne 0x14093c0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14093c1ad
add dl, dl
jne 0x14093c0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14093c0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14093c0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14093c0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14093c0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14093c07e
mov eax, 1
add dl, dl
jne 0x14093c106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14093c113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14093c0fb
sub eax, ebx
mov ebx, 1
jne 0x14093c14c
mov ecx, 1
add dl, dl
jne 0x14093c12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14093c13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14093c123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14093c07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14093c168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14093c175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14093c15d
cmp eax, 0x7d00
jae 0x14093c19b
cmp eax, 0x500
jb 0x14093c196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14093c07e
cmp eax, 0x7f
ja 0x14093c19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14093c07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14093c1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14093c07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140009704
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14000978b
lea r8, [0x140001380]
lea rcx, [rsp + 0x20]
call fcn.1400114e0
test eax, eax
js 0x14000978b
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x14000978b
lea rdx, [0x140001398]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x140009782
mov rcx, rax
call qword [0x140031ba0]
call rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14002ad70
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret

Function at 0x1400097b4
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov ebx, r8d
mov rdi, rdx
lea rcx, [rsp + 0x38]
xor esi, esi
xor edx, edx
mov r8d, 0x220
mov qword [rsp + 0x30], rsi
call sub.msvcrt.dll_memset
xor ecx, ecx
mov word [rbp + 0x160], si
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [rbp + 0x160]
mov rcx, rax
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400098e0
lea rcx, [rbp + 0x160]
call fcn.140010bd0
lea r8, [rbp + 0x160]
lea rcx, [rsp + 0x48]
mov edx, 0x104
call fcn.140009608
lea r8, [0x140001e08]
lea rcx, [rbp + 0x160]
call fcn.1400114e0
test eax, eax
js 0x1400098a8
lea rcx, [rbp + 0x160]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400098a8
lea rax, [rbp + 0x160]
neg ebx
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x38], rax
sbb eax, eax
xor r8d, r8d
and eax, 0xffffffe0
xor ecx, ecx
mov qword [rsp + 0x40], rdi
add eax, 0x40
or eax, 4
mov dword [rbp + 0x150], eax
call qword [sym.imp.IEADVPACK.dll_ExecuteCabW]
jmp 0x1400098e0
test byte [rbp + 0x3c0], 4
jne 0x1400098e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor edx, edx
mov rcx, rax
lea rax, [rbp + 0x160]
lea r9d, [rdx + 0xc]
mov qword [rsp + 0x28], rax
lea r8d, [rdx + 0xb]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.SHLWAPI.dll_ShellMessageBoxW]
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.14002ad70
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x480
pop rdi
pop rsi
pop rbp
ret
Function at 0x140009908
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rbp + 0x380], rax
lea rax, [rsp + 0x58]
mov ebx, 0x20019
lea rdx, [0x140001470]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov r9d, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140009ac4
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
lea rdx, [0x1400014c0]
mov r9d, ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140009ab9
xor ebx, ebx
and qword [rsp + 0x38], rbx
and qword [rsp + 0x30], rbx
and qword [rsp + 0x28], rbx
and qword [rsp + 0x20], rbx
xor edx, edx
jmp 0x140009a89
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
lea rdx, [rsp + 0x60]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140009a07
mov rcx, qword [rsp + 0x48]
lea rax, [0x1400014d8]
lea rdx, [0x1400014e0]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r9, [rsp + 0x60]
lea r8, [0x140001470]
lea rcx, [rbp + 0x170]
mov edx, 0x104
call fcn.140011294
test eax, eax
js 0x140009a6d
lea rax, [rsp + 0x48]
lea rdx, [rbp + 0x170]
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140009a6d
mov r8, qword [rsp + 0x48]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.IEADVPACK.dll_RegRestoreAllW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
inc ebx
and qword [rsp + 0x20], 0
mov edx, ebx
mov rcx, qword [rsp + 0x50]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x1400099a6
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.14002ad70
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x490
pop rbp
ret
Function at 0x140009aec
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rax, qword [0x140001500]
mov qword [rsp + 0x48], rax
mov rax, qword [0x140001508]
mov qword [rsp + 0x50], rax
mov eax, dword [0x140001510]
mov dword [rsp + 0x58], eax
movzx eax, word [0x140001514]
mov word [rsp + 0x5c], ax
mov rax, qword [0x140001520]
mov qword [rsp + 0x60], rax
mov rax, qword [0x140001528]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140001530]
mov qword [rsp + 0x70], rax
mov rax, qword [0x140001538]
mov qword [rsp + 0x78], rax
mov rax, qword [0x140001540]
mov qword [rbp - 0x80], rax
mov rax, qword [0x140001548]
mov qword [rbp - 0x78], rax
mov rax, qword [0x140001550]
mov qword [rbp - 0x70], rax
mov rax, qword [0x140001558]
mov qword [rbp - 0x68], rax
mov rax, qword [0x140001560]
mov qword [rbp - 0x60], rax
mov rax, qword [0x140001568]
mov qword [rbp - 0x58], rax
mov rax, qword [0x140001570]
mov qword [rbp - 0x50], rax
mov rax, qword [0x140001578]
mov qword [rbp - 0x48], rax
test ecx, ecx
je 0x140009c93
lea rax, [rsp + 0x38]
lea rdx, [0x140001580]
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140009c93
and dword [rbp - 0x40], eax
lea rcx, [rbp - 0x3c]
xor edx, edx
mov r8d, 0x204
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x40]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x48]
xor r8d, r8d
mov dword [rsp + 0x30], SHFlushSFCache
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r9d, 1
test eax, eax
jne 0x140009c5e
cmp dword [rsp + 0x30], eax
je 0x140009c59
cmp dword [rsp + 0x40], r9d
je 0x140009c88
mov eax, 2
cmp eax, 2
jne 0x140009c88
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x60]
lea rdx, [rsp + 0x48]
xor r8d, r8d
mov dword [rsp + 0x28], 0x60
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.14002ad70
add rsp, 0x2e0
pop rbp
ret
Function at 0x140009cb4
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x68
lea rax, [rbp + 0x20]
lea rdx, [0x140001600]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x18]
xor r8d, r8d
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 4
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x140009dbf
mov rcx, qword [rbp - 0x18]
lea rax, [rbp + 0x20]
lea rdx, [0x1400016c0]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], 3
and dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x140009db5
and dword [rbp + 0x18], eax
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x18]
lea rdx, [0x1400016d8]
xor r9d, r9d
xor r8d, r8d
mov dword [rbp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x30]
bts dword [rbp + 0x18], 0x14
lea rax, [rbp + 0x18]
lea r9d, [rbx + 4]
lea rdx, [0x1400016d8]
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
add rsp, 0x68
pop rbx
pop rbp
ret
Function at 0x14000a6a4
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x248
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [rsp + 0x20]
lea rcx, [0x140001e20]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x14000a6e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x14000a704
lea rdx, [rsp + 0x20]
lea rcx, [0x140001e70]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14000a6d9
mov eax, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14002ad70
add rsp, 0x248
ret
Function at 0x14000b354
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r14
lea rbp, [rax - 0x188]
sub rsp, 0x270
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rcx, qword [0x140004df8]
xor r14d, r14d
lea r9, [rsp + 0x40]
lea esi, [r14 + 1]
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x20], 4
lea edx, [rsi + 1]
mov r8d, esi
call qword [sym.imp.iertutil.dll_Ordinal_654]
lea edx, [rsi + 0x63]
lea r8d, [r14 + 0xa]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x14000b50a
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000b50a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x14000b50a
mov rcx, qword [0x140004df0]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x48], r14d
call fcn.1400105b0
mov rcx, qword [0x140004e10]
lea rdx, [rsp + 0x48]
call fcn.1400105b0
mov edx, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
shl rdx, 0x20
movabs rax, 0x10000000178e182d
add rdx, rcx
cmp rdx, rax
jae 0x14000b50a
mov rcx, qword [0x140004e00]
mov qword [rsp + 0x30], r14
lea r9, [rsp + 0x50]
lea edx, [rsi + 1]
mov r8d, esi
mov qword [rsp + 0x28], r14
mov word [rsp + 0x50], r14w
mov dword [rsp + 0x20], SHFlushSFCache
call qword [sym.imp.iertutil.dll_Ordinal_650]
lea r12d, [r14 + 0x5c]
lea rcx, [rsp + 0x50]
mov edx, r12d
call qword [sym.imp.msvcrt.dll_wcsrchr]
mov rsi, rax
test rax, rax
je 0x14000b50a
lea rdx, [rsp + 0x50]
xor ecx, ecx
mov word [rax], r14w
call qword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov qword [rsp + 0x30], r14
lea rcx, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], Ordinal_134
mov word [rsi], r12w
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14000b50a
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
lea r9, [rsp + 0x4c]
mov rdx, rdi
mov rcx, rsi
mov r8d, eax
mov dword [rsp + 0x4c], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14002ad70
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r12
pop rbp
ret
Function at 0x14000b53c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x60]
xor esi, esi
mov rdi, r9
test rax, rax
je 0x14000b563
mov ebx, dword [rax]
jmp 0x14000b565
mov ebx, esi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r9
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x14000b59f
cmp dword [rsp + 0x50], 1
jne 0x14000b59f
test rdi, rdi
je 0x14000b5a4
test ebx, ebx
je 0x14000b5a4
mov ecx, ebx
shr rcx, 1
mov word [rdi + rcx*2 - 2], si
jmp 0x14000b5a4
mov eax, 0x3f2
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14000b5bc
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
mov edx, ecx
lea r8, [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x14000b5f8
mov r8, qword [rsp + 0x38]
xor r9d, r9d
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.SHELL32.dll_SHChangeNotify]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000b5f8
call qword [sym.imp.ole32.dll_CoTaskMemFree]
add rsp, 0x28
ret

Function at 0x14000b604
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x30
lea rax, [r11 + 8]
lea r8, [0x140002820]
lea rdx, [0x140002850]
mov qword [r11 - 0x10], rax
lea rax, [r11 + 0x10]
xor r9d, r9d
mov rcx, 0xffffffff80000002
xor ebx, ebx
mov dword [rsp + 0x40], 4
mov qword [r11 - 0x18], rax
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x14000b653
cmp dword [rsp + 0x48], ebx
je 0x14000b653
lea ebx, [rax + 1]
jmp 0x14000b69d
lea rax, [rsp + 0x40]
lea r8, [0x140002870]
lea rdx, [0x140002850]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
xor r9d, r9d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x14000b69d
cmp dword [rsp + 0x48], ebx
mov eax, 1
cmovne ebx, eax
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x14000b6ac
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x280
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor r8d, r8d
mov ebx, r9d
lea rdx, [0x140002fe0]
test r9d, r9d
je 0x14000b70a
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], r8
mov dword [rsp + 0x28], 3
and dword [rsp + 0x20], r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
jmp 0x14000b720
lea rax, [rsp + 0x50]
mov r9d, 3
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000b7ba
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x58], SHFlushSFCache
call fcn.14000b53c
test ebx, ebx
je 0x14000b76c
cmp dword [rsp + 0x2b0], 0
jne 0x14000b75b
test eax, eax
je 0x14000b7af
mov dword [rsp + 0x20], 0x18
lea r9, [0x140003628]
jmp 0x14000b79c
cmp dword [rsp + 0x2b0], 0
jne 0x14000b790
test eax, eax
jne 0x14000b7af
lea rdx, [rsp + 0x60]
lea rcx, [0x140003628]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x14000b7af
and dword [rsp + 0x20], 0
lea r9, [0x1400025d0]
mov rcx, qword [rsp + 0x50]
mov r8d, 1
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14002ad70
add rsp, 0x280
pop rbx
ret

Function at 0x14000b7dc
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xf0
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rbx, qword [rdx]
lea rax, [rsp + 0x50]
mov rsi, rcx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov rdx, rcx
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], Ordinal_134
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
test edi, edi
jne 0x14000b8b9
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x58]
lea rdx, [0x140003250]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test eax, eax
jne 0x14000b8ae
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
lea r9d, [rbx + 1]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.14002ad70
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000bc24
Capabilities:
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
mov r8, rcx
mov r9, rdx
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.140011294
lea rcx, [rsp + 0x30]
call fcn.14000dcb8
lea rcx, [rsp + 0x30]
mov edx, 0x80
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r9d, r9d
mov r8, rdi
lea edx, [r9 + 5]
mov ecx, 0x1000
call qword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14002ad70
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret