joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003f79c
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
mov rax, rsp
push r12
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r14, r9
mov r15d, r8d
mov r12, rdx
mov rsi, rcx
mov rax, qword [r9]
mov qword [r9 + 8], rax
mov rbx, qword [rsp + 0x90]
mov rax, qword [rbx]
mov qword [rbx + 8], rax
cmp qword [rcx], 0
jne 0x14003f8c6
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 0x18
lea r8, [0x1400fe710]
xor edx, edx
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptAcquireContextW]
test eax, eax
jne 0x14003f8c6
mov esi, 0x80070000
mov ebp, 0x80004005
cmp dword [0x140142444], 2
jb 0x14003f850
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx r8d, ax
or r8d, esi
test eax, eax
cmovle r8d, eax
test r8d, r8d
cmovns r8d, ebp
lea rdx, str.Failed_to_aquire_a_crypto_context:_0x_x
mov ecx, 2
call fcn.14003929c
lea rcx, section..data
mov rax, qword [section..data]
cmp rax, rcx
je 0x14003f8aa
test byte [rax + 0x1c], 8
je 0x14003f8aa
cmp byte [rax + 0x19], 2
jb 0x14003f8aa
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx r9d, ax
or r9d, esi
test eax, eax
cmovle r9d, eax
mov eax, 0x80004005
test r9d, r9d
cmovns r9d, eax
mov edx, 0xa
lea r8, [0x1400ff168]
mov rcx, qword [section..data]
mov rcx, qword [rcx + 0x10]
call fcn.140007608
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, esi
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovns ecx, ebp
mov eax, ecx
jmp 0x14003f97d
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
and qword [rsp + 0x48], 0
mov edx, 0x10
lea rcx, [rsp + 0x38]
call fcn.140036f24
nop
mov rbp, qword [rsp + 0x40]
mov rdx, rbp
mov rdi, qword [rsp + 0x38]
sub rdx, rdi
mov r8, rdi
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptGenRandom]
test eax, eax
jne 0x14003f925
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ebp, 0x80004005
test ebx, ebx
cmovns ebx, ebp
jmp 0x14003f96d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x38]
mov r8d, r15d
mov rdx, r12
mov rcx, rsi
call fcn.14003f9a4
test eax, eax
js 0x14003f96b
lea rax, [rsp + 0x38]
cmp rbx, rax
je 0x14003f96b
mov rcx, qword [rbx]
test rcx, rcx
je 0x14003f959
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbx], rdi
mov qword [rbx + 8], rbp
mov rax, qword [rsp + 0x48]
mov qword [rbx + 0x10], rax
xor edi, edi
xor ebx, ebx
test rdi, rdi
je 0x14003f97b
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x1400401a8
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x20
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
cmp dword [0x140142444], 2
jb 0x1400401e9
mov r8d, ebx
lea rdx, str.Failed_to_delete_crypto_context:_0x_x
mov ecx, 2
call fcn.14003929c
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x140040220
test byte [rcx + 0x1c], 8
je 0x140040220
cmp byte [rcx + 0x19], 2
jb 0x140040220
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400ff168]
mov edx, 0x15
mov r9d, ebx
call fcn.140007608
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x140040564
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x20
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
cmp dword [0x140142444], 2
jb 0x1400405a5
mov r8d, ebx
lea rdx, str.Failed_to_delete_crypto_context:_0x_x
mov ecx, 2
call fcn.14003929c
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x1400405dc
test byte [rcx + 0x1c], 8
je 0x1400405dc
cmp byte [rcx + 0x19], 2
jb 0x1400405dc
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400ff168]
mov edx, 0x1b
mov r9d, ebx
call fcn.140007608
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x140042bd8
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rax - 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rsi, r8
mov rbx, rdx
mov r14, rcx
and dword [rax - 0x28], 0
and qword [rdx], 0
mov dword [rax - 0x28], 1
and dword [r8], 0
and dword [rax + 8], 0
mov rcx, qword [rcx]
lea rax, [rax + 8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rcx + 0x10]
mov rcx, qword [rcx + 8]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x140042c91
mov ecx, dword [rsp + 0x60]
call fcn.1400c1d60
mov rdi, rax
cmp rax, qword [rbx]
je 0x140042c53
mov rcx, qword [rbx]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov qword [rbx], rdi
mov rcx, qword [r14]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9, qword [rbx]
xor r8d, r8d
mov edx, dword [rcx + 0x10]
mov rcx, qword [rcx + 8]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x140042c7f
mov eax, dword [rsp + 0x60]
mov dword [rsi], eax
jmp 0x140042c91
mov rcx, qword [rbx]
test rcx, rcx
je 0x140042c91
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
and qword [rbx], 0
mov rax, rbx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140043b68
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1401411c8]
xor rax, rsp
mov qword [rsp + 0x240], rax
cmp qword [rdx + 0x18], 8
mov rax, rdx
mov rdi, rcx
jb 0x140043b97
mov rax, qword [rdx]
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, [0x1400ff2e8]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetTempFileNameW]
xor ebx, ebx
test eax, eax
jne 0x140043c2c
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
cmp dword [0x140142444], 2
jb 0x140043bee
mov r8d, edi
lea rdx, str.Failed_to_get_temp_folder_name:_0x_x
lea ecx, [rbx + 2]
call fcn.14003929c
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x140043c25
test byte [rcx + 0x1c], 8
je 0x140043c25
cmp byte [rcx + 0x19], 2
jb 0x140043c25
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400ff318]
mov edx, 0x11
mov r9d, edi
call fcn.140007608
mov eax, edi
jmp 0x140043d01
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x140043cd2
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
cmp dword [0x140142444], 2
jb 0x140043c8c
mov r9d, edi
lea r8, [rsp + 0x30]
lea rdx, str.Failed_to_create_temp_folder__S:_0x_x
mov ecx, 2
call fcn.14003929c
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x140043c25
test byte [rcx + 0x1c], 8
je 0x140043c25
cmp byte [rcx + 0x19], 2
jb 0x140043c25
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x30]
mov edx, 0x12
mov dword [rsp + 0x20], edi
lea r8, [0x1400ff318]
call fcn.140029648
jmp 0x140043c25
cmp word [rsp + 0x30], bx
je 0x140043cee
lea rcx, [rsp + 0x30]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x140043ce2
mov rbx, rax
lea rcx, [rdi + 0x68]
mov r8, rbx
lea rdx, [rsp + 0x30]
call fcn.140007004
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400c20a0
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
Function at 0x140045928
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edx, dword [rcx + 0x38]
mov rbx, rcx
mov dword [rcx + 0x60], 3
mov edi, 1
mov ecx, edi
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_GenerateConsoleCtrlEvent]
mov rcx, qword [rbx + 0x80]
xor esi, esi
test rcx, rcx
je 0x140045965
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_SetEvent]
mov edx, dword [rbx + 0x70]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_WaitForSingleObject]
test eax, eax
je 0x140045a50
lea rcx, [rbx + 0x90]
mov r8d, 0x10
lea rdx, str.force_terminated
call fcn.140007004
mov rcx, qword [rbx + 0x30]
mov edx, edi
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_TerminateProcess]
test eax, eax
jne 0x140045aad
cmp dword [0x140142444], 2
jb 0x1400459e4
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx r8d, ax
lea rdx, str.Failed_to_terminate_process:_0x_x
or r8d, 0x80070000
mov ecx, 2
test eax, eax
cmovle r8d, eax
mov eax, 0x80004005
test r8d, r8d
cmovns r8d, eax
call fcn.14003929c
mov rax, qword [section..data]
lea rcx, section..data
cmp rax, rcx
je 0x140045aad
test byte [rax + 0x1c], 8
je 0x140045aad
cmp byte [rax + 0x19], 2
jb 0x140045aad
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
mov rcx, qword [section..data]
lea r8, [0x1400ff638]
movzx r9d, ax
mov edx, 0x1e
or r9d, 0x80070000
test eax, eax
mov rcx, qword [rcx + 0x10]
cmovle r9d, eax
mov eax, 0x80004005
test r9d, r9d
cmovns r9d, eax
call fcn.140007608
jmp 0x140045aad
mov rcx, qword [rbx + 0x30]
lea rdi, [rbx + 0x88]
mov rdx, rdi
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetExitCodeProcess]
test eax, eax
jne 0x140045a75
lea r8d, [rax + 0x14]
lea rdx, str.cannot_get_exit_code
jmp 0x140045aa1
cmp dword [rdi], esi
lea rax, str.success
lea rdx, str.exception_encountered
cmove rdx, rax
cmp word [rdx], si
jne 0x140045a93
mov r8, rsi
jmp 0x140045aa1
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], si
jne 0x140045a97
lea rcx, [rbx + 0x90]
call fcn.140007004
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140045ac4
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x140045af6
mov qword [rbx + 0x30], rsi
mov rcx, qword [rbx + 0x80]
mov dword [rbx + 0x38], esi
mov dword [rbx + 0x60], esi
test rcx, rcx
je 0x140045adc
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_ResetEvent]
mov rcx, rbx
call fcn.140045c8c
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.14002953c
int3
Function at 0x140045c8c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401411c8]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14, rcx
mov rcx, qword [rcx + 0x58]
xor r13d, r13d
test rcx, rcx
je 0x140045e10
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
mov dword [rbp - 0x50], r13d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], r13
mov edx, 0x10000
lea rcx, [rbp - 0x48]
call fcn.140036e80
mov r12, qword [rbp - 0x38]
mov r15, qword [rbp - 0x48]
sub r12, r15
jmp 0x140045dca
mov eax, dword [rbp - 0x50]
test eax, eax
je 0x140045deb
lea r8, [r15 + rax]
lea rbx, [r14 + 0xb0]
cmp qword [rbx + 0x18], 8
jb 0x140045d35
mov rax, qword [rbx]
jmp 0x140045d38
mov rax, rbx
mov rcx, qword [rbx + 0x10]
lea rsi, [rax + rcx*2]
jb 0x140045d47
mov rax, qword [rbx]
jmp 0x140045d4a
mov rax, rbx
lea rdi, [rax + rcx*2]
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r13
mov word [rbp - 0x28], r13w
mov rdx, r15
lea rcx, [rbp - 0x28]
call fcn.140046314
nop
cmp qword [rbx + 0x18], 8
jb 0x140045d78
mov rax, qword [rbx]
jmp 0x140045d7b
mov rax, rbx
test rsi, rsi
jne 0x140045d85
mov rsi, r13
jmp 0x140045d8b
sub rsi, rdi
sar rsi, 1
test rdi, rdi
jne 0x140045d95
mov rdi, r13
jmp 0x140045d9b
sub rdi, rax
sar rdi, 1
or qword [rsp + 0x28], 0xffffffffffffffff
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x28]
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call fcn.1400135d8
nop
cmp qword [rbp - 0x10], 8
jb 0x140045dca
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x50]
mov r8d, r12d
mov rdx, r15
mov rcx, qword [r14 + 0x58]
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x140045d13
mov rcx, qword [r14 + 0x58]
test rcx, rcx
je 0x140045e02
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x140045e3d
mov qword [r14 + 0x58], r13
test r15, r15
je 0x140045e10
mov rcx, r15
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400c20a0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
nop
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.14002953c
int3
Function at 0x14004dbb4
Capabilities:
Get common file path
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
mov rbx, rcx
xor r8d, r8d
lea rcx, [0x140102570]
xor edx, edx
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
test eax, eax
js 0x14004dc0b
mov r9, qword [rsp + 0x40]
lea r8, str._sETWSleepStudy
mov edx, 0x104
mov rcx, rbx
call fcn.140001e70
mov rcx, qword [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
test ebx, ebx
setns al
jmp 0x14004dc26
mov r8d, 0x104
lea rcx, str._systemroot__system32SleepStudy
mov rdx, rbx
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_ExpandEnvironmentStringsW]
test eax, eax
setne al
add rsp, 0x20
pop rbx
ret
Function at 0x1400661b8
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], 0
jne 0x1400661c0
lea eax, [rax*2 + 2]
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r9
mov r9d, 1
call qword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegSetKeyValueW]
add rsp, 0x38
ret
Function at 0x1400686dc
Capabilities:
Delete registry key

Disassembly:
push rdi
sub rsp, 0x20
cmp byte [rcx + 0x88], 0
mov rdi, rcx
jne 0x140068746
cmp dword [0x140142444], 2
jb 0x140068708
lea rdx, str.AutoLogger_session_not_configured
mov ecx, 2
call fcn.14003929c
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x14006873c
test byte [rcx + 0x1c], 0x10
je 0x14006873c
cmp byte [rcx + 0x19], 2
jb 0x14006873c
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401040c8]
mov edx, reloc.WS2_32.dll_ntohs
call fcn.1400075e4
mov eax, 0x80004005
jmp 0x1400688cc
lea rcx, [rsp + 0x30]
call fcn.1400661fc
cmp qword [rsp + 0x30], 0
jne 0x1400687a7
cmp dword [0x140142444], 2
jb 0x140068772
lea rdx, str.Failed_to_initialize_event_trace_properties.
mov ecx, 2
call fcn.14003929c
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x14006889c
test byte [rcx + 0x1c], 0x10
je 0x14006889c
cmp byte [rcx + 0x19], 2
jb 0x14006889c
mov edx, 0x10
jmp 0x14006888c
mov r8, qword [rsp + 0x30]
lea rdx, str.WebB_AutoLogger
mov r9d, 3
xor ecx, ecx
call qword [sym.imp.api_ms_win_eventing_controller_l1_1_0.dll_ControlTraceW]
test eax, eax
jne 0x1400687e1
mov r8, qword [rsp + 0x30]
lea r9d, [rax + 1]
lea rdx, str.WebB_AutoLogger
xor ecx, ecx
call qword [sym.imp.api_ms_win_eventing_controller_l1_1_0.dll_ControlTraceW]
test eax, eax
je 0x14006882c
cmp eax, 0x1069
je 0x14006882c
cmp dword [0x140142444], 2
jb 0x140068802
lea rdx, str.Failed_to_stop_autologger_session.
mov ecx, 2
call fcn.14003929c
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x14006889c
test byte [rcx + 0x1c], 0x10
je 0x14006889c
cmp byte [rcx + 0x19], 2
jb 0x14006889c
mov edx, 0x11
jmp 0x14006888c
lea rdx, [rdi + 0xb0]
cmp qword [rdx + 0x18], 8
jb 0x14006883d
mov rdx, qword [rdx]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteTreeW]
test eax, eax
je 0x1400688a3
cmp dword [0x140142444], 2
jb 0x140068868
lea rdx, str.Failed_to_delete_the_autologger_registry_key
mov ecx, 2
call fcn.14003929c
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x14006889c
test byte [rcx + 0x1c], 0x10
je 0x14006889c
cmp byte [rcx + 0x19], 2
jb 0x14006889c
mov edx, 0x12
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401040c8]
call fcn.1400075e4
mov edi, 0x80004005
jmp 0x1400688ac
mov byte [rdi + 0x88], 0
xor edi, edi
cmp qword [rsp + 0x30], 0
je 0x1400688ca
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetProcessHeap]
mov r8, qword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_HeapFree]
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x14006ed18
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
lea rax, [0x1400fba04]
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_downlevel_ole32_l1_1_1.dll_CoInitializeEx]
mov ebx, eax
xor r14d, r14d
test eax, eax
jns 0x14006ed61
mov r8d, eax
mov rcx, rdi
call fcn.14006ffd4
jmp 0x14006edc5
mov byte [rsp + 0x21], 1
lea r9, [rsp + 0x28]
xor r8d, r8d
mov edx, 0x8000
mov rcx, rsi
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
mov ebx, eax
test eax, eax
jns 0x14006ed96
mov r8d, eax
lea rdx, str.Couldnt_get_the_local_root_path.
mov rcx, rdi
call fcn.14006f67c
jmp 0x14006edbf
mov rdx, qword [rsp + 0x28]
cmp word [rdx], r14w
jne 0x14006eda6
mov r8, r14
jmp 0x14006edb4
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r14w
jne 0x14006edaa
mov rcx, rbp
call fcn.140007004
mov ebx, r14d
call qword [sym.imp.api_ms_win_downlevel_ole32_l1_1_1.dll_CoUninitialize]
mov eax, ebx
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400710ec
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x3a8]
sub rsp, 0x4a0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x1401411c8]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rdi, rdx
xor ebx, ebx
mov qword [rdx + 0x10], rbx
cmp qword [rdx + 0x18], 8
jb 0x140071135
mov rax, qword [rdx]
jmp 0x140071138
mov rax, rdi
mov word [rax], bx
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rbx
mov word [rsp + 0x50], bx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x40], 0x104
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov r9d, 6
lea r8, str.MinidumpDir
lea rdx, str.SYSTEMCurrentControlSetControlCrashControl
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x1400711cc
cmp word [rsp + 0x70], bx
jne 0x1400711b2
mov r8, rbx
jmp 0x1400711c5
lea rax, [rsp + 0x70]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x1400711bb
lea rdx, [rsp + 0x70]
jmp 0x14007121b
mov r8d, 0x104
lea rdx, [rbp + 0x180]
lea rcx, str._windir_minidump
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1400711f1
mov ebx, 0x80004005
jmp 0x140071244
cmp word [rbp + 0x180], bx
jne 0x1400711ff
mov r8, rbx
jmp 0x140071214
lea rax, [rbp + 0x180]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x14007120a
lea rdx, [rbp + 0x180]
lea rcx, [rsp + 0x50]
call fcn.140007004
lea rax, [rsp + 0x50]
cmp rdi, rax
je 0x140071244
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140006c68
nop
cmp qword [rsp + 0x68], 8
jb 0x140071257
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov eax, ebx
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.1400c20a0
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140071284
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x3a8]
sub rsp, 0x4a0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x1401411c8]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rdi, rdx
xor ebx, ebx
mov qword [rdx + 0x10], rbx
cmp qword [rdx + 0x18], 8
jb 0x1400712cd
mov rax, qword [rdx]
jmp 0x1400712d0
mov rax, rdi
mov word [rax], bx
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rbx
mov word [rsp + 0x50], bx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x40], 0x104
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov r9d, 6
lea r8, str.DumpFile
lea rdx, str.SYSTEMCurrentControlSetControlCrashControl
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x140071364
cmp word [rsp + 0x70], bx
jne 0x14007134a
mov r8, rbx
jmp 0x14007135d
lea rax, [rsp + 0x70]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x140071353
lea rdx, [rsp + 0x70]
jmp 0x1400713b3
mov r8d, 0x104
lea rdx, [rbp + 0x180]
lea rcx, str._SystemRoot_Memory.DMP
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x140071389
mov ebx, 0x80004005
jmp 0x1400713dc
cmp word [rbp + 0x180], bx
jne 0x140071397
mov r8, rbx
jmp 0x1400713ac
lea rax, [rbp + 0x180]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x1400713a2
lea rdx, [rbp + 0x180]
lea rcx, [rsp + 0x50]
call fcn.140007004
lea rax, [rsp + 0x50]
cmp rdi, rax
je 0x1400713dc
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140006c68
nop
cmp qword [rsp + 0x68], 8
jb 0x1400713ef
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov eax, ebx
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.1400c20a0
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret