joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015d20
Capabilities:
Create directory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rbx, rdx
mov rcx, qword [rcx]
call qword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
je 0x140015d67
call qword [sym.imp.msvcrt.dll__errno]
mov edi, dword [rax]
cmp edi, 0x11
je 0x140015d56
call method.std::_V2.generic_category__
mov dword [rbx], edi
mov qword [rbx + 8], rax
xor eax, eax
jmp 0x140015d71
mov rdx, rbx
mov rcx, rsi
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
cmp al, 2
je 0x140015d52
jmp 0x140015d47
mov rcx, rbx
call method.std::error_code.clear__
mov al, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140016a00
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
or edx, 0xffffffff
test rax, rax
jle 0x140016a2a
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x140051520
Capabilities:
Get common file path

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
lea rax, [rcx + 0x10]
mov word [rcx + 0x10], 0
mov rbx, rcx
mov rsi, rdx
mov qword [rcx], rax
xor eax, eax
mov qword [rcx + 8], rax
mov eax, 0x400
mov edx, eax
mov rcx, rbx
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.resize_unsigned_long_long_
mov rdx, qword [rbx]
mov ecx, dword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
cmp qword [rbx + 8], rdi
jb 0x140051545
test eax, eax
jne 0x14005157b
lea rcx, [rsp + 0x20]
call method.std.__last_system_error__
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
jmp 0x140051583
mov rcx, rsi
call method.std::error_code.clear__
mov rdx, rdi
mov rcx, rbx
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.resize_unsigned_long_long_
mov rax, rbx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret

Function at 0x140051d90
Capabilities:
Delete directory
Delete file

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov rbx, rdx
call method.std::filesystem.symlink_status_std::filesystem::__cxx11::path_const__std::error_code_
mov ecx, eax
mov rdx, rax
call method.std::filesystem.exists_std::filesystem::file_status___clone_.isra.0_
mov edi, eax
test al, al
je 0x140051e02
mov rdx, rbx
mov rcx, rsi
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
cmp al, 2
je 0x140051dd0
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140051de7
jmp 0x140051ddd
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x140051dc1
mov rcx, rbx
call method.std::error_code.clear__
jmp 0x140051e10
cmp dword [rbx], 0
jne 0x140051dfe
lea rcx, [rsp + 0x20]
call method.std.__last_system_error__
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rbx], xmm0
xor edi, edi
jmp 0x140051e10
test dl, dl
je 0x140051dfe
mov rcx, rbx
call method.std::error_code.clear__
jmp 0x140051dfe
mov eax, edi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
Function at 0x140051ef0
Capabilities:
Move file

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, rdx
mov rdi, rcx
mov rdx, r8
mov rbx, r8
mov rcx, rbp
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
mov rsi, rax
mov r12d, eax
cmp al, 0xff
jne 0x140051f22
mov rcx, rbx
call method.std::error_code.clear__
jmp 0x140051f2b
cmp dword [rbx], 0
jne 0x140051fd6
mov ecx, r12d
call method.std::filesystem.exists_std::filesystem::file_status___clone_.isra.0_
test al, al
je 0x140051f77
mov rdx, rbx
mov rcx, rdi
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
cmp dword [rbx], 0
jne 0x140051fd6
cmp sil, 2
jne 0x140051f62
cmp al, 2
je 0x140051f77
call method.std::_V2.generic_category__
mov dword [rbx], 0x15
jmp 0x140051f71
cmp al, 2
jne 0x140051f77
call method.std::_V2.generic_category__
mov dword [rbx], 0x14
mov qword [rbx + 8], rax
jmp 0x140051fd6
mov rdx, qword [rbp]
mov rcx, qword [rdi]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x140051fa0
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp method.std::error_code.clear__
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [sym.imp.msvcrt.dll__errno]
cmp eax, 5
jne 0x140051fbc
call rdi
mov dword [rax], 0xd
jmp 0x140051fc4
call rdi
mov dword [rax], 5
call method.std::_V2.generic_category__
mov rsi, rax
call rdi
mov eax, dword [rax]
mov qword [rbx + 8], rsi
mov dword [rbx], eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140056860
Capabilities:
Get disk size

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
xor eax, eax
mov rdi, rdx
mov rsi, r8
mov rbx, r9
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x38]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1400568d0
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x1400568a7
mov qword [rdi], rax
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x1400568b4
mov qword [rsi], rax
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x1400568c1
mov qword [rbx], rax
mov rcx, qword [rsp + 0x90]
call method.std::error_code.clear__
jmp 0x1400568ea
lea rcx, [rsp + 0x20]
call method.std.__last_system_error__
mov rax, qword [rsp + 0x90]
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rax], xmm0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret

Function at 0x14005a670
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
mov rcx, rbx
call method.std::__basic_file_char_.fd__
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call sym.read
movsxd rbp, eax
inc eax
jne 0x14005a6a8
call qword [sym.imp.msvcrt.dll__errno]
cmp dword [rax], 4
je 0x14005a681
mov rax, rbp
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140066940
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 8]
mov rbx, rcx
test rax, rax
je 0x140066960
mov rcx, qword [rcx]
add rsp, 0x30
pop rbx
pop rsi
pop rdi
jmp rax
mov esi, 4
lea rdi, [rsp + 0x2c]
mov ecx, dword [rbx + 0x10]
mov r8d, esi
mov rdx, rdi
call sym.read
test eax, eax
jle 0x140066992
cdqe
add rdi, rax
sub rsi, rax
jne 0x14006696a
mov eax, dword [rsp + 0x2c]
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
inc eax
je 0x1400669a2
lea rcx, str.random_device_could_not_be_read
call method.std.__throw_runtime_error_char_const_
call qword [sym.imp.msvcrt.dll__errno]
cmp dword [rax], 4
je 0x14006696a
jmp 0x140066996
Function at 0x14006b4b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [rcx]
mov rbx, rdx
mov eax, ecx
not eax
test ax, 0x101
jne 0x14006b4d0
add dword [rdx + 8], 0xc
mov r9b, byte [rsi]
test r9b, r9b
jns 0x14006b4fb
xor edx, edx
test byte [rsi + 1], 2
je 0x14006b4ed
mov eax, dword [rbx + 0x14]
mov r8d, 0x64
cdq
idiv r8d
mov eax, dword [rsi + 4]
sub eax, 0x13
imul eax, eax, 0x64
add eax, edx
mov dword [rbx + 0x14], eax
and cx, 0x402
cmp cx, 0x400
jne 0x14006b5a6
mov eax, r9d
not eax
test al, 0x18
je 0x14006b58a
test r9d, 4
je 0x14006b58a
mov eax, dword [rbx + 0x14]
lea r11, [0x140088da0]
xor r10d, r10d
lea ecx, [rax + 0x76c]
call method.std._anonymous_namespace_::is_leap_int_
mov ecx, dword [rbx + 0x1c]
mov r8, rax
neg r8
and r8d, 0x1a
add r8, r11
movzx edi, word [r8 + r10*2]
mov rdx, r10
lea r10, [r10 + 1]
cmp edi, ecx
jle 0x14006b545
test r9d, 8
jne 0x14006b566
lea r8d, [rdx - 1]
mov dword [rbx + 0x10], r8d
and r9d, 0x10
jne 0x14006b587
movzx eax, al
dec edx
imul rax, rax, 0xd
movsxd rdx, edx
add rax, rdx
movzx eax, word [r11 + rax*2]
sub ecx, eax
inc ecx
mov dword [rbx + 0xc], ecx
or byte [rsi], 0x18
mov edx, dword [rbx + 0x10]
test byte [rsi], 8
jne 0x14006b597
cmp edx, 0xb
ja 0x14006b5a6
mov ecx, dword [rbx + 0x14]
mov r8d, dword [rbx + 0xc]
call method.std._anonymous_namespace_::day_of_the_week_int__int__int_
mov dword [rbx + 0x18], eax
mov eax, dword [rsi]
mov dil, byte [rsi]
and ax, 0x404
cmp ax, 0x400
jne 0x14006b5f4
movsxd r9, dword [rbx + 0x10]
test edi, 8
jne 0x14006b5c7
cmp r9d, 0xb
ja 0x14006b5f4
mov eax, dword [rbx + 0x14]
lea ecx, [rax + 0x76c]
call method.std._anonymous_namespace_::is_leap_int_
lea rcx, [0x140088da0]
mov edx, dword [rbx + 0xc]
movzx eax, al
imul rax, rax, 0xd
add rax, r9
movzx eax, word [rcx + rax*2]
lea eax, [rdx + rax - 1]
mov dword [rbx + 0x1c], eax
test edi, 0x60
je 0x14006b6d7
test edi, 2
je 0x14006b6d7
mov ebp, dword [rbx + 0x14]
test edi, 4
jne 0x14006b669
mov r12d, edi
mov r8d, 1
xor edx, edx
mov ecx, ebp
call method.std._anonymous_namespace_::day_of_the_week_int__int__int_
shr r12b, 5
mov r8d, 7
xor r12d, 1
and r12d, 1
sub eax, r12d
mov edx, eax
mov eax, r8d
sub eax, edx
cdq
idiv r8d
mov al, byte [rsi + 2]
and eax, 0x3f
dec eax
imul eax, eax, 7
lea ecx, [rdx + rax]
mov eax, dword [rbx + 0x18]
sub eax, r12d
add eax, 7
cdq
idiv r8d
add ecx, edx
mov dword [rbx + 0x1c], ecx
mov eax, edi
not eax
test al, 0x18
je 0x14006b6d7
lea ecx, [rbp + 0x76c]
lea r10, [0x140088da0]
xor r9d, r9d
call method.std._anonymous_namespace_::is_leap_int_
mov ecx, dword [rbx + 0x1c]
mov r8, rax
neg r8
and r8d, 0x1a
add r8, r10
movzx r11d, word [r8 + r9*2]
mov rdx, r9
lea r9, [r9 + 1]
cmp r11d, ecx
jle 0x14006b696
test edi, 8
jne 0x14006b6b7
lea r8d, [rdx - 1]
mov dword [rbx + 0x10], r8d
and edi, 0x10
jne 0x14006b6d7
movzx eax, al
dec edx
imul rax, rax, 0xd
movsxd rdx, edx
add rax, rdx
movzx eax, word [r10 + rax*2]
sub ecx, eax
inc ecx
mov dword [rbx + 0xc], ecx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x14007acf0
Capabilities:
Hash data using fnv

Disassembly:
movabs r9, 0x100000001b3
mov rax, r8
xor r8d, r8d
cmp rdx, r8
je 0x14007ad16
movsx r10, byte [rcx + r8]
inc r8
xor rax, r10
imul rax, r9
jmp 0x14007ad00
ret

Function at 0x14007ee50
Capabilities:
Query environment variable

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
xor edx, edx
lea rcx, [0x140080780]
call sym.pthread_mutex_init
xor r8d, r8d
lea rbp, [rsp + 0x40]
lea rcx, str.GLIBCXX_TUNABLES
mov qword [0x140080788], r8
mov qword [0x140080790], r8
mov qword [0x140080798], r8
call sym.getenv
xor r9d, r9d
mov dword [rsp + 0x78], 0x100
mov rbx, rax
lea rax, str.glibcxx.eh_pool
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x48], rax
lea rax, str.obj_size
mov qword [rsp + 0x58], rax
lea rax, str.obj_count
mov qword [rsp + 0x40], 0xf
mov qword [rsp + 0x50], 8
mov qword [rsp + 0x68], 9
mov qword [rsp + 0x70], rax
test rbx, rbx
je 0x14007ef97
cmp byte [rbx], 0x3a
jne 0x14007eef5
inc rbx
xor edx, edx
mov r9, rbx
mov r8d, 0xf
mov rcx, rbp
mov qword [rsp + 0x20], 0xf
call method.std::basic_string_view_char__std::char_traits_char___.compare_unsigned_long_long__unsigned_long_long__char_const__unsigned_long_long__const
test eax, eax
jne 0x14007ef82
cmp byte [rbx + 0xf], 0x2e
jne 0x14007ef82
add rbx, 0x10
lea rsi, [rsp + 0x50]
mov rdi, qword [rsi]
xor edx, edx
mov r9, rbx
mov rcx, rsi
mov qword [rsp + 0x20], rdi
mov r8, rdi
call method.std::basic_string_view_char__std::char_traits_char___.compare_unsigned_long_long__unsigned_long_long__char_const__unsigned_long_long__const
test eax, eax
jne 0x14007ef46
cmp byte [rbx + rdi], 0x3d
je 0x14007ef59
add rsi, 0x18
lea rax, [rsp + 0x80]
cmp rsi, rax
je 0x14007ef82
jmp 0x14007ef24
lea rdx, [rsp + 0x38]
lea rcx, [rbx + rdi + 1]
xor r8d, r8d
call sym.strtoul
mov rbx, qword [rsp + 0x38]
mov dl, byte [rbx]
cmp dl, 0x3a
je 0x14007ef7b
test dl, dl
jne 0x14007ef82
test eax, eax
js 0x14007ef82
mov dword [rsi + 0x10], eax
mov rcx, rbx
mov edx, 0x3a
call sym.strchr
mov rbx, rax
jmp 0x14007eee4
mov eax, dword [rsp + 0x78]
mov edx, 0x1000
cmp eax, edx
cmovle edx, eax
mov eax, dword [rsp + 0x60]
test eax, eax
jne 0x14007efb2
mov eax, 6
movsxd rbx, eax
movsxd rax, edx
add rbx, 0x26
imul rbx, rax
shl rbx, 3
mov qword [0x140080798], rbx
je 0x14007effc
mov rcx, rbx
call sym.malloc
mov qword [0x140080790], rax
test rax, rax
jne 0x14007efec
xor ecx, ecx
mov qword [0x140080798], rcx
jmp 0x14007effc
xor edx, edx
mov qword [0x140080788], rax
mov qword [rax], rbx
mov qword [rax + 8], rdx
lea rcx, [sym.__tcf_0]
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
jmp sym.atexit
Function at 0x1400017b8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x140015010]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rdi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x106
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x14000185d
mov rcx, qword [0x140015ac8]
test rcx, rcx
jne 0x14000184b
lea r8, str.ChromeReprompt.txt
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x14000ca0c]
lea rdx, [rsp + 0x20]
lea rcx, [0x140015ac8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rcx, qword [0x140015ac8]
test rcx, rcx
je 0x14000185d
mov r9, rdi
lea rdx, str._s_____s_n
mov r8, rbx
call fcn.140001038
mov eax, 1
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14000a970
mov rbx, qword [rsp + 0x160]
add rsp, 0x140
pop rdi
ret
Function at 0x140001b44
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x1a8]
sub rsp, 0x290
mov rax, qword [0x140015010]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov r14, rcx
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], di
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov ebx, 0x104
mov edx, ebx
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x140001d45
lea r8, [0x14000ca68]
mov edx, ebx
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
jne 0x140001d45
lea rcx, [rsp + 0x70]
call fcn.1400018cc
test eax, eax
je 0x140001d45
mov r8d, eax
xor edx, edx
mov esi, 0x400
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
test rax, rax
je 0x140001d45
mov qword [rsp + 0x38], rdi
lea r8, [rsp + 0x38]
lea edx, [rdi + 8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140001d3b
mov dword [rsp + 0x30], edi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 1]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140001d30
mov ebx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, ebx
lea edx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x140001d30
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
mov r8, rbx
lea edx, [rdi + 1]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140001d1c
lea rdx, [rsp + 0x40]
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x140001d11
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.140006558
lea rdx, [0x14000c9cc]
lea rcx, [rsp + 0x48]
call fcn.140006558
mov rcx, qword [rsp + 0x40]
mov rdx, rcx
sub rdx, r14
lea rax, [rsi + 0x7ffffbfe]
test rax, rax
je 0x140001cfd
movzx eax, word [rdx + r14]
test ax, ax
je 0x140001cfd
mov word [r14], ax
add r14, 2
sub rsi, 1
jne 0x140001cd9
lea rax, [r14 - 2]
test rsi, rsi
cmovne rax, r14
mov word [rax], di
setne dil
jmp 0x140001d16
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x48]
call fcn.140006664
mov eax, edi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14000a970
lea r11, [rsp + 0x290]
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 0x1400020e8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0xd90]
sub rsp, 0xe90
mov rax, qword [0x140015010]
xor rax, rsp
mov qword [rbp + 0xd80], rax
mov rdi, rcx
mov r14d, 0x208
mov r8d, r14d
xor edx, edx
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
xor ebx, ebx
lea rcx, [rbp + 0x580]
call fcn.140001b44
mov esi, 0x104
lea rcx, [rsp + 0x50]
mov edx, esi
test eax, eax
je 0x14000216f
lea r8, str.HKEY_USERS_
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [rbp + 0x580]
mov edx, esi
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
jmp 0x14000217c
lea r8, [0x14000c9d0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov rdx, rsi
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rax, vtable.RegUtil.0
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov r9, rdi
lea r8, str.Local_AppData
lea rdx, [rsp + 0x50]
call fcn.140009e14
mov rdx, rdi
lea rcx, str.GetUserLocalAppDataFolder_:_:_folderpath_via_registry_:
call fcn.1400017b8
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], bx
jne 0x1400021c9
test rax, rax
jne 0x14000227b
mov qword [rsp + 0x30], rbx
mov r8, r14
xor edx, edx
lea rcx, [rbp + 0x370]
call sub.VCRUNTIME140.dll_memset
mov r8, r14
xor edx, edx
lea rcx, [rbp + 0x160]
call sub.VCRUNTIME140.dll_memset
lea r8, [rbp + 0x160]
lea rdx, [rbp + 0x370]
lea rcx, [rsp + 0x30]
call fcn.140001e94
test eax, eax
je 0x140002256
mov qword [rsp + 0x38], rbx
lea r9, [rsp + 0x38]
mov r8, qword [rsp + 0x30]
xor edx, edx
lea rcx, [0x14000c790]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov r8, qword [rsp + 0x38]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rcx, str.Get_tUserLocalAppDataFolder_:_:_folderpath_new2_:
jmp 0x140002273
xor r9d, r9d
lea r8d, [r9 + 0x1c]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x14000227d
lea rcx, str.GetUserLocalAppDataFolder_:_:_folderpath_old_:
mov rdx, rdi
call fcn.1400017b8
mov bl, 1
mov al, bl
mov rcx, qword [rbp + 0xd80]
xor rcx, rsp
call fcn.14000a970
lea r11, [rsp + 0xe90]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400022a8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x140015010]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rdi, rcx
lea rax, vtable.RegUtil.0
mov qword [rsp + 0x30], rax
xor esi, esi
mov qword [rsp + 0x38], rsi
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x40]
lea r8, str.Shell
lea rdx, str.HKEY_CURRENT_USERSOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
call fcn.140009e14
mov r14d, 0x104
mov edx, r14d
lea rax, [rsp + 0x40]
lea ebx, [rsi + 1]
cmp word [rax], si
je 0x140002335
add rax, 2
sub rdx, rbx
jne 0x140002327
mov rax, rdx
mov rcx, r14
sub rcx, rdx
neg rax
sbb r9, r9
and r9, rcx
test rdx, rdx
je 0x140002351
test r9, r9
jne 0x1400023b0
lea r9, [rsp + 0x40]
lea r8, str.Shell
lea rdx, str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
call fcn.140009e14
mov rdx, r14
lea rax, [rsp + 0x40]
cmp word [rax], si
je 0x14000237f
add rax, 2
sub rdx, rbx
jne 0x140002371
mov rax, rdx
mov rcx, r14
sub rcx, rdx
neg rax
sbb r8, r8
and r8, rcx
test rdx, rdx
je 0x14000239b
test r8, r8
jne 0x1400023b0
lea r8, str.explorer.exe
mov rdx, r14
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov ecx, eax
lea rdx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], si
jne 0x1400023ce
add rax, rbx
cmp rax, rcx
mov rcx, rdi
jne 0x140002406
lea r8, [rsp + 0x40]
mov rdx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
test eax, eax
je 0x140002478
lea rdx, [rsp + 0x40]
lea rcx, str.GetShellProcName::_Failed_to_copy_shell_full_path_to_return_var
jmp 0x140002471
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
mov rdx, r14
mov rcx, rdi
cmp eax, 0x103
ja 0x140002452
lea r8, [0x14000c9cc]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
jne 0x140002444
lea r8, [rsp + 0x40]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
je 0x140002478
lea rdx, [rsp + 0x40]
lea rcx, str.GetShellProcName::_Failed_to_concat_Windows_Dir_to_shell_name_:
jmp 0x140002471
lea r8, str.C:Windowsexplorer.exe
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
test eax, eax
je 0x140002478
lea rdx, [0x14000c978]
lea rcx, str.GetShellProcName::_Failed_to_copy_hard_coded_shell_value_:
call fcn.1400017b8
mov ebx, esi
mov eax, ebx
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14000a970
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret