joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017adc
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
sub rsp, 0x260
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14007d370]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbp, rdx
mov rsi, rcx
mov qword [rsp + 0x28], rcx
xor edi, edi
mov dword [rcx], edi
mov qword [rcx + 8], rdi
mov qword [rcx + 0x10], rdi
mov dword [rcx + 0x18], edi
mov qword [rcx + 0x20], rdi
mov qword [rcx + 0x28], rdi
lea rbx, [rcx + 0x30]
mov qword [rsp + 0x30], rbx
mov qword [rbx], rdi
mov qword [rbx + 8], rdi
mov rcx, rbx
call fcn.140019a18
mov qword [rbx], rax
mov dword [rsi + 0x40], edi
lea rbx, [rsi + 0x48]
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
cmp qword [rbx + 0x18], 8
jb 0x140017b64
mov rax, qword [rbx]
jmp 0x140017b67
mov rax, rbx
mov word [rax], di
test rbp, rbp
je 0x140017b85
cmp word [rbp], di
je 0x140017b80
mov rcx, rbp
call fcn.14002ebc0
mov rdi, rax
mov rdx, rbp
jmp 0x140017bdd
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x40]
call fcn.140022cd0
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea rdx, str.Program_FilesCommon_FilesMcAfeePlatformCore_trusted.js
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp word [rsp + 0x40], di
je 0x140017bd8
lea rcx, [rsp + 0x40]
call fcn.14002ebc0
mov rdi, rax
lea rdx, [rsp + 0x40]
mov r8, rdi
mov rcx, rbx
call fcn.140003260
nop
mov rax, rsi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140021430
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop rdi
pop rsi
pop rbp
ret
Function at 0x140019bf4
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14007d370]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
xor ebx, ebx
cmp qword [rcx + 0x68], rbx
je 0x140019d60
cmp byte [rcx + 0x72], bl
je 0x140019d60
mov rax, qword [rcx]
mov esi, 0xffff
mov edx, esi
call qword [rax + 0x18]
cmp si, ax
jne 0x140019c56
xor al, al
jmp 0x140019d62
mov qword [rbp - 0x18], 0xf
mov qword [rbp - 0x20], rbx
mov byte [rbp - 0x30], bl
mov r15d, 8
mov r8d, r15d
xor edx, edx
lea rcx, [rbp - 0x30]
call fcn.140022cd0
mov qword [rbp - 0x20], r15
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rax, qword [rbp - 0x30]
mov byte [rax + 8], bl
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rdx, qword [rbp - 0x30]
lea r8, [rbp - 0x30]
cmovae r8, qword [rbp - 0x30]
mov rcx, qword [rdi + 0x68]
mov r10, qword [rcx]
mov r9, qword [rbp - 0x20]
add r9, rdx
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x74]
call qword [r10 + 0x40]
mov ecx, eax
test eax, eax
je 0x140019cd1
sub ecx, 1
jne 0x140019d38
jmp 0x140019cd4
mov byte [rdi + 0x72], bl
lea rax, [rbp - 0x30]
mov r10, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
cmp r9, 0x10
cmovae rax, r10
mov rsi, qword [rbp - 0x40]
sub rsi, rax
je 0x140019d16
lea rcx, [rbp - 0x30]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
call fcn.1400313b4
cmp rsi, rax
jne 0x140019d3f
cmp byte [rdi + 0x72], bl
je 0x140019d3d
test rsi, rsi
jne 0x140019c8e
xor r8d, r8d
mov rdx, r15
lea rcx, [rbp - 0x30]
call fcn.14001a7cc
jmp 0x140019c8e
cmp ecx, 2
jne 0x140019d3f
mov bl, 1
mov r9, qword [rbp - 0x18]
cmp r9, 0x10
jb 0x140019d5c
lea rdx, [r9 + 1]
mov r8d, 1
mov rcx, qword [rbp - 0x30]
call fcn.140003bb0
mov al, bl
jmp 0x140019d62
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140021430
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14001d368
Capabilities:
Check if file exists
Delete file

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x468]
sub rsp, 0x550
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14007d370]
xor rax, rsp
mov qword [rbp + 0x440], rax
mov rdi, rcx
xor ebx, ebx
cmp dword [rcx + 0x20], ebx
jne 0x14001d3ab
xor eax, eax
jmp 0x14001d5c7
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
mov r8d, 3
lea rcx, [rsp + 0x70]
call fcn.14001d174
nop
mov esi, 0x104
mov r8d, esi
xor edx, edx
lea rcx, [rbp + 0x330]
call fcn.140022cd0
mov r8d, esi
xor edx, edx
lea rcx, [rbp + 0x220]
call fcn.140022cd0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov r8, rax
mov edx, esi
lea rcx, [rbp + 0x330]
lea rax, [rbp + 0x330]
sub r8, rax
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14001d42d
mov al, byte [r8 + rcx]
test al, al
je 0x14001d42d
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x14001d40e
lea rax, [rcx - 1]
test rdx, rdx
cmovne rax, rcx
mov byte [rax], bl
mov r8, rsi
lea rcx, [rbp + 0x220]
lea rax, [rbp + 0x220]
mov r9, qword [rsp + 0x70]
sub r9, rax
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x14001d472
mov al, byte [r9 + rcx]
test al, al
je 0x14001d472
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x14001d453
lea rax, [rcx - 1]
test r8, r8
cmovne rax, rcx
mov byte [rax], bl
lea rcx, [rbp + 0x220]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea r8, [0x14005daec]
mov rdx, rsi
lea rcx, [rbp + 0x220]
call fcn.14001d2a8
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
or dword [rsp + 0x38], 0xffffffff
lea rax, [0x14001d634]
mov qword [rsp + 0x30], rax
lea rax, [0x14001d5ec]
mov qword [rsp + 0x28], rax
lea rax, [0x14001d63c]
mov qword [rsp + 0x20], rax
lea r9, [0x14001d62c]
lea r8, [fcn.14001d5f4]
lea rdx, [fcn.140021070]
lea rcx, [0x14001d644]
call qword [rdi + reloc.OLEAUT32.dll_VariantClear]
mov rsi, rax
test rax, rax
je 0x14001d5b1
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x110]
call fcn.140022cd0
lea rax, [rbp + 0x110]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
lea rax, [0x14001d64c]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp + 0x220]
lea rdx, [rbp + 0x330]
mov rcx, rsi
call qword [rdi + 0x10]
mov rcx, rsi
call qword [rdi + 0x18]
lea rcx, [rbp + 0x114]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x14001d5b1
cmp dword [rbp + 0x110], ebx
je 0x14001d5a3
lea rax, [rbp + 8]
mov qword [rbp], rax
mov r8d, 3
lea rdx, [rbp + 0x114]
lea rcx, [rbp]
call fcn.14001d06c
nop
mov rcx, qword [rbp]
call fcn.1400131d8
mov ebx, eax
lea rax, [rbp + 8]
mov rcx, qword [rbp]
cmp rcx, rax
je 0x14001d5a3
call fcn.14002ed10
lea rcx, [rbp + 0x114]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
lea rax, [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
cmp rcx, rax
je 0x14001d5c5
call fcn.14002ed10
mov eax, ebx
mov rcx, qword [rbp + 0x440]
xor rcx, rsp
call fcn.140021430
mov rbx, qword [rsp + 0x580]
add rsp, 0x550
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003c6c8
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x14003c52e
call fcn.14002f170
mov dword [rax], 0x16
call fcn.14002eb28
mov eax, 0xffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14003c510
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x14003c510
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x20]
shr ecx, 1
test cl, 1
je 0x14003c560
lock or dword [rax + 0x14], 0x10
jmp 0x14003c510
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14003c57d
mov rcx, qword [rbp + 0x20]
call fcn.14003cab4
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x10], 1
jne 0x14003c592
mov rcx, qword [rax]
mov sil, 1
mov r14b, byte [rcx]
jmp 0x14003c598
xor sil, sil
xor r14b, r14b
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.14003bfb4
mov rdx, qword [rbp + 0x20]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1400322e0
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x20]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 2
ja 0x14003c5eb
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x20]
and dword [rax + 0x10], 0
jmp 0x14003c510
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14003c657
mov rcx, qword [rbp + 0x20]
call fcn.14003bfb4
cmp eax, 0xffffffff
je 0x14003c63e
mov rcx, qword [rbp + 0x20]
call fcn.14003bfb4
cmp eax, 0xfffffffe
je 0x14003c63e
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.14003bfb4
movsxd rdi, eax
lea r15, [0x140080cd0]
mov rcx, rbx
sar rdi, 6
call fcn.14003bfb4
and eax, 0x3f
shl rax, 6
add rax, qword [r15 + rdi*8]
jmp 0x14003c645
lea rax, [0x14007d6b0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14003c657
mov rax, qword [rbp + 0x20]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x20], 0x200
jne 0x14003c68d
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14003c689
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14003c689
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
test sil, sil
je 0x14003c6ab
movzx edx, byte [rcx]
dec dword [rax + 0x10]
shl dx, 8
movzx ecx, r14b
or dx, cx
inc qword [rax]
jmp 0x14003c6b6
movzx edx, word [rcx]
add dword [rax + 0x10], 0xfffffffe
add qword [rax], 2
movzx eax, dx
jmp 0x14003c515
jmp 0x14003c4dc
Function at 0x140047e60
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
mov r14, r9
mov rsi, r8
mov rdi, rdx
mov r15, rcx
call fcn.140002650
mov rcx, rax
test rax, rax
jne 0x140047ea6
mov ecx, 0x80004005
call fcn.1400023c0
int3
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
test rdi, rdi
je 0x140047ee6
test rdi, 0xffffffffffff0000
jne 0x140047ee6
movzx edi, di
xor edx, edx
mov ecx, edi
call fcn.140006070
test rax, rax
je 0x140047ef8
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140047880
jmp 0x140047ef3
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140047000
mov rbx, qword [rsp + 0x30]
mov rax, qword [rsi]
mov rbp, qword [rsp + 0x80]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
mov r9, r14
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [r15 + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
cmp eax, 0xea
jne 0x140047f69
mov rcx, qword [rsi]
call fcn.1400210e8
mov qword [rsi], 0
mov ecx, dword [rbp]
lea rdx, [0x14007f844]
call fcn.140021544
mov qword [rsi], rax
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
mov r9, r14
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [r15 + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140047f83
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140047ff0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov qword [r11 - 0x30], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov rsi, r9
mov ebp, r8d
mov r12, rdx
mov r14, rcx
test r9, r9
je 0x140048147
mov edi, dword [rsp + 0xa0]
cmp edi, 1
jb 0x140048147
xor eax, eax
mov dword [r11 + 0x20], eax
mov qword [r11 - 0x48], rax
cmp r8d, 1
jne 0x14004805d
lea rax, [r11 + 0x20]
mov qword [r11 - 0x58], rax
lea r9, [r11 - 0x48]
mov r8d, edi
mov rdx, rsi
call fcn.140047530
jmp 0x14004807f
cmp ebp, 7
jne 0x140048097
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov r8d, edi
mov rdx, rsi
call fcn.140047330
mov edi, eax
test eax, eax
jne 0x140048139
mov rsi, qword [rsp + 0x30]
mov edi, dword [rsp + 0x98]
jmp 0x14004809e
mov dword [rsp + 0x98], edi
lea r15d, [rdi + 0x20]
mov ecx, r15d
call fcn.1400210e0
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400480bc
lea edi, [rax + 8]
jmp 0x140048130
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rbx
mov r9d, ebp
mov r8d, edi
mov rdx, rsi
mov rcx, r14
call fcn.1400479c0
mov edi, eax
test eax, eax
jne 0x140048130
mov rdx, r12
lea rcx, [rsp + 0x38]
call fcn.140046eb0
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rbx
lea r9d, [rdi + 3]
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, qword [r14 + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004812b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.1400210e8
nop
mov rcx, qword [rsp + 0x30]
call fcn.1400210e8
mov eax, edi
jmp 0x14004814c
mov eax, 0x57
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x140048500
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14004852f
xor ebx, ebx
cmp bx, word [rcx]
je 0x14004852f
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140048526
test al, 0x10
je 0x140048526
mov ebx, 1
movzx eax, bl
add rsp, 0x20
pop rbx
ret
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140048d40
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov rsi, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
call fcn.140002650
mov rcx, rax
test rax, rax
jne 0x140048d7f
mov ecx, 0x80004005
call fcn.1400023c0
int3
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
mov edi, ebp
lea edx, [rdi + 1]
test edx, edx
js 0x140048e66
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or eax, ecx
jge 0x140048dbb
lea rcx, [rsp + 0x48]
call fcn.140002270
mov rbx, qword [rsp + 0x48]
cmp dword [rbx - 8], 1
jle 0x140048dd3
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x48]
call fcn.140002170
mov rbx, qword [rsp + 0x48]
mov rdx, rbx
mov ecx, dword [rbx - 0xc]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
je 0x140048e3d
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.14002e700
test eax, eax
js 0x140048e32
cmp eax, dword [rbx - 0xc]
jg 0x140048e32
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], bp
cmp edi, dword [rbx - 0x10]
ja 0x140048d90
lea rcx, [rbx - 0x18]
call fcn.1400035a0
add rax, 0x18
mov qword [rsi], rax
or eax, 0xffffffff
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x140048e74
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
jmp 0x140048e71
mov ecx, 0x80070057
call fcn.1400023c0
int3
lea rdx, [0x14006e1f8]
mov rcx, rsi
call fcn.1400062d0
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140048e74
mov rcx, qword [rdx]
mov rax, qword [rcx]
jmp 0x140048e71
mov ecx, 0x80070057
call fcn.1400023c0
nop
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14004c0e0
Capabilities:
Print debug messages

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rdi, r9
mov rsi, r8
mov ebx, edx
call fcn.140002650
mov rcx, rax
test rax, rax
jne 0x14004c119
mov ecx, 0x80004005
call fcn.1400023c0
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
test ebx, ebx
je 0x14004c18d
sub ebx, 1
mov r9d, dword [rsp + 0x70]
mov r8, rsi
lea rcx, [rsp + 0x30]
je 0x14004c164
cmp ebx, 1
mov rbx, qword [rsp + 0x78]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdi
je 0x14004c15b
lea rdx, str._s__d_:__UNKNOWN_:___s_:__s_n
jmp 0x14004c17a
lea rdx, str._s__d_:__ERROR_:___s_:__s_n
jmp 0x14004c17a
mov rbx, qword [rsp + 0x78]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdi
lea rdx, str._s__d_:__INFO_:___s_:__s_n
call fcn.140005ec0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rax, qword [rsp + 0x30]
lea rdx, [rax - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004c1a7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14004c270
Capabilities:
Delete registry key

Disassembly:
lea rax, vtable.CoreTech::internal::CRegKeyImpl.0
mov qword [rcx], rax
jmp fcn.14004c2e0

Function at 0x14004c2e0
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x14004c328
cmp byte [rbx + 0x14], 0
je 0x14004c309
lea rdx, [0x14006e1f8]
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov byte [rbx + 0x14], 0
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbx + 8], 0
mov dword [rbx + 0x10], 0
add rsp, 0x20
pop rbx
ret
xor eax, eax
mov dword [rbx + 0x10], eax
add rsp, 0x20
pop rbx
ret

Function at 0x14004c5f0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 8], 0
mov rdi, rdx
mov rbx, rcx
jne 0x14004c617
mov eax, 0x57
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
test rdi, rdi
je 0x14004c607
cmp byte [0x140081278], 0
jne 0x14004c667
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004c657
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140081280], rax
mov byte [0x140081278], 1
jmp 0x14004c66e
mov rax, qword [0x140081280]
mov byte [0x140081278], 1
jmp 0x14004c66e
mov rax, qword [0x140081280]
mov rcx, qword [rbx + 8]
mov rdx, rdi
test rax, rax
je 0x14004c68e
mov r8d, dword [rbx + 0x10]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
Function at 0x14004c6e0
Capabilities:
Query or enumerate registry key

Disassembly:
sub rsp, 0x48
mov rcx, qword [rcx + 8]
mov r10d, edx
test rcx, rcx
jne 0x14004c6f8
lea eax, [rcx + 0x57]
add rsp, 0x48
ret
mov rax, qword [rsp + 0x70]
lea rdx, [rsp + 0x50]
test rax, rax
cmovne rdx, rax
xor eax, eax
mov qword [rsp + 0x38], rdx
mov edx, r10d
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add rsp, 0x48
ret

Function at 0x14004cde0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov rax, qword [rsp + 0x60]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r9
mov r9, r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add rsp, 0x38
ret

Function at 0x14004ce10
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x280
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x2b0], rbx
mov rax, qword [0x14007d370]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rdx
mov rdi, rcx
mov rbx, qword [rcx + 8]
test rbx, rbx
jne 0x14004ce55
lea eax, [rbx + 0x57]
jmp 0x14004cf48
lea rcx, [rsp + 0x48]
call fcn.14004c1d0
nop
mov r9d, dword [rdi + 0x10]
or r9d, 0x2001f
mov r8, rsi
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.14004c9c0
mov ebx, eax
test eax, eax
jne 0x14004cf3c
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
xor ebp, ebp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14004cf21
nop dword [rax]
nop word [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.14004ce10
mov ebx, eax
test eax, eax
jne 0x14004cf3c
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14004ced0
lea rcx, [rsp + 0x48]
call fcn.14004c2e0
mov rax, qword [rdi]
mov rdx, rsi
mov rcx, rdi
call qword [rax + 0xd0]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.14004c270
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140021430
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004d140
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
sub rsp, 0x288
mov rax, qword [0x14007d370]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov ebp, r8d
mov qword [rsp + 0x58], rcx
mov rsi, rdx
mov qword [rsp + 0x50], r9
mov edx, ebp
mov rcx, rsi
mov r8, r9
call qword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
cmp dword [rsp + 0x2c0], 0
je 0x14004d281
test eax, eax
jne 0x14004d281
mov qword [rsp + 0x280], rbx
xor ebx, ebx
mov qword [rsp + 0x278], rdi
mov edi, ebx
jmp 0x14004d1b2
xor ebx, ebx
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x200
call fcn.140022cd0
mov qword [rsp + 0x38], rbx
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], rbx
mov edx, edi
mov rcx, rsi
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
test eax, eax
jne 0x14004d25a
lea rax, [rsp + 0x48]
mov qword [rsp + 0x48], 0
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004d261
mov eax, dword [rsp + 0x2c0]
mov r8d, ebp
mov r9, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x20], eax
call fcn.14004d140
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14004d261
cmp eax, 0x103
je 0x14004d26f
inc edi
test ebx, ebx
je 0x14004d1b0
mov eax, ebx
jmp 0x14004d271
xor eax, eax
mov rbx, qword [rsp + 0x280]
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140021430
add rsp, 0x288
pop rsi
pop rbp
ret

Function at 0x14004d320
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
test r9, r9
je 0x14004d350
mov eax, dword [rsp + 0x60]
cmp eax, 1
jb 0x14004d350
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r9
mov r9d, r8d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret
mov eax, 0x57
add rsp, 0x38
ret
Function at 0x140050b60
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp byte [rcx + 0x20], 0
mov rdi, rdx
mov rsi, rcx
je 0x140050b83
xor al, al
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
cmp qword [rdx + 0x18], 8
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x30], 0
jb 0x140050b9c
mov rcx, qword [rdx]
jmp 0x140050b9f
mov rcx, rdi
lea rdx, [rsp + 0x30]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
test eax, eax
jne 0x140050bbf
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov rdx, rbp
mov qword [rsp + 0x38], rbx
lea rcx, [rsi + 8]
call fcn.140050ca0
cmp qword [rdi + 0x18], 8
jb 0x140050bda
mov rdi, qword [rdi]
mov r9, qword [rsi + 8]
mov r8d, ebp
xor edx, edx
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoW
mov rbx, qword [rsp + 0x38]
cmp eax, 1
mov rbp, qword [rsp + 0x40]
sete al
mov byte [rsi + 0x20], al
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret