joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009cd70
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1401e1270]
cmp rax, qword [0x14022c910]
mov qword [0x1401e1268], 0
je 0x14009cda8
mov byte [rax], 0
mov dword [0x1401e1278], 0
add rsp, 0x28
ret
cmp byte [rax], 0
je 0x14009cd92
mov r8d, 0xac
lea rdx, [0x1401fdcc0]
lea rcx, [0x1401fdcc9]
call qword [sym.imp.msvcrt.dll__assert]
nop
nop dword [rax + rax]
sub rsp, 0x28
call sub.msvcrt.dll__rmdir
test eax, eax
je 0x14009cde8
add rsp, 0x28
ret
mov rdx, qword [0x1401e1270]
cmp rdx, qword [0x14022c910]
mov qword [0x1401e1268], 0
je 0x14009ce18
mov byte [rdx], 0
mov dword [0x1401e1278], 0
add rsp, 0x28
ret
cmp byte [rdx], 0
je 0x14009ce06
mov r8d, 0xac
lea rdx, [0x1401fdcc0]
lea rcx, [0x1401fdcc9]
call qword [sym.imp.msvcrt.dll__assert]
nop
nop
nop
nop
nop
nop
nop
nop
nop
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xe0
mov r14, qword [0x14022c970]
mov r12, qword [0x14022c040]
mov r13, qword [r12]
mov qword [rsp + 0xd8], r13
xor r13d, r13d
mov rsi, rcx
mov rcx, qword [r14]
mov rdi, rdx
mov ebp, r8d
mov rdx, rsi
xor r8d, r8d
call fcn.140034450
mov dword [rsp + 0x28], eax
cmp eax, 4
jne 0x14009cfd0
mov rcx, qword [r14]
lea r9, [rsp + 0x2c]
lea r8, [rsp + 0x28]
mov rdx, rsi
call fcn.1400344d0
mov rbx, rax
test rax, rax
je 0x14009cff8
lea rsi, [rsp + 0x70]
mov ecx, 0xc
lea r14, [rsp + 0x50]
mov rax, qword [0x14022c910]
mov qword [rsp + 0x30], 0
mov rdi, rsi
mov r9, r14
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x60], rax
mov rax, r13
lea r13, [rsp + 0x30]
rep stosq qword [rdi], rax
mov edi, dword [rsp + 0x2c]
mov r8, r13
mov rcx, rbx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x50], 0
mov rdx, rdi
mov qword [rsp + 0x58], 0
call fcn.140149550
test eax, eax
je 0x14009cfb0
lea rdx, [rsp + 0x78]
mov rcx, r13
mov dword [rsp + 0x80], 2
call fcn.14008e600
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov rcx, rsi
mov qword [rsp + 0x70], rax
call fcn.1401492d0
mov edi, eax
test bpl, 4
je 0x14009cfa0
mov rcx, rsi
call fcn.140149240
mov rcx, r13
call fcn.14008e580
mov rcx, r14
call fcn.14008e580
mov rcx, rbx
call fcn.1400eaf30
mov rax, qword [rsp + 0xd8]
sub rax, qword [r12]
jne 0x14009d054
mov eax, edi
add rsp, 0xe0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov edx, ebp
mov rcx, rsi
call fcn.140149460
jmp 0x14009cf59
and ebp, 1
jne 0x14009d00e
lea rcx, str.no_signature_found
mov edi, 0xffffffff
call fcn.1400b6bf0
jmp 0x14009cf71
mov ecx, eax
call fcn.1400393a0
mov rbx, rax
test rdi, rdi
je 0x14009d020
mov r8, rbx
mov rdx, rdi
lea rcx, str._s:_cannot_verify_a_non_tag_object_of_type__s.
call fcn.1400b6bf0
mov edi, 0xffffffff
jmp 0x14009cf79
test rdi, rdi
je 0x14009d03a
mov rdx, rdi
lea rcx, str._s:_unable_to_read_file.
call fcn.1400b6bf0
jmp 0x14009cff1
mov r8, rdi
mov rdx, rbx
mov ecx, 1
call fcn.1400bd7a0
jmp 0x14009cfb5
mov rax, qword [0x14022c3a0]
mov rcx, qword [r14]
mov rdx, rsi
mov r8d, dword [rax]
call fcn.1400371d0
mov rdi, rax
jmp 0x14009cfdf
mov rax, qword [0x14022c3a0]
mov rcx, qword [r14]
mov rdx, rsi
mov r8d, dword [rax]
call fcn.1400371d0
mov rdi, rax
jmp 0x14009cffd
call fcn.1401d96b0
nop
nop word [rax + rax]
Function at 0x14009cdd0
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1401e1270]
cmp rax, qword [0x14022c910]
mov qword [0x1401e1268], 0
je 0x14009cda8
mov byte [rax], 0
mov dword [0x1401e1278], 0
add rsp, 0x28
ret
cmp byte [rax], 0
je 0x14009cd92
mov r8d, 0xac
lea rdx, [0x1401fdcc0]
lea rcx, [0x1401fdcc9]
call qword [sym.imp.msvcrt.dll__assert]
nop
nop dword [rax + rax]
sub rsp, 0x28
call sub.msvcrt.dll__rmdir
test eax, eax
je 0x14009cde8
add rsp, 0x28
ret
mov rdx, qword [0x1401e1270]
cmp rdx, qword [0x14022c910]
mov qword [0x1401e1268], 0
je 0x14009ce18
mov byte [rdx], 0
mov dword [0x1401e1278], 0
add rsp, 0x28
ret
cmp byte [rdx], 0
je 0x14009ce06
mov r8d, 0xac
lea rdx, [0x1401fdcc0]
lea rcx, [0x1401fdcc9]
call qword [sym.imp.msvcrt.dll__assert]
nop
nop
nop
nop
nop
nop
nop
nop
nop
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xe0
mov r14, qword [0x14022c970]
mov r12, qword [0x14022c040]
mov r13, qword [r12]
mov qword [rsp + 0xd8], r13
xor r13d, r13d
mov rsi, rcx
mov rcx, qword [r14]
mov rdi, rdx
mov ebp, r8d
mov rdx, rsi
xor r8d, r8d
call fcn.140034450
mov dword [rsp + 0x28], eax
cmp eax, 4
jne 0x14009cfd0
mov rcx, qword [r14]
lea r9, [rsp + 0x2c]
lea r8, [rsp + 0x28]
mov rdx, rsi
call fcn.1400344d0
mov rbx, rax
test rax, rax
je 0x14009cff8
lea rsi, [rsp + 0x70]
mov ecx, 0xc
lea r14, [rsp + 0x50]
mov rax, qword [0x14022c910]
mov qword [rsp + 0x30], 0
mov rdi, rsi
mov r9, r14
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x60], rax
mov rax, r13
lea r13, [rsp + 0x30]
rep stosq qword [rdi], rax
mov edi, dword [rsp + 0x2c]
mov r8, r13
mov rcx, rbx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x50], 0
mov rdx, rdi
mov qword [rsp + 0x58], 0
call fcn.140149550
test eax, eax
je 0x14009cfb0
lea rdx, [rsp + 0x78]
mov rcx, r13
mov dword [rsp + 0x80], 2
call fcn.14008e600
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov rcx, rsi
mov qword [rsp + 0x70], rax
call fcn.1401492d0
mov edi, eax
test bpl, 4
je 0x14009cfa0
mov rcx, rsi
call fcn.140149240
mov rcx, r13
call fcn.14008e580
mov rcx, r14
call fcn.14008e580
mov rcx, rbx
call fcn.1400eaf30
mov rax, qword [rsp + 0xd8]
sub rax, qword [r12]
jne 0x14009d054
mov eax, edi
add rsp, 0xe0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov edx, ebp
mov rcx, rsi
call fcn.140149460
jmp 0x14009cf59
and ebp, 1
jne 0x14009d00e
lea rcx, str.no_signature_found
mov edi, 0xffffffff
call fcn.1400b6bf0
jmp 0x14009cf71
mov ecx, eax
call fcn.1400393a0
mov rbx, rax
test rdi, rdi
je 0x14009d020
mov r8, rbx
mov rdx, rdi
lea rcx, str._s:_cannot_verify_a_non_tag_object_of_type__s.
call fcn.1400b6bf0
mov edi, 0xffffffff
jmp 0x14009cf79
test rdi, rdi
je 0x14009d03a
mov rdx, rdi
lea rcx, str._s:_unable_to_read_file.
call fcn.1400b6bf0
jmp 0x14009cff1
mov r8, rdi
mov rdx, rbx
mov ecx, 1
call fcn.1400bd7a0
jmp 0x14009cfb5
mov rax, qword [0x14022c3a0]
mov rcx, qword [r14]
mov rdx, rsi
mov r8d, dword [rax]
call fcn.1400371d0
mov rdi, rax
jmp 0x14009cfdf
mov rax, qword [0x14022c3a0]
mov rcx, qword [r14]
mov rdx, rsi
mov r8d, dword [rax]
call fcn.1400371d0
mov rdi, rax
jmp 0x14009cffd
call fcn.1401d96b0
nop
nop word [rax + rax]
Function at 0x14009e3e0
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, qword [0x14022c040]
mov rcx, qword [rbx]
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
mov edx, 1
test eax, eax
cmovle eax, edx
mov rdx, qword [rsp + 0x58]
sub rdx, qword [rbx]
jne 0x14009e41d
add rsp, 0x60
pop rbx
ret
call fcn.1401d96b0
nop
nop word cs:[rax + rax]
nop

Function at 0x14009fcb0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rsi, qword [0x14022c040]
mov rax, qword [rsi]
mov qword [rsp + 0x28], rax
xor eax, eax
cmp qword [0x140255ab8], 1
ja 0x14009fe00
je 0x14009fdb0
lea rdi, [rsp + 0x20]
xor edx, edx
mov rcx, rdi
call fcn.1400d1800
movsxd rbx, dword [rsp + 0x20]
imul eax, dword [rsp + 0x24], 0x3e8
imul rbx, rbx, 0x3b9aca00
cdqe
add rbx, rax
mov eax, dword [0x140255ab0]
test eax, eax
jne 0x14009fd78
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14009fdf0
movabs rax, 0x3b9aca0000000000
xor edx, edx
mov ecx, 0xffffffff
mov dword [0x140255ab0], 0x20
div qword [rsp + 0x20]
mov qword [0x140255aa8], rax
mov qword [0x140255aa0], rax
cmp rcx, rax
jae 0x14009fd78
mov edx, 0x20
nop word [rax + rax]
shr rax, 1
sub edx, 1
cmp rcx, rax
jb 0x14009fd60
mov qword [0x140255aa0], rax
mov dword [0x140255ab0], edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [rsp + 0x20]
mov ecx, dword [0x140255ab0]
imul rax, qword [0x140255aa0]
movsxd rdx, dword [rsp + 0x24]
imul rdx, qword [0x140255aa8]
shr rax, cl
add rax, rdx
je 0x14009fdf0
mov rdx, rbx
sub rdx, rax
jmp 0x14009fdf5
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.1400d1800
movsxd rbx, dword [rsp + 0x20]
imul eax, dword [rsp + 0x24], 0x3e8
imul rbx, rbx, 0x3b9aca00
cdqe
add rbx, rax
mov rax, qword [rsp + 0x28]
sub rax, qword [rsi]
jne 0x14009feb6
mov rax, rbx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov edx, 1
mov qword [0x140255ab8], rdx
jmp 0x14009fdd5
mov edx, dword [0x140255ab0]
lea rdi, [rsp + 0x20]
test edx, edx
jne 0x14009fe7c
mov rcx, rdi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14009feaa
movabs rax, 0x3b9aca0000000000
xor edx, edx
mov ecx, 0xffffffff
mov dword [0x140255ab0], 0x20
div qword [rsp + 0x20]
mov qword [0x140255aa8], rax
mov qword [0x140255aa0], rax
cmp rcx, rax
jae 0x14009fe7c
mov edx, 0x1f
nop word [rax + rax]
shr rax, 1
mov r8d, edx
sub edx, 1
cmp rcx, rax
jb 0x14009fe60
mov qword [0x140255aa0], rax
mov dword [0x140255ab0], r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ebx, dword [rsp + 0x20]
mov ecx, dword [0x140255ab0]
imul rbx, qword [0x140255aa0]
movsxd rax, dword [rsp + 0x24]
imul rax, qword [0x140255aa8]
shr rbx, cl
add rbx, rax
add rbx, qword [0x140255ab8]
jmp 0x14009fdd5
call fcn.1401d96b0
nop
nop dword [rax]
Function at 0x1400a04b0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [0x1401fe500]
mov r15, qword [rsp + 0xd0]
mov r14, qword [rsp + 0xd8]
mov r13, qword [rsp + 0xe0]
mov dword [rsp + 0x54], edx
mov r12, rcx
mov rsi, r9
mov qword [rsp + 0x58], r8
call fcn.14009fcb0
movabs rdx, 0x20c49ba5e353f7cf
shr rax, 3
mul rdx
mov rbx, rdx
shr rbx, 4
mov rcx, rbx
call fcn.1400a9de0
mov rdi, qword [0x14022c9b0]
mov qword [rsp + 0x48], rax
mov rcx, qword [rdi]
call fcn.1400a2e90
test eax, eax
je 0x1400a055e
mov rax, qword [rdi + 0xb8]
test rax, rax
je 0x1400a055e
mov qword [rsp + 0x38], r13
mov r9, qword [rsp + 0x58]
mov rcx, r12
mov r8, qword [rsp + 0x48]
mov edx, dword [rsp + 0x54]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rsi
call rax
mov rdi, qword [rbp + 8]
add rbp, 8
test rdi, rdi
jne 0x1400a051f
mov rcx, rbx
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.1400a9b30

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

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, qword [0x14022c040]
mov r11d, dword [0x140255b54]
mov r10, qword [rsp + 0x80]
mov rax, qword [rbx]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x40], rax
test r11d, r11d
je 0x1400a16dd
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], r10
call fcn.1400a0590
mov rax, qword [rsp + 0x48]
sub rax, qword [rbx]
jne 0x1400a16ed
add rsp, 0x50
pop rbx
ret
call fcn.1401d96b0
nop
nop word cs:[rax + rax]
nop

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

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, qword [0x14022c040]
cmp dword [0x140255b54], 0
mov r10, qword [rsp + 0x80]
mov r11, qword [rsp + 0x88]
mov rax, qword [rbx]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], rax
je 0x1400a174e
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r11
mov qword [rsp + 0x20], r10
call fcn.1400a0590
mov rax, qword [rsp + 0x48]
sub rax, qword [rbx]
jne 0x1400a175e
add rsp, 0x50
pop rbx
ret
call fcn.1401d96b0
nop
nop word cs:[rax + rax]
nop
Function at 0x1400a1770
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov eax, dword [0x140255b54]
mov rsi, rcx
mov ebp, edx
test eax, eax
jne 0x1400a17a0
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call fcn.1400a9a80
test eax, eax
jne 0x1400a1868
call fcn.14009fcb0
lea rdi, [0x1401fe500]
movabs rdx, 0x20c49ba5e353f7cf
shr rax, 3
mul rdx
mov rbx, rdx
shr rbx, 4
mov rcx, rbx
call fcn.1400a9de0
mov r13, rax
call fcn.1400a9c90
mov rcx, rbx
call fcn.1400a9d70
lea rcx, [0x1400a00c0]
mov r12, rax
call fcn.1400aa130
lea rcx, [0x1400a0060]
call fcn.1400a2380
call fcn.1400a9f50
call fcn.1400aa0a0
call fcn.1400a2340
call fcn.1400a9f60
mov rbx, qword [0x14022c9b0]
mov rcx, qword [rbx]
call fcn.1400a2e90
test eax, eax
je 0x1400a1844
mov rax, qword [rbx + 0x90]
test rax, rax
je 0x1400a1844
mov r9, r12
mov r8, r13
mov edx, ebp
mov rcx, rsi
call rax
mov rbx, qword [rdi + 8]
add rdi, 8
test rbx, rbx
jne 0x1400a181f
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp 0x1400a9ab0
lea rax, str.thread_proc_on_main
xor r9d, r9d
xor r8d, r8d
mov edx, ebp
mov qword [rsp + 0x28], rax
mov rcx, rsi
mov qword [rsp + 0x20], 0
call fcn.1400a1700
nop
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
push rbx
sub rsp, 0x20
mov ecx, dword [0x140255c24]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400a9af8
xor edx, edx
mov ecx, dword [0x140255c24]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [rbx]
call fcn.1400eaf30
mov rcx, qword [rbx + 8]
call fcn.1400eaf30
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400eaf30
call fcn.14009fcb0
lea rcx, [0x1401ff254]
movabs rdx, 0x20c49ba5e353f7cf
shr rax, 3
mul rdx
shr rdx, 4
call fcn.1400a9880
mov rbx, rax
jmp 0x1400a9ac9

Function at 0x1400a2190
Capabilities:
Set environment variable

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rdi, str.GIT_TRACE2_PARENT_NAME
mov rsi, rcx
mov rcx, rdi
call fcn.1400d3040
mov qword [0x1401e1358], 0
mov rbx, rax
mov rax, qword [0x1401e1360]
cmp rax, qword [0x14022c910]
je 0x1400a2280
mov byte [rax], 0
lea rbp, [0x1401e1350]
test rbx, rbx
je 0x1400a21e0
cmp byte [rbx], 0
jne 0x1400a2218
mov rcx, rsi
call sub.msvcrt.dll_strlen
mov rdx, rsi
mov rcx, rbp
mov r8, rax
call fcn.14008f5f0
mov rdx, qword [0x1401e1360]
mov r8d, 1
mov rcx, rdi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.1400de2f0
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov rdx, rbx
mov rcx, rbp
mov r8, rax
call fcn.14008f5f0
mov rdx, qword [0x1401e1350]
test rdx, rdx
jne 0x1400a22a8
mov edx, 1
mov rcx, rbp
call fcn.14008e7e0
mov rax, qword [0x1401e1358]
lea rdx, [rax + 1]
mov qword [0x1401e1358], rdx
mov rdx, qword [0x1401e1360]
mov byte [rdx + rax], 0x2f
mov rdx, qword [0x1401e1360]
mov rax, qword [0x1401e1358]
mov byte [rdx + rax], 0
jmp 0x1400a21e0
cmp byte [rax], 0
je 0x1400a21cf
mov r8d, 0xac
lea rdx, [0x1401fe577]
lea rcx, [0x1401fe582]
call qword [sym.imp.msvcrt.dll__assert]
nop dword [rax + rax]
mov rax, qword [0x1401e1358]
sub rdx, rax
cmp rdx, 1
jne 0x1400a224e
jmp 0x1400a223a
Function at 0x1400a3230
Capabilities:
Set environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x28
lea rsi, str.GIT_TRACE2_PARENT_SID
mov rcx, rsi
call fcn.1400d3040
mov rbx, rax
test rax, rax
je 0x1400a3310
movzx ecx, byte [rax]
test cl, cl
je 0x1400a3310
mov eax, dword [0x140255bd0]
mov r8, rbx
xor edx, edx
nop word cs:[rax + rax]
nop word cs:[rax + rax]
nop dword [rax]
cmp cl, 0x2f
jne 0x1400a328d
add eax, 1
mov edx, 1
movzx ecx, byte [r8 + 1]
add r8, 1
test cl, cl
jne 0x1400a3280
test dl, dl
je 0x1400a32a4
mov dword [0x140255bd0], eax
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov rdx, rbx
lea rbx, [0x1401e1410]
mov r8, rax
mov rcx, rbx
call fcn.14008f5f0
mov rdx, qword [0x1401e1410]
test rdx, rdx
jne 0x1400a3330
mov edx, 1
mov rcx, rbx
call fcn.14008e7e0
mov rax, qword [0x1401e1418]
lea rdx, [rax + 1]
add dword [0x140255bd0], 1
mov qword [0x1401e1418], rdx
mov rdx, qword [0x1401e1420]
mov byte [rdx + rax], 0x2f
mov rdx, qword [0x1401e1420]
mov rax, qword [0x1401e1418]
mov byte [rdx + rax], 0
call fcn.1400a3020
mov rdx, qword [0x1401e1420]
mov r8d, 1
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400de2f0
mov rax, qword [0x1401e1418]
sub rdx, rax
cmp rdx, 1
jne 0x1400a32e1
jmp 0x1400a32cd
Function at 0x1400a9880
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, qword [0x14022c040]
lea r13, [0x140255c40]
mov rdi, rdx
mov rsi, rcx
mov ecx, 1
mov rdx, qword [rbp]
mov qword [rsp + 0x38], rdx
mov edx, 0xb8
call fcn.1400bd320
mov edx, 8
mov ecx, 0x64
mov r12, qword [0x14022c910]
mov qword [rsp + 0x28], 0
mov rbx, rax
mov qword [rsp + 0x30], r12
mov qword [rax + 0x10], 0x64
mov qword [rsp + 0x20], 0
call fcn.1400bd320
mov rdx, qword [rbx + 0x18]
mov qword [rbx + 8], rax
lea rcx, [rdx + 1]
mov qword [rbx + 0x18], rcx
mov rcx, r13
mov qword [rax + rdx*8], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x140255c20]
mov rcx, r13
lea eax, [rdi + 1]
mov dword [0x140255c20], eax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rbx + 0x20], edi
lea rdi, [rsp + 0x20]
xor edx, edx
mov rcx, rdi
call fcn.14008e880
mov r8d, dword [rbx + 0x20]
test r8d, r8d
jne 0x1400a99a0
mov rcx, rsi
call sub.msvcrt.dll_strlen
mov rdx, rsi
mov rcx, rdi
mov r8, rax
call fcn.14008f5f0
cmp qword [rsp + 0x28], 0x18
ja 0x1400a99b8
xor edx, edx
mov rcx, rdi
call fcn.14008e600
mov ecx, dword [0x140255c24]
mov rdx, rbx
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rax, qword [rsp + 0x38]
sub rax, qword [rbp]
jne 0x1400a9a1d
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rdx, [0x1401ff210]
mov rcx, rdi
call fcn.14008fc00
jmp 0x1400a9940
cmp qword [rsp + 0x20], 0x18
jbe 0x1400a9a05
mov qword [rsp + 0x28], 0x18
mov rax, qword [rsp + 0x30]
cmp rax, r12
je 0x1400a99e0
mov byte [rax + 0x18], 0
jmp 0x1400a995e
cmp byte [r12], 0
je 0x1400a995e
mov r8d, 0xac
lea rdx, [0x1401ff236]
lea rcx, [0x1401ff241]
call qword [sym.imp.msvcrt.dll__assert]
lea r8, [0x1401ff218]
mov edx, 0xa7
lea rcx, [0x1401ff236]
call fcn.1400b6d50
call fcn.1401d96b0
nop
nop word cs:[rax + rax]
nop

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

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140255c24]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400a9a50
add rsp, 0x28
ret
call fcn.14009fcb0
lea rcx, [0x1401ff254]
movabs rdx, 0x20c49ba5e353f7cf
shr rax, 3
mul rdx
shr rdx, 4
add rsp, 0x28
jmp fcn.1400a9880

Function at 0x1400a9a80
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140255c24]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp qword [0x140255c70], rax
sete al
movzx eax, al
add rsp, 0x28
ret
Function at 0x1400a9ab0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov eax, dword [0x140255b54]
mov rsi, rcx
mov ebp, edx
test eax, eax
jne 0x1400a17a0
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call fcn.1400a9a80
test eax, eax
jne 0x1400a1868
call fcn.14009fcb0
lea rdi, [0x1401fe500]
movabs rdx, 0x20c49ba5e353f7cf
shr rax, 3
mul rdx
mov rbx, rdx
shr rbx, 4
mov rcx, rbx
call fcn.1400a9de0
mov r13, rax
call fcn.1400a9c90
mov rcx, rbx
call fcn.1400a9d70
lea rcx, [0x1400a00c0]
mov r12, rax
call fcn.1400aa130
lea rcx, [0x1400a0060]
call fcn.1400a2380
call fcn.1400a9f50
call fcn.1400aa0a0
call fcn.1400a2340
call fcn.1400a9f60
mov rbx, qword [0x14022c9b0]
mov rcx, qword [rbx]
call fcn.1400a2e90
test eax, eax
je 0x1400a1844
mov rax, qword [rbx + 0x90]
test rax, rax
je 0x1400a1844
mov r9, r12
mov r8, r13
mov edx, ebp
mov rcx, rsi
call rax
mov rbx, qword [rdi + 8]
add rdi, 8
test rbx, rbx
jne 0x1400a181f
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp 0x1400a9ab0
lea rax, str.thread_proc_on_main
xor r9d, r9d
xor r8d, r8d
mov edx, ebp
mov qword [rsp + 0x28], rax
mov rcx, rsi
mov qword [rsp + 0x20], 0
call fcn.1400a1700
nop
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
push rbx
sub rsp, 0x20
mov ecx, dword [0x140255c24]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400a9af8
xor edx, edx
mov ecx, dword [0x140255c24]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [rbx]
call fcn.1400eaf30
mov rcx, qword [rbx + 8]
call fcn.1400eaf30
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400eaf30
call fcn.14009fcb0
lea rcx, [0x1401ff254]
movabs rdx, 0x20c49ba5e353f7cf
shr rax, 3
mul rdx
shr rdx, 4
call fcn.1400a9880
mov rbx, rax
jmp 0x1400a9ac9

Function at 0x1400a9b30
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x140255c24]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400a9bc0
mov rdx, qword [rbx + 0x18]
mov rax, qword [rbx + 0x10]
lea rcx, [rdx + 1]
cmp rax, rcx
jb 0x1400a9b78
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rcx
mov qword [rax + rdx*8], rsi
add rsp, 0x28
pop rbx
pop rsi
ret
lea rdx, [rax + rax*2 + 0x30]
shr rdx, 1
cmp rdx, rcx
cmovb rdx, rcx
mov rax, rdx
mov qword [rbx + 0x10], rdx
shr rax, 0x3d
jne 0x1400a9bee
mov rcx, qword [rbx + 8]
shl rdx, 3
call fcn.1400bd2c0
mov rdx, qword [rbx + 0x18]
mov qword [rbx + 8], rax
lea rcx, [rdx + 1]
mov qword [rbx + 0x18], rcx
mov qword [rax + rdx*8], rsi
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14009fcb0
lea rcx, [0x1401ff254]
movabs rdx, 0x20c49ba5e353f7cf
shr rax, 3
mul rdx
shr rdx, 4
call fcn.1400a9880
mov rbx, rax
jmp 0x1400a9b4d
mov r8, rdx
lea rcx, [0x1401ff260]
mov edx, 8
call fcn.1400b6950
nop
nop word cs:[rax + rax]
nop
Function at 0x1400a9c10
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140255c24]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400a9c40
mov rdx, qword [rax + 0x18]
test rdx, rdx
je 0x1400a9c68
sub rdx, 1
mov qword [rax + 0x18], rdx
add rsp, 0x28
ret
call fcn.14009fcb0
lea rcx, [0x1401ff254]
movabs rdx, 0x20c49ba5e353f7cf
shr rax, 3
mul rdx
shr rdx, 4
call fcn.1400a9880
jmp 0x1400a9c25
mov r9, qword [rax]
lea r8, str.no_open_regions_in_thread__s
mov edx, 0x78
lea rcx, str.trace2_tr2_tls.c
call fcn.1400b6d50
nop
nop word cs:[rax + rax]
nop

Function at 0x1400a9c90
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov ecx, dword [0x140255c24]
mov rsi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rsi
mov rbx, rax
test rax, rax
je 0x1400a9d20
cmp qword [rbx + 0x18], 1
jbe 0x1400a9d10
movabs rbp, 0x20c49ba5e353f7cf
lea rdi, [0x1401ff254]
jmp 0x1400a9ce8
mov rdx, qword [rax + 0x18]
test rdx, rdx
je 0x1400a9d4e
sub rdx, 1
mov qword [rax + 0x18], rdx
cmp qword [rbx + 0x18], 1
jbe 0x1400a9d10
mov ecx, dword [0x140255c24]
call rsi
test rax, rax
jne 0x1400a9cd0
call fcn.14009fcb0
mov rcx, rdi
shr rax, 3
mul rbp
shr rdx, 4
call fcn.1400a9880
jmp 0x1400a9cd0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.14009fcb0
lea rcx, [0x1401ff254]
movabs rdx, 0x20c49ba5e353f7cf
shr rax, 3
mul rdx
shr rdx, 4
call fcn.1400a9880
mov rbx, rax
jmp 0x1400a9caf
mov r9, qword [rax]
lea r8, str.no_open_regions_in_thread__s
mov edx, 0x78
lea rcx, str.trace2_tr2_tls.c
call fcn.1400b6d50
nop
nop word [rax + rax]

Function at 0x1400a9d70
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x140255c24]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400a9db0
mov rdx, qword [rax + 0x18]
test rdx, rdx
je 0x1400a9d9e
mov rax, qword [rax + 8]
sub rbx, qword [rax + rdx*8 - 8]
mov rdx, rbx
mov rax, rdx
add rsp, 0x20
pop rbx
ret
call fcn.14009fcb0
lea rcx, [0x1401ff254]
movabs rdx, 0x20c49ba5e353f7cf
shr rax, 3
mul rdx
shr rdx, 4
call fcn.1400a9880
jmp 0x1400a9d89

Function at 0x1400a9e00
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
cmp qword [0x140255c68], 0
jne 0x1400a9e2f
call fcn.14009fcb0
movabs rdx, 0x20c49ba5e353f7cf
shr rax, 3
mul rdx
shr rdx, 4
mov qword [0x140255c68], rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
lea rcx, [0x140255c40]
mov dword [0x140255c24], eax
call fcn.14009e430
mov rdx, qword [0x140255c68]
lea rcx, str.main
call fcn.1400a9880
mov qword [0x140255c70], rax
add rsp, 0x28
ret