joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ba420
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0xc8
call fcn.1401a62f0
sub rsp, rax
mov rax, qword [0x1402ccee0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov r12, qword [rsp + 0x130]
xor ebp, ebp
movsxd rsi, r8d
mov rdi, r9
mov r14, rdx
mov rbx, rcx
mov r15d, ebp
lea r13d, [rbp + 1]
test r9, r9
je 0x1400ba485
cmp r9, qword [rcx]
je 0x1400ba47d
test rdx, rdx
je 0x1400ba4f6
test r8d, r8d
js 0x1400ba4f6
mov r15d, r13d
mov qword [rcx], r9
jmp 0x1400ba48d
mov rdi, qword [rcx]
test rdi, rdi
je 0x1400ba4f6
mov rcx, rdi
call fcn.1400d0c40
test al, 2
jne 0x1400ba4f6
test r14, r14
je 0x1400ba560
mov rcx, rdi
mov r15d, r13d
call fcn.1400d10c0
cmp eax, 0x90
jg 0x1400ba4f6
cmp eax, esi
jge 0x1400ba51c
mov rcx, qword [rbx + 8]
mov r8, r12
mov rdx, rdi
call fcn.1400b2af0
test eax, eax
je 0x1400ba4f6
mov rcx, qword [rbx + 8]
mov r8, rsi
mov rdx, r14
call fcn.1400b2cf0
test eax, eax
je 0x1400ba4f6
mov rcx, qword [rbx + 8]
lea r14, [rbx + 0x20]
mov r8, r14
lea rdx, [rbx + 0x24]
call fcn.1400b2a10
test eax, eax
jne 0x1400ba53a
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1401a5d00
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp esi, 0x90
ja 0x1400ba4f6
mov r8, rsi
lea rcx, [rbx + 0x24]
mov rdx, r14
call fcn.1401a6b60
lea r14, [rbx + 0x20]
mov dword [r14], esi
mov ecx, dword [r14]
cmp ecx, 0x90
je 0x1400ba569
mov eax, ecx
mov r8d, 0x90
sub r8d, ecx
xor edx, edx
lea rcx, [rbx + 0x24]
add rcx, rax
call fcn.1401a72b0
jmp 0x1400ba569
test r15d, r15d
je 0x1400ba637
lea rcx, [rsp + 0x20]
mov rax, rbx
sub rax, rcx
mov rdx, rbp
lea rsi, [rax + 0x24]
lea r14, [rax + 0x25]
nop
lea rcx, [rsp + 0x20]
add rcx, rdx
add rdx, 2
movzx eax, byte [rsi + rcx]
xor al, 0x36
mov byte [rcx], al
movzx eax, byte [r14 + rcx]
xor al, 0x36
mov byte [rcx + 1], al
cmp rdx, 0x90
jl 0x1400ba580
mov rcx, qword [rbx + 0x10]
mov r8, r12
mov rdx, rdi
call fcn.1400b2af0
test eax, eax
je 0x1400ba64a
mov rcx, rdi
call fcn.1400d10c0
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x20]
movsxd r8, eax
call fcn.1400b2cf0
test eax, eax
je 0x1400ba64a
mov rdx, rbp
nop
lea rcx, [rsp + 0x20]
add rcx, rdx
add rdx, 2
movzx eax, byte [rsi + rcx]
xor al, 0x5c
mov byte [rcx], al
movzx eax, byte [r14 + rcx]
xor al, 0x5c
mov byte [rcx + 1], al
cmp rdx, 0x90
jl 0x1400ba5e0
mov rcx, qword [rbx + 0x18]
mov r8, r12
mov rdx, rdi
call fcn.1400b2af0
test eax, eax
je 0x1400ba64a
mov rcx, rdi
call fcn.1400d10c0
mov rcx, qword [rbx + 0x18]
lea rdx, [rsp + 0x20]
movsxd r8, eax
call fcn.1400b2cf0
test eax, eax
je 0x1400ba64a
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rbx + 8]
call fcn.1400b2d60
test eax, eax
cmovne ebp, r13d
test r15d, r15d
je 0x1400ba65e
mov edx, 0x90
lea rcx, [rsp + 0x20]
call fcn.1400c7870
mov eax, ebp
jmp 0x1400ba4f8
Function at 0x1400bb1c0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rbx
mov eax, 0x30
call fcn.1401a62f0
sub rsp, rax
mov r10, r9
mov r11, r8
mov rbx, rcx
test r9, r9
jne 0x1400bb1fb
mov edx, 0xe2
mov dword [rsp + 0x20], r9d
lea ecx, [rax - 0x23]
lea r8d, [rdx - 4]
call fcn.1400a8770
xor eax, eax
add rsp, 0x30
pop rbx
ret
movzx r8d, byte [r8]
and r8d, 0x80
test rdx, rdx
je 0x1400bb20e
mov dword [rdx], r8d
cmp r10, 1
jne 0x1400bb233
test rbx, rbx
je 0x1400bb228
movzx eax, byte [r11]
test r8d, r8d
je 0x1400bb226
not al
inc al
mov byte [rcx], al
mov eax, 1
add rsp, 0x30
pop rbx
ret
movzx eax, byte [r11]
xor ecx, ecx
test al, al
jne 0x1400bb244
mov ecx, 1
jmp 0x1400bb27c
cmp al, 0xff
jne 0x1400bb2b0
xor edx, edx
mov ecx, 1
cmp rcx, r10
jae 0x1400bb26f
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx + r11]
inc rcx
or edx, eax
cmp rcx, r10
jb 0x1400bb260
xor eax, eax
test edx, edx
setne al
mov ecx, eax
test eax, eax
je 0x1400bb2b0
movzx eax, byte [r11 + 1]
and eax, 0x80
cmp r8d, eax
jne 0x1400bb2b0
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov edx, 0xe2
lea ecx, [r9 + 0xd]
lea r8d, [rdx - 5]
call fcn.1400a8770
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov eax, ecx
sub r10, rax
test rbx, rbx
je 0x1400bb315
neg r8d
mov qword [rsp + 0x40], rdi
lea r9, [rax + r11]
sbb dil, dil
add r9, r10
movzx edi, dil
mov edx, edi
and edx, 1
test r10, r10
je 0x1400bb310
mov r8, r9
sub r8, rax
sub r8, r11
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r9 - 1]
lea r9, [r9 - 1]
dec r8
movzx ecx, dil
xor ecx, eax
add edx, ecx
mov byte [r8 + rbx], dl
shr edx, 8
test r8, r8
jne 0x1400bb2f0
mov rdi, qword [rsp + 0x40]
mov rax, r10
add rsp, 0x30
pop rbx
ret

Function at 0x1400ccc90
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1401a62f0
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x1400d9030
Capabilities:
Encode data using xor

Disassembly:
xor r9b, r9b
mov r10, rdx
test r8, r8
je 0x1400d9057
sub r10, rcx
nop
movzx edx, byte [r10 + rcx]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
xor dl, al
or r9b, dl
sub r8, 1
jne 0x1400d9040
movzx eax, r9b
ret
Function at 0x1400dade0
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x1400dafa9
push rbx
push rbp
push rsi
push rdi
push r13
mov eax, 0x20
call fcn.1401a62f0
sub rsp, rax
mov rbp, qword [rsp + 0x70]
mov rbx, r8
mov qword [rsp + 0x50], r12
mov r13, r9
mov r12, qword [rsp + 0x78]
mov rdi, rdx
mov rsi, rcx
mov r10, rbp
cmp rbx, 0x10
jb 0x1400dae78
mov rbp, rbx
shr rbp, 4
imul rax, rbp, 0xfffffffffffffff0
add rbx, rax
nop
sub r10, rsi
mov r8, rdi
sub r8, rsi
mov rcx, rsi
mov edx, 2
mov rax, qword [r10 + rcx]
xor rax, qword [rcx]
mov qword [r8 + rcx], rax
lea rcx, [rcx + 8]
sub rdx, 1
jne 0x1400dae41
mov r8, r13
mov rdx, rdi
mov rcx, rdi
call r12
mov r10, rdi
add rsi, 0x10
add rdi, 0x10
sub rbp, 1
jne 0x1400dae30
mov rbp, qword [rsp + 0x70]
test rbx, rbx
je 0x1400daf92
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r15
nop dword [rax + rax]
mov r8, r10
mov r9, rdi
mov r11d, 1
mov r14d, 2
sub r8, rsi
sub r9, rsi
sub r11, rsi
sub r14, rsi
xor eax, eax
mov r15d, 3
sub r15, rsi
nop dword [rax]
cmp rax, rbx
jae 0x1400daf34
lea rdx, [rax + rsi]
movzx ecx, byte [r8 + rdx]
xor cl, byte [rdx]
mov byte [r9 + rdx], cl
lea rcx, [r11 + rdx]
cmp rcx, rbx
jae 0x1400daf31
movzx ecx, byte [rsi + rax + 1]
xor cl, byte [rax + r10 + 1]
mov byte [rdi + rax + 1], cl
lea rcx, [r14 + rdx]
cmp rcx, rbx
jae 0x1400daf2b
movzx ecx, byte [rsi + rax + 2]
xor cl, byte [rax + r10 + 2]
mov byte [rdi + rax + 2], cl
lea rcx, [r15 + rdx]
cmp rcx, rbx
jae 0x1400daf25
movzx ecx, byte [rsi + rax + 3]
xor cl, byte [rax + r10 + 3]
mov byte [rdi + rax + 3], cl
add rax, 4
cmp rax, 0x10
jb 0x1400daec0
jmp 0x1400daf61
add rax, 3
jmp 0x1400daf34
add rax, 2
jmp 0x1400daf34
inc rax
cmp rax, 0x10
jae 0x1400daf61
sub r10, rdi
lea rcx, [rax + rdi]
mov edx, reloc.WS2_32.dll_recv
sub rdx, rax
nop dword [rax]
movzx eax, byte [r10 + rcx]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x1400daf50
mov r8, r13
mov rdx, rdi
mov rcx, rdi
call r12
mov r10, rdi
cmp rbx, 0x10
jbe 0x1400daf88
add rsi, 0x10
add rdi, 0x10
sub rbx, 0x10
jne 0x1400dae90
mov r14, qword [rsp + 0x58]
mov r15, qword [rsp + 0x60]
movups xmm0, xmmword [r10]
mov r12, qword [rsp + 0x50]
movups xmmword [rbp], xmm0
add rsp, 0x20
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400db1b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x30
call fcn.1401a62f0
sub rsp, rax
mov rdi, r8
mov r14, rdx
mov r8, qword [rsp + 0xa0]
mov r15, rcx
mov ebx, dword [r8]
mov dword [rsp + 0x80], ebx
test ebx, ebx
je 0x1400db228
mov rdx, qword [rsp + 0x98]
nop dword [rax]
test rdi, rdi
je 0x1400db221
mov eax, ebx
dec rdi
movzx ecx, byte [rax + rdx]
xor cl, byte [r15]
inc r15
mov byte [r14], cl
inc r14
inc ebx
and ebx, 0xf
jne 0x1400db200
mov dword [rsp + 0x80], ebx
mov rcx, qword [rsp + 0x90]
mov esi, listen
movzx r13d, byte [rcx + 0xc]
lea r12, [rcx + 0xc]
mov r10, qword [rsp + 0xa8]
shl r13d, 8
movzx eax, byte [rcx + 0xd]
lea ebp, [rsi - 0xb]
or r13d, eax
movzx eax, byte [rcx + 0xe]
shl r13d, 8
or r13d, eax
movzx eax, byte [rcx + 0xf]
shl r13d, 8
or r13d, eax
cmp rdi, 0x10
jb 0x1400db34d
mov eax, 0x10000000
mov ebx, esi
nop dword [rax + rax]
mov rsi, rdi
shr rsi, 4
cmp rsi, rax
cmova rsi, rax
add r13d, esi
mov eax, r13d
cmp rax, rsi
jae 0x1400db29f
sub rsi, rax
xor r13d, r13d
mov qword [rsp + 0x20], rcx
mov r8, rsi
mov rcx, r15
mov rdx, r14
call r10
mov rcx, qword [rsp + 0x90]
mov eax, r13d
shr eax, 0x18
mov byte [r12], al
mov eax, r13d
shr eax, 0x10
mov byte [rcx + 0xd], al
mov eax, r13d
shr eax, 8
mov byte [rcx + 0xe], al
mov byte [rcx + 0xf], r13b
test r13d, r13d
jne 0x1400db30d
mov r8d, ebx
mov ecx, ebp
mov rdx, r12
nop word [rax + rax]
movzx eax, byte [rdx - 1]
lea rdx, [rdx - 1]
add ecx, eax
mov byte [rdx], cl
shr ecx, 8
add r8d, 0xffffffff
jne 0x1400db2f0
mov rcx, qword [rsp + 0x90]
mov r9, qword [rsp + 0x88]
mov eax, 0x10000000
mov r10, qword [rsp + 0xa8]
shl rsi, 4
sub rdi, rsi
add r14, rsi
add r15, rsi
cmp rdi, 0x10
jae 0x1400db280
mov ebx, dword [rsp + 0x80]
mov esi, listen
mov r8, qword [rsp + 0xa0]
test rdi, rdi
je 0x1400db402
mov rax, qword [rsp + 0x98]
xor edx, edx
mov qword [rsp + 0x20], rcx
mov r8, rbp
mov rcx, rax
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov rdx, rax
call r10
mov rcx, qword [rsp + 0x90]
inc r13d
mov eax, r13d
shr eax, 0x18
mov byte [r12], al
mov eax, r13d
shr eax, 0x10
mov byte [rcx + 0xd], al
mov eax, r13d
shr eax, 8
mov byte [rcx + 0xe], al
mov byte [rcx + 0xf], r13b
test r13d, r13d
jne 0x1400db3c9
nop dword [rax + rax]
movzx eax, byte [r12 - 1]
lea r12, [r12 - 1]
add ebp, eax
mov byte [r12], bpl
shr ebp, 8
add esi, 0xffffffff
jne 0x1400db3b0
mov rdx, qword [rsp + 0x98]
nop dword [rax]
nop word [rax + rax]
mov ecx, ebx
inc ebx
movzx eax, byte [rcx + r15]
xor al, byte [rcx + rdx]
mov byte [rcx + r14], al
sub rdi, 1
jne 0x1400db3e0
mov rax, qword [rsp + 0xa0]
mov dword [rax], ebx
jmp 0x1400db405
mov dword [r8], ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400dbad0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
mov eax, 0x20
call fcn.1401a62f0
sub rsp, rax
cmp qword [rcx + 0x38], 0
mov rbx, r8
mov r14, rdx
mov rsi, rcx
je 0x1400dbb0f
mov eax, 0xfffffffe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rcx, qword [rcx + 0x30]
movabs rax, 0x2000000000000000
add rcx, rbx
cmp rcx, rax
ja 0x1400dbbe0
cmp rcx, rbx
jb 0x1400dbbe0
mov qword [rsp + 0x38], rdi
mov edi, dword [rsi + 0x174]
mov qword [rsi + 0x30], rcx
test edi, edi
je 0x1400dbb74
test rbx, rbx
je 0x1400dbb63
movzx eax, byte [r14]
dec rbx
mov ecx, edi
inc r14
xor byte [rcx + rsi + 0x40], al
inc edi
and edi, 0xf
jne 0x1400dbb45
jmp 0x1400dbb67
test edi, edi
jne 0x1400dbbc2
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
call fcn.1400dd160
mov qword [rsp + 0x30], rbp
mov rbp, rbx
and rbp, 0xfffffffffffffff0
je 0x1400dbb9b
lea rdx, [rsi + 0x60]
mov r9, rbp
lea rcx, [rsi + 0x40]
mov r8, r14
call fcn.1400dcf90
add r14, rbp
sub rbx, rbp
mov rbp, qword [rsp + 0x30]
test rbx, rbx
je 0x1400dbbc2
mov edi, ebx
lea rcx, [rsi + 0x40]
sub r14, rsi
nop
movzx eax, byte [r14 + rcx - 0x40]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub rbx, 1
jne 0x1400dbbb0
mov dword [rsi + 0x174], edi
xor eax, eax
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rbx, qword [rsp + 0x40]
or eax, 0xffffffff
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400dcd30
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r15
mov eax, 0x20
call fcn.1401a62f0
sub rsp, rax
xor ebp, ebp
mov rsi, r8
mov qword [rcx + 0x30], rbp
mov r15, rdx
mov qword [rcx + 0x38], rbp
mov rbx, rcx
mov qword [rcx + 0x170], rbp
cmp r8, 0xc
jne 0x1400dcd81
movsd xmm0, qword [rdx]
lea edi, [rbp + 1]
movsd qword [rcx], xmm0
mov eax, dword [rdx + 8]
mov dword [rcx + 8], eax
mov dword [rcx + 0xc], 0x1000000
jmp 0x1400dcee2
mov qword [rsp + 0x58], r13
mov r13, rsi
mov qword [rcx + 0x40], rbp
mov qword [rsp + 0x60], r14
mov qword [rcx + 0x48], rbp
cmp rsi, 0x10
jb 0x1400dce24
mov rbp, rsi
mov qword [rsp + 0x50], r12
shr rbp, 4
mov rdi, r15
imul rax, rbp, 0xfffffffffffffff0
sub rdi, rbx
add rsi, rax
sub rdi, 0x3f
mov rax, rbp
shl rax, 4
add r15, rax
nop word [rax + rax]
lea rax, [rbx + 0x40]
mov edx, 4
nop dword [rax]
movzx ecx, byte [rax + rdi - 1]
xor byte [rax], cl
movzx ecx, byte [rax + rdi]
xor byte [rax + 1], cl
movzx ecx, byte [rax + rdi + 1]
xor byte [rax + 2], cl
movzx ecx, byte [rax + rdi + 2]
xor byte [rax + 3], cl
lea rax, [rax + 4]
sub rdx, 1
jne 0x1400dcde0
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
call fcn.1400dd160
add rdi, 0x10
sub rbp, 1
jne 0x1400dcdd0
mov r12, qword [rsp + 0x50]
test rsi, rsi
je 0x1400dce4f
lea rcx, [rbx + 0x40]
sub r15, rbx
movzx eax, byte [r15 + rcx - 0x40]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub rsi, 1
jne 0x1400dce30
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
call fcn.1400dd160
shl r13, 3
lea rdx, [rbx + 0x60]
xor byte [rbx + 0x4f], r13b
lea rcx, [rbx + 0x40]
mov rax, r13
shr rax, 0x38
xor byte [rbx + 0x48], al
mov rax, r13
shr rax, 0x30
xor byte [rbx + 0x49], al
mov rax, r13
shr rax, 0x28
xor byte [rbx + 0x4a], al
mov rax, r13
shr rax, 0x20
xor byte [rbx + 0x4b], al
mov rax, r13
shr rax, 0x18
xor byte [rbx + 0x4c], al
mov rax, r13
shr rax, 0x10
xor byte [rbx + 0x4d], al
mov rax, r13
shr rax, 8
xor byte [rbx + 0x4e], al
call fcn.1400dd160
movzx eax, byte [rbx + 0x4d]
movzx edi, byte [rbx + 0x4c]
mov r14, qword [rsp + 0x60]
mov r13, qword [rsp + 0x58]
shl edi, 8
or edi, eax
movzx eax, byte [rbx + 0x4e]
shl edi, 8
or edi, eax
movzx eax, byte [rbx + 0x4f]
shl edi, 8
or edi, eax
mov rax, qword [rbx + 0x40]
mov qword [rbx], rax
mov rax, qword [rbx + 0x48]
mov qword [rbx + 8], rax
mov qword [rbx + 0x40], rbp
lea rdx, [rbx + 0x20]
mov qword [rbx + 0x48], rbp
mov rcx, rbx
mov r8, qword [rbx + 0x180]
call qword [rbx + 0x178]
inc edi
mov eax, edi
mov byte [rbx + 0xf], dil
shr eax, 0x18
mov byte [rbx + 0xc], al
mov eax, edi
shr eax, 0x10
mov byte [rbx + 0xd], al
mov eax, edi
shr eax, 8
mov byte [rbx + 0xe], al
add rsp, 0x20
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400dcf90
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
push r15
mov rsi, rcx
lea r14, [r8 + 0xe]
sub rsi, r8
lea r13, [0x1401f5ce0]
mov r12, r9
mov rbp, rdx
mov r11, rcx
nop word [rax + rax]
movzx eax, byte [r11 + 0xf]
mov rdi, r14
movzx ecx, byte [r14 + 1]
mov r15d, reloc.WS2_32.dll_ntohs
xor rcx, rax
mov r9, rcx
and ecx, 0xf
add rcx, rcx
and r9, 0xfffffffffffffff0
mov r8, qword [rbp + rcx*8]
mov rcx, qword [rbp + rcx*8 + 8]
mov rax, r8
mov rdx, rcx
shr r8, 4
and edx, 0xf
shl rax, 0x3c
shr rcx, 4
or rax, rcx
mov rbx, qword [r13 + rdx*8]
xor rbx, r8
xor rbx, qword [r9 + rbp]
xor rax, qword [r9 + rbp + 8]
nop word [rax + rax]
movzx ecx, byte [rdi]
mov r9, rbx
movzx edx, byte [rsi + rdi]
lea rdi, [rdi - 1]
xor rdx, rcx
shr rbx, 4
mov rcx, rax
shl r9, 0x3c
shr rax, 4
and ecx, 0xf
or r9, rax
mov r10, rdx
and r10, 0xfffffffffffffff0
and edx, 0xf
add rdx, rdx
mov r8, qword [r13 + rcx*8]
xor r8, rbx
xor r9, qword [rbp + rdx*8 + 8]
xor r8, qword [rbp + rdx*8]
mov rcx, r9
and ecx, 0xf
shr r9, 4
mov rax, r8
shr r8, 4
shl rax, 0x3c
or rax, r9
mov rbx, qword [r13 + rcx*8]
xor rax, qword [r10 + rbp + 8]
xor rbx, r8
xor rbx, qword [r10 + rbp]
sub r15, 1
jne 0x1400dd030
mov rdx, rbx
mov byte [r11 + 7], bl
shr rdx, 0x20
add r14, 0x10
mov ecx, edx
mov byte [r11 + 3], dl
shr ecx, 0x18
sub rsi, 0x10
mov byte [r11], cl
mov ecx, edx
shr ecx, 0x10
mov byte [r11 + 1], cl
mov ecx, edx
shr ecx, 8
mov rdx, rax
mov byte [r11 + 2], cl
mov ecx, ebx
shr ecx, 0x18
mov byte [r11 + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [r11 + 5], cl
mov ecx, ebx
shr ecx, 8
mov byte [r11 + 6], cl
shr rdx, 0x20
mov ecx, edx
mov byte [r11 + 0xb], dl
shr ecx, 0x18
mov byte [r11 + 8], cl
mov ecx, edx
shr ecx, 0x10
mov byte [r11 + 9], cl
mov ecx, edx
shr ecx, 8
mov byte [r11 + 0xa], cl
mov ecx, eax
shr ecx, 0x18
mov byte [r11 + 0xc], cl
mov ecx, eax
shr ecx, 0x10
mov byte [r11 + 0xd], cl
mov ecx, eax
shr ecx, 8
mov byte [r11 + 0xe], cl
mov byte [r11 + 0xf], al
sub r12, 0x10
jne 0x1400dcfd0
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
ret
Function at 0x1400dd160
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
movzx eax, byte [rcx + 0xf]
lea r14, [0x1401f5ce0]
mov r10d, eax
mov rdi, rdx
and eax, 0xf
and r10, 0xfffffffffffffff0
add rax, rax
mov esi, reloc.WS2_32.dll_ntohl
mov r9, qword [rdx + rax*8]
mov r8, qword [rdx + rax*8 + 8]
mov r11, r9
mov rax, r8
shr r9, 4
and eax, 0xf
shl r11, 0x3c
shr r8, 4
or r11, r8
mov rbx, qword [r14 + rax*8]
xor rbx, r9
xor rbx, qword [r10 + rdx]
xor r11, qword [r10 + rdx + 8]
nop word [rax + rax]
movzx edx, byte [rsi + rcx]
mov rax, r11
shr r11, 4
mov r9, rbx
shr rbx, 4
and eax, 0xf
shl r9, 0x3c
mov r10d, edx
or r9, r11
and r10, 0xfffffffffffffff0
and edx, 0xf
mov r8, qword [r14 + rax*8]
add rdx, rdx
xor r8, rbx
xor r9, qword [rdi + rdx*8 + 8]
xor r8, qword [rdi + rdx*8]
mov rax, r9
and eax, 0xf
shr r9, 4
mov r11, r8
shr r8, 4
shl r11, 0x3c
or r11, r9
mov rbx, qword [r14 + rax*8]
xor r11, qword [r10 + rdi + 8]
xor rbx, r8
xor rbx, qword [r10 + rdi]
sub rsi, 1
jns 0x1400dd1d0
mov rsi, qword [rsp + 0x10]
mov rdx, rbx
mov rdi, qword [rsp + 0x18]
mov r14, qword [rsp + 0x20]
shr rdx, 0x20
mov eax, edx
mov byte [rcx + 3], dl
shr eax, 0x18
mov byte [rcx], al
mov eax, edx
shr eax, 0x10
mov byte [rcx + 1], al
mov eax, edx
shr eax, 8
mov rdx, r11
mov byte [rcx + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [rcx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [rcx + 5], al
mov eax, ebx
shr eax, 8
mov byte [rcx + 6], al
shr rdx, 0x20
mov eax, edx
mov byte [rcx + 7], bl
mov rbx, qword [rsp + 8]
shr eax, 0x18
mov byte [rcx + 8], al
mov eax, edx
shr eax, 0x10
mov byte [rcx + 9], al
mov eax, edx
shr eax, 8
mov byte [rcx + 0xa], al
mov eax, r11d
shr eax, 0x18
mov byte [rcx + 0xc], al
mov eax, r11d
shr eax, 0x10
mov byte [rcx + 0xd], al
mov eax, r11d
shr eax, 8
mov byte [rcx + 0xe], al
mov byte [rcx + 0xb], dl
mov byte [rcx + 0xf], r11b
ret

Function at 0x1400ef840
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1401a62f0
sub rsp, rax
lea rcx, [0x1402ce2a0]
add rsp, 0x28
jmp fcn.1400ccb10
Function at 0x140106980
Capabilities:
Encrypt data using curve25519

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r13
push r14
push r15
mov eax, 0x40
call fcn.1401a62f0
sub rsp, rax
movsxd rbx, dword [rsp + 0x80]
lea r14d, [rax - 0x20]
xor esi, esi
mov r15, r9
cmp dword [rsp + 0x88], 2
mov edi, edx
mov r13, rcx
je 0x140106a2c
test r8, r8
je 0x140106a00
mov r9, r8
lea rdx, [rsp + 0x30]
xor r8d, r8d
xor ecx, ecx
call fcn.1400c7cd0
cmp dword [rsp + 0x30], 0xffffffff
je 0x140106a00
xor r9d, r9d
mov dword [rsp + 0x20], esi
mov edx, 0x10a
lea ecx, [r9 + 0x10]
lea r8d, [r9 + 0x66]
call fcn.1400a8770
xor eax, eax
jmp 0x140106c13
test r15, r15
je 0x1401069e0
cmp edi, 0x40a
je 0x140106a25
cmp edi, 0x43f
je 0x140106a25
cmp edi, 0x40b
mov eax, esi
setne al
add eax, 0x38
jmp 0x140106a28
mov eax, r14d
cmp ebx, eax
jne 0x1401069e0
mov r8d, 0x46
mov qword [rsp + 0x60], rbp
lea rdx, str.cryptoececx_meth.c
lea ecx, [r8 + 2]
call fcn.1400b1670
mov rbp, rax
test rax, rax
jne 0x140106a6e
xor r9d, r9d
mov dword [rsp + 0x20], esi
mov edx, 0x10a
lea ecx, [rax + 0x10]
lea r8d, [rax + 0x41]
call fcn.1400a8770
xor eax, eax
jmp 0x140106c0e
cmp dword [rsp + 0x88], esi
jne 0x140106a8a
mov r8, rbx
mov rdx, r15
mov rcx, rbp
call fcn.1401a6b60
jmp 0x140106bfc
cmp edi, 0x40a
je 0x140106aac
cmp edi, 0x43f
je 0x140106aac
cmp edi, 0x40b
mov rcx, rsi
setne cl
add rcx, 0x38
jmp 0x140106aaf
mov rcx, r14
mov r8d, 0x50
lea rdx, str.cryptoececx_meth.c
call fcn.1400e50a0
mov qword [rbp + 0x40], rax
mov rbx, rax
test rax, rax
jne 0x140106ae7
xor r9d, r9d
mov dword [rsp + 0x20], esi
mov edx, 0x10a
lea ecx, [rax + 0x10]
lea r8d, [rax + 0x41]
call fcn.1400a8770
jmp 0x140106b3e
cmp dword [rsp + 0x88], 2
jne 0x140106b80
cmp edi, 0x40a
je 0x140106b16
cmp edi, 0x43f
je 0x140106b16
cmp edi, 0x40b
mov r14d, esi
setne r14b
add r14d, 0x38
mov edx, r14d
mov rcx, rbx
call fcn.1400b4de0
test eax, eax
jg 0x140106b5a
mov r8d, 0x57
lea rdx, str.cryptoececx_meth.c
mov rcx, rbx
call fcn.1400e5080
mov qword [rbp + 0x40], rsi
mov r8d, 0x79
lea rdx, str.cryptoececx_meth.c
mov rcx, rbp
call fcn.1400b1380
xor eax, eax
jmp 0x140106c0e
cmp edi, 0x40a
jne 0x140106b6f
and byte [rbx], 0xf8
and byte [rbx + 0x1f], 0x3f
or byte [rbx + 0x1f], 0x40
jmp 0x140106bb1
cmp edi, 0x40b
jne 0x140106bb1
and byte [rbx], 0xfc
or byte [rbx + 0x37], 0x80
jmp 0x140106bb1
cmp edi, 0x40a
je 0x140106ba0
cmp edi, 0x43f
je 0x140106ba0
cmp edi, 0x40b
setne sil
add rsi, 0x38
jmp 0x140106ba3
mov rsi, r14
mov r8, rsi
mov rdx, r15
mov rcx, rbx
call fcn.1401a6b60
mov ecx, edi
sub ecx, 0x40a
je 0x140106bf1
sub ecx, 1
je 0x140106be4
sub ecx, 0x34
je 0x140106bd7
cmp ecx, 1
jne 0x140106bfc
mov rdx, rbx
mov rcx, rbp
call fcn.14013c980
jmp 0x140106bfc
mov rdx, rbx
mov rcx, rbp
call fcn.140131800
jmp 0x140106bfc
mov rdx, rbx
mov rcx, rbp
call fcn.140139860
jmp 0x140106bfc
mov rdx, rbx
mov rcx, rbp
call fcn.140131dc0
mov r8, rbp
mov edx, edi
mov rcx, r13
call fcn.14009d520
mov eax, 1
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
ret