joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005ce50
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x138
call qword [sym.imp.msvcrt.dll_getenv]
mov byte [rsp + 0x20], 0
test rax, rax
je 0x14005ce95
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x14005ce95
lea rcx, [rsp + 0x20]
call qword [case.0x1400477d7.0]
add rsp, 0x138
ret
xor eax, eax
add rsp, 0x138
ret

Function at 0x14005eae0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
lea rcx, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.DLL_CryptAcquireContextA]
test eax, eax
je 0x14005eb3c
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.DLL_CryptGenRandom]
mov rcx, qword [rsp + 0x50]
xor edx, edx
test eax, eax
jne 0x14005eb4c
call qword [sym.imp.ADVAPI32.DLL_CryptReleaseContext]
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.ADVAPI32.DLL_CryptReleaseContext]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x140062530
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
xor eax, eax
test edx, edx
lea r8, [rsp + 0x38]
setne al
mov edx, 0x8004667e
mov dword [rsp + 0x38], eax
call qword [sym.imp.WSOCK32.DLL_ioctlsocket]
add rsp, 0x28
ret
Function at 0x1400625b0
Capabilities:
Resolve dns

Disassembly:
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
lea r9, [rsp + 0x68]
mov ebx, r13d
mov r15d, r13d
call qword [sym.imp.WS2_32.DLL_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x140062774
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x140062754
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x14006260d
lea ebp, [rax + 0xe]
jmp 0x140062619
cmp eax, 0x17
jne 0x1400626c1
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x1400626c1
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1400626c1
cmp rax, rbp
jb 0x1400626c1
mov ecx, 0x30
call qword [sub.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400626fc
mov ecx, dword [rsi]
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0x10], ebp
mov dword [rax + 0xc], ecx
mov rcx, rbp
mov qword [rax + 0x20], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
call qword [sub.msvcrt.dll_malloc]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x1400626eb
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1400626ae
call qword [case.0x1400477d7.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x1400626d0
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x1400626be
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x140062600
jmp 0x140062702
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [sub.msvcrt.dll_free]
mov rcx, rdi
call qword [sub.msvcrt.dll_free]
jmp 0x140062702
mov rcx, rdi
mov r14d, 8
call qword [sub.msvcrt.dll_free]
jmp 0x140062702
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x140062717
call qword [sym.imp.WS2_32.DLL_freeaddrinfo]
test r14d, r14d
je 0x14006274f
test rbx, rbx
je 0x14006274a
mov rcx, qword [rbx + 0x20]
call qword [sub.msvcrt.dll_free]
mov rcx, qword [rbx + 0x18]
call qword [sub.msvcrt.dll_free]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [sub.msvcrt.dll_free]
mov rbx, rdi
test rdi, rdi
jne 0x140062721
mov rbx, r13
jmp 0x140062763
test rbx, rbx
jne 0x140062763
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WSOCK32.DLL_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov qword [r12], rbx
mov eax, r14d
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbx
ret
Function at 0x140064740
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rdi, r8
cmp dword [rcx + 8], 2
mov rsi, rdx
jne 0x14006478a
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x14006477a
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rcx + 0x10]
mov edx, 1
mov rcx, rsi
call rax
jmp 0x1400647d4
cmp qword [rbx + 0x10], 0
jne 0x1400647bf
mov rcx, qword [rcx + 0x10]
lea rdx, [0x14006fa2c]
call qword [sym.imp.msvcrt.dll_fopen]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x1400647bf
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rbx + 0x10]
mov r8, rdi
mov edx, 1
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_fread]
mov rdi, rax
test rax, rax
jne 0x1400647f8
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400647ef
call qword [sym.imp.msvcrt.dll_fclose]
mov qword [rbx + 0x10], rdi
mov rax, qword [rbx]
mov rcx, qword [rax]
mov qword [rbx], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x140066a00
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rbx, edx
mov rdi, rcx
mov byte [rcx], 0
mov edx, ebx
call qword [sym.imp.WSOCK32.DLL_gethostname]
mov byte [rbx + rdi - 1], 0
test eax, eax
jne 0x140066a3a
lea edx, [rax + 0x2e]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_strchr]
test rax, rax
je 0x140066a38
mov byte [rax], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140068d80
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
mov r14, rdx
add rax, 0x18
add rcx, rax
call qword [sub.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140068dc2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rsp + 0x48], rsi
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140068e05
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + 8]
mov r14d, dword [rbx + 0x18]
mov rdx, qword [rdi + 8]
add r14, qword [rdi + 0x10]
mov rcx, r14
call qword [rbx + 0x10]
mov ebp, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140068e61
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
mov r8d, 1
xor al, 0x36
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + 8]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
mov r8d, 1
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 0x10]
call qword [rbx + 8]
dec rbp
jne 0x140068e20
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140068ea3
nop dword [rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140076252]
mov r8d, 1
call qword [rbx + 8]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140076253]
mov r8d, 1
call qword [rbx + 8]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140068e70
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140069624
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x140080c20], 0
mov r14, rdx
mov r15, rcx
lea rbx, [0x140080c30]
jne 0x140069671
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x140080c58], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x140080c20], 1
mov ecx, dword [0x140080c58]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x140069746
mov rcx, qword [0x14007fa10]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x140069771
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140080c28]
test rax, rax
je 0x1400696c1
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x140080c28], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea r9, [rbp + 0x20]
mov r8, rdi
mov rcx, rax
mov rdx, rbx
mov dword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
lea r8, [0x14006978c]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x140080c58]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x14007fa10]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x140069771
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14004c540
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r12, rcx
mov rsi, rdx
test rdx, rdx
js 0x14004c647
pxor xmm0, xmm0
mov qword [rcx + 0x10], 0
movups xmmword [rcx], xmm0
je 0x14004c620
mov rcx, rdx
call fcn.1405ec030
mov r8, rsi
lea rdi, [rax + rsi]
mov qword [r12], rax
mov rbx, rax
lea rcx, [rax + 1]
mov qword [r12 + 0x10], rdi
mov byte [rax], 0
sub r8, 1
jne 0x14004c638
mov qword [r12 + 8], rcx
xor r10d, r10d
lea rcx, [0x1407cc640]
jmp 0x14004c5fb
lea rdx, [rax + 1]
mov eax, dword [rcx + rax*4]
mov qword [0x1407cd000], rdx
mov edx, eax
shr edx, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor eax, edx
mov edx, eax
shl edx, 0xf
and edx, 0xefc60000
xor eax, edx
mov edx, eax
shr edx, 0x12
xor eax, edx
shr rax, 0x18
mov byte [rbx + r10], al
add r10, 1
cmp rsi, r10
je 0x14004c628
mov rbx, qword [r12]
mov rax, qword [0x1407cd000]
cmp rax, 0x26f
jbe 0x14004c5b0
call fcn.1405a2c00
mov rax, qword [0x1407cd000]
jmp 0x14004c5b0
mov qword [rcx + 0x10], 0
mov rax, r12
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
ret
xor edx, edx
call fcn.14042d780
mov rcx, rdi
jmp 0x14004c599
lea rcx, [0x140612760]
call fcn.1405f10e0
nop
nop word cs:[rax + rax]
nop

Function at 0x14004c660
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
mov r10, rcx
lea r11, [rcx + rdx]
lea rcx, [0x1407cc640]
test rdx, rdx
jne 0x14004c6c7
jmp 0x14004c6e8
lea rdx, [rax + 1]
mov eax, dword [rcx + rax*4]
add r10, 1
mov qword [0x1407cd000], rdx
mov edx, eax
shr edx, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor eax, edx
mov edx, eax
shl edx, 0xf
and edx, 0xefc60000
xor eax, edx
mov edx, eax
shr edx, 0x12
xor eax, edx
shr rax, 0x18
mov byte [r10 - 1], al
cmp r10, r11
je 0x14004c6e8
mov rax, qword [0x1407cd000]
cmp rax, 0x26f
jbe 0x14004c680
call fcn.1405a2c00
mov rax, qword [0x1407cd000]
jmp 0x14004c680
add rsp, 0x28
ret
Function at 0x140113e50
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
vmovdqu xmm2, xmmword [rcx]
vmovdqu xmm0, xmmword [rcx + 0x10]
mov rax, qword [rsp + 0x28]
vperm2i128 ymm1, ymm2, ymm2, 0
vpslldq xmm5, xmm2, 4
vaeskeygenassist xmm4, xmm0, 1
vpshufd xmm4, xmm4, 0xff
vmovdqu ymmword [rdx], ymm1
vperm2i128 ymm1, ymm0, ymm0, 0
vmovdqu ymmword [r8], ymm1
vpslldq xmm1, xmm5, 4
vpslldq xmm3, xmm1, 4
vpxor xmm1, xmm1, xmm5
vpxor xmm3, xmm3, xmm4
vpslldq xmm5, xmm0, 4
vpxor xmm1, xmm1, xmm3
vpxor xmm1, xmm1, xmm2
vpslldq xmm2, xmm5, 4
vaeskeygenassist xmm4, xmm1, 0
vpslldq xmm3, xmm2, 4
vpxor xmm2, xmm2, xmm5
vpshufd xmm4, xmm4, 0xaa
vpslldq xmm5, xmm1, 4
vpxor xmm3, xmm3, xmm4
vpxor xmm2, xmm2, xmm3
vpxor xmm2, xmm2, xmm0
vperm2i128 ymm0, ymm1, ymm1, 0
vmovdqu ymmword [r9], ymm0
vperm2i128 ymm0, ymm2, ymm2, 0
vaeskeygenassist xmm4, xmm2, 2
vmovdqu ymmword [rax], ymm0
vpslldq xmm0, xmm5, 4
vpshufd xmm4, xmm4, 0xff
mov rax, qword [rsp + 0x30]
vpslldq xmm3, xmm0, 4
vpxor xmm0, xmm0, xmm5
vpxor xmm3, xmm3, xmm4
vpslldq xmm5, xmm2, 4
vpxor xmm0, xmm0, xmm3
vpxor xmm0, xmm0, xmm1
vpslldq xmm1, xmm5, 4
vaeskeygenassist xmm4, xmm0, 0
vpslldq xmm3, xmm1, 4
vpxor xmm1, xmm1, xmm5
vpshufd xmm4, xmm4, 0xaa
vpslldq xmm5, xmm0, 4
vpxor xmm3, xmm3, xmm4
vpxor xmm1, xmm1, xmm3
vpxor xmm1, xmm1, xmm2
vperm2i128 ymm2, ymm0, ymm0, 0
vmovdqu ymmword [rax], ymm2
mov rax, qword [rsp + 0x38]
vperm2i128 ymm2, ymm1, ymm1, 0
vaeskeygenassist xmm4, xmm1, 4
vpshufd xmm4, xmm4, 0xff
vmovdqu ymmword [rax], ymm2
vpslldq xmm2, xmm5, 4
mov rax, qword [rsp + 0x40]
vpslldq xmm3, xmm2, 4
vpxor xmm2, xmm2, xmm5
vpxor xmm3, xmm3, xmm4
vpslldq xmm5, xmm1, 4
vpxor xmm2, xmm2, xmm3
vpxor xmm2, xmm2, xmm0
vpslldq xmm0, xmm5, 4
vaeskeygenassist xmm4, xmm2, 0
vpslldq xmm3, xmm0, 4
vpxor xmm0, xmm0, xmm5
vpshufd xmm4, xmm4, 0xaa
vpslldq xmm5, xmm2, 4
vpxor xmm3, xmm3, xmm4
vpxor xmm0, xmm0, xmm3
vpxor xmm0, xmm0, xmm1
vperm2i128 ymm1, ymm2, ymm2, 0
vmovdqu ymmword [rax], ymm1
mov rax, qword [rsp + 0x48]
vperm2i128 ymm1, ymm0, ymm0, 0
vaeskeygenassist xmm4, xmm0, 8
vpshufd xmm4, xmm4, 0xff
vmovdqu ymmword [rax], ymm1
vpslldq xmm1, xmm5, 4
mov rax, qword [rsp + 0x50]
vpslldq xmm3, xmm1, 4
vpxor xmm1, xmm1, xmm5
vpxor xmm3, xmm3, xmm4
vpslldq xmm5, xmm0, 4
vpxor xmm1, xmm1, xmm3
vpxor xmm1, xmm1, xmm2
vpslldq xmm2, xmm5, 4
vaeskeygenassist xmm4, xmm1, 0
vpslldq xmm3, xmm2, 4
vpxor xmm2, xmm2, xmm5
vpshufd xmm4, xmm4, 0xaa
vinserti128 ymm1, ymm1, xmm1, 1
vmovdqu ymmword [rax], ymm1
vpxor xmm1, xmm3, xmm4
mov rax, qword [rsp + 0x58]
vpxor xmm2, xmm2, xmm1
vpxor xmm0, xmm2, xmm0
vinserti128 ymm0, ymm0, xmm0, 1
vmovdqu ymmword [rax], ymm0
vzeroupper
ret
Function at 0x1401171b0
Capabilities:
Hash data using sha512

Disassembly:
push rdi
sub rsp, 0x40
mov r8, rcx
test rcx, rcx
je 0x1401172b3
lea rax, [rdx - 1]
cmp rax, 0x3f
ja 0x140117293
mov eax, 0x101
lea rdi, [rcx + 0x48]
mov byte [rsp], dl
movabs r9, 0x3c6ef372fe94f82b
mov word [rsp + 2], ax
and rdi, 0xfffffffffffffff8
mov eax, ecx
movabs r10, 0xa54ff53a5f1d36f1
sub eax, edi
mov byte [rsp + 1], 0
movdqu xmm0, xmmword [0x140660c20]
mov dword [rsp + 4], 0
mov qword [rsp + 8], 0
mov qword [rcx + 0x40], 0
mov qword [rcx + 0xe8], 0
lea ecx, [rax + 0xf0]
xor eax, eax
shr ecx, 3
rep stosq qword [rdi], rax
mov qword [r8 + 0x10], r9
xor eax, eax
movabs r9, 0x510e527fade682d1
mov qword [r8 + 0x18], r10
movabs r10, 0x9b05688c2b3e6c1f
mov qword [r8 + 0x20], r9
pxor xmm0, xmmword [rsp]
movabs r9, 0x1f83d9abfb41bd6b
mov qword [r8 + 0x28], r10
movabs r10, 0x5be0cd19137e2179
mov qword [r8 + 0x30], r9
mov qword [r8 + 0x38], r10
mov dword [r8 + 0xe4], edx
movups xmmword [r8], xmm0
add rsp, 0x40
pop rdi
ret
cmp byte [rcx + 0xe8], 0
je 0x1401172a4
mov qword [rcx + 0x58], 0xffffffffffffffff
mov qword [r8 + 0x50], 0xffffffffffffffff
mov eax, 0xffffffff
jmp 0x14011728d
mov eax, 0xffffffff
jmp 0x14011728d
Function at 0x140119040
Capabilities:
Encode data using xor

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov r12, rdx
lea rax, [r8 + 1]
mov rdi, rcx
mov rbx, r8
movabs rdx, 0x5851f42d4c957f2d
lea rsi, [rdi + 0x20]
movabs rcx, 0x8126b91cbf22495c
imul rax, rdx
lea rbp, [rdi + 0xc3e0]
movabs rdx, 0x810a978a59f5a1fc
lea r13, [rsp + 0x20]
xor rdx, rax
movq xmm0, rax
xor rcx, rax
movq xmm1, rdx
movq xmm2, rcx
movabs rdx, 0xa77099df38c2d846
movabs rcx, 0x9237efb9ceaaec0c
xor rdx, rax
punpcklqdq xmm0, xmm1
xor rcx, rax
movups xmmword [rsp + 0x20], xmm0
movq xmm0, rdx
movq xmm3, rcx
movabs rdx, 0x494d2597179f8a62
xor rdx, rax
punpcklqdq xmm0, xmm2
movabs rcx, 0x84853bf7b62ce54e
movups xmmword [rsp + 0x30], xmm0
movq xmm0, rdx
movabs rdx, 0x2f2a56746ce62d78
punpcklqdq xmm0, xmm3
xor rdx, rax
xor rax, rcx
movups xmmword [rsp + 0x40], xmm0
movq xmm4, rax
movq xmm0, rdx
punpcklqdq xmm0, xmm4
movups xmmword [rsp + 0x50], xmm0
nop
and ebx, 0x3fffff
mov rdx, rsi
mov rcx, r13
add rsi, 0x1878
shl rbx, 6
add rbx, qword [rdi]
prefetchnta byte [rbx]
call fcn.14011b180
mov rax, qword [rbx]
xor qword [rsp + 0x20], rax
mov rax, qword [rbx + 8]
xor qword [rsp + 0x28], rax
mov rax, qword [rbx + 0x10]
xor qword [rsp + 0x30], rax
mov rax, qword [rbx + 0x18]
xor qword [rsp + 0x38], rax
mov rax, qword [rbx + 0x20]
xor qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x28]
xor qword [rsp + 0x48], rax
mov rax, qword [rbx + 0x30]
xor qword [rsp + 0x50], rax
mov rax, qword [rbx + 0x38]
xor qword [rsp + 0x58], rax
movsxd rax, dword [rsi - 0x64]
mov rbx, qword [rsp + rax*8 + 0x20]
cmp rbp, rsi
jne 0x140119120
movdqu xmm5, xmmword [r13]
movdqu xmm1, xmmword [r13 + 0x10]
movdqu xmm2, xmmword [r13 + 0x20]
mov rax, qword [r13 + 0x30]
mov rdx, qword [r13 + 0x38]
movups xmmword [r12], xmm5
mov qword [r12 + 0x30], rax
mov qword [r12 + 0x38], rdx
movups xmmword [r12 + 0x10], xmm1
movups xmmword [r12 + 0x20], xmm2
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x14013bab0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [rcx + 8]
mov rax, qword [rax + 0xc0]
movq xmm0, r8
mov rsi, rdx
lea rbp, [r9 + 1]
mov rdx, qword [rdx + 8]
punpcklqdq xmm0, xmm0
test byte [rax + 0x60], 1
je 0x14013bbf8
lea r9, [rbp + r8]
xor eax, eax
cmp r9, rdx
ja 0x14013bbe9
movdqu xmm1, xmmword [rsi + 0x20]
sub rdx, r8
sub qword [rsi + 0x10], r8
mov rax, qword [rsi + 0x20]
mov qword [rsi + 8], rdx
paddq xmm0, xmm1
add rax, r8
movups xmmword [rsi + 0x20], xmm0
mov rcx, qword [rcx + 0x438]
movzx ebx, byte [rax + rdx - 1]
call fcn.1401e7c30
mov rdi, rbx
mov rcx, rax
call fcn.1401e7c50
test eax, 0x200000
jne 0x14013bc10
mov r11, qword [rsi + 8]
add rbp, rbx
mov rax, r11
sub rax, rbp
xor rax, rbp
xor rbp, r11
or rax, rbp
xor rax, r11
sar rax, 0x3f
mov r9, rax
not r9
cmp r11, 0xff
ja 0x14013bc28
mov rbp, r11
test r11, r11
je 0x14013bbbd
mov r10, r11
mov r8, rbx
xor ecx, ecx
sub r10, rbx
add r10, qword [rsi + 0x20]
nop
mov rdx, r8
mov rax, rbx
xor rdx, rcx
xor rax, rcx
add rcx, 1
or rax, rdx
movzx edx, byte [r10 + r8 - 1]
sub r8, 1
xor rax, rbx
xor edx, edi
sar rax, 0x3f
movzx edx, dl
not rdx
or rax, rdx
and r9, rax
cmp rbp, rcx
ja 0x14013bb80
mov rax, r9
not rax
movzx edx, al
or r9, 0xffffffffffffff00
add rbx, 1
sub rdx, 1
and rdx, r9
sar rdx, 0x3f
and rbx, rdx
mov eax, edx
not edx
sub r11, rbx
mov qword [rsi + 8], r11
and eax, 1
or eax, edx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor eax, eax
cmp rbp, rdx
ja 0x14013bbe9
mov rax, qword [rsi + 0x20]
jmp 0x14013bb10
not rbx
add qword [rsi + 8], rbx
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov ebp, 0x100
jmp 0x14013bb6f
Function at 0x14013cb10
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
mov eax, 0x40
mov r13, qword [rdx + 0x10]
cmp r13, rax
cmovbe rax, r13
mov rbx, r8
mov rsi, rcx
mov rbp, rdx
xor r8d, r8d
cmp rbx, rax
jbe 0x14013cb60
mov eax, r8d
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x20]
mov rdx, r13
mov rdi, qword [rbp + 8]
mov rax, rcx
sub rdx, rbx
neg rax
lea r8, [rdx - 0x100]
and eax, 0x3f
add rcx, rax
lea rax, [rbx + 0x100]
cmp r13, rax
mov eax, 0
cmova rax, r8
mov r8, rbx
xor edx, edx
mov r14, rax
call fcn.14042d780
mov rcx, rax
cmp r13, r14
jbe 0x14013ccc8
sub r14, rdi
mov r12, rdi
mov r11, r13
xor edx, edx
mov r8, r14
mov r14, qword [rbp + 0x20]
sub r12, rbx
sub r11, rdi
xor eax, eax
xor r9d, r9d
add r14, rdi
mov rbp, r14
nop dword [rax]
lea r14, [rdi + r8]
mov r13, r12
mov r15, rdi
xor r13, r14
xor r15, r8
mov r10, r13
sub r13, 1
not r10
and r10, r13
mov r13, rdi
xor r13, r14
sar r10, 0x3f
or r13, r15
or r9, r10
and r10, rax
xor r13, r14
or rdx, r10
lea r10, [rax + 1]
sar r13, 0x3f
and r9, r13
movzx r13d, byte [rbp + r8]
add r8, 1
and r13d, r9d
or byte [rcx + rax], r13b
mov rax, r10
mov r13, rbx
sub rax, rbx
xor r13, r10
xor rax, rbx
or rax, r13
xor rax, r10
sar rax, 0x3f
and rax, r10
cmp r11, r8
jne 0x14013cbd8
lea r8, [rsi + rbx]
test rbx, rbx
je 0x14013ccb7
nop dword [rax]
mov eax, edx
mov r9, rdx
and eax, 0x20
cmp eax, 1
sbb eax, eax
and r9, 0xffffffffffffffdf
add rsi, 1
movzx r9d, byte [rcx + r9]
movzx eax, al
mov r10d, eax
not eax
and r9d, r10d
mov r10, rdx
add rdx, 1
or r10, 0x20
movzx r10d, byte [rcx + r10]
and eax, r10d
or eax, r9d
mov r9, rbx
mov byte [rsi - 1], al
mov rax, rdx
xor r9, rdx
sub rax, rbx
xor rax, rbx
or rax, r9
xor rax, rdx
sar rax, 0x3f
and rdx, rax
cmp r8, rsi
jne 0x14013cc58
mov r8d, 1
jmp 0x14013cb44
xor edx, edx
jmp 0x14013cc4b
Function at 0x1401a1f40
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
cmp rdx, r8
je 0x1401a2052
mov r10, rcx
sub rcx, 1
not r10
and r10, rcx
mov ecx, dword [rdx + 8]
mov edx, dword [r8 + 8]
shr r10, 0x3f
xor edx, ecx
sub r10, 1
movsxd rdx, edx
and rdx, r10
xor ecx, edx
mov dword [rax + 8], ecx
mov ecx, dword [rax + 0x10]
xor dword [r8 + 8], edx
mov edx, dword [r8 + 0x10]
xor edx, ecx
movsxd rdx, edx
and rdx, r10
xor ecx, edx
mov dword [rax + 0x10], ecx
mov ecx, dword [rax + 0x14]
xor dword [r8 + 0x10], edx
mov edx, dword [r8 + 0x14]
xor edx, ecx
and rdx, r10
and edx, 4
xor ecx, edx
mov dword [rax + 0x14], ecx
xor dword [r8 + 0x14], edx
test r9d, r9d
jle 0x1401a2052
mov rcx, qword [rax]
mov r11, qword [r8]
lea rax, [rcx + 0xf]
sub rax, r11
cmp rax, 0x1e
jbe 0x1401a2058
cmp r9d, 1
je 0x1401a2058
mov r8d, r9d
movq xmm2, r10
mov rdx, rcx
mov rax, r11
shr r8d, 1
punpcklqdq xmm2, xmm2
shl r8, 4
add r8, rcx
nop
movdqu xmm3, xmmword [rdx]
movdqu xmm0, xmmword [rax]
add rdx, 0x10
add rax, 0x10
pxor xmm0, xmm3
movdqa xmm1, xmm3
pand xmm0, xmm2
pxor xmm1, xmm0
movups xmmword [rdx - 0x10], xmm1
movdqu xmm4, xmmword [rax - 0x10]
pxor xmm0, xmm4
movups xmmword [rax - 0x10], xmm0
cmp r8, rdx
jne 0x1401a1ff0
mov eax, r9d
and eax, 0xfffffffe
and r9d, 1
je 0x1401a2052
shl rax, 3
lea r8, [rcx + rax]
add rax, r11
mov rcx, qword [r8]
mov rdx, qword [rax]
xor rdx, rcx
and rdx, r10
xor rcx, rdx
mov qword [r8], rcx
xor qword [rax], rdx
ret
movsxd r9, r9d
xor eax, eax
nop dword [rax]
mov r8, qword [rcx + rax*8]
mov rdx, qword [r11 + rax*8]
xor rdx, r8
and rdx, r10
xor r8, rdx
mov qword [rcx + rax*8], r8
xor qword [r11 + rax*8], rdx
add rax, 1
cmp r9, rax
jne 0x1401a2060
ret