joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14024b484
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 0x14024b4ba
mov r9, qword [r8]
movabs rcx, 0xcbf29ce484222325
xor edx, edx
lea r10, [rbx + rbx]
test r10, r10
je 0x14024b4ed
movzx eax, byte [rdx + r9]
xor rcx, rax
movabs r11, 0x100000001b3
imul rcx, r11
inc rdx
cmp rdx, r10
jb 0x14024b4cf
mov rsi, qword [r14 + 0x30]
and rsi, rcx
mov rdi, qword [r14 + 8]
add rsi, rsi
mov r9, qword [r14 + 0x18]
cmp rdi, qword [r9 + rsi*8]
je 0x14024b575
mov rdi, qword [r9 + rsi*8 + 8]
mov rdi, qword [rdi]
jmp 0x14024b56f
mov rdi, qword [rdi + 8]
lea rcx, [rdi + 0x10]
mov rax, rcx
cmp qword [rcx + 0x18], 8
jb 0x14024b524
mov rax, qword [rcx]
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x14024b531
mov rdx, qword [r8]
cmp rbx, qword [rcx + 0x10]
jne 0x14024b56f
mov r11, rbx
test rbx, rbx
je 0x14024b55a
sub rdx, rax
movzx ecx, word [rdx + rax]
movzx r10d, word [rax]
cmp cx, r10w
jne 0x14024b5b6
add rax, 2
sub r11, 1
jne 0x14024b542
xor eax, eax
test eax, eax
jne 0x14024b56f
mov qword [r15], rdi
mov byte [r15 + 8], al
mov rax, r15
jmp 0x14024b670
cmp rdi, qword [r9 + rsi*8]
jne 0x14024b50f
mov rax, qword [r14 + 8]
mov rbx, qword [rax]
mov r12, qword [rbx + 8]
mov r9, r8
mov r8, r12
mov rdx, rbx
call fcn.14024b984
mov rdx, rax
mov rax, qword [r14 + 0x10]
movabs rcx, 0x38e38e38e38e38d
sub rcx, rax
cmp rcx, 1
jae 0x14024b5bf
lea rcx, str.list_T__too_long
call qword [sym.imp.msvcp_win.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
nop
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x14024b55c
inc rax
mov qword [r14 + 0x10], rax
mov qword [rbx + 8], rdx
mov qword [r12], rdx
mov rcx, qword [r14 + 8]
mov rbx, qword [rcx]
mov qword [rsp + 0x70], rbx
mov rax, qword [rbx]
cmp rdi, rax
je 0x14024b613
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 rcx, qword [r14 + 8]
mov rdx, qword [r14 + 0x18]
cmp qword [rdx + rsi*8], rcx
jne 0x14024b62c
mov qword [rdx + rsi*8], rbx
mov rax, qword [r14 + 0x18]
mov qword [rax + rsi*8 + 8], rbx
jmp 0x14024b65c
cmp qword [rdx + rsi*8], rdi
jne 0x14024b638
mov qword [rdx + rsi*8], rbx
jmp 0x14024b65c
mov rax, qword [rdx + rsi*8 + 8]
mov rcx, qword [rax]
mov qword [rdx + rsi*8 + 8], rcx
cmp rcx, rbx
je 0x14024b65c
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.14024b6b0
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 0x14024b7bc
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, r9
mov r10, r8
mov rsi, rdx
mov r9, rcx
mov r12, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 8
jb 0x14024b7f8
mov r8, qword [r8]
movabs rdx, 0xcbf29ce484222325
xor ecx, ecx
lea r11, [r12 + r12]
test r11, r11
je 0x14024b82b
movzx eax, byte [rcx + r8]
xor rdx, rax
movabs rdi, 0x100000001b3
imul rdx, rdi
inc rcx
cmp rcx, r11
jb 0x14024b80d
mov r8, qword [r9 + 0x30]
and r8, rdx
lea r13, [r9 + 8]
mov rdi, qword [r13]
add r8, r8
mov r11, qword [r9 + 0x18]
cmp rdi, qword [r11 + r8*8]
je 0x14024b8d2
mov rdi, qword [r11 + r8*8 + 8]
mov rdi, qword [rdi]
jmp 0x14024b8cc
mov rdi, qword [rdi + 8]
lea rax, [rdi + 0x10]
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x14024b86a
mov rcx, qword [rax]
mov rdx, r10
cmp qword [r10 + 0x18], 8
jb 0x14024b877
mov rdx, qword [r10]
cmp r12, qword [rax + 0x10]
jne 0x14024b8cc
mov r15, r12
test r12, r12
je 0x14024b8a4
sub rdx, rcx
movzx eax, word [rdx + rcx]
movzx r14d, word [rcx]
cmp ax, r14w
jne 0x14024b924
add rcx, 2
sub r15, 1
jne 0x14024b888
xor eax, eax
test eax, eax
jne 0x14024b8cc
mov r8, rbx
lea rdx, [rsp + 0x80]
mov rcx, r13
call fcn.140192bec
mov qword [rsi], rdi
mov byte [rsi + 8], 0
mov rax, rsi
jmp 0x14024b972
cmp rdi, qword [r11 + r8*8]
jne 0x14024b855
mov rax, qword [rbx]
cmp rdi, rax
je 0x14024b907
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 [r9 + 0x18]
mov rax, qword [rdx + r8*8]
cmp rax, qword [r13]
jne 0x14024b930
mov qword [rdx + r8*8], rbx
mov rax, qword [r9 + 0x18]
mov qword [rax + r8*8 + 8], rbx
jmp 0x14024b95f
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x14024b8a6
cmp rax, rdi
jne 0x14024b93b
mov qword [rdx + r8*8], rbx
jmp 0x14024b95f
mov rax, qword [rdx + r8*8 + 8]
mov rcx, qword [rax]
mov qword [rdx + r8*8 + 8], rcx
cmp rcx, rbx
je 0x14024b95f
mov rdx, qword [r9 + 0x18]
mov rax, qword [rdx + r8*8 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + r8*8 + 8], rcx
mov rcx, r9
call fcn.14024b6b0
nop
mov qword [rsi], rbx
mov byte [rsi + 8], 1
mov rax, rsi
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14024cc30
Capabilities:
Check if file exists
Get disk information

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14049e510]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, rdx
mov rbx, rcx
mov edx, 0x80
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1404c0424], eax
jg 0x14024ce30
mov edx, 0x104
lea rcx, [rbp - 0x51]
call fcn.1401776f4
nop
movdqa xmm0, xmmword [0x14038ac40]
movdqu xmmword [rbp - 0x21], xmm0
xor r14d, r14d
mov word [rbp - 0x31], r14w
mov rax, qword [rbp - 0x49]
mov rdi, qword [rbp - 0x51]
sub rax, rdi
sar rax, 1
cmp qword [rbx + 0x18], 8
jb 0x14024ccc2
mov rbx, qword [rbx]
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x14024cd41
movdqa xmm0, xmmword [0x14038ac40]
movdqu xmmword [rbp + 7], xmm0
mov word [rbp - 9], r14w
mov rdx, rdi
lea rcx, [rbp - 9]
call fcn.14004d5c4
lea rcx, [rbp - 0x31]
call fcn.14004e0f0
movups xmm0, xmmword [rbp - 9]
movups xmmword [rbp - 0x31], xmm0
movups xmm1, xmmword [rbp + 7]
movups xmmword [rbp - 0x21], xmm1
movdqa xmm0, xmmword [0x14038ac40]
movdqu xmmword [rbp + 7], xmm0
mov word [rbp - 9], r14w
lea rcx, [rbp - 9]
call fcn.14004e0f0
jmp 0x14024cddf
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbp - 0x59], eax
call fcn.14004d8a4
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
jbe 0x14024cd9b
lea rax, [rbp - 0x59]
mov qword [rbp + 0x17], rax
mov edx, 4
mov qword [rbp + 0x1f], rdx
lea rax, str.GetVolumeInformation_failed
mov qword [rbp + 0x27], rax
mov qword [rbp + 0x2f], 0x38
lea rax, [rbp - 9]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edx
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403dfae7]
call fcn.140001158
mov eax, dword [rbp - 0x59]
cmp eax, 0x3ed
je 0x14024cdcf
cmp eax, 0x80310000
je 0x14024cdcf
cmp eax, 3
je 0x14024cdcf
cmp eax, 0x80070005
je 0x14024cdcf
cmp eax, 0x45d
je 0x14024cdcf
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14024cdf7
lea rdx, [0x140344690]
lea rcx, [rbp - 0x31]
call fcn.14004d5c4
xor r8d, r8d
lea rdx, [0x14049ffc0]
lea rcx, [rbp - 0x31]
call fcn.1401fedf8
mov byte [rsi], al
mov ebx, r14d
lea rcx, [rbp - 0x31]
call fcn.14004e0f0
nop
lea rcx, [rbp - 0x51]
call fcn.14008903c
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1402dfdb0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
lea rcx, [0x1404c0424]
call fcn.1402e5a88
cmp dword [0x1404c0424], 0xffffffff
jne 0x14024cc86
lea rdx, [0x14036dd88]
lea rcx, [0x14049ffc0]
call fcn.14004d5c4
lea rcx, [0x140325f50]
call fcn.1402e022c
nop
lea rcx, [0x1404c0424]
call fcn.1402e5a28
jmp 0x14024cc86
Function at 0x14024f5a4
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [0x14049e510]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor r15d, r15d
mov r14, rdx
mov rdi, rcx
mov qword [rbp - 0x49], r15
mov rdx, rcx
lea rcx, [rbp - 0x49]
lea r8d, [r15 + 4]
call fcn.14024f3dc
mov esi, eax
test eax, eax
jns 0x14024f628
cmp qword [rdi + 0x18], 8
jb 0x14024f5fa
mov rdi, qword [rdi]
mov rcx, qword [rbp + 0x5f]
lea rax, str.Could_not_get_handle_for_service__ws
mov qword [rsp + 0x28], rdi
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov r9d, esi
mov qword [rsp + 0x20], rax
mov edx, 0x127
call fcn.140177750
jmp 0x14024f70d
mov rcx, qword [rbp - 0x49]
lea rdx, [rbp - 0x41]
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_QueryServiceStatus]
test eax, eax
jne 0x14024f66c
cmp qword [rdi + 0x18], 8
jb 0x14024f644
mov rdi, qword [rdi]
mov rcx, qword [rbp + 0x5f]
lea r9, str.Cannot_query_service_status_for_service__ls
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov qword [rsp + 0x20], rdi
mov edx, 0x12b
call fcn.1401ff8d0
mov esi, eax
jmp 0x14024f70d
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x14024f704
cmp qword [rdi + 0x18], 8
lea rax, str.Read_current_state_of_service
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], 0x3c
jb 0x14024f69c
mov rdi, qword [rdi]
lea rcx, [0x140344690]
mov rax, r15
test rdi, rdi
je 0x14024f6bc
mov rcx, rdi
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r15w
jne 0x14024f6b2
lea eax, [rax*2 + 2]
mov qword [rbp + 0x17], rcx
mov dword [rbp + 0x1f], eax
lea rax, [rbp - 0x3d]
mov qword [rbp + 0x27], rax
mov dword [rbp + 0x23], r15d
mov qword [rbp + 0x2f], 4
lea rax, [rbp - 0x19]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x1403e1aea]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001158
mov eax, dword [rbp - 0x3d]
mov esi, r15d
mov dword [r14], eax
cmp qword [rbp - 0x49], r15
je 0x14024f71d
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov eax, esi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1402dfdb0
lea r11, [rsp + 0xc0]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14024fd54
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rax, qword [0x14049e510]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor r14d, r14d
mov dword [rbp - 0x29], edx
mov rdi, rcx
mov qword [rbp - 0x21], r14
mov rdx, rcx
lea rcx, [rbp - 0x21]
lea r8d, [r14 + 2]
call fcn.14024f3dc
mov esi, eax
test eax, eax
jns 0x14024fdd2
cmp qword [rdi + 0x18], 8
jb 0x14024fda4
mov rdi, qword [rdi]
mov rcx, qword [rbp + 0x5f]
lea rax, str.Could_not_get_handle_for_service__ws
mov qword [rsp + 0x28], rdi
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov r9d, esi
mov qword [rsp + 0x20], rax
mov edx, 0x18a
call fcn.140177750
jmp 0x14024fee1
mov r8d, dword [rbp - 0x29]
or edx, 0xffffffff
mov rcx, qword [rbp - 0x21]
mov r9d, edx
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfigW]
test eax, eax
jne 0x14024fe46
cmp qword [rdi + 0x18], 8
jb 0x14024fe17
mov rdi, qword [rdi]
mov eax, dword [rbp - 0x29]
lea r9, str.Cannot_change_the_service_start_type_to__d_for_service__ws
mov rcx, qword [rbp + 0x5f]
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov qword [rsp + 0x28], rdi
mov edx, 0x19c
mov dword [rsp + 0x20], eax
call fcn.1401ff8d0
mov esi, eax
jmp 0x14024fee1
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x14024fede
cmp qword [rdi + 0x18], 8
lea rax, str.Changed_the_service_start_type_successfully
mov qword [rbp + 7], rax
lea rax, [rbp - 0x29]
mov qword [rbp + 0x17], rax
mov qword [rbp + 0xf], 0x58
mov qword [rbp + 0x1f], 4
jb 0x14024fe86
mov rdi, qword [rdi]
lea rcx, [0x140344690]
mov rax, r14
test rdi, rdi
je 0x14024fea6
mov rcx, rdi
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r14w
jne 0x14024fe9c
lea eax, [rax*2 + 2]
mov qword [rbp + 0x27], rcx
mov dword [rbp + 0x2f], eax
mov dword [rbp + 0x33], r14d
lea rax, [rbp - 0x19]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x1403e1b62]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001158
mov esi, r14d
cmp qword [rbp - 0x21], r14
je 0x14024fef1
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov eax, esi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1402dfdb0
mov rsi, qword [rsp + 0x100]
add rsp, 0xd0
pop r14
pop rdi
pop rbp
ret
Function at 0x1402501dc
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x14049e510]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14b, dl
mov rdi, rcx
lea rdx, [rbp - 0x45]
call fcn.1402503f4
xor r15d, r15d
mov ebx, eax
test eax, eax
jns 0x140250254
cmp qword [rdi + 0x18], 8
jb 0x140250224
mov rdi, qword [rdi]
mov rcx, qword [rbp + 0x5f]
lea rax, str.Failed_to_query_launch_protected_level_of_service__ws
mov qword [rsp + 0x28], rdi
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov r9d, ebx
mov qword [rsp + 0x20], rax
mov edx, 0x218
call fcn.140177750
mov eax, ebx
jmp 0x1402503ce
mov r8d, 2
mov qword [rbp - 0x41], r15
mov rdx, rdi
lea rcx, [rbp - 0x41]
call fcn.14024f3dc
mov esi, eax
test eax, eax
jns 0x1402502ac
cmp qword [rdi + 0x18], 8
jb 0x14025027a
mov rdi, qword [rdi]
mov rcx, qword [rbp + 0x5f]
lea rax, str.Could_not_get_handle_for_service__ws
mov qword [rsp + 0x28], rdi
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov r9d, esi
mov qword [rsp + 0x20], rax
mov edx, 0x21b
call fcn.140177750
mov rbx, qword [rbp - 0x41]
jmp 0x1402503be
mov rbx, qword [rbp - 0x41]
movzx eax, r14b
add eax, eax
mov dword [rbp - 0x49], eax
cmp dword [rbp - 0x45], eax
je 0x1402503bb
call fcn.14004d8a4
mov ecx, 4
mov r10, qword [rax + 8]
cmp dword [r10], ecx
jbe 0x140250369
cmp qword [rdi + 0x18], 8
lea rax, str.Change_the_service_protection_level
mov qword [rbp - 0x19], rax
lea rax, [rbp - 0x45]
mov qword [rbp - 9], rax
lea rax, [rbp - 0x49]
mov qword [rbp + 7], rax
mov rax, rdi
mov qword [rbp - 0x11], VarR8FromUI1
mov qword [rbp - 1], rcx
mov qword [rbp + 0xf], rcx
jb 0x140250311
mov rax, qword [rdi]
lea rdx, [0x140344690]
mov rcx, r15
test rax, rax
je 0x140250331
mov rdx, rax
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x140250327
lea eax, [rcx*2 + 2]
mov qword [rbp + 0x17], rdx
mov dword [rbp + 0x1f], eax
mov dword [rbp + 0x23], r15d
lea rax, [rbp - 0x39]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x1403e1bdb]
xor r8d, r8d
mov dword [rsp + 0x20], 6
mov rcx, r10
call fcn.140001158
mov eax, dword [rbp - 0x49]
lea r8, [rbp - 0x41]
mov edx, SafeArrayGetDim
mov dword [rbp - 0x41], eax
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x1402503bb
cmp qword [rdi + 0x18], 8
jb 0x14025038f
mov rdi, qword [rdi]
mov eax, dword [rbp - 0x49]
lea r9, str.Failed_to_change_the_service__ws_launch_protected_level_to__d.
mov rcx, qword [rbp + 0x5f]
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov dword [rsp + 0x28], eax
mov edx, 0x22f
mov qword [rsp + 0x20], rdi
call fcn.1401ff8d0
mov esi, eax
jmp 0x1402503be
mov esi, r15d
test rbx, rbx
je 0x1402503cc
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov eax, esi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1402dfdb0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1402509b8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
cmp rdx, 0x400
jbe 0x140250a00
lea rbx, [rdx - 0x401]
shr rbx, 0xa
inc rbx
imul rax, rbx, 0xfffffffffffffc00
add rdi, rax
mov r8d, 0x400
lea rdx, [0x14036f680]
call fcn.140250850
mov ecx, eax
sub rbx, 1
jne 0x1402509e6
mov r8, rdi
lea rdx, [0x14036f680]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140250850

Function at 0x140252540
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
mov rax, qword [rdx + 0x10]
test rax, rax
jne 0x140252585
call fcn.1402b9bb8
mov rax, qword [rdi + 0x10]
test rax, rax
jne 0x140252585
and qword [rbx], rax
and qword [rbx + 8], rax
and qword [rbx + 0x10], rax
jmp 0x140252625
and dword [rsp + 0x78], 0
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140252597
mov rcx, qword [rdi]
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
lea rdx, [rsp + 0x78]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
lea r8d, [r9 + 1]
mov edx, eax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x14025263a
mov edx, dword [rsp + 0x78]
lea rcx, [rsp + 0x48]
call fcn.140076f04
nop
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 8
jb 0x1402525dd
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
je 0x140252679
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
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.140048a6c
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, 0x2e
call fcn.14004d1a0
nop
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140048a6c
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, 0x3d
call fcn.14004d1a0
int3
Function at 0x14025318c
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, 0xab
call fcn.140062740
mov rdi, qword [rbp + 0x40]
test rdi, rdi
je 0x14025322a
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, 0xb6
call fcn.140062740
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, 0xbe
call fcn.140062740
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, 0xc7
call fcn.140062740
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 0x140253338
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptDestroyHash]
nop
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x140253349
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