joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d960
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov ecx, dword [0x004146e4]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x40da80
mov rax, qword [0x004146e8]
xor ebx, ebx
add rax, 0x18
mov rdx, qword [rax]
cmp rsi, rdx
jb 0x40d9ac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rsi, rdx
jb 0x40da66
add ebx, 1
add rax, 0x28
cmp ebx, ecx
jne 0x40d990
mov rcx, rsi
call fcn.0040e5a0
test rax, rax
mov r12, rax
je 0x40dab8
movsxd rbx, ebx
lea rbx, [rbx + rbx*4]
shl rbx, 3
mov r13, rbx
add r13, qword [0x004146e8]
mov qword [r13 + 0x20], rax
mov dword [r13], 0
call fcn.0040e6f0
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 0x18], rax
mov rax, qword [0x004146e8]
mov rcx, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40da9b
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40da5f
sub eax, 0x40
and eax, 0xffffffbf
je 0x40da5f
add rbx, qword [0x004146e8]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40da87
add dword [0x004146e4], 1
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.ntdll.dll_memcpy
xor ebx, ebx
jmp 0x40d9b7
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0040d8f0
mov rax, qword [0x004146e8]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.0040d8f0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call fcn.0040d8f0
nop
nop dword [rax + rax]

Function at 0x40e210
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004149c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004149a0]
test rbx, rbx
je 0x40e264
mov rbp, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40e25b
test rsi, rsi
je 0x40e25b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40e240
lea rcx, [0x004149c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x40e5a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x004111f0]
xor edx, edx
mov r8, rcx
cmp word [r9], 0x5a4d
je 0x40e5c0
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call fcn.0040e480
test eax, eax
je 0x40e5b8
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add rax, r9
movzx edx, word [rax + 0x14]
lea rdx, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x40e61d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x40e614
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x40e5b8
add rdx, 0x28
cmp rdx, r9
jne 0x40e600
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x2fc4d7ab0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d84b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fd108]
test eax, eax
je 0x2fc4d854a
lea rax, [0x2fc4fd0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fd110]
mov qword [rbp - 8], rax
jmp 0x2fc4d852e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d8522
cmp qword [rbp - 0x10], 0
je 0x2fc4d8522
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d84e8
lea rax, [0x2fc4fd0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d854b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d8650
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d8678
mov eax, 0
jmp 0x2fc4d86c6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d86a1
mov eax, 0
jmp 0x2fc4d86c6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d86c1
mov eax, 0
jmp 0x2fc4d86c6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x18000b430
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push r13
sub rsp, 0x40
mov rsi, r8
mov r13, rdx
mov rdi, rcx
test r8, r8
jne 0x18000b462
xor eax, eax
mov dword [rcx], 1
mov dword [rcx + 0x10], eax
mov qword [rcx + 8], rax
mov rax, rcx
add rsp, 0x40
pop r13
pop rdi
pop rsi
ret
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x70], r12
lea r8d, [rdx + 2]
call fcn.18000dfec
mov rcx, rsi
call fcn.18000d6dc
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov r12, rax
call fcn.18000dfec
test r12, r12
jns 0x18000b4ba
mov rcx, rsi
call fcn.18000e960
mov r12, qword [rsp + 0x70]
xor eax, eax
mov dword [rdi + 0x10], eax
mov qword [rdi + 8], rax
mov dword [rdi], 2
mov rax, rdi
add rsp, 0x40
pop r13
pop rdi
pop rsi
ret
mov ecx, 1
test r12, r12
mov qword [rsp + 0x68], rbp
cmovne rcx, r12
call qword [0x180028cb0]
mov rbp, rax
test rax, rax
jne 0x18000b4f2
mov rcx, rsi
call fcn.18000e960
xor eax, eax
mov dword [rdi], 3
mov dword [rdi + 0x10], eax
mov qword [rdi + 8], rax
jmp 0x18000b564
mov r9, rsi
mov r8, r12
mov edx, 1
mov rcx, rax
mov qword [rsp + 0x60], rbx
call fcn.18000e4a0
mov rcx, rsi
mov rbx, rax
call fcn.18000e960
cmp rbx, r12
mov rbx, qword [rsp + 0x60]
je 0x18000b539
mov rcx, rbp
call qword [0x180028cb8]
xor eax, eax
mov dword [rdi], 2
mov dword [rdi + 0x10], eax
mov qword [rdi + 8], rax
jmp 0x18000b564
mov byte [rsp + 0x38], 1
mov byte [rsp + 0x30], 1
mov r9, r12
mov r8, rbp
mov rdx, rdi
mov rcx, r13
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0x100
call fcn.18000b6d0
mov rbp, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
mov rax, rdi
add rsp, 0x40
pop r13
pop rdi
pop rsi
ret

Function at 0x18000b580
Capabilities:
Write file on windows

Disassembly:
mov r9, qword [rcx + 8]
mov rax, rdx
mov edx, 1
mov rcx, rax
jmp 0x18000e6cc
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r9
push r12
sub rsp, 0x30
mov rbx, r9
mov rdi, r8
mov rsi, rdx
mov r12, rcx
test rdx, rdx
je 0x18000e755
test r8, r8
je 0x18000e755
xor eax, eax
test rbx, rbx
setne al
test eax, eax
jne 0x18000e72b
call fcn.18000f46c
mov dword [rax], 0x16
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.18000ce58
xor eax, eax
jmp 0x18000e757
mov rcx, rbx
call fcn.1800142c4
nop
mov r9, rbx
mov r8, rdi
mov rdx, rsi
mov rcx, r12
call fcn.18000e530
mov rdi, rax
mov rcx, rbx
call fcn.180014354
mov rax, rdi
jmp 0x18000e757
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r12
ret
Function at 0x18001182b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1800272d0]
jne 0x18000c9ca
rol rcx, 0x10
test cx, 0xffff
jne 0x18000c9c6
repz ret
ror rcx, 0x10
jmp 0x180011784
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1800291b0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1800292a8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180011809
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1800291b0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18001182b
mov rax, qword [rsp + 0x88]
mov qword [0x1800292a8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180029248], rax
mov rax, qword [0x1800292a8]
mov qword [0x180029120], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180029230], rax
mov dword [0x180029110], 0xc0000409
mov dword [0x180029114], 1
mov rax, qword [0x1800272d0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1800272d8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1800291a8], eax
mov ecx, 1
call fcn.18001229c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180021e60]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1800291a8], 0
jne 0x1800118b2
mov ecx, 1
call fcn.18001229c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x180012074
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x180011ee8
Function at 0x180019f64
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.18001194c
xor ebx, ebx
mov rdi, rax
cmp qword [0x180029e98], rbx
jne 0x18001a06a
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x18001a13f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18001a13f
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x180029e98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x180029ea0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x180029ea8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x180029eb8], rax
test rax, rax
je 0x18001a061
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x180029eb0], rax
jmp 0x18001a071
mov rax, qword [0x180029eb0]
jmp 0x18001a078
mov rax, qword [0x180029eb0]
mov r11, qword [0x180029eb8]
cmp rax, rdi
je 0x18001a0e0
cmp r11, rdi
je 0x18001a0e0
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x180029eb8]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x18001a0e0
test rax, rax
je 0x18001a0e0
call rsi
test rax, rax
je 0x18001a0da
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x18001a0da
test byte [rsp + 0x38], 1
jne 0x18001a0e0
bts ebp, 0x15
jmp 0x18001a11e
mov rcx, qword [0x180029ea0]
cmp rcx, rdi
je 0x18001a11e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18001a11e
call rax
mov rbx, rax
test rax, rax
je 0x18001a11e
mov rcx, qword [0x180029ea8]
cmp rcx, rdi
je 0x18001a11e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18001a11e
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180029e98]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18001a13f
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x18001a141
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
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.14000a9f0
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.140006574
lea rdx, [0x14000c9cc]
lea rcx, [rsp + 0x48]
call fcn.140006574
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.140006680
mov eax, edi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14000a9f0
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.140009e90
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.14000a9f0
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.140009e90
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.140009e90
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.14000a9f0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret