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

Disassembly:
push rsi
push rbx
sub rsp, 0x48
mov esi, edx
mov rbx, rcx
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x3c]
mov r8d, esi
mov rdx, rbx
mov qword [rsp + 0x20], 0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004de98
mov eax, dword [rsp + 0x3c]
add rsp, 0x48
pop rbx
pop rsi
ret
mov eax, 0xffffffff
jmp 0x14004de8b

Function at 0x14004dea0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x48
mov esi, edx
mov rbx, rcx
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x3c]
mov r8d, esi
mov rdx, rbx
mov qword [rsp + 0x20], 0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14004dee8
mov eax, dword [rsp + 0x3c]
add rsp, 0x48
pop rbx
pop rsi
ret
mov eax, 0xffffffff
jmp 0x14004dedb

Function at 0x14004df20
Capabilities:
Query environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov ecx, 1
call qword [fcn.1400662a0]
and esi, 0x8000
xor edx, edx
test esi, esi
mov rcx, rax
setne dl
shl edx, 4
call fcn.1400584b0
mov rbx, rax
test esi, esi
jne 0x14004df60
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret
lea rcx, str.HARNESS_OSSL_PREFIX
call sub.msvcrt.dll_getenv
mov rsi, rax
test rax, rax
je 0x14004df52
mov rcx, qword [0x1400a1558]
test rcx, rcx
je 0x14004dfb0
call sub.libcrypto_1_1_x64.dll_BIO_new
mov rdx, rbx
mov rcx, rax
call sub.libcrypto_1_1_x64.dll_BIO_push
mov r9, rsi
xor r8d, r8d
mov edx, 0x8000
mov rbx, rax
mov rcx, rax
call sub.libcrypto_1_1_x64.dll_BIO_ctrl
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14004fc20
mov qword [0x1400a1558], rax
mov rcx, rax
jmp 0x14004df80
Function at 0x140059250
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400a1740]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400a1720]
test rbx, rbx
je 0x1400592ac
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400592a3
test rsi, rsi
je 0x1400592a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140059288
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400595e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14009a700]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140059600
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140059608
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140059600
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14005965d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140059654
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140059600
add rax, 0x28
cmp rax, r9
jne 0x140059640
xor eax, eax
ret

Function at 0x140059660
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14009a700]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14005967f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140059688
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14005967f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140059720
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14009a700]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14005973f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140059748
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14001f6e0]
mov dword [rax], 1
mov rax, qword [0x14001f6f0]
mov dword [rax], 1
mov rax, qword [0x14001f700]
mov dword [rax], 1
mov rax, qword [0x14001f6d0]
mov dword [rax], 1
mov rax, qword [0x14001f580]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
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 0x14000150a
mov eax, 0
jmp 0x14000158b
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 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400027c3
Capabilities:
Write file on windows

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

Function at 0x140005e7a
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x38
mov qword [rsp + 0x28], rdx
mov r13, rcx
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8, qword [rsp + 0x28]
mov rcx, r13
mov edx, 1
mov r12, rax
mov r9, rax
call sym.fwrite
mov rcx, r12
add rsp, 0x38
pop r12
pop r13
jmp sym.fflush

Function at 0x140005ebd
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x38
cmp qword [0x140026150], 0
jne 0x140005ed9
add rsp, 0x38
pop r12
pop r13
jmp sym.writeToStdErr__system_u3961
lea r13, [rsp + 0x20]
mov rdx, rcx
mov rcx, r13
call sym.cstrToNimstr
mov r12, qword [rsp + 0x28]
mov rcx, r13
call qword [0x140026150]
test r12, r12
je 0x140005f0c
test byte [r12 + 7], 0x40
jne 0x140005f0c
mov rcx, r12
call sym.deallocImpl__system_u1765
lea rcx, [0x14001d300]
call sym.__emutls_get_address
cmp byte [rax], 0
je 0x140005f46
mov byte [rax], 0
lea rcx, [0x14001d200]
call sym.__emutls_get_address
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop r12
pop r13
jmp sym.eqcopy___stdZtypedthreads_u171
add rsp, 0x38
pop r12
pop r13
ret
Function at 0x1400066aa
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
lea r13, [0x140026120]
xor r12d, r12d
lea rbp, [0x14001d300]
mov rsi, rcx
mov rbx, rdx
lea rdi, [rsp + 0x20]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp r12, rbx
jl 0x140006731
mov rbx, qword [sym.__acrt_iob_func]
mov ecx, 1
call rbx
mov r8d, 1
mov edx, 1
lea rcx, [0x14001e31b]
mov r9, rax
call sym.fwrite
mov ecx, 1
call rbx
mov rcx, rax
call sym.fflush
mov rcx, r13
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test r12, r12
jns 0x140006750
lea rdx, [rbx - 1]
mov rcx, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp sym.raiseIndexError2
mov r14, r12
mov ecx, 1
call qword [sym.__acrt_iob_func]
shl r14, 4
xor r8d, r8d
mov rdx, rdi
add r14, rsi
mov rcx, rax
movups xmm0, xmmword [r14]
movaps xmmword [rsp + 0x20], xmm0
call sym.writeWindows__system_u8998
mov rcx, rbp
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x1400067bc
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, r12
call sym.nimAddInt_1
test al, al
je 0x1400067b2
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp sym.raiseOverflow
mov r12, qword [rsp + 0x38]
jmp 0x1400066dd
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x140006bdc
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x38
xor r10d, r10d
mov rbx, rcx
mov r11, rdx
mov rsi, r8
test rdx, rdx
jle 0x140006d26
xor r10d, r10d
cmp byte [rcx], 0x2b
sete r10b
cmp rdx, r10
jle 0x140006d23
mov al, byte [rcx + r10]
sub eax, 0x30
cmp al, 9
ja 0x140006d23
mov qword [r8], 0
movsd xmm3, qword [0x14001e8e0]
movabs rdi, 0x7fffffffffffffff
movq xmm2, qword [0x14001e8f0]
movzx r9d, byte [rbx + r10]
lea eax, [r9 - 0x30]
cmp al, 9
ja 0x140006d26
sub r9, 0x30
mov rax, rdi
mov r8d, 0xa
mov rcx, qword [rsi]
sub rax, r9
cqo
idiv r8
cmp rcx, rax
jle 0x140006c70
mov qword [rsi], rdi
jmp 0x140006cc1
cvtsi2sd xmm1, rcx
imul r12, rcx, 0xa
mulsd xmm1, xmm3
cvtsi2sd xmm0, r12
ucomisd xmm1, xmm0
jp 0x140006c8a
je 0x140006ca5
subsd xmm0, xmm1
movaps xmm4, xmm1
andps xmm4, xmm2
andps xmm0, xmm2
mulsd xmm0, qword [0x14001e900]
comisd xmm4, xmm0
jb 0x140006d15
lea r8, [rsp + 0x28]
mov rdx, r9
mov rcx, r12
call sym.nimAddInt_2
test al, al
jne 0x140006d15
mov rax, qword [rsp + 0x28]
mov qword [rsi], rax
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, r10
call sym.nimAddInt_2
test al, al
jne 0x140006d15
mov r10, qword [rsp + 0x20]
lea r8, [rsp + 0x28]
cmp r10, r11
jge 0x140006d26
test r10, r10
jns 0x140006cf9
lea rdx, [r11 - 1]
mov rcx, r10
call sym.raiseIndexError2
jmp 0x140006d23
cmp byte [rbx + r10], 0x5f
jne 0x140006c3d
mov edx, 1
mov rcx, r10
call sym.nimAddInt_2
test al, al
je 0x140006d1c
call sym.raiseOverflow
jmp 0x140006d23
mov r10, qword [rsp + 0x28]
jmp 0x140006ce1
xor r10d, r10d
mov rax, r10
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r12
ret
Function at 0x140006d33
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push r12
sub rsp, 0x20
mov r11, qword [rcx]
mov r10, qword [rcx + 8]
mov r12, r10
mov r9, rdx
lea rdx, [r11 - 1]
mov rcx, r8
mov rax, rdx
sub rax, r8
cmp rax, 0xffffffffffffffff
je 0x140006d63
test r8, r8
js 0x140006d82
cmp r11, r8
jle 0x140006d82
lea rdx, [rax + 1]
test r10, r10
je 0x140006d71
lea r12, [rcx + r10 + 8]
mov r8, r9
mov rcx, r12
add rsp, 0x20
pop r12
jmp sym.parseSaturatedNatural__pureZparseutils_u398
mov r8, r11
call sym.raiseIndexError4
xor eax, eax
add rsp, 0x20
pop r12
ret

Function at 0x140009490
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 r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x14000a0c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140026308]
test eax, eax
je 0x14000a15a
lea rax, [0x1400262e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140026310]
mov qword [rbp - 8], rax
jmp 0x14000a13e
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 0x14000a132
cmp qword [rbp - 0x10], 0
je 0x14000a132
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 0x14000a0f8
lea rax, [0x1400262e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000a15b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000a260
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 0x14000a288
mov eax, 0
jmp 0x14000a2d6
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 0x14000a2b1
mov eax, 0
jmp 0x14000a2d6
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 0x14000a2d1
mov eax, 0
jmp 0x14000a2d6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14000a2dc
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 0x14000a35a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14000a351
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 0x14000a351
mov rax, qword [rbp - 8]
jmp 0x14000a36f
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 0x14000a324
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140011ca4
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 0x140011dee
mov rcx, qword [rbp + 0x10]
call sym.pthread_spin_destroy
cmp eax, 1
jne 0x140011de1
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 - 0x10], 0
mov word [rbp - 8], 0
mov byte [rbp - 6], 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 0x140011d97
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x140011dad
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x140011d93
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x140011dcc
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 0x140011def
nop
add rsp, 0x90
pop rbp
ret
Function at 0x140012e0b
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 [0x14001d450], eax
mov eax, dword [0x14001d450]
cmp eax, 0xffffffff
jne 0x140012e32
call sym.abort
nop
add rsp, 0x20
pop rbp
ret

Function at 0x140012fe5
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, [0x140026d90]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x14001d450]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140013038
mov rax, qword [rbp - 0x10]
jmp 0x140013198
call sym.pop_pthread_mem
mov qword [rbp - 0x10], rax
mov rax, qword [sym.__dyn_tls_pthread]
test rax, rax
je 0x140013054
cmp qword [rbp - 0x10], 0
jne 0x14001305e
mov eax, 0
jmp 0x140013198
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 0x140013139
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 [0x14001d450]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x140013194
call sym.abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140013292
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 0x1400132ff
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 [0x14001d450]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140013443
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14001339c
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x140013357
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 [0x14001d450]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x140013443
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 0x1400133d6
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 0x140013443
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 [0x14001d450]
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
Function at 0x140014085
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, [0x14001d460]
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, [0x140026d90]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x14001d450]
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._setjmp
test eax, eax
jne 0x14001419a
mov qword [rbp - 0x10], pe_nt_image_headers64
lea rax, [0x14001d460]
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x140014168
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, [0x14001d460]
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 0x1400141a9
lea rax, [0x14001d460]
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 0x1400141e5
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 0x140014253
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 [0x14001d450]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x14001429d
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 0x14001429d
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, [0x14001d460]
mov rcx, rax
call sym.pthread_mutex_unlock
test eax, eax
je 0x14001428f
mov eax, dword [rbp - 0x14]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop