joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002e7b4
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140023644
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140023644
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002e904
cmp rax, 0xffffffffffffffff
je 0x14002e904
xor edi, edi
test rbp, rbp
jle 0x14002e8af
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001e30c
mov rbx, rax
test rax, rax
jne 0x14002e83c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002e8a5
mov edx, 0x8000
mov ecx, r14d
call fcn.14001abc8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001ee64
cmp eax, 0xffffffff
je 0x14002e885
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002e84c
mov edx, r15d
mov ecx, r14d
call fcn.14001abc8
jmp 0x14002e8a5
cmp byte [rsi + 0x38], dil
je 0x14002e89c
cmp dword [rsi + 0x34], 5
jne 0x14002e89c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002e8a5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001f16c
jmp 0x14002e918
jns 0x14002e918
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140023644
cmp rax, 0xffffffffffffffff
jne 0x14002e8d0
cmp byte [rsi + 0x30], dil
je 0x14002e918
mov edi, dword [rsi + 0x2c]
jmp 0x14002e918
mov ecx, r14d
call fcn.14002760c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002e918
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14002e918
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002e911
mov eax, dword [rsi + 0x2c]
jmp 0x14002e916
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140023644
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002f530
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002f558
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002f558
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140331058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1403311df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140331089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14033106f
add dl, dl
jne 0x140331096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1403310f6
xor eax, eax
add dl, dl
jne 0x1403310a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1403311ad
add dl, dl
jne 0x1403310b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1403310c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1403310d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1403310dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1403310ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14033107e
mov eax, 1
add dl, dl
jne 0x140331106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140331113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1403310fb
sub eax, ebx
mov ebx, 1
jne 0x14033114c
mov ecx, 1
add dl, dl
jne 0x14033112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14033113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140331123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14033107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140331168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140331175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14033115d
cmp eax, 0x7d00
jae 0x14033119b
cmp eax, 0x500
jb 0x140331196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14033107e
cmp eax, 0x7f
ja 0x14033119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14033107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1403311d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14033107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400010a4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140113980]
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 [0x140113980]
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 [0x140113980]
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 [0x140113980]
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 [0x140113980]
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 [0x140113980]
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 [0x140113980]
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, [0x1400eb650]
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 [0x140113980]
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 0x1400431e8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rcx, qword [rdx + 0x10]
add rcx, rcx
cmp qword [rdx + 0x18], 8
jb 0x1400431f9
mov rdx, qword [rdx]
xor r9d, r9d
movabs r8, 0xcbf29ce484222325
test rcx, rcx
je 0x140043229
movzx eax, byte [rdx + r9]
movabs r10, 0x100000001b3
xor r8, rax
inc r9
imul r8, r10
cmp r9, rcx
jb 0x14004320b
mov rcx, r8
mov r9d, 0x69c16bd
shr rcx, 0x20
mov eax, r9d
xor ecx, r8d
btr ecx, 0x1f
mul ecx
mov r8d, ecx
mov eax, r9d
sub r8d, edx
shr r8d, 1
add r8d, edx
mul ecx
mov eax, ecx
shr r8d, 0x10
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0x10
imul eax, eax, 0x1f31d
sub ecx, eax
imul eax, r8d, 0xb14
imul ecx, ecx, 0x41a7
sub ecx, eax
lea eax, [rcx + 0x7fffffff]
cmovns eax, ecx
cdqe
ret
Function at 0x14004cfc8
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rsi, rdx
mov r15, rcx
xor ebp, ebp
mov r12d, 0x811c9dc5
mov r14, qword [rdx + 0x10]
movabs rax, 0xcccccccccccccccd
mul r14
mov rdi, rdx
shr rdi, 3
inc rdi
test r14, r14
je 0x14004d0ba
mov cl, 1
call fcn.1400a53f8
mov qword [rsp + 0x50], rax
cmp qword [rsi + 0x18], 8
jb 0x14004d028
mov rax, qword [rsi]
jmp 0x14004d02b
mov rax, rsi
movzx ebx, word [rax + rbp*2]
lea rcx, [rsp + 0x50]
call fcn.1400069ec
mov r8, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x40]
movabs r10, 0xe23cae531052c370
movzx edx, bx
mov rcx, r8
call qword [0x1400d71e8]
movzx ecx, ax
imul r12, r12, 0x1000193
xor r12, rcx
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14004d0ae
mov rax, qword [rcx]
movabs r10, 0xa284b6013659e270
mov rax, qword [rax + 0x10]
call qword [0x1400d71e8]
mov r8, rax
test rax, rax
je 0x14004d0ae
mov rcx, qword [rax]
mov rax, qword [rcx]
movabs r10, 0x8e798fa250d0b370
mov edx, 1
mov rcx, r8
call qword [0x1400d71e8]
nop
add rbp, rdi
cmp rbp, r14
jb 0x14004d010
mov rdx, qword [r15 + 0x28]
mov rax, rdx
and rax, r12
cmp qword [r15 + 0x30], rax
ja 0x14004d0d7
shr rdx, 1
or rcx, 0xffffffffffffffff
sub rcx, rdx
add rax, rcx
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret