joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001ad80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov r10, qword [rcx]
test r10, r10
je 0x14001ae04
mov r11, qword [rcx + 8]
mov r8, qword [rcx + 0x10]
cmp r8, r11
jae 0x14001ae04
movzx eax, byte [r10 + r8]
cmp eax, 0x49
mov rbx, rcx
je 0x14001ae1d
cmp eax, 0x42
jne 0x14001ae04
lea rsi, [r8 + 1]
mov qword [rcx + 0x10], rsi
mov r9b, 1
cmp rsi, r11
jae 0x14001af4d
cmp byte [r10 + rsi], 0x5f
jne 0x14001aedc
lea rax, [r8 + 2]
mov qword [rcx + 0x10], rax
xor eax, eax
cmp rax, r8
jae 0x14001af4d
mov edx, dword [rcx + 0x18]
inc edx
cmp edx, 0x1f4
jbe 0x14001afa7
mov dil, 1
xor r9d, r9d
jmp 0x14001af4f
xor edx, edx
call fcn.140016270
mov esi, eax
add sil, sil
mov eax, esi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
inc r8
mov qword [rcx + 0x10], r8
xor edx, edx
call fcn.140016270
test al, al
jne 0x14001af8d
mov rdx, rbx
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001ae5c
lea rdx, [0x14006cd33]
mov r8d, 1
call fcn.1400092d0
mov rdx, rbx
test al, al
jne 0x14001af8d
mov rax, qword [rdx]
mov sil, 1
test rax, rax
je 0x14001ae10
xor r14d, r14d
lea rdi, [0x14006d089]
nop word cs:[rax + rax]
mov rcx, qword [rdx + 0x10]
cmp rcx, qword [rdx + 8]
jae 0x14001ae94
cmp byte [rax + rcx], 0x45
je 0x14001afe0
sub r14, 1
jb 0x14001aebc
mov rcx, qword [rdx + 0x20]
test rcx, rcx
je 0x14001aebc
mov r8d, 2
mov rdx, rdi
call fcn.1400092d0
mov rdx, rbx
test al, al
jne 0x14001af8d
mov rcx, rdx
call fcn.140017b00
test al, al
jne 0x14001af8d
mov rdx, rbx
mov rax, qword [rbx]
test rax, rax
jne 0x14001ae80
jmp 0x14001ae10
xor eax, eax
mov r14d, 0x3e
nop word cs:[rax + rax]
movzx edx, byte [r10 + rsi]
cmp dl, 0x5f
je 0x14001af3d
lea edi, [rdx - 0x30]
cmp dil, 0xa
jb 0x14001af1f
lea edi, [rdx - 0x61]
cmp dil, 0x1a
jae 0x14001af11
add dl, 0xa9
jmp 0x14001af1d
lea edi, [rdx - 0x41]
cmp dil, 0x1a
jae 0x14001af4d
add dl, 0xe3
mov edi, edx
inc rsi
mov qword [rcx + 0x10], rsi
mul r14
jo 0x14001af4d
movzx edx, dil
xor edi, edi
add rax, rdx
jb 0x14001af4f
cmp rsi, r11
jb 0x14001aef0
jmp 0x14001af4f
inc rsi
mov qword [rcx + 0x10], rsi
inc rax
jne 0x14001addf
xor edi, edi
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x14001af95
mov ecx, r9d
xor cl, 1
movzx ecx, cl
lea r8, [rcx + rcx*8]
add r8, 0x10
lea rcx, str.invalid_syntaxrecursion_limit_reached_for_____::closureshim_as__mut_const___dyn___unsafe_extern__
lea rdx, [0x14006d068]
test r9b, r9b
cmovne rdx, rcx
mov rcx, rax
call fcn.1400092d0
mov rcx, rbx
test al, al
je 0x14001af95
mov sil, 2
jmp 0x14001ae10
mov qword [rcx], 0
mov byte [rcx + 8], dil
xor esi, esi
jmp 0x14001ae10
cmp qword [rcx + 0x20], 0
je 0x14001afa0
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movaps xmmword [rbp - 0x10], xmm1
movaps xmmword [rbp - 0x20], xmm0
mov qword [rcx + 0x10], rax
mov dword [rcx + 0x18], edx
mov rsi, rcx
call fcn.14001ad80
movaps xmm0, xmmword [rbp - 0x20]
movaps xmm1, xmmword [rbp - 0x10]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14001ae12
inc rcx
mov qword [rdx + 0x10], rcx
jmp 0x14001ae10
Function at 0x14001cf80
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
aeskeygenassist xmm0, xmmword [rdx], 2
movdqa xmmword [rcx], xmm0
ret

