joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002d2f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x80
mov ecx, dword [0x14029b2c8]
test ecx, ecx
je 0x14002d45a
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x14002d321
mov rsi, rax
cmp qword [rax + 8], 0
jne 0x14002d48c
mov ecx, dword [0x14029b2c8]
test ecx, ecx
je 0x14002d492
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14002d4af
mov rsi, rax
test rax, rax
jne 0x14002d3b6
movzx eax, byte [0x1403ac1f0]
mov rcx, qword [0x1403ac160]
test rcx, rcx
jne 0x14002d373
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x14002d4d0
mov rcx, rax
mov qword [0x1403ac160], rax
mov r8d, 0x60
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x14002d4d0
mov rsi, rax
lea rax, [0x14029b2b0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14029b2c8]
test ecx, ecx
je 0x14002d4bd
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov rax, qword [rsi + 0x58]
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rsi + 0x48]
movaps xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [rsi + 8]
movups xmm1, xmmword [rsi + 0x18]
movups xmm2, xmmword [rsi + 0x28]
movups xmm3, xmmword [rsi + 0x38]
movaps xmmword [rsp + 0x50], xmm3
movaps xmmword [rsp + 0x40], xmm2
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 8], 1
movups xmm0, xmmword [0x14036bd28]
movups xmmword [rsi + 0x50], xmm0
movups xmm0, xmmword [0x14036bd18]
movups xmmword [rsi + 0x40], xmm0
movups xmm0, xmmword [0x14036bd08]
movups xmmword [rsi + 0x30], xmm0
movups xmm0, xmmword [0x14036bcf8]
movups xmmword [rsi + 0x20], xmm0
movups xmm0, xmmword [0x14036bce8]
movups xmmword [rsi + 0x10], xmm0
cmp qword [rsp + 0x20], 0
je 0x14002d48c
mov rax, qword [rsp + 0x30]
cmp rax, 2
je 0x14002d48c
lea rcx, [rsp + 0x38]
test rax, rax
je 0x14002d47c
mov rax, qword [rsp + 0x38]
lock dec qword [rax]
jne 0x14002d48c
call fcn.140026ed0
jmp 0x14002d48c
lea rcx, [0x14029b2b0]
call fcn.140242d30
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x14002d313
jmp 0x14002d321
mov rax, qword [rsp + 0x38]
lock dec qword [rax]
jne 0x14002d48c
call fcn.1400e41d0
add rsi, 0x10
jmp 0x14002d4b1
lea rcx, [0x14029b2b0]
call fcn.140242d30
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x14002d340
xor esi, esi
mov rax, rsi
add rsp, 0x80
pop rsi
ret
lea rcx, [0x14029b2b0]
call fcn.140242d30
mov ecx, eax
jmp 0x14002d3ae
mov ecx, 8
mov edx, 0x60
call fcn.1400a81e0
int3
Function at 0x140036d10
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rbx, rdx
mov rdi, rcx
add r9, r8
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x40], r9
mov word [rsp + 0x48], 0
mov dword [rsp + 0x50], 1
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0x38]
call fcn.140043810
mov dword [rsp + 0x30], 0x800
mov dword [rsp + 0x34], 0
movzx eax, byte [0x1403ac1f0]
mov rcx, qword [0x1403ac160]
test rcx, rcx
jne 0x140036d8c
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x140036ece
mov rcx, rax
mov qword [0x1403ac160], rax
mov esi, 0x800
mov r8d, 0x800
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x140036ece
mov r14, rax
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x38], 0x800
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
mov rdi, qword [rsp + 0x68]
xor r13d, r13d
lea r12, [rsp + 0x30]
lea r15, [rsp + 0x34]
mov rbp, rsi
sub rbp, r13
nop
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r14
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, r15
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
jne 0x140036e2a
mov r8d, dword [rsp + 0x30]
cmp rbp, r8
jae 0x140036de0
lea rcx, [rsp + 0x38]
mov rdx, r13
call fcn.140028070
mov rsi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
jmp 0x140036dd8
test eax, eax
jne 0x140036e4c
mov eax, dword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x34]
cmp eax, 0xb
jbe 0x140036eab
movabs rax, 0xde00000002
jmp 0x140036e54
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x58]
mov qword [rcx + 8], rax
movabs rax, 0x8000000000000000
mov qword [rcx], rax
test rsi, rsi
je 0x140036e80
mov rcx, qword [0x1403ac160]
xor edx, edx
mov r8, r14
call fcn.14029804c
cmp qword [rsp + 0x60], 0
je 0x140036e99
mov rcx, qword [0x1403ac160]
xor edx, edx
mov r8, rdi
call fcn.14029804c
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x58]
mov qword [rdx + 0x10], rcx
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rdx], xmm0
mov byte [rdx + 0x18], al
cmp qword [rsp + 0x60], 0
jne 0x140036e88
jmp 0x140036e99
mov ecx, 1
mov edx, 0x800
call fcn.1400a81e0
int3

Function at 0x140036f80
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [rdx + 0x10]
movups xmm0, xmmword [rdx]
mov r9d, dword [rdx + 0xc]
add r9d, eax
bswap r9d
movd xmm1, r9d
shufps xmm1, xmm0, 0xe4
shufps xmm0, xmm1, 0x24
xorps xmm0, xmmword [rcx]
aesenc xmm0, xmmword [rcx + 0x10]
aesenc xmm0, xmmword [rcx + 0x20]
aesenc xmm0, xmmword [rcx + 0x30]
aesenc xmm0, xmmword [rcx + 0x40]
aesenc xmm0, xmmword [rcx + 0x50]
aesenc xmm0, xmmword [rcx + 0x60]
aesenc xmm0, xmmword [rcx + 0x70]
aesenc xmm0, xmmword [rcx + 0x80]
aesenc xmm0, xmmword [rcx + 0x90]
aesenc xmm0, xmmword [rcx + 0xa0]
aesenc xmm0, xmmword [rcx + 0xb0]
inc eax
aesenc xmm0, xmmword [rcx + 0xc0]
mov dword [rdx + 0x10], eax
aesenc xmm0, xmmword [rcx + 0xd0]
aesenclast xmm0, xmmword [rcx + 0xe0]
movdqu xmmword [r8], xmm0
ret
Function at 0x14007d030
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
aeskeygenassist xmm0, xmmword [rdx], 2
movdqa xmmword [rcx], xmm0
ret
Function at 0x1400b09e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x1400b0a70
cmp r11, r10
ja 0x1400b0ae6
cmp r10, rdx
ja 0x1400b0af8
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x1400b0a72
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x1400b0a50
jmp 0x1400b0ad4
ja 0x1400b0a7a
mov r11, r10
cmp rax, r8
jne 0x1400b0a14
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x1400b0ab0
mov rdi, r8
sub ecx, edx
jns 0x1400b0acb
jmp 0x1400b0ad6
cmp r8, rsi
je 0x1400b0b07
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x1400b0ad6
xor al, 1
cmp rdi, rsi
jne 0x1400b0a90
jmp 0x1400b0ad6
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400ac4a0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400ab800
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.1400abba0
int3
Function at 0x1400c9cf0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x1400c9d32
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x1400c9d3a
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x1400c9d4b
jmp 0x1400c9d62
xor r10d, r10d
jmp 0x1400c9ded
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x1400c9d62
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x1400c9d79
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x1400c9d99
add r11, r8
jmp 0x1400c9eca
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x1400c9e62
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x1400c9e10
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 3
jbe 0x1400c9e80
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x1400c9e92
jmp 0x1400c9eac
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x1400c9eac
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x1400c9ec6
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400e54c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rsi, rdx
cmp dword [rcx], 2
jne 0x1400e5556
movdqu xmm0, xmmword [rcx + 8]
pshufd xmm1, xmm0, 0x44
pxor xmm1, xmmword [0x14029f900]
movdqa xmmword [rsp + 0x30], xmm1
pshufd xmm1, xmm0, 0xee
pxor xmm1, xmmword [0x14029f910]
movdqa xmmword [rsp + 0x40], xmm1
movdqa xmmword [rsp + 0x50], xmm0
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
mov rdi, qword [rsi]
xor eax, eax
test rdi, rdi
setne al
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov r8d, 8
call fcn.1400c9cf0
test rdi, rdi
je 0x1400e55e5
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
lea rcx, [rsp + 0x30]
jmp 0x1400e55fe
mov rdx, qword [rsi]
xor ecx, ecx
test rdx, rdx
setne cl
movabs rax, 0xcbf29ce484222325
xor rax, rcx
movabs rcx, 0x1efac7090aef4a21
imul rax, rcx
test rdx, rdx
je 0x1400e56f6
mov r9, qword [rsi + 0x10]
test r9, r9
je 0x1400e5778
mov rcx, qword [rsi + 8]
movabs rdx, 0x100000001b3
mov r10, r9
and r10, 7
je 0x1400e5703
mov r11, rax
mov r8, rcx
nop word cs:[rax + rax]
movzx eax, byte [r8]
inc r8
xor rax, r11
imul rax, rdx
mov r11, rax
dec r10
jne 0x1400e55c0
cmp r9, 8
jae 0x1400e570c
jmp 0x1400e5778
movzx eax, byte [rsi + 8]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov r8d, 8
call fcn.1400c9cf0
mov rcx, qword [rsp + 0x40]
mov r9, qword [rsp + 0x60]
shl r9, 0x38
or r9, qword [rsp + 0x68]
mov rax, qword [rsp + 0x48]
mov r8, qword [rsp + 0x30]
add r8, rcx
rol rcx, 0xd
xor rax, r9
xor rcx, r8
rol r8, 0x20
mov rdx, qword [rsp + 0x38]
add rdx, rax
rol rax, 0x10
xor rax, rdx
add r8, rax
rol rax, 0x15
add rdx, rcx
rol rcx, 0x11
xor rax, r8
xor rcx, rdx
rol rdx, 0x20
xor r8, r9
add r8, rcx
rol rcx, 0xd
xor rcx, r8
rol r8, 0x20
xor rdx, 0xff
add rdx, rax
rol rax, 0x10
xor rax, rdx
add r8, rax
rol rax, 0x15
add rdx, rcx
rol rcx, 0x11
xor rcx, rdx
rol rdx, 0x20
xor rax, r8
add r8, rcx
rol rcx, 0xd
xor rcx, r8
rol r8, 0x20
add rdx, rax
rol rax, 0x10
xor rax, rdx
add r8, rax
rol rax, 0x15
add rdx, rcx
rol rcx, 0x11
xor rcx, rdx
rol rdx, 0x20
xor rax, r8
add r8, rcx
rol rcx, 0xd
xor rcx, r8
add rdx, rax
shl rax, 0x10
xor rax, rdx
shr rax, 0x2b
add rdx, rcx
shr rcx, 0x2f
xor rcx, rax
mov rax, rdx
shr rax, 0x20
xor rax, rdx
xor rax, rcx
jmp 0x1400e5778
movzx edx, byte [rsi + 8]
xor rax, rdx
imul rax, rcx
jmp 0x1400e5778
mov r8, rcx
cmp r9, 8
jb 0x1400e5778
add rcx, r9
nop
movzx r9d, byte [r8]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 1]
xor rax, r9
imul rax, rdx
movzx r9d, byte [r8 + 2]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 3]
xor rax, r9
imul rax, rdx
movzx r9d, byte [r8 + 4]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 5]
xor rax, r9
imul rax, rdx
movzx r9d, byte [r8 + 6]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 7]
add r8, 8
xor rax, r9
imul rax, rdx
cmp r8, rcx
jne 0x1400e5710
and eax, 0x7fff
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x1401023b0
Capabilities:
Link many functions at runtime

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rcx, str.api_ms_win_core_synch_l1_2_0.dll
call sub.kernel32.dll_GetModuleHandleA
test rax, rax
je 0x140102419
mov rdi, rax
lea rdx, str.WaitOnAddress
mov rcx, rax
call sub.kernel32.dll_GetProcAddress
test rax, rax
je 0x140102419
mov rsi, rax
lea rdx, str.WakeByAddressSingle
mov rcx, rdi
call sub.kernel32.dll_GetProcAddress
test rax, rax
je 0x140102419
mov rbx, rax
xor edi, edi
movzx eax, byte [0x1403ac1f0]
mov rcx, qword [0x1403ac160]
test rcx, rcx
jne 0x1401024c8
jmp 0x1401024b4
lea rcx, str.ntdll.dll
call sub.kernel32.dll_GetModuleHandleA
test rax, rax
je 0x140102528
mov rsi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call sub.kernel32.dll_GetProcAddress
test rax, rax
je 0x140102528
mov rbx, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rsi
call sub.kernel32.dll_GetProcAddress
test rax, rax
je 0x140102528
mov rdi, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rsi
call sub.kernel32.dll_GetProcAddress
test rax, rax
je 0x140102528
mov rsi, rax
lea rcx, [rsp + 0x20]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rbx
test eax, eax
jne 0x140102528
mov rbx, qword [rsp + 0x20]
movzx eax, byte [0x1403ac1f0]
mov rcx, qword [0x1403ac160]
test rcx, rcx
jne 0x1401024c8
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x14010252d
mov rcx, rax
mov qword [0x1403ac160], rax
mov r8d, 0x18
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x14010252d
mov r14, rax
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rbx
xor eax, eax
lock cmpxchg qword [0x1403ac098], r14
je 0x14010251b
mov rsi, rax
cmp qword [r14], 0
je 0x140102507
mov rcx, qword [r14 + 0x10]
call sub.kernel32.dll_CloseHandle
mov rcx, qword [0x1403ac160]
xor edx, edx
mov r8, r14
call fcn.14029804c
mov r14, rsi
mov rax, r14
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140102540
mov ecx, 8
mov edx, 0x18
call fcn.1400a81e0
int3
Function at 0x140102710
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x60
mov ecx, dword [0x14029b0e0]
test ecx, ecx
je 0x140102816
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x14010273e
mov rsi, rax
cmp qword [rax + 8], 0
jne 0x140102810
mov ecx, dword [0x14029b0e0]
test ecx, ecx
je 0x140102838
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140102855
mov rsi, rax
test rax, rax
jne 0x1401027d3
movzx eax, byte [0x1403ac1f0]
mov rcx, qword [0x1403ac160]
test rcx, rcx
jne 0x140102790
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x140102873
mov rcx, rax
mov qword [0x1403ac160], rax
mov r8d, 0x40
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x140102873
mov rsi, rax
lea rax, [0x14029b0c8]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14029b0e0]
test ecx, ecx
je 0x140102860
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
lea rcx, [rsp + 0x28]
call fcn.140101bc0
movups xmm0, xmmword [rsp + 0x28]
movups xmm1, xmmword [rsp + 0x38]
movups xmm2, xmmword [rsp + 0x48]
movups xmmword [rsi + 0x18], xmm1
movups xmmword [rsi + 0x28], xmm2
mov rax, qword [rsp + 0x58]
mov qword [rsi + 0x38], rax
cmp qword [rsi + 8], 0
movups xmmword [rsi + 8], xmm0
je 0x140102810
lock dec qword [0x1403ac088]
add rsi, 8
jmp 0x140102857
lea rcx, [0x14029b0c8]
call fcn.140242d30
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x140102730
jmp 0x14010273e
lea rcx, [0x14029b0c8]
call fcn.140242d30
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x14010275d
xor esi, esi
mov rax, rsi
add rsp, 0x60
pop rsi
ret
lea rcx, [0x14029b0c8]
call fcn.140242d30
mov ecx, eax
jmp 0x1401027cb
mov ecx, 8
mov edx, 0x40
call fcn.1400a81e0
int3
Function at 0x1401051a0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov r14, qword [rdx + 0x28]
movzx ebp, byte [rdx + 0x30]
movzx eax, byte [0x1403ac1f0]
mov rcx, qword [0x1403ac160]
test rcx, rcx
jne 0x1401051e9
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x140105427
mov rcx, rax
mov qword [0x1403ac160], rax
mov r8d, 0x5f0
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x140105427
mov rbx, rax
mov byte [rsp + 0x27], bpl
mov qword [rsp + 0x30], r14
lea r15, [rsi + 0x38]
movabs r12, 0x800000000000000
mov r8d, 0x5f0
mov rcx, rax
xor edx, edx
call sub.msvcrt.dll_memset
mov rax, qword [rsi + 0x60]
mov qword [rsp + 0x28], rax
movabs rcx, 0x7465646279746573
movabs rdx, 0x6c7967656e657261
movabs r8, 0xded7d4e2d7dedfc6
movabs r9, 0xa60c596fc19fead0
movabs r10, 0xe414a674f0de7325
nop word cs:[rax + rax]
mov ebp, 1
lock xadd qword [0x1403ac0b0], rbp
mov r14, rbp
xor r14, rcx
lea r11, [r14 + rdx]
mov rax, r14
rol rax, 0x10
xor rax, r11
lea r13, [rax + r8]
rol rax, 0x15
add r14, r9
mov r11, r14
xor r11, r10
rol r14, 0x20
xor rbp, r13
add rbp, r11
rol r11, 0xd
xor r13, r12
xor r11, rbp
rol rbp, 0x20
xor r13, rax
add r14, r13
rol r13, 0x10
xor r13, r14
add rbp, r13
rol r13, 0x15
add r14, r11
rol r11, 0x11
xor r13, rbp
xor r11, r14
rol r14, 0x20
xor rbp, r12
add rbp, r11
rol r11, 0xd
xor r11, rbp
rol rbp, 0x20
xor r14, 0xff
add r14, r13
rol r13, 0x10
xor r13, r14
add rbp, r13
rol r13, 0x15
add r14, r11
rol r11, 0x11
xor r11, r14
rol r14, 0x20
xor r13, rbp
add rbp, r11
rol r11, 0xd
xor r11, rbp
rol rbp, 0x20
add r14, r13
rol r13, 0x10
xor r13, r14
add rbp, r13
rol r13, 0x15
add r14, r11
rol r11, 0x11
xor r11, r14
rol r14, 0x20
xor r13, rbp
add rbp, r11
rol r11, 0xd
add r14, r13
rol r13, 0x10
xor r13, r14
rol r13, 0x15
xor r11, rbp
add r14, r11
rol r11, 0x11
mov rbp, r14
rol rbp, 0x20
xor rbp, r11
xor rbp, r13
xor rbp, r14
je 0x140105270
mov rax, qword [rsi + 0x58]
movups xmm0, xmmword [r15]
movups xmm1, xmmword [r15 + 0x10]
movups xmmword [rdi + 0x128], xmm1
movups xmmword [rdi + 0x118], xmm0
mov rcx, qword [rsp + 0x30]
mov qword [rdi + 0x138], rcx
movzx ecx, byte [rsp + 0x27]
mov byte [rdi + 0x140], cl
mov qword [rdi], 0
mov qword [rdi + 8], rbx
mov qword [rdi + 0x80], 0
mov qword [rdi + 0x88], rbx
mov rcx, qword [rsp + 0x28]
mov qword [rdi + 0x100], rcx
mov qword [rdi + 0x108], rbp
mov qword [rdi + 0x110], rax
mov rax, qword [rsi + 0x10]
shl rax, 1
test rax, rax
jne 0x140105405
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r8, qword [rsi + 0x18]
mov rcx, qword [0x1403ac160]
xor edx, edx
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.14029804c
mov ecx, 8
mov edx, 0x5f0
call fcn.1400a81e0
int3
Function at 0x140108440
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x14029b108]
test ecx, ecx
je 0x14010846d
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140108486
cmp qword [rax + 8], 0
je 0x140108486
add rax, 0x10
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14029b0f0]
call fcn.140242d30
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x14010845c
mov ecx, dword [0x14029b108]
test ecx, ecx
je 0x14010853f
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14010855c
mov rsi, rax
test rax, rax
jne 0x140108517
movzx eax, byte [0x1403ac1f0]
mov rcx, qword [0x1403ac160]
test rcx, rcx
jne 0x1401084d8
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x140108574
mov rcx, rax
mov qword [0x1403ac160], rax
mov r8d, 0x28
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x140108574
mov rsi, rax
lea rax, [0x14029b0f0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14029b108]
test ecx, ecx
je 0x140108564
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov word [rsi + 0x18], 0
mov qword [rsi + 0x20], 0
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14029b0f0]
call fcn.140242d30
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1401084a5
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14029b0f0]
call fcn.140242d30
mov ecx, eax
jmp 0x14010850f
mov ecx, 8
mov edx, 0x28
call fcn.1400a81e0
int3
Function at 0x14010f060
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x14010f0a2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x14010f0aa
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x14010f0bb
jmp 0x14010f0d2
xor r10d, r10d
jmp 0x14010f15d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x14010f0d2
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x14010f0e9
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x14010f109
add r11, r8
jmp 0x14010f23a
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x14010f1d2
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x14010f180
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 3
jbe 0x14010f1f0
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x14010f202
jmp 0x14010f21c
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x14010f21c
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x14010f236
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret