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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.1400a1050
xor r10d, r10d
lea edx, [rax*4]
mov r11d, eax
movsxd r9, edx
test edx, edx
jle 0x1400a0e99
lea r8, [rbx + 8]
lea rcx, [rbx + 8]
lea r8, [r8 + r9*4]
nop
mov eax, dword [r8 - 8]
mov edx, dword [rcx - 8]
add r10, 4
mov dword [rcx - 8], eax
mov eax, dword [r8 - 4]
mov dword [r8 - 8], edx
mov edx, dword [rcx - 4]
mov dword [rcx - 4], eax
mov eax, dword [r8]
mov dword [r8 - 4], edx
mov edx, dword [rcx]
mov dword [rcx], eax
mov eax, dword [r8 + 4]
mov dword [r8], edx
mov edx, dword [rcx + 4]
mov dword [rcx + 4], eax
sub r9, 4
mov dword [r8 + 4], edx
lea r8, [r8 - 0x10]
lea rcx, [rcx + 0x10]
cmp r10, r9
jl 0x1400a0e50
cmp r11d, 1
jle 0x1400a103d
mov qword [rsp + 0x30], rdi
add rbx, 2
lea r10d, [r11 - 1]
lea rdi, [0x140000000]
nop word [rax + rax]
mov r8d, dword [rbx + 0xe]
lea rbx, [rbx + 0x10]
mov eax, r8d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x17f6d0]
movzx eax, byte [rbx - 1]
movzx ecx, byte [rdi + rax*4 + 0x17f6d0]
mov r9d, dword [rdi + rdx*4 + 0x17fad0]
movzx eax, r8b
xor r9d, dword [rdi + rcx*4 + 0x1802d0]
movzx ecx, byte [rdi + rax*4 + 0x17f6d0]
movzx eax, byte [rbx]
xor r9d, dword [rdi + rcx*4 + 0x1806d0]
movzx ecx, byte [rdi + rax*4 + 0x17f6d0]
movzx eax, byte [rbx + 3]
movzx edx, byte [rdi + rax*4 + 0x17f6d0]
xor r9d, dword [rdi + rcx*4 + 0x17fed0]
movzx eax, byte [rbx + 4]
movzx ecx, byte [rdi + rax*4 + 0x17f6d0]
mov r8d, dword [rdi + rdx*4 + 0x1802d0]
mov dword [rbx - 2], r9d
xor r8d, dword [rdi + rcx*4 + 0x17fed0]
mov r9d, dword [rbx + 2]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x17f6d0]
movzx eax, r9b
mov r9d, dword [rbx + 6]
xor r8d, dword [rdi + rcx*4 + 0x17fad0]
movzx ecx, byte [rdi + rax*4 + 0x17f6d0]
movzx eax, byte [rbx + 7]
xor r8d, dword [rdi + rcx*4 + 0x1806d0]
movzx edx, byte [rdi + rax*4 + 0x17f6d0]
movzx eax, byte [rbx + 8]
movzx ecx, byte [rdi + rax*4 + 0x17f6d0]
mov dword [rbx + 2], r8d
mov r8d, dword [rdi + rdx*4 + 0x1802d0]
xor r8d, dword [rdi + rcx*4 + 0x17fed0]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x17f6d0]
movzx eax, r9b
mov r9d, dword [rbx + 0xa]
xor r8d, dword [rdi + rcx*4 + 0x17fad0]
movzx ecx, byte [rdi + rax*4 + 0x17f6d0]
movzx eax, byte [rbx + 0xb]
xor r8d, dword [rdi + rcx*4 + 0x1806d0]
movzx edx, byte [rdi + rax*4 + 0x17f6d0]
movzx eax, byte [rbx + 0xc]
movzx ecx, byte [rdi + rax*4 + 0x17f6d0]
mov dword [rbx + 6], r8d
mov r8d, dword [rdi + rdx*4 + 0x1802d0]
xor r8d, dword [rdi + rcx*4 + 0x17fed0]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x17f6d0]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x17fad0]
movzx ecx, byte [rdi + rax*4 + 0x17f6d0]
xor r8d, dword [rdi + rcx*4 + 0x1806d0]
mov dword [rbx + 0xa], r8d
dec r10
jne 0x1400a0ec0
mov rdi, qword [rsp + 0x30]
mov eax, r11d
add rsp, 0x20
pop rbx
ret
Function at 0x1400a1560
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov rsi, rdx
mov rbx, r8
mov eax, r9d
cdq
mov r12d, r9d
mov r13, rcx
and edx, 0xf
add eax, edx
mov r8d, eax
and eax, 0xf
sub eax, edx
sar r8d, 4
mov edi, eax
test eax, eax
je 0x1400a15a9
test r8d, r8d
jne 0x1400a15a6
xor eax, eax
add rsp, 0x50
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
dec r8d
mov qword [rsp + 0x80], rbp
mov rbp, qword [rsp + 0xa0]
mov qword [rsp + 0x88], r14
movups xmm0, xmmword [rbp]
movups xmm1, xmm0
movups xmmword [rsp + 0x20], xmm0
test r8d, r8d
je 0x1400a1632
mov qword [rsp + 0x90], r15
mov r14d, r8d
nop dword [rax]
mov edx, dword [r13 + 4]
lea rcx, [r13 + 0xf8]
mov r9, rbx
mov r8, rsi
call fcn.1400a01f0
mov eax, dword [rsp + 0x20]
add rsi, 0x10
xor dword [rbx], eax
mov eax, dword [rsp + 0x24]
add rbx, 0x10
xor dword [rbx - 0xc], eax
mov eax, dword [rsp + 0x28]
xor dword [rbx - 8], eax
mov eax, dword [rsp + 0x2c]
xor dword [rbx - 4], eax
movups xmm0, xmmword [rsi - 0x10]
movups xmm1, xmm0
movups xmmword [rsp + 0x20], xmm0
dec r14
jne 0x1400a15e0
mov r15, qword [rsp + 0x90]
test edi, edi
je 0x1400a1774
movups xmm0, xmmword [rsi]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
lea rcx, [r13 + 0xf8]
movups xmmword [rbp], xmm0
mov edx, dword [r13 + 4]
movups xmmword [rsp + 0x40], xmm0
call fcn.1400a01f0
xor r10d, r10d
test edi, edi
je 0x1400a173f
cmp edi, 0x10
jb 0x1400a16f9
lea r9d, [rdi - 1]
lea r11, [rbx + 0x10]
lea rdx, [rsi + 0x10]
lea eax, [r9 + 0x10]
lea rbp, [rax + rsi]
lea r8, [rax + rbx]
cmp r11, rbp
ja 0x1400a1696
cmp r8, rdx
jae 0x1400a16f9
lea rcx, [rsp + 0x30]
mov eax, r9d
add rcx, rax
cmp r11, rcx
ja 0x1400a16b0
lea rax, [rsp + 0x30]
cmp r8, rax
jae 0x1400a16f9
lea rax, [rsp + 0x30]
cmp rax, rbp
ja 0x1400a16bf
cmp rcx, rdx
jae 0x1400a16f9
mov eax, edi
mov r8d, edi
and eax, 0xf
sub r8d, eax
nop word [rax + rax]
lea edx, [r10 + 0x10]
mov eax, r10d
mov r10d, edx
movdqu xmm0, xmmword [rsp + rax + 0x30]
movdqu xmm1, xmmword [rdx + rsi]
movdqu xmmword [rsp + rax + 0x30], xmm1
pxor xmm0, xmm1
movdqu xmmword [rdx + rbx], xmm0
cmp edx, r8d
jb 0x1400a16d0
cmp r10d, edi
jae 0x1400a173f
lea r8d, [r10 + 0x10]
mov eax, r10d
lea r9, [rsp + 0x30]
mov r11, rbx
add r9, rax
add r8, rsi
sub r11, rsi
sub edi, r10d
mov r10d, edi
nop dword [rax]
movzx eax, byte [r8]
movzx edx, byte [r9]
lea r8, [r8 + 1]
xor dl, al
mov byte [r9], al
lea r9, [r9 + 1]
mov byte [r11 + r8 - 1], dl
dec r10
jne 0x1400a1720
mov edx, dword [r13 + 4]
lea r8, [rsp + 0x30]
lea rcx, [r13 + 0xf8]
mov r9, rbx
call fcn.1400a01f0
mov eax, dword [rsp + 0x20]
xor dword [rbx], eax
mov eax, dword [rsp + 0x24]
xor dword [rbx + 4], eax
mov eax, dword [rsp + 0x28]
xor dword [rbx + 8], eax
mov eax, dword [rsp + 0x2c]
xor dword [rbx + 0xc], eax
jmp 0x1400a1778
movups xmmword [rbp], xmm1
mov r14, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x80]
mov eax, r12d
add rsp, 0x50
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400a24f8
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x1400a256d
call qword [rcx + 0xb0]
mov edx, dword [rbx + 0xf4]
mov dword [rbx + 0x108], edx
mov edx, dword [rbx + 0xf8]
mov rdi, rax
mov dword [rbx + 0x10c], edx
test rax, rax
jne 0x1400a256d
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x1400a2545
xor edx, edx
mov rcx, rbx
call rax
mov rcx, qword [0x1406a23c8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_HeapFree]
mov ecx, dword [0x1406a71a0]
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
and qword [0x1406a71c0], 0
mov rax, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400a257c
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1406a71a0]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [rax + 0x20]

Function at 0x1400a25a0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1406a71a0]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [rax + 0xc8]

Function at 0x1400a25fc
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x1406a71a0]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400a265d
mov rcx, rax
call qword [rax + 0xb8]
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x1400a2635
mov edx, 1
mov rcx, rbx
call rax
mov rcx, qword [0x1406a23c8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_HeapFree]
mov ecx, dword [0x1406a71a0]
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
and qword [0x1406a71c0], 0
add rsp, 0x20
pop rbx
ret

Function at 0x1400a26b4
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov ecx, dword [0x1406a71a0]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov edx, ebx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [rax + 0x40]

Function at 0x1400a26d8
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x30
mov r15d, ecx
mov ecx, dword [0x1406a71a0]
mov edi, r9d
mov esi, r8d
mov r14d, edx
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov edx, dword [rsp + 0x60]
mov rbx, rax
cmp edx, dword [rax + 0x120]
je 0x1400a2727
mov rcx, rax
mov dword [rax + 0x120], edx
call qword [rax + pe_nt_image_headers64]
mov r8d, dword [rbx + 0x104]
mov edx, dword [rbx + 0x100]
mov r9d, esi
mov rcx, rbx
add r8d, r14d
add edx, r15d
mov dword [rsp + 0x60], edi
mov rax, qword [rbx + 8]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
add rsp, 0x30
pop r15
jmp rax
Function at 0x1400a2768
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov ecx, dword [0x1406a71a0]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov dword [rax + 0x11c], ebx
add rsp, 0x20
pop rbx
ret

Function at 0x1400a2788
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov ecx, dword [0x1406a71a0]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov dword [rax + 0x118], ebx
add rsp, 0x20
pop rbx
ret
Function at 0x1400a296c
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov esi, ecx
mov ecx, dword [0x1406a71a0]
mov ebp, r9d
mov ebx, r8d
mov r14d, edx
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov r11d, dword [rax + 0x100]
mov r10d, dword [rax + 0x104]
mov rdi, rax
mov eax, dword [rax + 0xe8]
add esi, r11d
add r14d, r10d
add ebx, r11d
add ebp, r10d
cmp eax, 0xc
ja 0x1400a2b82
mov ecx, 0x110c
bt ecx, eax
jae 0x1400a2b82
mov r15d, ebx
mov r12d, ebp
mov dword [rdi + 0x1a8], esi
sub r15d, esi
sub r12d, r14d
mov dword [rdi + 0x1ac], r14d
mov ecx, r12d
mov eax, r15d
mov dword [rdi + 0x1b0], ebx
mov dword [rdi + 0x1b4], ebp
imul ecx, r12d
imul eax, r15d
add ecx, eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
call sub.msvcrt.dll_sqrtf
movss dword [rdi + 0x1b8], xmm0
cmp r14d, ebp
jne 0x1400a2a41
lea rax, [0x1400a28cc]
lea rcx, [0x1400a2898]
cmp esi, ebx
cmovle rax, rcx
jmp 0x1400a2b7b
cmp esi, ebx
jne 0x1400a2a58
lea rax, [0x1400a2938]
lea rcx, [0x1400a2900]
cmp r14d, ebp
jmp 0x1400a2a38
mov ecx, r12d
call sub.msvcrt.dll_abs
mov ecx, r15d
mov ebx, eax
call sub.msvcrt.dll_abs
mov edx, 1
cmp eax, ebx
jl 0x1400a2a7c
and dword [rdi + 0x1c0], 0
jmp 0x1400a2aca
mov eax, dword [rdi + 0x1ac]
mov dword [rdi + 0x1c0], edx
xor dword [rdi + 0x1a8], eax
mov eax, dword [rdi + 0x1a8]
xor dword [rdi + 0x1ac], eax
mov eax, dword [rdi + 0x1ac]
xor dword [rdi + 0x1a8], eax
mov eax, dword [rdi + 0x1b4]
xor dword [rdi + 0x1b0], eax
mov eax, dword [rdi + 0x1b0]
xor dword [rdi + 0x1b4], eax
mov eax, dword [rdi + 0x1b4]
xor dword [rdi + 0x1b0], eax
mov ecx, dword [rdi + 0x1a8]
mov eax, dword [rdi + 0x1b0]
cmp ecx, eax
jge 0x1400a2ae3
and dword [rdi + 0x1bc], 0
jmp 0x1400a2b27
xor eax, ecx
mov dword [rdi + 0x1bc], edx
xor dword [rdi + 0x1b0], eax
mov dword [rdi + 0x1a8], eax
mov eax, dword [rdi + 0x1b0]
xor dword [rdi + 0x1a8], eax
mov eax, dword [rdi + 0x1b4]
xor dword [rdi + 0x1ac], eax
mov eax, dword [rdi + 0x1ac]
xor dword [rdi + 0x1b4], eax
mov eax, dword [rdi + 0x1b4]
xor dword [rdi + 0x1ac], eax
mov eax, dword [rdi + 0x1b4]
sub eax, dword [rdi + 0x1ac]
movd xmm1, eax
mov eax, dword [rdi + 0x1b0]
sub eax, dword [rdi + 0x1a8]
movd xmm0, eax
lea rax, [0x1400a27a8]
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
movss dword [rdi + 0x1c4], xmm1
movsd xmm1, qword [0x140180f10]
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movss dword [rdi + 0x1c8], xmm0
mov qword [rdi + 0x128], rax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400a2ba4
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r15d, ecx
mov ecx, dword [0x1406a71a0]
mov ebx, r9d
mov edi, r8d
mov ebp, edx
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
add r15d, dword [rax + 0x100]
add ebp, dword [rax + 0x104]
mov rsi, rax
test edi, edi
jns 0x1400a2bf1
add r15d, edi
neg edi
test ebx, ebx
jns 0x1400a2bf9
add ebp, ebx
neg ebx
mov r14d, dword [rsp + 0x80]
lea eax, [r14 + r14]
cmp eax, edi
jle 0x1400a2c13
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov r14d, eax
mov r12d, dword [rsp + 0x88]
lea ecx, [r12 + r12]
cmp ecx, ebx
jle 0x1400a2c2d
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov r12d, eax
mov edx, dword [rsi + 0x118]
cmp edx, dword [rsi + 0x120]
je 0x1400a2c4a
mov rcx, rsi
mov dword [rsi + 0x120], edx
call qword [rsi + pe_nt_image_headers64]
mov dword [rsp + 0x30], r12d
mov r9d, edi
mov r8d, ebp
mov edx, r15d
mov rcx, rsi
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], ebx
call qword [rsi + reloc.WS2_32.dll_recv]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret

Function at 0x1400a2c88
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x30
mov r15d, ecx
mov ecx, dword [0x1406a71a0]
mov edi, r9d
mov esi, r8d
mov r14d, edx
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov edx, dword [rax + 0x118]
mov rbx, rax
cmp edx, dword [rax + 0x120]
je 0x1400a2cd9
mov rcx, rax
mov dword [rax + 0x120], edx
call qword [rax + pe_nt_image_headers64]
mov r8d, dword [rbx + 0x104]
mov edx, dword [rbx + 0x100]
mov r9d, esi
mov rcx, rbx
add r8d, r14d
add edx, r15d
mov dword [rsp + 0x20], edi
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret

Function at 0x1400a2d14
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1406a71a0]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov ecx, dword [rax + 0xe8]
cmp ecx, 0xc
ja 0x1400a2d4a
mov edx, 0x110c
bt edx, ecx
jae 0x1400a2d4a
test rbx, rbx
je 0x1400a2d4a
mov qword [rax + 0x130], rbx
add rsp, 0x20
pop rbx
ret

Function at 0x1400a2d50
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1406a71a0]
mov ebx, r8d
mov edi, edx
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rdx, rsi
mov r9d, dword [rax + 0x104]
mov r8d, dword [rax + 0x100]
mov rcx, rax
add r9d, ebx
add r8d, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [rax + 0x48]
Function at 0x1400a2da0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
mov ecx, dword [0x1406a71a0]
mov ebx, edx
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rcx, rax
mov r8d, dword [rax + 0x104]
mov edx, dword [rax + 0x100]
add r8d, ebx
add edx, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [rax + 0xa8]

Function at 0x1400a2de0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, ecx
mov ecx, dword [0x1406a71a0]
mov esi, r8d
mov ebx, edx
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov r9d, esi
mov r8d, dword [rax + 0x104]
mov edx, dword [rax + 0x100]
mov rcx, rax
add r8d, ebx
add edx, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [rax + 0xa0]

Function at 0x1400a2e30
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r15d, ecx
mov ecx, dword [0x1406a71a0]
mov ebx, r9d
mov edi, r8d
mov ebp, edx
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
add r15d, dword [rax + 0x100]
add ebp, dword [rax + 0x104]
mov rsi, rax
test edi, edi
jns 0x1400a2e7d
add r15d, edi
neg edi
test ebx, ebx
jns 0x1400a2e85
add ebp, ebx
neg ebx
mov r14d, dword [rsp + 0x80]
lea eax, [r14 + r14]
cmp eax, edi
jle 0x1400a2e9f
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov r14d, eax
mov r12d, dword [rsp + 0x88]
lea ecx, [r12 + r12]
cmp ecx, ebx
jle 0x1400a2eb9
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov r12d, eax
mov edx, dword [rsp + 0x90]
cmp edx, dword [rsi + 0x120]
je 0x1400a2ed7
mov rcx, rsi
mov dword [rsi + 0x120], edx
call qword [rsi + pe_nt_image_headers64]
mov dword [rsp + 0x90], r12d
mov r9d, edi
mov r8d, ebp
mov edx, r15d
mov rcx, rsi
mov dword [rsp + 0x88], r14d
mov dword [rsp + 0x80], ebx
mov rax, qword [rsi + 0x10]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
jmp rax

Function at 0x1400a2f20
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.DLL_TlsAlloc]
mov dword [0x1406a71a0], eax
add rsp, 0x28
ret
Function at 0x1400a2fa8
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rcx, qword [0x1406a23c8]
mov edx, 8
mov r8d, 0x250
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ecx, dword [0x1406a71a0]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov qword [0x1406a71c0], rdi
and dword [rdi + 0x11c], 0
or eax, 0xffffffff
mov edx, ebx
mov rcx, rdi
mov dword [rdi + 0x118], 0xffffff
mov dword [rdi + 0xe8], 2
mov dword [rdi + 0xec], 0x3f
mov dword [rdi + 0x120], eax
mov dword [rdi + 0x124], eax
call fcn.1400a7e30
mov rbx, qword [rsp + 0x30]
lea rax, [0x1400a3e60]
mov qword [rdi + 0xb0], rax
lea rax, [0x1400a3ec4]
mov qword [rdi + 0xb8], rax
lea rax, [fcn.1400a3904]
mov qword [rdi + 0x20], rax
lea rax, [0x1400a37b4]
mov qword [rdi + 0x60], rax
lea rax, [0x1400a3f68]
mov qword [rdi + 0xc8], rax
lea rax, [0x1400a3f10]
mov qword [rdi + 0xc0], rax
lea rax, [0x1400a3440]
mov qword [rdi + 0x68], rax
lea rax, [0x1400a33e4]
mov qword [rdi + 0x48], rax
lea rax, [0x1400a3410]
mov qword [rdi + 0x50], rax
lea rax, [0x1400a3294]
mov qword [rdi + 0x58], rax
lea rax, [0x1400a3c58]
mov qword [rdi + 0x88], rax
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x1400a583c
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x1406a23c8]
mov edx, 8
mov r8d, 0x1c0
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ecx, dword [0x1406a71a0]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov qword [0x1406a71c0], rbx
and dword [rbx + 0x11c], 0
or eax, 0xffffffff
mov dword [rbx + 0x118], 0xffffff
mov dword [rbx + 0xe8], 1
mov dword [rbx + 0x120], eax
mov dword [rbx + 0x124], eax
lea rax, [0x1400a442c]
mov qword [rbx], rax
lea rax, [0x1400a445c]
mov dword [rbx + 0xec], 7
mov qword [rbx + 8], rax
lea rax, [0x1400a5584]
mov qword [rbx + 0x10], rax
lea rax, [0x1400a4504]
mov qword [rbx + 0x18], rax
lea rax, [0x1400a4be4]
mov qword [rbx + 0x20], rax
lea rax, [0x1400a4b74]
mov qword [rbx + 0x28], rax
lea rax, [0x1400a4bbc]
mov qword [rbx + 0x30], rax
lea rax, [0x1400a4bd0]
mov qword [rbx + 0x38], rax
lea rax, [fcn.1400a4c58]
mov qword [rbx + 0x40], rax
lea rax, [0x1400a4774]
mov qword [rbx + 0x48], rax
lea rax, [fcn.1400a478c]
mov qword [rbx + 0x50], rax
lea rax, [0x1400a4610]
mov qword [rbx + 0x58], rax
lea rax, [0x1400a4adc]
mov qword [rbx + 0x60], rax
lea rax, [0x1400a49f0]
mov qword [rbx + 0x68], rax
lea rax, [0x1400a4cf4]
mov qword [rbx + 0x70], rax
lea rax, [0x1400a4e38]
mov qword [rbx + 0x78], rax
lea rax, [0x1400a4f24]
mov qword [rbx + 0x80], rax
lea rax, [0x1400a4fdc]
mov qword [rbx + 0x88], rax
lea rax, [0x1400a5134]
mov qword [rbx + 0x90], rax
lea rax, [0x1400a51b4]
mov qword [rbx + 0x98], rax
lea rax, [0x1400a52a8]
mov qword [rbx + 0xa0], rax
lea rax, [0x1400a5494]
mov qword [rbx + 0xa8], rax
lea rax, [0x1400a560c]
mov qword [rbx + 0xb0], rax
lea rax, [0x1400a56f4]
mov qword [rbx + 0xb8], rax
lea rax, [0x1400a5790]
mov qword [rbx + 0xc0], rax
lea rax, [0x1400a57e4]
mov qword [rbx + 0xc8], rax
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x1400ac458
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
mov r10d, dword [rsp + 0x68]
movsxd rsi, dword [rcx + 0x160]
mov ebx, r8d
mov r12, rdx
mov r11, rcx
test r10d, r10d
je 0x1400ac51f
mov eax, dword [rsp + 0x50]
mov ecx, ebx
mov ebp, ebx
shl eax, 2
imul ecx, dword [rsp + 0x58]
movsxd r13, eax
mov eax, esi
imul eax, r9d
mov r9d, dword [rsp + 0x48]
neg ebp
movsxd rdi, eax
mov qword [rsp + 0x28], rdi
mov eax, dword [r11 + 0x158]
movsxd r8, ecx
add r8, r13
add r8, r12
imul eax, r9d
movsxd rdx, eax
add rdx, qword [r11 + 0x150]
add rdx, rdi
cmp dword [rsp + 0x60], 0
jle 0x1400ac504
mov edi, dword [rsp + 0x60]
mov al, byte [r8 + 2]
xor byte [rdx + 2], al
mov al, byte [r8 + 1]
xor byte [rdx + 1], al
mov al, byte [r8]
lea r8, [r8 + 4]
xor byte [rdx], al
add rdx, rsi
dec rdi
jne 0x1400ac4e0
mov rdi, qword [rsp + 0x28]
dec r10d
inc r9d
cmp dword [r11 + 0x174], 0
jne 0x1400ac518
add ecx, ebp
jmp 0x1400ac51a
add ecx, ebx
test r10d, r10d
jne 0x1400ac4b4
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x1400ad2c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
mov r11d, dword [rsp + 0x68]
movsxd rsi, dword [rcx + 0x160]
mov edi, r8d
mov r12, rdx
mov rbx, rcx
test r11d, r11d
je 0x1400ad389
mov eax, dword [rsp + 0x50]
mov ecx, r8d
mov ebp, r8d
lea r10d, [rax + rax*2]
mov eax, esi
imul ecx, dword [rsp + 0x58]
movsxd r13, r10d
imul eax, r9d
mov r9d, dword [rsp + 0x48]
movsxd r10, eax
mov qword [rsp + 0x28], r10
neg ebp
mov eax, dword [rbx + 0x158]
movsxd r8, ecx
add r8, r13
add r8, r12
imul eax, r9d
movsxd rdx, eax
add rdx, qword [rbx + 0x150]
add rdx, r10
cmp dword [rsp + 0x60], 0
jle 0x1400ad36f
mov r10d, dword [rsp + 0x60]
mov al, byte [r8 + 2]
xor byte [rdx + 2], al
mov al, byte [r8 + 1]
xor byte [rdx + 1], al
mov al, byte [r8]
lea r8, [r8 + 3]
xor byte [rdx], al
add rdx, rsi
dec r10
jne 0x1400ad34b
mov r10, qword [rsp + 0x28]
dec r11d
inc r9d
cmp dword [rbx + 0x174], 0
jne 0x1400ad382
add ecx, ebp
jmp 0x1400ad384
add ecx, edi
test r11d, r11d
jne 0x1400ad31f
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
pop r14
pop r13
pop r12
pop rdi
ret