joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401de8b4
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x228]
sub rsp, 0x320
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1403f04b0]
xor rax, rsp
mov qword [rbp + 0x210], rax
lea rsi, [0x1403f74b8]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov qword [rsp + 0x68], rsi
cmp qword [0x140405438], 0
jne 0x1401dea60
and dword [rsp + 0x30], 0
lea rax, [0x1402cb810]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x30]
call fcn.1401e12f8
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
call fcn.1401e1358
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.api_ms_win_core_toolhelp_l1_1_0.dll_CreateToolhelp32Snapshot]
mov rbx, rax
mov qword [rsp + 0x30], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1401dea4c
mov dword [rbp - 0x30], 0x238
xor edx, edx
mov r8d, 0x234
lea rcx, [rbp - 0x2c]
call sub.api_ms_win_crt_private_l1_1_0.dll__o_memset
lea rdx, [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_toolhelp_l1_1_0.dll_Process32FirstW]
jmp 0x1401dea44
mov eax, dword [rbp - 0x28]
test eax, eax
je 0x1401dea37
mov ecx, dword [rbp - 0x10]
test ecx, ecx
jne 0x1401de9bd
mov dword [reloc.OLEAUT32.dll_SysReAllocStringLen], eax
mov dword [rsp + 0x50], eax
lea rax, [rbp - 4]
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x50]
call fcn.1401e12f8
lea rdx, [rsp + 0x70]
jmp 0x1401dea29
cmp ecx, dword [reloc.OLEAUT32.dll_SysReAllocStringLen]
jne 0x1401dea37
lea rdx, str..exe
lea rcx, [rbp - 0x50]
call fcn.140048750
nop
lea rdx, [rbp - 4]
lea rcx, [rbp - 0x70]
call fcn.140048750
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x70]
call fcn.1401d31d0
mov dil, al
lea rcx, [rbp - 0x70]
call fcn.1400492c0
nop
lea rcx, [rbp - 0x50]
call fcn.1400492c0
test dil, dil
jne 0x1401dea37
mov eax, dword [rbp - 0x28]
mov dword [rsp + 0x40], eax
lea rax, [rbp - 4]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
call fcn.1401e12f8
lea rdx, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rax + 0x20]
call fcn.1401e1358
lea rdx, [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_toolhelp_l1_1_0.dll_Process32NextW]
test eax, eax
jne 0x1401de987
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401dea60
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.14027a710
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1401e2938
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
cmp qword [rdx + 0x18], 8
mov rbx, rcx
mov r11, qword [rdx + 0x10]
mov r10, rdx
jb 0x1401e295b
mov r10, qword [rdx]
xor r8d, r8d
movabs rdi, 0xcbf29ce484222325
mov r9, rdi
movabs rsi, 0x100000001b3
add r11, r11
je 0x1401e298e
movzx eax, byte [r8 + r10]
inc r8
xor r9, rax
imul r9, rsi
cmp r8, r11
jb 0x1401e297a
movzx ecx, byte [rdx + 0x20]
mov rax, r9
shl rax, 6
xor rcx, rdi
mov rdi, qword [rsp + 0x18]
mov rdx, r9
imul rcx, rsi
mov rsi, qword [rsp + 0x10]
add rcx, rax
shr rdx, 2
mov eax, 0x9e3779b9
add rax, rdx
add rax, rcx
xor rax, r9
and rax, qword [rbx + 0x30]
mov rbx, qword [rsp + 8]
ret
Function at 0x1401e3544
Capabilities:
Enumerate processes
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x5b8]
sub rsp, 0x6b0
mov rax, qword [0x1403f04b0]
xor rax, rsp
mov qword [rbp + 0x5a0], rax
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.api_ms_win_core_toolhelp_l1_1_0.dll_CreateToolhelp32Snapshot]
mov rdi, rax
xor esi, esi
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1401e36e1
xor edx, edx
mov dword [rsp + 0x40], 0x238
mov r8d, 0x234
lea rcx, [rsp + 0x44]
call sub.api_ms_win_crt_private_l1_1_0.dll__o_memset
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_toolhelp_l1_1_0.dll_Process32FirstW]
test eax, eax
je 0x1401e36e1
or dword [rsp + 0x28], 0xffffffff
lea rax, str.Explorer.exe
or r9d, 0xffffffff
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x6c]
lea edx, [r9 + 2]
lea ecx, [rdx + 0x7e]
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_CompareStringW]
cmp eax, 2
jne 0x1401e36b7
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_OpenProcess]
mov rbx, rax
inc rax
test rax, 0xfffffffffffffffe
jne 0x1401e3623
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401e36b7
jmp 0x1401e36ae
xor edx, edx
lea rcx, [rbp + 0x390]
mov r8d, 0x208
call sub.api_ms_win_crt_private_l1_1_0.dll__o_memset
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 0x104
lea r8, [rbp + 0x390]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_psapi_l1_1_0.dll_QueryFullProcessImageNameW]
mov edx, 0x104
lea rcx, [rbp + 0x180]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetWindowsDirectoryW]
lea r8, [0x1402ec910]
mov edx, 0x104
lea rcx, [rbp + 0x180]
call fcn.140041934
or dword [rsp + 0x28], 0xffffffff
lea rax, [rbp + 0x180]
or r9d, 0xffffffff
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x390]
lea edx, [r9 + 2]
lea ecx, [rdx + 0x7e]
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_CompareStringW]
cmp eax, 2
je 0x1401e36ca
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_toolhelp_l1_1_0.dll_Process32NextW]
jmp 0x1401e35b8
mov esi, dword [rsp + 0x48]
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401e36e1
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
lea rcx, [rdi - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1401e36f4
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rbp + 0x5a0]
xor rcx, rsp
call fcn.14027a710
lea r11, [rsp + 0x6b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1401e4d60
Capabilities:
List user accounts

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
mov qword [rbp - 0x49], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1403f04b0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rcx
mov qword [rbp - 0x41], rcx
xor r14d, r14d
mov dword [rbp - 0x51], r14d
mov qword [rcx], r14
mov qword [rcx + 8], r14
mov qword [rcx + 0x10], r14
mov dword [rbp - 0x51], 1
mov qword [rbp - 0x59], r14
mov dword [rbp - 0x4d], r14d
mov esi, r14d
mov dword [rbp - 0x69], r14d
mov dword [rbp - 0x65], r14d
mov dword [rbp - 0x61], r14d
lea rax, [rbp - 0x4d]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x61]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x65]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
lea r9, [rbp - 0x59]
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.samcli.dll_NetUserEnum]
mov dword [rbp - 0x69], eax
test eax, eax
je 0x1401e4e96
cmp eax, 0xea
je 0x1401e4e96
call fcn.140048a14
mov rdi, qword [rax + 8]
cmp dword [rdi], 2
jbe 0x1401e4ed2
lea rax, [rbp - 0x69]
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], 4
or rax, 0xffffffffffffffff
lea rcx, str.GetLocalMachineUsers_failed_with_system_error
inc rax
cmp byte [rcx + rax], r14b
jne 0x1401e4e3f
mov qword [rbp + 0x17], rcx
inc eax
mov dword [rbp + 0x1f], eax
mov dword [rbp + 0x23], r14d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbp - 0x5d], eax
lea rax, [rbp - 0x5d]
mov qword [rbp + 0x27], rax
mov qword [rbp + 0x2f], 4
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14034eff0]
mov rcx, rdi
call fcn.140001078
jmp 0x1401e4ed2
mov edi, r14d
cmp dword [rbp - 0x65], r14d
jbe 0x1401e4ed2
mov eax, edi
mov rdx, qword [rbp - 0x59]
mov rdx, qword [rdx + rax*8]
lea rcx, [rbp - 0x39]
call fcn.140048750
nop
lea rdx, [rbp - 0x39]
mov rcx, rbx
call fcn.140062e6c
nop
lea rcx, [rbp - 0x39]
call fcn.1400492c0
inc esi
inc edi
cmp edi, dword [rbp - 0x65]
jb 0x1401e4e9f
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x1401e4ee8
call qword [sym.imp.netutils.dll_NetApiBufferFree]
mov rcx, r14
mov qword [rbp - 0x59], rcx
cmp dword [rbp - 0x69], 0xea
je 0x1401e4dbf
test rcx, rcx
je 0x1401e4f04
call qword [sym.imp.netutils.dll_NetApiBufferFree]
mov qword [rbp - 0x59], r14
call fcn.140048a14
mov rcx, qword [rax + 8]
cmp dword [rcx], 4
jbe 0x1401e4f71
lea rax, str.GetLocalMachineUsers_finished
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], reloc.Cabinet.dll_CreateCompressor
mov eax, dword [rbp - 0x69]
mov dword [rbp - 0x5d], eax
lea rax, [rbp - 0x5d]
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], 4
mov dword [rbp - 0x61], esi
lea rax, [rbp - 0x61]
mov qword [rbp + 0x27], rax
mov qword [rbp + 0x2f], 4
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14034efb8]
call fcn.140001078
mov rax, rbx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14027a710
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140212874
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov r8, rcx
lea rsi, [rdi + 0x10]
cmp qword [rsi + 0x18], 8
mov r9, rsi
mov r10, qword [rsi + 0x10]
jb 0x1402128a7
mov r9, qword [rsi]
xor edx, edx
movabs rcx, 0xcbf29ce484222325
add r10, r10
je 0x1402128d6
movzx eax, byte [rdx + r9]
movabs r11, 0x100000001b3
xor rcx, rax
inc rdx
imul rcx, r11
cmp rdx, r10
jb 0x1402128b8
mov rdx, qword [r8 + 0x30]
and rdx, rcx
mov rcx, qword [r8 + 0x18]
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rdi
jne 0x14021290e
cmp qword [rcx + rdx*8], rdi
jne 0x140212903
mov rax, qword [r8 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r8 + 0x18]
mov rax, qword [r8 + 8]
jmp 0x140212907
mov rax, qword [rdi + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x14021291b
cmp qword [rcx + rdx*8], rdi
jne 0x14021291b
mov rax, qword [rdi]
mov qword [rcx + rdx*8], rax
mov rax, qword [rdi + 8]
lea rcx, [rsi + 0x20]
mov rbx, qword [rdi]
mov qword [rax], rbx
mov rdx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rdx + 8], rax
dec qword [r8 + 0x10]
call fcn.140199724
mov rcx, rsi
call fcn.1400492c0
mov rcx, rdi
call fcn.14027abd8
mov rsi, qword [rsp + 0x38]
mov rax, r14
mov rdi, qword [rsp + 0x40]
mov qword [r14], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r14
ret
Function at 0x14021444c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1403f04b0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x1402144eb
mov edx, 0x4c7
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
test eax, eax
jne 0x1402144eb
call fcn.140048a14
mov rbx, qword [rax + 8]
cmp dword [rbx], 2
jbe 0x1402144eb
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
and dword [rsp + 0x6c], 0
mov ecx, 4
and dword [rsp + 0x7c], 0
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rax
lea rax, str.Failed_to_terminate_SenseSampleUploader_process.
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x68], ecx
mov dword [rsp + 0x78], 0x62
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14034fb99]
mov dword [rsp + 0x20], ecx
xor r8d, r8d
mov rcx, rbx
call fcn.140001078
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14027a710
add rsp, 0x90
pop rbx
ret
Function at 0x140216354
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov r15, rdx
mov r14, rcx
mov rbx, qword [r8 + 0x10]
mov r9, r8
cmp qword [r8 + 0x18], 8
jb 0x14021638a
mov r9, qword [r8]
movabs rdx, 0xcbf29ce484222325
xor ecx, ecx
lea r10, [rbx + rbx]
test r10, r10
je 0x1402163bd
movzx eax, byte [rcx + r9]
xor rdx, rax
movabs r11, 0x100000001b3
imul rdx, r11
inc rcx
cmp rcx, r10
jb 0x14021639f
mov rsi, qword [r14 + 0x30]
and rsi, rdx
mov r12, qword [r14 + 8]
add rsi, rsi
mov r10, qword [r14 + 0x18]
cmp qword [r10 + rsi*8], r12
jne 0x1402163da
mov rdi, r12
jmp 0x14021644f
mov rdi, qword [r10 + rsi*8 + 8]
mov rdi, qword [rdi]
jmp 0x14021644f
mov rdi, qword [rdi + 8]
lea rcx, [rdi + 0x10]
mov rax, rcx
cmp qword [rcx + 0x18], 8
jb 0x1402163f9
mov rax, qword [rcx]
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x140216406
mov rdx, qword [r8]
cmp rbx, qword [rcx + 0x10]
jne 0x14021644f
mov r11, rbx
test rbx, rbx
je 0x14021643a
sub rdx, rax
movzx ecx, word [rdx + rax]
movzx r9d, word [rax]
cmp cx, r9w
jne 0x140216431
add rax, 2
sub r11, 1
jne 0x140216417
jmp 0x14021643a
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x14021643c
xor eax, eax
test eax, eax
jne 0x14021644f
mov qword [r15], rdi
mov byte [r15 + 8], al
mov rax, r15
jmp 0x140216543
cmp rdi, qword [r10 + rsi*8]
jne 0x1402163e4
mov rbx, qword [r12]
mov r9, r8
mov r8, qword [rbx + 8]
mov rdx, rbx
call fcn.140216604
mov rdx, rax
mov rax, qword [r14 + 0x10]
movabs rcx, 0x38e38e38e38e38d
sub rcx, rax
cmp rcx, 1
jae 0x140216490
lea rcx, str.list_T__too_long
call qword [sym.imp.msvcp_win.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
inc rax
mov qword [r14 + 0x10], rax
mov qword [rbx + 8], rdx
mov rax, qword [rdx + 8]
mov qword [rax], rdx
mov rbx, qword [r14 + 8]
mov rbx, qword [rbx]
mov qword [rsp + 0x70], rbx
mov rax, qword [rbx]
cmp rdi, rax
je 0x1402164e3
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], rbx
mov rdx, qword [rdi + 8]
mov rcx, qword [rax + 8]
mov qword [rdi + 8], rcx
mov rcx, qword [rbx + 8]
mov qword [rax + 8], rcx
mov qword [rbx + 8], rdx
mov rdx, qword [r14 + 0x18]
mov rax, qword [rdx + rsi*8]
cmp rax, qword [r14 + 8]
jne 0x140216500
mov qword [rdx + rsi*8], rbx
mov rax, qword [r14 + 0x18]
mov qword [rax + rsi*8 + 8], rbx
jmp 0x14021652f
cmp rax, rdi
jne 0x14021650b
mov qword [rdx + rsi*8], rbx
jmp 0x14021652f
mov rax, qword [rdx + rsi*8 + 8]
mov rcx, qword [rax]
mov qword [rdx + rsi*8 + 8], rcx
cmp rcx, rbx
je 0x14021652f
mov rdx, qword [r14 + 0x18]
mov rax, qword [rdx + rsi*8 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + rsi*8 + 8], rcx
mov rcx, r14
call fcn.140176784
nop
mov qword [r15], rbx
mov byte [r15 + 8], 1
mov rax, r15
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14021ba18
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rdi, rdx
mov rbx, rcx
cmp qword [rdx + 0x10], 0
jne 0x14021ba50
and qword [rcx], 0
and qword [rcx + 8], 0
and qword [rcx + 0x10], 0
jmp 0x14021bb6f
and dword [rsp + 0x78], 0
mov rcx, rdi
cmp qword [rdx + 0x18], 8
jb 0x14021ba62
mov rcx, qword [rdx]
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [r9 + 1]
mov edx, dword [rdx + 0x10]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
jne 0x14021bacb
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.1400443b8
mov r9d, eax
mov rcx, qword [rsp + 0x68]
lea rax, str.CertificateUtils::ConvertBase64StringToByteArray_failed_to_calculate_needed_size_of_converted_message
mov qword [rsp + 0x20], rax
lea r8, str.amcorewcd_sourcecommoncertificateutilscertificateutils.cpp
mov edx, 0x2b
call fcn.140048380
int3
mov edx, dword [rsp + 0x78]
lea rcx, [rsp + 0x48]
call fcn.140076fa0
nop
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 8
jb 0x14021bae8
mov rdi, qword [rdi]
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x20], rcx
mov rsi, qword [rsp + 0x48]
mov r9, rsi
mov r8d, 1
mov edx, eax
mov rcx, rdi
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
jne 0x14021bb5a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.1400443b8
mov r9d, eax
mov rcx, qword [rsp + 0x68]
lea rax, str.CertificateUtils::ConvertBase64StringToByteArray_failed_conversion
mov qword [rsp + 0x20], rax
lea r8, str.amcorewcd_sourcecommoncertificateutilscertificateutils.cpp
mov edx, 0x3a
call fcn.140048380
int3
mov qword [rbx], rsi
mov rax, qword [rsp + 0x50]
mov qword [rbx + 8], rax
mov rax, qword [rsp + 0x58]
mov qword [rbx + 0x10], rax
mov rax, rbx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14021c320
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Import public key
Initialize hashing via wincrypt

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov r15d, r9d
mov rsi, r8
mov r14, rdx
mov r12, rcx
and qword [rbp + 0x40], 0
and qword [rbp + 0x50], 0
and qword [rbp + 0x48], 0
mov dword [rsp + 0x20], 0xf0000000
mov r9d, DispGetParam
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x48]
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptAcquireContextW]
test eax, eax
setne al
mov rcx, qword [rbp + 0x38]
lea rdx, str.Acquiring_cryptographic_provider_failed
mov qword [rsp + 0x20], rdx
movzx r9d, al
lea r8, str.amcorewcd_sourcecommoncertificateutilscertificate.cpp
mov edx, 0xaa
call fcn.140059378
mov rdi, qword [rbp + 0x40]
test rdi, rdi
je 0x14021c3be
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptDestroyHash]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
and qword [rbp + 0x40], 0
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptCreateHash]
test eax, eax
setne al
mov rcx, qword [rbp + 0x38]
lea rdx, str.Creating_hash_object_failed
mov qword [rsp + 0x20], rdx
movzx r9d, al
lea r8, str.amcorewcd_sourcecommoncertificateutilscertificate.cpp
mov edx, 0xb5
call fcn.140059378
mov r8, qword [r14 + 8]
sub r8, qword [r14]
xor r9d, r9d
mov rdx, qword [r14]
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptHashData]
test eax, eax
setne al
mov rcx, qword [rbp + 0x38]
lea rdx, str.Computing_hash_object_failed
mov qword [rsp + 0x20], rdx
movzx r9d, al
lea r8, str.amcorewcd_sourcecommoncertificateutilscertificate.cpp
mov edx, 0xbd
call fcn.140059378
mov rax, qword [r12]
mov r8, qword [rax + 0x18]
add r8, 0x60
lea r9, [rbp + 0x50]
mov edx, 0x10001
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
test eax, eax
setne al
mov rcx, qword [rbp + 0x38]
lea rdx, str.Importing_pubic_key_failed
mov qword [rsp + 0x20], rdx
movzx r9d, al
lea r8, str.amcorewcd_sourcecommoncertificateutilscertificate.cpp
mov edx, 0xc6
call fcn.140059378
mov r8, qword [rsi + 8]
sub r8, qword [rsi]
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov r9, qword [rbp + 0x50]
mov rdx, qword [rsi]
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptVerifySignatureW]
cmp eax, 1
sete bl
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14021c4cc
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptDestroyHash]
nop
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x14021c4dd
xor edx, edx
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptReleaseContext]
mov al, bl
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14021c9d4
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x1403f04b0]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, rcx
mov edx, 0x103
lea rcx, [rbp - 0x80]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
test eax, eax
jne 0x14021ca8c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rsp + 0x30], eax
call fcn.140048a14
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
jbe 0x14021ca79
and dword [rsp + 0x6c], 0
lea rax, [rsp + 0x30]
and dword [rsp + 0x7c], 0
mov edx, 4
mov qword [rsp + 0x60], rax
lea rax, str.Failed_to_read_system_location_for_composing_Sense_Logger_file_path
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x68], edx
mov dword [rsp + 0x78], 0x88
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov dword [rsp + 0x20], edx
lea rdx, [0x1403510be]
call fcn.140001078
mov ecx, dword [rsp + 0x30]
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x14021ca9a
lea rdx, [rbp - 0x80]
mov rcx, rbx
call fcn.1400609d8
xor eax, eax
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14027a710
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x2a0
pop rbp
ret
Function at 0x140229a50
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1403f04b0]
xor rax, rsp
mov qword [rbp - 8], rax
mov sil, dl
lea rcx, [rbp - 0x28]
lea rdx, str.Sense
call fcn.140048750
and qword [rbp - 0x38], 0
lea rdx, [rbp - 0x28]
mov r8d, 3
lea rcx, [rbp - 0x38]
call fcn.1402714a0
mov edi, eax
test eax, eax
jns 0x140229af5
cmp qword [rbp - 0x10], 8
lea rax, [rbp - 0x28]
mov rcx, qword [rbp + 8]
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
cmovae rax, qword [rbp - 0x28]
mov r9d, edi
mov qword [rsp + 0x28], rax
mov edx, 0xfd
lea rax, str.Could_not_get_handle_for_service__ws
mov qword [rsp + 0x20], rax
call fcn.14006982c
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140229bbf
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
jmp 0x140229bbf
mov rbx, qword [rbp - 0x38]
lea rax, [rbp - 0x30]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x40]
mov rcx, rbx
lea edx, [r9 - 1]
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceConfig2W]
test eax, eax
jne 0x140229b58
cmp qword [rbp - 0x10], 8
lea rax, [rbp - 0x28]
mov rcx, qword [rbp + 8]
lea r9, str.Failed_to_query_the_service__ws_delayed_auto_start_info.
cmovae rax, qword [rbp - 0x28]
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov edx, 0x102
mov qword [rsp + 0x20], rax
call fcn.1401d35cc
mov edi, eax
test rbx, rbx
je 0x140229bbf
mov rcx, rbx
jmp 0x140229aea
movzx edi, sil
cmp dword [rbp - 0x40], edi
je 0x140229baf
lea r8, [rbp - 0x40]
mov dword [rbp - 0x40], edi
mov edx, 3
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x140229baf
cmp qword [rbp - 0x10], 8
lea rax, [rbp - 0x28]
mov rcx, qword [rbp + 8]
lea r9, str.Failed_to_change_the_service__ws_start_type_to_delayed_auto_start__d.
cmovae rax, qword [rbp - 0x28]
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov dword [rsp + 0x28], edi
mov edx, 0x109
mov qword [rsp + 0x20], rax
call fcn.1401d35cc
jmp 0x140229b4c
test rbx, rbx
je 0x140229bbd
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
xor edi, edi
lea rcx, [rbp - 0x28]
call fcn.1400492c0
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14027a710
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret