joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b0210
Capabilities:
Enumerate pe sections

Disassembly:
mov rax, rdx
mov rdx, qword [rcx + 0x70]
test rax, rax
je 0x1400b036b
movzx ecx, byte [rax + 1]
movzx r9d, byte [rax + 2]
shl ecx, 8
shl r9d, 0x10
or ecx, r9d
movzx r9d, byte [rax]
or ecx, r9d
movzx r9d, byte [rax + 3]
shl r9d, 0x18
or ecx, r9d
mov dword [rdx], ecx
movzx ecx, byte [rax + 5]
movzx r9d, byte [rax + 6]
shl ecx, 8
shl r9d, 0x10
or ecx, r9d
movzx r9d, byte [rax + 4]
or ecx, r9d
movzx r9d, byte [rax + 7]
shl r9d, 0x18
or ecx, r9d
mov dword [rdx + 4], ecx
movzx ecx, byte [rax + 9]
movzx r9d, byte [rax + 0xa]
shl ecx, 8
shl r9d, 0x10
or ecx, r9d
movzx r9d, byte [rax + 8]
or ecx, r9d
movzx r9d, byte [rax + 0xb]
shl r9d, 0x18
or ecx, r9d
mov dword [rdx + 8], ecx
movzx ecx, byte [rax + 0xd]
movzx r9d, byte [rax + 0xe]
shl ecx, 8
shl r9d, 0x10
or ecx, r9d
movzx r9d, byte [rax + 0xc]
or ecx, r9d
movzx r9d, byte [rax + 0xf]
shl r9d, 0x18
or ecx, r9d
mov dword [rdx + 0xc], ecx
movzx ecx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x12]
shl ecx, 8
shl r9d, 0x10
or ecx, r9d
movzx r9d, byte [rax + 0x10]
or ecx, r9d
movzx r9d, byte [rax + 0x13]
shl r9d, 0x18
or ecx, r9d
mov dword [rdx + 0x10], ecx
movzx ecx, byte [rax + 0x15]
movzx r9d, byte [rax + 0x16]
shl ecx, 8
shl r9d, 0x10
or ecx, r9d
movzx r9d, byte [rax + 0x14]
or ecx, r9d
movzx r9d, byte [rax + 0x17]
shl r9d, 0x18
or ecx, r9d
mov dword [rdx + 0x14], ecx
movzx ecx, byte [rax + 0x19]
movzx r9d, byte [rax + 0x1a]
shl ecx, 8
shl r9d, 0x10
or ecx, r9d
movzx r9d, byte [rax + 0x18]
or ecx, r9d
movzx r9d, byte [rax + 0x1b]
shl r9d, 0x18
or ecx, r9d
mov dword [rdx + 0x18], ecx
movzx ecx, byte [rax + 0x1d]
movzx r9d, byte [rax + 0x1e]
shl ecx, 8
shl r9d, 0x10
or ecx, r9d
movzx r9d, byte [rax + 0x1c]
movzx eax, byte [rax + 0x1f]
or ecx, r9d
shl eax, 0x18
or eax, ecx
mov dword [rdx + 0x1c], eax
test r8, r8
je 0x1400b040b
movzx eax, byte [r8 + 1]
movzx ecx, byte [r8 + 2]
shl eax, 8
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [r8]
or eax, ecx
movzx ecx, byte [r8 + 3]
shl ecx, 0x18
or eax, ecx
mov dword [rdx + 0x20], eax
movzx eax, byte [r8 + 6]
movzx ecx, byte [r8 + 5]
shl eax, 0x10
shl ecx, 8
or eax, ecx
movzx ecx, byte [r8 + 4]
or eax, ecx
movzx ecx, byte [r8 + 7]
shl ecx, 0x18
or eax, ecx
mov dword [rdx + 0x24], eax
movzx eax, byte [r8 + 0xa]
movzx ecx, byte [r8 + 9]
shl eax, 0x10
shl ecx, 8
or eax, ecx
movzx ecx, byte [r8 + 8]
or eax, ecx
movzx ecx, byte [r8 + 0xb]
shl ecx, 0x18
or eax, ecx
mov dword [rdx + 0x28], eax
movzx eax, byte [r8 + 0xd]
movzx ecx, byte [r8 + 0xe]
shl eax, 8
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [r8 + 0xc]
or eax, ecx
movzx ecx, byte [r8 + 0xf]
shl ecx, 0x18
or eax, ecx
mov dword [rdx + 0x2c], eax
mov eax, 1
mov dword [rdx + 0x70], 0
ret
Function at 0x1400b44a0
Capabilities:
Encode data using base64

Disassembly:
push rbx
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
test rcx, rcx
je 0x1400b44bc
test byte [rcx + 0x5c], 2
lea rax, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._
cmovne r10, rax
xor r11d, r11d
test r9d, r9d
jg 0x1400b4521
jmp 0x1400b455e
movzx eax, byte [r8 + 1]
add r8, 3
shl eax, 8
or eax, ecx
movzx ecx, byte [r8 - 1]
mov ebx, eax
shr ebx, 0x12
or ecx, eax
shr eax, 0xc
movzx ebx, byte [r10 + rbx]
and eax, 0x3f
mov byte [rdx - 4], bl
movzx eax, byte [r10 + rax]
mov byte [rdx - 3], al
mov eax, ecx
and ecx, 0x3f
shr eax, 6
and eax, 0x3f
movzx eax, byte [r10 + rax]
mov byte [rdx - 2], al
movzx eax, byte [r10 + rcx]
mov byte [rdx - 1], al
sub r9d, 3
je 0x1400b455e
movzx ecx, byte [r8]
mov rbx, rdx
add r11d, 4
add rdx, 4
shl ecx, 0x10
cmp r9d, 2
jg 0x1400b44d0
je 0x1400b4570
mov eax, ecx
shr ecx, 0xc
shr eax, 0x12
and ecx, 0x30
movzx eax, byte [r10 + rax]
mov byte [rbx], al
movzx eax, byte [r10 + rcx]
mov byte [rbx + 1], al
mov eax, 0x3d3d
mov word [rbx + 2], ax
mov eax, r11d
mov byte [rdx], 0
pop rbx
ret
movzx eax, byte [r8 + 1]
shl eax, 8
or eax, ecx
shr ecx, 0x12
movzx ecx, byte [r10 + rcx]
mov byte [rbx], cl
mov ecx, eax
shr eax, 6
shr ecx, 0xc
and eax, 0x3c
and ecx, 0x3f
movzx ecx, byte [r10 + rcx]
mov byte [rbx + 1], cl
movzx eax, byte [r10 + rax]
mov byte [rbx + 3], 0x3d
mov byte [rbx + 2], al
mov eax, r11d
mov byte [rdx], 0
pop rbx
ret

Function at 0x1400b4a20
Capabilities:
Encode data using base64

Disassembly:
mov r9d, r8d
mov r8, rdx
mov rdx, rcx
xor ecx, ecx
jmp fcn.1400b44a0
Function at 0x1400beb20
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.14011c110
test eax, eax
jne 0x1400beb40
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140233dc8
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1400c43c0
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
je 0x1400c4420
movsx ecx, byte [rcx]
xor eax, eax
test cl, cl
je 0x1400c4410
mov edi, 0x100
xor ebx, ebx
nop
call fcn.14007f930
add rsi, 1
or eax, edi
add edi, 0x100
mov ecx, eax
shr ecx, 2
xor ecx, eax
imul eax, eax
and ecx, 0xf
rol ebx, cl
movsx ecx, byte [rsi]
xor ebx, eax
test cl, cl
jne 0x1400c43e0
mov eax, ebx
shr eax, 0x10
xor eax, ebx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x1400c5500
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
vmovdqu xmm4, xmmword [rcx - 0x80]
vmovdqu xmm2, xmmword [r11 + 0x20]
lea r13, [rbp - 1]
vmovups xmm15, xmmword [rcx - 0x70]
lea r12, [rcx - 0x60]
vpxor xmm9, xmm1, xmm4
add ebx, 0x6000000
jb 0x1400c5620
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 0x1400c5560
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 0x1400c5560
vmovdqu xmm3, xmmword [r12]
vaesenc xmm9, xmm9, xmm15
vpxor xmm4, xmm3, xmmword [rdi]
vaesenc xmm10, xmm10, xmm15
vpxor xmm5, xmm3, xmmword [rdi + 0x10]
vaesenc xmm11, xmm11, xmm15
vpxor xmm6, xmm3, xmmword [rdi + 0x20]
vaesenc xmm12, xmm12, xmm15
vpxor xmm8, xmm3, xmmword [rdi + 0x30]
vaesenc xmm13, xmm13, xmm15
vpxor xmm2, xmm3, xmmword [rdi + 0x40]
vaesenc xmm14, xmm14, xmm15
vpxor xmm3, xmm3, xmmword [rdi + 0x50]
lea rdi, [rdi + 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 [rsi], xmm9
vmovups xmmword [rsi + 0x10], xmm10
vmovups xmmword [rsi + 0x20], xmm11
vmovups xmmword [rsi + 0x30], xmm12
vmovups xmmword [rsi + 0x40], xmm13
vmovups xmmword [rsi + 0x50], xmm14
lea rsi, [rsi + 0x60]
repz 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 0x1400c5560
Function at 0x1400c95c0
Capabilities:
Encode data using xor

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, qword [rsp + 0xb0]
mov r12, qword [rsp + 0xc8]
mov rbx, rcx
mov rdi, rdx
mov rbp, r9
test r8, r8
je 0x1400c9644
lea r13, [rcx + r8]
mov ecx, dword [rsp + 0xc0]
mov rax, qword [rsi]
mov rdx, qword [rsi + 8]
test ecx, ecx
jne 0x1400c9658
mov qword [rsp + 0x20], rax
mov r8, rbp
mov rcx, rsi
add rbx, 1
mov qword [rsp + 0x28], rdx
mov rdx, rsi
add rdi, 1
call r12
movzx eax, byte [rbx - 1]
movzx edx, byte [rsi]
xor edx, eax
mov byte [rsp + 0x30], al
mov rax, qword [rsp + 0x21]
mov byte [rdi - 1], dl
mov rdx, qword [rsp + 0x29]
mov qword [rsi], rax
mov qword [rsi + 8], rdx
cmp rbx, r13
jne 0x1400c9600
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov qword [rsp + 0x20], rax
mov r8, rbp
mov rcx, rsi
add rbx, 1
mov qword [rsp + 0x28], rdx
mov rdx, rsi
add rdi, 1
call r12
movzx eax, byte [rbx - 1]
xor al, byte [rsi]
mov byte [rdi - 1], al
mov byte [rsp + 0x30], al
mov rax, qword [rsp + 0x21]
mov rdx, qword [rsp + 0x29]
mov qword [rsi], rax
mov qword [rsi + 8], rdx
cmp r13, rbx
jne 0x1400c9658
jmp 0x1400c9644
Function at 0x1400e2840
Capabilities:
Encode data using xor

Disassembly:
sub rdx, r8
sub rcx, r8
mov r10, r9
shr r9, 4
je 0x1400e2875
nop
movdqu xmm0, xmmword [rdx + r8]
pxor xmm0, xmmword [r8]
movdqu xmmword [rcx + r8], xmm0
movdqa xmmword [r8], xmm0
lea r8, [r8 + 0x10]
dec r9
jne 0x1400e2850
and r10, 0xf
je 0x1400e28a6
mov r9, 0x10
sub r9, r10
xor eax, eax
mov al, byte [rdx + r8]
xor al, byte [r8]
mov byte [rcx + r8], al
mov byte [r8], al
lea r8, [r8 + 1]
dec r10
jne 0x1400e2881
xor eax, eax
mov byte [r8], al
lea r8, [r8 + 1]
dec r9
jne 0x1400e289a
mov rax, r8
repz ret

Function at 0x1400e28b0
Capabilities:
Encode data using xor

Disassembly:
sub rdx, r8
sub rcx, r8
mov r10, r9
shr r9, 4
je 0x1400e28ed
nop
movdqu xmm0, xmmword [rdx + r8]
movdqa xmm1, xmmword [r8]
pxor xmm1, xmm0
movdqu xmmword [rcx + r8], xmm1
movdqa xmmword [r8], xmm0
lea r8, [r8 + 0x10]
dec r9
jne 0x1400e28c0
pxor xmm1, xmm1
and r10, 0xf
je 0x1400e2924
mov r9, 0x10
sub r9, r10
xor eax, eax
xor r11, r11
mov r11b, byte [rdx + r8]
mov al, byte [r8]
xor al, r11b
mov byte [rcx + r8], al
mov byte [r8], r11b
lea r8, [r8 + 1]
dec r10
jne 0x1400e28fc
xor eax, eax
mov byte [r8], al
lea r8, [r8 + 1]
dec r9
jne 0x1400e2918
mov rax, r8
repz ret

Function at 0x1400e7c90
Capabilities:
Generate random numbers via winapi

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
mov edx, 1
mov rbx, rcx
call fcn.1400e6b20
mov rcx, rbx
mov rdx, rax
mov rsi, rax
call fcn.1400e70c0
mov rdi, rax
test rax, rax
je 0x1400e7d08
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1400e7d80
xor r8d, r8d
xor esi, esi
mov rcx, rbx
mov rdx, rsi
call fcn.1400e72c0
mov rcx, rbx
call fcn.1400e6ad0
test rax, rax
je 0x1400e7d08
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
mov edx, 1
mov rcx, rbx
call fcn.1400e6b20
mov rcx, rbx
mov rdx, rax
mov rsi, rax
call fcn.1400e70c0
mov rdi, rax
test rax, rax
je 0x1400e7d6e
xor edx, edx
mov dword [rsp + 0x20], 0xf0000040
lea rcx, [rsp + 0x48]
mov r9d, 0x16
lea r8, str.Intel_Hardware_Cryptographic_Service_Provider
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1400e7dc8
xor r8d, r8d
xor esi, esi
mov rcx, rbx
mov rdx, rsi
call fcn.1400e72c0
mov rcx, rbx
call fcn.1400e6ad0
test rax, rax
jne 0x1400e7cfd
mov rcx, rbx
call fcn.1400e6ad0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
mov rcx, qword [rsp + 0x48]
mov r8, rdi
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x1400e7db8
xor r8d, r8d
xor esi, esi
mov qword [rsp + 0x38], r8
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov r8, qword [rsp + 0x38]
jmp 0x1400e7ce5
lea r8, [rsi*8]
jmp 0x1400e7d99
mov rcx, qword [rsp + 0x48]
mov r8, rdi
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1400e7e00
lea r8, [rsi*8]
mov qword [rsp + 0x38], r8
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov r8, qword [rsp + 0x38]
jmp 0x1400e7d56
xor r8d, r8d
xor esi, esi
jmp 0x1400e7de4
Function at 0x1400f4550
Capabilities:
Check for software breakpoints

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [rsp + 0x60]
mov r10, rcx
cmp eax, r9d
jne 0x1400f461f
movzx ecx, byte [r8]
lea edx, [rcx - 0x6a]
cmp dl, 1
ja 0x1400f461f
lea rdx, [r8 + 1]
lea ebx, [rax - 2]
cmp cl, 0x6b
je 0x1400f45a8
movsxd rax, ebx
cmp byte [rdx + rax], 0xcc
jne 0x1400f4645
mov r8d, ebx
mov rcx, r10
call sub.msvcrt.dll_memcpy
mov eax, ebx
add rsp, 0x30
pop rbx
ret
lea ebx, [rax - 3]
test ebx, ebx
jle 0x1400f45d6
xor eax, eax
jmp 0x1400f45c4
cmp cl, 0xbb
jne 0x1400f45e0
add eax, 1
cmp ebx, eax
je 0x1400f4618
movzx ecx, byte [rdx]
add rdx, 1
cmp cl, 0xba
jne 0x1400f45b8
sub ebx, eax
test eax, eax
jne 0x1400f4581
mov dword [rsp + 0x20], 0x50
jmp 0x1400f45e8
mov dword [rsp + 0x20], 0x48
mov r8d, 0x8a
mov edx, pe_nt_image_headers64
mov ecx, 4
lea r9, str.crypto_rsa_rsa_x931.c
call fcn.1400a0f90
mov ebx, 0xffffffff
mov eax, ebx
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
jmp 0x1400f4581
mov r8d, 0x89
mov edx, pe_nt_image_headers64
mov ecx, 4
mov dword [rsp + 0x20], 0x3d
lea r9, str.crypto_rsa_rsa_x931.c
call fcn.1400a0f90
jmp 0x1400f4604
mov r8d, 0x8b
mov edx, pe_nt_image_headers64
mov ecx, 4
mov dword [rsp + 0x20], 0x59
lea r9, str.crypto_rsa_rsa_x931.c
call fcn.1400a0f90
jmp 0x1400f4604
Function at 0x1401111d0
Capabilities:
Hash data using sha256

Disassembly:
push rsi
push rbx
sub rsp, 0x98
pxor xmm0, xmm0
lea rax, [0x14032f0c0]
movups xmmword [rsp + 0x70], xmm0
test r8, r8
lea rsi, [rsp + 0x20]
movups xmmword [rsp + 0x40], xmm0
cmovne rax, r8
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
mov rbx, rax
movups xmmword [rsp + 0x7c], xmm0
movdqu xmm0, xmmword [0x1402af890]
mov dword [rsp + 0x8c], 0x20
movups xmmword [rsp + 0x20], xmm0
movdqu xmm0, xmmword [0x1402af8a0]
movups xmmword [rsp + 0x30], xmm0
test rdx, rdx
je 0x140111244
mov r8, rdx
mov rdx, rcx
mov rcx, rsi
call fcn.1401108c0
mov rdx, rsi
mov rcx, rbx
call fcn.140110ea0
mov edx, 0x70
mov rcx, rsi
call fcn.1401426f0
mov rax, rbx
add rsp, 0x98
pop rbx
pop rsi
ret
Function at 0x14011b560
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [rbx], eax
setne al
movzx eax, al
add rsp, 0x20
pop rbx
ret

Function at 0x14011b580
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x14011b5b0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
setne al
movzx eax, al
add rsp, 0x28
ret

Function at 0x140142750
Capabilities:
Encode data using xor

Disassembly:
xor rax, rax
xor r10, r10
cmp r8, 0
je 0x14014279d
cmp r8, 0x10
jne 0x140142780
mov r10, qword [rcx]
mov r11, qword [rcx + 8]
mov r8, 1
xor r10, qword [rdx]
xor r11, qword [rdx + 8]
or r10, r11
cmovne rax, r8
repz ret
mov r10b, byte [rcx]
lea rcx, [rcx + 1]
xor r10b, byte [rdx]
lea rdx, [rdx + 1]
or al, r10b
dec r8
jne 0x140142780
neg rax
shr rax, 0x3f
repz ret
Function at 0x140143870
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
lea r12, str.engines_e_capi.c
mov r14, rcx
mov rbp, rdx
mov rdi, r8
mov rdx, r12
mov r8d, 0x5cb
mov ecx, 0x20
mov esi, r9d
call fcn.1400c4810
mov rbx, rax
test rax, rax
je 0x140143a34
cmp esi, 1
je 0x140143988
test r14, r14
je 0x14014391e
cmp dword [r14], 1
jle 0x14014391e
cmp qword [r14 + 8], 0
je 0x14014391e
mov rcx, rbp
call fcn.140143000
mov rcx, rdi
mov r15, rax
call fcn.140143000
mov dword [rsp + 0x20], esi
mov r8, r15
mov rcx, r14
mov r13, rax
mov r9, rax
lea rdx, str.capi_get_key__contname_s__provname_s__type_d_n
call fcn.140142b50
mov r8d, 0x5df
mov rdx, r12
mov rcx, r13
call fcn.1400c47e0
mov r8d, 0x5e0
mov rdx, r12
mov rcx, r15
call fcn.1400c47e0
mov eax, dword [r14 + 0x38]
lea rcx, [rbx + 8]
mov r9d, esi
mov r8, rdi
mov rdx, rbp
shr eax, 0xc
and eax, 0x20
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1401439c0
mov rcx, qword [rbx + 8]
mov edx, dword [rsp + 0xb0]
lea r8, [rbx + 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
test eax, eax
je 0x140143a40
mov eax, dword [rsp + 0xb0]
mov qword [rbx], 0
mov dword [rbx + 0x18], eax
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [0x14032f1e0]
test eax, eax
je 0x1401438bb
mov rcx, rdi
lea rdx, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
call sub.msvcrt.dll_wcscmp
test eax, eax
mov eax, 0x18
cmove esi, eax
lea rax, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
cmove rdi, rax
jmp 0x1401438bb
mov ecx, dword [0x14032f1fc]
test ecx, ecx
je 0x140143ab0
mov r8d, 0x68
mov edx, 0x67
lea rsi, [rsp + 0x36]
mov dword [rsp + 0x20], 0x5e6
lea r9, str.engines_e_capi.c
call fcn.1400a0f90
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x1402b54a1]
mov edx, 0xa
mov rcx, rsi
mov r9d, eax
call fcn.14006aad0
mov r8, rsi
mov ecx, 2
lea rdx, str.Error_code_0x
call fcn.1400a2e00
mov r8d, 0x5f5
mov rdx, r12
mov rcx, rbx
call fcn.1400c47e0
xor ebx, ebx
jmp 0x140143971
mov ecx, dword [0x14032f1fc]
test ecx, ecx
je 0x140143ac8
mov r8d, 0x75
mov edx, 0x67
lea rsi, [rsp + 0x36]
mov dword [rsp + 0x20], 0x5eb
lea r9, str.engines_e_capi.c
call fcn.1400a0f90
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov edx, 0xa
lea r8, [0x1402b54a1]
mov r9d, eax
call fcn.14006aad0
mov r8, rsi
mov ecx, 2
lea rdx, str.Error_code_0x
call fcn.1400a2e00
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x140143a23
call fcn.1400a2bb0
mov dword [0x14032f1fc], eax
mov ecx, eax
jmp 0x1401439ce
call fcn.1400a2bb0
mov dword [0x14032f1fc], eax
mov ecx, eax
jmp 0x140143a4a
Function at 0x1401472c0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r15, r8
call fcn.140146850
test eax, eax
js 0x1401474d9
mov eax, dword [r15 + 0xf0]
mov rcx, r15
lea r11d, [rax*4]
test r11d, r11d
jle 0x1401474d7
movsxd rax, r11d
mov rdx, r15
xor r8d, r8d
lea rax, [r15 + rax*4]
nop dword [rax + rax]
mov r9d, dword [rdx]
mov r10d, dword [rax]
add r8d, 4
add rdx, 0x10
sub rax, 0x10
mov dword [rdx - 0x10], r10d
mov r10d, dword [rax + 0x14]
mov dword [rax + 0x10], r9d
mov r9d, dword [rdx - 0xc]
mov dword [rdx - 0xc], r10d
mov r10d, dword [rax + 0x18]
mov dword [rax + 0x14], r9d
mov r9d, dword [rdx - 8]
mov dword [rdx - 8], r10d
mov r10d, dword [rax + 0x1c]
mov dword [rax + 0x18], r9d
mov r9d, dword [rdx - 4]
mov dword [rdx - 4], r10d
mov dword [rax + 0x1c], r9d
mov r9d, r11d
sub r9d, r8d
cmp r8d, r9d
jl 0x140147310
cmp dword [r15 + 0xf0], 1
jle 0x1401474d7
mov esi, 1
lea r11, [0x1402b6fe0]
lea rax, [0x1402b7be0]
lea r10, [0x1402b63e0]
lea r9, [0x1402b6be0]
lea r8, [0x1402b67e0]
nop dword [rax + rax]
mov r13d, dword [rcx + 0x10]
mov r12d, dword [rcx + 0x14]
add rcx, 0x10
add esi, 1
mov ebp, dword [rcx + 8]
mov edi, dword [rcx + 0xc]
mov edx, r13d
movzx r14d, r13b
mov ebx, r13d
shr edx, 0x18
movzx r14d, byte [rax + r14*4]
movzx ebx, bh
movzx edx, byte [rax + rdx*4]
mov edx, dword [r11 + rdx*4]
xor edx, dword [r10 + r14*4]
mov r14d, r13d
shr r14d, 0x10
movzx r13d, byte [rax + rbx*4]
mov ebx, r12d
movzx r14d, r14b
movzx ebx, bh
movzx r14d, byte [rax + r14*4]
xor edx, dword [r9 + r14*4]
xor edx, dword [r8 + r13*4]
movzx r13d, r12b
movd xmm0, edx
mov edx, r12d
movzx r13d, byte [rax + r13*4]
shr edx, 0x18
movzx edx, byte [rax + rdx*4]
mov edx, dword [r11 + rdx*4]
xor edx, dword [r10 + r13*4]
mov r13d, r12d
shr r13d, 0x10
movzx r12d, byte [rax + rbx*4]
mov ebx, ebp
movzx r13d, r13b
movzx r13d, byte [rax + r13*4]
xor edx, dword [r9 + r13*4]
xor edx, dword [r8 + r12*4]
movzx r13d, bpl
mov r12d, edx
mov edx, ebp
movzx r13d, byte [rax + r13*4]
shr edx, 0x18
movd xmm3, r12d
movzx edx, byte [rax + rdx*4]
punpckldq xmm0, xmm3
mov edx, dword [r11 + rdx*4]
xor edx, dword [r10 + r13*4]
mov r13d, ebp
movzx ebp, bh
shr r13d, 0x10
movzx ebp, byte [rax + rbp*4]
mov ebx, edi
movzx r13d, r13b
movzx r13d, byte [rax + r13*4]
xor edx, dword [r9 + r13*4]
xor edx, dword [r8 + rbp*4]
mov ebp, edi
movzx r13d, dil
shr ebp, 0x18
movzx r13d, byte [rax + r13*4]
movd xmm1, edx
movzx ebp, byte [rax + rbp*4]
mov ebp, dword [r11 + rbp*4]
xor ebp, dword [r10 + r13*4]
mov r13d, edi
movzx edi, bh
shr r13d, 0x10
movzx r13d, r13b
movzx r13d, byte [rax + r13*4]
movzx edi, byte [rax + rdi*4]
xor ebp, dword [r9 + r13*4]
xor ebp, dword [r8 + rdi*4]
movd xmm2, ebp
punpckldq xmm1, xmm2
punpcklqdq xmm0, xmm1
movups xmmword [rcx], xmm0
cmp dword [r15 + 0xf0], esi
jg 0x1401473a0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140150da0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movups xmm0, xmmword [rcx]
shl eax, 4
movups xmm1, xmmword [rcx + 0x10]
xorps xmm2, xmm0
xorps xmm3, xmm0
movups xmm0, xmmword [rcx + 0x20]
lea rcx, [rcx + rax + 0x20]
neg rax
add rax, 0x10
aesenc xmm2, xmm1
aesenc xmm3, xmm1
movups xmm1, xmmword [rcx + rax]
add rax, 0x20
aesenc xmm2, xmm0
aesenc xmm3, xmm0
movups xmm0, xmmword [rcx + rax - 0x10]
jne 0x140150dc0
aesenc xmm2, xmm1
aesenc xmm3, xmm1
aesenclast xmm2, xmm0
aesenclast xmm3, xmm0
repz ret

Function at 0x140150e00
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
movups xmm0, xmmword [rcx]
shl eax, 4
movups xmm1, xmmword [rcx + 0x10]
xorps xmm2, xmm0
xorps xmm3, xmm0
movups xmm0, xmmword [rcx + 0x20]
lea rcx, [rcx + rax + 0x20]
neg rax
add rax, 0x10
aesdec xmm2, xmm1
aesdec xmm3, xmm1
movups xmm1, xmmword [rcx + rax]
add rax, 0x20
aesdec xmm2, xmm0
aesdec xmm3, xmm0
movups xmm0, xmmword [rcx + rax - 0x10]
jne 0x140150e20
aesdec xmm2, xmm1
aesdec xmm3, xmm1
aesdeclast xmm2, xmm0
aesdeclast xmm3, xmm0
repz ret

Function at 0x140150e60
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movups xmm0, xmmword [rcx]
shl eax, 4
movups xmm1, xmmword [rcx + 0x10]
xorps xmm2, xmm0
xorps xmm3, xmm0
xorps xmm4, xmm0
movups xmm0, xmmword [rcx + 0x20]
lea rcx, [rcx + rax + 0x20]
neg rax
add rax, 0x10
aesenc xmm2, xmm1
aesenc xmm3, xmm1
aesenc xmm4, xmm1
movups xmm1, xmmword [rcx + rax]
add rax, 0x20
aesenc xmm2, xmm0
aesenc xmm3, xmm0
aesenc xmm4, xmm0
movups xmm0, xmmword [rcx + rax - 0x10]
jne 0x140150e83
aesenc xmm2, xmm1
aesenc xmm3, xmm1
aesenc xmm4, xmm1
aesenclast xmm2, xmm0
aesenclast xmm3, xmm0
aesenclast xmm4, xmm0
repz ret

Function at 0x140150ed0
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
movups xmm0, xmmword [rcx]
shl eax, 4
movups xmm1, xmmword [rcx + 0x10]
xorps xmm2, xmm0
xorps xmm3, xmm0
xorps xmm4, xmm0
movups xmm0, xmmword [rcx + 0x20]
lea rcx, [rcx + rax + 0x20]
neg rax
add rax, 0x10
aesdec xmm2, xmm1
aesdec xmm3, xmm1
aesdec xmm4, xmm1
movups xmm1, xmmword [rcx + rax]
add rax, 0x20
aesdec xmm2, xmm0
aesdec xmm3, xmm0
aesdec xmm4, xmm0
movups xmm0, xmmword [rcx + rax - 0x10]
jne 0x140150ef3
aesdec xmm2, xmm1
aesdec xmm3, xmm1
aesdec xmm4, xmm1
aesdeclast xmm2, xmm0
aesdeclast xmm3, xmm0
aesdeclast xmm4, xmm0
repz ret

Function at 0x140150f40
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movups xmm0, xmmword [rcx]
shl eax, 4
movups xmm1, xmmword [rcx + 0x10]
xorps xmm2, xmm0
xorps xmm3, xmm0
xorps xmm4, xmm0
xorps xmm5, xmm0
movups xmm0, xmmword [rcx + 0x20]
lea rcx, [rcx + rax + 0x20]
neg rax
nop dword [rax]
add rax, 0x10
aesenc xmm2, xmm1
aesenc xmm3, xmm1
aesenc xmm4, xmm1
aesenc xmm5, xmm1
movups xmm1, xmmword [rcx + rax]
add rax, 0x20
aesenc xmm2, xmm0
aesenc xmm3, xmm0
aesenc xmm4, xmm0
aesenc xmm5, xmm0
movups xmm0, xmmword [rcx + rax - 0x10]
jne 0x140150f69
aesenc xmm2, xmm1
aesenc xmm3, xmm1
aesenc xmm4, xmm1
aesenc xmm5, xmm1
aesenclast xmm2, xmm0
aesenclast xmm3, xmm0
aesenclast xmm4, xmm0
aesenclast xmm5, xmm0
repz ret