joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ded0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x50
mov rax, qword [0x140022010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
lea r9, [rsp + 0x20]
mov r14, rcx
mov dword [rsp + 0x20], ebp
xor r8d, r8d
xor edx, edx
mov ebx, ebp
lea ecx, [rbp + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14000df5e
nop dword [rax]
test rbx, rbx
je 0x14000df26
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14000df10
test eax, eax
jns 0x14000df7f
test rbx, rbx
je 0x14000df84
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14000e076
test rbx, rbx
jne 0x14000df8b
xor eax, eax
jmp 0x14000e076
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x80], rdi
mov edi, ebp
cmp dword [rbx], ebp
jbe 0x14000e056
mov esi, edi
lea rdx, [rbx + 0x30]
imul rax, rsi, 0x128
mov qword [rsp + 0x28], rbp
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], 0xf
movzx ecx, word [rax + rbx + 0x2e]
add rcx, rax
add rdx, rcx
inc r8
cmp byte [rdx + r8], bpl
jne 0x14000dfd4
lea rcx, [rsp + 0x28]
call fcn.140005d20
cmp qword [r14 + 0x18], 0x10
mov rdx, r14
jb 0x14000dff4
mov rdx, qword [r14]
cmp qword [rsp + 0x40], 0x10
lea rcx, [rsp + 0x28]
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14000e08c
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14000e04c
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e047
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e0dd
call fcn.14000ebb0
inc edi
cmp edi, dword [rbx]
jb 0x14000dfa2
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000eb90
add rsp, 0x50
pop r14
pop rbp
pop rbx
ret
imul rax, rsi, 0x128
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
mov rdi, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14000e0e9
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e0e4
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000e0e4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ebb0
mov rax, rdi
jmp 0x14000e069
Function at 0x1400010a4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140113970]
xor rax, rsp
mov qword [rsp + 0x48], rax
movzx eax, byte [rdx]
mov r11, rcx
mov r10, qword [rsp + 0x88]
shl eax, 0x18
mov dword [rsp + 0x38], eax
movzx eax, word [rdx + 1]
mov dword [rsp + 0x3c], eax
mov rax, qword [rdx + 3]
add rdx, 0xb
mov qword [rsp + 0x40], rax
mov rax, qword [rcx + 8]
mov qword [r10], rax
mov rax, qword [rcx + 8]
mov qword [rsp + 0x28], r10
movzx ecx, word [rax]
mov dword [r10 + 8], ecx
lea rcx, str.ETW0
mov qword [r10 + 0x10], rdx
mov dword [r10 + 0xc], 2
movzx eax, word [rdx]
lea rdx, [rsp + 0x38]
mov dword [r10 + 0x18], eax
lea rax, [0x1400f493e]
sub eax, ecx
mov dword [r10 + 0x1c], 1
mov rcx, qword [r11 + 0x20]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_EventWriteTransfer]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400c4a70
add rsp, 0x58
ret
Function at 0x14001af7c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x140113970]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov ebx, edx
mov rdi, rcx
and qword [rbp + 0x47], 0
lea rax, [rbp + 0x47]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftUEVAgentConfiguration
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001b036
mov dword [rbp + 0x37], 4
mov rcx, qword [rbp + 0x47]
test rcx, rcx
je 0x14001b072
lea rax, [rbp + 0x37]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3f]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x3b]
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001b045
mov edx, dword [rbp + 0x3b]
cmp edx, 4
jne 0x14001b028
mov ebx, dword [rbp + 0x3f]
jmp 0x14001b045
lea rcx, str.AgentService.Util::GetDwordConfigValue:_Unexpected_value_type__type__0x_X
call fcn.140004678
jmp 0x14001b045
mov edx, eax
lea rcx, str.AgentService.Util::GetDwordConfigValue:_Failed_to_open_configuration_key__status__0x_X
call fcn.1400045ac
nop
lea rcx, [rbp + 0x47]
call fcn.14000619c
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400c4a70
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
lea rdx, str.Attempting_to_use_an_invalid_handle.
lea rcx, [rbp - 0x29]
call fcn.14000621c
nop
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 9]
call fcn.140005ab4
lea rdx, [0x1401096d0]
lea rcx, [rbp - 9]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x14001ea24
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x250
mov rax, qword [0x140113970]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor r15d, r15d
lea rax, [rsp + 0x30]
mov qword [r8], r15
lea rdx, [rsp + 0x30]
sub rcx, rax
mov r14, r8
mov r9d, 0x104
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x14001ea95
movzx eax, word [rcx + rdx]
test ax, ax
je 0x14001ea95
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x14001ea73
test r9, r9
lea rax, [rdx - 2]
lea r8, [0x1400e3c10]
cmovne rax, rdx
lea rcx, [rsp + 0x30]
mov word [rax], r15w
call fcn.14001cad4
mov ebx, 0x1f0003
lea r8, [rsp + 0x30]
mov ecx, ebx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14001eb02
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
jne 0x14001eaed
mov esi, r15d
jmp 0x14001eb33
mov rcx, qword [rbp + 0x168]
mov edx, 0xc9
call fcn.14001e554
mov esi, eax
jmp 0x14001eb33
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], r15d
mov rcx, rdi
mov dword [rsp + 0x24], r15d
call fcn.14001e8ac
mov esi, eax
test eax, eax
jns 0x14001eb6b
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xcf
call fcn.14001e52c
test rdi, rdi
jne 0x14001ec14
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400c4a70
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
lea r8, [0x1400e3c18]
lea rcx, [rsp + 0x30]
call fcn.14001cad4
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14001ebae
mov rcx, qword [rbp + 0x168]
mov edx, 0xd5
call fcn.14001e554
mov esi, eax
jmp 0x14001ec14
lea rdx, [rsp + 0x24]
mov rcx, rbx
call fcn.14001e8ac
mov esi, eax
test eax, eax
jns 0x14001ebea
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xd7
call fcn.14001e52c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
je 0x14001ec3e
jmp 0x14001ec14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
je 0x14001ec2c
movsxd rcx, dword [rsp + 0x24]
mov esi, r15d
movsxd rax, dword [rsp + 0x20]
shl rcx, 0x1f
or rcx, rax
mov qword [r14], rcx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
je 0x14001ec50
jmp 0x14001eb3c
mov rcx, qword [rbp + 0x168]
mov edx, 0x937
call fcn.14001e574
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x937
call fcn.14001e574
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x937
call fcn.14001e574
int3
Function at 0x140021f70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x140113970]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r14d, edx
mov rdi, rcx
or ebx, 0xffffffff
cmp edx, ebx
jne 0x140021fab
xor eax, eax
jmp 0x14002219d
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x140021fe6
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x140021fe6
lea ecx, [r8 - 1]
mov dword [rdx], ecx
mov rdx, qword [rdi + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], r14b
mov eax, r14d
jmp 0x14002219d
cmp qword [rdi + 0x90], 0
je 0x14002219b
mov rdx, qword [rdi + 0x18]
lea rax, [rdi + 0x80]
cmp qword [rdx], rax
jne 0x14002201d
mov rcx, qword [rdi + 0x70]
mov rax, qword [rdi + 0x68]
mov qword [rdx], rax
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
and dword [rax], 0
cmp qword [rdi + 0x78], 0
jne 0x140022046
movsx ecx, r14b
mov rdx, qword [rdi + 0x90]
call qword [sym.imp.msvcrt.dll_fputc]
nop dword [rax + rax]
cmp eax, ebx
cmovne ebx, r14d
jmp 0x14002219b
mov byte [rbp - 9], r14b
mov qword [rbp + 0x27], 0xf
and qword [rbp + 0x1f], 0
mov byte [rbp + 0xf], 0
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp + 0xf]
call fcn.1400116f0
nop
mov r11, qword [rdi + 0x78]
lea rdx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0x10
cmovae rdx, qword [rbp + 0xf]
add rdx, qword [rbp + 0x1f]
lea r8, [rbp + 0xf]
cmp qword [rbp + 0x27], 0x10
cmovae r8, qword [rbp + 0xf]
mov rax, qword [r11]
movabs r10, 0xa77dbfdd185e7070
lea rcx, [rbp - 1]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r8
lea rcx, [rbp + 7]
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 8]
lea r8, [rbp - 9]
lea rdx, [rdi + 0x84]
mov rcx, r11
mov rax, qword [rax + 0x38]
call qword [0x1400d71e8]
test eax, eax
je 0x1400220de
sub eax, 1
jne 0x14002215d
lea rax, [rbp + 0xf]
mov r9, qword [rbp + 0xf]
mov r10, qword [rbp + 0x27]
cmp r10, 0x10
cmovae rax, r9
mov r15, qword [rbp - 1]
sub r15, rax
je 0x140022127
lea rcx, [rbp + 0xf]
cmp r10, 0x10
cmovae rcx, r9
mov r9, qword [rdi + 0x90]
mov r8, r15
mov edx, 1
call qword [sym.imp.msvcrt.dll_fwrite]
nop dword [rax + rax]
cmp r15, rax
jne 0x140022184
mov byte [rdi + 0x81], 1
lea rax, [rbp - 9]
cmp qword [rbp + 7], rax
jne 0x140022181
test r15, r15
jne 0x14002206c
cmp qword [rbp + 0x1f], 0x20
jae 0x140022184
xor r8d, r8d
lea edx, [r15 + 8]
lea rcx, [rbp + 0xf]
call fcn.1400070b0
jmp 0x14002206c
cmp eax, 2
jne 0x140022184
movsx ecx, byte [rbp - 9]
mov rdx, qword [rdi + 0x90]
call qword [sym.imp.msvcrt.dll_fputc]
nop dword [rax + rax]
cmp eax, ebx
cmovne ebx, r14d
jmp 0x140022184
mov ebx, r14d
cmp qword [rbp + 0x27], 0x10
jb 0x14002219b
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400c4a70
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140022c00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140113970]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rcx
xor ebx, ebx
cmp qword [rcx + 0x78], rbx
je 0x140022d85
cmp byte [rcx + 0x81], bl
je 0x140022d85
mov rax, qword [rcx]
movabs r10, 0x85e0a7255cd10370
or edx, 0xffffffff
mov rax, qword [rax + 0x18]
call qword [0x1400d71e8]
cmp eax, 0xffffffff
jne 0x140022c6a
xor al, al
jmp 0x140022d8a
mov qword [rbp - 0x10], 0xf
mov qword [rbp - 0x18], rbx
mov byte [rbp - 0x28], bl
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x28]
call fcn.1400116f0
nop
mov esi, 1
mov r11, qword [rdi + 0x78]
lea r9, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae r9, qword [rbp - 0x28]
add r9, qword [rbp - 0x18]
lea r8, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae r8, qword [rbp - 0x28]
mov rax, qword [r11]
movabs r10, 0xeff1beb07a545270
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x20], rcx
lea rdx, [rdi + 0x84]
mov rcx, r11
mov rax, qword [rax + 0x40]
call qword [0x1400d71e8]
mov ecx, eax
test eax, eax
je 0x140022cee
sub ecx, esi
je 0x140022cf4
cmp ecx, 2
jne 0x140022d6a
jmp 0x140022d67
mov byte [rdi + 0x81], bl
lea rax, [rbp - 0x28]
mov rdx, qword [rbp - 0x28]
mov r10, qword [rbp - 0x10]
cmp r10, 0x10
cmovae rax, rdx
mov r14, qword [rbp - 0x30]
sub r14, rax
je 0x140022d3b
lea rcx, [rbp - 0x28]
cmp r10, 0x10
cmovae rcx, rdx
mov r9, qword [rdi + 0x90]
mov r8, r14
mov rdx, rsi
call qword [sym.imp.msvcrt.dll_fwrite]
nop dword [rax + rax]
cmp r14, rax
jne 0x140022d64
cmp byte [rdi + 0x81], bl
je 0x140022d61
test r14, r14
jne 0x140022c8f
xor r8d, r8d
lea edx, [r14 + 8]
lea rcx, [rbp - 0x28]
call fcn.1400070b0
jmp 0x140022c8f
mov bl, sil
mov sil, bl
mov bl, sil
cmp qword [rbp - 0x10], 0x10
jb 0x140022d81
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov al, bl
jmp 0x140022d8a
mov eax, 1
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400c4a70
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400289d8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x180
mov rax, qword [0x140113970]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov r12, rdx
mov rdi, rcx
cmp qword [rcx + 0x18], 8
jb 0x140028a0e
mov rcx, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
mov r15d, eax
xor esi, esi
test eax, eax
je 0x140028acb
lea eax, [rsi + 2]
mul r15
lea r14, [rsi - 1]
cmovo rax, r14
mov rcx, rax
call fcn.1400a5d68
mov rbx, rax
mov qword [rsp + 0x20], rax
cmp qword [rdi + 0x18], 8
jb 0x140028a54
mov rdi, qword [rdi]
mov r8d, r15d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
je 0x140028b15
cmp word [rbx], si
je 0x140028a83
inc r14
cmp word [rbx + r14*2], si
jne 0x140028a76
mov rsi, r14
mov r8, rsi
mov rdx, rbx
mov rcx, r12
call fcn.14000643c
nop
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
nop
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400c4a70
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x180
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
lea rdx, str.Cannot_expand_environment_strings
lea rcx, [rsp + 0x30]
call fcn.14000621c
nop
mov r8d, ebx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x100]
call fcn.140005940
lea rdx, [0x1401095f0]
lea rcx, [rsp + 0x100]
call sub.msvcrt.dll__CxxThrowException
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
lea rdx, str.Cannot_expand_environment_strings
lea rcx, [rsp + 0x30]
call fcn.14000621c
nop
mov r8d, ebx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x90]
call fcn.140005940
lea rdx, [0x1401095f0]
lea rcx, [rsp + 0x90]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x14003d194
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140113970]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor ebx, ebx
cmp qword [0x14010d298], rbx
jne 0x14003d22b
lea r9, [rsp + 0x20]
xor r8d, r8d
mov edx, 0x8000
lea rcx, [0x1400eb640]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
nop dword [rax + rax]
test eax, eax
js 0x14003d21a
mov rdx, qword [rsp + 0x20]
cmp word [rdx], bx
je 0x14003d1f2
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], bx
jne 0x14003d1e6
mov rbx, rax
mov r8, rbx
lea rcx, [0x14010d288]
call fcn.14000643c
mov r8d, 0x18
lea rdx, str.MicrosoftUEVTemplates
lea rcx, [0x14010d288]
call fcn.14000652c
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
lea rax, [0x14010d288]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400c4a70
add rsp, 0x30
pop rbx
ret

Function at 0x14003d2bc
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140113970]
xor rax, rsp
mov qword [rsp + 0x48], rax
and dword [rsp + 0x30], 0
lea rdx, str.SOFTWAREMicrosoftHvsiOffice
and qword [rsp + 0x40], 0
mov eax, 4
mov dword [rsp + 0x38], eax
mov r9d, 0x20019
mov dword [rsp + 0x34], eax
xor r8d, r8d
lea rax, [rsp + 0x40]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x14003d37a
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.OfficeWDAGEnabledOnHost
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x14003d37a
cmp dword [rsp + 0x30], 1
sete bl
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14003d390
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov al, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400c4a70
add rsp, 0x50
pop rbx
ret
Function at 0x14004d0f8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140113970]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r11, r8
mov r15, rdx
mov r14, rcx
mov qword [rsp + 0x30], rcx
mov rdx, qword [r8 + 0x10]
add rdx, rdx
cmp qword [r8 + 0x18], 8
jb 0x14004d134
mov r9, qword [r8]
jmp 0x14004d137
mov r9, r11
movabs rcx, 0xcbf29ce484222325
xor r8d, r8d
test rdx, rdx
je 0x14004d167
movzx eax, byte [r8 + r9]
xor rcx, rax
movabs r10, 0x100000001b3
imul rcx, r10
inc r8
cmp r8, rdx
jb 0x14004d149
mov rax, rcx
shr rax, 0x20
xor rcx, rax
mov rdx, qword [r14 + 0x28]
mov rsi, rdx
and rsi, rcx
cmp qword [r14 + 0x30], rsi
ja 0x14004d18e
shr rdx, 1
or rax, 0xffffffffffffffff
sub rax, rdx
add rsi, rax
add rsi, rsi
mov rax, qword [r14 + 0x10]
mov rbx, qword [r14]
mov rcx, qword [rax + rsi*8]
cmp rbx, rcx
je 0x14004d1f3
mov rbx, qword [rax + rsi*8 + 8]
mov rbx, qword [rbx]
cmp rbx, rcx
je 0x14004d1f3
mov rbx, qword [rbx + 8]
lea rdx, [rbx + 0x10]
mov rcx, r11
call fcn.1400397f0
test al, al
jne 0x14004d1ce
mov rax, qword [r14 + 0x10]
cmp rbx, qword [rax + rsi*8]
jne 0x14004d1ae
jmp 0x14004d1f3
mov rdx, r11
lea rcx, [rbx + 0x10]
call fcn.1400397f0
test al, al
jne 0x14004d1e3
mov rbx, qword [rbx]
jmp 0x14004d1f3
mov qword [r15], rbx
mov byte [r15 + 8], 0
mov rax, r15
jmp 0x14004d2d7
mov rax, qword [r14]
mov rdi, qword [rax]
mov r9, r11
mov r8, qword [rdi + 8]
mov rdx, rdi
call fcn.14004dbc0
mov rdx, rax
mov rax, qword [r14 + 8]
movabs rcx, 0x492492492492491
sub rcx, rax
cmp rcx, 1
jb 0x14004d2f1
inc rax
mov qword [r14 + 8], rax
mov qword [rdi + 8], rdx
mov rax, qword [rdx + 8]
mov qword [rax], rdx
mov rdi, qword [r14]
mov rdi, qword [rdi]
mov qword [rsp + 0x20], rdi
mov rax, qword [rdi]
cmp rbx, rax
je 0x14004d278
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rdi
mov rdx, qword [rbx + 8]
mov rcx, qword [rax + 8]
mov qword [rbx + 8], rcx
mov rcx, qword [rdi + 8]
mov qword [rax + 8], rcx
mov qword [rdi + 8], rdx
mov rcx, qword [r14 + 0x10]
mov rax, qword [rcx + rsi*8]
cmp rax, qword [r14]
jne 0x14004d294
mov qword [rcx + rsi*8], rdi
mov rax, qword [r14 + 0x10]
mov qword [rax + rsi*8 + 8], rdi
jmp 0x14004d2c3
cmp rax, rbx
jne 0x14004d29f
mov qword [rcx + rsi*8], rdi
jmp 0x14004d2c3
mov rax, qword [rcx + rsi*8 + 8]
mov rdx, qword [rax]
mov qword [rcx + rsi*8 + 8], rdx
cmp rdx, rdi
je 0x14004d2c3
mov r8, qword [r14 + 0x10]
mov rax, qword [r8 + rsi*8 + 8]
mov rdx, qword [rax + 8]
mov qword [r8 + rsi*8 + 8], rdx
mov rcx, r14
call fcn.14004d304
nop
mov qword [r15], rdi
mov byte [r15 + 8], 1
mov rax, r15
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400c4a70
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
lea rcx, str.list_T__too_long
call fcn.1400a4e3c
int3
Function at 0x14004d3e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x140113970]
xor rax, rsp
mov qword [rsp + 0x20], rax
mov rbx, rdx
mov r10, rcx
lea rdx, [r8 + 0x10]
mov r11, qword [rdx + 0x10]
add r11, r11
cmp qword [rdx + 0x18], 8
jb 0x14004d414
mov rdx, qword [rdx]
xor r9d, r9d
movabs rcx, 0xcbf29ce484222325
test r11, r11
je 0x14004d444
movzx eax, byte [rdx + r9]
movabs rdi, 0x100000001b3
xor rcx, rax
inc r9
imul rcx, rdi
cmp r9, r11
jb 0x14004d426
mov rdx, qword [r10 + 0x28]
mov r9, rcx
shr r9, 0x20
xor r9, rcx
and r9, rdx
cmp qword [r10 + 0x30], r9
ja 0x14004d468
shr rdx, 1
or rax, 0xffffffffffffffff
sub rax, rdx
add r9, rax
mov rcx, qword [r10 + 0x10]
add r9, r9
cmp qword [rcx + r9*8 + 8], r8
jne 0x14004d497
cmp qword [rcx + r9*8], r8
jne 0x14004d48c
mov rax, qword [r10]
mov qword [rcx + r9*8], rax
mov rcx, qword [r10 + 0x10]
mov rax, qword [r10]
jmp 0x14004d490
mov rax, qword [r8 + 8]
mov qword [rcx + r9*8 + 8], rax
jmp 0x14004d4a4
cmp qword [rcx + r9*8], r8
jne 0x14004d4a4
mov rdx, qword [r8]
mov qword [rcx + r9*8], rdx
mov rdx, rbx
mov rcx, r10
call fcn.14004d4d4
mov rax, rbx
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.1400c4a70
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret