joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001b70
Capabilities:
Execute command

Disassembly:
push r12
push rbx
sub rsp, 0x98
lea rcx, [0x1400b5080]
call sub.msvcrt.dll_system
lea rcx, str.title_Snake
call sub.msvcrt.dll_system
mov rax, qword [0x1400b5138]
lea rcx, [rsp + 0x44]
mov dword [rsp + 0x38], 0x140014
lea rdx, str.Consolas
lea r12, [rsp + 0x30]
mov qword [rsp + 0x30], rax
mov rax, qword [0x1400b5140]
mov qword [rsp + 0x3c], rax
call sub.msvcrt.dll_wcscpy
mov rbx, qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff5
call rbx
mov r8, r12
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentConsoleFontEx]
mov ecx, 0xfffffff5
mov qword [rsp + 0x28], 0x64
call rbx
lea rdx, [rsp + 0x28]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
mov ecx, 0xfffffff6
call rbx
lea rdx, [rsp + 0x24]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov r12d, dword [rsp + 0x24]
mov ecx, 0xfffffff6
call rbx
mov rcx, rax
and r12b, 0x3f
or r12b, 0x80
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
nop
add rsp, 0x98
pop rbx
pop r12
ret

Function at 0x14000b670
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140015120
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140015120
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x14000b6e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400e0414]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x14000b870
mov rax, qword [0x1400e0418]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x14000b72c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x14000b7b5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x14000b710
mov rcx, rdi
call fcn.14000c240
test rax, rax
mov r12, rax
je 0x14000b8c2
mov rax, qword [0x1400e0418]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.14000c380
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400e0418]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b8a5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000b7ae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000b820
add dword [0x1400e0414], 1
cmp ebx, 8
jae 0x14000b7e1
test bl, 4
jne 0x14000b880
test ebx, ebx
je 0x14000b7d6
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x14000b894
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x14000b7d6
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x14000b7fa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x1400e0418]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000b7ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000b670
xor esi, esi
jmp 0x14000b737
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x14000b7d6
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x14000b7d6
mov rax, qword [0x1400e0418]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.14000b670
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.14000b670
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x14000be90
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1400e0480]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400e0460]
test rbx, rbx
je 0x14000bee4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000bedb
test rsi, rsi
je 0x14000bedb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000bec0
lea rcx, [0x1400e0480]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000c240
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1400ba620]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14000c2af
mov rcx, r9
call fcn.14000c110
test eax, eax
je 0x14000c2af
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x14000c2ad
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x14000c2a4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14000c2af
add rdx, 0x28
cmp rdx, r9
jne 0x14000c290
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x140017590
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x1400b2188], eax
je 0x1400b13c0
add rsp, 0x28
ret
call sub.msvcrt.dll_abort
nop

Function at 0x140017ad0
Capabilities:
Print debug messages

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
test rcx, rcx
mov rbx, rcx
je 0x140017af3
call fcn.140017450
cmp eax, 1
je 0x140017afe
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x90
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
xor eax, eax
mov ecx, 0xa
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x48]
mov ecx, 0x43
rep stosb byte [rdi], al
lea rbx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rbx + 0x27]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140017b8a
lea r8, [rbx + 0x43]
mov ecx, 0x28
mov rax, rbx
sub ecx, ebx
jmp 0x140017b5c
add rax, 1
cmp rax, r8
je 0x140017b7c
cmp byte [rax + 0x28], 0
lea edx, [rcx + rax]
jne 0x140017b53
cmp edx, 0x6a
je 0x140017b7c
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0xa
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rax + 0x20], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x27
jmp 0x140017b6a
Function at 0x140017c30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp dword [0x1400e0fa0], 1
je 0x140017c46
call fcn.140017ba0
mov ecx, dword [0x1400b2188]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rsi, rax
je 0x140017c70
mov rax, rsi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.140017a10
cmp qword [0x1400e4048], 0
mov rbx, rax
je 0x140017c5a
test rax, rax
je 0x140017c5a
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x38], 0xffffffffffffffff
mov qword [rbx + 0x30], rax
call fcn.140017ad0
mov rsi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rsi
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rsi
mov dword [rsp + 0x30], 2
mov r8, rbp
mov rdx, rdi
mov dword [rsp + 0x28], 0
lea r9, [rbx + 0x28]
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400b13c6
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov rdx, rbx
mov ecx, dword [0x1400b2188]
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400b13c6
mov rsi, rbx
mov rax, rsi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x140076ec0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x140076ee7
call rbp
cmp dword [rax], 4
jne 0x140076f04
mov rcx, rdi
call fcn.140076cf0
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
movsxd r12, eax
je 0x140076ee0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400b06a0
Capabilities:
Execute command

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
call fcn.14000b470
call fcn.140001b70
mov rcx, qword [str._I_v_]
mov r8d, 0x16
lea rdx, str._n_nPress_ENTER_to_start
call fcn.1400aa190
call sub.msvcrt.dll_getchar
lea rcx, [0x1400b50cf]
call sub.msvcrt.dll_system
mov byte [0x1400e0050], 0
mov dword [0x1400e0058], 0
mov dword [0x1400e03b8], 7
mov dword [0x1400e03b4], 7
call sub.msvcrt.dll_rand
movsxd rdx, eax
mov ecx, eax
imul rdx, rdx, 0xffffffff88888889
sar ecx, 0x1f
shr rdx, 0x20
add edx, eax
sar edx, 3
sub edx, ecx
mov ecx, edx
shl ecx, 4
sub ecx, edx
sub eax, ecx
mov dword [0x1400e0060], eax
call sub.msvcrt.dll_rand
mov dword [0x1400e0054], 0
movsxd rdx, eax
mov ecx, eax
imul rdx, rdx, 0xffffffff88888889
sar ecx, 0x1f
shr rdx, 0x20
add edx, eax
sar edx, 3
sub edx, ecx
mov ecx, edx
shl ecx, 4
sub ecx, edx
sub eax, ecx
cmp byte [0x1400e0050], 0
mov dword [0x1400e005c], eax
jne 0x1400b07c8
mov rsi, qword [sym.imp.msvcrt.dll__kbhit]
lea rdi, [0x1400b50d4]
mov rbx, qword [sym.imp.KERNEL32.dll_Sleep]
mov rbp, qword [sym.imp.msvcrt.dll__getch]
jmp 0x1400b07a5
call fcn.1400018e0
mov ecx, 0x14
call rbx
cmp byte [0x1400e0050], 0
jne 0x1400b07c8
call fcn.140001590
call rsi
test eax, eax
je case.0x1400b07c1.98
call rbp
sub eax, 0x61
cmp eax, 0x17
ja case.0x1400b07c1.98
movsxd rax, dword [rdi + rax*4]
add rax, rdi
jmp rax
lea rcx, str._nGAME_OVER
call fcn.140001540
call sub.msvcrt.dll_getchar
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov byte [0x1400e0050], 1
jmp case.0x1400b07c1.98
cmp dword [0x1400e0058], 4
je case.0x1400b07c1.98
mov dword [0x1400e0058], 3
jmp case.0x1400b07c1.98
cmp dword [0x1400e0058], 3
je case.0x1400b07c1.98
mov dword [0x1400e0058], 4
jmp case.0x1400b07c1.98
cmp dword [0x1400e0058], 1
je case.0x1400b07c1.98
mov dword [0x1400e0058], 2
jmp case.0x1400b07c1.98
cmp dword [0x1400e0058], 2
je case.0x1400b07c1.98
mov dword [0x1400e0058], 1
jmp case.0x1400b07c1.98
Function at 0x141104058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1411041df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141104089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14110406f
add dl, dl
jne 0x141104096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411040f6
xor eax, eax
add dl, dl
jne 0x1411040a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411041ad
add dl, dl
jne 0x1411040b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411040c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411040d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411040dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1411040ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14110407e
mov eax, 1
add dl, dl
jne 0x141104106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141104113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411040fb
sub eax, ebx
mov ebx, 1
jne 0x14110414c
mov ecx, 1
add dl, dl
jne 0x14110412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14110413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141104123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14110407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141104168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141104175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14110415d
cmp eax, 0x7d00
jae 0x14110419b
cmp eax, 0x500
jb 0x141104196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14110407e
cmp eax, 0x7f
ja 0x14110419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14110407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1411041d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14110407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140013088
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
cmp qword [r8 + 0x18], 0x10
mov r15, rdx
mov r14, qword [r8 + 0x10]
mov rdx, r8
mov rdi, r8
mov rbp, rcx
jb 0x1400130be
mov rdx, qword [r8]
xor ecx, ecx
movabs r8, 0xcbf29ce484222325
test r14, r14
je 0x1400130ec
movzx eax, byte [rcx + rdx]
movabs r9, 0x100000001b3
xor r8, rax
inc rcx
imul r8, r9
cmp rcx, r14
jb 0x1400130cf
mov rax, qword [rbp + 0x18]
mov r12, qword [rbp + 0x30]
mov rbp, qword [rbp + 8]
and r12, r8
add r12, r12
mov qword [rsp + 0x50], rax
mov rbx, qword [rax + r12*8]
cmp qword [rax + r12*8], rbp
jne 0x140013112
mov rax, rbp
jmp 0x14001311a
mov rax, qword [rax + r12*8 + 8]
mov rax, qword [rax]
cmp rbx, rax
je 0x14001318f
cmp qword [rdi + 0x18], 0x10
lea rsi, [rbx + 0x10]
mov rdx, rdi
jb 0x140013130
mov rdx, qword [rdi]
cmp qword [rsi + 0x18], 0x10
mov rcx, rsi
mov r13, qword [rsi + 0x10]
jb 0x140013141
mov rcx, qword [rsi]
cmp r13, r14
jne 0x140013152
mov r8, r13
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14001315c
mov rbx, qword [rbx]
mov rax, qword [rsp + 0x50]
jmp 0x140013107
cmp qword [rsi + 0x18], 0x10
jb 0x140013166
mov rsi, qword [rsi]
cmp qword [rdi + 0x18], 0x10
jb 0x140013170
mov rdi, qword [rdi]
cmp r14, r13
jne 0x140013187
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14001318a
mov rbx, rbp
mov qword [r15], rbx
jmp 0x140013192
mov qword [r15], rbp
mov rbx, qword [rsp + 0x58]
mov rax, r15
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400141d8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea r9, [r8 + 0x10]
mov rdi, rdx
cmp qword [r9 + 0x18], 0x10
mov r11, rcx
mov rbx, qword [r9 + 0x10]
jb 0x1400141fa
mov r9, qword [r9]
xor r10d, r10d
movabs rcx, 0xcbf29ce484222325
test rbx, rbx
je 0x14001422a
movzx eax, byte [r10 + r9]
movabs rdx, 0x100000001b3
xor rcx, rax
inc r10
imul rcx, rdx
cmp r10, rbx
jb 0x14001420c
mov rdx, qword [r11 + 0x30]
and rdx, rcx
mov rcx, qword [r11 + 0x18]
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], r8
jne 0x140014262
cmp qword [rcx + rdx*8], r8
jne 0x140014257
mov rax, qword [r11 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r11 + 0x18]
mov rax, qword [r11 + 8]
jmp 0x14001425b
mov rax, qword [r8 + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x14001426f
cmp qword [rcx + rdx*8], r8
jne 0x14001426f
mov rax, qword [r8]
mov qword [rcx + rdx*8], rax
lea rcx, [r11 + 8]
mov rdx, rdi
call fcn.140014064
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x14001b1d8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
cmp qword [rdx + 0x18], 0x10
mov rdi, rdx
mov rbp, qword [rdx + 0x10]
mov r15, rcx
mov r8, rdx
jb 0x14001b20b
mov r8, qword [rdx]
xor ecx, ecx
movabs rdx, 0xcbf29ce484222325
test rbp, rbp
je 0x14001b23a
movzx eax, byte [rcx + r8]
movabs r9, 0x100000001b3
xor rdx, rax
inc rcx
imul rdx, r9
cmp rcx, rbp
jb 0x14001b21c
mov r12, qword [r15 + 0x30]
mov rax, qword [r15 + 0x18]
and r12, rdx
mov rsi, qword [r15 + 8]
add r12, r12
mov rbx, qword [rax + r12*8]
cmp qword [rax + r12*8], rsi
jne 0x14001b25b
mov rax, rsi
jmp 0x14001b263
mov rax, qword [rax + r12*8 + 8]
mov rax, qword [rax]
cmp rbx, rax
je 0x14001b2d7
cmp qword [rdi + 0x18], 0x10
lea r14, [rbx + 0x10]
mov rdx, rdi
jb 0x14001b279
mov rdx, qword [rdi]
cmp qword [r14 + 0x18], 0x10
mov rcx, r14
mov r13, qword [r14 + 0x10]
jb 0x14001b28a
mov rcx, qword [r14]
cmp r13, rbp
jne 0x14001b29b
mov r8, r13
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14001b2a4
mov rbx, qword [rbx]
mov rax, qword [r15 + 0x18]
jmp 0x14001b250
cmp qword [r14 + 0x18], 0x10
jb 0x14001b2ae
mov r14, qword [r14]
cmp qword [rdi + 0x18], 0x10
mov rcx, rdi
jb 0x14001b2bb
mov rcx, qword [rdi]
cmp rbp, r13
jne 0x14001b2cf
mov r8, rbp
mov rdx, r14
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14001b2d2
mov rbx, rsi
mov rax, rbx
jmp 0x14001b2dd
mov rbx, rsi
mov rax, rsi
cmp rax, rsi
jne 0x14001b356
mov rbx, qword [rsi]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x70], rdi
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rdi, qword [rbx + 8]
mov r8, rdi
call fcn.14001b670
mov rdx, rax
movabs rcx, 0x492492492492491
mov rax, qword [r15 + 0x10]
sub rcx, rax
cmp rcx, 1
jae 0x14001b32b
lea rcx, str.list_T__too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
inc rax
mov rcx, r15
mov qword [r15 + 0x10], rax
mov qword [rbx + 8], rdx
mov qword [rdi], rdx
lea rdx, [rsp + 0x30]
mov r9, qword [r15 + 8]
mov r9, qword [r9]
lea r8, [r9 + 0x10]
call fcn.140013c40
mov rbx, qword [rsp + 0x30]
lea r11, [rsp + 0x40]
mov rbp, qword [r11 + 0x40]
lea rax, [rbx + 0x30]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400204f4
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 0x59], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140060010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, r8
mov rsi, rdx
mov r14, rcx
xor r15d, r15d
mov ecx, dword [0x140061660]
cmp byte [0x140061664], r15b
je 0x14002054b
call qword [sym.imp.KERNEL32.dll_FlsGetValue]
jmp 0x140020551
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140020570
mov edx, 8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
inc qword [rdx + rcx]
jmp 0x1400206d3
mov ecx, dword [0x140061670]
cmp byte [0x140061674], r15b
je 0x140020587
call qword [sym.imp.KERNEL32.dll_FlsGetValue]
jmp 0x14002058d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov r12d, 7
test rax, rax
jne 0x140020620
lea ecx, [rax + 0x28]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x1400206fb
mov qword [rbp - 0x51], rax
mov qword [rax], r15
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r15
mov qword [rax + 0x20], r15
lea ecx, [r12 + 9]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
jne 0x1400205e2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_alloc_void_]
int3
mov qword [rbx], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x49], xmm0
movdqu xmmword [rax], xmm0
mov rax, qword [rbx]
mov qword [rax], rbx
mov rdx, rbx
mov ecx, dword [0x140061670]
cmp byte [0x140061674], r15b
je 0x140020611
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
jmp 0x140020617
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140020620
mov rcx, r12
int 0x29
lea rdx, [0x14002f38c]
test rsi, rsi
cmovne rdx, rsi
lea rcx, [rbp + 7]
call fcn.140002b3c
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x140020648
lock inc dword [rdx + 8]
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi]
mov qword [rbp - 0x39], rcx
mov qword [rbp - 0x31], rdx
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x29], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rbp - 0x19], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r12
mov word [rax], r15w
movsd xmm0, qword [r14]
movsd qword [rbp - 9], xmm0
mov eax, dword [r14 + 8]
mov dword [rbp - 1], eax
lea rdx, [rbp - 0x39]
mov rcx, rbx
call fcn.140020704
lea rcx, [rbp - 0x39]
call fcn.140020850
mov rax, qword [rbp + 0x1f]
cmp rax, 8
jb 0x1400206d3
mov rcx, qword [rbp + 7]
mov rdx, rcx
lea rax, [rax*2 + 2]
cmp rax, 0x1000
jb 0x1400206cd
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x1400206cd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14002a750
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.14002a1ac
int3