Function at 0x140020890
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14006f028]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x1400208ff
mov rcx, rsi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rbp]
cmp eax, 0x103
je 0x14002092b
test eax, eax
js 0x14002090b
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x140020921
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x14006f088]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x20], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x30]
call fcn.1400201d0
mov rcx, rax
call fcn.140020250
mov ecx, 7
int 0x29
ud2

Function at 0x140021550
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov ecx, dword [0x1400580a8]
test ecx, ecx
je 0x140021644
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140021581
cmp qword [rax + 8], 0
jne 0x14002163e
mov ecx, dword [0x1400580a8]
test ecx, ecx
je 0x140021666
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140021683
test rax, rax
jne 0x1400215ff
mov qword [rbp - 8], 0
lea rax, [0x140058090]
mov qword [rbp - 0x10], rax
movzx eax, byte [0x14009b150]
mov ecx, 0x18
call fcn.140042430
test rax, rax
je 0x1400216a5
mov rcx, qword [rbp]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rax], xmm0
mov ecx, dword [0x1400580a8]
test ecx, ecx
je 0x14002168c
dec ecx
mov rdx, rax
mov rsi, rax
call sub.kernel32.dll_TlsSetValue
mov rax, rsi
mov rdx, qword [rax + 8]
mov rcx, qword [rax + 0x10]
mov qword [rbp - 0x10], rdx
mov qword [rbp - 8], rcx
mov qword [rax + 8], 1
mov qword [rax + 0x10], 0
test rdx, rdx
je 0x14002163e
test rcx, rcx
je 0x14002163e
lock dec qword [rcx]
jne 0x14002163e
lea rcx, [rbp - 8]
mov rsi, rax
call fcn.140021770
mov rax, rsi
add rax, 0x10
jmp 0x140021685
lea rcx, [0x140058090]
call fcn.140021830
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x140021576
jmp 0x140021581
lea rcx, [0x140058090]
call fcn.140021830
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1400215a0
xor eax, eax
add rsp, 0x38
pop rsi
pop rbp
ret
lea rcx, [0x140058090]
mov rsi, rax
call fcn.140021830
mov ecx, eax
mov rax, rsi
jmp 0x1400215f1
mov ecx, 8
mov edx, 0x18
call fcn.140008000
ud2
Function at 0x140021830
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov rsi, rcx
cmp qword [rcx], 0
je 0x1400218c5
mov rax, qword [0x14009d038]
mov dword [rbp], 0
lea rbx, [rsi + 0x10]
mov r8, rbp
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
mov dword [rbp + 4], eax
cmp eax, 1
jne 0x140021904
cmp dword [rbp], 0
je 0x1400218e8
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140021919
mov edi, eax
mov rax, qword [0x14009b120]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x14009b120], rsi
jne 0x1400218a0
mov eax, edi
inc eax
mov dword [rsi + 0x18], eax
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x1400218f9
call sub.kernel32.dll_TlsAlloc
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x14002195b
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x1400218ed
mov edi, dword [rbp + 4]
jmp 0x1400218f9
mov edi, dword [rsi + 0x18]
jmp 0x1400218f7
mov edi, eax
mov ecx, dword [rbp + 4]
call sub.kernel32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov qword [rbp - 0x30], 0
lea rcx, [rbp + 4]
lea rdx, [rbp - 0x30]
call fcn.1400219c0
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 1
mov qword [rbp - 0x20], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
lea rdx, str.library_std_src_syspalwindows_thread_local_key.rs
lea rcx, [rbp - 0x30]
call fcn.140008880
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 1
mov qword [rbp - 0x20], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
lea rcx, [rbp + 4]
lea rdx, [rbp - 0x30]
call fcn.140021a10
int3

Function at 0x140022520
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x140058088]
test ecx, ecx
je 0x1400225be
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x14002254c
cmp byte [rax + 8], 0
jne 0x1400225b8
mov ecx, dword [0x140058088]
test ecx, ecx
je 0x1400225e0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400225fd
test rax, rax
jne 0x1400225b2
movzx eax, byte [0x14009b150]
mov ecx, 0x10
call fcn.140042430
test rax, rax
je 0x14002261c
lea rcx, [0x140058070]
mov qword [rax], rcx
mov byte [rax + 8], 0
mov ecx, dword [0x140058088]
test ecx, ecx
je 0x140022606
dec ecx
mov rdx, rax
mov rsi, rax
call sub.kernel32.dll_TlsSetValue
mov rax, rsi
mov word [rax + 8], 1
add rax, 9
jmp 0x1400225ff
lea rcx, [0x140058070]
call fcn.140021830
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x140022546
jmp 0x14002254c
lea rcx, [0x140058070]
call fcn.140021830
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x14002256b
xor eax, eax
add rsp, 0x28
pop rsi
pop rbp
ret
lea rcx, [0x140058070]
mov rsi, rax
call fcn.140021830
mov ecx, eax
mov rax, rsi
jmp 0x1400225a4
mov ecx, 8
mov edx, 0x10
call fcn.140008000
int3
Function at 0x140022b60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x140058068]
test ecx, ecx
je 0x140022b92
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140022bab
cmp qword [rax + 8], 0
je 0x140022bab
add rax, 0x10
jmp 0x140022c4d
lea rcx, [0x140058050]
call fcn.140021830
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x140022b82
mov ecx, dword [0x140058068]
test ecx, ecx
je 0x140022c2e
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140022c4b
test rax, rax
jne 0x140022c11
movzx eax, byte [0x14009b150]
mov ecx, 0x20
call fcn.140042430
test rax, rax
je 0x140022c6a
lea rcx, [0x140058050]
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x140058068]
test ecx, ecx
je 0x140022c54
dec ecx
mov rdx, rax
mov rsi, rax
call sub.kernel32.dll_TlsSetValue
mov rax, rsi
mov qword [rax + 8], 1
mov rcx, rax
add rax, 0x10
mov qword [rcx + 0x10], 0
mov byte [rcx + 0x18], 0
jmp 0x140022c4d
lea rcx, [0x140058050]
call fcn.140021830
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x140022bc6
xor eax, eax
add rsp, 0x28
pop rsi
pop rbp
ret
lea rcx, [0x140058050]
mov rsi, rax
call fcn.140021830
mov ecx, eax
mov rax, rsi
jmp 0x140022c03
mov ecx, 8
mov edx, 0x20
call fcn.140008000
int3

Function at 0x1400263b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
and al, 0x20
movzx r9d, byte [rdx + 0x38]
movzx eax, byte [rdx + 0x3a]
test al, al
Function at 0x1400268c0
Capabilities:
Read file via mapping

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov rax, r8
mov rsi, rcx
mov dword [rbp - 0x48], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x30], 7
mov qword [rbp - 0x2c], 0
mov word [rbp - 0x24], 0
mov byte [rbp - 0x28], 1
lea r8, [rbp - 0x48]
mov rcx, rdx
mov rdx, rax
call fcn.14003eef0
mov rdi, rdx
test rax, rax
je 0x140026931
mov rcx, rdi
call fcn.140020270
mov qword [rsi], 0
jmp 0x140026a57
lea rcx, [rbp - 0x48]
mov rdx, rdi
call fcn.14003f160
cmp dword [rbp - 0x48], 2
jne 0x14002696c
mov rcx, qword [rbp - 0x40]
call fcn.140020270
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp fcn.140055e7c
mov r12, qword [rbp - 0x10]
test rdi, rdi
je 0x1400269ba
mov qword [rbp - 0x48], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbp - 0x48]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x140026a36
mov rbx, qword [rbp - 0x48]
jmp 0x1400269bc
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.kernel32.dll_CreateFileMappingA
test rax, rax
je 0x140026a25
mov r14, rax
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.kernel32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call fcn.140055e7c
test r15, r15
je 0x140026a25
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x140026a4f
mov qword [rsi], 0
mov rcx, rbx
call fcn.140055e7c
jmp 0x140026a4f
call sub.kernel32.dll_GetLastError
shl rax, 0x20
lea rcx, [rax + 2]
call fcn.140020270
mov qword [rsi], 0
mov rcx, rdi
call fcn.140055e7c
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
Function at 0x140040ad0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14006f028]
add eax, 0x2e53d
Function at 0x1400569c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140057760
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140057760
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140056a30
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14009b1d4]
mov rbx, rcx
test esi, esi
jle 0x140056b60
mov rax, qword [0x14009b1d8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140056a7b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140056b05
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140056a60
mov rcx, rbx
call fcn.140057480
mov rdi, rax
test rax, rax
je 0x140056b82
mov rax, qword [0x14009b1d8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400575c0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14009b1d8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140056b67
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140056afe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140056b10
add dword [0x14009b1d4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14009b1d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140056afe
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400569c0
nop dword [rax]
xor esi, esi
jmp 0x140056a88
mov rax, qword [0x14009b1d8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400569c0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400569c0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400570f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14009b240]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14009b220]
test rbx, rbx
je 0x14005714c
mov rbp, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140057143
test rsi, rsi
je 0x140057143
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140057128
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140057480
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140093c10]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400574a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400574a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400574a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400574fd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400574f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400574a0
add rax, 0x28
cmp rax, r9
jne 0x1400574e0
xor eax, eax
ret

Function at 0x140057500
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140093c10]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14005751f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140057528
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14005751f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400575c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140093c10]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400575df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400575e8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14003a6c0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
vmovdqu xmm4, xmmword [r9 - 0x80]
vmovdqu xmm2, xmmword [r11 + 0x20]
lea r13, [r10 - 1]
vmovups xmm15, xmmword [r9 - 0x70]
lea r12, [r9 - 0x60]
vpxor xmm9, xmm1, xmm4
add ebx, 0x6000000
jb 0x14003a7e0
vpaddb xmm10, xmm1, xmm2
vpaddb xmm11, xmm10, xmm2
vpxor xmm10, xmm10, xmm4
vpaddb xmm12, xmm11, xmm2
vpxor xmm11, xmm11, xmm4
vpaddb xmm13, xmm12, xmm2
vpxor xmm12, xmm12, xmm4
vpaddb xmm14, xmm13, xmm2
vpxor xmm13, xmm13, xmm4
vpaddb xmm1, xmm14, xmm2
vpxor xmm14, xmm14, xmm4
jmp 0x14003a720
vaesenc xmm9, xmm9, xmm15
vaesenc xmm10, xmm10, xmm15
vaesenc xmm11, xmm11, xmm15
vaesenc xmm12, xmm12, xmm15
vaesenc xmm13, xmm13, xmm15
vaesenc xmm14, xmm14, xmm15
vmovups xmm15, xmmword [r12]
lea r12, [r12 + 0x10]
dec r13d
jne 0x14003a720
vmovdqu xmm3, xmmword [r12]
vaesenc xmm9, xmm9, xmm15
vpxor xmm4, xmm3, xmmword [rcx]
vaesenc xmm10, xmm10, xmm15
vpxor xmm5, xmm3, xmmword [rcx + 0x10]
vaesenc xmm11, xmm11, xmm15
vpxor xmm6, xmm3, xmmword [rcx + 0x20]
vaesenc xmm12, xmm12, xmm15
vpxor xmm8, xmm3, xmmword [rcx + 0x30]
vaesenc xmm13, xmm13, xmm15
vpxor xmm2, xmm3, xmmword [rcx + 0x40]
vaesenc xmm14, xmm14, xmm15
vpxor xmm3, xmm3, xmmword [rcx + 0x50]
lea rcx, [rcx + 0x60]
vaesenclast xmm9, xmm9, xmm4
vaesenclast xmm10, xmm10, xmm5
vaesenclast xmm11, xmm11, xmm6
vaesenclast xmm12, xmm12, xmm8
vaesenclast xmm13, xmm13, xmm2
vaesenclast xmm14, xmm14, xmm3
vmovups xmmword [rdx], xmm9
vmovups xmmword [rdx + 0x10], xmm10
vmovups xmmword [rdx + 0x20], xmm11
vmovups xmmword [rdx + 0x30], xmm12
vmovups xmmword [rdx + 0x40], xmm13
vmovups xmmword [rdx + 0x50], xmm14
lea rdx, [rdx + 0x60]
ret
vpshufb xmm6, xmm1, xmm0
vmovdqu xmm5, xmmword [r11 + 0x30]
vpaddd xmm10, xmm6, xmmword [r11 + 0x40]
vpaddd xmm11, xmm6, xmm5
vpaddd xmm12, xmm10, xmm5
vpshufb xmm10, xmm10, xmm0
vpaddd xmm13, xmm11, xmm5
vpshufb xmm11, xmm11, xmm0
vpxor xmm10, xmm10, xmm4
vpaddd xmm14, xmm12, xmm5
vpshufb xmm12, xmm12, xmm0
vpxor xmm11, xmm11, xmm4
vpaddd xmm1, xmm13, xmm5
vpshufb xmm13, xmm13, xmm0
vpxor xmm12, xmm12, xmm4
vpshufb xmm14, xmm14, xmm0
vpxor xmm13, xmm13, xmm4
vpshufb xmm1, xmm1, xmm0
vpxor xmm14, xmm14, xmm4
jmp 0x14003a720
Function at 0x1400ce880
Capabilities:
Query service status

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x158
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14025e040]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor ecx, ecx
xor edx, edx
mov r8d, 1
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
je 0x1400ce982
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.14012d270
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rbx + 0x17], 0
jns 0x1400ce8dd
mov rbx, qword [rbx]
mov rcx, rdi
mov rdx, rbx
mov r8d, 4
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x1400ce979
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.14012d270
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
movups xmmword [rdx + 0xc], xmm0
movaps xmmword [rdx], xmm0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400ce972
mov eax, dword [rsp + 0x24]
mov dword [rsi], eax
mov al, 1
mov byte [rsi + 4], al
call fcn.14012d270
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.14012d270
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140156d40
mov rax, rsi
add rsp, 0x158
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov byte [rsi], 0
xor eax, eax
jmp 0x1400ce934
xor eax, eax
mov byte [rsi], al
mov byte [rsi + 4], al
jmp 0x1400ce945
lea rcx, str....._bravecomponents_brave_vpncommonwinutils.cc
mov edx, 0x35
call fcn.14012cfd0
test eax, eax
jle 0x1400cea36
lea rdx, str....._bravecomponents_brave_vpncommonwinutils.cc
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8d, 0x23
mov r9d, 0xffffffff
call fcn.1400e3be0
lea rcx, [rsp + 0x30]
lea rdx, str.::OpenSCManager_failed._service_name:
mov r8d, 0x26
call fcn.140111880
mov rcx, rax
mov rdx, rbx
call fcn.1400e0bb0
lea rdx, str.__error:
mov r8d, 9
mov rcx, rax
call fcn.140111880
mov rbx, rax
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov ecx, dword [rbx + rax + 8]
and ecx, 0xffffffb5
or ecx, 8
mov dword [rbx + rax + 8], ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov edx, 0x80004005
cmovne edx, ecx
mov rcx, rbx
call fcn.1400c2cc0
mov rcx, rdi
call fcn.1400e41f0
xor eax, eax
mov byte [rsi], al
mov byte [rsi + 4], al
jmp 0x1400ce953

Function at 0x1400cea50
Capabilities:
Modify service

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x14025e040]
xor rax, rsp
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [0x1402359e0]
lea rax, [rsp + 0x50]
movaps xmmword [rax], xmm0
movabs rdx, 0x100000000
mov qword [rax + 0x10], rdx
movaps xmm0, xmmword [0x14022f060]
lea r8, [rsp + 0x20]
movaps xmmword [r8], xmm0
movaps xmmword [r8 + 0x10], xmm0
mov dword [r8], 0
xorps xmm0, xmm0
movups xmmword [r8 + 8], xmm0
mov dword [r8 + 0x18], 3
mov qword [r8 + 0x20], rax
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140156d40
mov eax, ebx
add rsp, 0x70
pop rbx
ret