joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003b810
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov edi, edx
mov rbp, rcx
test edx, edx
jle 0x14003b86b
nop
mov rcx, qword [0x1408a6578]
mov r8d, edi
movsxd rdx, ebx
sub r8d, ebx
add rdx, rbp
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp eax, 0xffffffff
jne 0x14003b865
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8bb
test eax, 0xfffffffa
je 0x14003b885
add ebx, esi
cmp ebx, edi
jl 0x14003b830
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor eax, eax
jmp 0x14003b870

Function at 0x14003c9a0
Capabilities:
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
push r15
lea rbx, [rcx + 0x588]
lea rsi, [rcx + 0x1c58]
xor edi, edi
lea r14, [rcx + 0x1018]
lea r15, [rcx + 0x1038]
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rsi + 2]
mov r8d, edi
mov r10d, edi
shr rax, 4
and r8d, 1
shr r10d, 1
mov edx, r10d
mov ecx, r8d
add r8d, 2
neg ecx
and edx, 1
shr r10d, 1
shr rcx, 4
lea r9d, [rdx + r8*2]
and r10d, 1
and ecx, 0x7f
inc edi
lea r15, [r15 + 4]
xor rcx, rax
mov eax, edx
lea r14, [r14 + 4]
mov r11d, dword [rbx + rcx*4]
movzx ecx, word [rsi + r8*2]
neg eax
shr rax, 4
shr rcx, 4
and eax, 0x7f
xor rcx, rax
mov eax, r10d
add r11d, dword [rbx + rcx*4]
movzx ecx, word [rsi + r9*2]
neg eax
shr rax, 4
shr rcx, 4
and eax, 0x7f
xor rcx, rax
lea eax, [r10 + r9*2]
add r11d, dword [rbx + rcx*4]
movzx eax, word [rsi + rax*2]
mov edx, eax
shr rax, 4
mov ecx, dword [rbx + rax*4]
xor rdx, 0x7f0
add ecx, r11d
shr rdx, 4
mov dword [r14 - 4], ecx
mov ecx, dword [rbx + rdx*4]
add ecx, r11d
mov dword [r15 - 4], ecx
cmp edi, 8
jb 0x14003c9e0
mov rbx, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
pop r15
ret
Function at 0x14003ed40
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov r10d, 0x100
xor ebx, ebx
mov r11d, r8d
or edx, r10d
mov rdi, rcx
nop dword [rax + rax]
add r11d, r11d
mov r8d, edx
mov ecx, edx
shr ecx, 7
shr r8d, 8
mov eax, r10d
and ecx, 1
and eax, r11d
add edx, edx
neg ecx
add eax, r10d
shr rcx, 4
add r8d, eax
movzx r8d, word [rdi + r8*2]
and ecx, 0x7f
shr r8, 4
xor r8, rcx
mov ecx, edx
add ebx, dword [r9 + r8*4]
xor ecx, r11d
not ecx
and r10d, ecx
cmp edx, 0x10000
jb 0x14003ed60
mov rdi, qword [rsp + 0x10]
mov eax, ebx
mov rbx, qword [rsp + 8]
ret

Function at 0x1400402d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx + 0xcc], 0
mov rbp, rcx
jne 0x1400402fd
call fcn.14003cab0
mov rcx, rbp
call fcn.14003c9a0
mov ecx, dword [rbp + 0xc4]
mov eax, dword [rbp + 0x48]
mov ebx, 1
dec eax
mov edx, ebx
lea r8, [rbp + 0x22d8]
shl edx, cl
lea r9, [rbp + 0x588]
lea rcx, [rbp + 0x6ad8]
mov dword [rbp + 0xaedc], eax
mov dword [rbp + 0x6ad8], eax
mov dword [rbp + 0xec], 0x40
call fcn.14003e9b0
mov ecx, dword [rbp + 0xc4]
lea r8, [rbp + 0x26d8]
shl ebx, cl
lea r9, [rbp + 0x588]
lea rcx, [rbp + 0xaedc]
mov edx, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.14003e9b0

Function at 0x140040bd0
Capabilities:
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
mov rbx, r9
mov rdi, r8
mov ebp, edx
mov rsi, rcx
xor r11d, r11d
mov r9d, r11d
mov r10d, r11d
add r11d, 2
shr r9d, 2
shr r10d, 1
lea rdi, [rdi + 8]
lea eax, [r9 + 2]
mov ecx, r10d
movzx edx, word [rsi + rax*2]
movzx eax, word [rsi + 2]
and ecx, 1
neg ecx
shr rdx, 4
shr rax, 4
shr rcx, 4
and ecx, 0x7f
xor rdx, rcx
mov ecx, r9d
mov r8d, dword [rbx + rdx*4]
neg ecx
shr rcx, 4
and ecx, 0x7f
xor rcx, rax
lea eax, [r10 + 4]
add r8d, dword [rbx + rcx*4]
movzx eax, word [rsi + rax*2]
add r8d, ebp
mov edx, eax
shr rax, 4
mov ecx, dword [rbx + rax*4]
xor rdx, 0x7f0
add ecx, r8d
shr rdx, 4
mov dword [rdi - 8], ecx
mov ecx, dword [rbx + rdx*4]
add ecx, r8d
mov dword [rdi - 4], ecx
cmp r11d, 8
jb 0x140040bf2
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
Function at 0x140043300
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov qword [rcx + 0x480], 0xffffffffffffffff
mov dword [rcx + 0x3c], 0x20
mov byte [rcx + 0x21], 1
mov dword [rcx + 0x5c], 4
lea r8, [rcx + 0x78]
mov qword [rcx + 0x40], rdx
mov word [rcx + 0x22], dx
mov qword [rcx + 0x28], rdx
nop
mov ecx, edx
mov eax, edx
inc edx
shr eax, 1
and ecx, 1
lea r8, [r8 + 4]
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [r8 - 4], eax
cmp edx, 0x100
jb 0x140043330
ret
Function at 0x14004f7e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push r15
sub rsp, 8
mov r14, rdx
mov r15, rcx
cmp r8, 5
jae 0x14004f7ff
xor eax, eax
add rsp, 8
pop r15
pop r14
ret
mov r9d, dword [rcx + 0x4e00]
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rbp
mov ebp, dword [rcx + 0x4e04]
mov qword [rsp + 0x30], rsi
mov rsi, qword [rcx + 0x4df8]
lea rbx, [r8 - 4]
mov qword [rsp + 0x38], rdi
xor r10d, r10d
mov qword [rsp], r12
lea r12, [0x140000000]
add rbx, rdx
nop dword [rax]
lea rax, [r10 + r14]
cmp rax, rbx
jae 0x14004f863
nop dword [rax]
movzx ecx, byte [rax]
and cl, 0xfe
cmp cl, 0xe8
je 0x14004f863
inc rax
cmp rax, rbx
jb 0x14004f850
mov r10, rax
sub r10, r14
cmp rax, rbx
jae 0x14004f987
mov rcx, r10
sub rcx, rsi
cmp rcx, 3
jbe 0x14004f8a0
xor r9d, r9d
movzx edx, byte [rax + 4]
mov rsi, r10
lea ecx, [rdx - 1]
cmp cl, 0xfd
ja 0x14004f8e6
and r9d, 3
add r9d, r9d
or r9d, 1
inc r10
jmp 0x14004f840
dec ecx
shl r9d, cl
and r9d, 7
je 0x14004f881
movzx ecx, byte [r9 + r12 + 0x9cb28]
mov rdx, rax
sub rdx, rcx
cmp byte [r9 + r12 + 0x9cb20], 0
movzx ecx, byte [rdx + 4]
je 0x14004f8d0
inc cl
test cl, 0xfe
jne 0x14004f881
and r9d, 3
mov rsi, r10
add r9d, r9d
or r9d, 1
inc r10
jmp 0x14004f840
movzx ecx, byte [rax + 3]
movzx r8d, dl
shl r8d, 8
or r8d, ecx
movzx ecx, byte [rax + 2]
shl r8d, 8
or r8d, ecx
movzx ecx, byte [rax + 1]
shl r8d, 8
or r8d, ecx
sub r8d, r10d
sub r8d, ebp
test r9d, r9d
je 0x14004f958
movzx r11d, byte [r9 + r12 + 0x9cb28]
shl r11d, 3
neg r11d
nop word [rax + rax]
lea ecx, [r11 + 0x18]
mov edx, r8d
shr edx, cl
inc dl
test dl, 0xfe
jne 0x14004f958
lea ecx, [r11 + 0x20]
mov edx, 1
shl edx, cl
dec edx
xor r8d, edx
sub r8d, r10d
sub r8d, ebp
jmp 0x14004f930
mov ecx, r8d
mov byte [rax + 1], r8b
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [rax + 4], cl
mov ecx, r8d
shr ecx, 0x10
mov byte [rax + 3], cl
mov ecx, r8d
shr ecx, 8
add r10, 5
mov byte [rax + 2], cl
jmp 0x14004f840
add dword [r15 + 0x4e04], r10d
mov r12, qword [rsp]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
mov qword [r15 + 0x4df8], rsi
mov rsi, qword [rsp + 0x30]
mov dword [r15 + 0x4e00], r9d
mov rax, r10
add rsp, 8
pop r15
pop r14
ret

Function at 0x1400564f0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r8d, 0x24
mov rbx, rdx
mov edi, ecx
lea ecx, [r8 - 0x22]
lea rdx, str.Fatal_Internal_Error_in_libarchive:
call fcn.14005d960
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rbx + r8], 0
jne 0x140056520
mov rdx, rbx
mov ecx, 2
call fcn.14005d960
mov r8d, 1
lea rdx, reloc.WS2_32.dll_ioctlsocket
lea ecx, [r8 + 1]
call fcn.14005d960
mov ecx, edi
call qword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x140057e00
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov r8, qword [rdx + 8]
mov rdx, qword [rdx]
call fcn.140057900
test rax, rax
jne 0x140057e28
lea rdx, str.Out_of_memory
lea ecx, [rax + 1]
add rsp, 0x28
jmp fcn.1400564f0
add rsp, 0x28
ret
Function at 0x14005d260
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov eax, 0xffffffff
mov rbx, r8
mov rdi, rdx
cmp r8, rax
cmova rbx, rax
test ecx, ecx
jns 0x14005d29b
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 9
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
test rbx, rbx
jne 0x14005d2ad
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.msvcrt.dll__get_osfhandle]
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14005d337
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
jne 0x14005d2fc
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], reloc.WS2_32.dll_inet_addr
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp eax, 0x6d
je 0x14005d2a0
cmp eax, 5
jne 0x14005d321
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 9
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, eax
call fcn.14005cea0
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14005d960
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov eax, 0xffffffff
mov rbx, r8
mov rdi, rdx
cmp r8, rax
cmova rbx, rax
test ecx, ecx
jns 0x14005d99b
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 9
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.msvcrt.dll__get_osfhandle]
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14005d9fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x14005d9e8
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 9
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, eax
call fcn.14005cea0
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140066080
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push r12
push r13
push r14
push r15
mov esi, dword [rcx + 0x4804]
mov ebp, edx
lea r9, [0x1400a5900]
mov dword [rcx + rbp*4 + 0x4808], esi
movzx edx, word [rcx]
mov r11, rcx
movzx ecx, word [rcx + 2]
mov eax, edx
xor rdx, 0x7f0
shr rax, 4
shr rdx, 4
lea r12, [r11 + 0x404]
movzx r14d, byte [rax + r9]
movzx r8d, byte [rdx + r9]
mov eax, ecx
shr rax, 4
xor rcx, 0x7f0
mov dword [rsp + 0x38], r14d
movzx r15d, byte [rax + r9]
shr rcx, 4
movzx r13d, byte [rcx + r9]
add r15d, r8d
xor r9d, r9d
imul rax, rbp, 0x440
add r12, rax
add r13d, r8d
test esi, esi
je 0x14006627a
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rdi
mov rdi, r12
cmp r9d, 8
jae 0x140066190
xor r10d, r10d
lea r8d, [r9 + 8]
lea rbx, [rbp*8]
lea r14, [0x1400a5900]
nop dword [rax]
nop dword [rax + rax]
mov ecx, r8d
shr r8d, 1
and ecx, 1
mov eax, r8d
add rax, rbx
movzx edx, word [r11 + rax*2 + 4]
mov eax, ecx
neg eax
shr rdx, 4
shr rax, 4
and eax, 0x7f
xor rdx, rax
movzx eax, byte [rdx + r14]
add r10d, eax
cmp r8d, 1
jne 0x140066140
mov eax, dword [rsp + 0x38]
inc r9d
add rdi, 4
add eax, r10d
mov dword [rdi - 4], eax
cmp r9d, esi
jb 0x140066118
jmp 0x140066270
cmp r9d, esi
jae 0x140066270
lea rdi, [r12 + r9*4]
lea r14, [0x1400a5900]
cmp r9d, 0x10
jae 0x14006620d
xor r10d, r10d
mov r8d, r9d
lea rbx, [rbp*8]
nop dword [rax + rax]
mov ecx, r8d
shr r8d, 1
and ecx, 1
mov eax, r8d
add rax, rbx
movzx edx, word [r11 + rax*2 + 0x104]
mov eax, ecx
neg eax
shr rdx, 4
shr rax, 4
and eax, 0x7f
xor rdx, rax
movzx eax, byte [rdx + r14]
add r10d, eax
cmp r8d, 1
jne 0x1400661c0
lea eax, [r10 + r15]
inc r9d
add rdi, 4
mov dword [rdi - 4], eax
cmp r9d, esi
jb 0x1400661a4
jmp 0x140066270
cmp r9d, esi
jae 0x140066270
lea rbx, [r12 + r9*4]
nop word [rax + rax]
xor r10d, r10d
lea eax, [r9 + 0xf0]
nop word [rax + rax]
mov ecx, eax
shr eax, 1
movzx r8d, word [r11 + rax*2 + 0x204]
and ecx, 1
neg ecx
shr r8, 4
shr rcx, 4
and ecx, 0x7f
xor r8, rcx
movzx ecx, byte [r8 + r14]
add r10d, ecx
cmp eax, 1
jne 0x140066230
lea eax, [r10 + r13]
inc r9d
add rbx, 4
mov dword [rbx - 4], eax
cmp r9d, esi
jb 0x140066220
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x140066290
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov rsi, qword [rdx]
mov r11d, dword [rdx + 0x18]
mov ebp, dword [rdx + 0x1c]
mov rax, rcx
mov r10d, r8d
mov ecx, r11d
mov edx, dword [rax + 0xb98]
sub ecx, ebp
mov r9d, 8
movzx edi, byte [rcx + rsi]
dec ecx
and edx, r10d
movzx r8d, byte [rcx + rsi]
mov ecx, r9d
lea rbx, [rax + 0xb9c]
sub cl, byte [rax + 0xb94]
shr r8d, cl
mov ecx, dword [rax + 0xb94]
shl edx, cl
add r8d, edx
lea rdx, [r8 + r8*2]
shl rdx, 9
add rbx, rdx
cmp dword [rax + 0x2e0], 7
jge 0x14006634c
lea r10d, [r9 - 7]
movzx r11d, dil
nop dword [rax]
dec r9d
mov r8d, r11d
movzx ecx, r9b
shr r8d, cl
mov rcx, qword [rax + 0x18]
and r8d, 1
mov dword [rax + rcx*4 + 0x28], r8d
mov ecx, r10d
lea rdx, [rbx + rcx*2]
mov rcx, qword [rax + 0x18]
lea r10d, [r8 + r10*2]
mov qword [rax + rcx*8 + 0x110], rdx
inc qword [rax + 0x18]
test r9d, r9d
jne 0x140066310
jmp 0x1400663c0
sub r11d, dword [rax + 0x2e4]
mov r9d, 0x100
movzx r8d, dil
sub r11d, ebp
dec r11d
add r8d, r9d
movzx r10d, byte [r11 + rsi]
nop dword [rax + rax]
mov rcx, qword [rax + 0x18]
mov edx, r8d
add r10d, r10d
shr edx, 7
and edx, 1
mov dword [rax + rcx*4 + 0x28], edx
mov ecx, r9d
mov edx, r8d
and ecx, r10d
shr edx, 8
add r8d, r8d
add ecx, r9d
add edx, ecx
mov rcx, qword [rax + 0x18]
lea rdx, [rbx + rdx*2]
mov qword [rax + rcx*8 + 0x110], rdx
inc qword [rax + 0x18]
mov ecx, r10d
xor ecx, r8d
not ecx
and r9d, ecx
cmp r8d, 0x10000
jb 0x140066370
mov ecx, dword [rax + 0x2e0]
cmp ecx, 3
jg 0x1400663d7
mov dword [rax + 0x2e0], 0
jmp 0x1400663ea
cmp ecx, 9
jg 0x1400663e1
add ecx, 0xfffffffd
jmp 0x1400663e4
add ecx, 0xfffffffa
mov dword [rax + 0x2e0], ecx
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret

Function at 0x14006b900
Capabilities:
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
mov rsi, rcx
xor r9d, r9d
lea rdi, [rcx + 0x10e98]
lea rbp, [0x1400a5900]
nop dword [rax + rax]
mov r10d, r9d
mov ebx, 4
xor eax, eax
mov r11d, 1
mov ecx, r11d
mov r8d, r10d
shr r10d, 1
movzx edx, word [rsi + rcx*2 + 0x71e0]
and r8d, 1
mov ecx, r8d
shr rdx, 4
lea r11d, [r8 + r11*2]
neg ecx
shr rcx, 4
and ecx, 0x7f
xor rdx, rcx
movzx ecx, byte [rdx + rbp]
add eax, ecx
dec ebx
jne 0x14006b940
inc r9d
mov dword [rdi], eax
add rdi, 4
cmp r9d, 0x10
jb 0x14006b930
mov rbp, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x20]
mov dword [rsi + 0x10ed8], ebx
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x18]
ret
Function at 0x14006b9a0
Capabilities:
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 r14
push r15
mov r14d, 4
mov r10, rcx
xor edi, edi
lea rbx, [rcx + 0x10290]
lea rsi, [rcx + 0x10694]
lea r15, [0x1400a5900]
mov ebp, r14d
nop dword [rax + rax]
xor r11d, r11d
cmp dword [r10 + 0x10e90], r11d
jbe 0x14006ba44
nop dword [rax]
xor r9d, r9d
lea eax, [r11 + 0x40]
nop word [rax + rax]
mov edx, eax
shr eax, 1
and edx, 1
mov ecx, eax
add rcx, rdi
movzx r8d, word [r10 + rcx*2 + 0x6efc]
mov ecx, edx
neg ecx
shr r8, 4
shr rcx, 4
and ecx, 0x7f
xor r8, rcx
movzx ecx, byte [r8 + r15]
add r9d, ecx
cmp eax, 1
jne 0x14006ba00
mov dword [rbx + r11*4], r9d
inc r11d
cmp r11d, dword [r10 + 0x10e90]
jb 0x14006b9f0
mov edx, recvfrom
cmp dword [r10 + 0x10e90], edx
jbe 0x14006ba6f
mov eax, edx
lea rcx, [rbx + rax*4]
mov eax, edx
inc edx
shr eax, 1
sub eax, 5
shl eax, 4
add dword [rcx], eax
cmp edx, dword [r10 + 0x10e90]
jb 0x14006ba52
mov eax, dword [rbx]
add rsi, 0x200
add rbx, 0x100
mov dword [rsi - 0x204], eax
mov eax, dword [rbx - 0xfc]
add rdi, 0x40
mov dword [rsi - 0x200], eax
mov eax, dword [rbx - 0xf8]
mov dword [rsi - 0x1fc], eax
mov eax, dword [rbx - 0xf4]
mov dword [rsi - 0x1f8], eax
dec rbp
jne 0x14006b9e0
lea rdi, [r10 + 0x108a0]
nop dword [rax]
cmp r14d, 4
ja 0x14006bacb
mov edx, r14d
jmp 0x14006badd
bsr edx, r14d
mov eax, r14d
lea ecx, [rdx - 1]
shr eax, cl
and eax, 1
lea edx, [rax + rdx*2]
mov r9d, edx
mov eax, edx
mov ebx, r14d
and eax, 1
shr r9d, 1
mov r11d, edx
dec r9d
or eax, 2
mov ecx, r9d
shl eax, cl
sub ebx, eax
xor r8d, r8d
mov ebp, eax
lea esi, [r8 + 1]
mov eax, esi
mov edx, ebx
shr ebx, 1
sub rax, r11
and edx, 1
add rax, rbp
lea esi, [rdx + rsi*2]
movzx ecx, word [r10 + rax*2 + 0x70fa]
mov eax, edx
neg eax
shr rcx, 4
shr rax, 4
and eax, 0x7f
xor rcx, rax
movzx eax, byte [rcx + r15]
add r8d, eax
dec r9d
jne 0x14006bb04
mov ecx, dword [r10 + r11*4 + 0x10290]
inc r14d
add rdi, 4
add ecx, r8d
mov dword [rdi - 0x204], ecx
mov ecx, dword [r10 + r11*4 + 0x10390]
add ecx, r8d
mov dword [rdi - 4], ecx
mov ecx, dword [r10 + r11*4 + 0x10490]
add ecx, r8d
mov dword [rdi + 0x1fc], ecx
mov ecx, dword [r10 + r11*4 + 0x10590]
add ecx, r8d
mov dword [rdi + 0x3fc], ecx
cmp r14d, 0x80
jb 0x14006bac0
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov dword [r10 + 0x10e94], r9d
pop r15
pop r14
ret
Function at 0x14006bca0
Capabilities:
Encode data using xor

Disassembly:
push rdi
mov r10d, dword [rcx + 0xb94]
mov r11, rcx
mov ecx, 8
mov eax, dword [r11 + 0xb98]
sub ecx, r10d
shr r8d, cl
and eax, edx
mov ecx, r10d
shl eax, cl
xor r10d, r10d
add r8d, eax
lea rdi, [r8 + r8*2]
shl rdi, 9
add rdi, r11
lea r11, [0x1400a5900]
test r9b, r9b
jne 0x14006bd26
mov ecx, dword [rsp + 0x38]
add ecx, 0x100
nop dword [rax]
mov r8d, ecx
shr ecx, 1
movzx r9d, word [rdi + rcx*2 + 0xb9c]
and r8d, 1
neg r8d
shr r9, 4
shr r8, 4
and r8d, 0x7f
xor r9, r8
movzx edx, byte [r9 + r11]
add r10d, edx
cmp ecx, 1
jne 0x14006bcf0
mov eax, r10d
pop rdi
ret
mov r8d, dword [rsp + 0x38]
mov r9d, 0x100
mov qword [rsp + 0x10], rbx
mov ebx, dword [rsp + 0x30]
add r8d, r9d
nop dword [rax]
mov ecx, r8d
add ebx, ebx
mov eax, r9d
shr ecx, 8
and eax, ebx
add eax, r9d
add ecx, eax
movzx edx, word [rdi + rcx*2 + 0xb9c]
mov ecx, r8d
add r8d, r8d
shr ecx, 7
shr rdx, 4
and ecx, 1
neg ecx
shr rcx, 4
and ecx, 0x7f
xor rdx, rcx
movzx eax, byte [rdx + r11]
add r10d, eax
mov eax, ebx
xor eax, r8d
not eax
and r9d, eax
cmp r8d, 0x10000
jb 0x14006bd40
mov rbx, qword [rsp + 0x10]
mov eax, r10d
pop rdi
ret
Function at 0x140071110
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov eax, dword [rcx + 0x60]
movzx r9d, byte [rcx + 0x5c]
test eax, eax
jle 0x140071167
mov r8d, dword [rcx + 0x288]
mov qword [rsp], rbx
movzx r11d, r9b
lea rbx, [0x14089e9d0]
mov r10d, eax
nop dword [rax]
mov edx, r8d
mov eax, r8d
shr rdx, 0x18
shl eax, 8
xor rdx, r11
mov r8d, dword [rbx + rdx*4]
xor r8d, eax
mov dword [rcx + 0x288], r8d
dec r10
jne 0x140071140
mov rbx, qword [rsp]
mov eax, dword [rcx + 0x5c]
mov byte [rax + rcx + 0x80], 1
movsxd r8, dword [rcx + 0x60]
mov edx, r8d
dec edx
je 0x140071206
dec edx
je 0x1400711f7
dec edx
je 0x1400711e8
mov byte [r8 + rcx + 0x7c], 1
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax], r9b
inc dword [rcx + 0x6c]
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax], r9b
inc dword [rcx + 0x6c]
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax], r9b
inc dword [rcx + 0x6c]
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax], r9b
inc dword [rcx + 0x6c]
movzx r8d, byte [rcx + 0x60]
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
sub r8b, 4
mov byte [rdx + rax], r8b
inc dword [rcx + 0x6c]
add rsp, 8
ret
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax], r9b
inc dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
movsxd rdx, dword [rcx + 0x6c]
mov byte [rdx + rax], r9b
inc dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
movsxd rdx, dword [rcx + 0x6c]
mov byte [rdx + rax], r9b
inc dword [rcx + 0x6c]
add rsp, 8
ret
Function at 0x14007bbc0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rbp
push rsi
push r14
sub rsp, 0x28
mov ebp, r9d
mov r14, r8
mov ebx, edx
mov rsi, rcx
test r8, r8
je 0x14007bcad
cmp word [r8], 0
je 0x14007bcad
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r13
xor r13d, r13d
test edx, edx
mov qword [rsp + 0x20], r15
cmovs ebx, r13d
test rcx, rcx
je 0x14007bc2d
cmp word [rcx], r13w
je 0x14007bc2d
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rcx + rdi*2], r13w
jne 0x14007bc15
cmp edi, ebx
cmovg edi, ebx
sub ebx, edi
jns 0x14007bc30
mov ebx, r13d
jmp 0x14007bc30
mov edi, r13d
call fcn.140019f20
movzx r12d, word [r14]
lea ecx, [rdi + rbx]
mov edx, ebp
mov r15d, eax
call fcn.140019f90
mov r14, rax
test r15d, r15d
je 0x14007bc59
mov ecx, r15d
call fcn.14001a0d0
mov rsi, rax
mov r15, qword [rsp + 0x20]
test edi, edi
jle 0x14007bc73
movsxd r8, edi
mov rdx, rsi
mov rcx, r14
add r8, r8
call sub.msvcrt.dll_memmove
movsxd rax, edi
lea r8, [r14 + rax*2]
test ebx, ebx
je 0x14007bc90
mov rdi, r8
mov edx, ebx
movzx eax, r12w
mov ecx, ebx
lea r8, [r8 + rdx*2]
rep stosw word [rdi], ax
mov r12, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
mov word [r8], r13w
mov r13, qword [rsp + 0x60]
add rsp, 0x28
pop r14
pop rsi
pop rbp
pop rbx
ret
mov ecx, r9d
add rsp, 0x28
pop r14
pop rsi
pop rbp
pop rbx
jmp fcn.14001a1b0

Function at 0x14007bd80
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push r15
sub rsp, 0x28
mov ebp, r9d
mov edi, edx
mov rsi, rcx
test r8, r8
je 0x14007be6a
movzx r15d, word [r8]
test r15w, r15w
je 0x14007be6a
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r13
xor r13d, r13d
test edx, edx
mov qword [rsp + 0x20], r14
cmovs edi, r13d
test rcx, rcx
je 0x14007bded
cmp word [rcx], r13w
je 0x14007bded
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rcx + rbx*2], r13w
jne 0x14007bdd5
cmp ebx, edi
cmovg ebx, edi
sub edi, ebx
jns 0x14007bdf0
mov edi, r13d
jmp 0x14007bdf0
mov ebx, r13d
call fcn.140019f20
lea ecx, [rbx + rdi]
mov edx, ebp
mov r12d, eax
call fcn.140019f90
mov r14, rax
test r12d, r12d
je 0x14007be15
mov ecx, r12d
call fcn.14001a0d0
mov rsi, rax
mov r12, qword [rsp + 0x58]
test ebx, ebx
je 0x14007be33
movsxd rcx, edi
movsxd r8, ebx
mov rdx, rsi
lea rcx, [r14 + rcx*2]
add r8, r8
call sub.msvcrt.dll_memmove
test edi, edi
je 0x14007be49
mov edx, edi
mov rdi, r14
movzx eax, r15w
mov ecx, edx
lea r14, [r14 + rdx*2]
rep stosw word [rdi], ax
movsxd rax, ebx
mov rbx, qword [rsp + 0x50]
mov word [r14 + rax*2], r13w
mov r14, qword [rsp + 0x20]
mov r13, qword [rsp + 0x60]
add rsp, 0x28
pop r15
pop rdi
pop rsi
pop rbp
ret
mov ecx, r9d
add rsp, 0x28
pop r15
pop rdi
pop rsi
pop rbp
jmp fcn.14001a1b0