joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004baf8
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rcx
test byte [rcx + 8], 0x40
jne 0x14004bb2b
xor eax, eax
jmp 0x14004bc4a
mov rax, qword [rcx + 0xe8]
mov rcx, qword [0x1400924d8]
test rax, rax
cmovne rcx, rax
lea r8, [rdi + 0xb0]
mov rdx, qword [rdi + 0xe0]
call fcn.140049940
mov ebx, eax
lfence
test eax, eax
js 0x14004bc4a
mov rcx, qword [rdi + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14004bc45
lfence
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x48]
mov rcx, rdi
call fcn.140004574
mov r14, rax
call fcn.140002950
mov rcx, rax
test rax, rax
je 0x14004bc6b
lfence
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x50], rbx
lea r8, [rbp - 0x50]
mov rdx, r14
lea rcx, [rbp - 0x40]
call fcn.14002ac80
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14004bbec
nop
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [0x14006c880]
mov qword [rbp - 0x40], rax
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14004bc18
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, [rdi + 0x60]
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.1400477f0
mov ebx, eax
test eax, eax
jns 0x14004bc3c
lfence
lea rcx, [rbp - 0x40]
call fcn.140017e84
jmp 0x14004bc48
lea rcx, [rbp - 0x40]
call fcn.140017e84
lfence
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140001020
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400327c0
int3
Function at 0x14004d6fc
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rsi, rcx
cmp dword [rcx + 0x2c], 3
jl 0x14004d72e
mov eax, 0x8000ffff
jmp 0x14004d8ab
call fcn.140002950
mov rcx, rax
test rax, rax
je 0x14004d8d1
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp + 0x30], rbx
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
mov r13d, 0x104
sub eax, r13d
or eax, ecx
jge 0x14004d775
mov edx, r13d
lea rcx, [rbp + 0x30]
call fcn.140002d40
mov rbx, qword [rbp + 0x30]
mov rdx, rbx
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x14004d79e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x14004d88b
cmp eax, r13d
jb 0x14004d7ad
mov esi, 0x8000ffff
jmp 0x14004d88b
call fcn.140002950
mov rcx, rax
test rax, rax
je 0x14004d8c2
mov rax, qword [rax]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rbp + 0x48], rdi
mov ecx, 1
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, r13d
or eax, ecx
jge 0x14004d7ee
mov edx, r13d
lea rcx, [rbp + 0x48]
call fcn.140002d40
mov rdi, qword [rbp + 0x48]
mov r9, rdi
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x14004d81a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x14004d86a
cmp eax, 0x6f
jne 0x14004d826
mov esi, 0x8007006f
jmp 0x14004d86a
mov rdx, rdi
lea rcx, [rbp - 0x10]
call fcn.140002f00
nop
lea rdx, [rbp - 0x10]
mov rcx, r15
call fcn.1400068a0
nop
mov rdx, qword [rbp - 0x10]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004d861
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
inc dword [rsi + 0x2c]
xor esi, esi
mov rdi, qword [rbp + 0x48]
lea rdx, [rdi - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004d887
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rbp + 0x30]
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14004d8a9
lfence
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, esi
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400327c0
nop
jmp 0x14004d8d0
nop
mov ecx, 0x80004005
call fcn.1400327c0
int3
Function at 0x140051604
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rcx
add rcx, 8
call fcn.1400068a0
lea r8, str..tmp
lea rdx, [rdi + 8]
lea rcx, [rsp + 0x40]
call fcn.14001ba30
nop
mov rdx, rax
lea rcx, [rdi + 0x10]
call fcn.1400068a0
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140051673
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov dword [rsp + 0x20], 2
mov rdx, qword [rdi + 0x10]
lea rcx, [rdi + 0x20]
call fcn.140036084
test eax, eax
js 0x1400516db
lfence
mov byte [rdi + 0x38], 1
lea rcx, [rdi + 0x30]
call fcn.140002fb0
cmp byte [rdi + 0x38], 0
jne 0x1400516a9
mov eax, 0x80004005
jmp 0x1400516db
lfence
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, 3
lea rdx, [0x140077040]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400516e0
call fcn.1400331bc
test eax, eax
jns 0x1400516e0
lfence
jmp 0x1400516e9
mov byte [rdi + 0xa0], 1
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140001020
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140051708
Capabilities:
Copy file
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [rcx + 0xa0], 0
mov rbx, rcx
jne 0x140051725
mov eax, 1
jmp 0x14005175b
add rcx, 0x18
call fcn.140058048
mov edi, eax
lfence
test eax, eax
js 0x14005175b
mov rdx, qword [rbx + 8]
xor r8d, r8d
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
mov byte [rbx + 0xa0], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140051768
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r14, rdx
mov rsi, rcx
or r12, 0xffffffffffffffff
mov qword [rsp + 0x48], r12
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rdx]
mov rcx, qword [rcx + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400518fc
and dword [rsp + 0x50], 0
lea r9, [rsp + 0x50]
mov r8, r14
mov rdx, qword [rsp + 0x48]
mov rcx, rsi
call fcn.140051934
mov ebx, eax
test eax, eax
js 0x1400518fc
lfence
xor edi, edi
cmp dword [rsp + 0x50], edi
jbe 0x1400518fc
mov dword [rsp + 0x60], 0xff
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x70]
mov edx, edi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400518d7
and qword [rsp + 0x58], 0
lea r8, [0x14006d440]
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.14001ba30
nop
lea r8, [rsp + 0x70]
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.14001ba30
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x1400518a0
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.140051768
mov ebx, eax
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
test eax, eax
mov eax, r12d
js 0x1400518e4
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x1400518d7
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
inc edi
cmp edi, dword [rsp + 0x50]
jae 0x1400518fc
jmp 0x14005180f
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x1400518fc
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x48]
cmp rcx, r12
je 0x14005190c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140001020
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x280
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005809c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r15d, r15d
mov esi, r8d
mov rbp, rdx
mov r14, rcx
test r8d, r8d
jns 0x1400580da
or rsi, 0xffffffffffffffff
inc rsi
cmp word [rdx + rsi*2], r15w
jne 0x1400580d0
test esi, esi
jne 0x1400580e5
xor eax, eax
jmp 0x1400581ef
movd xmm0, esi
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x14006fc80]
cvttsd2si edi, xmm0
movsxd rcx, edi
call fcn.140026f10
mov qword [rsp + 0x38], r15
mov r9d, esi
mov qword [rsp + 0x30], r15
mov r8, rbp
mov dword [rsp + 0x28], edi
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test eax, eax
jne 0x1400581bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x140058152
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x1400581e5
mov qword [rsp + 0x38], r15
mov r9d, esi
mov qword [rsp + 0x30], r15
mov r8, rbp
mov dword [rsp + 0x28], r15d
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, rbx
movsxd rdi, eax
call fcn.140002ef0
mov rcx, rdi
call fcn.140026f10
mov qword [rsp + 0x38], r15
mov r9d, esi
mov qword [rsp + 0x30], r15
mov r8, rbp
mov dword [rsp + 0x28], edi
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test eax, eax
je 0x1400581e5
mov rcx, qword [r14 + 8]
lea r9, [rsp + 0x40]
mov r8d, edi
mov qword [rsp + 0x20], r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400581e2
call fcn.1400331bc
mov edi, eax
jmp 0x1400581e5
mov edi, r15d
mov rcx, rbx
call fcn.140002ef0
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001020
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x140058794
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
jne 0x1400587b0
mov eax, 0x80070057
jmp 0x140058841
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400587c1
xor eax, eax
jmp 0x140058841
and qword [rsp + 0x30], 0
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140002f00
lea rcx, [rsp + 0x30]
call fcn.140022420
test eax, eax
jne 0x1400587e9
mov ebx, 0x8007000e
jmp 0x14005881c
mov rcx, qword [rsp + 0x30]
call fcn.140058794
mov ebx, eax
test eax, eax
jne 0x14005881c
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14005881c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14005883f
lfence
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140058fc0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rdi, r9
cmp byte [rcx + 0xb], 0
je 0x140058ff4
cmp rdx, 0xffffffff80000002
jne 0x1400590b0
cmp byte [rcx + 0xc], 0
jne 0x1400590b0
test r8b, 6
je 0x1400590b0
xor bl, bl
cmp byte [rcx + 0xa], bl
jne 0x1400590b2
call fcn.140002950
mov rcx, rax
test rax, rax
je 0x1400590bf
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
and qword [rsp + 0x50], 0
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.1400277fc
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, str.Attempt_to_write_to_HKEY_LOCAL_MACHINE_without__setup_command
lea r8, str.VisualStudio
lea rdx, str.Warning:__s:__s:__s_n
lea rcx, [rsp + 0x30]
call fcn.140006970
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14005908c
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x1400590b2
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400590b2
mov bl, 1
mov al, bl
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400327c0
int3
Function at 0x140059a08
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rcx
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x30], rax
cmp rax, 0xffffffffffffffff
jne 0x140059a4d
mov eax, 6
jmp 0x140059b43
lea rbx, [rsp + 0x30]
mov qword [rsp + 0x28], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r15d, eax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x3c], xmm0
and qword [rsp + 0x4c], 0
mov dword [rsp + 0x38], SafeArrayAllocDescriptor
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x140059b2e
cmp dword [rsp + 0x44], r14d
jne 0x140059b01
mov r8d, dword [rsp + 0x40]
cmp r8d, r15d
je 0x140059b01
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x140059b01
mov rcx, rax
call fcn.14005e884
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x140059add
mov qword [rdx], rsi
add qword [rdi + 8], 8
jmp 0x140059aea
lea r8, [rsp + 0x20]
mov rcx, rdi
call fcn.140040e18
jmp 0x140059b01
mov dword [rsp + 0x38], SafeArrayAllocDescriptor
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140059a98
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140059b43
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140001020
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14005adc0
Capabilities:
Get file system object information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor r15d, r15d
mov dword [rsp + 0x38], r15d
test rdx, rdx
jne 0x14005ae2f
call fcn.140002950
test rax, rax
je 0x14005afd9
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rdi], rax
mov dword [rsp + 0x38], 1
jmp 0x14005afb0
mov qword [rsp + 0x30], r15
call fcn.140002950
mov rcx, rax
test rax, rax
je 0x14005afd9
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x48], r15d
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov r8, rsi
lea r14d, [r9 + 4]
mov edx, r14d
lea ecx, [r9 + 0x42]
call qword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
cmp eax, 1
jne 0x14005af15
mov edx, dword [rsp + 0x48]
add edx, eax
js 0x14005afe7
mov ecx, eax
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or eax, ecx
jge 0x14005aeb4
lfence
lea rcx, [rsp + 0x30]
call fcn.140002d40
mov rbx, qword [rsp + 0x30]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8, rsi
mov edx, r14d
lea ecx, [r9 + 0x42]
call qword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
mov r14d, eax
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
test eax, eax
js 0x14005afe7
cmp eax, dword [rbx - 0xc]
jg 0x14005afe7
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r15w
test r14d, r14d
je 0x14005af15
lea rcx, [rsp + 0x30]
call fcn.140002fb0
mov rbx, qword [rsp + 0x30]
cmp dword [rbx - 0x10], r15d
jne 0x14005af7a
mov r14d, 0x2b8
mov r8d, r14d
xor edx, edx
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x20], 0x200
mov r9d, r14d
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
je 0x14005af7a
lea rcx, [rsp + 0x60]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r15w
jne 0x14005af59
mov r8d, eax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.140002c00
mov rbx, qword [rsp + 0x30]
lea rcx, [rbx - 0x18]
call fcn.140002a70
add rax, 0x18
mov qword [rdi], rax
mov dword [rsp + 0x38], 1
or eax, 0xffffffff
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x14005afb0
lfence
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rdi
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.140001020
mov rbx, qword [rsp + 0x360]
add rsp, 0x320
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400327c0
nop
jmp 0x14005afe6
nop
mov ecx, 0x80070057
call fcn.1400327c0
int3
Function at 0x14005b3f0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x30], rdx
lea rdx, [rsp + 0x40]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14005b4dc
and qword [rsp + 0x20], 0
lea rax, [rsp + 0x20]
mov qword [rsp + 0x28], rax
call fcn.140002950
mov rcx, rax
test rax, rax
je 0x14005b523
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
mov rcx, rsi
call fcn.14005ba10
lea r8, [rsp + 0x6c]
mov rdx, qword [rax]
lea rcx, [rsp + 0x20]
call fcn.140008720
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14005b46e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rax, [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005b4dc
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov qword [rsp + 0x28], rbx
mov rdx, qword [rbx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005b501
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140001020
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2a0
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400327c0
int3
Function at 0x14005b850
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx + 0x20]
or rax, 0xffffffffffffffff
cmp rcx, rax
jne 0x14005b876
xor al, al
jmp 0x14005b8a3
xor ebx, ebx
test rdx, rdx
jne 0x14005b881
mov eax, ebx
jmp 0x14005b88a
inc rax
cmp word [rdx + rax*2], bx
jne 0x14005b881
lea r8d, [rax + rax]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001020
add rsp, 0x40
pop rbx
ret

Function at 0x14005d1a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rbp + 0x47], rax
movsxd rdi, ecx
cmp edi, 0x26
ja 0x14005d28c
lfence
lea rax, [rbp - 0x69]
mov r9d, 0x20219
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Licenses1299B4B9_DFCC_476D_98F0_F65A2B46C96D
mov rcx, 0xffffffff80000000
or ebx, 0xffffffff
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005d288
and dword [rbp - 0x61], eax
lea r9, [rbp - 0x61]
and dword [rbp - 0x5d], eax
xor r8d, r8d
mov rcx, qword [rbp - 0x69]
lea rax, [rbp - 0x5d]
mov qword [rsp + 0x28], rax
xor edx, edx
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005d27e
cmp dword [rbp - 0x61], 3
jne 0x14005d27e
cmp dword [rbp - 0x5d], 0x9c
jne 0x14005d27e
mov rcx, qword [rbp - 0x69]
lea rax, [rbp - 0x5d]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x61]
lea rax, [rbp - 0x59]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005d27e
cmp dword [rbp - 0x61], 3
jne 0x14005d27e
mov ebx, dword [rbp + rdi*4 - 0x59]
lea ecx, [rdi*4 + 0xf5b7]
add ebx, edi
xor ebx, ecx
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14005d28f
or eax, 0xffffffff
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140001020
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14005d7b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rdx
and dword [rdx], 0
and qword [rdx + 8], 0
mov edx, ecx
lea rcx, [rsp + 0x38]
call fcn.14005da30
nop
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20219
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
sete dil
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005d82c
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x14005d8ae
and dword [rsp + 0x38], 0
mov qword [rsp + 0x28], rbx
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005d8a0
cmp dword [rsp + 0x38], 3
jne 0x14005d8a0
mov ecx, dword [rbx]
call fcn.140026f10
mov qword [rbx + 8], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005d896
cmp dword [rsp + 0x38], 3
je 0x14005d8a3
and dword [rbx], 0
and qword [rbx + 8], 0
jmp 0x14005d8a3
and dword [rbx], 0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rbx + 8], 0
setne al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140001020
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret