joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f9c70
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rax, vtable.WinThread.0
mov qword [rcx], rax
xor ebp, ebp
cmp qword [rcx + 0x18], rbp
je 0x1400f9cdd
call qword [method.RegistryWatcher.virtual_16]
mov edx, 0x2710
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1400f9cc1
xor edx, edx
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x18], rbp
mov rcx, qword [rdi + 0x68]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov byte [rdi + 0x60], bpl
mov rbx, qword [rdi + 0x20]
cmp rbx, qword [rdi + 0x28]
je 0x1400f9cfa
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 8
cmp rbx, qword [rdi + 0x28]
jne 0x1400f9ce7
mov rcx, qword [rdi + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi + 0xa0]
cmp rdx, 0x10
jb 0x1400f9d45
inc rdx
mov rcx, qword [rdi + 0x88]
cmp rdx, 0x1000
jb 0x1400f9d40
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400f9e28
mov rcx, r8
call fcn.1400e6a28
mov qword [rdi + 0x98], rbp
mov qword [rdi + 0xa0], SafeArrayGetLBound
mov byte [rdi + 0x88], bpl
mov rax, qword [rdi + 0x70]
mov rbx, qword [rax + 8]
cmp byte [rbx + 0x19], bpl
jne 0x1400f9d97
nop dword [rax]
mov r8, qword [rbx + 0x10]
lea rdx, [rdi + 0x70]
lea rcx, [rdi + 0x70]
call fcn.1400f99a0
mov rcx, rbx
mov rbx, qword [rbx]
mov edx, 0x28
call fcn.1400e6a28
cmp byte [rbx + 0x19], bpl
je 0x1400f9d70
mov edx, 0x28
mov rcx, qword [rdi + 0x70]
call fcn.1400e6a28
lea rcx, [rdi + 0x38]
call fcn.1400c2fc0
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x1400f9df4
mov rdx, qword [rdi + 0x30]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
cmp rdx, 0x1000
jb 0x1400f9de3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400f9e28
mov rcx, r8
call fcn.1400e6a28
mov qword [rdi + 0x20], rbp
mov qword [rdi + 0x28], rbp
mov qword [rdi + 0x30], rbp
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1400f9e13
mov eax, 0xffffffff
lock xadd dword [rcx + 0xc], eax
cmp eax, 1
jne 0x1400f9e13
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1400f9f90
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x18], 0
mov edi, edx
mov rbx, rcx
je 0x1400f9feb
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, qword [rbx + 0x18]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1400f9fcb
mov rcx, qword [rbx + 0x18]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x68]
mov qword [rbx + 0x18], 0
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov byte [rbx + 0x60], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400fa000
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x18], 0
mov edi, edx
mov rbx, rcx
je 0x1400fa023
mov al, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
xor eax, eax
lea r8, [0x1400fa4d0]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x1400fa056
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov byte [rbx + 0x60], 1
test edi, edi
je 0x1400fa06a
mov rcx, qword [rbx + 0x68]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp qword [rbx + 0x18], 0
mov rbx, qword [rsp + 0x40]
setne al
add rsp, 0x30
pop rdi
ret
Function at 0x140109660
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x50
mov byte [rsp + 0x60], 0
lea rcx, [rsp + 0x20]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_
nop
lea rax, [rsp + 0x20]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x30]
lea rdx, [0x140108120]
lea rcx, [0x140378338]
call sub.MSVCP140.dll_int___cdecl_std::_Execute_once_struct_std::once_flag____ptr64__int____cdecl___void____ptr64__void____ptr64__void____ptr64____ptr64___void____ptr64_
test eax, eax
je 0x140109703
lea rcx, [rsp + 0x20]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_
mov ecx, dword [0x140378330]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1401096d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1401096d6
test rbx, rbx
jne 0x1401096fa
xor r8d, r8d
lea rdx, str.SecLogging
xor ecx, ecx
call qword [sym.imp.ASL.dll_asl_open]
mov rbx, rax
mov rdx, rax
mov ecx, dword [0x140378330]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov rax, rbx
add rsp, 0x50
pop rbx
ret
lea rcx, [rsp + 0x20]
call sub.MSVCP140.dll_bool___cdecl___ExceptionPtrToBool_void_const____ptr64_
test al, al
je 0x140109729
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1400d2ea0
mov rcx, rax
call fcn.1400da8b0
int3
call sub.MSVCP140.dll_void___cdecl_std::_XGetLastError_void_
int3
Function at 0x14010f330
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movzx eax, dl
mov rbx, r9
sub eax, 5
mov r11d, edx
mov rdi, rcx
cmp eax, 1
ja 0x14010f3b4
movsxd r8, dword [rsp + 0x50]
lea rdx, [0x140000000]
mov r10d, dword [0x14034909c]
cmp r8d, r10d
jge 0x14010f378
mov r9d, dword [rdx + r8*4 + 0x349088]
mov r8d, dword [rdx + r8*4 + 0x3490a0]
jmp 0x14010f396
sub r8d, r10d
lea eax, [r10 - 1]
movsxd rcx, eax
mov r9d, dword [rdx + rcx*4 + 0x349088]
imul r8d, r9d
add r8d, dword [rdx + rcx*4 + 0x3490a0]
cmp r8d, 0x493e0
jge 0x14010f3b4
mov ecx, r9d
call fcn.1401b60b0
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov r8, qword [rsp + 0x58]
mov r9, rbx
mov edx, r11d
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14010d0f0
Function at 0x140118c40
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x100
mov rax, qword [0x1403486d0]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov r14, r9
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov r12, qword [rsp + 0x168]
mov r15, qword [rsp + 0x178]
mov rax, qword [rsp + 0x188]
mov qword [rsp + 0x78], rax
mov r13, qword [rsp + 0x190]
mov rax, qword [rsp + 0x198]
mov qword [rsp + 0x60], rax
xor eax, eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x20], eax
lea r9d, [rax + 0xf]
lea r8, str.ChainingModeGCM
lea rdx, str.ChainingMode
mov rcx, qword [rcx]
call sub.bcrypt.dll_BCryptSetProperty
mov dword [rsp + 0x28], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x70]
lea rdx, str.BlockLength
mov rcx, qword [rsi]
call sub.bcrypt.dll_BCryptGetProperty
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, qword [rsi]
call sub.bcrypt.dll_BCryptGenerateSymmetricKey
test eax, eax
jne 0x140118e61
xor eax, eax
mov qword [rsp + 0xe0], rax
mov dword [rsp + 0xe8], eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
mov qword [rsp + 0xd0], rax
mov dword [rsp + 0x80], 0x58
mov dword [rsp + 0x84], 1
mov qword [rsp + 0x98], r12
mov eax, dword [rsp + 0x170]
mov dword [rsp + 0xa0], eax
mov qword [rsp + 0xa8], r13
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
mov dword [rsp + 0xb0], eax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x90], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov edi, dword [rsp + 0x160]
mov ebx, dword [rsp + 0x180]
xor esi, esi
mov dword [rsp + 0x48], esi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x80]
mov r8d, ebx
mov rdx, r15
mov rcx, qword [rsp + 0x68]
call sub.bcrypt.dll_BCryptDecrypt
test eax, eax
jne 0x140118e84
mov dword [rsp + 0x48], esi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x80]
mov r8d, ebx
mov rdx, r15
mov rcx, qword [rsp + 0x68]
call sub.bcrypt.dll_BCryptDecrypt
mov ebx, eax
test eax, eax
jne 0x140118e99
jmp 0x140118e55
mov rcx, qword [rsp + 0x68]
call fcn.14026075c
mov eax, ebx
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1400e6b50
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov dword [rsp + 0x54], eax
lea rdx, [0x14033d188]
lea rcx, [rsp + 0x54]
call sub.VCRUNTIME140.dll__CxxThrowException
mov dword [rsp + 0x58], eax
lea rdx, [0x14033d188]
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140118eb0
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
sub rsp, 0x50
xor edi, edi
xor r9d, r9d
mov qword [rax - 0x38], rdi
mov esi, edx
mov qword [rax - 0x40], rdi
mov rbp, rcx
mov dword [rax + 0x18], edi
lea rax, [rax + 0x18]
lea r8d, [rdi + 1]
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x140118fb8
mov ecx, dword [rsp + 0x80]
mov qword [rsp + 0x70], rbx
call fcn.1400e6a30
mov rbx, rax
mov qword [rsp + 0x30], rdi
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rdi
mov r9, rbx
mov qword [rsp + 0x20], rax
lea r8d, [rdi + 1]
mov edx, esi
mov rcx, rbp
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x140118f9b
mov r8d, dword [rsp + 0x80]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.CoreFoundation.dll_CFDataCreate]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x88], rdi
mov rsi, rax
xor r8d, r8d
lea rax, [rsp + 0x88]
mov rdx, rsi
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.CoreFoundation.dll_CFPropertyListCreateWithData]
mov rcx, qword [rsp + 0x88]
mov rdi, rax
test rcx, rcx
je 0x140118f8d
call qword [sym.imp.CoreFoundation.dll_CFShow]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.CoreFoundation.dll_CFRelease]
test rsi, rsi
je 0x140118f9b
mov rcx, rsi
call qword [sym.imp.CoreFoundation.dll_CFRelease]
test rbx, rbx
je 0x140118fa8
mov rcx, rbx
call fcn.1400e6a28
mov rbx, qword [rsp + 0x70]
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140118fd0
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x100
mov rax, qword [0x1403486d0]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov r14, r9
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov r12, qword [rsp + 0x168]
mov r15, qword [rsp + 0x178]
mov rax, qword [rsp + 0x188]
mov qword [rsp + 0x78], rax
mov r13, qword [rsp + 0x198]
mov rax, qword [rsp + 0x1a0]
mov qword [rsp + 0x60], rax
xor eax, eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x20], eax
lea r9d, [rax + 0xf]
lea r8, [0x1402a2720]
lea rdx, [0x1402a2740]
mov rcx, qword [rcx]
call sub.bcrypt.dll_BCryptSetProperty
mov dword [rsp + 0x28], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x70]
lea rdx, [0x1402a2760]
mov rcx, qword [rsi]
call sub.bcrypt.dll_BCryptGetProperty
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, qword [rsi]
call sub.bcrypt.dll_BCryptGenerateSymmetricKey
test eax, eax
jne 0x1401191fb
xor eax, eax
mov qword [rsp + 0xe0], rax
mov dword [rsp + 0xe8], eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
mov qword [rsp + 0xd0], rax
mov dword [rsp + 0x80], 0x58
mov dword [rsp + 0x84], 1
mov qword [rsp + 0x98], r12
mov eax, dword [rsp + 0x170]
mov dword [rsp + 0xa0], eax
mov qword [rsp + 0xa8], r13
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
mov dword [rsp + 0xb0], eax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x90], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov ebx, dword [rsp + 0x190]
mov edi, dword [rsp + 0x160]
mov esi, dword [rsp + 0x180]
xor r12d, r12d
mov dword [rsp + 0x48], r12d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x80]
mov r8d, esi
mov rdx, r15
mov rcx, qword [rsp + 0x68]
call sub.bcrypt.dll_BCryptEncrypt
test eax, eax
jne 0x14011921e
mov dword [rsp + 0x48], r12d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x80]
mov r8d, esi
mov rdx, r15
mov rcx, qword [rsp + 0x68]
call sub.bcrypt.dll_BCryptEncrypt
mov ebx, eax
test eax, eax
jne 0x140119233
jmp 0x1401191ef
mov rcx, qword [rsp + 0x68]
call fcn.14026075c
mov eax, ebx
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1400e6b50
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov dword [rsp + 0x54], eax
lea rdx, [0x14033d188]
lea rcx, [rsp + 0x54]
call sub.VCRUNTIME140.dll__CxxThrowException
mov dword [rsp + 0x58], eax
lea rdx, [0x14033d188]
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140119250
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
mov rax, r8
xor r8d, r8d
mov r9d, 2
test rcx, rcx
cmovne r9d, r8d
mov r8d, edx
mov rdx, rax
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
add rsp, 0x28
ret

Function at 0x140119280
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x40
mov r14, r8
mov rsi, rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov qword [rcx], rbx
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor ecx, ecx
lea r8d, [rbx + 0x64]
call qword [sym.imp.CoreFoundation.dll_CFPropertyListCreateData]
mov rbp, rax
mov dword [rsp + 0x78], ebx
mov rcx, rax
call qword [sym.imp.CoreFoundation.dll_CFDataGetLength]
mov rbx, rax
mov rcx, rbp
call qword [sym.imp.CoreFoundation.dll_CFDataGetBytePtr]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
lea r8d, [r9 + 1]
mov edx, ebx
mov rcx, rax
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x140119365
mov ecx, dword [rsp + 0x78]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400e6a30
mov rcx, qword [rsi]
mov qword [rsi], rax
test rcx, rcx
je 0x14011932d
call fcn.1400e6a28
mov eax, dword [rsp + 0x78]
mov dword [r14], eax
mov rdi, qword [rsi]
mov rcx, rbp
call qword [sym.imp.CoreFoundation.dll_CFDataGetLength]
mov rbx, rax
mov rcx, rbp
call qword [sym.imp.CoreFoundation.dll_CFDataGetBytePtr]
mov qword [rsp + 0x20], r14
mov r9, rdi
mov r8d, 1
mov edx, ebx
mov rcx, rax
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test rbp, rbp
je 0x140119373
mov rcx, rbp
call qword [sym.imp.CoreFoundation.dll_CFRelease]
mov rax, rsi
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x140120430
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
movzx esi, cl
mov rcx, qword [str.com.apple.security.keychainchanged]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [0x140274000]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test sil, sil
je 0x140120466
call sym.iCloudServices.exe_PL_ArenaFinish
mov rbx, qword [str.com.apple.security.keychainchanged]
lea rcx, [0x1402a42f4]
call qword [sym.imp.CoreFoundation.dll___CFStringMakeConstantString]
lea rcx, [0x1402a4370]
mov rdi, rax
call qword [sym.imp.CoreFoundation.dll___CFStringMakeConstantString]
mov qword [rsp + 0x40], rbx
lea rdx, str.SyncWithAllPeers_and
test sil, sil
lea rcx, [0x1402a3f5a]
lea r9, [0x1402a4300]
cmovne rcx, rdx
lea r8, [0x1402a4358]
mov qword [rsp + 0x38], rcx
mov rdx, rax
lea rcx, str.Sent__s_s
mov qword [rsp + 0x30], rcx
mov ecx, 4
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x77
call fcn.140109c60
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140123510
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1403486d0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x20]
mov rbx, rcx
xor edi, edi
lea rcx, [0x14028cbc8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor edx, edx
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jns 0x140123569
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
jmp 0x1401235d7
mov rdx, qword [rsp + 0x20]
lea r8, str.Apple_ComputerKeychains
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rdx, str.keychain_2.db
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rbx + 0x10], rdi
lea rax, [rsp + 0x30]
mov qword [rbx + 0x18], 7
mov r8, 0xffffffffffffffff
mov word [rbx], di
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], di
jne 0x1401235c0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400523d0
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400e6b50
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x140150100
Capabilities:
Print debug messages
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rcx
lea r8, [rsp + 0x58]
xor edi, edi
lea rdx, [0x1402ba080]
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x58], rdi
call qword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegCreateKeyA]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x60], rdi
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareApple_Inc.Internet_ServicesKCChanges
mov rcx, 0xffffffff80000001
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
cmp eax, 0x490
jne 0x14015017a
lea rcx, str.sec:_Key_not_found_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140150182
test eax, eax
jne 0x140150211
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
cmp qword [rbx + 0x18], 0x10
mov qword [rsp + 0x68], rax
jb 0x140150199
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x28], 8
mov r9d, VariantTimeToDosDateTime
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExA]
mov edi, eax
test eax, eax
je 0x140150211
lea rcx, str.Failed_to_update_the_registry:__d
call qword [sym.imp.CoreFoundation.dll___CFStringMakeConstantString]
lea rcx, [0x1402ba1a0]
mov rbx, rax
call qword [sym.imp.CoreFoundation.dll___CFStringMakeConstantString]
mov dword [rsp + 0x30], edi
lea r9, [0x1402ba150]
mov rdx, rax
mov qword [rsp + 0x28], rbx
lea r8, str.WriteRegistryUpdateFor
mov dword [rsp + 0x20], 0x393
mov ecx, 3
call fcn.140109c60
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140181c80
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x2a0
mov rax, qword [0x1403486d0]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov qword [rsp + 0x30], r8
mov sil, 1
lea rdx, [rsp + 0x80]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x140181ced
lea rcx, str.confstr_on__CS_DARWIN_USER_TEMP_DIR_returned_an_error.
call qword [sym.imp.CoreFoundation.dll___CFStringMakeConstantString]
mov r8, rax
mov rdx, rbx
mov ecx, 0xffffffff
call fcn.14010a050
movzx esi, al
jmp 0x140181d8d
mov r8d, eax
lea rdx, [rsp + 0x80]
xor ecx, ecx
call qword [sym.imp.CoreFoundation.dll_CFStringCreateWithCharacters]
mov rbp, rax
mov rbx, qword [r14 + 0x10]
lea rcx, str.__SOSBackup___
call qword [sym.imp.CoreFoundation.dll___CFStringMakeConstantString]
mov rcx, qword [sym.imp.CoreFoundation.dll_kCFAllocatorDefault]
mov qword [rsp + 0x20], rbx
mov r9, rbp
mov r8, rax
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.CoreFoundation.dll_CFStringCreateWithFormat]
mov rbx, rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x78], 0
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x140181d63
mov rdx, qword [rcx]
mov r8, qword [rdx]
lea rdx, [rsp + 0x40]
call r8
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14011a610
test rbx, rbx
je 0x140181d7e
mov rcx, rbx
call qword [sym.imp.CoreFoundation.dll_CFRelease]
test rbp, rbp
je 0x140181d8d
mov rcx, rbp
call qword [sym.imp.CoreFoundation.dll_CFRelease]
nop
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x140181daa
mov rax, qword [rcx]
cmp rcx, rdi
setne dl
call qword [rax + 0x20]
mov qword [rdi + 0x38], 0
movzx eax, sil
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400e6b50
add rsp, 0x2a0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1401824c0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
lea rcx, str.posting_notification_to_CloudServices:__s
call qword [sym.imp.CoreFoundation.dll___CFStringMakeConstantString]
lea rcx, [0x1402d5774]
mov rbx, rax
call qword [sym.imp.CoreFoundation.dll___CFStringMakeConstantString]
test rdi, rdi
lea rdx, [0x1402d545e]
lea r9, [0x1402d58f0]
mov ecx, 5
cmovne rdx, rdi
lea r8, str.SOSBackupPeerPostNotification
mov qword [rsp + 0x30], rdx
mov rdx, rax
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x1f3
call fcn.140109c60
lea rcx, str.com.apple.security.itembackup
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [0x140274000]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
jmp qword [sym.imp.KERNEL32.dll_OutputDebugStringA]