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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, qword [rcx + 0x28]
mov rax, qword [rcx + 0x58]
mov rbx, rcx
mov rsi, rdx
cmp rdi, rdx
jae 0x55366f
mov rcx, qword [rcx + 0x30]
cmp rcx, rdx
jbe 0x553636
lea r11, [rdi + 1]
mov r10, r11
shl r10, 4
jmp 0x5534c8
mov rax, qword [rbx + 0x58]
add r11, 1
lea rdx, [rax + r10]
lea rax, [rax + r10 - 0x10]
movzx r9d, byte [rax + 0xf]
movzx r8d, byte [rax + 0xe]
movzx ecx, byte [rax]
lea ebp, [r8 + r8]
lea edi, [r9 + r9]
sar r9d, 7
sar r8d, 7
or r9d, ebp
sar cl, 7
mov byte [rdx + 0xe], r9b
movzx r9d, byte [rax + 0xd]
and ecx, 0xffffff87
lea ebp, [r9 + r9]
sar r9d, 7
or r8d, ebp
mov byte [rdx + 0xd], r8b
movzx r8d, byte [rax + 0xc]
lea ebp, [r8 + r8]
sar r8d, 7
or r9d, ebp
mov byte [rdx + 0xc], r9b
movzx r9d, byte [rax + 0xb]
lea ebp, [r9 + r9]
sar r9d, 7
or r8d, ebp
mov byte [rdx + 0xb], r8b
movzx r8d, byte [rax + 0xa]
lea ebp, [r8 + r8]
sar r8d, 7
or r9d, ebp
mov byte [rdx + 0xa], r9b
movzx r9d, byte [rax + 9]
lea ebp, [r9 + r9]
sar r9d, 7
or r8d, ebp
mov byte [rdx + 9], r8b
movzx r8d, byte [rax + 8]
lea ebp, [r8 + r8]
sar r8d, 7
or r9d, ebp
mov byte [rdx + 8], r9b
movzx r9d, byte [rax + 7]
lea ebp, [r9 + r9]
sar r9d, 7
or r8d, ebp
mov byte [rdx + 7], r8b
movzx r8d, byte [rax + 6]
lea ebp, [r8 + r8]
sar r8d, 7
or r9d, ebp
mov byte [rdx + 6], r9b
movzx r9d, byte [rax + 5]
lea ebp, [r9 + r9]
sar r9d, 7
or r8d, ebp
mov byte [rdx + 5], r8b
movzx r8d, byte [rax + 4]
lea ebp, [r8 + r8]
sar r8d, 7
or r9d, ebp
mov byte [rdx + 4], r9b
movzx r9d, byte [rax + 3]
lea ebp, [r9 + r9]
sar r9d, 7
or r8d, ebp
mov byte [rdx + 3], r8b
movzx r8d, byte [rax + 2]
lea ebp, [r8 + r8]
sar r8d, 7
or r9d, ebp
mov byte [rdx + 2], r9b
movzx r9d, byte [rax + 1]
lea ebp, [r9 + r9]
sar r9d, 7
or r8d, ebp
mov byte [rdx + 1], r8b
movzx r8d, byte [rax]
lea eax, [r8 + r8]
or eax, r9d
xor ecx, edi
add r10, 0x10
mov byte [rdx], al
mov byte [rdx + 0xf], cl
cmp r11, rsi
jne 0x5534c0
mov rax, qword [rbx + 0x58]
mov qword [rbx + 0x28], r11
shl r11, 4
add rax, r11
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, [rdx + 4]
mov r9d, 0x71
lea r8, str.crypto_modes_ocb128.c
sub rdx, rcx
and rdx, 0xfffffffffffffffc
add rdx, rcx
mov rcx, rax
mov qword [rbx + 0x30], rdx
shl rdx, 4
call fcn.0054a440
test rax, rax
je 0x55362d
mov qword [rbx + 0x58], rax
jmp 0x5534ac
shl rsi, 4
add rax, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x5665c0
Capabilities:
Encode data using xor

Disassembly:
sub rdx, r8
sub rcx, r8
mov r10, r9
shr r9, 4
je 0x5665f5
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 0x5665d0
and r10, 0xf
je 0x566626
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 0x566601
xor eax, eax
mov byte [r8], al
lea r8, [r8 + 1]
dec r9
jne 0x56661a
mov rax, r8
repz ret

Function at 0x566630
Capabilities:
Encode data using xor

Disassembly:
sub rdx, r8
sub rcx, r8
mov r10, r9
shr r9, 4
je 0x56666d
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 0x566640
pxor xmm1, xmm1
and r10, 0xf
je 0x5666a4
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 0x56667c
xor eax, eax
mov byte [r8], al
lea r8, [r8 + 1]
dec r9
jne 0x566698
mov rax, r8
repz ret

Function at 0x56b4f0
Capabilities:
Generate random numbers via winapi

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
mov edx, 1
mov rbx, rcx
call fcn.0056a8e0
mov rcx, rbx
mov rdx, rax
mov rsi, rax
call fcn.0056aa80
mov rdi, rax
test rax, rax
je 0x56b565
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 0x56b5e0
xor r8d, r8d
xor esi, esi
mov rcx, rbx
mov rdx, rsi
call fcn.0056ab20
mov rcx, rbx
call fcn.0056a890
test rax, rax
je 0x56b565
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
mov edx, 1
mov rcx, rbx
call fcn.0056a8e0
mov rcx, rbx
mov rdx, rax
mov rsi, rax
call fcn.0056aa80
mov rdi, rax
test rax, rax
je 0x56b5cb
xor edx, edx
lea rcx, [rsp + 0x48]
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 0x16
lea r8, str.Intel_Hardware_Cryptographic_Service_Provider
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x56b620
xor r8d, r8d
xor esi, esi
mov rcx, rbx
mov rdx, rsi
call fcn.0056ab20
mov rcx, rbx
call fcn.0056a890
test rax, rax
jne 0x56b55d
mov rcx, rbx
call fcn.0056a890
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
mov r8, rdi
mov edx, esi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x56b615
xor r8d, r8d
xor esi, esi
mov qword [rsp + 0x38], r8
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov r8, qword [rsp + 0x38]
jmp 0x56b545
lea r8, [rsi*8]
jmp 0x56b5f9
mov r8, rdi
mov edx, esi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x56b660
lea r8, [rsi*8]
mov qword [rsp + 0x38], r8
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov r8, qword [rsp + 0x38]
jmp 0x56b5b3
xor r8d, r8d
xor esi, esi
jmp 0x56b63c
Function at 0x579680
Capabilities:
Check for software breakpoints

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [rsp + 0x60]
cmp eax, r9d
jne 0x579766
movzx edx, byte [r8]
lea r9d, [rdx - 0x6a]
cmp r9b, 1
ja 0x579766
cmp dl, 0x6b
je 0x5796d0
lea rdx, [r8 + 1]
lea ebx, [rax - 2]
movsxd rax, ebx
cmp byte [rdx + rax], 0xcc
jne 0x579794
mov r8d, ebx
call sub.msvcrt.dll_memcpy
mov eax, ebx
add rsp, 0x30
pop rbx
ret
lea ebx, [rax - 3]
test ebx, ebx
jle 0x5797c2
movzx edx, byte [r8 + 1]
lea r9, [r8 + 2]
cmp dl, 0xba
je 0x5797c2
cmp dl, 0xbb
jne 0x579730
sub eax, 4
lea rdx, [r8 + rax + 2]
mov eax, 1
sub eax, r9d
jmp 0x579719
add r9, 1
movzx r8d, byte [r9 - 1]
cmp r8b, 0xba
je 0x579761
cmp r8b, 0xbb
jne 0x579730
lea r10d, [rax + r9]
cmp r9, rdx
jne 0x579704
sub ebx, r10d
jmp 0x5796b0
mov dword [rsp + 0x20], 0x48
mov r8d, 0x8a
mov edx, pe_nt_image_headers64
mov ecx, 4
mov ebx, 0xffffffff
lea r9, str.crypto_rsa_rsa_x931.c
call fcn.005292e0
mov eax, ebx
add rsp, 0x30
pop rbx
ret
mov rdx, r9
jmp 0x579722
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
mov ebx, 0xffffffff
call fcn.005292e0
jmp 0x5796c5
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
mov ebx, 0xffffffff
call fcn.005292e0
jmp 0x5796c5
mov dword [rsp + 0x20], 0x50
jmp 0x579738

Function at 0x57bc20
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x57bc40
mov rax, qword [0x0091c5e0]
mov qword [rsp + 0x30], rax
jmp fcn.0054b980
mov rax, qword [0x0091c5d0]
mov qword [rsp + 0x30], rax
jmp fcn.0054bbc0
Function at 0x596530
Capabilities:
Hash data using sha256

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
lea rax, [0x009a2da0]
movdqa xmm0, xmmword [0x008d28f0]
lea rsi, [rsp + 0x20]
test r8, r8
mov rbx, r8
mov r9, rcx
lea r8, [rsi + 0x20]
cmove rbx, rax
mov ecx, 9
xor eax, eax
mov rdi, r8
movaps xmmword [rsp + 0x20], xmm0
movdqa xmm0, xmmword [0x008d2900]
rep stosq qword [rdi], rax
movaps xmmword [rsp + 0x30], xmm0
mov dword [rdi], 0
mov dword [rsp + 0x8c], 0x20
test rdx, rdx
je 0x5965a2
mov r8, rdx
mov rcx, rsi
mov rdx, r9
call fcn.00595bc0
mov rdx, rsi
mov rcx, rbx
call fcn.00596230
mov edx, 0x70
mov rcx, rsi
call fcn.005c46c0
mov rax, rbx
add rsp, 0x90
pop rbx
pop rsi
pop rdi
ret

Function at 0x596fe0
Capabilities:
Hash data using sha512

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x100
movdqa xmm0, xmmword [0x008d29d0]
lea rax, [0x009a2de0]
movaps xmmword [rsp + 0x20], xmm0
mov rbx, r8
test r8, r8
mov rsi, rcx
movdqa xmm0, xmmword [0x008d29e0]
cmove rbx, rax
mov rbp, rdx
movabs rax, 0x4000000000
mov qword [rsp + 0xf0], rax
lea r12, [rsp + 0x20]
movaps xmmword [rsp + 0x30], xmm0
movdqa xmm0, xmmword [0x008d29f0]
movaps xmmword [rsp + 0x40], xmm0
movdqa xmm0, xmmword [0x008d2a00]
movaps xmmword [rsp + 0x50], xmm0
pxor xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
test rdx, rdx
je 0x5970c9
mov rax, rdx
lea r12, [rsp + 0x20]
shr rax, 0x3d
mov qword [rsp + 0x68], rax
lea rax, [rdx*8]
mov qword [rsp + 0x60], rax
cmp rdx, 0x7f
ja 0x5970f2
mov edx, ebp
lea rdi, [r12 + 0x50]
cmp ebp, 8
jb 0x597095
mov ecx, ebp
shr ecx, 3
rep movsq qword [rdi], qword [rsi]
xor eax, eax
test dl, 4
je 0x5970a5
mov eax, dword [rsi]
mov dword [rdi], eax
mov eax, 4
test dl, 2
je 0x5970b6
movzx ecx, word [rsi + rax]
mov word [rdi + rax], cx
add rax, 2
and edx, 1
je 0x5970c2
movzx edx, byte [rsi + rax]
mov byte [rdi + rax], dl
mov dword [rsp + 0xf0], ebp
mov rdx, r12
mov rcx, rbx
call fcn.00596720
mov edx, 0xd8
mov rcx, r12
call fcn.005c46c0
mov rax, rbx
add rsp, 0x100
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8, rdx
mov rdx, rcx
mov rcx, r12
shr r8, 7
call fcn.0066c600
mov rax, rbp
and eax, 0x7f
je 0x5970c9
sub rbp, rax
add rsi, rbp
mov rbp, rax
jmp 0x597081

Function at 0x59f460
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 0x59f480
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 0x59f4b0
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 0x5b4090
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
movsxd r8, r8d
mov rsi, rcx
mov rdi, rdx
mov rbx, r8
call sub.msvcrt.dll_memcmp
test eax, eax
jle 0x5b415b
lea ecx, [rbx - 1]
test ebx, ebx
jle 0x5b420e
movzx eax, byte [rdi]
cmp byte [rsi], al
jne 0x5b4212
mov r9d, ecx
mov eax, 1
add r9, 1
jmp 0x5b40e2
movzx edx, byte [rsi + rax]
add rax, 1
cmp dl, byte [rdi + rax - 1]
jne 0x5b40ea
mov r8d, eax
cmp rax, r9
jne 0x5b40d4
movsxd rax, ecx
cmp byte [rsi + rax], 0
jne 0x5b4190
cmp byte [rdi + rax], 0xff
jne 0x5b4190
lea eax, [rbx - 2]
cdqe
jmp 0x5b4121
cmp byte [rsi + rax], 0
jne 0x5b4190
sub rax, 1
cmp byte [rdi + rax + 1], 0xff
jne 0x5b4190
mov ecx, eax
test eax, eax
jns 0x5b4110
cmp r8d, ecx
jg 0x5b419a
movsxd rax, r8d
movzx ecx, byte [rsi + rax]
movzx r9d, byte [rdi + rax]
mov edx, ecx
xor edx, r9d
cmp dl, 0xf
je 0x5b4207
ja 0x5b4170
cmp dl, 3
je 0x5b41f0
cmp dl, 7
je 0x5b41d5
cmp dl, 1
je 0x5b41b0
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
cmp dl, 0x3f
je 0x5b4200
cmp dl, 0x7f
je 0x5b41e0
mov eax, 0xffffffff
cmp dl, 0x1f
jne 0x5b4160
mov eax, 3
jmp 0x5b41b5
cmp r8d, ecx
jl 0x5b415b
cmp r8d, ecx
jle 0x5b412c
lea eax, [r8*8]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov eax, 7
mov r10d, r9d
not r10d
test r10b, cl
jne 0x5b415b
not ecx
and ecx, r9d
cmp dl, cl
jne 0x5b415b
lea eax, [rax + r8*8]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov eax, 5
jmp 0x5b41b5
mov eax, 1
jmp 0x5b41b5
mov eax, 6
jmp 0x5b41b5
mov eax, 2
jmp 0x5b41b5
mov eax, 4
jmp 0x5b41b5
test ecx, ecx
js 0x5b421a
xor r8d, r8d
jmp 0x5b40ea
xor eax, eax
jmp 0x5b4160

Function at 0x5c4720
Capabilities:
Encode data using xor

Disassembly:
xor rax, rax
xor r10, r10
cmp r8, 0
je 0x5c476d
cmp r8, 0x10
jne 0x5c4750
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 0x5c4750
neg rax
shr rax, 0x3f
repz ret
Function at 0x5c5800
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
mov ebp, dword [rsp + 0xb0]
mov rsi, rcx
mov r13, rdx
mov r12, r8
mov ecx, 0x20
mov r8d, 0x5cb
lea rdx, str.engines_e_capi.c
mov edi, r9d
call fcn.0054a3f0
mov rbx, rax
test rax, rax
je 0x5c5906
cmp edi, 1
je 0x5c5920
test rsi, rsi
je 0x5c58b9
cmp dword [rsi], 1
jle 0x5c58b9
cmp qword [rsi + 8], 0
je 0x5c58b9
mov rcx, r13
call fcn.005c4fd0
mov rcx, r12
mov r14, rax
call fcn.005c4fd0
mov dword [rsp + 0x20], edi
mov r8, r14
mov rcx, rsi
mov r15, rax
mov r9, rax
lea rdx, str.capi_get_key__contname_s__provname_s__type_d_n
call fcn.005c4b20
mov r8d, 0x5df
lea rdx, str.engines_e_capi.c
mov rcx, r15
call fcn.0054a3c0
mov r8d, 0x5e0
lea rdx, str.engines_e_capi.c
mov rcx, r14
call fcn.0054a3c0
mov eax, dword [rsi + 0x38]
mov edx, 0x20
lea rcx, [rbx + 8]
mov r9d, edi
mov r8, r12
and eax, 0x20000
cmovne eax, edx
mov rdx, r13
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x5c5960
mov rcx, qword [rbx + 8]
lea r8, [rbx + 0x10]
mov edx, ebp
call qword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
test eax, eax
je 0x5c59e0
mov dword [rbx + 0x18], ebp
mov qword [rbx], 0
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 [0x009a2ec0]
test eax, eax
je 0x5c584f
lea rdx, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
mov rcx, r12
call sub.msvcrt.dll_wcscmp
mov edx, 0x18
test eax, eax
lea rax, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
cmove edi, edx
cmove r12, rax
jmp 0x5c584f
mov ecx, dword [0x009a2edc]
test ecx, ecx
je 0x5c5a50
mov r8d, 0x68
mov edx, 0x67
lea rsi, [rsp + 0x36]
mov dword [rsp + 0x20], 0x5e6
lea r9, str.engines_e_capi.c
call fcn.005292e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x008d81c1]
mov edx, 0xa
mov rcx, rsi
mov r9d, eax
call fcn.004f3710
mov r8, rsi
mov ecx, 2
lea rdx, str.Error_code_0x
call fcn.0052b0f0
mov rcx, rbx
mov r8d, 0x5f5
lea rdx, str.engines_e_capi.c
xor ebx, ebx
call fcn.0054a3c0
jmp 0x5c5906
mov ecx, dword [0x009a2edc]
test ecx, ecx
je 0x5c5a62
mov r8d, 0x75
mov edx, 0x67
lea rsi, [rsp + 0x36]
mov dword [rsp + 0x20], 0x5eb
lea r9, str.engines_e_capi.c
call fcn.005292e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov edx, 0xa
lea r8, [0x008d81c1]
mov r9d, eax
call fcn.004f3710
mov r8, rsi
mov ecx, 2
lea rdx, str.Error_code_0x
call fcn.0052b0f0
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x5c59c3
call fcn.0052ae90
mov ecx, eax
mov dword [0x009a2edc], eax
jmp 0x5c596e
call fcn.0052ae90
mov ecx, eax
mov dword [0x009a2edc], eax
jmp 0x5c59ea
Function at 0x5c8740
Capabilities:
Encode data using xor

Disassembly:
xor eax, dword [r15]
xor ebx, dword [r15 + 4]
xor ecx, dword [r15 + 8]
xor edx, dword [r15 + 0xc]
mov r13d, dword [r15 + 0xf0]
sub r13d, 1
jmp 0x5c8760
movzx esi, al
movzx edi, bl
movzx ebp, cl
mov r10d, dword [r14 + rsi*8]
mov r11d, dword [r14 + rdi*8]
mov r12d, dword [r14 + rbp*8]
movzx esi, bh
movzx edi, ch
movzx ebp, dl
xor r10d, dword [r14 + rsi*8 + 3]
xor r11d, dword [r14 + rdi*8 + 3]
mov r8d, dword [r14 + rbp*8]
movzx esi, dh
shr ecx, 0x10
movzx ebp, ah
xor r12d, dword [r14 + rsi*8 + 3]
shr edx, 0x10
xor r8d, dword [r14 + rbp*8 + 3]
shr ebx, 0x10
lea r15, [r15 + 0x10]
shr eax, 0x10
movzx esi, cl
movzx edi, dl
movzx ebp, al
xor r10d, dword [r14 + rsi*8 + 2]
xor r11d, dword [r14 + rdi*8 + 2]
xor r12d, dword [r14 + rbp*8 + 2]
movzx esi, dh
movzx edi, ah
movzx ebp, bl
xor r10d, dword [r14 + rsi*8 + 1]
xor r11d, dword [r14 + rdi*8 + 1]
xor r8d, dword [r14 + rbp*8 + 2]
mov edx, dword [r15 + 0xc]
movzx edi, bh
movzx ebp, ch
mov eax, dword [r15]
xor r12d, dword [r14 + rdi*8 + 1]
xor r8d, dword [r14 + rbp*8 + 1]
mov ebx, dword [r15 + 4]
mov ecx, dword [r15 + 8]
xor eax, r10d
xor ebx, r11d
xor ecx, r12d
xor edx, r8d
sub r13d, 1
jne 0x5c8760
movzx esi, al
movzx edi, bl
movzx ebp, cl
movzx r10d, byte [r14 + rsi*8 + 2]
movzx r11d, byte [r14 + rdi*8 + 2]
movzx r12d, byte [r14 + rbp*8 + 2]
movzx esi, dl
movzx edi, bh
movzx ebp, ch
movzx r8d, byte [r14 + rsi*8 + 2]
mov edi, dword [r14 + rdi*8]
mov ebp, dword [r14 + rbp*8]
and edi, 0xff00
and ebp, 0xff00
xor r10d, edi
xor r11d, ebp
shr ecx, 0x10
movzx esi, dh
movzx edi, ah
shr edx, 0x10
mov esi, dword [r14 + rsi*8]
mov edi, dword [r14 + rdi*8]
and esi, 0xff00
and edi, 0xff00
shr ebx, 0x10
xor r12d, esi
xor r8d, edi
shr eax, 0x10
movzx esi, cl
movzx edi, dl
movzx ebp, al
mov esi, dword [r14 + rsi*8]
mov edi, dword [r14 + rdi*8]
mov ebp, dword [r14 + rbp*8]
and esi, 0xff0000
and edi, 0xff0000
and ebp, 0xff0000
xor r10d, esi
xor r11d, edi
xor r12d, ebp
movzx esi, bl
movzx edi, dh
movzx ebp, ah
mov esi, dword [r14 + rsi*8]
mov edi, dword [r14 + rdi*8 + 2]
mov ebp, dword [r14 + rbp*8 + 2]
and esi, 0xff0000
and edi, 0xff000000
and ebp, 0xff000000
xor r8d, esi
xor r10d, edi
xor r11d, ebp
movzx esi, bh
movzx edi, ch
mov edx, dword [r15 + 0x1c]
mov esi, dword [r14 + rsi*8 + 2]
mov edi, dword [r14 + rdi*8 + 2]
mov eax, dword [r15 + 0x10]
and esi, 0xff000000
and edi, 0xff000000
xor r12d, esi
xor r8d, edi
mov ebx, dword [r15 + 0x14]
mov ecx, dword [r15 + 0x18]
xor eax, r10d
xor ebx, r11d
xor ecx, r12d
xor edx, r8d
repz ret
Function at 0x5c8ba0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
mov rax, rsp
push rbx
push rbp
push r12
push r13
push r14
push r15
lea rcx, [rdx - 0x3f]
and rsp, 0xffffffffffffffc0
sub rcx, rsp
neg rcx
and rcx, 0x3c0
sub rsp, rcx
sub rsp, 0x20
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rax
mov r15, rdx
mov r13d, dword [r15 + 0xf0]
mov eax, dword [rdi]
mov ebx, dword [rdi + 4]
mov ecx, dword [rdi + 8]
mov edx, dword [rdi + 0xc]
shl r13d, 4
lea rbp, [r15 + r13]
mov qword [rsp], r15
mov qword [rsp + 8], rbp
lea r14, [0x005ca540]
lea rbp, [rsp + 0x300]
sub rbp, r14
and rbp, 0x300
lea r14, [r14 + rbp]
call fcn.005c8930
mov r9, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov dword [r9], eax
mov dword [r9 + 4], ebx
mov dword [r9 + 8], ecx
mov dword [r9 + 0xc], edx
mov r15, qword [rsi - 0x30]
mov r14, qword [rsi - 0x28]
mov r13, qword [rsi - 0x20]
mov r12, qword [rsi - 0x18]
mov rbp, qword [rsi - 0x10]
mov rbx, qword [rsi - 8]
lea rsp, [rsi]
mov rdi, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
repz ret

Function at 0x5c8bad
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
mov rax, rsp
push rbx
push rbp
push r12
push r13
push r14
push r15
lea rcx, [rdx - 0x3f]
and rsp, 0xffffffffffffffc0
sub rcx, rsp
neg rcx
and rcx, 0x3c0
sub rsp, rcx
sub rsp, 0x20
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rax
mov r15, rdx
mov r13d, dword [r15 + 0xf0]
mov eax, dword [rdi]
mov ebx, dword [rdi + 4]
mov ecx, dword [rdi + 8]
mov edx, dword [rdi + 0xc]
shl r13d, 4
lea rbp, [r15 + r13]
mov qword [rsp], r15
mov qword [rsp + 8], rbp
lea r14, [0x005ca540]
lea rbp, [rsp + 0x300]
sub rbp, r14
and rbp, 0x300
lea r14, [r14 + rbp]
call fcn.005c8930
mov r9, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov dword [r9], eax
mov dword [r9 + 4], ebx
mov dword [r9 + 8], ecx
mov dword [r9 + 0xc], edx
mov r15, qword [rsi - 0x30]
mov r14, qword [rsi - 0x28]
mov r13, qword [rsi - 0x20]
mov r12, qword [rsi - 0x18]
mov rbp, qword [rsi - 0x10]
mov rbx, qword [rsi - 8]
lea rsp, [rsi]
mov rdi, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
repz ret
Function at 0x5c8c80
Capabilities:
Encode data using xor

Disassembly:
xor eax, dword [r15]
xor ebx, dword [r15 + 4]
xor ecx, dword [r15 + 8]
xor edx, dword [r15 + 0xc]
mov r13d, dword [r15 + 0xf0]
sub r13d, 1
jmp 0x5c8ca0
movzx esi, al
movzx edi, bl
movzx ebp, cl
mov r10d, dword [r14 + rsi*8]
mov r11d, dword [r14 + rdi*8]
mov r12d, dword [r14 + rbp*8]
movzx esi, dh
movzx edi, ah
movzx ebp, dl
xor r10d, dword [r14 + rsi*8 + 3]
xor r11d, dword [r14 + rdi*8 + 3]
mov r8d, dword [r14 + rbp*8]
movzx esi, bh
shr eax, 0x10
movzx ebp, ch
xor r12d, dword [r14 + rsi*8 + 3]
shr edx, 0x10
xor r8d, dword [r14 + rbp*8 + 3]
shr ebx, 0x10
lea r15, [r15 + 0x10]
shr ecx, 0x10
movzx esi, cl
movzx edi, dl
movzx ebp, al
xor r10d, dword [r14 + rsi*8 + 2]
xor r11d, dword [r14 + rdi*8 + 2]
xor r12d, dword [r14 + rbp*8 + 2]
movzx esi, bh
movzx edi, ch
movzx ebp, bl
xor r10d, dword [r14 + rsi*8 + 1]
xor r11d, dword [r14 + rdi*8 + 1]
xor r8d, dword [r14 + rbp*8 + 2]
movzx esi, dh
mov edx, dword [r15 + 0xc]
movzx ebp, ah
xor r12d, dword [r14 + rsi*8 + 1]
mov eax, dword [r15]
xor r8d, dword [r14 + rbp*8 + 1]
xor eax, r10d
mov ebx, dword [r15 + 4]
mov ecx, dword [r15 + 8]
xor ecx, r12d
xor ebx, r11d
xor edx, r8d
sub r13d, 1
jne 0x5c8ca0
lea r14, [r14 + 0x800]
movzx esi, al
movzx edi, bl
movzx ebp, cl
movzx r10d, byte [r14 + rsi]
movzx r11d, byte [r14 + rdi]
movzx r12d, byte [r14 + rbp]
movzx esi, dl
movzx edi, dh
movzx ebp, ah
movzx r8d, byte [r14 + rsi]
movzx edi, byte [r14 + rdi]
movzx ebp, byte [r14 + rbp]
shl edi, 8
shl ebp, 8
xor r10d, edi
xor r11d, ebp
shr edx, 0x10
movzx esi, bh
movzx edi, ch
shr eax, 0x10
movzx esi, byte [r14 + rsi]
movzx edi, byte [r14 + rdi]
shl esi, 8
shl edi, 8
shr ebx, 0x10
xor r12d, esi
xor r8d, edi
shr ecx, 0x10
movzx esi, cl
movzx edi, dl
movzx ebp, al
movzx esi, byte [r14 + rsi]
movzx edi, byte [r14 + rdi]
movzx ebp, byte [r14 + rbp]
shl esi, 0x10
shl edi, 0x10
shl ebp, 0x10
xor r10d, esi
xor r11d, edi
xor r12d, ebp
movzx esi, bl
movzx edi, bh
movzx ebp, ch
movzx esi, byte [r14 + rsi]
movzx edi, byte [r14 + rdi]
movzx ebp, byte [r14 + rbp]
shl esi, 0x10
shl edi, 0x18
shl ebp, 0x18
xor r8d, esi
xor r10d, edi
xor r11d, ebp
movzx esi, dh
movzx edi, ah
mov edx, dword [r15 + 0x1c]
movzx esi, byte [r14 + rsi]
movzx edi, byte [r14 + rdi]
mov eax, dword [r15 + 0x10]
shl esi, 0x18
shl edi, 0x18
xor r12d, esi
xor r8d, edi
mov ebx, dword [r15 + 0x14]
mov ecx, dword [r15 + 0x18]
lea r14, [r14 - 0x800]
xor eax, r10d
xor ebx, r11d
xor ecx, r12d
xor edx, r8d
repz ret