joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140198240
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get common file path
Move file

Disassembly:
test rcx, rcx
je 0x1401984b1
mov qword [rsp + 0x18], rbx
push rbp
sub rsp, 0x980
cmp byte [rcx], 0
mov ebp, edx
mov rbx, rcx
je 0x1401984a1
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140198270
cmp rax, 4
jb 0x1401984a1
movzx eax, byte [rcx]
cmp al, byte [0x1402c4c9c]
jne 0x1401982bf
movzx eax, byte [rcx + 1]
cmp al, byte [0x1402c4c9d]
jne 0x1401982bf
movzx eax, byte [rcx + 2]
cmp al, byte [0x1402c4c9e]
jne 0x1401982bf
add rcx, 2
mov edx, 0x5c
call fcn.14024a10c
test rax, rax
je 0x1401984a1
jmp 0x1401982d3
cmp byte [rcx + 1], 0x3a
jne 0x1401984a1
cmp byte [rcx + 2], 0x5c
jne 0x1401984a1
mov qword [rsp + 0x990], rsi
mov ecx, 0x410
mov qword [rsp + 0x998], rdi
call fcn.140247068
mov r8, rbx
mov edx, 0x410
mov rcx, rax
mov rdi, rax
call fcn.140253604
lea rdx, [0x14028db80]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140198477
nop dword [rax + rax]
test byte [rsp + 0x20], 0x10
jne 0x1401983f6
mov r8, rbx
mov edx, 0x410
mov rcx, rdi
call fcn.140253604
lea rdx, [rsp + 0x4c]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
xor edx, edx
lea rcx, [rsp + 0x160]
mov r8d, 0x410
call fcn.140249b10
lea rdx, [rsp + 0x160]
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
xor edx, edx
lea rcx, [rsp + 0x570]
mov r8d, 0x410
call fcn.140249b10
lea r9, [rsp + 0x570]
xor r8d, r8d
lea rdx, str.SASU
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea rdx, [rsp + 0x570]
lea rcx, [rsp + 0x160]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rdx, [rsp + 0x160]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileA]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x140198458
movzx ecx, byte [rsp + 0x4c]
cmp cl, byte [0x14028b4b8]
movzx eax, byte [rsp + 0x4d]
jne 0x140198410
cmp al, byte [0x14028b4b9]
je 0x140198458
cmp cl, byte [0x14029b36c]
jne 0x14019842d
cmp al, byte [0x14029b36d]
jne 0x14019842d
movzx eax, byte [rsp + 0x4e]
cmp al, byte [0x14029b36e]
je 0x140198458
mov r8, rbx
mov edx, 0x410
mov rcx, rdi
call fcn.140253604
lea rdx, [rsp + 0x4c]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
mov edx, 1
mov rcx, rdi
call fcn.140198240
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140198330
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov edx, 1
mov rcx, rdi
call fcn.140247060
mov rdi, qword [rsp + 0x998]
mov rsi, qword [rsp + 0x990]
test ebp, ebp
je 0x1401984a1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov rbx, qword [rsp + 0x9a0]
add rsp, 0x980
pop rbp
ret
Function at 0x1401a0910
Capabilities:
Get file version info

Disassembly:
push rbx
push rbp
push rdi
push r14
sub rsp, 0x158
xor eax, eax
mov ebx, r8d
mov r14, rdx
mov qword [rsp + 0x30], rax
mov rdi, rcx
mov qword [rsp + 0x38], rax
xor edx, edx
mov qword [rsp + 0x40], rax
mov r8d, 0x100
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x50]
call fcn.140249b10
mov r8d, ebx
xor edx, edx
mov rcx, r14
mov ebp, ebx
call fcn.140249b10
lea rdx, [rsp + 0x198]
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test eax, eax
je 0x1401a0b38
mov ecx, ebx
mov qword [rsp + 0x150], r15
call fcn.140247068
mov edx, dword [rsp + 0x198]
mov r9, rax
mov r8d, ebx
mov rcx, rdi
mov r15, rax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1401a0b1e
lea r9, [rsp + 0x20]
mov rcx, r15
lea r8, [rsp + 0x28]
lea rdx, str.VarFileInfoTranslation
call sub.VERSION.dll_VerQueryValueA
mov rax, qword [rsp + 0x28]
lea rdx, str._04x_04x
lea rcx, [rsp + 0x30]
movzx r9d, word [rax + 2]
movzx r8d, word [rax]
call fcn.140006bc0
movups xmm0, xmmword [str.StringFileInfo_]
movzx eax, byte [0x1402b3f88]
lea rcx, [rsp + 0x50]
mov byte [rsp + 0x60], al
dec rcx
movaps xmmword [rsp + 0x50], xmm0
nop dword [rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1401a0a00
lea r8, [rsp + 0x30]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1401a0a20
lea rcx, [rsp + 0x50]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1401a0a40
mov eax, dword [0x1402b3f98]
lea r9, [rsp + 0x20]
movsd xmm0, qword [str.FileVersion]
lea r8, [rsp + 0x28]
movsd qword [rcx], xmm0
lea rdx, [rsp + 0x50]
mov dword [rcx + 8], eax
movzx eax, byte [0x1402b3f9c]
mov byte [rcx + 0xc], al
mov rcx, r15
call sub.VERSION.dll_VerQueryValueA
mov rbx, qword [rsp + 0x28]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x1401a0a90
xor edi, edi
mov ecx, 0x20
mov word [rsp + 0x190], cx
mov byte [r14], dil
test eax, eax
je 0x1401a0b16
mov qword [rsp + 0x180], rsi
mov esi, eax
nop dword [rax]
movzx eax, byte [rbx]
cmp al, 0x2c
jne 0x1401a0ad7
inc edi
cmp edi, 3
jae 0x1401a0b05
lea r8, [0x14028b4b8]
jmp 0x1401a0afa
cmp edi, 2
je 0x1401a0b05
movsx ecx, al
call fcn.140250738
test eax, eax
je 0x1401a0b05
movzx eax, byte [rbx]
lea r8, [rsp + 0x190]
mov byte [rsp + 0x190], al
mov rdx, rbp
mov rcx, r14
call fcn.1402504d8
inc rbx
sub rsi, 1
jne 0x1401a0ac0
mov rsi, qword [rsp + 0x180]
mov rcx, r15
call fcn.140247060
mov r15, qword [rsp + 0x150]
mov eax, 1
add rsp, 0x158
pop r14
pop rdi
pop rbp
pop rbx
ret
xor eax, eax
add rsp, 0x158
pop r14
pop rdi
pop rbp
pop rbx
ret
Function at 0x1401a2890
Capabilities:
Shutdown system

Disassembly:
push rdi
sub rsp, 0x160
mov qword [rsp + 0x40], 0xfffffffffffffffe
lea rax, vtable.CFunctionEnterExit.0
mov qword [rsp + 0x48], rax
lea rdi, str.ncsSABRebootSystem
mov qword [rsp + 0x50], rdi
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x60]
call fcn.140249b10
mov r8, rdi
lea rdx, [0x1402862f8]
lea rcx, [rsp + 0x60]
call fcn.140006bc0
mov r9d, 1
mov r8d, r9d
lea rdx, [rsp + 0x60]
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140004a50
nop
call fcn.1400fb560
mov qword [rsp + 0x170], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x170]
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1401a297a
lea r8, [rsp + 0x34]
lea rdx, str.SeShutdownPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x3c], 2
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, qword [rsp + 0x170]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [0x14037adb0]
test rcx, rcx
je 0x1401a2998
mov rax, qword [rcx]
xor r8d, r8d
lea edx, [r8 + 6]
call qword [rax + 0x290]
jmp 0x1401a29a4
xor edx, edx
lea ecx, [rdx + 6]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
nop
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x60]
call fcn.140249b10
mov r8, rdi
lea rdx, str._s___Leavex
lea rcx, [rsp + 0x60]
call fcn.140006bc0
mov r9d, 1
mov r8d, r9d
lea rdx, [rsp + 0x60]
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140004a50
nop
mov eax, 1
add rsp, 0x160
pop rdi
ret
Function at 0x1401ab030
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
xor r14d, r14d
mov rcx, 0xffffffffffffffff
mov ebp, r14d
mov rax, rcx
mov rsi, rdx
inc rax
cmp word [rdx + rax*2], bp
jne 0x1401ab053
cmp rax, 4
jb 0x1401ab18f
mov qword [rsp + 0x30], rbx
mov rbx, rcx
mov qword [rsp + 0x38], rdi
inc rbx
cmp word [rdx + rbx*2], bp
jne 0x1401ab073
inc rbx
mov eax, 2
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.140247068
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.140251ec0
mov r8d, 2
lea rdx, [0x14028c05c]
mov rcx, rdi
call fcn.140252028
mov esi, 0x5c
test eax, eax
jne 0x1401ab0f0
mov edx, esi
lea rcx, [rdi + 4]
call fcn.140249da8
test rax, rax
je 0x1401ab178
mov edx, esi
lea rcx, [rax + 2]
call fcn.140249da8
test rax, rax
je 0x1401ab178
lea rbx, [rax + 2]
jmp 0x1401ab10e
lea rcx, [rdi + 2]
mov r8d, 2
lea rdx, [0x1402c69f0]
call fcn.140252028
test eax, eax
jne 0x1401ab178
lea rbx, [rdi + 6]
test rbx, rbx
je 0x1401ab178
cmp word [rbx], bp
je 0x1401ab178
nop dword [rax + rax]
mov edx, esi
mov rcx, rbx
call fcn.140249da8
mov rbx, rax
test rax, rax
je 0x1401ab178
mov rcx, rdi
mov word [rax], r14w
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1401ab14f
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov word [rbx], si
add rbx, 2
cmp eax, 0xffffffff
je 0x1401ab175
test al, 0x10
je 0x1401ab175
mov ebp, 1
cmp word [rbx], r14w
jne 0x1401ab120
jmp 0x1401ab178
mov ebp, r14d
mov edx, 2
mov rcx, rdi
call fcn.140247060
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x48]
mov eax, ebp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1401ac8c0
Capabilities:
Contain obfuscated stackstrings
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov rax, rsp
push rbp
push rbx
lea rbp, [rax - 0x5f]
sub rsp, 0xb8
mov qword [rax + 0x10], rdi
lea rcx, [rbp - 0x21]
xor ebx, ebx
mov qword [rax + 0x18], r14
mov qword [rax - 0x18], r15
mov rdi, r9
mov r14d, r8d
mov r15, rdx
mov dword [r9], ebx
xor r8d, r8d
lea r9d, [rbx + 0x18]
mov qword [rbp - 0x21], rbx
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1401aca73
mov qword [rsp + 0xd0], rsi
mov esi, r14d
and esi, 0xffffffc0
mov dword [rbp - 9], 0x390061
add esi, 0x40
mov dword [rbp - 5], 0x650061
mov ecx, esi
mov dword [rbp - 1], 0x300038
mov dword [rbp + 3], 0x330035
mov dword [rbp + 7], 0x620061
mov dword [rbp + 0xb], 0x320035
mov dword [rbp + 0xf], 0x370065
mov dword [rbp + 0x13], 0x620038
mov dword [rbp - 0x19], 0x390035
mov dword [rbp - 0x15], 0x350037
mov dword [rbp - 0x11], 0x610038
mov dword [rbp - 0xd], 0x660039
call fcn.140247068
mov r8d, r14d
mov dword [rbp + 0x7f], r14d
mov rdx, r15
mov rcx, rax
mov rbx, rax
call fcn.1402496a0
movups xmm0, xmmword [rbp - 9]
mov rcx, qword [rbp - 0x21]
xor eax, eax
movups xmm1, xmmword [rbp + 7]
mov qword [rbp + 0x18], rax
lea rdx, [rbp + 0x17]
mov qword [rbp + 0x20], rax
xor r9d, r9d
mov qword [rbp + 0x30], rax
mov qword [rbp - 0x29], rax
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 0x2c]
mov dword [rsp + 0x20], 1
mov word [rbp + 0x17], 0x208
mov dword [rbp + 0x1b], 0x6610
mov dword [rbp + 0x1f], 0x20
movups xmmword [rbp + 0x23], xmm0
movups xmmword [rbp + 0x33], xmm1
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x1401aca57
mov rcx, qword [rbp - 0x29]
lea r8, [rbp - 0x19]
xor r9d, r9d
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x1401aca45
mov rcx, qword [rbp - 0x29]
lea rax, [rbp + 0x7f]
xor r9d, r9d
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rbx
lea r8d, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x1401aca45
mov eax, dword [rbp + 0x7f]
mov rcx, qword [rbp - 0x29]
mov dword [rdi], eax
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x1401aca5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x1401aca5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 0x21]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rsi, qword [rsp + 0xd0]
jmp 0x1401aca79
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [rdi], 0
mov rdi, qword [rsp + 0xd8]
mov r15, qword [rsp + 0xb0]
mov r14, qword [rsp + 0xe0]
jne 0x1401acab4
test rbx, rbx
je 0x1401acab4
mov edx, 1
mov rcx, rbx
call fcn.140247060
xor eax, eax
add rsp, 0xb8
pop rbx
pop rbp
ret
mov rax, rbx
add rsp, 0xb8
pop rbx
pop rbp
ret
Function at 0x1401acf10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x50
mov r11, qword [rcx + 0x18]
xor edi, edi
mov dword [rcx + 8], edi
mov r14, r8
mov rbx, rcx
test r11, r11
je 0x1401ad122
mov r9, qword [rcx + 0x38]
mov r10d, edi
mov rax, qword [r9]
cmp rax, r9
je 0x1401ad129
cmp edx, r10d
je 0x1401acf5d
mov rax, qword [rax]
inc r10d
cmp rax, r9
jne 0x1401acf48
jmp 0x1401ad129
mov rcx, qword [rax + 0x10]
mov eax, dword [rcx + 8]
cmp eax, 0xffffffff
je 0x1401ad129
cmp eax, dword [rbx + 0x20]
jae 0x1401ad129
add rax, r11
mov rdx, rdi
mov rsi, rdi
mov r8d, dword [rax]
add r8, rax
mov qword [rsp + 0x48], rdi
add rax, 4
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x88], rdi
cmp rax, r8
jae 0x1401ad129
movzx ecx, byte [rax]
inc rax
cmp cl, 2
je 0x1401acfd2
cmp cl, 0xff
jne 0x1401acfe1
mov ecx, dword [rax]
mov dword [rsp + 0x48], ecx
mov ecx, dword [rax + 4]
add rax, 8
mov dword [rsp + 0x40], ecx
mov rsi, rax
mov rdx, qword [rsp + 0x40]
add rax, rdx
jmp 0x1401acfe1
mov rcx, qword [rax]
add rax, 8
mov qword [rsp + 0x88], rcx
cmp rax, r8
jb 0x1401acfa4
test rsi, rsi
je 0x1401ad129
test rdx, rdx
je 0x1401ad129
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1401ad129
mov qword [rsp + 0x78], rbp
call fcn.140247068
sub qword [rsp + 0x40], 5
lea r8, [rsi + 5]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], 5
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x20], rsi
mov rcx, rax
mov rbp, rax
call fcn.140001020
test eax, eax
jne 0x1401ad10e
mov rdx, r14
mov rcx, rbx
call fcn.1401ab030
test eax, eax
je 0x1401ad107
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1401ad0fe
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x70]
mov rdx, rbp
mov qword [rsp + 0x20], rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1401ad0be
mov eax, dword [rsp + 0x70]
cmp qword [rsp + 0x48], rax
jne 0x1401ad0b7
mov edi, 1
jmp 0x1401ad0be
mov dword [rbx + 8], 5
cmp dword [rsp + 0x8c], 0
jne 0x1401ad0d2
cmp dword [rsp + 0x88], 0
je 0x1401ad0f3
lea r9, [rsp + 0x88]
mov rcx, rsi
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1401ad10e
mov dword [rbx + 8], 4
jmp 0x1401ad10e
mov dword [rbx + 8], 7
mov edx, 1
mov rcx, rbp
call fcn.140247060
mov rbp, qword [rsp + 0x78]
jmp 0x1401ad129
mov dword [rcx + 8], 3
mov rbx, qword [rsp + 0x80]
mov eax, edi
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x1401ad200
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
push r14
push r15
sub rsp, 0x40
xor edi, edi
mov rax, rdx
mov r15d, r8d
mov dword [rcx + 8], edi
mov rbx, rcx
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
xor r9d, r9d
lea r8d, [rdi + 1]
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1401ad314
mov qword [rsp + 0x68], rbp
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x70], rsi
mov dword [rbx + 8], edi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov ebp, eax
call fcn.140247068
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rdi
mov r8d, ebp
mov rdx, rax
mov rcx, r14
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401ad2dc
cmp dword [rsp + 0x60], ebp
jne 0x1401ad2dc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1401ad2b7
lea edx, [rdi + 1]
call fcn.140247060
mov rcx, rbx
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
call fcn.140191650
xor r9d, r9d
mov qword [rbx + 0x10], rsi
mov r8d, ebp
mov qword [rbx + 0x18], rsi
mov rdx, rsi
mov dword [rbx + 0x20], ebp
mov rcx, rbx
mov dword [rsp + 0x20], r15d
call fcn.1401916e0
mov edi, eax
jmp 0x1401ad2f0
mov edx, 1
mov dword [rbx + 8], 2
mov rcx, rsi
call fcn.140247060
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x70]
mov eax, edi
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
mov dword [rbx + 8], 1
mov eax, edi
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1401b1fd0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x180
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov r9d, 1
mov r8d, r9d
lea rdx, str.SASDef_Initialize
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140004a50
cmp qword [0x14037b518], 0
jne 0x1401b2159
mov ecx, PathResolve
call fcn.14018ef40
mov rbx, rax
mov qword [rsp + 0x190], rax
test rax, rax
je 0x1401b2150
lea rax, vtable.CSynchronousRuleUpdateManager.0
mov qword [rbx], rax
mov qword [rbx + 8], 0
mov dword [rbx + 0x28], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x20], rax
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
lea edx, [rax + 1]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x30], reloc.OLEAUT32.dll_SafeArrayGetElement
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea r9, str.Global_sasruleupdatewait
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, qword [rbx + 0x18]
lea rdx, str.CSynchronousRuleUpdateManager___m_hRuleUpdateWait___x______x
lea rcx, [rsp + 0x80]
call fcn.140006bc0
mov r9d, 1
mov r8d, r9d
lea rdx, [rsp + 0x80]
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140004a50
cmp qword [rbx + 0x18], 0
je 0x1401b2152
mov dword [rsp + 0x190], 0
lea rax, [rsp + 0x190]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x10000
mov r9, rbx
lea r8, [0x1401b5230]
mov edx, 0x100000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x1401b2152
xor ebx, ebx
mov qword [0x14037b518], rbx
add rsp, 0x180
pop rbx
ret
Function at 0x1401b33c0
Capabilities:
Copy file

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x978]
sub rsp, 0xa70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
lea rax, vtable.CFunctionEnterExit.0
mov qword [rsp + 0x28], rax
lea rdi, str.SASDef_RestoreWorkingDefinitions
mov qword [rsp + 0x30], rdi
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x50]
call fcn.140249b10
mov r8, rdi
lea rdx, [0x1402862f8]
lea rcx, [rbp + 0x50]
call fcn.140006bc0
mov r9d, 1
mov r8d, r9d
lea rdx, [rbp + 0x50]
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140004a50
nop
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x150]
call fcn.140249b10
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x40]
call fcn.140249b10
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x560]
call fcn.140249b10
mov rdx, qword [0x1403517c8]
add rdx, 0x38
lea rcx, [rbp + 0x560]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [rbp + 0x560]
call fcn.1400fca30
mov r9d, 1
mov r8d, r9d
lea rdx, [rbp + 0x560]
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140004a50
lea rdx, [rbp + 0x560]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, str.PROCESSLIST.BIN.WORKING
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
mov r9d, 1
mov r8d, r9d
lea rdx, [rsp + 0x40]
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140004a50
lea rdx, [rbp + 0x560]
lea rcx, [rbp + 0x150]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, str.PROCESSLIST.BIN
lea rcx, [rbp + 0x150]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
mov r9d, 1
mov r8d, r9d
lea rdx, [rbp + 0x150]
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140004a50
xor r8d, r8d
lea rdx, [rbp + 0x150]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x1401b355a
lea rdx, str.Failed_File_Copy_Core
jmp 0x1401b35fc
lea rdx, [0x14034e928]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, str.PROCESSLISTRELATED.DB
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
mov r9d, 1
mov r8d, r9d
lea rdx, [rsp + 0x40]
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140004a50
lea rdx, [rbp + 0x560]
lea rcx, [rbp + 0x150]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, str.PROCESSLISTRELATED.DB
lea rcx, [rbp + 0x150]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
mov r9d, 1
mov r8d, r9d
lea rdx, [rbp + 0x150]
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140004a50
xor r8d, r8d
lea rdx, [rbp + 0x150]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x1401b3615
lea rdx, str.Failed_File_Copy_Trace
mov r9d, 1
mov r8d, r9d
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140004a50
xor ebx, ebx
jmp 0x1401b361a
mov ebx, 1
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x50]
call fcn.140249b10
mov r8, rdi
lea rdx, str._s___Leavex
lea rcx, [rbp + 0x50]
call fcn.140006bc0
mov r9d, 1
mov r8d, r9d
lea rdx, [rbp + 0x50]
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140004a50
nop
mov eax, ebx
lea r11, [rsp + 0xa70]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x1401b3670
Capabilities:
Check mutex on windows

Disassembly:
push rdi
mov eax, 0x1340
call fcn.140247340
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x1350], rbx
mov qword [rsp + 0x1358], rsi
mov edi, ecx
cmp dword [0x14037cae8], 0
je 0x1401b36c6
mov r9d, 1
mov r8d, r9d
lea rdx, str.Scanner_Busy
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140004a50
xor eax, eax
jmp 0x1401b38c8
cmp dword [0x14037b4f4], 0
je 0x1401b36f2
mov r9d, 1
mov r8d, r9d
lea rdx, str.Update_already_in_progress
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140004a50
xor eax, eax
jmp 0x1401b38c8
mov rbx, qword [0x14037b518]
lea rax, vtable.CFunctionEnterExit.0
mov qword [rsp + 0x28], rax
lea rsi, str.AcquireUpdateLock
mov qword [rsp + 0x30], rsi
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x40]
call fcn.140249b10
mov r8, rsi
lea rdx, [0x1402862f8]
lea rcx, [rsp + 0x40]
call fcn.140006bc0
mov r9d, 1
mov r8d, r9d
lea rdx, [rsp + 0x40]
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140004a50
nop
xor edx, edx
mov r8d, 0xfe8
lea rcx, [rsp + 0x358]
call fcn.140249b10
movups xmm0, xmmword [str.Global_sasappruleupdate]
movaps xmmword [rsp + 0x340], xmm0
movsd xmm1, qword [0x1402c6e40]
movsd qword [rsp + 0x350], xmm1
mov r9d, 1
mov r8d, r9d
lea rdx, [rsp + 0x340]
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140004a50
lea r8, [rsp + 0x340]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rbx + 8], rax
mov edx, 0x3e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r9d, 1
lea rcx, vtable.CSASApplicationLogManager.0
mov r8d, r9d
test eax, 0xffffff7f
je 0x1401b3866
lea rdx, str.Another_Process_Is_Updating
call fcn.140004a50
nop
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x140]
call fcn.140249b10
mov r8, rsi
lea rdx, str._s___Leavex
lea rcx, [rsp + 0x140]
call fcn.140006bc0
mov r9d, 1
mov r8d, r9d
lea rdx, [rsp + 0x140]
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140004a50
nop
mov r9d, 1
mov r8d, r9d
lea rdx, str.Update_Lock_Held
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140004a50
mov rcx, qword [0x14037b518]
call fcn.1401aea50
xor eax, eax
jmp 0x1401b38c8
lea rdx, str.No_Other_Process_Is_Updating
call fcn.140004a50
nop
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x240]
call fcn.140249b10
mov r8, rsi
lea rdx, str._s___Leavex
lea rcx, [rsp + 0x240]
call fcn.140006bc0
mov r9d, 1
mov r8d, r9d
lea rdx, [rsp + 0x240]
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140004a50
nop
mov dword [0x14037b4f0], edi
mov eax, 1
lea r11, [rsp + 0x1340]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret