joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140066830
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbp
mov rbp, rsp
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140066995
cmp byte [rcx], 0
mov r12, rcx
je 0x140066995
call sub.msvcrt.dll_strlen
mov rbx, rax
lea r8, [rax + 1]
lea rax, [rax + 0x10]
shr rax, 4
shl rax, 4
call fcn.140035960
xor edx, edx
sub rsp, rax
lea rsi, [rsp + 0x20]
mov rcx, rsi
call sub.msvcrt.dll_memset
mov rdx, r12
mov rcx, rsi
mov r8, rbx
call sub.msvcrt.dll_memcpy
movzx eax, byte [rsp + 0x20]
mov rdx, rsi
mov ecx, eax
and ecx, 0xffffffdf
sub ecx, 0x41
cmp cl, 0x19
jbe 0x140066951
mov rdi, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop
xor ebx, ebx
test al, al
je 0x1400668d0
cmp al, 0x5c
je 0x140066930
cmp al, 0x2f
je 0x140066930
movzx eax, byte [rdx + 1]
xor ebx, ebx
add rdx, 1
test al, al
jne 0x1400668b6
nop dword [rax]
mov rcx, rsi
call rdi
cmp eax, 0xffffffff
je 0x1400668de
test al, 0x10
jne 0x1400668f2
mov rcx, rsi
call sub.msvcrt.dll__mkdir
mov r12d, eax
cmp eax, 0xffffffff
je 0x14006697b
test rbx, rbx
je 0x140066940
movzx eax, byte [rbx + 1]
mov byte [rbx], 0x5c
lea rdx, [rbx + 1]
xor ebx, ebx
test al, al
jne 0x14006691c
jmp 0x1400668d0
movzx eax, byte [rdx + 1]
add rdx, 1
test al, al
je 0x1400668b0
cmp al, 0x5c
je 0x140066910
cmp al, 0x2f
je 0x140066910
jmp 0x1400668b0
mov byte [rdx], 0
mov rbx, rdx
jmp 0x1400668d0
xor r12d, r12d
lea rsp, [rbp - 0x20]
mov eax, r12d
pop rbx
pop rsi
pop rdi
pop r12
pop rbp
ret
cmp byte [rsp + 0x21], 0x3a
jne 0x1400668a8
movzx ecx, byte [rsi + 2]
cmp cl, 0x5c
je 0x14006696e
cmp cl, 0x2f
jne 0x1400668a8
movzx eax, byte [rsi + 3]
lea rdx, [rsi + 3]
jmp 0x1400668a8
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0x14
lea rsp, [rbp - 0x20]
mov eax, r12d
pop rbx
pop rsi
pop rdi
pop r12
pop rbp
ret
call qword [sym.imp.msvcrt.dll__errno]
mov r12d, 0xffffffff
mov dword [rax], 0x16
jmp 0x140066943

Function at 0x140068ba0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
test r8, r8
je 0x140068c6b
test r9d, r9d
je 0x140068c6b
movsxd r9, r9d
mov rbx, r8
shl r9, 4
lea rdi, [r8 + r9]
cmp r8, rdi
jae 0x140068c67
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbp, rcx
xor esi, esi
lea r13, [rsp + 0x3c]
jmp 0x140068bfd
add rbx, 0x10
add esi, dword [rsp + 0x3c]
cmp rdi, rbx
jbe 0x140068c58
mov qword [rsp + 0x20], 0
mov r9, r13
mov r8d, dword [rbx + 8]
mov rcx, rbp
mov dword [rsp + 0x3c], 0
mov rdx, qword [rbx]
call r12
test eax, eax
jne 0x140068bf0
cmp qword [rsp + 0xa0], 0
je 0x140068c3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rsp + 0xa0]
mov dword [rdx], eax
mov rax, 0xffffffffffffffff
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
add rsp, 0x48
mov eax, esi
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor eax, eax
jmp 0x140068c44
lea rax, str.Bad_input_data
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea r8, str.dap_common
call fcn.140052d40
mov rax, 0xffffffffffffffff
jmp 0x140068c44
Function at 0x1400693f0
Capabilities:
Encode data using xor

Disassembly:
test rdx, rdx
je 0x140069410
test r8, r8
je 0x140069410
test rcx, rcx
je 0x140069410
test r9, r9
je 0x140069410
cmp qword [rcx + 0x20], 0
je 0x140069410
jmp fcn.140056280
mov eax, 0xffffffff
ret
Function at 0x14006f180
Capabilities:
Generate random numbers via winapi

Disassembly:
push r12
mov r12d, 1
push rsi
push rbx
sub rsp, 0x40
test rdx, rdx
jne 0x14006f1a0
add rsp, 0x40
mov eax, r12d
pop rbx
pop rsi
pop r12
ret
mov rsi, rcx
mov rbx, rdx
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000040
lea rcx, [rsp + 0x38]
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14006f1e0
add rsp, 0x40
xor r12d, r12d
mov eax, r12d
pop rbx
pop rsi
pop r12
ret
mov edx, ebx
mov rcx, qword [rsp + 0x38]
mov r8, rsi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
xor edx, edx
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test ebx, ebx
je 0x14006f1c8
jmp 0x14006f193
Function at 0x140077c90
Capabilities:
Encode data using xor

Disassembly:
mov r8, rcx
mov eax, 1
mov ecx, edx
push rbp
shl rax, cl
mov rdx, rax
shr rdx, 1
mov rbp, rsp
and rsp, 0xfffffffffffffff0
cmp rax, rdx
jbe 0x140077d10
mov rcx, rax
sub rcx, rdx
cmp rcx, 1
je 0x140077cfc
mov r9, rcx
lea rax, [r8 + rdx*8]
movapd xmm1, xmmword [0x1402046d0]
shr r9, 1
shl r9, 4
add r9, rax
nop dword [rax]
movupd xmm0, xmmword [rax]
add rax, 0x10
xorpd xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp r9, rax
jne 0x140077cd8
mov rax, rcx
and rax, 0xfffffffffffffffe
add rdx, rax
cmp rcx, rax
je 0x140077d10
lea rax, [r8 + rdx*8]
movsd xmm0, qword [rax]
xorpd xmm0, xmmword [0x1402046c0]
movsd qword [rax], xmm0
leave
ret

Function at 0x1400784b0
Capabilities:
Encode data using xor

Disassembly:
mov r9, rcx
mov eax, 1
mov ecx, r8d
shl rax, cl
mov r11, rax
shr r11, 1
je 0x140078660
push rbp
lea r8, [r11*8]
mov r10, rdx
lea rdx, [r11*8 + 0x10]
lea rcx, [r9 + r8]
mov rbp, rsp
push rbx
lea rbx, [r9 + 0x10]
sub rsp, 0x10
and rsp, 0xfffffffffffffff0
cmp rcx, rbx
setae bl
test rdx, rdx
movaps xmmword [rsp], xmm6
setle dl
or bl, dl
je 0x1400785f0
cmp r11, 1
je 0x1400785f0
shr rax, 2
movapd xmm5, xmmword [0x1402046d0]
add r8, r10
mov rbx, rax
mov rdx, rax
xor eax, eax
shl rbx, 4
nop
movupd xmm0, xmmword [rcx + rax]
movupd xmm2, xmmword [r8 + rax]
movupd xmm1, xmmword [r9 + rax]
movupd xmm3, xmmword [r10 + rax]
movupd xmm6, xmmword [r10 + rax]
xorpd xmm2, xmm5
movapd xmm4, xmm0
mulpd xmm3, xmm1
mulpd xmm4, xmm2
mulpd xmm0, xmm6
mulpd xmm1, xmm2
subpd xmm3, xmm4
addpd xmm0, xmm1
movups xmmword [r9 + rax], xmm3
movups xmmword [rcx + rax], xmm0
add rax, 0x10
cmp rax, rbx
jne 0x140078530
lea rcx, [rdx + rdx]
cmp r11, rcx
je 0x1400785e1
mov rax, rdx
lea rdx, [r11 + rcx]
shl rax, 4
lea rcx, [r9 + rdx*8]
movsd xmm2, qword [r10 + rdx*8]
xorpd xmm2, xmmword [0x1402046c0]
lea r8, [r9 + rax]
movsd xmm0, qword [rcx]
movsd xmm4, qword [r10 + rax]
movsd xmm1, qword [r8]
movapd xmm5, xmm0
mulsd xmm5, xmm2
movapd xmm3, xmm1
mulsd xmm3, xmm4
mulsd xmm0, xmm4
mulsd xmm1, xmm2
subsd xmm3, xmm5
addsd xmm0, xmm1
movsd qword [r8], xmm3
movsd qword [rcx], xmm0
movaps xmm6, xmmword [rsp]
mov rbx, qword [rbp - 8]
leave
ret
movq xmm6, qword [0x1402046c0]
add r8, r10
xor eax, eax
nop dword [rax]
movsd xmm1, qword [r8 + rax*8]
movsd xmm2, qword [r10 + rax*8]
movsd xmm4, qword [r9 + rax*8]
movsd xmm3, qword [rcx + rax*8]
xorpd xmm1, xmm6
movapd xmm0, xmm1
movapd xmm1, xmm2
mulsd xmm1, xmm4
movapd xmm5, xmm0
mulsd xmm5, xmm3
mulsd xmm0, xmm4
mulsd xmm2, xmm3
subsd xmm1, xmm5
addsd xmm0, xmm2
movsd qword [r9 + rax*8], xmm1
movsd qword [rcx + rax*8], xmm0
add rax, 1
cmp rax, r11
jne 0x140078600
movaps xmm6, xmmword [rsp]
mov rbx, qword [rbp - 8]
leave
ret
ret
Function at 0x1400787f0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov r8, rcx
mov r9d, 1
mov ecx, edx
shl r9, cl
mov rbp, rsp
and rsp, 0xfffffffffffffff0
test edx, edx
je 0x140078860
mov rdx, r9
movapd xmm1, xmmword [0x1402046d0]
mov rax, r8
shr rdx, 1
shl rdx, 4
add rdx, r8
nop word [rax + rax]
movupd xmm0, xmmword [rax]
add rax, 0x10
xorpd xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp rdx, rax
jne 0x140078828
mov rax, r9
and rax, 0xfffffffffffffffe
and r9d, 1
je 0x14007885e
lea rax, [r8 + rax*8]
movsd xmm0, qword [rax]
xorpd xmm0, xmmword [0x1402046c0]
movsd qword [rax], xmm0
leave
ret
xor eax, eax
jmp 0x14007884a
Function at 0x140078c00
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push r12
mov r12, rcx
mov r8d, 0x38
mov rcx, rdx
lea rdx, [r12 + 0x208]
sub rsp, 0x20
call fcn.14006fb60
add rsp, 0x20
mov rcx, r12
pop r12
jmp fcn.140078c30
Function at 0x14007ee80
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
mov rdi, rdx
push rsi
push rbx
sub rsp, 0x68
mov rbx, qword [rsp + 0xd0]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x38], r8
mov r14d, dword [rbx + 0x30]
mov esi, dword [rbx + 4]
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x48], rbx
mov eax, r14d
mov dword [rsp + 0x28], r14d
imul eax, esi
mov dword [rsp + 0x2c], esi
mov qword [rsp + 0x30], rax
add rax, r9
mov rcx, rax
mov qword [rsp + 0x50], rax
call sub.msvcrt.dll_malloc
mov r12, rax
test r14d, r14d
je 0x14007efb7
mov r10d, esi
test esi, esi
je 0x14007efb7
mov ebp, dword [rbx + 0x3c]
mov r11d, 1
mov esi, dword [rbx + 0x14]
mov dword [rsp + 0x24], 0
mov ebx, r11d
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov r14d, esi
shl ebx, cl
lea ecx, [rbp - 1]
shr r14d, 1
shl r11d, cl
lea r13d, [rbx - 1]
movsxd rbx, ebx
mov ecx, ebp
movsxd r11, r11d
mov rbp, rdi
movsxd r13, r13d
mov rdi, rbx
mov rbx, r11
mov r11d, r10d
nop dword [rax + rax]
mov r9d, dword [rsp + 0x24]
nop dword [rax]
mov r8d, r9d
mov r10, r14
mov r15, rbx
add r9d, 1
mov rdx, qword [rbp + r8*8]
mov rax, rdx
sub r10, rdx
sub rax, rsi
sar r10, 0x3f
xor rax, rdx
and rax, r10
xor rax, rdx
mov rdx, r13
and rdx, rax
mov r10, rdx
sub r15, rdx
sub r10, rdi
sar r15, 0x3f
xor r10, rdx
and r10, r15
xor rdx, r10
sub rax, rdx
sar rax, cl
mov byte [r12 + r8], al
cmp r9d, r11d
jne 0x14007ef48
mov r8d, dword [rsp + 0x2c]
add dword [rsp + 0x20], 1
add dword [rsp + 0x24], r8d
mov eax, dword [rsp + 0x20]
add r11d, r8d
cmp dword [rsp + 0x28], eax
jne 0x14007ef40
mov rcx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
add rcx, r12
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x48]
mov r9, qword [rsp + 0x50]
mov r8, r12
mov rcx, qword [rsp + 0x58]
mov edx, 0x20
mov eax, dword [rax]
test eax, eax
je 0x14007f00d
cmp eax, 3
je 0x14007f00d
call fcn.140051b20
add rsp, 0x68
mov rcx, r12
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sub.msvcrt.dll_free
call fcn.140051af0
jmp 0x14007eff5
Function at 0x1400869c0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x250
mov r14d, dword [r9 + 8]
mov qword [rbp + 0x20], r8
lea r13, [rsp + 0x150]
mov r8d, dword [r9 + 0x10]
test r14d, r14d
je 0x140086b67
lea rax, [r8 - 1]
lea rdi, [r8 - 2]
mov r11, rdx
mov r10, rcx
mov rsi, rax
mov qword [rsp + 0x38], rax
and rax, 0xfffffffffffffffc
mov r12, r8
mov qword [rsp + 0x40], rax
add rax, 1
shr rsi, 2
xor edx, edx
mov qword [rsp + 0x28], rax
shl rsi, 4
lea r13, [rsp + 0x150]
mov qword [rsp + 0x48], rdi
lea rdi, [rsp + 0x54]
mov qword [rsp + 0x30], rdi
add rsi, rdi
xor edi, edi
nop dword [rax + rax]
xor eax, eax
lea r9, [rsp + 0x50]
test r12d, r12d
je 0x140086b90
lea ecx, [rdx + rax]
mov ecx, dword [r11 + rcx*4]
and ecx, dword [r10 + rax*4]
mov dword [r9 + rax*4], ecx
add rax, 1
cmp r8, rax
jne 0x140086a60
mov eax, dword [rsp + 0x50]
cmp r8, 1
je 0x140086b0a
cmp qword [rsp + 0x48], 2
jbe 0x140086b99
mov rcx, qword [rsp + 0x30]
pxor xmm0, xmm0
nop dword [rax + rax]
movdqu xmm2, xmmword [rcx]
add rcx, 0x10
pxor xmm0, xmm2
cmp rsi, rcx
jne 0x140086aa0
movdqa xmm1, xmm0
psrldq xmm1, 8
pxor xmm0, xmm1
movdqa xmm1, xmm0
psrldq xmm1, 4
pxor xmm0, xmm1
movd ecx, xmm0
xor eax, ecx
mov rcx, qword [rsp + 0x38]
cmp qword [rsp + 0x40], rcx
je 0x140086b0a
mov rcx, qword [rsp + 0x28]
lea rbx, [rcx + 1]
lea r9, [rcx*4]
xor eax, dword [rsp + rcx*4 + 0x50]
cmp rbx, r8
jae 0x140086b0a
add rcx, 2
xor eax, dword [rsp + r9 + 0x54]
cmp rcx, r8
jae 0x140086b0a
xor eax, dword [rsp + r9 + 0x58]
mov ecx, eax
mov ebx, edi
mov r9d, 1
add edx, r12d
shr ecx, 1
shr ebx, 3
xor eax, ecx
add rbx, r13
mov ecx, eax
shr ecx, 2
xor ecx, eax
mov eax, ecx
shr eax, 4
xor eax, ecx
mov ecx, eax
shr ecx, 8
xor eax, ecx
mov ecx, edi
add edi, 1
mov r15d, eax
not ecx
shr r15d, 0x10
and ecx, 7
xor eax, r15d
shl r9d, cl
and eax, 1
not r9d
and r9b, byte [rbx]
shl eax, cl
or r9d, eax
mov byte [rbx], r9b
cmp edi, r14d
jne 0x140086a50
mov rcx, qword [rbp + 0x20]
mov rdx, r13
shl r8, 2
call sub.msvcrt.dll_memcpy
lea rsp, [rbp - 0x38]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov eax, dword [rsp + 0x50]
jmp 0x140086b0a
mov ecx, 1
jmp 0x140086ae2
Function at 0x140090280
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
mov r14, r9
push r13
push r12
push rbp
push rdi
push rsi
mov esi, edx
shr edx, 1
push rbx
lea r9d, [rsi - 1]
mov rbx, rcx
mov ecx, 1
sub rsp, 0x18
cmp r9d, 1
jbe 0x1400902e1
nop dword [rax]
cmp edx, ecx
jbe 0x1400902c8
mov eax, edx
mov r10d, dword [rbx + rcx*4]
lea rax, [rbx + rax*4]
mov r11d, dword [rax]
mov dword [rbx + rcx*4], r11d
mov dword [rax], r10d
mov eax, esi
nop word [rax + rax]
shr eax, 1
xor edx, eax
test eax, edx
je 0x1400902d0
add rcx, 1
cmp rcx, r9
jne 0x1400902b0
mov r13d, esi
mov r11d, 1
cmp esi, 1
jbe 0x1400903d2
nop dword [rax + rax]
xor edx, edx
nop word [rax + rax]
lea eax, [r11 + rdx]
lea r9, [rbx + rdx*4]
lea r10, [rbx + rax*4]
mov edi, dword [r9]
mov rcx, rax
mov eax, dword [r10]
sub edi, eax
sub eax, r8d
mov edx, edi
sar edx, 0x1f
and edx, r8d
add edx, edi
mov dword [r10], edx
add eax, dword [r9]
cdq
and edx, r8d
add eax, edx
lea edx, [rcx + r11]
mov dword [r9], eax
cmp esi, edx
ja 0x140090300
cmp esi, r11d
mov eax, r11d
mov r12d, r13d
mov ebp, 1
cmovbe eax, esi
mov dword [rsp + 0xc], eax
cmp r11d, 1
jbe 0x1400903c3
nop word cs:[rax + rax]
mov eax, r12d
mov ecx, ebp
mov edi, dword [r14 + rax*4]
nop dword [rax]
lea eax, [r11 + rcx]
lea r10, [rbx + rax*4]
mov r9, rax
mov eax, dword [r10]
imul eax, edi
cdq
idiv r8d
lea rax, [rbx + rcx*4]
mov r15d, dword [rax]
sub r15d, edx
sub edx, r8d
mov ecx, r15d
sar ecx, 0x1f
and ecx, r8d
add ecx, r15d
mov dword [r10], ecx
add edx, dword [rax]
mov ecx, edx
sar ecx, 0x1f
and ecx, r8d
add edx, ecx
lea ecx, [r11 + r9]
mov dword [rax], edx
cmp esi, ecx
ja 0x140090370
add ebp, 1
add r12d, r13d
cmp ebp, dword [rsp + 0xc]
jb 0x140090360
add r11d, r11d
shr r13d, 1
cmp esi, r11d
ja 0x1400902f8
add rsp, 0x18
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140092a00
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
test rcx, rcx
je 0x140092c5b
push rbp
mov eax, 7
mov rbp, rsp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
mov rbx, rcx
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov r8, qword [rcx]
cmp r8, 0xf
jbe 0x140092bea
mov rdx, r8
lea r9, [rcx + 0x30]
lea rdi, [rcx + 0x38]
mov qword [rcx + 0x30], 0
shr rdx, 2
and rdi, 0xfffffffffffffff8
mov qword [rcx + 0x118], 0
lea r14, [0x140105160]
lea rax, [rdx + 7]
movq xmm1, rdx
lea rdx, [rbx + 8]
movq xmm0, rax
shl rax, 4
punpcklqdq xmm0, xmm1
mov qword [rcx + 0x28], rax
xor eax, eax
movups xmmword [rcx + 0x120], xmm0
mov rcx, r9
sub rcx, rdi
add ecx, 0xf0
shr ecx, 3
rep stosq qword [rdi], rax
mov rcx, r9
call sub.msvcrt.dll_memcpy
mov r12, qword [rbx + 0x128]
mov r9, rax
mov rax, qword [rbx + 0x120]
mov r8, r9
mov rcx, r12
lea r13, [rax*4]
cmp r13, r12
ja 0x140092b2f
jmp 0x140092be8
mov eax, r9d
mov r15d, r9d
movzx eax, ah
shr r15d, 0x10
mov r11d, eax
mov eax, r9d
mov edi, r15d
shr eax, 0x18
mov esi, eax
cmp rdx, 4
jne 0x140092afb
cmp r12, 6
ja 0x140092c00
xor r10b, byte [r8]
add r8, 4
mov byte [rbx + rcx*4 + 0x30], r10b
xor r11b, byte [r8 - 3]
mov byte [rbx + rcx*4 + 0x31], r11b
xor dil, byte [r8 - 2]
mov byte [rbx + rcx*4 + 0x32], dil
xor sil, byte [r8 - 1]
mov byte [rbx + rcx*4 + 0x33], sil
add rcx, 1
cmp r13, rcx
je 0x140092be8
mov rax, rcx
xor edx, edx
mov r9d, dword [rbx + rcx*4 + 0x2c]
div r12
mov dword [rsp + 0x28], r9d
mov r10d, r9d
test rdx, rdx
jne 0x140092ad0
movzx edx, word [rsp + 0x29]
mov byte [rsp + 0x2f], r9b
mov word [rsp + 0x2c], dx
movzx edx, byte [rsp + 0x2b]
mov byte [rsp + 0x2e], dl
mov edx, dword [rsp + 0x2c]
movzx esi, dh
mov r9d, esi
mov r10, r9
and r9d, 0xf0
and r10d, 0xf
add r9, r14
movzx r11d, byte [r9 + r10]
mov r9d, edx
shr r9d, 0x10
mov r10d, r9d
and r9d, 0xf0
and r10d, 0xf
add r9, r14
movzx edi, byte [r9 + r10]
mov r9d, edx
shr r9d, 0x18
mov r10d, r9d
and r9d, 0xf0
and r10d, 0xf
add r9, r14
movzx esi, byte [r9 + r10]
mov r9d, edx
and edx, 0xf0
add rdx, r14
and r9d, 0xf
movzx r10d, byte [rdx + r9]
lea rdx, [0x140105260]
xor r10b, byte [rdx + rax - 1]
jmp 0x140092afb
xor eax, eax
lea rsp, [rbp - 0x38]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov r10d, r9d
and r9d, 0xf0
lea rdx, [r14 + r9]
and r10d, 0xf
mov r9, r11
and r11d, 0xf0
and r9d, 0xf
movzx r10d, byte [rdx + r10]
lea rdx, [r14 + r11]
movzx r11d, byte [rdx + r9]
mov r9d, r15d
and r15d, 0xf0
lea rdx, [r14 + r15]
and r9d, 0xf
movzx edi, byte [rdx + r9]
mov edx, eax
and eax, 0xf0
and edx, 0xf
add rax, r14
movzx esi, byte [rax + rdx]
jmp 0x140092afb
mov eax, 2
ret
Function at 0x140096060
Capabilities:
Encode data using xor

Disassembly:
push r12
mov r10, rcx
mov r11, rdx
xor r9d, r9d
push rbp
push rdi
push rsi
push rbx
mov qword [rcx], 0
mov qword [rcx + 8], 0
mov qword [rcx + 0x10], 0
mov qword [rcx + 0x18], 0
nop
movzx ecx, word [r11 + r9*2 + 0x200]
movzx edx, word [r11 + r9*2]
movzx ebx, word [r11 + r9*2 + 0x400]
movzx r12d, word [r11 + r9*2 + 0x600]
mov r8d, edx
imul edx, edx, 0x554f
mov eax, r8d
shr edx, 0x10
sub eax, edx
shr ax, 1
add eax, edx
shr ax, 0xd
lea edx, [rax + rax*2]
shl edx, 0xc
add eax, edx
sub r8d, eax
mov eax, ecx
imul ecx, ecx, 0x554f
mov edx, eax
sub r8w, 0x1800
mov edi, r8d
sar di, 0xf
shr ecx, 0x10
sub edx, ecx
shr dx, 1
add edx, ecx
shr dx, 0xd
lea ecx, [rdx + rdx*2]
shl ecx, 0xc
add edx, ecx
mov ecx, ebx
imul ebx, ebx, 0x554f
sub eax, edx
mov edx, ecx
sub ax, 0x1800
mov ebp, eax
shr ebx, 0x10
sar bp, 0xf
sub edx, ebx
shr dx, 1
add edx, ebx
shr dx, 0xd
lea ebx, [rdx + rdx*2]
shl ebx, 0xc
add edx, ebx
sub ecx, edx
mov edx, r12d
sub cx, 0x1800
mov ebx, edx
mov esi, ecx
sar si, 0xf
imul r12d, r12d, 0x554f
add eax, ebp
add r8d, edi
xor eax, ebp
xor r8d, edi
add ecx, esi
xor ecx, esi
lea eax, [rax + r8 - 0x3001]
shr r12d, 0x10
add eax, ecx
mov ecx, r9d
sub ebx, r12d
and ecx, 7
shr bx, 1
add ebx, r12d
shr bx, 0xd
lea r12d, [rbx + rbx*2]
shl r12d, 0xc
add ebx, r12d
sub edx, ebx
sub dx, 0x1800
mov ebx, edx
sar bx, 0xf
add edx, ebx
xor edx, ebx
add eax, edx
mov edx, r9d
add r9, 1
shr edx, 3
shr ax, 0xf
shl eax, cl
or byte [r10 + rdx], al
cmp r9, 0x100
jne 0x140096090
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140096510
Capabilities:
Encode data using xor

Disassembly:
push r15
mov eax, 1
lea r15, [0x140108b40]
push r14
push r13
push r12
push rbp
push rdi
push rsi
mov rsi, rcx
mov ecx, r8d
push rbx
shl rax, cl
mov ecx, 0xa
lea rdi, [rax - 1]
sub ecx, r8d
sub rsp, 0x68
mov qword [rsp + 0xb8], rdx
mov edx, 1
lea rbp, [rsp + 0x58]
add rax, qword [rsp + 0xb8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xb8]
shl edx, cl
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x2c], 0
mov qword [rsp + 0x30], rdi
movabs rdi, 0x7fffffffffffffff
mov rax, qword [rsp + 0x40]
sub rax, qword [rsp + 0xb8]
mov qword [rsp + 0x38], rax
xor r14d, r14d
xor r12d, r12d
nop word [rax + rax]
mov r8d, 8
mov rdx, rbp
mov rcx, rsi
call fcn.14006fb60
mov r13, qword [rsp + 0x58]
mov rcx, rsi
mov rdx, rbp
movabs rax, 0xee2ec827d20d54a8
mov r8d, 8
mov rbx, r13
and r13, rdi
add r13, rax
shr rbx, 0x3f
call fcn.14006fb60
mov r10, qword [rsp + 0x58]
shr r13, 0x3f
xor r8d, r8d
mov ecx, 1
and r10, rdi
nop word [rax + rax]
mov rdx, r10
sub rdx, qword [r15 + rcx*8]
mov eax, r13d
shr rdx, 0x3f
xor eax, 1
xor edx, 1
and eax, edx
or r13d, edx
neg eax
and eax, ecx
add rcx, 1
or r8d, eax
cmp rcx, 0x1b
jne 0x140096600
mov eax, ebx
add r14d, 1
neg eax
xor eax, r8d
add eax, ebx
add r12d, eax
cmp dword [rsp + 0x28], r14d
ja 0x1400965a8
lea eax, [r12 + 0x7f]
cmp eax, 0xfe
ja 0x14009659c
mov eax, r12d
mov rcx, qword [rsp + 0x38]
and eax, 1
cmp qword [rsp + 0x30], rcx
jne 0x1400966a0
cmp dword [rsp + 0x2c], eax
je 0x14009659c
mov ebx, r12d
mov rax, qword [rsp + 0x40]
mov byte [rax], bl
add rax, 1
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x48], rax
jne 0x14009658a
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor dword [rsp + 0x2c], eax
mov ebx, r12d
jmp 0x140096674
Function at 0x14009d590
Capabilities:
Encode data using xor

Disassembly:
neg r9d
test r8, r8
je 0x14009d7a0
lea r11, [rdx + 1]
mov r10, rcx
lea rax, [r8 - 1]
sub r10, r11
cmp r10, 0xe
jbe 0x14009d770
cmp rax, 6
jbe 0x14009d770
push rbp
mov rbp, rsp
push rsi
push rbx
and rsp, 0xfffffffffffffff0
cmp rax, 0xe
jbe 0x14009d7a1
movd xmm1, r9d
mov r10, r8
xor eax, eax
punpcklbw xmm1, xmm1
and r10, 0xfffffffffffffff0
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
nop dword [rax]
movdqu xmm3, xmmword [rcx + rax]
movdqu xmm0, xmmword [rdx + rax]
pxor xmm0, xmm3
pand xmm0, xmm1
pxor xmm0, xmm3
movups xmmword [rcx + rax], xmm0
add rax, 0x10
cmp r10, rax
jne 0x14009d5f0
mov rax, r8
and rax, 0xfffffffffffffff0
test r8b, 0xf
je 0x14009d768
mov rbx, r8
sub rbx, rax
lea r10, [rbx - 1]
cmp r10, 6
jbe 0x14009d67c
mov r10d, r9d
lea rsi, [rcx + rax]
movzx r11d, r9b
movq xmm0, qword [rdx + rax]
shl r10d, 8
movq xmm1, qword [rsi]
or r10d, r11d
movd xmm5, r10d
pxor xmm0, xmm1
mov r10, rbx
pshuflw xmm2, xmm5, 0
and r10, 0xfffffffffffffff8
pand xmm0, xmm2
add rax, r10
pxor xmm0, xmm1
movq qword [rsi], xmm0
cmp rbx, r10
je 0x14009d768
lea r11, [rcx + rax]
movzx r10d, byte [rdx + rax]
movzx ebx, byte [r11]
xor r10d, ebx
and r10d, r9d
xor r10d, ebx
mov byte [r11], r10b
lea r10, [rax + 1]
cmp r8, r10
jbe 0x14009d768
add r10, rcx
movzx r11d, byte [rdx + rax + 1]
movzx ebx, byte [r10]
xor r11d, ebx
and r11d, r9d
xor r11d, ebx
mov byte [r10], r11b
lea r10, [rax + 2]
cmp r8, r10
jbe 0x14009d768
add r10, rcx
movzx r11d, byte [rdx + rax + 2]
movzx ebx, byte [r10]
xor r11d, ebx
and r11d, r9d
xor r11d, ebx
mov byte [r10], r11b
lea r10, [rax + 3]
cmp r8, r10
jbe 0x14009d768
add r10, rcx
movzx r11d, byte [rdx + rax + 3]
movzx ebx, byte [r10]
xor r11d, ebx
and r11d, r9d
xor r11d, ebx
mov byte [r10], r11b
lea r10, [rax + 4]
cmp r8, r10
jbe 0x14009d768
add r10, rcx
movzx r11d, byte [rdx + rax + 4]
movzx ebx, byte [r10]
xor r11d, ebx
and r11d, r9d
xor r11d, ebx
mov byte [r10], r11b
lea r10, [rax + 5]
cmp r8, r10
jbe 0x14009d768
add r10, rcx
movzx r11d, byte [rdx + rax + 5]
movzx ebx, byte [r10]
xor r11d, ebx
and r11d, r9d
xor r11d, ebx
mov byte [r10], r11b
lea r10, [rax + 6]
cmp r8, r10
jbe 0x14009d768
add r10, rcx
movzx esi, byte [rdx + rax + 6]
movzx ecx, byte [r10]
xor esi, ecx
mov eax, esi
and eax, r9d
xor eax, ecx
mov byte [r10], al
lea rsp, [rbp - 0x10]
pop rbx
pop rsi
pop rbp
ret
xor eax, eax
nop word [rax + rax]
movzx r11d, byte [rcx + rax]
movzx r10d, byte [rdx + rax]
xor r10d, r11d
and r10d, r9d
xor r10d, r11d
mov byte [rcx + rax], r10b
add rax, 1
cmp r8, rax
jne 0x14009d778
ret
ret
mov rbx, r8
xor eax, eax
jmp 0x14009d634
Function at 0x1400a23f0
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x1400a25f0
lea rax, [r8 - 1]
mov r10, rcx
mov r11, rdx
cmp rax, 0xe
jbe 0x1400a25f3
mov rdx, r8
xor eax, eax
pxor xmm0, xmm0
and rdx, 0xfffffffffffffff0
nop word [rax + rax]
movdqu xmm1, xmmword [r10 + rax]
movdqu xmm2, xmmword [r11 + rax]
add rax, 0x10
pxor xmm1, xmm2
por xmm0, xmm1
cmp rax, rdx
jne 0x1400a2420
movdqa xmm1, xmm0
mov r9, r8
psrldq xmm1, 8
and r9, 0xfffffffffffffff0
por xmm0, xmm1
movdqa xmm1, xmm0
psrldq xmm1, 4
por xmm0, xmm1
movdqa xmm1, xmm0
psrldq xmm1, 2
por xmm0, xmm1
movdqa xmm1, xmm0
psrldq xmm1, 1
por xmm0, xmm1
movd eax, xmm0
test r8b, 0xf
je 0x1400a25fd
xor eax, eax
ret
xor eax, eax
xor r9d, r9d
jmp fcn.1400a2486
movzx eax, al
neg rax
shr rax, 0x3f
ret