joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004e4c0
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0xb0
mov rax, qword [0x1402bf200]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rsi, rcx
mov rbp, rdx
mov eax, dword [rcx + 0xe0]
cmp dword [rdx], eax
jl 0x14004e65f
call fcn.14004ee90
lea rax, [0x1402401dc]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 2
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x88]
mov rcx, rbp
call fcn.1400538d0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
lea rcx, [rsi + 0x80]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsi + 0xb0]
test rax, rax
je 0x14004e564
lock inc dword [rax + 8]
mov r14, qword [rsi + 0xa8]
mov qword [rsp + 0x78], r14
mov rax, qword [rsi + 0xb0]
mov qword [rsp + 0x80], rax
lea rcx, [rsi + 0x80]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
xor eax, eax
mov dword [rsp + 0x70], eax
lea rdx, [rsp + 0x88]
cmp qword [rsp + 0xa0], 0xf
cmova rdx, qword [rsp + 0x88]
lea rdi, [rax - 1]
test r14, r14
je 0x14004e5bb
mov rcx, qword [r14]
jmp 0x14004e5be
mov rcx, rdi
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
mov r8d, dword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14004e687
mov eax, dword [rsi + 0xe4]
cmp dword [rbp], eax
jl 0x14004e602
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x14004e5f8
mov rcx, qword [rax]
jmp 0x14004e5fb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
nop
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14004e652
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14004e652
mov rbx, qword [rsp + 0x80]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x1400617cf.0]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14004e652
mov rcx, qword [rsp + 0x80]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400617cf.0]
nop
lea rcx, [rsp + 0x88]
call fcn.140029f90
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14019acb0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.14004bd90
lea rdx, [0x1402b9f88]
lea rcx, [rsp + 0x50]
call fcn.14019cd80
int3
Function at 0x14004ee90
Capabilities:
Get file size

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1402bf200]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
lea rbx, [rcx + 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r14, [rsi + 0xa8]
mov rax, qword [r14 + 8]
test rax, rax
je 0x14004eee9
lock inc dword [rax + 8]
mov r15, qword [r14]
mov qword [rsp + 0x58], r15
mov rax, qword [r14 + 8]
mov qword [rsp + 0x60], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rdi, 0xffffffffffffffff
test r15, r15
je 0x14004ef15
mov rcx, qword [r15]
jmp 0x14004ef18
mov rcx, rdi
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14004f073
mov rax, qword [rsi + 0xd8]
cmp qword [rsp + 0x68], rax
jl 0x14004efdb
mov qword [rsp + 0x20], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rcx, qword [r14]
test rcx, rcx
je 0x14004ef59
mov rcx, qword [rcx]
jmp 0x14004ef5c
mov rcx, rdi
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14004f047
mov rax, qword [rsi + 0xd8]
cmp qword [rsp + 0x70], rax
jl 0x14004efcf
mov rax, qword [r14]
test rax, rax
je 0x14004ef8a
mov rcx, qword [rax]
jmp 0x14004ef8d
mov rcx, rdi
lea rbx, [rsi + 0xb8]
mov rdx, rbx
call fcn.14004de00
cmp qword [rbx + 0x18], 7
jbe 0x14004efa6
mov rbx, qword [rbx]
xor r9d, r9d
mov r8, rbx
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.14004e6b0
mov rdx, rax
mov rcx, r14
call fcn.140050e50
lea rcx, [rsp + 0x28]
call fcn.1400060d0
nop
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14004f021
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14004f021
mov rbx, qword [rsp + 0x60]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x1400617cf.0]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14004f021
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400617cf.0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14019acb0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov edx, eax
lea r8, str.Unable_to_get_file_size_
lea rcx, [rsp + 0x38]
call fcn.14003fc90
lea rdx, [0x1402b9f88]
lea rcx, [rsp + 0x38]
call fcn.14019cd80
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Unable_to_get_file_size_
lea rcx, [rsp + 0x38]
call fcn.14003fc90
lea rdx, [0x1402b9f88]
lea rcx, [rsp + 0x38]
call fcn.14019cd80
int3
Function at 0x140050920
Capabilities:
Create thread

Disassembly:
movsxd rax, dword [rcx - 4]
sub rcx, rax
jmp 0x140050920
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rax, qword [0x1402bf200]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, qword [rsp + 0x60]
xor ebp, ebp
mov ecx, 0xb0
call fcn.14019af70
mov rbx, rax
mov qword [rsp + 0x40], rax
mov word [rax], bp
lea rcx, [rax + 8]
mov dword [rcx], ebp
mov qword [rcx + 8], rbp
mov qword [rcx + 0x10], rbp
xorps xmm0, xmm0
movups xmmword [rcx + 0x18], xmm0
movups xmmword [rcx + 0x28], xmm0
movups xmmword [rcx + 0x38], xmm0
mov qword [rcx + 0x48], rbp
lea edx, [rbp + 2]
call fcn.14019a5f4
lea rcx, [rbx + 0x58]
call fcn.14019a47c
xorps xmm0, xmm0
movups xmmword [rbx + 0xa0], xmm0
mov rdi, qword [rsi - 0x20]
mov qword [rsi - 0x20], rbx
test rdi, rdi
je 0x1400509d8
cmp dword [rdi + 0xa8], ebp
jne 0x140050a76
lea rcx, [rdi + 0x58]
call fcn.14003a6a0
lea rcx, [rdi + 8]
call fcn.14003a6a0
mov edx, 0xb0
mov rcx, rdi
call fcn.14019af20
lea rbx, [rsi - 0x108]
mov ecx, 8
call fcn.14019af70
mov qword [rax], rbx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebp
mov r9, rax
lea r8, [0x140051bb0]
xor edx, edx
xor ecx, ecx
call fcn.1401af428
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140050a67
mov rax, qword [rsi - 0x20]
cmp dword [rax + 0xa8], 0
jne 0x140050a7c
xorps xmm0, xmm0
movaps xmm1, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movups xmmword [rax + 0xa0], xmm1
cmp dword [rsp + 0x38], 0
jne 0x140050a7c
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14019acb0
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov dword [rsp + 0x38], ebp
mov ecx, 6
call fcn.1401971d8
nop
call fcn.1401a9d48
int3
call fcn.1401a9d48
int3
Function at 0x140052a10
Capabilities:
Encode data using base64

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov dword [rax - 0x28], ebx
mov rsi, r8
mov rdi, rdx
sub rsi, rdx
xorps xmm0, xmm0
mov r14, rcx
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbx
mov qword [rcx + 0x18], 0xf
mov byte [rcx], bl
mov dword [rax - 0x28], 1
lea rcx, [rsi + 2]
movabs rax, 0x5555555555555556
imul rcx
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov eax, 4
mul rdx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
xor r8d, r8d
mov rdx, rax
mov rcx, r14
call fcn.140029bb0
mov r9, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x140052aa0
mov r9, qword [r14]
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
cmp rsi, 3
jl 0x140052b3e
movabs rax, 0xaaaaaaaaaaaaaaab
mul rsi
shr rdx, 1
imul rax, rdx, 0xfffffffffffffffd
add rsi, rax
nop dword [rax + rax]
movzx r8d, byte [rdi]
movzx eax, byte [rdi + 1]
movzx ecx, byte [rdi + 2]
add rdi, 3
shl r8, 8
or r8, rax
shl r8, 8
or r8, rcx
mov rax, r8
shr rax, 0x12
movzx eax, byte [rax + r10]
mov byte [r9 + rbx], al
mov rax, r8
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + r10]
mov byte [r9 + rbx + 1], al
mov rax, r8
shr rax, 6
and eax, 0x3f
movzx eax, byte [rax + r10]
mov byte [r9 + rbx + 2], al
and r8d, 0x3f
movzx eax, byte [r8 + r10]
mov byte [r9 + rbx + 3], al
add rbx, 4
sub rdx, 1
jne 0x140052ad0
cmp rsi, 2
jne 0x140052ba2
movzx edx, byte [rdi]
shl rdx, 8
movzx eax, byte [rdi + 1]
or rdx, rax
shl rdx, 8
mov rax, rdx
shr rax, 0x12
movzx eax, byte [rax + r10]
mov byte [r9 + rbx], al
mov rcx, rdx
shr rcx, 0xc
and ecx, 0x3f
movzx ecx, byte [rcx + r10]
mov byte [r9 + rbx + 1], cl
shr rdx, 6
and edx, 0x3f
movzx ecx, byte [rdx + r10]
mov byte [r9 + rbx + 2], cl
mov byte [r9 + rbx + 3], 0x3d
mov rax, r14
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
cmp rsi, 1
jne 0x140052bd8
movzx ecx, byte [rdi]
shl rcx, 0x10
mov rax, rcx
shr rax, 0x12
movzx eax, byte [rax + r10]
mov byte [r9 + rbx], al
shr rcx, 0xc
and ecx, 0x3f
movzx eax, byte [rcx + r10]
mov byte [r9 + rbx + 1], al
mov word [r9 + rbx + 2], 0x3d3d
mov rax, r14
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140057b20
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push r14
sub rsp, 0x68
mov rbx, qword [rsp + 0x80]
xor r14d, r14d
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140057b49
mov rcx, qword [rbx]
xor edx, edx
mov qword [rsp + 0x60], rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140057cb7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140057ba5
cmp qword [rbx + 0x18], 7
jbe 0x140057b75
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140057b8b
test al, 0x10
jne 0x140057cb7
mov ecx, 0xb7
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov rdi, qword [rsp + 0x60]
add rsp, 0x68
pop r14
pop rbx
ret
cmp eax, 3
jne 0x140057b96
mov qword [rsp + 0x90], rbp
mov rbp, r14
mov qword [rsp + 0x98], rsi
nop dword [rax]
mov rdi, qword [rbx + 0x18]
mov rcx, rbx
mov rsi, qword [rbx + 0x10]
cmp rdi, 7
jbe 0x140057bd4
mov rcx, qword [rbx]
lea r8, [rbp + 1]
mov qword [rsp + 0x20], 2
lea r9, [0x140240d58]
mov rdx, rsi
call fcn.140044f00
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140057c54
lea r8, [rax + 1]
mov qword [rsp + 0x48], r14
cmp rsi, r8
mov qword [rsp + 0x50], r14
xorps xmm0, xmm0
mov rdx, rbx
cmovb r8, rsi
movups xmmword [rsp + 0x38], xmm0
cmp rdi, 7
jbe 0x140057c22
mov rdx, qword [rbx]
lea rcx, [rsp + 0x38]
call fcn.14002a920
cmp qword [rsp + 0x50], 7
lea rcx, [rsp + 0x38]
cmova rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [rsp + 0x38]
call fcn.14002adf0
jmp 0x140057bc0
mov rsi, qword [rsp + 0x98]
mov rcx, rbx
mov rbp, qword [rsp + 0x90]
cmp rdi, 7
jbe 0x140057c70
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140057cb7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rbx + 0x18], 7
mov edi, eax
jbe 0x140057c8e
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140057ca0
test al, 0x10
jne 0x140057cb7
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov rdi, qword [rsp + 0x60]
add rsp, 0x68
pop r14
pop rbx
ret
mov rdi, qword [rsp + 0x60]
mov al, 1
add rsp, 0x68
pop r14
pop rbx
ret
Function at 0x140058740
Capabilities:
Persist via run registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
xor ebx, ebx
lea rax, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0x40
mov qword [rsp + 0x40], 0xffffffff80000002
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x48]
call fcn.14003db70
mov qword [rbp + 0x178], rbx
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x180], rax
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x188]
call fcn.14003dde0
mov eax, dword [rbp + 0x178]
mov dword [rbp + 0x3b8], eax
mov eax, dword [rbp + 0x17c]
mov dword [rbp + 0x3bc], eax
mov byte [rbp + 0x3c0], 1
mov rax, qword [rbp + 0x3e8]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x20], xmm0
lea r8, [rsp + 0x20]
lea rdx, [rbp + 0x180]
mov rbx, qword [rbp + 0x3e0]
mov rcx, rbx
call fcn.14005a520
nop
lea rcx, [rbp + 0x180]
call fcn.14003da50
nop
mov r8, qword [rbp + 0x170]
cmp r8, 7
jbe 0x140058834
mov rdx, qword [rbp + 0x158]
lea rcx, [rbp + 0x150]
call fcn.14003df00
mov rax, rbx
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4d0
pop rbp
ret
Function at 0x140058e20
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
mov dword [r11 + 0x18], r8d
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
sub rsp, 0x60
mov rax, qword [0x1402bf200]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, qword [rsp + 0x78]
mov eax, r8d
mov rcx, qword [rcx]
mov rdx, rbx
mov r8d, 0x104
mov dword [rsp + 0x50], eax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x140058e82
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140058e9b
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14019acb0
add rsp, 0x60
pop rbx
ret
cmp eax, 0x104
jbe 0x140058e90
mov eax, 0xea
jmp 0x140058e9b
cmp word [rbx], 0x25
jne 0x140058e6f
mov eax, 3
lea rcx, str.Unable_to_retrieve_a_path_of_the_known_folder____
mov qword [rsp + 0x28], 0x33
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x50]
lea rcx, [rsp + 0x30]
mov edx, eax
lea r8, [rsp + 0x20]
call fcn.140058d70
lea rdx, [0x1402b9f88]
lea rcx, [rsp + 0x30]
call fcn.14019cd80
int3
Function at 0x14005a0d0
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rdi, rcx
mov qword [rax - 0x40], rcx
mov rbx, qword [rax + 0x10]
xor ebp, ebp
mov dword [rax - 0x68], ebp
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14005a103
mov rcx, qword [rbx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 7
mov word [rdi], bp
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea edx, [rax - 1]
mov rcx, rdi
call fcn.14002a310
mov r8, qword [rdi + 0x10]
inc r8
mov eax, r8d
cmp rax, r8
jne 0x14005a1b8
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14005a157
mov rdx, qword [rdi]
cmp qword [rbx + 0x18], 7
jbe 0x14005a161
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14005a1e3
cmp eax, esi
jne 0x14005a185
mov rax, rdi
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.String_environment_expansion_failed_due_to_unexpected_buffer_size
lea rcx, [rsp + 0x50]
call fcn.140029190
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.14005a220
lea rdx, [0x1402bada8]
lea rcx, [rsp + 0x28]
call fcn.14019cd80
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x28]
call fcn.1400299c0
lea rdx, [0x1402ba2a0]
lea rcx, [rsp + 0x28]
call fcn.14019cd80
int3
lea rdx, str.String_environment_expansion_failed
lea rcx, [rsp + 0x28]
call fcn.140029190
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.14005a220
lea rdx, [0x1402bada8]
lea rcx, [rsp + 0x50]
call fcn.14019cd80
int3
Function at 0x14005a270
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x1402bf200]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rcx, qword [rbp + 0x67]
mov rdi, qword [rbp + 0x6f]
mov r8d, 1
lea rdx, [rbp - 0x29]
call fcn.14005e010
nop
xor ebx, ebx
mov dword [rbp + 0x37], ebx
mov dword [rbp + 0x3b], 4
lea rcx, str.Cannot_query_registry_value
mov qword [rbp + 0x17], rcx
mov qword [rbp + 0x1f], rbx
lea rcx, [rbp + 0x3b]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x3f]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x37]
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movups xmm0, xmmword [rbp + 0x17]
movaps xmmword [rbp - 0x19], xmm0
movups xmm1, xmmword [rdi]
movaps xmmword [rbp - 9], xmm1
lea rdx, [rbp - 0x19]
mov ecx, eax
call fcn.140059ec0
nop
cmp byte [rbp - 0x21], bl
jne 0x14005a31d
mov qword [rbp - 0x29], rbx
jmp 0x14005a321
mov rbx, qword [rbp - 0x29]
test rbx, rbx
je 0x14005a33b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x14005a33b
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [rbp + 0x37]
cmp ecx, 4
jne 0x14005a367
mov eax, dword [rbp + 0x3f]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14019acb0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
movups xmm0, xmmword [rdi]
movaps xmmword [rbp - 0x29], xmm0
call fcn.14005db40
mov r8d, eax
lea r9, [rbp - 0x29]
mov edx, 4
lea rcx, [rbp - 0x19]
call fcn.14005db50
lea rdx, [0x1402babe8]
lea rcx, [rbp - 0x19]
call fcn.14019cd80
int3
Function at 0x14005a3f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x1402bf200]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rcx, qword [rbp + 0x67]
mov rdi, qword [rbp + 0x6f]
mov r8d, 1
lea rdx, [rbp - 0x29]
call fcn.14005e010
nop
xor ebx, ebx
mov dword [rbp + 0x37], ebx
mov dword [rbp + 0x3b], 8
lea rcx, str.Cannot_query_registry_value
mov qword [rbp + 0x17], rcx
mov qword [rbp + 0x1f], rbx
lea rcx, [rbp + 0x3b]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x3f]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x37]
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movups xmm0, xmmword [rbp + 0x17]
movaps xmmword [rbp - 0x19], xmm0
movups xmm1, xmmword [rdi]
movaps xmmword [rbp - 9], xmm1
lea rdx, [rbp - 0x19]
mov ecx, eax
call fcn.140059ec0
nop
cmp byte [rbp - 0x21], bl
jne 0x14005a49d
mov qword [rbp - 0x29], rbx
jmp 0x14005a4a1
mov rbx, qword [rbp - 0x29]
test rbx, rbx
je 0x14005a4bb
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x14005a4bb
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [rbp + 0x37]
cmp ecx, 0xb
jne 0x14005a4e8
mov rax, qword [rbp + 0x3f]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14019acb0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
movups xmm0, xmmword [rdi]
movaps xmmword [rbp - 0x29], xmm0
call fcn.14005db40
mov r8d, eax
lea r9, [rbp - 0x29]
mov edx, 0xb
lea rcx, [rbp - 0x19]
call fcn.14005db50
lea rdx, [0x1402babe8]
lea rcx, [rbp - 0x19]
call fcn.14019cd80
int3
Function at 0x14005a6c0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x1402bf200]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rdi, qword [rbp + 0x1f0]
mov qword [rbp - 0x80], rdi
mov r12, qword [rbp + 0x1f8]
xor r13d, r13d
mov dword [rsp + 0x40], r13d
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
lea r8d, [r13 + 8]
lea rdx, [rbp - 0x70]
mov rcx, r12
call fcn.14005e010
nop
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi], r13
mov qword [rdi + 8], r13
mov qword [rdi + 0x10], r13
mov dword [rsp + 0x40], 1
mov r14d, r13d
mov dword [rbp - 0x78], 0x100
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x78]
lea r8, [rbp - 0x60]
xor edx, edx
mov rsi, qword [rbp - 0x70]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, eax
cmp eax, 0x103
je 0x14005a877
lea rax, [rbp - 0x60]
mov qword [rsp + 0x48], rax
lea rdx, str.Cannot_enumerate_subkeys
nop word [rax + rax]
mov rax, r13
cmp byte [r12 + 0x240], 1
cmove rax, r12
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
lea rdx, [rsp + 0x60]
call fcn.140059ec0
mov r15d, dword [rbp - 0x78]
mov qword [rsp + 0x50], r15
lea rbx, [rbp - 0x60]
lea rbx, [rbx + r15*2]
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp - 0x60]
call fcn.140198da0
cmp rax, rbx
jne 0x14005a831
mov rax, qword [rdi + 8]
cmp rax, qword [rdi + 0x10]
je 0x14005a821
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], r13
mov r8d, r15d
lea rdx, [rbp - 0x60]
mov rcx, rax
call fcn.14002a920
add qword [rdi + 8], 0x20
jmp 0x14005a831
lea r9, [rsp + 0x48]
mov rdx, rax
mov rcx, rdi
call fcn.14005cb00
inc r14d
mov dword [rbp - 0x78], 0x100
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x78]
lea r8, [rbp - 0x60]
mov edx, r14d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, eax
cmp eax, 0x103
lea rdx, str.Cannot_enumerate_subkeys
jne 0x14005a7a0
cmp byte [rbp - 0x68], 0
cmove rsi, r13
test rsi, rsi
je 0x14005a899
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x14005a899
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14019acb0
mov rbx, qword [rsp + 0x300]
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret