joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140068f0c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x360
mov rax, qword [0x1403cd210]
xor rax, rsp
mov qword [rsp + 0x350], rax
mov rdi, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x140]
call fcn.140138ee0
xor ebx, ebx
test rdi, rdi
je 0x140068f94
cmp word [rdi], bx
je 0x140068f94
mov r8, rdi
mov edi, 0x104
mov edx, edi
lea rcx, [rsp + 0x140]
call fcn.1401475b8
lea rcx, [rsp + 0x140]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x140068f7a
mov edx, 0x5c
cmp word [rsp + rax*2 + 0x13e], dx
je 0x140068fec
jmp 0x140068fd5
mov edi, 0x104
mov r8d, edi
lea rdx, [rsp + 0x140]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140068fbb
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14006909d
mov edx, 0x5c
lea rcx, [rsp + 0x140]
call fcn.140138df4
test rax, rax
je 0x140068fec
mov word [rax], bx
lea r8, [0x140353ca4]
mov rdx, rdi
lea rcx, [rsp + 0x140]
call fcn.140147c4c
mov r8, qword [rsi]
mov rdx, rdi
lea rcx, [rsp + 0x140]
call fcn.140147c4c
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14006901c
mov eax, 2
jmp 0x14006909d
lea r8, [rsi + 8]
lea rdx, [rsp + 0x140]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x14006903e
cmp qword [rsi + 8], rbx
je 0x14006903e
xor eax, eax
jmp 0x14006909d
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x30]
call fcn.140062528
nop
mov rcx, qword [rax]
call fcn.140169e30
mov edi, eax
lea rax, [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
cmp rcx, rax
je 0x140069070
call fcn.14013d394
nop
test edi, edi
jne 0x14006909b
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsi + 8], rax
test rax, rax
jne 0x140069093
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
jmp 0x14006909d
mov eax, edi
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.140119fe0
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140069760
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov rax, qword [0x1403cd210]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor r15d, r15d
mov word [rbp + 0x33], 0x500
mov qword [rbp + 0x27], r15
mov ebx, r15d
mov dword [rbp + 0x2f], r15d
mov qword [rbp + 0x1f], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp + 0x1f]
lea edx, [r15 + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, r15d
test eax, eax
je 0x1400698c4
mov rcx, qword [rbp + 0x1f]
lea rax, [rbp + 0x17]
lea edi, [r15 + 2]
mov dword [rbp + 0x17], r15d
mov edx, edi
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140069801
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400698c4
mov edx, dword [rbp + 0x17]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x1400698c4
mov r9d, dword [rbp + 0x17]
lea rax, [rbp + 0x17]
mov rcx, qword [rbp + 0x1f]
mov r8, rbx
mov edx, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1400698c4
lea rax, [rbp + 0x27]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x2f]
mov dword [rsp + 0x48], r15d
mov r8d, 0x20
mov dword [rsp + 0x40], r15d
mov dl, dil
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400698c4
mov edi, r15d
cmp dword [rbx], r15d
jbe 0x1400698c4
mov r12d, 1
mov rcx, qword [rbp + 0x27]
mov edx, edi
add rdx, rdx
mov r14d, edi
mov rdx, qword [rbx + rdx*8 + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1400698b5
add edi, r12d
cmp edi, dword [rbx]
jb 0x140069891
jmp 0x1400698c4
lea rax, [r14 + 1]
add rax, rax
test byte [rbx + rax*8], 4
cmovne esi, r12d
mov rcx, qword [rbp + 0x27]
test rcx, rcx
je 0x1400698d3
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test rbx, rbx
je 0x1400698e1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp + 0x1f]
test rcx, rcx
je 0x1400698f0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140119fe0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140069d2c
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
lea rbp, [rax - 0x3b8]
sub rsp, 0x4b0
mov rax, qword [0x1403cd210]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
movups xmm0, xmmword [str.CommonFiles_Dir]
movzx eax, word [0x140360b70]
mov rdi, rcx
movups xmm1, xmmword [0x140356188]
mov ebx, 0x410
xor edx, edx
movups xmmword [rsp + 0x70], xmm0
mov r8d, ebx
lea rcx, [rbp - 0x70]
movups xmm0, xmmword [str.McAfeePlatform]
mov word [rsp + 0x68], ax
movups xmmword [rbp - 0x80], xmm1
movups xmm1, xmmword [0x140360b60]
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm1
call fcn.140138ee0
xor esi, esi
mov dword [rsp + 0x40], esi
test rdi, rdi
je 0x140069edb
lea rax, [rsp + 0x44]
mov dword [rsp + 0x30], 0x10
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rbp - 0x70]
mov dword [rsp + 0x44], ebx
lea r8, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMcAfeePlatform
mov rcx, 0xffffffff80000002
call fcn.14005f4c0
or rbx, 0xffffffffffffffff
test eax, eax
jne 0x140069e1b
cmp dword [rsp + 0x40], 1
jne 0x140069e1b
lea rcx, [rbp - 0x70]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], si
jne 0x140069e0d
test rax, rax
jne 0x140069e55
xor r9d, r9d
mov word [rbp - 0x70], si
lea rax, [rbp - 0x70]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x2b]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140069ed1
lea r8, [rsp + 0x48]
mov edx, 0x208
lea rcx, [rbp - 0x70]
call fcn.140147c4c
lea rax, [rbp - 0x70]
inc rbx
cmp word [rax + rbx*2], si
jne 0x140069e59
mov eax, 0x5c
cmp ax, word [rbp + rbx*2 - 0x72]
je 0x140069e89
lea r8, [0x140353ca4]
mov edx, 0x208
lea rcx, [rbp - 0x70]
call fcn.140147c4c
mov ebx, eax
test eax, eax
jne 0x140069ee0
mov ecx, 0x22
lea rax, [rbp - 0x6e]
cmp cx, word [rbp - 0x70]
lea r8, [rbp - 0x70]
mov edx, 0x104
mov rcx, rdi
cmove r8, rax
call fcn.1401475b8
mov ebx, eax
test eax, eax
jne 0x140069ee0
mov r8d, 0x104
mov rdx, rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
jne 0x140069ee0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x140069ee0
mov ebx, 0xe8
mov word [rdi], si
jmp 0x140069ee0
mov ebx, 0x57
mov eax, ebx
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140119fe0
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14006a094
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1403cd210]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov r14d, 3
mov r12, r8
mov r15, rdx
lea r13d, [r14 - 2]
movzx ebx, r13w
lea esi, [r14 + 3]
xor edx, edx
lea rcx, [rbp + 0x48]
mov r8d, 0x114
call fcn.140138ee0
mov r8b, r13b
mov dword [rbp + 0x40], 0x11c
mov edx, 2
mov dword [rbp + 0x44], esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov edx, 2
lea rcx, [rbp + 0x40]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
cmp eax, r13d
jne 0x14006a17b
mov dword [0x1403ed5a0], esi
mov edi, r14d
cmp r14d, 0xa
ja 0x14006a17e
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x11c
call fcn.140138ee0
mov r8b, r13b
mov dword [rsp + 0x20], 0x11c
mov edx, r13d
mov dword [rsp + 0x28], edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov edx, r13d
lea rcx, [rsp + 0x20]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
cmp eax, r13d
je 0x14006a1b6
xor ebx, ebx
add edi, r13d
cmp edi, 0xa
jbe 0x14006a12d
jmp 0x14006a17e
xor r14d, r14d
add esi, r13d
cmp esi, 0xa
jbe 0x14006a0dc
xor al, al
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140119fe0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dword [r15], edi
mov edi, 0xa
cmp bx, di
ja 0x14006a218
lea esi, [rdi + 0x16]
mov r14d, 0x11c
mov r8, r14
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.140138ee0
mov r8b, r13b
mov dword [rsp + 0x20], r14d
mov edx, esi
mov word [rbp + 0x34], bx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov edx, esi
lea rcx, [rsp + 0x20]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
cmp eax, r13d
je 0x14006a211
add bx, r13w
cmp bx, di
jbe 0x14006a1cc
jmp 0x14006a218
movzx ecx, bx
mov dword [r12], ecx
mov al, r13b
jmp 0x14006a18c

Function at 0x14006a43c
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea rax, [rsp + 0x38]
xor ebx, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.HARDWAREDESCRIPTIONSystemCentralProcessor0
mov rcx, 0xffffffff80000002
lea r9d, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006a4cc
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x60], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.MHz
mov dword [rsp + 0x68], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14006a4c1
cmp dword [rsp + 0x60], 4
jne 0x14006a4c1
mov eax, dword [rsp + 0x30]
mov bl, 1
mov dword [rdi], eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14006a4dc
Capabilities:
Get memory capacity

Disassembly:
mov qword [rsp + 8], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1403cd210]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rcx, str.kernel32.dll
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x14006a54f
lea ecx, [rax + 5]
call fcn.1400e2070
test eax, eax
je 0x14006a68a
lea rax, str.Unable_to_get_the_module_handle_for_Kernal32.dll
mov r9d, 0x116
lea r8, str.CSIS::SystemDetails::GetPhysicalMemoryAmount
mov qword [rsp + 0x20], rax
lea rdx, str.E:BT98e4b0b8_6261_4b66_a156_8e0ef62b3d71UBF_1CSIS_srcCSISCommonSystemDetails.cpp
mov ecx, 5
call fcn.14003209c
jmp 0x14006a68a
lea rdx, str.GetPhysicallyInstalledSystemMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14006a5cf
lea rcx, [rsp + 0x38]
call rax
test eax, eax
je 0x14006a581
mov rax, qword [rsp + 0x38]
shr rax, 0xa
mov dword [rdi], eax
mov al, 1
jmp 0x14006a68c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 1
mov esi, eax
call fcn.1400e2070
test eax, eax
je 0x14006a5cf
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rax
lea r8, str.CSIS::SystemDetails::GetPhysicalMemoryAmount
lea rax, str.GetPhysicallyInstalledSystemMemory_returned_false._Error_code___d
mov r9d, 0x129
lea rdx, str.E:BT98e4b0b8_6261_4b66_a156_8e0ef62b3d71UBF_1CSIS_srcCSISCommonSystemDetails.cpp
mov qword [rsp + 0x20], rax
mov ecx, 1
call fcn.140032100
mov ecx, 1
call fcn.1400e2070
test eax, eax
je 0x14006a607
lea rax, str.Attempt_to_get_system_memory_size_using_pre_VISTA_SP1_API
mov r9d, 0x12d
lea r8, str.CSIS::SystemDetails::GetPhysicalMemoryAmount
mov qword [rsp + 0x20], rax
lea rdx, str.E:BT98e4b0b8_6261_4b66_a156_8e0ef62b3d71UBF_1CSIS_srcCSISCommonSystemDetails.cpp
mov ecx, 1
call fcn.14003209c
mov esi, 0x40
lea rcx, [rsp + 0x40]
mov r8d, esi
xor edx, edx
call fcn.140138ee0
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], esi
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x14006a63c
mov rax, qword [rsp + 0x48]
shr rax, 0x14
jmp 0x14006a578
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 5
mov edi, eax
call fcn.1400e2070
test eax, eax
je 0x14006a68a
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rax
lea r8, str.CSIS::SystemDetails::GetPhysicalMemoryAmount
lea rax, str.GlobalMemoryStatusEx_returned_false._Error_code___d
mov r9d, 0x13b
lea rdx, str.E:BT98e4b0b8_6261_4b66_a156_8e0ef62b3d71UBF_1CSIS_srcCSISCommonSystemDetails.cpp
mov qword [rsp + 0x20], rax
mov ecx, 5
call fcn.140032100
xor al, al
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140119fe0
mov rsi, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
Function at 0x14006a6b0
Capabilities:
Get common file path
Get disk size
Get program files directory

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x1403cd210]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rdx
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x208
call fcn.140138ee0
xor r9d, r9d
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x26]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14006a773
lea r9, [rsp + 0x38]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x14006a728
mov rax, qword [rsp + 0x38]
shr rax, 0x14
mov dword [rbx], eax
mov al, 1
jmp 0x14006a775
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 5
mov dword [rsp + 0x30], eax
mov ecx, ebx
call fcn.1400e2070
test eax, eax
je 0x14006a773
lea rax, [rsp + 0x30]
mov r9d, 0x152
mov qword [rsp + 0x28], rax
lea r8, str.CSIS::SystemDetails::GetHardDriveFreeSpace
lea rax, str.GetDiskFreeSpaceExW_failed._Errorcode_is:_d
mov ecx, ebx
lea rdx, str.E:BT98e4b0b8_6261_4b66_a156_8e0ef62b3d71UBF_1CSIS_srcCSISCommonSystemDetails.cpp
mov qword [rsp + 0x20], rax
call fcn.140032100
xor al, al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140119fe0
add rsp, 0x260
pop rbx
ret

Function at 0x14006a790
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1403cd210]
xor rax, rsp
mov qword [rbp - 8], rax
xorps xmm0, xmm0
mov dword [rbp - 0x50], 0x10
mov rsi, rdx
lea rcx, [rbp - 0x28]
lea rdx, [rbp - 0x50]
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
xor r14d, r14d
test eax, eax
jne 0x14006a81c
lea ebx, [rax + 5]
mov ecx, ebx
call fcn.1400e2070
test eax, eax
je 0x14006a815
lea rax, str.GetComputerNameW_Fails
mov r9d, 0x160
lea r8, str.CSIS::SystemDetails::GetMachineName
mov qword [rsp + 0x20], rax
lea rdx, str.E:BT98e4b0b8_6261_4b66_a156_8e0ef62b3d71UBF_1CSIS_srcCSISCommonSystemDetails.cpp
mov ecx, ebx
call fcn.14003209c
xor al, al
jmp 0x14006a8b5
mov edx, dword [rbp - 0x50]
lea rcx, [rbp - 0x48]
mov edi, 7
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x30], rdi
mov word [rbp - 0x48], r14w
cmp rdx, rdi
ja 0x14006a856
lea rbx, [rdx + rdx]
mov qword [rbp - 0x38], rdx
mov r8, rbx
lea rdx, [rbp - 0x28]
call fcn.1401389a0
mov word [rbp + rbx - 0x48], r14w
jmp 0x14006a85f
lea r9, [rbp - 0x28]
call fcn.140033078
lea rax, [rbp - 0x48]
cmp rsi, rax
je 0x14006a898
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x14006a882
mov rcx, qword [rsi]
lea rdx, [rdx*2 + 2]
call fcn.1400331fc
movups xmm0, xmmword [rbp - 0x48]
mov word [rbp - 0x48], r14w
movups xmm1, xmmword [rbp - 0x38]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14006a89c
mov rdi, qword [rbp - 0x30]
cmp rdi, 8
jb 0x14006a8b3
mov rcx, qword [rbp - 0x48]
lea rdx, [rdi*2 + 2]
call fcn.1400331fc
mov al, 1
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140119fe0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14006ac5c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x1403cd210]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rbx, rcx
mov qword [rbp - 0x19], rcx
xor r15d, r15d
mov dword [rbp - 0x35], r15d
mov qword [rcx + 0x10], r15
lea edi, [r15 + 7]
mov qword [rcx + 0x18], rdi
mov word [rcx], r15w
mov dword [rbp - 0x35], 1
cmp qword [rdx + 0x10], r15
je 0x14006adfb
lea rcx, [rbp - 0x11]
call fcn.14006ab50
nop
lea rcx, [rbp - 0x11]
mov rdx, qword [rbp - 0x11]
mov r8, qword [rbp + 7]
cmp r8, 0x10
cmovae rcx, rdx
lea r10, [rbp - 0x11]
cmovae r10, rdx
mov r9, qword [rbp - 1]
add r10, r9
cmp rcx, r10
je 0x14006acfa
xor byte [rcx], 0x84
inc rcx
cmp rcx, r10
jne 0x14006ace3
mov r8, qword [rbp + 7]
mov r9, qword [rbp - 1]
mov rdx, qword [rbp - 0x11]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x31], xmm0
mov rcx, r15
mov qword [rbp - 0x21], rcx
lea r14, [rbp - 0x11]
cmp r8, 0x10
cmovae r14, rdx
add r14, r9
lea rsi, [rbp - 0x11]
cmp r8, 0x10
cmovae rsi, rdx
cmp rsi, r14
je 0x14006ad65
mov rdx, qword [rbp - 0x29]
mov al, byte [rsi]
mov byte [rbp - 0x39], al
cmp rdx, rcx
je 0x14006ad46
mov byte [rdx], al
mov rdx, qword [rbp - 0x29]
inc rdx
mov qword [rbp - 0x29], rdx
jmp 0x14006ad57
lea r8, [rbp - 0x39]
lea rcx, [rbp - 0x31]
call fcn.14006b210
mov rdx, qword [rbp - 0x29]
inc rsi
cmp rsi, r14
je 0x14006ad65
mov rcx, qword [rbp - 0x21]
jmp 0x14006ad2d
lea rdx, [rbp - 0x31]
lea rcx, [rbp + 0xf]
call fcn.14006b020
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x14006ad88
mov rdx, qword [rbp - 0x21]
sub rdx, rcx
call fcn.1400331fc
lea rax, [rbp + 0xf]
cmp rbx, rax
je 0x14006adc9
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14006adab
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
call fcn.1400331fc
movups xmm0, xmmword [rbp + 0xf]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp + 0x1f]
movups xmmword [rbx + 0x10], xmm1
mov qword [rbp + 0x1f], r15
mov qword [rbp + 0x27], rdi
mov word [rbp + 0xf], r15w
jmp 0x14006adcd
mov rdi, qword [rbp + 0x27]
cmp rdi, 8
jb 0x14006ade5
lea rdx, [rdi*2 + 2]
mov rcx, qword [rbp + 0xf]
call fcn.1400331fc
nop
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x14006adfb
inc rdx
mov rcx, qword [rbp - 0x11]
call fcn.1400331fc
mov rax, rbx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140119fe0
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006ae24
Capabilities:
Encrypt data using dpapi

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rax, qword [0x1403cd210]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov rbx, rcx
mov qword [rbp - 0x69], rcx
xor r12d, r12d
mov qword [rbp - 0x21], r12
mov qword [rbp - 0x19], 7
mov word [rbp - 0x31], r12w
mov eax, dword [rdx + 0x10]
add eax, eax
mov dword [rbp - 0x41], eax
cmp qword [rdx + 0x18], 8
jb 0x14006ae85
mov rdx, qword [rdx]
mov qword [rbp - 0x39], rdx
mov dword [rbp - 0x69], r12d
mov qword [rbp - 0x61], r12
lea rax, [rbp - 0x69]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x41]
call qword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
jne 0x14006af04
lea edi, [rax + 5]
mov ecx, edi
call fcn.1400e2070
test eax, eax
je 0x14006aef0
lea rax, str.Failed_to_call_CryptProtectData
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 0x6c]
lea r8, str.CSIS::encrypt_string
lea rdx, str.E:BT98e4b0b8_6261_4b66_a156_8e0ef62b3d71UBF_1CSIS_srcCSISCommonStringUtils.cpp
mov ecx, edi
call fcn.14003209c
movups xmm0, xmmword [rbp - 0x31]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp - 0x21]
movups xmmword [rbx + 0x10], xmm1
jmp 0x14006afe4
mov r14d, dword [rbp - 0x69]
mov r15, qword [rbp - 0x61]
add r14, r15
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x59], xmm0
mov qword [rbp - 0x49], r12
mov rdi, r14
sub rdi, r15
je 0x14006af75
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
ja 0x14006b019
mov rcx, rdi
cmp rdi, 0x1000
jb 0x14006af49
call fcn.140032ed4
jmp 0x14006af4e
call fcn.14011a288
mov rsi, rax
mov qword [rbp - 0x59], rax
lea rax, [rax + rdi]
mov qword [rbp - 0x49], rax
mov r8, rdi
mov rdx, r15
mov rcx, rsi
call fcn.1401389a0
sub rsi, r15
add rsi, r14
mov qword [rbp - 0x51], rsi
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x11]
call fcn.14006b020
lea rcx, [rbp - 0x31]
cmp rcx, rax
je 0x14006afa4
movups xmm6, xmmword [rax]
movups xmm7, xmmword [rax + 0x10]
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
jmp 0x14006afac
movups xmm7, xmmword [rbp - 0x21]
movups xmm6, xmmword [rbp - 0x31]
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x14006afc7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
call fcn.1400331fc
movups xmmword [rbx], xmm6
movups xmmword [rbx + 0x10], xmm7
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x14006afe4
mov rdx, qword [rbp - 0x49]
sub rdx, rcx
call fcn.1400331fc
nop
mov rax, rbx
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.140119fe0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.140032b50
nop
int3
Function at 0x14006b020
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1403cd210]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
mov qword [rbp - 0x38], rcx
xor r15d, r15d
mov dword [rbp - 0x3c], r15d
mov qword [rcx + 0x10], r15
lea edi, [r15 + 7]
mov qword [rcx + 0x18], rdi
mov word [rcx], r15w
mov dword [rbp - 0x3c], 1
mov rsi, qword [rdx]
cmp rsi, qword [rdx + 8]
je 0x14006b14b
mov r14d, dword [rdx + 8]
sub r14d, esi
mov dword [rbp - 0x40], r15d
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x40000001
mov edx, r14d
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x14006b14b
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], rdi
mov word [rbp - 0x30], r15w
xor r8d, r8d
mov edx, dword [rbp - 0x40]
dec edx
lea rcx, [rbp - 0x30]
call fcn.140053564
lea r9, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae r9, qword [rbp - 0x30]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r8d, 0x40000001
mov edx, r14d
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x14006b130
lea rax, [rbp - 0x30]
cmp rbx, rax
je 0x14006b130
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14006b112
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
call fcn.1400331fc
movups xmm0, xmmword [rbp - 0x30]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp - 0x20]
movups xmmword [rbx + 0x10], xmm1
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], rdi
mov word [rbp - 0x30], r15w
jmp 0x14006b134
mov rdi, qword [rbp - 0x18]
cmp rdi, 8
jb 0x14006b14b
lea rdx, [rdi*2 + 2]
mov rcx, qword [rbp - 0x30]
call fcn.1400331fc
mov rax, rbx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140119fe0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret