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

Disassembly:
push rax
pushf
mov eax, 0x90d34312
pushf
not eax
add eax, 0x80a21a54
xor eax, 0xab7e71d8
rol eax, 0xb
popf
pushf
not eax
add eax, 0xfc30c41b
xor eax, 0x8e575ba5
rol eax, 0x51
popf
pushf
not eax
add eax, 0xf2f10c98
xor eax, 0x9dce6725
rol eax, 0xaf
popf
pushf
not eax
add eax, 0xb96a5079
xor eax, 0xfb5cb6b8
rol eax, 0x39
popf
cmp eax, 4
jne 0x1400e2caf
popf
pop rax
jmp 0x1400e2e9e
cmp eax, 0
jne 0x1400e2cbe
popf
pop rax
jmp 0x1400e2ceb
cmp eax, 3
jne 0x1400e2ccd
popf
pop rax
jmp 0x1400e2e66
cmp eax, 1
jne 0x1400e2cdc
popf
pop rax
jmp 0x1400e2d8f
cmp eax, 2
jne 0x1400e2ceb
popf
pop rax
jmp 0x1400e2ddd
push rbx
push rbp
push rsi
sub rsp, 0x20
cmp byte [r8 + 0x19], 0
mov rbx, r8
mov rbp, rdx
mov rsi, rcx
jne 0x1400e2d5c
push rax
pushf
mov eax, 0x41cb4481
pushf
not eax
add eax, 0xd8acc4f6
xor eax, 0xfdbe2c2a
rol eax, 0x62
popf
pushf
not eax
add eax, 0xd45b245f
xor eax, 0xef065f09
rol eax, 0x33
popf
pushf
not eax
add eax, 0x8e94af61
xor eax, 0xe90edea6
rol eax, 0x72
popf
pushf
not eax
add eax, 0xbe7d7f74
xor eax, 0xc5d5a4f1
rol eax, 0x17
popf
jmp 0x1400e2ca0
push rax
pushf
mov eax, 0xc0997d87
pushf
not eax
add eax, 0xb6149653
xor eax, 0xb4daa7aa
rol eax, 0xcc
popf
pushf
not eax
add eax, 0x9d03c304
xor eax, 0x850daee9
rol eax, 0xc8
popf
jmp 0x1400e2ca0
mov qword [rsp + 0x58], rdi
nop dword [rax]
push rax
pushf
mov eax, 0x20d1a0ac
pushf
not eax
add eax, 0xf73f83c0
xor eax, 0x931f7641
rol eax, 0xe8
popf
pushf
not eax
add eax, 0xe1cc7e81
xor eax, 0xd07ff68f
rol eax, 0xbe
popf
pushf
not eax
add eax, 0xb2d64f99
xor eax, 0x830418e9
rol eax, 0xe0
popf
jmp 0x1400e2ca0
mov r8, qword [rbx + 0x10]
mov rdx, rbp
mov rcx, rsi
call fcn.1400e2c4c
mov rdi, rbx
mov rbx, qword [rbx]
lea rcx, [rdi + 0x20]
call fcn.14010643f
mov edx, 0x204268b3
pushf
not edx
add edx, 0x935dce61
xor edx, 0xa41d4e0a
rol edx, 2
popf
pushf
not edx
add edx, 0x854e876c
xor edx, 0xd58af961
rol edx, 0x1c
popf
pushf
not edx
add edx, 0xb325bd55
xor edx, 0x80d81e1f
rol edx, 0x8a
popf
pushf
not edx
add edx, 0xabe4a8a5
xor edx, 0xa4901353
rol edx, 4
popf
mov rcx, rdi
call fcn.1400c3e2b
cmp byte [rbx + 0x19], 0
je 0x1400e2ddd
mov rdi, qword [rsp + 0x58]
push rax
pushf
mov eax, 0x4a28db14
pushf
not eax
add eax, 0xc9d0c010
xor eax, 0xd009ab5e
rol eax, 0x95
popf
pushf
not eax
add eax, 0xb66974a8
xor eax, 0xc1b33ede
rol eax, 0x14
popf
jmp 0x1400e2ca0
add rsp, 0x20
pop rsi
pop rbp
pop rbx
ret
Function at 0x14012a000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub al, 0xd9
pop rbx
invalid
xchg r14, r9
mov qword [rsp + 0x20], r14
xchg r9, r14
xchg r8, r13
mov qword [rsp + 0x18], r13
jne 0x14012a046
je 0x14012a046
popf
popfq
jg 0x14012af5c
mul rdi
xor ebp, 0x543280e
inc rdx
jle 0x14012affe
call 0x14012ab31
cmp r15, rdi
lea ecx, [rbp - 0x2f02]
int3
jmp 0x14012a1b8
mov rax, qword [r10 + 0x10]
mov r10, qword [rax]
nop
mov qword [rsp - 8], r15
sub rsp, 8
lea rbp, [rsp - 0x2a8]
sub rsp, 0x3a8
jmp 0x14012a1cb
sub rsp, 8
push r12
push r14
jne 0x14012a12f
je 0x14012a12f
jmp 0x140129a9c
jmp 0x14012a0d5
nop
mov qword [rsp - 8], rbx
sub rsp, 8
nop
mov qword [rsp - 8], rdi
je 0x14012a196
jne 0x14012a196
call rax
rcr r11d, 5
test ecx, 0xa4aea1c6
ja 0x14012a487
sub ecx, 0xf3cc886b
test r14d, 0xbee68e9e
and r10d, 0x2f15394e
test ebx, 0x8d258115
jmp rcx
jmp 0x14012a0f3
xchg r13, r8
xchg r12, rdx
mov qword [rsp + 0x10], r12
xchg r12, rdx
jmp 0x14012a23a
mov rax, qword gs:[0x60]
xor r15d, r15d
mov r8d, r15d
mov r10, qword [rax + 0x18]
je 0x14012a213
jne 0x14012a213
call rax
pause
and r13d, 0xa55a917e
jb 0x14012ae8b
ror ecx, 0xfa
div r13
test r15d, 0xadab55c6
mov r8d, 0x9af0242c
cpuid
ror r12d, 0xda
test rbx, rdi
syscall
movabs r9, 0x169b1efffffe7fe9
call rcx
js 0x14012a6ca
jmp 0x14012a097
je 0x140129e90
ret 0x10
xchg r13, rcx
mov qword [rsp + 8], r13
xchg r13, rcx
nop
sub rsp, 8
mov qword [rsp], rbp
jne 0x14012a28d
je 0x14012a28d
and ebx, 0x4eca51d6
jg 0x1401293b1
jge 0x14012ae51
cmp r8, rcx
inc r8
jmp 0x140129c05
jmp 0x14012a145
movsd dword [rdi], dword [rsi]
add byte [rax], al
add byte [rsi - 0x1a], al
and al, ch
mov dl, 0xf
add byte [rax], al
popfq
call 0x14012946e
invalid
add byte [rax], al
or byte [rax + 0xb], cl
ret 0x97e9
neg esi
and r14d, 0x7e4b8735
call 0x14012b140
div eax
mul r11
popf
lea ecx, [rbp - 0x5005]
jne 0x14012b291
movabs r9, 0x316d2cfffffeace9
ror r10d, 2
bswap rdx
jmp rcx
popfq
enter 0, 0
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x1400ca430]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1400ca440]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call sym._amsg_exit
jmp 0x14000123c
mov rax, qword [0x1400ca440]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400ca440]
mov dword [rax], 1
mov rax, qword [0x1400ca4a0]
mov rdx, rax
mov rax, qword [0x1400ca490]
mov rcx, rax
call sym._initterm
jmp 0x14000123c
mov dword [0x1400f6024], 1
mov rax, qword [0x1400ca440]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400ca480]
mov rdx, rax
mov rax, qword [0x1400ca470]
mov rcx, rax
call sym._initterm
mov rax, qword [0x1400ca440]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x1400ca430]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x1400ca370]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1400ca370]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call sym._pei386_runtime_relocator
mov rax, qword [sym._gnu_exception_handler]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x1400ca420]
mov qword [rdx], rax
lea rax, [sym.__mingw_invalidParameterHandler]
mov rcx, rax
call sym._set_invalid_parameter_handler
call sym._fpreset
mov eax, dword [0x1400f6004]
lea rdx, [0x1400f6008]
mov ecx, eax
call sym.duplicate_ppstrings
call sym.__main
mov rax, qword [0x1400ca3b0]
mov rax, qword [rax]
mov rdx, qword [0x1400f6010]
mov qword [rax], rdx
mov rcx, qword [0x1400f6010]
mov rdx, qword [0x1400f6008]
mov eax, dword [0x1400f6004]
mov r8, rcx
mov ecx, eax
call dbg.main
mov dword [0x1400f601c], eax
mov eax, dword [0x1400f6020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x1400f601c]
mov ecx, eax
call sym.exit
mov eax, dword [0x1400f6024]
test eax, eax
jne 0x14000136c
call sym._cexit
mov eax, dword [0x1400f601c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400ca3e0]
mov dword [rax], 1
mov rax, qword [0x1400ca3f0]
mov dword [rax], 1
mov rax, qword [0x1400ca400]
mov dword [rax], 1
mov rax, qword [0x1400ca3a0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14000b5e0
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 0x14000c2b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400f6168]
test eax, eax
je 0x14000c34a
lea rax, [0x1400f6140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400f6170]
mov qword [rbp - 8], rax
jmp 0x14000c32e
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 0x14000c322
cmp qword [rbp - 0x10], 0
je 0x14000c322
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 0x14000c2e8
lea rax, [0x1400f6140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000c34b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14000c450
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 0x14000c478
mov eax, 0
jmp 0x14000c4c6
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 0x14000c4a1
mov eax, 0
jmp 0x14000c4c6
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 0x14000c4c1
mov eax, 0
jmp 0x14000c4c6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14000c4cc
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 0x14000c54a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14000c541
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 0x14000c541
mov rax, qword [rbp - 8]
jmp 0x14000c55f
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 0x14000c514
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14001a4a9
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 0x14001a5f4
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.pthread_spin_destroy
cmp eax, 1
jne 0x14001a5e7
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.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x14001a59d
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x14001a5b3
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x14001a599
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x14001a5d2
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 0x14001a5f5
nop
add rsp, 0x90
pop rbp
ret
Function at 0x14001b62a
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 [0x1400c01e0], eax
mov eax, dword [0x1400c01e0]
cmp eax, 0xffffffff
jne 0x14001b651
call sym.abort
nop
add rsp, 0x20
pop rbp
ret

Function at 0x14001b807
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, [0x1400f6bf0]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x1400c01e0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14001b85a
mov rax, qword [rbp - 0x10]
jmp 0x14001b9ba
call sym.pop_pthread_mem
mov qword [rbp - 0x10], rax
mov rax, qword [sym.__dyn_tls_pthread]
test rax, rax
je 0x14001b876
cmp qword [rbp - 0x10], 0
jne 0x14001b880
mov eax, 0
jmp 0x14001b9ba
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 0x14001b95b
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 [0x1400c01e0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x14001b9b6
call sym.abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x14001bab7
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 0x14001bb24
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_longjmp]
call rax
mov eax, dword [0x1400c01e0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14001bc68
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14001bbc1
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14001bb7c
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 [0x1400c01e0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x14001bc68
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 0x14001bbfb
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 0x14001bc68
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 [0x1400c01e0]
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.api_ms_win_crt_runtime_l1_1_0.dll__endthreadex]
call rax
nop
Function at 0x14001c946
Capabilities:
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x14], 0
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
call sym._fpreset
lea rax, [0x1400c01f0]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x1400f6bf0]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x1400c01e0]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 8]
mov dword [rdx + 0x70], eax
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rdx, rbp
mov rax, qword [rbp - 8]
add rax, 0xd0
mov rcx, rax
call sym.__intrinsic_setjmpex
test eax, eax
jne 0x14001ca5b
mov qword [rbp - 0x10], pe_nt_image_headers64
lea rax, [0x1400c01f0]
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x14001ca29
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov rcx, rax
call rdx
mov qword [rbp - 0x10], rax
nop
nop
lea rax, [0x1400c01f0]
mov rcx, rax
call sym.pthread_mutex_lock
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
jmp 0x14001ca6a
lea rax, [0x1400c01f0]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14001caa6
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14001cb14
mov rax, qword [rbp - 8]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 8], 0
mov eax, dword [0x1400c01e0]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x14001cb5e
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 8]
mov dword [rax + 0xbc], 1
jmp 0x14001cb5e
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, [0x1400c01f0]
mov rcx, rax
call sym.pthread_mutex_unlock
test eax, eax
je 0x14001cb50
mov eax, dword [rbp - 0x14]
mov ecx, eax
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__endthreadex]
call rax
nop