joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14019f810
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
test rcx, rcx
je 0x14019af03
mov ebx, dword [rcx + 0x268]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetThreadLocale]
movzx ecx, bx
add rsp, 0x20
pop rbx
jmp 0x14019f810
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movzx edi, cx
mov rbx, qword [0x14068c748]
mov qword [rsp + 0x38], 0
cmp dword [0x14068c074], 0
jne 0x14019f8b1
mov eax, dword [0x14068c070]
test eax, eax
jne 0x14019f8b1
mov edx, dword [0x14068c07c]
test edx, edx
je 0x14019f863
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14068c070]
mov edx, dword [0x14068c07c]
test eax, eax
jne 0x14019f8b1
test edx, edx
jne 0x14019f874
call fcn.14018bc50
test eax, eax
je 0x14019f88a
lea rdx, [rsp + 0x38]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x14019f8b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x7e]
cmp ecx, 1
jbe 0x14019f8a7
cmp eax, 0x78
je 0x14019f8a7
cmp eax, 1
je 0x14019f8a7
cmp eax, 0x32
jne 0x14019f901
mov dword [0x14068c070], 1
test rbx, rbx
jne 0x14019f8d1
lea rcx, str.InitMUILanguage
call fcn.140199e30
mov rbx, rax
test rax, rax
je 0x14019f8d7
mov qword [0x14068c748], rax
movzx ecx, di
call rbx
nop
cmp dword [0x14068c074], 0
je 0x14019f8e9
cmp dword [0x14068c070], 0
jne 0x14019f901
mov rdx, qword [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1401a0560
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1401a058b
cmp eax, ebx
ja 0x1401a058b
mov r8d, ebx
mov rdx, rdi
mov rcx, rdi
call sym.ErrorReportClient.exe_SfGetLongPathName
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1401a0ba0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401a0bcd
test al, 0x50
jne 0x1401a0bcd
and eax, 2
test al, al
je 0x1401a0bc2
test ebx, ebx
jne 0x1401a0bcd
mov eax, 1
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1401a0c30
Capabilities:
Parse pe header
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
mov eax, 0x1050
call fcn.14039bb40
sub rsp, rax
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x1401a0c69
mov dword [rdx], ebx
test rdi, rdi
je 0x1401a0c72
mov word [r8], bx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rbx
mov r8d, 0x1000
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401a0d43
mov r9d, dword [rsp + 0x30]
cmp r9d, 0x40
jb 0x1401a0d43
cmp byte [rsp + 0x40], 0x4d
jne 0x1401a0d43
cmp byte [rsp + 0x41], 0x5a
jne 0x1401a0d43
mov edx, dword [rsp + 0x7c]
lea rcx, [r9 + 0x18]
cmp rdx, rcx
jbe 0x1401a0d0c
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rbx
mov r8d, 0x1000
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401a0d43
mov r9d, dword [rsp + 0x30]
mov edx, ebx
lea eax, [rdx + r9]
cmp eax, 0x18
jb 0x1401a0d43
mov eax, edx
lea rdx, [rsp + 0x40]
add rdx, rax
cmp dword [rdx], 0x4550
jne 0x1401a0d43
mov ebx, 1
test rsi, rsi
je 0x1401a0d37
movzx eax, word [rdx + 4]
mov dword [rsi], eax
test rdi, rdi
je 0x1401a0d43
movzx edx, word [rdx + 0x16]
mov word [rdi], dx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, ebx
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14039bbb0
mov rbx, qword [rsp + 0x1088]
add rsp, 0x1050
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401a0e30
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x6b0
movaps xmmword [rsp + 0x6a0], xmm6
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rsp + 0x690], rax
mov ebx, edx
mov r8d, 0x104
lea rdx, [rsp + 0x70]
mov rdi, rcx
xorps xmm6, xmm6
call sym.ErrorReportClient.exe_SfGetRootPathFromFilePath
xor esi, esi
test eax, eax
mov r8d, esi
setne r8b
test eax, eax
je 0x1401a0f35
mov qword [rsp + 0x40], rsi
lea r9, [rsp + 0x280]
mov qword [rsp + 0x38], rsi
lea r8d, [rsi + 3]
mov qword [rsp + 0x30], rsi
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x28], rsi
mov rcx, rdi
mov qword [rsp + 0x20], 0x100
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], rsi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
lea r9, [rsp + 0x280]
mov qword [rsp + 0x28], rsi
lea r8, [rsp + 0x68]
mov qword [rsp + 0x20], rsi
mov edx, 0x104
lea rcx, [rsp + 0x480]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmakepath_s]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov r8d, eax
test eax, eax
je 0x1401a0f3a
xorps xmm6, xmm6
cvtsi2sd xmm6, qword [rsp + 0x50]
test ebx, ebx
je 0x1401a0f35
xorps xmm0, xmm0
cvtsi2sd xmm0, rbx
divsd xmm6, xmm0
test r8d, r8d
jne 0x1401a0f51
mov eax, 0x5c
cmp ax, word [rsp + 0x70]
jne 0x1401a0f4d
cmp ax, word [rsp + 0x72]
je 0x1401a0f5b
xor eax, eax
jmp 0x1401a0f67
comisd xmm6, xmmword [0x140450f80]
jbe 0x1401a0f62
mov eax, 0xffffffff
jmp 0x1401a0f67
cvttsd2si rax, xmm6
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.14039bbb0
lea r11, [rsp + 0x6b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rdi
ret
Function at 0x1401a0fa0
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x6b0
movaps xmmword [rsp + 0x6a0], xmm6
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rsp + 0x690], rax
mov ebx, edx
mov r8d, 0x104
lea rdx, [rsp + 0x70]
mov rdi, rcx
xorps xmm6, xmm6
call sym.ErrorReportClient.exe_SfGetRootPathFromFilePath
xor esi, esi
test eax, eax
mov r8d, esi
setne r8b
test eax, eax
je 0x1401a1096
mov qword [rsp + 0x40], rsi
lea r9, [rsp + 0x280]
mov qword [rsp + 0x38], rsi
lea r8d, [rsi + 3]
mov qword [rsp + 0x30], rsi
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x28], rsi
mov rcx, rdi
mov qword [rsp + 0x20], 0x100
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
lea r9, [rsp + 0x280]
mov qword [rsp + 0x28], rsi
lea r8, [rsp + 0x68]
mov qword [rsp + 0x20], rsi
mov edx, 0x104
lea rcx, [rsp + 0x480]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmakepath_s]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov r8d, eax
test eax, eax
je 0x1401a109b
xorps xmm6, xmm6
cvtsi2sd xmm6, qword [rsp + 0x50]
test ebx, ebx
je 0x1401a1096
xorps xmm0, xmm0
cvtsi2sd xmm0, rbx
divsd xmm6, xmm0
test r8d, r8d
jne 0x1401a10b2
mov eax, 0x5c
cmp ax, word [rsp + 0x70]
jne 0x1401a10ae
cmp ax, word [rsp + 0x72]
je 0x1401a10bc
xor eax, eax
jmp 0x1401a10c8
comisd xmm6, xmmword [0x140450f80]
jbe 0x1401a10c3
mov eax, 0xffffffff
jmp 0x1401a10c8
cvttsd2si rax, xmm6
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.14039bbb0
lea r11, [rsp + 0x6b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rdi
ret
Function at 0x1401a1300
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
push rbp
push rsi
push r14
sub rsp, 0x248
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbp, rdx
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rbx, rcx
call sym.ErrorReportClient.exe_SfGetRootPathFromFilePath
movsxd rsi, eax
cmp esi, 3
jl 0x1401a146a
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401a146a
and eax, 0x10
test al, al
je 0x1401a146a
lea r14, [rbx + rsi*2]
mov rcx, r14
lea rdx, [0x140450d28]
call sub.VCRUNTIME140.dll_wcsstr
test rax, rax
jne 0x1401a146a
mov qword [rsp + 0x280], rdi
lea edx, [rax + 1]
mov qword [rsp + 0x288], r12
xor r12d, r12d
mov qword [rsp + 0x240], r15
lea r15d, [rax + 0x5c]
nop
movzx eax, word [r14]
mov rbx, r14
cmp r12w, ax
je 0x1401a13ce
nop dword [rax]
cmp r15w, ax
je 0x1401a13ce
cmp r12w, ax
lea rcx, [rbx + 2]
cmove rcx, rbx
mov rbx, rcx
movzx eax, word [rcx]
cmp r12w, ax
jne 0x1401a13b0
mov edi, ebx
sub edi, r14d
shr edi, 1
cmp edi, 1
jb 0x1401a144e
lea eax, [rdi + 1]
test eax, eax
jle 0x1401a1400
movsxd rdx, eax
lea rcx, [rsp + 0x20]
movsxd rax, esi
mov r9, 0xffffffffffffffff
mov r8, r14
lea rcx, [rcx + rax*2]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea rcx, [rsp + 0x20]
add esi, edi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401a1420
and eax, 0x10
test al, al
je 0x1401a1420
mov edx, 1
jmp 0x1401a1434
mov rdx, rbp
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, eax
test eax, eax
je 0x1401a144e
cmp r15w, word [rbx]
jne 0x1401a144e
movsxd rcx, esi
lea r14, [rbx + 2]
inc esi
mov word [rsp + rcx*2 + 0x20], r15w
jmp 0x1401a13a0
mov r15, qword [rsp + 0x240]
mov eax, edx
mov r12, qword [rsp + 0x288]
mov rdi, qword [rsp + 0x280]
jmp 0x1401a146c
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14039bbb0
add rsp, 0x248
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401a2040
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push rbx
sub rsp, 0x460
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401a2144
and eax, 0x10
test al, al
je 0x1401a2144
mov r9, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
mov r8, rbx
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
xor r10d, r10d
lea rdx, [rsp + 0x30]
cmp r10w, word [rsp + 0x30]
je 0x1401a2100
mov ecx, r10d
inc ecx
cmp ecx, 0x104
je 0x1401a2100
cmp r10w, word [rdx]
lea rax, [rdx + 2]
cmove rax, rdx
mov rdx, rax
cmp r10w, word [rax]
jne 0x1401a20a5
add rax, 0xfffffffffffffffe
lea r9, [rsp + 0x30]
cmp rdx, r9
lea r8, [rsp + 0x30]
mov r9d, 0x5c
cmova r8, rax
movzx edx, word [r8]
cmp r9w, dx
je 0x1401a2100
lea eax, [rcx + 2]
cmp eax, 0x104
ja 0x1401a2100
cmp r10w, dx
je 0x1401a20fd
add r8, 2
mov dword [r8], r9d
lea rax, [rsp + 0x240]
mov dword [rsp + 0x28], 0x104
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [0x14044b1c4]
xor ecx, ecx
lea rdx, [rsp + 0x30]
call sym.ErrorReportClient.exe_SfCreateTempFileAndNameEx
test eax, eax
jne 0x1401a2144
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
jmp 0x1401a2146
xor eax, eax
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14039bbb0
add rsp, 0x460
pop rbx
ret
Function at 0x1401a2170
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x490
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov esi, 1
test rcx, rcx
je 0x1401a21ba
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x1401a21a0
cmp eax, 0x104
jb 0x1401a21ba
xor ebx, ebx
mov eax, ebx
jmp 0x1401a22e5
mov r8, rcx
mov qword [rsp + 0x4a8], rdi
lea rcx, [rsp + 0x270]
mov r9, 0xffffffffffffffff
mov edx, 0x108
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
xor ebx, ebx
lea rdx, [rsp + 0x270]
cmp bx, word [rsp + 0x270]
je 0x1401a2253
mov ecx, ebx
inc ecx
cmp ecx, 0x108
je 0x1401a2253
cmp bx, word [rdx]
lea rax, [rdx + 2]
cmove rax, rdx
mov rdx, rax
cmp bx, word [rax]
jne 0x1401a21f5
add rax, 0xfffffffffffffffe
lea r9, [rsp + 0x270]
cmp rdx, r9
lea r8, [rsp + 0x270]
mov edx, 0x5c
cmova r8, rax
movzx r10d, word [r8]
cmp dx, r10w
je 0x1401a2253
lea eax, [rcx + 2]
cmp eax, 0x108
ja 0x1401a2253
cmp bx, r10w
je 0x1401a2250
add r8, 2
mov dword [r8], edx
mov r9, 0xffffffffffffffff
lea r8, [0x140450db0]
mov edx, 0x108
lea rcx, [rsp + 0x270]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1401a22db
lea rdx, [0x140450b08]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1401a22bc
lea rdx, [0x140450db8]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1401a22d0
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1401a2290
jmp 0x1401a22d2
mov esi, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rdi, qword [rsp + 0x4a8]
mov eax, esi
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14039bbb0
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop rsi
ret
Function at 0x1401a2310
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r14
sub rsp, 0x6b0
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
movzx r14d, dl
mov rdi, rcx
mov ebp, 1
test rcx, rcx
je 0x1401a236a
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1401a2350
cmp eax, 0x104
jb 0x1401a236a
xor ebx, ebx
mov eax, ebx
jmp 0x1401a2503
mov r9, 0xffffffffffffffff
mov qword [rsp + 0x6e0], rsi
mov r8, rdi
lea rcx, [rsp + 0x280]
mov edx, 0x108
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
xor ebx, ebx
lea rdx, [rsp + 0x280]
cmp bx, word [rsp + 0x280]
je 0x1401a2403
mov ecx, ebx
inc ecx
cmp ecx, 0x108
je 0x1401a2403
cmp bx, word [rdx]
lea rax, [rdx + 2]
cmove rax, rdx
mov rdx, rax
cmp bx, word [rax]
jne 0x1401a23a5
add rax, 0xfffffffffffffffe
lea r9, [rsp + 0x280]
cmp rdx, r9
lea r8, [rsp + 0x280]
mov edx, 0x5c
cmova r8, rax
movzx r10d, word [r8]
cmp dx, r10w
je 0x1401a2403
lea eax, [rcx + 2]
cmp eax, 0x108
ja 0x1401a2403
cmp bx, r10w
je 0x1401a2400
add r8, 2
mov dword [r8], edx
mov r9, 0xffffffffffffffff
lea r8, [0x140450db0]
mov edx, 0x108
lea rcx, [rsp + 0x280]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1401a24f9
lea rdx, [0x140450b08]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1401a24bb
lea rdx, [0x140450db8]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1401a24bb
mov eax, dword [rsp + 0x30]
and eax, 0x10
test al, al
je 0x1401a24d3
lea rax, [rsp + 0x5c]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [0x140450dc0]
mov edx, 0x104
mov qword [rsp + 0x20], rdi
lea rcx, [rsp + 0x490]
call sym.ErrorReportClient.exe_SfCchPrintF
movzx edx, r14b
lea rcx, [rsp + 0x490]
call sym.ErrorReportClient.exe_SfIsDirectoryEmptyRecursive
test eax, eax
je 0x1401a24ee
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1401a2444
jmp 0x1401a24f0
test r14b, r14b
je 0x1401a24ee
lea rdx, str.thumbs.db
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1401a24f0
mov ebp, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rsi, qword [rsp + 0x6e0]
mov eax, ebp
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.14039bbb0
mov rbx, qword [rsp + 0x6e8]
add rsp, 0x6b0
pop r14
pop rdi
pop rbp
ret
Function at 0x1401a3220
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov rbx, rdx
mov dword [rsp + 0x28], 0
xor edx, edx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1401a328e
lea rdx, [rsp + 0x64]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x60], eax
mov rcx, qword [rsp + 0x60]
mov qword [rbx], rcx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov qword [rbx], 0
mov eax, 0x8004e007
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1401a32b0
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rsi, r9
mov edi, r8d
mov rbx, rcx
cmp edx, 0x104
jae 0x1401a32e8
mov eax, 0x80070057
jmp 0x1401a3371
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
mov edx, edi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, eax
test eax, eax
js 0x1401a336f
mov ecx, edi
call sym.ErrorReportClient.exe_SfIsHiddenFolderByDefault
test eax, eax
lea rcx, str._s_d._d_
mov eax, dword [rsp + 0x2a8]
lea r9, str.MAGIX_s_d._d_
mov dword [rsp + 0x30], eax
cmove r9, rcx
mov eax, dword [rsp + 0x2a0]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov edx, 0x104
mov qword [rsp + 0x20], rsi
call sym.ErrorReportClient.exe_SfCchPrintF
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
xor edx, edx
mov rcx, rbx
call sym.ErrorReportClient.exe_SfCreateDirectory
xor ecx, ecx
mov edx, 0x80004005
test eax, eax
cmove ecx, edx
mov eax, ecx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14039bbb0
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret

Function at 0x1401a33a0
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, r9
mov edi, r8d
mov rbx, rcx
cmp edx, 0x104
jae 0x1401a33d5
mov eax, 0x80070057
jmp 0x1401a3448
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
mov edx, edi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, eax
test eax, eax
js 0x1401a3446
mov ecx, edi
call sym.ErrorReportClient.exe_SfIsHiddenFolderByDefault
test eax, eax
mov qword [rsp + 0x20], rsi
lea rcx, [0x140450e50]
mov edx, 0x104
lea r9, str.MAGIX_s_
cmove r9, rcx
xor r8d, r8d
lea rcx, [rsp + 0x30]
call sym.ErrorReportClient.exe_SfCchPrintF
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
xor edx, edx
mov rcx, rbx
call sym.ErrorReportClient.exe_SfCreateDirectory
xor ecx, ecx
mov edx, 0x80004005
test eax, eax
cmove ecx, edx
mov eax, ecx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14039bbb0
add rsp, 0x250
pop rdi
pop rsi
pop rbx
ret

Function at 0x1401a34f0
Capabilities:
Query or enumerate registry value

Disassembly:
lea r8, str.SharedComponentsFolder
jmp fcn.1401a4170
Function at 0x1401a3650
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
test rcx, rcx
je 0x1401a3774
movsxd rax, edx
lea rdi, str.CinescoreThemesFolder
mov rdi, qword [rdi + rax*8]
test rdi, rdi
je 0x1401a3774
lea rax, str.Shared_Information
mov qword [rsp + 0x2a0], rsi
mov qword [rsp + 0x28], rax
lea r9, str._s_s
lea rax, str.SoftwareMAGIX
xor r8d, r8d
mov edx, 0x104
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x60]
call sym.ErrorReportClient.exe_SfCchPrintF
xor esi, esi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rsi
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1401a3763
mov rax, 0xffffffffffffffff
cmp word [rbx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x1401a3710
lea ecx, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], ecx
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov ebx, 0x8004e142
test eax, eax
cmove ebx, esi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x2a0]
mov eax, ebx
jmp 0x1401a3779
mov rsi, qword [rsp + 0x2a0]
mov ebx, 0x8004e142
mov eax, ebx
jmp 0x1401a3779
mov eax, 0x80070057
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14039bbb0
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x280
pop rdi
ret
Function at 0x1401a3b70
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
push rbx
push r14
lea rbp, [rsp - 0x7c0]
sub rsp, 0x8c0
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
xor ebx, ebx
mov r14, rdx
mov r8, rcx
mov qword [rsp + 0x20], rbx
mov edx, 0x104
lea rcx, [rbp + 0x180]
lea r9, [rbx - 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea rcx, [rbp + 0x180]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], bx
lea rax, [rax + 1]
jne 0x1401a3bd0
lea ecx, [rax - 1]
mov eax, 0x5c
cmp ax, word [rbp + rcx*2 + 0x180]
je 0x1401a3c0a
lea r9, [rax - 0x5d]
mov edx, 0x104
lea r8, [0x14044bfc8]
lea rcx, [rbp + 0x180]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x180]
mov edx, 0x104
lea rcx, [rbp + 0x5a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov r9, 0xffffffffffffffff
lea r8, [0x140450db0]
mov edx, 0x104
lea rcx, [rbp + 0x5a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
test r14, r14
jne 0x1401a3c59
mov eax, 0x80070057
jmp 0x1401a3daf
mov qword [rsp + 0x8f0], rsi
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x5a0]
mov qword [rsp + 0x8f8], rdi
mov qword [r14], rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
mov eax, 1
cmp rsi, 0xffffffffffffffff
je 0x1401a3d89
test eax, eax
je 0x1401a3d89
test byte [rsp + 0x30], 0x10
je 0x1401a3d64
lea rdx, [rsp + 0x5c]
lea rcx, [0x140450b08]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1401a3d76
lea rdx, [rsp + 0x5c]
lea rcx, [0x140450db8]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1401a3d76
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x180]
mov edx, 0x104
lea rcx, [rbp + 0x390]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov r9, 0xffffffffffffffff
lea r8, [rsp + 0x5c]
mov edx, 0x104
lea rcx, [rbp + 0x390]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
mov r9, 0xffffffffffffffff
lea r8, [0x14044bfc8]
mov edx, 0x104
lea rcx, [rbp + 0x390]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x390]
call sym.ErrorReportClient.exe_SfGetDirectorySize
mov edi, eax
test eax, eax
js 0x1401a3d8e
add rbx, qword [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x1401a3c90
mov ecx, dword [rsp + 0x4c]
mov eax, dword [rsp + 0x50]
shl rcx, 0x20
add rbx, rax
add rbx, rcx
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x1401a3c90
mov qword [r14], rbx
xor edi, edi
cmp rsi, 0xffffffffffffffff
je 0x1401a3d9d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rsi, qword [rsp + 0x8f0]
mov eax, edi
mov rdi, qword [rsp + 0x8f8]
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.14039bbb0
add rsp, 0x8c0
pop r14
pop rbx
pop rbp
ret