joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140040adc
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov rdi, rcx
lea rsi, [rcx + 8]
movabs rdx, 0xcbf29ce484222325
xor ecx, ecx
movzx eax, byte [rcx + rsi]
xor rdx, rax
movabs r8, 0x100000001b3
imul rdx, r8
inc rcx
cmp rcx, 4
jb 0x140040afe
mov rcx, qword [0x14008e520]
and rcx, rdx
add rcx, rcx
mov r8, qword [0x14008e508]
mov rax, qword [r8 + rcx*8 + 8]
mov rdx, qword [0x14008e4f8]
cmp rax, rdx
je 0x140040b59
mov r9, qword [r8 + rcx*8]
mov ecx, dword [rsi]
jmp 0x140040b52
cmp rax, r9
je 0x140040b59
mov rax, qword [rax + 8]
cmp ecx, dword [rax + 0x10]
jne 0x140040b49
jmp 0x140040b5b
xor eax, eax
mov rbx, rdx
test rax, rax
cmovne rbx, rax
cmp rbx, rdx
jne 0x140040c73
mov r8, qword [rdi + 0x10]
mov edx, dword [rsi]
lea rcx, [rbp + 0x20]
call fcn.14003fd58
mov rbx, rax
mov qword [rbp + 0x28], rax
mov ecx, dword [rsi]
mov dword [rbp - 0x30], ecx
mov rcx, qword [rax]
sub rcx, 0x18
call fcn.1400028e4
add rax, 0x18
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x20], 1
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
and qword [rbp - 8], 0
mov r8, rdi
xor edx, edx
lea rcx, [rbp - 0x18]
call fcn.140041dfc
mov rdx, qword [rbx]
sub rdx, 0x18
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140040be0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea r9, [rbp - 0x30]
mov r8, rsi
lea rdx, [rbp - 0x40]
call fcn.1400415b0
mov r8, qword [rbp - 0x18]
test r8, r8
je 0x140040c53
mov rcx, qword [rbp - 8]
sub rcx, r8
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 4
mov rax, r8
cmp rdx, 0x1000
jb 0x140040c4b
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040c4b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.140002da0
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140040ca9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140040ca9
lea rcx, [rbx + 0x30]
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx + 0x10]
je 0x140040c9e
movups xmm0, xmmword [rdi]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rdx + 0x20], xmm0
add qword [rcx + 8], 0x30
jmp 0x140040ca6
mov r8, rdi
call fcn.140041dfc
inc dword [rbx + 0x28]
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x140041bc0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x14008e500]
xorps xmm0, xmm0
add rcx, 1
mov rbx, qword [0x14008e528]
js 0x140041be8
cvtsi2ss xmm0, rcx
jmp 0x140041bfd
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [0x14008e4f0]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
movss xmm1, dword [0x1400651d4]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x140041c2f
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x140041c2f
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x140041c5d
cmp rbx, 0x200
jae 0x140041c5a
shl rbx, 3
cmp rbx, rcx
jae 0x140041c5d
mov rbx, rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov eax, 1
shl rax, cl
cmp rbx, rax
jbe 0x140041c86
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rbx - 1]
mov edi, 1
mov rbx, qword [0x14008e4f8]
or rax, 1
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x14008e508]
lea rdx, [rdi + rdi]
call fcn.140024c10
mov rax, qword [0x14008e4f8]
lea r9, [rdi - 1]
mov qword [0x14008e520], r9
mov qword [0x14008e528], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140041dd4
mov rcx, qword [rcx]
movabs r11, 0xcbf29ce484222325
xor r8d, r8d
movzx edx, byte [r8 + rax + 0x10]
movabs r10, 0x100000001b3
xor r11, rdx
inc r8
imul r11, r10
cmp r8, 4
jb 0x140041cee
mov rdi, qword [0x14008e508]
and r11, r9
add r11, r11
cmp qword [rdi + r11*8], rbx
jne 0x140041d2c
mov qword [rdi + r11*8], rax
mov qword [rdi + r11*8 + 8], rax
jmp 0x140041d9a
mov r10, qword [rdi + r11*8 + 8]
mov edx, dword [rax + 0x10]
cmp edx, dword [r10 + 0x10]
jne 0x140041d6f
mov r10, qword [r10]
cmp r10, rax
je 0x140041d25
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140041d25
mov r10, qword [r10 + 8]
cmp edx, dword [r10 + 0x10]
je 0x140041dae
cmp qword [rdi + r11*8], r10
jne 0x140041d65
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [rdi + r11*8], rax
mov rax, rcx
cmp rcx, rbx
je 0x140041dd4
mov r9, qword [0x14008e520]
jmp 0x140041cde
mov r10, qword [r10]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140041d9a
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140042574
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r14
push r15
sub rsp, 0x70
mov rbx, r8
mov rdi, rdx
mov r14, rcx
call fcn.140042540
xor r15d, r15d
mov qword [rsp + 0x38], r15
and dword [rsp + 0x40], r15d
and qword [rsp + 0x48], r15
and qword [rsp + 0x30], r15
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400425e3
mov r15, qword [rsp + 0x30]
mov qword [rsp + 0x38], r15
and dword [rsp + 0x40], eax
test eax, eax
je 0x140042606
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test r15, r15
je 0x1400425ff
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140042780
and dword [rsp + 0x98], 0
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.SplashHash
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x140042649
cmp dword [rsp + 0x30], 3
je 0x14004266c
lea ebx, [rax + 0xd]
movzx edi, bx
or edi, 0x80070000
test ebx, ebx
cmovle edi, ebx
test r15, r15
je 0x140042665
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x140042780
mov ebx, dword [rsp + 0x98]
mov rcx, qword [r14 + 8]
call fcn.140002da0
and dword [r14], 0
and qword [r14 + 8], 0
test ebx, ebx
je 0x14004269f
mov ecx, ebx
call fcn.14002657c
mov qword [r14 + 8], rax
test rax, rax
je 0x140042797
jmp 0x1400426a1
xor eax, eax
mov dword [r14], ebx
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.SplashHash
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x1400426de
cmp dword [rsp + 0x30], 3
je 0x14004270c
lea ebx, [rax + 0xd]
mov rcx, r14
call fcn.140042540
movzx edi, bx
or edi, 0x80070000
test ebx, ebx
cmovle edi, ebx
test r15, r15
je 0x140042708
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x38], 0
mov eax, edi
jmp 0x140042780
mov r8d, dword [rsp + 0x98]
cmp r8d, 8
jb 0x14004273b
add r8d, 0xfffffff8
mov rcx, qword [r14 + 8]
mov eax, dword [r8 + rcx]
mov dword [r14 + 0x1c], eax
mov eax, dword [r8 + rcx + 4]
mov dword [r14 + 0x20], eax
cmp r8d, dword [r14]
ja 0x14004273b
mov dword [r14], r8d
cmp r8d, 4
jb 0x140042759
add r8d, 0xfffffffc
mov rax, qword [r14 + 8]
mov ecx, dword [r8 + rax]
mov dword [r14 + 0x18], ecx
cmp r8d, dword [r14]
ja 0x140042759
mov dword [r14], r8d
test r15, r15
je 0x140042767
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140042780
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop r15
ret
lea rcx, [rsp + 0x50]
call fcn.1400424f8
lea rdx, [0x14007d030]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14004697c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov r10, qword [rdx]
xor r9d, r9d
mov qword [rsp + 8], rcx
test r10, r10
je 0x140046a4c
mov r8d, dword [r10 - 0x10]
lea eax, [r8 - 1]
cmp eax, 0xfffffff
ja 0x140046a4c
movabs rax, 0xb170a1bfb170a1bf
mov qword [rsp + 8], rax
cmp r8d, 0xb
jbe 0x140046a22
mov r11d, r8d
mov ebx, r8d
shr r11, 2
mov eax, dword [r10]
mov rdx, rbx
shr rdx, 2
add r10, 4
and edx, 1
add r8d, 0xfffffffc
sub rbx, 4
add eax, dword [rsp + rdx*4 + 8]
imul ecx, eax, 0x401
mov eax, ecx
shr eax, 6
xor eax, ecx
mov dword [rsp + rdx*4 + 8], eax
sub r11, 1
jne 0x1400469c7
jmp 0x140046a22
movzx eax, byte [r10]
dec r8d
mov edx, r8d
and edx, 1
add eax, dword [rsp + rdx*4 + 8]
imul ecx, eax, 0x401
mov eax, ecx
shr eax, 6
xor eax, ecx
mov dword [rsp + rdx*4 + 8], eax
inc r10
test r8d, r8d
jne 0x1400469fd
lea rcx, [rsp + 8]
lea edx, [r8 + 2]
imul eax, dword [rcx], 0x19660d
add eax, 0x3c6ef35f
mov dword [rcx], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x140046a30
mov r9, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rax, r9
ret

Function at 0x140047630
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rsi, r8
mov rcx, rdx
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov rdx, qword [rsi]
mov rcx, rdi
test eax, eax
setne bl
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov edx, eax
test eax, eax
je 0x140047686
sub edx, 2
je 0x14004767f
cmp edx, 1
je 0x14004767f
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x140047688
mov edi, 1
jmp 0x140047688
xor edi, edi
test bl, bl
je 0x140047692
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140049630
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rdi, rcx
test byte [rcx + 8], 0x40
jne 0x14004964c
xor eax, eax
jmp 0x140049746
mov rax, qword [rcx + 0xe8]
mov rcx, qword [0x14008d518]
test rax, rax
cmovne rcx, rax
lea r8, [rdi + 0xb0]
mov rdx, qword [rdi + 0xe0]
call fcn.140047630
mov ebx, eax
test eax, eax
js 0x140049746
mov rcx, qword [rdi + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140049744
lea rdx, [rsp + 0x88]
mov rcx, rdi
call fcn.140002764
mov rbp, rax
call fcn.1400027c4
mov rcx, rax
test rax, rax
je 0x140049756
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x80], rbx
lea r8, [rsp + 0x80]
mov rdx, rbp
lea rcx, [rsp + 0x20]
call fcn.14002a6e4
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1400496f9
nop
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [0x14006b068]
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140049727
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, [rdi + 0x60]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140045868
mov ebx, eax
lea rcx, [rsp + 0x20]
call fcn.140017340
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400312f0
int3
Function at 0x14004af28
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 0x14004af5a
mov eax, 0x8000ffff
jmp 0x14004b0d2
call fcn.1400027c4
mov rcx, rax
test rax, rax
je 0x14004b0f7
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 0x14004afa1
mov edx, r13d
lea rcx, [rbp + 0x30]
call fcn.140002b54
mov rbx, qword [rbp + 0x30]
mov rdx, rbx
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x14004afca
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x14004b0b5
cmp eax, r13d
jb 0x14004afd9
mov esi, 0x8000ffff
jmp 0x14004b0b5
call fcn.1400027c4
mov rcx, rax
test rax, rax
je 0x14004b0e9
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 0x14004b01a
mov edx, r13d
lea rcx, [rbp + 0x48]
call fcn.140002b54
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 0x14004b046
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x14004b097
cmp eax, 0x6f
jne 0x14004b052
mov esi, 0x8007006f
jmp 0x14004b097
mov rdx, rdi
lea rcx, [rbp - 0x10]
call fcn.140002cec
nop
lea rdx, [rbp - 0x10]
mov rcx, r15
call fcn.140006324
nop
nop dword [rax]
mov rdx, qword [rbp - 0x10]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004b08e
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 0x14004b0b1
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 0x14004b0d0
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.1400312f0
nop
jmp 0x14004b0f6
nop
mov ecx, 0x80004005
call fcn.1400312f0
int3
Function at 0x14004f250
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
add rcx, 8
call fcn.140006324
lea r8, str..tmp
lea rdx, [rdi + 8]
lea rcx, [rsp + 0x60]
call fcn.14001aca0
nop
mov rdx, rax
lea rcx, [rdi + 0x10]
call fcn.140006324
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004f2ad
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.140034a8c
test eax, eax
js 0x14004f318
mov byte [rdi + 0x38], 1
lea rcx, [rdi + 0x30]
call fcn.140003970
cmp byte [rdi + 0x38], 0
jne 0x14004f2e0
mov eax, 0x80004005
jmp 0x14004f318
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, 3
lea rdx, [0x1400741b0]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14004f30f
call fcn.140031c70
test eax, eax
js 0x14004f318
mov byte [rdi + 0xa0], 1
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x14004f328
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 0x14004f345
mov eax, 1
jmp 0x14004f378
add rcx, 0x18
call fcn.140055af4
mov edi, eax
test eax, eax
js 0x14004f378
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 0x14004f384
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 [0x14008d310]
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 0x14004f502
and dword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
mov r8, r14
mov rdx, qword [rsp + 0x48]
mov rcx, rsi
call fcn.14004f53c
mov ebx, eax
test eax, eax
js 0x14004f502
xor edi, edi
cmp dword [rsp + 0x40], edi
jbe 0x14004f502
mov dword [rsp + 0x50], 0xff
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x70]
mov edx, edi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14004f4e0
lea r8, [0x140068fb0]
mov rdx, r14
lea rcx, [rsp + 0x60]
call fcn.14001aca0
nop
lea r8, [rsp + 0x70]
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.14001aca0
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14004f4ac
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.14004f384
mov ebx, eax
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
test eax, eax
mov eax, r12d
js 0x14004f4ed
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14004f4e0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
inc edi
cmp edi, dword [rsp + 0x40]
jae 0x14004f502
jmp 0x14004f428
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14004f502
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x48]
cmp rcx, r12
je 0x14004f512
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 0x140055b44
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
mov esi, r8d
mov rbp, rdx
mov r14, rcx
test r8d, r8d
jns 0x140055b7b
or rsi, 0xffffffffffffffff
inc rsi
cmp word [rdx + rsi*2], r15w
jne 0x140055b71
test esi, esi
jne 0x140055b86
xor eax, eax
jmp 0x140055c90
movd xmm0, esi
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x14006b900]
cvttsd2si edi, xmm0
movsxd rcx, edi
call fcn.14002657c
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 0x140055c5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x140055bf3
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x140055c86
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.140002da0
mov rcx, rdi
call fcn.14002657c
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 0x140055c86
mov rcx, qword [r14 + 8]
lea r9, [rsp + 0x70]
mov r8d, edi
mov qword [rsp + 0x20], r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140055c83
call fcn.140031c70
mov edi, eax
jmp 0x140055c86
mov edi, r15d
mov rcx, rbx
call fcn.140002da0
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x1400561cc
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 0x1400561e8
mov eax, 0x80070057
jmp 0x14005626d
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400561f6
xor eax, eax
jmp 0x14005626d
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140002cec
lea rcx, [rsp + 0x30]
call fcn.140021cac
test eax, eax
jne 0x140056218
mov ebx, 0x8007000e
jmp 0x14005624b
mov rcx, qword [rsp + 0x30]
call fcn.1400561cc
mov ebx, eax
test eax, eax
jne 0x14005624b
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14005624b
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 0x14005626b
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 0x1400569c0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rdi, r9
cmp byte [rcx + 0xb], 0
je 0x1400569f4
cmp rdx, 0xffffffff80000002
jne 0x140056aa4
cmp byte [rcx + 0xc], 0
jne 0x140056aa4
test r8b, 6
je 0x140056aa4
xor bl, bl
cmp byte [rcx + 0xa], bl
jne 0x140056aa6
call fcn.1400027c4
mov rcx, rax
test rax, rax
je 0x140056ab3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140026e08
mov rax, qword [rsp + 0x30]
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 + 0x50]
call fcn.1400069fc
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x140056a83
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x140056aa6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140056aa6
mov bl, 1
mov al, bl
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400312f0
int3