joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008e50
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rdi, rcx
mov rsi, rdx
mov rbx, r8
test r8, r8
js 0x140008f40
lea r14, [rsp + 0x20]
mov rdx, r8
mov rcx, r14
call sym.mnewString
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov rdx, rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
test rdx, rdx
jle 0x140008f90
mov rax, qword [rsp + 0x38]
mov r9, rsi
mov r8, rbx
mov edx, 1
lea rcx, [rax + 8]
call sym.fread
mov rbp, rax
cmp rbx, rax
je 0x140008ed1
mov rcx, rsi
call sym.ferror
test eax, eax
jne 0x140008f60
mov rcx, qword [0x140070700]
call sym.__emutls_get_address
cmp byte [rax], 0
mov r12, rax
jne 0x140008f21
mov rcx, rsi
call sym.fgetc
mov rdx, rsi
mov ecx, eax
mov r13d, eax
call sym.ungetc
cmp byte [r12], 0
jne 0x140008f21
test r13d, r13d
jns 0x140008fa0
cmp rbx, rbp
jle 0x140008f21
test rbp, rbp
js 0x140008f70
lea rcx, [rsp + 0x30]
mov rdx, rbp
call sym.setLengthStrV2
movdqa xmm0, xmmword [rsp + 0x30]
mov rax, rdi
movups xmmword [rdi], xmm0
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbx
call sym.raiseRangeErrorI
jmp 0x140008f21
mov rcx, rsi
call sym.checkErr__stdZsyncio_u165.part.0
jmp 0x140008ed1
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbp
call sym.raiseRangeErrorI
jmp 0x140008f21
sub rdx, 1
xor ecx, ecx
call sym.raiseIndexError2
jmp 0x140008f21
mov rdx, rsi
mov rcx, r14
call sym.readAllBuffer__stdZsyncio_u519
cmp byte [r12], 0
mov rbx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
jne 0x140009006
lea rcx, [rsp + 0x30]
mov rdx, rbx
call sym.prepareAdd
test rbx, rbx
jle 0x140009006
mov rcx, rbx
add rcx, 1
jo 0x140009026
test rcx, rcx
js 0x140009030
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov r8, rcx
lea rax, [rdx + rax + 8]
lea rdx, [rsi + 8]
mov rcx, rax
call sym.memcpy
add rbx, qword [rsp + 0x30]
jo 0x140009026
mov qword [rsp + 0x30], rbx
test rsi, rsi
je 0x140008f21
test byte [rsi + 7], 0x40
jne 0x140008f21
mov rcx, rsi
call sym.deallocShared
jmp 0x140008f21
call sym.raiseOverflow
jmp 0x140009006
movabs r8, 0x7fffffffffffffff
xor edx, edx
call sym.raiseRangeErrorI
jmp 0x140009006

Function at 0x1400096c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x1400096df
mov rcx, rdx
call sym.strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sym.fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp sym.fflush

Function at 0x140010d20
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov rcx, rsi
mov r8, rdi
mov edx, 1
mov rbx, rax
mov r9, rax
call sym.fwrite
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp sym.fflush
Function at 0x140010d60
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rdi, qword [0x14007b170]
mov rbx, rcx
mov r12, rdx
test rdi, rdi
je 0x140010e68
pxor xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
test rcx, rcx
je 0x140010e30
call sym.strlen
mov rsi, rax
test rax, rax
je 0x140010e30
mov rdi, rax
lea r12, [rax + 1]
add rdi, 9
js 0x140010f3f
cmp rdi, r12
jb 0x140010f3f
test rdi, rdi
js 0x140010f00
lea rcx, [0x1400643e0]
call sym.__emutls_get_address
mov rdx, rdi
mov rcx, rax
call sym.rawAlloc__system_u6831
mov r8, r12
mov rdx, rbx
mov qword [rax], rsi
lea rcx, [rax + 8]
mov rbp, rax
call sym.memcpy
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rbp
call qword [0x14007b170]
test byte [rbp + 7], 0x40
jne 0x140010e49
lea rcx, [0x1400643e0]
call sym.__emutls_get_address
mov rdx, rbp
mov rcx, rax
call sym.rawDealloc__system_u6983
jmp 0x140010e49
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], 0
call rdi
lea rcx, [0x1400643c0]
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x140010ea0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov rcx, rbx
mov r8, r12
mov edx, 1
mov rsi, rax
mov r9, rax
call sym.fwrite
mov rcx, rsi
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sym.fflush
mov byte [rax], 0
lea rcx, [0x1400642c0]
call sym.__emutls_get_address
mov rbx, qword [rax]
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x140010ecd
mov rdx, qword [rsi - 0x10]
add rdx, 0x10
jo 0x140010f49
mov qword [rsi - 0x10], rdx
mov qword [rax], rsi
mov rax, qword [rbx - 0x10]
lea rdx, [rbx - 0x10]
cmp rax, 0xf
jbe 0x140010f20
sub rax, 0x10
jo 0x140010f5d
mov r8, qword [rbx]
xor ecx, ecx
mov qword [rbx - 0x10], rax
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sym.rememberCycle__system_u3389
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rdi
call sym.raiseRangeErrorI
jmp 0x140010df2
mov r8, qword [rbx]
mov ecx, 1
call sym.rememberCycle__system_u3389
mov rcx, rbx
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sym.nimDestroyAndDispose
call sym.raiseOverflow
jmp 0x140010df2
mov qword [rsp + 0x28], rax
call sym.raiseOverflow
mov rax, qword [rsp + 0x28]
jmp 0x140010ecd
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sym.raiseOverflow

Function at 0x140012980
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rcx]
mov rdx, qword [rcx + 8]
test rax, rax
jle 0x1400129e0
lea r8, [rax + rdx + 8]
lea rcx, [rdx + 8]
xor eax, eax
nop word [rax + rax]
movzx edx, byte [rcx]
add rcx, 1
add rdx, rax
mov rax, rdx
shl rax, 0xa
add rax, rdx
mov rdx, rax
shr rdx, 6
xor rax, rdx
cmp r8, rcx
jne 0x1400129a0
lea rax, [rax + rax*8]
mov rdx, rax
shr rdx, 0xb
xor rdx, rax
mov rax, rdx
shl rax, 0xf
add rax, rdx
ret
xor eax, eax
ret
Function at 0x1400139d0
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea r13, [0x14007b140]
mov rsi, rdx
mov rbx, rcx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rsi, rsi
jle 0x140013a5f
mov rdi, qword [sym.__acrt_iob_func]
xor r14d, r14d
lea r12, [rsp + 0x20]
lea rbp, [0x1400643c0]
jmp 0x140013a25
add r14, 1
add rbx, 0x10
cmp rsi, r14
je 0x140013a66
mov ecx, 1
call rdi
movdqu xmm0, xmmword [rbx]
xor r8d, r8d
mov rdx, r12
mov rcx, rax
movaps xmmword [rsp + 0x20], xmm0
call sym.writeWindows__system_u8969
mov rcx, rbp
call sym.__emutls_get_address
cmp byte [rax], 0
je 0x140013a18
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rdi, qword [sym.__acrt_iob_func]
mov ecx, 1
call rdi
mov r8d, 1
mov edx, 1
lea rcx, [0x140065621]
mov r9, rax
call sym.fwrite
mov ecx, 1
call rdi
mov rcx, rax
call sym.fflush
mov rcx, r13
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14001e3b0
Capabilities:
Hash data using murmur3

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, rdx
sar rdx, 0x3f
mov r12, rcx
shr rdx, 0x3e
mov r13, rdi
lea rax, [rdi + rdx]
and eax, 3
sub rax, rdx
sub r13, rax
cmp rdi, 3
jle 0x14001e53a
mov ebx, dword [rcx]
mov rcx, qword [0x140070700]
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x14001e500
xor ebp, ebp
mov ecx, 4
jmp 0x14001e419
cmp rdi, rcx
jle 0x14001e510
mov ebx, dword [r12 + rcx]
add rcx, 4
imul eax, ebx, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, ebp
rol eax, 0xd
lea ebp, [rax + rax*4 - 0x19ab949c]
cmp r13, rcx
jg 0x14001e408
mov rdx, rdi
sar rdx, 0x3f
shr rdx, 0x3e
lea rax, [rdi + rdx]
and eax, 3
sub rax, rdx
test rax, rax
jle 0x14001e543
lea r9, [rax - 1]
mov r8, r9
add r8, rcx
js 0x14001e52c
cmp rdi, r8
jle 0x14001e52c
movzx edx, byte [r12 + r8]
test r9, r9
je 0x14001e4bb
sub rax, 2
mov r8, rax
add r8, rcx
js 0x14001e52c
cmp r8, rdi
jge 0x14001e52c
movzx r8d, byte [r12 + r8]
shl edx, 8
or edx, r8d
test rax, rax
je 0x14001e4bb
test rcx, rcx
js 0x14001e529
cmp rdi, rcx
jle 0x14001e529
movzx eax, byte [r12 + rcx]
shl edx, 8
or edx, eax
imul ebx, edx, 0xcc9e2d51
rol ebx, 0xf
mov rcx, qword [0x140070700]
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x14001e500
imul eax, ebx, 0x1b873593
xor ebp, edi
xor eax, ebp
mov edx, eax
shr edx, 0x10
xor edx, eax
imul edx, edx, 0x85ebca6b
mov eax, edx
shr eax, 0xd
xor eax, edx
imul eax, eax, 0xc2b2ae35
mov esi, eax
shr esi, 0x10
xor esi, eax
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rdx, [rdi - 1]
call sym.raiseIndexError2
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r8, rcx
lea rdx, [rdi - 1]
mov rcx, r8
call sym.raiseIndexError2
jmp 0x14001e500
xor ecx, ecx
xor ebp, ebp
jmp 0x14001e439
xor ebx, ebx
jmp 0x14001e4c4
Function at 0x14001e550
Capabilities:
Hash data using murmur3

Disassembly:
sub rsp, 0x28
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
test rdx, rdx
js 0x14001e578
lea rcx, [rax + 8]
test rax, rax
cmove rcx, rax
add rsp, 0x28
jmp sym.murmurHash__pureZhashes_u194
lea rax, [rdx - 1]
mov r8, rdx
xor ecx, ecx
mov rdx, rax
call sym.raiseIndexError4
xor eax, eax
add rsp, 0x28
ret

Function at 0x14002c670
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov r9, qword [r8]
mov rax, rcx
mov rcx, qword [r8 + 8]
test rax, rax
je 0x14002c69c
mov r8, qword [rax]
cmp word [r8 + 0x12], 1
jle 0x14002c6f0
mov r8, qword [r8 + 0x18]
cmp dword [r8 + 8], 0xcd2bc700
jne 0x14002c6f0
mov r8, qword [rdx]
test r9, r9
js 0x14002c6d8
cmp r9, r8
jge 0x14002c6d8
add rcx, 1
jo 0x14002c6fc
sub rcx, r9
jo 0x14002c6fc
test rcx, rcx
js 0x14002c710
mov rdx, qword [rdx + 8]
mov rax, qword [rax + 0x58]
mov r8, rcx
lea rdx, [rdx + r9 + 8]
mov rcx, rax
add rsp, 0x28
jmp sym.readBuffer__stdZsyncio_u168
lea rdx, [r8 - 1]
mov rcx, r9
call sym.raiseIndexError2
xor eax, eax
add rsp, 0x28
ret
call sym.raiseObjectConversionError
xor eax, eax
add rsp, 0x28
ret
call sym.raiseOverflow
xor eax, eax
add rsp, 0x28
ret
movabs r8, 0x7fffffffffffffff
xor edx, edx
call sym.raiseRangeErrorI
jmp 0x14002c6e4

Function at 0x14002c870
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov rcx, r8
test rax, rax
je 0x14002c898
mov r8, qword [rax]
cmp word [r8 + 0x12], 1
jle 0x14002c8d0
mov r8, qword [r8 + 0x18]
cmp dword [r8 + 8], 0xcd2bc700
jne 0x14002c8d0
test rcx, rcx
js 0x14002c8b0
mov rax, qword [rax + 0x58]
mov r8, rcx
mov rcx, rax
add rsp, 0x28
jmp sym.readBuffer__stdZsyncio_u168
movabs r8, 0x7fffffffffffffff
xor edx, edx
call sym.raiseRangeErrorI
xor eax, eax
add rsp, 0x28
ret
call sym.raiseObjectConversionError
xor eax, eax
add rsp, 0x28
ret
Function at 0x14003bd00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push r14
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
test rdx, rdx
lea rbp, [rdx + 7]
mov rsi, rcx
mov r14, rdx
cmovns rbp, rdx
mov ebx, r8d
sar rbp, 3
cmp rdx, 7
jle 0x14003be05
mov rcx, qword [0x140070700]
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x14003bdf8
xor r8d, r8d
lea rcx, [0x14006bb00]
nop dword [rax + rax]
mov eax, dword [rsi + r8*8]
xor eax, ebx
mov ebx, dword [rsi + r8*8 + 4]
add r8, 1
mov edx, ebx
movzx r9d, bl
movzx edi, bh
shr ebx, 0x10
shr edx, 0x18
movzx ebx, bl
mov edx, dword [rcx + rdx*4]
xor edx, dword [rcx + r9*4 + 0xc00]
movzx r9d, al
xor edx, dword [rcx + r9*4 + 0x1c00]
mov r9d, eax
shr r9d, 0x18
xor edx, dword [rcx + r9*4 + 0x1000]
xor edx, dword [rcx + rdi*4 + 0x800]
movzx edi, ah
shr eax, 0x10
movzx eax, al
xor edx, dword [rcx + rbx*4 + 0x400]
xor edx, dword [rcx + rdi*4 + 0x1800]
mov ebx, dword [rcx + rax*4 + 0x1400]
xor ebx, edx
cmp rbp, r8
jg 0x14003bd50
shl rbp, 3
cmp r14, rbp
jle 0x14003bdf8
add rbp, rsi
lea rcx, [0x14006bb00]
add rsi, r14
nop dword [rax]
movzx edx, byte [rbp]
add rbp, 1
xor edx, ebx
shr ebx, 8
movzx edx, dl
xor ebx, dword [rcx + rdx*4]
cmp rbp, rsi
jne 0x14003bde0
mov eax, ebx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r14
ret
xor ebp, ebp
jmp 0x14003bdc7
Function at 0x14004c570
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x14004d242
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14007b708]
test eax, eax
je 0x14004d2da
lea rax, [0x14007b6e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14007b710]
mov qword [rbp - 8], rax
jmp 0x14004d2be
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14004d2b2
cmp qword [rbp - 0x10], 0
je 0x14004d2b2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14004d278
lea rax, [0x14007b6e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14004d2db
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14004d3e0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14004d408
mov eax, 0
jmp 0x14004d456
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14004d431
mov eax, 0
jmp 0x14004d456
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14004d451
mov eax, 0
jmp 0x14004d456
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14004d45c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14004d4da
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14004d4d1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14004d4d1
mov rax, qword [rbp - 8]
jmp 0x14004d4ef
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14004d4a4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140059259
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x1400593a4
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.pthread_spin_destroy
cmp eax, 1
jne 0x140059397
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x15], 0
mov qword [rbp - 0xd], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.msvcrt.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x14005934d
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x140059363
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x140059349
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x140059382
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sym.abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x1400593a5
nop
add rsp, 0x90
pop rbp
ret
Function at 0x14005a3da
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [sym.imp.KERNEL32.dll_TlsAlloc]
call rax
mov dword [0x1400648c0], eax
mov eax, dword [0x1400648c0]
cmp eax, 0xffffffff
jne 0x14005a401
call sym.abort
nop
add rsp, 0x20
pop rbp
ret

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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x14007c190]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x1400648c0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14005a60a
mov rax, qword [rbp - 0x10]
jmp 0x14005a76a
call sym.pop_pthread_mem
mov qword [rbp - 0x10], rax
mov rax, qword [sym.__dyn_tls_pthread]
test rax, rax
je 0x14005a626
cmp qword [rbp - 0x10], 0
jne 0x14005a630
mov eax, 0
jmp 0x14005a76a
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call sym.replace_spin_keys
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x14005a70b
call sym.abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x1400648c0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x14005a766
call sym.abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x14005a867
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call sym.__pthread_self_lite
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x14005a8d4
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_longjmp]
call rax
mov eax, dword [0x1400648c0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14005aa18
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14005a971
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14005a92c
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 0x10], 0
mov eax, dword [0x1400648c0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x14005aa18
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14005a9ab
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x14005aa18
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 0x10], 0
mov eax, dword [0x1400648c0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop