joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001c4c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov r14, rdx
mov rbp, rcx
mov edx, 0x800
mov ecx, 0x40
xor sil, sil
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x14001c683
mov rcx, qword [r14]
lea rax, [rsp + 0x60]
lea rdx, str.HostName
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x60], 0x800
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or rbx, 0xffffffffffffffff
test eax, eax
jne 0x14001c59f
mov rax, rbx
nop
inc rax
cmp word [rdi + rax*2], 0
jne 0x14001c530
test rax, rax
je 0x14001c59f
cmp word [rdi], 0
jne 0x14001c550
xor ebx, ebx
jmp 0x14001c55a
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x14001c550
lea rcx, [rbp + 0x28]
mov r8, rbx
mov rdx, rdi
call fcn.14000d3f0
mov rcx, rdi
mov sil, 1
call fcn.14001b470
mov ecx, 0x17
cmp cx, ax
je 0x14001c60c
mov ecx, 2
cmp cx, ax
je 0x14001c60c
mov dword [rbp + 0xc8], 0
jmp 0x14001c616
mov rcx, qword [r14]
lea rax, [rsp + 0x60]
lea rdx, str.IPAddress
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x60], 0x800
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001c616
mov rax, rbx
inc rax
cmp word [rdi + rax*2], 0
jne 0x14001c5d3
test rax, rax
je 0x14001c616
cmp word [rdi], 0
jne 0x14001c5f0
xor ebx, ebx
jmp 0x14001c5fa
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x14001c5f0
lea rcx, [rbp + 0x28]
mov r8, rbx
mov rdx, rdi
call fcn.14000d3f0
mov sil, 1
mov dword [rbp + 0xc8], 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbx, qword [rsp + 0x50]
test sil, sil
je 0x14001c683
mov rcx, qword [r14]
lea rax, [rsp + 0x68]
lea rdx, str.PortNumber
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
movzx eax, sil
jne 0x14001c687
mov ecx, dword [rsp + 0x60]
mov dword [rbp + 0xcc], ecx
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
movzx eax, sil
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140021000
Capabilities:
Write file on windows

Disassembly:
test rcx, rcx
je 0x1400210fb
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 0x30]
mov esi, edx
mov qword [rsp + 0x50], rdi
call fcn.140021980
mov rcx, rax
mov rdi, rax
call fcn.140021a60
test al, al
je 0x1400210ec
mov rcx, qword [0x140057788]
mov qword [rsp + 0x48], rbp
xor ebp, ebp
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x14002106e
lea r9, [rsp + 0x40]
mov r8d, 0x1f8
mov rdx, rbx
mov dword [rsp + 0x40], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
call fcn.140022010
or rbx, 0xffffffffffffffff
mov rdi, rax
mov rax, qword [0x140057600]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400210bf
mov dword [rsp + 0x40], ebp
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp byte [rdi + r8], bpl
jne 0x1400210a0
lea r9, [rsp + 0x40]
mov rdx, rdi
mov rcx, rax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbp, qword [rsp + 0x48]
test rdi, rdi
je 0x1400210ec
nop dword [rax]
inc rbx
cmp byte [rdi + rbx], 0
jne 0x1400210d0
mov rdx, rbx
mov rcx, rdi
call fcn.140021f80
mov rcx, rdi
call fcn.140023db0
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
Function at 0x140021100
Capabilities:
Print debug messages
Set registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xd0
mov rax, qword [0x140053010]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movzx eax, byte [0x140047710]
movups xmm0, xmmword [str.SoftwareHewlett_PackardXPS_Drv]
movups xmm1, xmmword [0x140047700]
xor ebx, ebx
mov qword [r11 + 0x10], rbp
mov byte [r11 - 0x28], al
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x50]
mov rbp, rcx
movups xmmword [r11 - 0x48], xmm0
movups xmmword [r11 - 0x38], xmm1
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov qword [r11 + 0x18], rsi
lea rdx, [r11 - 0x48]
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0xf003f
mov qword [r11 + 0x20], rdi
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x50], rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
or rdi, 0xffffffffffffffff
test eax, eax
jne 0x1400211fa
mov eax, dword [0x1400476e8]
movsd xmm0, qword [str.LeakedModule]
mov dword [rsp + 0x60], eax
movzx eax, byte [0x1400476ec]
movsd qword [rsp + 0x58], xmm0
mov byte [rsp + 0x64], al
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp byte [rax + rbp], bl
jne 0x1400211c0
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0x58]
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], rbx
mov eax, dword [0x140047788]
movups xmm0, xmmword [str.Logging_memory_leak_information_to:_r_n]
movups xmm1, xmmword [0x140047778]
mov dword [rsp + 0x88], eax
movzx eax, word [0x14004778c]
mov rsi, rdi
mov word [rsp + 0x8c], ax
lea rax, [rsp + 0x68]
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm1
inc rsi
cmp byte [rax + rsi], bl
jne 0x140021236
lea ecx, [rsi + 1]
lea eax, [rcx - 1]
cmp eax, 0x7ffdeeff
ja 0x1400212b0
mov qword [rsp + 0xc8], r14
mov qword [rsp + 0xc0], r15
mov r15d, ecx
call fcn.140025fd4
mov r8d, r15d
xor edx, edx
mov rcx, rax
mov rbx, rax
call fcn.140027190
test rbx, rbx
je 0x1400212a0
lea r8, [rsp + 0x68]
mov r9d, esi
mov edx, r15d
mov rcx, rbx
call fcn.140024d98
test eax, eax
jne 0x140021298
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, rbx
call fcn.140023db0
mov r14, qword [rsp + 0xc8]
mov r15, qword [rsp + 0xc0]
mov rsi, qword [rsp + 0xf0]
test rbp, rbp
je 0x1400212d4
nop dword [rax]
inc rdi
cmp byte [rdi + rbp], 0
jne 0x1400212c0
mov rdx, rdi
mov rcx, rbp
call fcn.140021f80
mov ecx, 3
call fcn.140025fd4
mov rdi, qword [rsp + 0xf8]
mov rbp, qword [rsp + 0xe8]
mov rbx, rax
xor eax, eax
mov word [rbx], ax
mov byte [rbx + 2], al
test rbx, rbx
je 0x140021329
lea r9d, [rax + 2]
lea r8, [0x140045914]
lea edx, [rax + 3]
mov rcx, rbx
call fcn.140024d98
test eax, eax
jne 0x140021321
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, rbx
call fcn.140023db0
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140023790
add rsp, 0xd0
pop rbx
ret
Function at 0x1400216f0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x50]
lea rdx, str.SOFTWAREHewlett_PackardHPProfiler
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
xor bl, bl
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x50], 0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002177f
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14002177f
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x48]
lea rdx, str.AppendCSLSymbolServerPath
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140021774
cmp dword [rsp + 0x40], eax
seta bl
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
add rsp, 0x30
pop rbx
ret
Function at 0x140021f80
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov esi, edx
mov r14, rcx
lea edx, [rsi + 1]
lea eax, [rdx - 1]
cmp eax, 0x7ffdeeff
ja 0x140021ffe
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbp
mov ecx, edx
mov qword [rsp + 0x40], rdi
mov ebp, edx
call fcn.140025fd4
mov r8d, ebp
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.140027190
mov rbx, qword [rsp + 0x30]
test rdi, rdi
je 0x140021ff4
mov r9d, esi
mov r8, r14
mov edx, ebp
mov rcx, rdi
call fcn.140024d98
test eax, eax
jne 0x140021fec
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, rdi
call fcn.140023db0
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140022570
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
push rbp
sub rsp, 0x150
mov rax, qword [0x140053010]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov qword [r11 - 0x10], r12
mov qword [r11 - 0x18], r13
call qword [sym.imp.KERNEL32.dll_DebugBreak]
cmp byte [0x1400575fc], 0
jne 0x1400225b8
lea rcx, [0x140057738]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [0x1400575fc], 1
mov qword [rsp + 0x160], rbx
lea rcx, [0x140057738]
mov qword [rsp + 0x168], rsi
mov qword [rsp + 0x170], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbp, qword [0x140057768]
xor r12d, r12d
mov r13d, r12d
test rbp, rbp
je 0x1400226c7
mov rcx, qword [rbp + 0x30]
call fcn.140021980
mov qword [rsp + 0x138], r14
mov qword [rsp + 0x130], r15
mov qword [rsp + 0x30], rax
nop dword [rax]
nop word [rax + rax]
add r12, qword [rbp + 0x20]
mov r8d, 2
mov rdx, rbp
mov rcx, rax
inc r13
call fcn.140022010
mov rsi, rax
test rax, rax
je 0x1400226a5
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140022644
lea ecx, [rbx + 1]
lea eax, [rcx - 1]
cmp eax, 0x7ffdeeff
ja 0x14002269d
mov r15d, ecx
call fcn.140025fd4
mov r8d, r15d
mov rcx, rax
xor edx, edx
mov rdi, rax
call fcn.140027190
test rdi, rdi
je 0x14002269d
mov r9d, ebx
mov r8, rsi
mov edx, r15d
mov rcx, rdi
call fcn.140024d98
test eax, eax
jne 0x140022695
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, rdi
call fcn.140023db0
mov rcx, rsi
call fcn.140023db0
mov rbp, qword [rbp + 0x10]
mov rax, qword [rsp + 0x30]
test rbp, rbp
jne 0x140022620
mov r15, qword [rsp + 0x130]
mov r14, qword [rsp + 0x138]
movups xmm0, xmmword [str._llu_allocations_active__consuming__llu_bytes_r_n]
movups xmm1, xmmword [0x140047ab0]
lea rcx, [rsp + 0x71]
xor edx, edx
mov r8d, 0xaf
mov byte [rsp + 0x70], 0
movups xmmword [rsp + 0x38], xmm0
movups xmm0, xmmword [0x140047ac0]
movups xmmword [rsp + 0x48], xmm1
movups xmmword [rsp + 0x58], xmm0
call fcn.140027190
lea r8, [rsp + 0x38]
lea rcx, [rsp + 0x70]
mov r9, r13
mov edx, 0xb0
mov qword [rsp + 0x20], r12
call fcn.140025fb0
mov r13, qword [rsp + 0x140]
mov r12, qword [rsp + 0x148]
mov ebp, eax
lea eax, [rbp + 1]
lea ecx, [rax - 1]
cmp ecx, 0x7ffdeeff
ja 0x140022783
mov ecx, eax
mov esi, eax
call fcn.140025fd4
mov r8d, esi
xor edx, edx
mov rcx, rax
mov rbx, rax
call fcn.140027190
test rbx, rbx
je 0x140022783
lea r8, [rsp + 0x70]
mov r9d, ebp
mov edx, esi
mov rcx, rbx
call fcn.140024d98
test eax, eax
jne 0x14002277b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, rbx
call fcn.140023db0
lea rcx, [0x140057738]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdi, qword [rsp + 0x170]
mov rsi, qword [rsp + 0x168]
mov rbx, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140023790
add rsp, 0x150
pop rbp
ret
Function at 0x140022dd0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x140053010]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp qword [0x140057990], 0
jne 0x140022eaf
call qword [sym.imp.dbghelp.dll_SymGetOptions]
or eax, 0x80000006
mov ecx, eax
call qword [sym.imp.dbghelp.dll_SymSetOptions]
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x11c
call fcn.140027190
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 6
jae 0x140022e43
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, 0x1000
jmp 0x140022e4e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, 0x400
mov r8d, eax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [0x140057990], rax
test rax, rax
je 0x140022eaf
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 1]
call qword [sym.imp.dbghelp.dll_SymInitialize]
test eax, eax
je 0x140022e92
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140023790
add rsp, 0x158
ret
mov rcx, qword [0x140057990]
test rcx, rcx
je 0x140022eaf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140057990], 0
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140023790
add rsp, 0x158
ret
Function at 0x1403cbb80
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1405b8180]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 2
call fcn.14042ddf0
test eax, eax
je 0x1403cbbf6
mov rax, qword [rbx + 0x120]
mov rcx, rax
shr rcx, 0x20
bswap ecx
mov dword [rsp + 0x20], ecx
bswap eax
mov dword [rsp + 0x24], eax
mov rax, qword [rbx + 0xa0]
mov rcx, rax
shr rcx, 0x20
bswap ecx
mov dword [rsp + 0x28], ecx
bswap eax
mov dword [rsp + 0x2c], eax
lea r8, [rsp + 0x20]
mov rcx, rsi
mov rdx, rdi
call fcn.14042df60
jmp 0x1403cbcd7
movzx eax, byte [rdi + 0xf]
mov rcx, rax
and eax, 0xf
mov r8, qword [rbx + rax*8 + 0x60]
mov r9, qword [rbx + rax*8 + 0xe0]
mov rax, r9
shld rax, r8, 0x3c
shr rcx, 4
xor rax, qword [rbx + rcx*8 + 0x60]
shr r9, 4
xor r9, qword [rbx + rcx*8 + 0xe0]
and r8d, 0xf
lea rdx, [0x14046a940]
movzx ecx, word [rdx + r8*2]
shl rcx, 0x30
xor rcx, r9
mov r8d, 0xf
nop word [rax + rax]
movzx r10d, byte [rdi + r8 - 1]
mov r9d, r10d
and r9d, 0xf
mov r11, rcx
shld r11, rax, 0x3c
xor r11, qword [rbx + r9*8 + 0x60]
shr rcx, 4
xor rcx, qword [rbx + r9*8 + 0xe0]
and eax, 0xf
movzx r9d, word [rdx + rax*2]
shl r9, 0x30
xor r9, rcx
mov rax, rcx
shld rax, r11, 0x3c
and r11d, 0xf
shr r9, 4
movzx ecx, word [rdx + r11*2]
shl rcx, 0x30
shr r10, 4
xor r9, qword [rbx + r10*8 + 0xe0]
xor rcx, r9
xor rax, qword [rbx + r10*8 + 0x60]
dec r8
jne 0x1403cbc50
shr rcx, 0x20
bswap ecx
mov dword [rsi], ecx
bswap r9d
mov dword [rsi + 4], r9d
mov rcx, rax
shr rcx, 0x20
bswap ecx
mov dword [rsi + 8], ecx
bswap eax
mov dword [rsi + 0xc], eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14043bf40
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
Function at 0x14042de30
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rcx + 8]
vmovdqa xmm0, xmmword [rcx + rax*4 + 0x10]
vpxor xmm0, xmm0, xmmword [r8]
mov r8d, dword [rcx]
lea rax, [rcx + rax*4]
add rax, 0x20
lea ecx, [r8 - 1]
test edx, edx
je 0x14042decf
test ecx, ecx
je 0x14042dec8
add r8d, 0xfffffffe
mov edx, ecx
and edx, 7
je 0x14042de84
xor r10d, r10d
nop word cs:[rax + rax]
vaesenc xmm0, xmm0, xmmword [rax]
add rax, 0x10
inc r10d
cmp edx, r10d
jne 0x14042de70
sub ecx, r10d
cmp r8d, 7
jb 0x14042dec8
nop word [rax + rax]
vaesenc xmm0, xmm0, xmmword [rax]
vaesenc xmm0, xmm0, xmmword [rax + 0x10]
vaesenc xmm0, xmm0, xmmword [rax + 0x20]
vaesenc xmm0, xmm0, xmmword [rax + 0x30]
vaesenc xmm0, xmm0, xmmword [rax + 0x40]
vaesenc xmm0, xmm0, xmmword [rax + 0x50]
vaesenc xmm0, xmm0, xmmword [rax + 0x60]
vaesenc xmm0, xmm0, xmmword [rax + 0x70]
sub rax, 0xffffffffffffff80
add ecx, 0xfffffff8
jne 0x14042de90
vaesenclast xmm0, xmm0, xmmword [rax]
jmp 0x14042df4d
test ecx, ecx
je 0x14042df48
add r8d, 0xfffffffe
mov edx, ecx
and edx, 7
je 0x14042df04
xor r10d, r10d
nop word cs:[rax + rax]
vaesdec xmm0, xmm0, xmmword [rax]
add rax, 0x10
inc r10d
cmp edx, r10d
jne 0x14042def0
sub ecx, r10d
cmp r8d, 7
jb 0x14042df48
nop word [rax + rax]
vaesdec xmm0, xmm0, xmmword [rax]
vaesdec xmm0, xmm0, xmmword [rax + 0x10]
vaesdec xmm0, xmm0, xmmword [rax + 0x20]
vaesdec xmm0, xmm0, xmmword [rax + 0x30]
vaesdec xmm0, xmm0, xmmword [rax + 0x40]
vaesdec xmm0, xmm0, xmmword [rax + 0x50]
vaesdec xmm0, xmm0, xmmword [rax + 0x60]
vaesdec xmm0, xmm0, xmmword [rax + 0x70]
sub rax, 0xffffffffffffff80
add ecx, 0xfffffff8
jne 0x14042df10
vaesdeclast xmm0, xmm0, xmmword [rax]
vmovdqu xmmword [r9], xmm0
xor eax, eax
ret

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

Disassembly:
movsxd rax, r8d
shl rax, 4
vmovdqa xmm0, xmmword [rdx + rax]
vmovdqa xmmword [rcx], xmm0
add rcx, 0x10
add rax, rdx
add rax, 0xfffffffffffffff0
cmp rax, rdx
jbe 0x14042e076
vaesimc xmm0, xmmword [rax]
vmovdqa xmmword [rcx], xmm0
add rcx, 0x10
add rax, 0xfffffffffffffff0
cmp rax, rdx
ja 0x14042e060
vmovaps xmm0, xmmword [rax]
vmovaps xmmword [rcx], xmm0
ret

Function at 0x140434070
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
vmovaps xmm0, xmmword [str.expand_32_byte_k]
vmovups xmmword [rcx], xmm0
mov eax, dword [rdx]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 4]
mov dword [rcx + 0x14], eax
mov eax, dword [rdx + 8]
mov dword [rcx + 0x18], eax
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0x1c], eax
mov eax, dword [rdx + 0x10]
mov dword [rcx + 0x20], eax
mov eax, dword [rdx + 0x14]
mov dword [rcx + 0x24], eax
mov eax, dword [rdx + 0x18]
mov dword [rcx + 0x28], eax
mov eax, dword [rdx + 0x1c]
mov dword [rcx + 0x2c], eax
xor eax, eax
ret
Function at 0x140436940
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov eax, 0xffffffdf
cmp edx, 1
ja 0x1404369fc
mov rsi, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
lea r14, [rcx + 0x10]
mov ecx, 0x2000000
call fcn.14042ddf0
test eax, eax
je 0x140436991
mov eax, r14d
shr eax, 2
and eax, 3
mov r15d, 4
sub r15d, eax
test eax, eax
cmove r15d, eax
jmp 0x140436994
xor r15d, r15d
mov rax, qword [rbx + 8]
cmp rax, r15
je 0x1404369b9
lea rcx, [r14 + r15*4]
lea rdx, [r14 + rax*4]
mov eax, dword [rbx]
shl eax, 4
add eax, 0x10
movsxd r8, eax
call fcn.140464fe0
mov qword [rbx + 8], r15
mov ecx, 0x2000000
call fcn.14042ddf0
mov rcx, rbx
test eax, eax
je 0x1404369e3
mov edx, ebp
mov r8, rdi
mov r9, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.14042de30
mov rdx, rdi
mov r8, rsi
cmp ebp, 1
jne 0x1404369f5
call fcn.140436050
jmp 0x1404369fa
call fcn.1404364d0
xor eax, eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140437af0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
vmovdqu xmm0, xmmword [r8]
vpxor xmm0, xmm0, xmmword [rdx]
vmovd eax, xmm0
movzx edx, al
lea rsi, str.cw
movzx edx, byte [rdx + rsi]
vpshufb xmm1, xmm0, xmmword [0x14046e6d0]
vpmovzxdq ymm1, xmm1
vmovq r8, xmm1
lea rdi, [0x14046e250]
movzx r8d, byte [r8 + rdi]
shl r8d, 8
or r8d, edx
mov edx, eax
shr edx, 0x10
movzx edx, dl
lea rbx, [0x14046e150]
movzx r10d, byte [rdx + rbx]
shl r10d, 0x10
shr rax, 0x18
lea r14, [0x14046e050]
movzx edx, byte [rax + r14]
shl edx, 0x18
or edx, r10d
lea eax, [rdx + r8]
vpextrd r10d, xmm0, 1
movzx r11d, r10b
movzx r11d, byte [r11 + rsi]
vpextrq r15, xmm1, 1
movzx r15d, byte [r15 + rdi]
shl r15d, 8
or r15d, r11d
mov r11d, r10d
shr r11d, 0x10
movzx r11d, r11b
movzx r11d, byte [r11 + rbx]
shl r11d, 0x10
shr r10, 0x18
movzx r10d, byte [r10 + r14]
shl r10d, 0x18
or r10d, r11d
lea ebp, [r10 + r15]
vpextrd r11d, xmm0, 2
movzx r12d, r11b
movzx r12d, byte [r12 + rsi]
vextracti128 xmm1, ymm1, 1
vmovq r13, xmm1
movzx r13d, byte [r13 + rdi]
shl r13d, 8
or r13d, r12d
mov r12d, r11d
shr r12d, 0x10
movzx r12d, r12b
movzx r12d, byte [r12 + rbx]
shl r12d, 0x10
or r12d, r13d
shr r11, 0x18
movzx r11d, byte [r11 + r14]
shl r11d, 0x18
or r11d, r12d
vpextrd r12d, xmm0, 3
movzx r13d, r12b
movzx esi, byte [r13 + rsi]
vpextrq r13, xmm1, 1
movzx r13d, byte [r13 + rdi]
shl r13d, 8
or r13d, esi
mov esi, r12d
shr esi, 0x10
movzx esi, sil
movzx esi, byte [rsi + rbx]
shl esi, 0x10
shr r12, 0x18
movzx edi, byte [r12 + r14]
shl edi, 0x18
or edi, esi
shrd r10d, r15d, 0x10
lea esi, [rdi + r13]
shrd edi, r13d, 0x10
bswap r11d
xor edi, r11d
rol r11d, 0x10
bswap esi
xor ebp, r11d
shrd edx, r8d, 0x10
bswap ebp
rol ebp, 0x10
mov r8d, edx
xor r8d, esi
mov ebx, r10d
bswap ebx
rol ebx, 0x10
xor r8d, ebp
mov ebp, edi
rol ebp, 0x10
xor ebp, r8d
bswap ebp
rol ebp, 0x10
mov r14d, r8d
rol r14d, 0x10
xor ebx, edx
mov edx, ebx
xor ebp, dword [r9]
xor ebp, r10d
mov dword [rcx], ebp
xor eax, dword [r9 + 4]
bswap edx
xor eax, edi
xor eax, r8d
bswap r8d
mov dword [rcx + 4], eax
xor edx, dword [r9 + 8]
xor edx, r14d
xor edx, esi
mov dword [rcx + 8], edx
xor r8d, dword [r9 + 0xc]
xor ebx, r11d
xor ebx, r8d
mov dword [rcx + 0xc], ebx
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
vzeroupper
ret
Function at 0x14043b0c0
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
push rax
mov qword [rsp], r8
mov r8d, dword [rdx]
mov eax, dword [rdx + 4]
bswap r8d
bswap eax
mov edx, r8d
shr edx, 4
xor edx, eax
and edx, 0xf0f0f0f
xor eax, edx
shl edx, 4
xor edx, r8d
mov r8d, edx
shr r8d, 0x10
movzx r9d, ax
xor r9d, r8d
xor eax, r9d
shl r9d, 0x10
xor r9d, edx
mov r8d, eax
shr r8d, 2
xor r8d, r9d
and r8d, 0x33333333
xor r9d, r8d
shl r8d, 2
xor r8d, eax
mov edx, r8d
shr edx, 8
xor edx, r9d
and edx, 0xff00ff
xor r9d, edx
shl edx, 8
xor edx, r8d
rol edx, 1
mov eax, edx
xor eax, r9d
and eax, 0xaaaaaaaa
xor edx, eax
xor eax, r9d
rol eax, 1
xor r9d, r9d
lea r8, [0x14046f2f0]
lea r11, [0x14046f3f0]
lea rsi, [0x14046f4f0]
lea rdi, [0x14046f5f0]
lea rbx, [0x14046f6f0]
lea r14, [0x14046f7f0]
lea r15, [0x14046f8f0]
lea r12, [0x14046f9f0]
nop dword [rax + rax]
mov ebp, edx
mov edx, dword [rcx + r9]
xor edx, ebp
mov r10d, edx
and r10d, 0x3f
mov r13d, edx
shr r13d, 8
and r13d, 0x3f
xor eax, dword [r8 + r10*4]
mov r10d, edx
shr r10d, 0x10
and r10d, 0x3f
shr edx, 0x18
and edx, 0x3f
xor eax, dword [r11 + r13*4]
mov r13d, ebp
rol r13d, 0x1c
xor r13d, dword [rcx + r9 + 4]
xor eax, dword [rsi + r10*4]
mov r10d, r13d
and r10d, 0x3f
xor eax, dword [rdi + rdx*4]
mov edx, r13d
shr edx, 8
and edx, 0x3f
xor eax, dword [rbx + r10*4]
mov r10d, r13d
shr r10d, 0x10
and r10d, 0x3f
shr r13d, 0x18
and r13d, 0x3f
xor eax, dword [r14 + rdx*4]
xor eax, dword [r15 + r10*4]
xor eax, dword [r12 + r13*4]
mov r13d, dword [rcx + r9 + 8]
xor r13d, eax
mov edx, r13d
and edx, 0x3f
mov edx, dword [r8 + rdx*4]
mov r10d, r13d
shr r10d, 8
and r10d, 0x3f
xor edx, dword [r11 + r10*4]
mov r10d, r13d
shr r10d, 0x10
and r10d, 0x3f
shr r13d, 0x18
and r13d, 0x3f
xor edx, dword [rsi + r10*4]
mov r10d, eax
rol r10d, 0x1c
xor r10d, dword [rcx + r9 + 0xc]
xor edx, dword [rdi + r13*4]
mov r13d, r10d
and r13d, 0x3f
xor edx, dword [rbx + r13*4]
mov r13d, r10d
shr r13d, 8
and r13d, 0x3f
xor edx, dword [r14 + r13*4]
mov r13d, r10d
shr r13d, 0x10
and r13d, 0x3f
xor edx, dword [r15 + r13*4]
shr r10d, 0x18
and r10d, 0x3f
xor edx, dword [r12 + r10*4]
xor edx, ebp
add r9, 0x10
cmp r9d, 0x80
jne 0x14043b190
ror edx, 1
mov ecx, edx
xor ecx, eax
and ecx, 0xaaaaaaaa
xor edx, ecx
xor ecx, eax
shrd ecx, eax, 1
mov r8d, ecx
shr r8d, 8
xor r8d, edx
and r8d, 0xff00ff
xor edx, r8d
shl r8d, 8
xor r8d, ecx
mov eax, r8d
shr eax, 2
xor eax, edx
and eax, 0x33333333
xor edx, eax
shl eax, 2
xor eax, r8d
mov ecx, edx
shr ecx, 0x10
movzx r8d, ax
xor r8d, ecx
xor eax, r8d
shl r8d, 0x10
xor r8d, edx
mov ecx, r8d
shr ecx, 4
xor ecx, eax
and ecx, 0xf0f0f0f
xor eax, ecx
shl ecx, 4
xor ecx, r8d
bswap ecx
mov rdx, qword [rsp]
mov dword [rdx], ecx
bswap eax
mov dword [rdx + 4], eax
xor eax, eax
add rsp, 8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret