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

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
xor r12d, r12d
lea rax, [rbp + 0x48]
mov qword [r11 - 0x50], r12
mov r15, r8
mov qword [r11 - 0x58], r12
xor r9d, r9d
mov qword [r11 - 0x60], r12
xor r8d, r8d
mov qword [r11 - 0x68], r12
xor edx, edx
mov qword [r11 - 0x70], r12
mov r14, rcx
mov qword [r11 - 0x78], r12
mov qword [r11 - 0x80], rax
lea rax, [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x58], r12d
mov dword [rbp + 0x48], r12d
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14001a491
or r13, 0xffffffffffffffff
lea rbx, str.FilesFile
mov rcx, r13
inc rcx
cmp word [rbx + rcx*2], r12w
jne 0x14001a34f
mov eax, dword [rbp + 0x48]
cmp ecx, eax
mov dword [rbp - 0x10], ecx
cmova eax, ecx
add eax, 5
mov ecx, eax
mov dword [rbp + 0x48], eax
mov eax, 2
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.14003c310
mov rdi, rax
test rax, rax
je 0x14001a491
mov esi, r12d
mov qword [rbp - 8], r12
cmp dword [rbp + 0x58], r12d
jbe 0x14001a46d
mov edx, dword [rbp + 0x48]
lea r8, str._s_lu
mov r9, rbx
mov dword [rsp + 0x20], esi
mov rcx, rdi
call fcn.140001734
lea rax, [rbp - 8]
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001a462
mov ecx, 0x208
call fcn.14003c310
mov rbx, rax
test rax, rax
je 0x14001a451
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0xc]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
xor edx, edx
mov dword [rbp - 0xc], 1
mov dword [rbp - 0x10], 0x104
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001a449
cmp dword [rbp - 0xc], 1
jne 0x14001a449
mov rax, r13
inc rax
cmp word [rbx + rax*2], r12w
jne 0x14001a42a
test rax, rax
je 0x14001a449
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x14001a47d
mov rcx, rbx
call fcn.14003c2b8
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rbx, str.FilesFile
inc esi
cmp esi, dword [rbp + 0x58]
jb 0x14001a39d
mov rcx, rdi
call fcn.14003c2b8
mov rdi, r12
mov rax, rdi
jmp 0x14001a493
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call fcn.14003c2b8
jmp 0x14001a478
xor eax, eax
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001a76c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x160], rax
and qword [rsp + 0x48], 0
lea rax, [rsp + 0x48]
mov r9d, 0x2001f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001a844
jmp 0x14001a7ef
test eax, eax
jne 0x14001a82d
mov rbx, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x14001a7ef
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14001a76c
test eax, eax
jne 0x14001a82d
and qword [rsp + 0x38], 0
lea r9, [rsp + 0x40]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x50]
and qword [rsp + 0x28], 0
xor edx, edx
mov rcx, qword [rsp + 0x48]
and qword [rsp + 0x20], 0
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x14001a7c3
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14003c6c0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x270
pop rdi
pop rsi
pop rbp
ret

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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
and dword [rsp + 0x40], 0
mov rsi, r9
mov rbx, r8
mov rdi, rdx
test ecx, ecx
jne 0x14001a8c4
lea rax, [r11 + 8]
xor r9d, r9d
mov qword [r11 - 0x10], rax
xor r8d, r8d
and qword [r11 - 0x18], 0
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001a8c4
test rbx, rbx
jne 0x14001a8bd
cmp dword [rsp + 0x40], 2
jbe 0x14001a8c4
mov eax, UnRegisterTypeLib
jmp 0x14001a8e6
mov eax, dword [rsp + 0x60]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14001a994
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov r14, rdx
mov dword [rsp + 0x60], ebx
mov rsi, rcx
call fcn.140017448
test eax, eax
je 0x14001aa2e
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ecx, eax
mov ebp, eax
call fcn.14003c310
mov rdi, rax
test rax, rax
je 0x14001aa2e
mov r9, rax
mov r8d, ebp
xor edx, edx
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x14001aa26
lea r9, [rsp + 0x68]
mov dword [rsp + 0x68], 4
lea r8, [rsp + 0x20]
mov rcx, rdi
lea rdx, str.VarFileInfoTranslation
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14001aa26
mov rcx, qword [rsp + 0x20]
mov ebx, 1
movzx edx, word [rcx]
mov word [r14], dx
mov rcx, rdi
call fcn.14003c2b8
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x14001aa4c
Capabilities:
Check if file exists
Delete file
Get file attributes
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x360], rax
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftMediaPlayerPreferences
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001ab57
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rbp + 0x150]
mov dword [rsp + 0x30], 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ObfuscatedSamplePlaylistsPath
mov dword [rsp + 0x34], 0x105
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001ab4c
cmp dword [rsp + 0x30], 1
jne 0x14001ab4c
lea ebx, [rax + 1]
lea rax, str.Plylst
mov dword [rsp + 0x28], ebx
lea r9, [rbp + 0x150]
mov qword [rsp + 0x20], rax
lea r8, str._s_s_d.wpl
mov edx, 0x105
lea rcx, [rsp + 0x40]
call fcn.140001734
test eax, eax
js 0x14001ab45
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001ab45
test al, 0x10
jne 0x14001ab45
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
inc ebx
cmp ebx, 0x10
jl 0x14001aaf5
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.14003c6c0
mov rbx, qword [rsp + 0x480]
add rsp, 0x470
pop rbp
ret

Function at 0x14001ae6c
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdi, rax
test rax, rax
je 0x14001aebe
lea rcx, str.wmp.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x14001aebe
mov edx, 0xbba
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001aeb5
mov rcx, rdi
call qword [0x14003f118]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14001b1a0
Capabilities:
Get common file path
Persist via run registry key
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor ebx, ebx
mov esi, edx
mov rdi, rcx
test rcx, rcx
je 0x14001b2e1
lea rdx, str.wmfdist11.exe
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
jne 0x14001b203
lea rdx, str.wmfdist11_64.exe
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
jne 0x14001b203
lea ebx, [rax + 1]
jmp 0x14001b2e1
mov edi, 0x104
lea rcx, [rsp + 0x250]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14001b2e1
lea r9, [rsp + 0x250]
mov edx, edi
lea r8, str._sdrmupgds.exe
lea rcx, [rsp + 0x40]
call fcn.140001734
test eax, eax
js 0x14001b2e1
xor r8d, r8d
cmp esi, 0xd2af9
jne 0x14001b2cd
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
lea r9d, [r8 + 2]
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001b2e1
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x14001b282
mov rcx, qword [rsp + 0x30]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.WMFSDK11_DRMUpgrade
lea rax, [rsp + 0x40]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001b2e1
mov r9d, 0xffff
lea rdx, [rsp + 0x40]
xor ecx, ecx
call fcn.140019648
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14003c6c0
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14001b9b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor eax, eax
mov r12, r8
mov qword [rbp - 8], rax
mov rdi, rcx
mov esi, eax
mov r15d, 0x80004005
test r8, r8
je 0x14001bbd8
lea rbx, [rdx + 1]
lea eax, [rsi + 2]
mul rbx
lea r14, [rsi - 1]
cmovo rax, r14
mov rcx, rax
call fcn.14003c310
mov r13, rax
test rax, rax
je 0x14001bbd8
mov r8, rdi
mov rdx, rbx
mov rcx, rax
call fcn.140001470
lea ebx, [rsi + 0x2c]
mov rcx, r13
mov edx, ebx
call qword [sym.imp.msvcrt.dll_wcschr]
mov rdi, rax
xor eax, eax
test rdi, rdi
je 0x14001bbcb
lea ecx, [rsi + 0x20]
mov word [rdi], ax
add rdi, 2
cmp cx, word [rdi]
je 0x14001ba37
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcschr]
mov rbx, rax
xor eax, eax
test rbx, rbx
je 0x14001ba9f
lea ecx, [rax + 0x20]
mov word [rbx], ax
add rbx, 2
cmp cx, word [rbx]
je 0x14001ba5b
mov edx, 0x2c
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_wcschr]
mov rsi, rax
xor eax, eax
test rsi, rsi
je 0x14001ba8e
lea ecx, [rax + 0x20]
mov word [rsi], ax
add rsi, 2
cmp cx, word [rsi]
je 0x14001ba82
inc r14
cmp word [rbx + r14*2], ax
jne 0x14001ba8e
test r14, r14
cmove rbx, rax
mov rdx, 0xffffffff80000001
mov rcx, r13
call fcn.14001a8fc
lea rcx, [rbp - 8]
mov r9d, 1
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001bbcb
mov r14d, 0x208
mov ecx, r14d
call fcn.14003c310
mov dword [rbp + 0x50], r14d
mov rdi, rax
xor r14d, r14d
test rax, rax
je 0x14001bbc1
mov rcx, qword [rbp - 8]
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rbx
mov dword [rbp + 0x58], 1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001bbb4
mov ecx, dword [rbp + 0x58]
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x14001bb8c
cmp ecx, 4
jne 0x14001bbb4
lea rax, [rbp + 0x50]
mov dword [rbp + 0x50], ecx
mov rcx, qword [rbp - 8]
lea r9, [rbp + 0x58]
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rbp - 0x10]
mov dword [rbp - 0x10], r14d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001bbb4
mov r9d, dword [rbp - 0x10]
lea r8, [0x140042130]
mov edx, 0x104
mov rcx, rdi
call fcn.140001734
test eax, eax
js 0x14001bbb4
mov r15d, r14d
mov qword [r12], rdi
jmp 0x14001bbc1
mov r15d, r14d
test rsi, rsi
je 0x14001bbad
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov r8, rsi
mov edx, 0x104
mov rcx, rdi
call fcn.140001584
mov qword [r12], rdi
mov rdi, r14
test rdi, rdi
je 0x14001bbc1
mov rcx, rdi
call fcn.14003c2b8
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r13
call fcn.14003c2b8
mov eax, r15d
jmp 0x14001bbdd
mov eax, 0x8007000e
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001c040
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor eax, eax
mov r13, rcx
or rcx, 0xffffffffffffffff
mov r15, r9
mov rbx, rcx
mov r12, r8
mov r14, rdx
mov edi, eax
mov ebp, eax
inc rbx
cmp word [rdx + rbx*2], ax
jne 0x14001c075
add rbx, 0x15
mov eax, 2
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.14003c310
mov rsi, rax
test rax, rax
jne 0x14001c0fa
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x14001c0c0
lea edx, [rax + 2]
call fcn.140016148
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x14001c0f0
cmp dword [0x1400516e0], 2
jl 0x14001c0f0
and dword [rsp + 0x80], edi
lea r9, [rsp + 0x80]
and qword [rsp + 0x20], rdi
lea rdx, str.ERROR:_Out_of_memory._r_n
mov r8d, 0x17
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, 0x8007000e
jmp 0x14001c1a4
mov eax, dword [0x140050320]
cmp eax, 0xff
jne 0x14001c112
call fcn.1400178c8
mov dword [0x140050320], eax
test eax, eax
je 0x14001c183
mov r9, r14
mov dword [rsp + 0x20], eax
lea r8, str._s_NT_lu
mov rdx, rbx
mov rcx, rsi
call fcn.140001734
mov r9, r15
mov r8, r12
mov rdx, rsi
mov rcx, r13
call fcn.14001bbfc
mov edi, eax
test eax, eax
js 0x14001c14d
mov ebp, 1
jmp 0x14001c183
mov r9, r14
lea r8, str._s_NT
mov rdx, rbx
mov rcx, rsi
call fcn.140001734
mov r9, r15
mov r8, r12
mov rdx, rsi
mov rcx, r13
call fcn.14001bbfc
mov edi, eax
mov eax, ebp
mov ebp, 1
test edi, edi
cmovns eax, ebp
mov ebp, eax
mov rcx, rsi
call fcn.14003c2b8
test ebp, ebp
jne 0x14001c1a2
mov r9, r15
mov r8, r12
mov rdx, r14
mov rcx, r13
call fcn.14001bbfc
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14001c1c8
Capabilities:
Query or enumerate registry value
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov dword [rax + 0x20], r9d
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor r15d, r15d
mov dword [rbp - 0x10], 1
mov r12, r8
mov rsi, rdx
mov r13, rcx
mov ebx, r15d
mov r14d, r15d
mov dword [rbp + 0x48], r15d
cmp dword [rbp + 0x50], r15d
je 0x14001c363
or rcx, 0xffffffffffffffff
mov rdi, rcx
inc rdi
cmp word [rdx + rdi*2], r15w
jne 0x14001c219
add rdi, 0x15
mov eax, 2
mul rdi
cmovo rax, rcx
mov rcx, rax
call fcn.14003c310
mov r15, rax
test rax, rax
jne 0x14001c297
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x14001c265
lea edx, [rax + 2]
call fcn.140016148
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x14001c28d
cmp dword [0x1400516e0], 2
jl 0x14001c28d
and dword [rbp + 0x50], ebx
lea r9, [rbp + 0x50]
and qword [rsp + 0x20], rbx
lea rdx, str.ERROR:_Out_of_memory._r_n
mov r8d, 0x17
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, 0x8007000e
jmp 0x14001c3c7
mov eax, dword [0x14005031c]
cmp eax, 0xff
jne 0x14001c2af
call fcn.1400178c8
mov dword [0x14005031c], eax
test eax, eax
je 0x14001c353
mov r9, rsi
mov dword [rsp + 0x20], eax
lea r8, str._s_NT_lu
mov rdx, rdi
mov rcx, r15
call fcn.140001734
lea rax, [rbp + 0x48]
mov ebx, 0x208
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x10]
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov rdx, r15
mov dword [rbp + 0x48], ebx
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001c30b
cmp dword [rbp - 0x10], 1
jne 0x14001c30b
xor ebx, ebx
lea r14d, [rbx + 1]
jmp 0x14001c353
mov r9, rsi
lea r8, str._s_NT
mov rdx, rdi
mov rcx, r15
call fcn.140001734
lea rax, [rbp + 0x48]
mov dword [rbp + 0x48], ebx
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x10]
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov rdx, r15
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001c34e
cmp dword [rbp - 0x10], 1
je 0x14001c303
mov ebx, 0x80004005
mov rcx, r15
call fcn.14003c2b8
xor r15d, r15d
test r14d, r14d
jne 0x14001c39f
lea rax, [rbp + 0x48]
mov dword [rbp + 0x48], 0x208
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x10]
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001c39a
cmp dword [rbp - 0x10], 1
jne 0x14001c39a
mov ebx, r15d
jmp 0x14001c3a3
mov ebx, 0x80004005
test ebx, ebx
js 0x14001c3c5
test rsi, rsi
lea r9, [0x140042350]
mov r8, r12
lea rdx, str.Reg_Parser:_Obtained_value__S_for_attribute__S._r_n
cmovne r9, rsi
mov ecx, 4
call fcn.140016868
mov eax, ebx
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14001c3ec
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x380], rax
xor r12d, r12d
mov rsi, rdx
cmp dword [rcx + 4], 3
mov r15d, r12d
jne 0x14001c5ee
mov rdi, qword [rcx + 0x10]
test rdi, rdi
je 0x14001c5ee
mov rcx, rdi
call fcn.140017448
test eax, eax
je 0x14001c5ee
or rcx, 0xffffffffffffffff
mov rbx, rcx
inc rbx
cmp word [rdi + rbx*2], r12w
jne 0x14001c455
inc rbx
mov eax, 2
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.14003c310
mov r14, rax
test rax, rax
je 0x14001c5ee
mov r8, rdi
mov rdx, rbx
mov rcx, rax
call fcn.140001470
lea rdx, [0x140043808]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcsstr]
mov rbx, rax
test rax, rax
je 0x14001c5e6
mov rdx, 0xffffffff80000002
mov word [rax], r12w
mov rcx, r14
call fcn.14001a8fc
add rbx, 2
lea rdx, [0x140043808]
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
je 0x14001c4df
mov word [rax], r12w
test rbx, rbx
je 0x14001c5e6
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r12w
jne 0x14001c4ec
test rax, rax
je 0x14001c5e6
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], r12
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001c5e6
mov edi, 0x104
mov dword [rsp + 0x44], 1
mov dword [rsp + 0x48], edi
mov ebx, r12d
mov dword [rsp + 0x40], edi
xor edx, edx
jmp 0x14001c599
inc ebx
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x40], 0x208
cmp r12w, word [rsp + 0x60]
je 0x14001c597
cmp r12w, word [rbp + 0x170]
je 0x14001c597
mov eax, dword [rsp + 0x44]
dec eax
cmp eax, 1
ja 0x14001c58a
lea rcx, [rsp + 0x60]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r12w
jne 0x14001c57b
test rax, rax
je 0x14001c597
mov r15d, 1
test rsi, rsi
je 0x14001c5db
inc dword [rsi]
mov edx, ebx
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x48]
lea rax, [rbp + 0x170]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x60]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x14001c547
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r14
call fcn.14003c2b8
mov eax, r15d
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.14003c6c0
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14001dfc4
Capabilities:
Delete directory
Delete file
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor ebp, ebp
mov esi, edx
mov rbx, rcx
cmp dword [rcx + 0x7c], ebp
je 0x14001e0da
mov rcx, qword [rcx + 0x30]
test rcx, rcx
je 0x14001e0da
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bp
jne 0x14001e00e
cmp rax, 6
jbe 0x14001e0da
mov edx, 0x5c
call qword [sym.imp.msvcrt.dll_wcsrchr]
mov r8, qword [rbx + 0x30]
lea rdx, str.Package_clean_up:_Cleaning_up_files_at__S._r_n
mov ecx, 4
mov dword [rsp + 0x20], 1
mov rdi, rax
call fcn.140016868
test rdi, rdi
je 0x14001e054
mov word [rdi], bp
mov edi, 0x104
lea rdx, [rsp + 0x240]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14001e0da
lea rcx, [rsp + 0x240]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov r8, qword [rbx + 0x30]
lea rcx, [rsp + 0x30]
mov edx, edi
call fcn.140001470
mov edx, 0x5c
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_wcsrchr]
test rax, rax
je 0x14001e0a4
mov word [rax + 2], bp
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x14001e0cf
mov rcx, qword [rbx + 0x30]
lea rdx, [rsp + 0x20]
call fcn.140018d60
mov rcx, qword [rbx + 0x30]
jmp 0x14001e0d4
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [rbx + 0x80], ebp
je 0x14001e0f5
test esi, esi
je 0x14001e0f5
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14001e0f5
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [rbx + 0x84], ebp
je 0x14001e119
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x14001e119
call fcn.14001739c
test eax, eax
je 0x14001e119
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14003c6c0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14001e148
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword [rcx + 8]
xor r14d, r14d
mov rdi, rcx
test rax, rax
je 0x14001e29f
mov rcx, qword [rcx + 0xc0]
test rcx, rcx
je 0x14001e29f
mov rdx, qword [rcx + 0x78]
test rdx, rdx
je 0x14001e250
mov rsi, qword [rdx + 0x30]
test rsi, rsi
je 0x14001e250
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14001e1ad
call fcn.14003c2b8
mov rax, qword [rdi + 8]
mov qword [rdi + 0x10], r14
or rbx, 0xffffffffffffffff
mov rcx, rbx
inc rcx
cmp word [rax + rcx*2], r14w
jne 0x14001e1b4
mov rax, rbx
inc rax
cmp word [rsi + rax*2], r14w
jne 0x14001e1c1
lea rbp, [rax + 2]
mov eax, 2
add rbp, rcx
mul rbp
cmovo rax, rbx
mov rcx, rax
call fcn.14003c310
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x14001e1f9
mov eax, 0x8007000e
jmp 0x14001e2a4
mov r8, rsi
mov rdx, rbp
mov rcx, rax
call fcn.140001470
mov rcx, qword [rdi + 0x10]
mov r9, rcx
test rcx, rcx
je 0x14001e23d
inc rbx
cmp word [rcx + rbx*2], r14w
jne 0x14001e213
test rbx, rbx
je 0x14001e23d
movsxd rax, ebp
cmp rbx, rax
jae 0x14001e23d
mov eax, 0x2f
cmp word [rcx + rbx*2 - 2], ax
je 0x14001e23d
mov dword [rcx + rbx*2], eax
mov r9, qword [rdi + 0x10]
mov r8, qword [rdi + 8]
mov rdx, rbp
mov rcx, r9
call fcn.140001584
xor eax, eax
jmp 0x14001e2a4
mov rcx, qword [0x140050310]
or rbx, 0xffffffffffffffff
cmp rcx, rbx
jne 0x14001e274
lea edx, [rbx + 4]
call fcn.140016148
mov rcx, qword [0x140050310]
cmp rcx, rbx
je 0x14001e29f
cmp dword [0x1400516e0], 3
jl 0x14001e29f
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], r14d
mov r8d, 0x48
mov qword [rsp + 0x20], r14
lea rdx, str.WARNING:_Base_URL_is_not_set.__All_packages_must_be_available_locally._r_n
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, 0x80004005
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret