joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140016180
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140047040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140047780]
mov edi, ecx
cmp byte [rbx + 0x4df5], 0
jne 0x1400161e1
cmp byte [rbx + 0x4df6], 0
jne 0x1400161e1
movsx r9d, word [rbx + 0x51f0]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140003120
test dil, 2
je 0x14001631f
jmp 0x14001627b
movss xmm0, dword [rbx + 0x3a08]
mov eax, dword [rbx + 0x4ac0]
movaps xmm1, xmm0
mulss xmm1, dword [0x140040a3c]
mulss xmm0, dword [0x140040a34]
addss xmm1, dword [rbx + 0xe0]
addss xmm0, dword [rbx + 0xe4]
test al, 1
jne 0x14001623c
xor ecx, ecx
movss dword [rbx + 0x4ad0], xmm1
mov qword [rbx + 0x4ad8], rcx
or eax, 1
movss dword [rbx + 0x4ad4], xmm0
mov dword [rbx + 0x4ac4], 1
movss xmm0, dword [rbx + 0x3a64]
lea r8, str.Tooltip__02d
mulss xmm0, dword [0x1400409c8]
lea rcx, [rsp + 0x20]
movsx r9d, word [rbx + 0x51f0]
or eax, 0x40
mov edx, 0x10
mov dword [rbx + 0x4ac0], eax
movss dword [rbx + 0x4b20], xmm0
call fcn.140003120
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x1400162d0
lea r11, [0x14003bdb0]
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x1400162b3
cmp byte [r8], r9b
jne 0x1400162b3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1400162a0
not ecx
call fcn.14000c0a0
test rax, rax
je 0x14001631f
cmp byte [rax + 0xca], 0
je 0x14001631f
mov byte [rax + 0xcf], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xd2], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xec], 1
mov edx, 0x10
inc word [rbx + 0x51f0]
movsx r9d, word [rbx + 0x51f0]
call fcn.140003120
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x2030347
call fcn.14000f040
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140038170
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14001b4e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5358], 0
lea rbx, [rcx + 0x5360]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14001b587
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001b53a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14001de60
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140003bf0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5358]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5368]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x140047778]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001b58f
mov rcx, rbx
call fcn.140003bf0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14001b8b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x140047780]
xor ebp, ebp
cmp byte [rbx + 0x52a0], bpl
jne 0x14001b98f
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001b988
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.140003570
mov rsi, rax
test rax, rax
je 0x14001b988
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14001b914
mov rcx, rax
call fcn.14001bae0
mov r8, qword [0x140047780]
test r8, r8
je 0x14001b97f
movsx rdx, word [r8 + 0x5448]
lea rcx, [r8 + 0x544c]
mov r9d, dword [r8 + 0x3fe8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14001b974
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x5448], cx
movsx rax, cx
lea rcx, [r8 + 0x544c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x5444]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x52a0], 1
movss xmm0, dword [rbx + 0x52a4]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14001ba1e
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x52a4], xmm0
jb 0x14001ba1e
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x14001ba11
mov rax, qword [0x140047780]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x52a4], ebp
call fcn.14001bd40
lea rdx, [0x14003b884]
mov rcx, rdi
mov rsi, rax
call fcn.1400033c0
mov rdi, rax
test rax, rax
je 0x14001ba18
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x14001ba18
mov byte [rbx + 0xb4], 1
mov dword [rbx + 0x52a4], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14001ba40
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140047780]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x14001baa3
mov qword [rsp], rbx
lea rbx, [0x14003bdb0]
nop dword [rax]
cmp r9b, 0x23
jne 0x14001ba83
cmp byte [r8], r9b
jne 0x14001ba83
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x14001ba70
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x52b8]
not eax
mov r8, qword [r10 + 0x52c0]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x14001bacf
cmp dword [r8 + 8], eax
je 0x14001bad6
add r8, 0x48
cmp r8, rcx
jne 0x14001bac0
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x1400304a0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x140047040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x140047780]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1400306bf
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1400306bf
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x140047780]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x140030574
movsx rdx, word [r8 + 0x5448]
lea rax, [r8 + 0x544c]
mov r9d, dword [r8 + 0x3fe8]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x140030569
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x5448], cx
movsx rax, cx
lea rax, [rax*8 + 0x544c]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x5440]
test rdi, rdi
je 0x140030591
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x140030594
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, str.imgui_impl_win32
mov qword [rsi + 0x88], rax
mov qword [rsi + 0x98], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x1400305d7
mov rsi, qword [r8 + 0x98]
jmp 0x1400305da
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140030605
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x140047780]
mov rcx, qword [rax + 0x4bd0]
mov rax, qword [rdi]
mov rdx, qword [rcx]
mov qword [rdx + 0x30], rax
mov qword [rdx + 0x28], rax
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
mov byte [rdi + 0x31], 1
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14003067f
inc rbx
cmp rbx, 5
jl 0x140030661
jmp 0x1400306ab
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x1400306c1
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140038170
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x140038c74
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140038cbe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140038cbe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140038cbe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140038cbe
cmp dword [rcx + 0x84], 0xe
jbe 0x140038cbe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140038cc0
xor al, al
add rsp, 0x28
ret
Function at 0x140003600
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0xa0
mov qword [rax - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1402388b0]
xor rax, rsp
mov qword [rsp + 0x90], rax
movzx r14d, r8b
mov edi, edx
mov rbx, rcx
call fcn.140003d60
cmp eax, 1
jne 0x14000364c
lea ebx, [rax + 3]
jmp 0x14000382d
lea eax, [rdi - 1]
cmp eax, 1
ja 0x14000365c
mov rcx, rbx
call fcn.140004a60
xor r15d, r15d
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x50], r15d
mov ecx, edi
dec ecx
je 0x140003696
dec ecx
je 0x14000368d
dec ecx
je 0x140003684
dec ecx
jne 0x140003696
lea rcx, [rbx + 0x1f8]
jmp 0x140003699
lea rcx, [rbx + 0x150]
jmp 0x140003699
lea rcx, [rbx + 0xa8]
jmp 0x140003699
mov rcx, rbx
lea rdx, [rsp + 0x70]
call fcn.1400034c0
nop
mov esi, 0x201
mov eax, 1
cmp byte [rbx + 0x2a0], 0
cmove esi, eax
test r14b, r14b
je 0x1400036d2
lea rcx, str.Check_In_HKEY_LOCAL_MACHINE
call fcn.140006670
mov rcx, 0xffffffff80000002
jmp 0x1400036e5
lea rcx, str.Check_In_HKEY_CURRENT_USER
call fcn.140006670
mov rcx, 0xffffffff80000001
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
lea rdx, [rsp + 0x70]
cmp qword [rsp + 0x88], 8
mov dword [rsp + 0x28], esi
cmovae rdx, qword [rsp + 0x70]
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400037fc
lea rax, [rsp + 0x50]
test rax, rax
je 0x14000377b
cmp dword [rsp + 0x50], 2
je 0x14000377b
lea rcx, str.REG_CREATED_NEW_KEY__dwDisposition
call fcn.140006670
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx r8d, r14b
mov edx, edi
mov rcx, rbx
call fcn.140003ba0
lea rcx, str.Newly_created_key__was_removed
call fcn.140006670
mov ebx, 6
jmp 0x140003817
lea rcx, str.Plug_in_key_exists
call fcn.140006670
mov dword [rsp + 0x60], r15d
mov ebx, 4
mov dword [rsp + 0x64], ebx
mov dword [rsp + 0x54], ebx
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
xor r8d, r8d
lea rdx, str.LoadBehavior
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400037de
cmp dword [rsp + 0x60], 3
jne 0x1400037de
lea ebx, [rax + 5]
lea rcx, str.plug_in:_installed
jmp 0x1400037ea
mov ebx, 6
lea rcx, str.plug_in:_uninstalled
call fcn.140006670
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140003817
cmp eax, 5
jne 0x140003806
lea ebx, [rax + 1]
jmp 0x140003817
lea rcx, str.Error_open_registry_key
call fcn.140006670
mov ebx, 3
cmp qword [rsp + 0x88], 8
jb 0x14000382d
mov rcx, qword [rsp + 0x70]
call fcn.14000682c
nop
mov eax, ebx
jmp 0x140003835
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140176ca0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140003ba0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x850
mov rax, qword [0x1402388b0]
xor rax, rsp
mov qword [rsp + 0x840], rax
movzx ebp, r8b
mov ebx, edx
mov rdi, rcx
call fcn.140003d60
dec ebx
je 0x140003c02
dec ebx
je 0x140003bf9
dec ebx
je 0x140003bf0
dec ebx
jne 0x140003c02
lea rcx, [rdi + 0x1f8]
jmp 0x140003c05
lea rcx, [rdi + 0x150]
jmp 0x140003c05
lea rcx, [rdi + 0xa8]
jmp 0x140003c05
mov rcx, rdi
lea rdx, [rsp + 0x20]
call fcn.1400034c0
cmp byte [rdi + 0x2a0], 0
mov eax, 0x100
mov esi, 0x200
lea rbx, [rsp + 0x20]
lea rcx, [rsp + 0x42]
cmove esi, eax
cmp qword [rsp + 0x38], 8
mov r8d, 0x7fe
cmovae rbx, qword [rsp + 0x20]
xor eax, eax
xor edx, edx
mov word [rsp + 0x40], ax
call fcn.1401793b0
lea r8, str.Try_to_delete_Key:__s
lea rcx, [rsp + 0x40]
mov r9, rbx
mov edx, 0x400
call fcn.140178534
lea rcx, [rsp + 0x40]
call fcn.140006670
test bpl, bpl
je 0x140003ccd
lea rcx, str.In_HKEY_LOCAL_MACHINE
call fcn.140006670
cmp qword [rsp + 0x38], 8
lea rdx, [rsp + 0x20]
cmovae rdx, qword [rsp + 0x20]
mov r8d, esi
mov rcx, 0xffffffff80000002
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
cmp qword [rsp + 0x38], 8
lea rdx, [rsp + 0x20]
cmovae rdx, qword [rsp + 0x20]
mov r8d, esi
mov rcx, 0xffffffff80000001
xor r9d, r9d
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
jmp 0x140003cff
lea rcx, str.In_HKEY_CURRENT_USER
call fcn.140006670
cmp qword [rsp + 0x38], 8
lea rdx, [rsp + 0x20]
cmovae rdx, qword [rsp + 0x20]
mov r8d, esi
mov rcx, 0xffffffff80000001
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov ebx, eax
test ebx, 0xfffffffd
je 0x140003d1a
lea rcx, str.Error_delete_key
mov ebx, 3
call fcn.140006670
jmp 0x140003d1f
mov ebx, 6
cmp qword [rsp + 0x38], 8
jb 0x140003d31
mov rcx, qword [rsp + 0x20]
call fcn.14000682c
mov eax, ebx
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.140176ca0
lea r11, [rsp + 0x850]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400048b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x378
mov rax, qword [0x1402388b0]
xor rax, rsp
mov qword [rsp + 0x360], rax
lea r8, str.Word.Application
lea rdx, [0x1401fe6d0]
lea rcx, [rsp + 0x160]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rax, [rsp + 0x40]
lea rdx, [rsp + 0x160]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140004949
lea rdx, [rsp + 0x48]
lea rcx, str.Word.Basic
call qword [sym.imp.ole32.dll_CLSIDFromProgID]
xor edx, edx
mov ecx, 7
test eax, eax
cmovs ecx, edx
mov eax, ecx
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.140176ca0
add rsp, 0x378
ret
xor edx, edx
lea rcx, [rsp + 0x62]
mov r8d, 0xfe
mov word [rsp + 0x60], dx
call fcn.1401793b0
lea r8, str.CurVer
lea rdx, [0x1401fe6d0]
lea rcx, [rsp + 0x260]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
lea rdx, [rsp + 0x260]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400049c0
xor eax, eax
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.140176ca0
add rsp, 0x378
ret
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x370], rbx
mov dword [rsp + 0x30], 0x100
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x370]
jne 0x1400049a6
lea rcx, [rsp + 0x60]
mov edx, 0x2e
call fcn.1401775a0
test rax, rax
je 0x1400049a6
lea rcx, [rax + 2]
call fcn.140177650
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.140176ca0
add rsp, 0x378
ret
Function at 0x140004a60
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x8b8]
sub rsp, 0x9b0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x1402388b0]
xor rax, rsp
mov qword [rbp + 0x8a0], rax
mov rsi, rcx
call fcn.1400048b0
cmp eax, 0xb
jle 0x140004ab0
xor eax, eax
jmp 0x140004c8c
lea rcx, str.Try_to_set_Word_Excel_compatibility_NETFramework...
call fcn.140006670
mov edi, 1
mov qword [rsp + 0x78], 7
xor r14d, r14d
mov qword [rsp + 0x70], r14
mov word [rsp + 0x60], r14w
lea r8d, [rdi + 0x25]
lea rdx, str.000C0601_0000_0000_C000_000000000046
lea rcx, [rsp + 0x60]
call fcn.140003020
nop
lea r8, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae r8, qword [rsp + 0x60]
lea rdx, str.Interface_s
lea rcx, [rbp - 0x60]
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rsp + 0x20], r14
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp - 0x60]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140004c75
lea rbx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rbx, qword [rsp + 0x60]
mov word [rbp + 0xa0], r14w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp + 0xa2]
call fcn.1401793b0
mov r9, rbx
lea r8, str.Try_create_in_HKEY_CLASSES_ROOT__s
mov edx, 0x400
lea rcx, [rbp + 0xa0]
call fcn.140178534
lea rcx, [rbp + 0xa0]
call fcn.140006670
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], r14
mov word [rbp - 0x80], r14w
lea r8d, [rdi + 0x30]
lea rdx, str.Word_Excel_.NET_Framework_2.0_Lockback_Bypass_Key
lea rcx, [rbp - 0x80]
call fcn.140003020
mov qword [rsp + 0x50], r14
mov eax, 0x20206
mov edx, 0x20006
cmp byte [rsi + 0x2a0], r14b
cmove eax, edx
mov qword [rsp + 0x40], r14
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x60]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140004c57
mov eax, dword [rbp - 0x70]
lea eax, [rax*2 + 2]
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, edi
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140004c3e
mov edi, r14d
jmp 0x140004c4a
lea rcx, str.Error_create_values:
call fcn.140006670
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140004c63
lea rcx, str.Error_create_key
call fcn.140006670
cmp qword [rbp - 0x68], 8
jb 0x140004c78
mov rcx, qword [rbp - 0x80]
call fcn.14000682c
jmp 0x140004c78
mov edi, r14d
cmp qword [rsp + 0x78], 8
jb 0x140004c8a
mov rcx, qword [rsp + 0x60]
call fcn.14000682c
mov eax, edi
mov rcx, qword [rbp + 0x8a0]
xor rcx, rsp
call fcn.140176ca0
lea r11, [rsp + 0x9b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140005620
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140005653
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140005699
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140005694
nop
cmp rbx, rcx
jae 0x140005699
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
dec edi
jne 0x140005680
cmp rbx, rcx
jb 0x14000569d
xor eax, eax
jmp 0x1400056a9
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140006670
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x840
mov rax, qword [0x1402388b0]
xor rax, rsp
mov qword [rsp + 0x830], rax
mov rbx, rcx
lea rcx, [rsp + 0x32]
xor edi, edi
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x30], di
call fcn.1401793b0
lea rdx, [rsp + 0x30]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, str.AddinSetupTool.txt
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea r8, [0x1401feca8]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
call fcn.140178264
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14000670f
lea rdx, [0x1401fecb0]
mov r8, rbx
call fcn.140178398
mov rcx, qword [rsp + 0x20]
call fcn.1401784a8
mov al, 1
jmp 0x140006711
xor al, al
mov rcx, qword [rsp + 0x830]
xor rcx, rsp
call fcn.140176ca0
mov rbx, qword [rsp + 0x858]
add rsp, 0x840
pop rdi
ret

Function at 0x14000a1bc
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14000a21f
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000a233
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000a233
mov rcx, qword [rbx]
and qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
jmp 0x14000a238
cmp dword [rcx + 8], 0
je 0x14000a233
mov rdx, r8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x14000a238
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret