joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400d6cf0]
mov dword [rax], 1
mov rax, qword [0x1400d6d00]
mov dword [rax], 1
mov rax, qword [0x1400d6d10]
mov dword [rax], 1
mov rax, qword [0x1400d6ca0]
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 0x14000b880
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 fcn.140017410
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140017410
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14000c552
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140102108]
test eax, eax
je 0x14000c5ea
lea rax, [0x1401020e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
call rax
mov rax, qword [0x140102110]
mov qword [rbp - 8], rax
jmp 0x14000c5ce
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 0x14000c5c2
cmp qword [rbp - 0x10], 0
je 0x14000c5c2
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 0x14000c588
lea rax, [0x1401020e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
call rax
jmp 0x14000c5eb
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14000c6f0
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 0x14000c718
mov eax, 0
jmp 0x14000c766
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 0x14000c741
mov eax, 0
jmp 0x14000c766
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 0x14000c761
mov eax, 0
jmp 0x14000c766
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14000c76c
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 0x14000c7ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14000c7e1
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 0x14000c7e1
mov rax, qword [rbp - 8]
jmp 0x14000c7ff
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 0x14000c7b4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140019a70
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x7b], 0
mov qword [rsp + 0x83], 0
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140019b72
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140019b4a
add rax, 1
cmp rax, 0x6b
je 0x140019b67
cmp byte [rcx + rax], 0
jne 0x140019b40
lea edx, [rax + 1]
cmp eax, 0x6a
je 0x140019b67
cdqe
mov byte [rsp + rax + 0x20], 0xa
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x28
mov eax, 0x27
lea rcx, [rsp + 0x20]
jmp 0x140019b58
Function at 0x140019f10
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140102d00], 1
je 0x140019f88
lea rdi, [0x140102d00]
mov rcx, rdi
call fcn.140019800
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140019130
mov esi, dword [0x140102d00]
test esi, esi
jne 0x140019f98
call qword [sym.imp.KERNEL32.DLL_TlsAlloc]
mov dword [0x1400ce178], eax
cmp eax, 0xffffffff
je 0x1400cdb06
mov dword [0x140102d00], 1
mov rcx, rbp
call fcn.140019400
test rbx, rbx
je 0x140019f88
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140019b90
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x140019f68
mov ecx, 2
call qword [fcn.140017410]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140019f68

Function at 0x140019fc0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.140019ca0
cmp qword [0x140105048], 0
mov rbx, rax
je 0x14001a0d8
test rax, rax
je 0x14001a0d8
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.DLL_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.140019700
cmp eax, 1
je 0x14001a0e6
mov rbp, qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.DLL_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_DuplicateHandle]
test eax, eax
je fcn.1400cdb0c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.DLL_GetThreadPriority]
mov ecx, dword [0x1400ce178]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
test eax, eax
je 0x14001a0ec
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.140019a70
nop
jmp fcn.1400cdb0c

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

Disassembly:
sub rsp, 0x28
call fcn.140019f10
mov ecx, dword [0x1400ce178]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x14001a120
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140019fc0
Function at 0x14001a890
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x14001a9b8
cmp eax, 1
je 0x14001a8eb
call fcn.140019800
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.140019130
mov r12d, dword [rbx]
test r12d, r12d
je 0x14001a900
cmp r12d, 1
jne 0x14001a990
mov rcx, rbp
call fcn.140019400
test rdi, rdi
je 0x14001a8eb
mov rcx, rdi
call fcn.140019b90
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x140019c70]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140019f10
mov ecx, dword [0x1400ce178]
mov r12, qword [sym.imp.KERNEL32.DLL_TlsGetValue]
call r12
test rax, rax
je 0x14001a9f8
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140019f10
mov ecx, dword [0x1400ce178]
call r12
test rax, rax
je 0x14001a9e0
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140019f10
mov ecx, dword [0x1400ce178]
call r12
test rax, rax
je 0x14001a9d0
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x14001a8d6
mov ecx, 2
call qword [fcn.140017410]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14001a8d6
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140019fc0
test rax, rax
jne 0x14001a979
jmp 0x1400cdb25
call fcn.140019fc0
test rax, rax
jne 0x14001a955
jmp 0x1400cdb3e
call fcn.140019fc0
test rax, rax
jne 0x14001a92f
jmp 0x1400cdb34
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x14001ac80
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
call fcn.140019f10
mov ecx, dword [0x1400ce178]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001acf8
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140019710
cmp esi, dword [rbx + 0x48]
jae 0x14001acd3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x14001acd3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.140019750
mov ecx, edi
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140019fc0
mov rbx, rax
jmp 0x14001acad
Function at 0x14001ad10
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, 0x28
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebp, eax
call fcn.140019f10
mov ecx, dword [0x1400ce178]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001ae10
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.140019710
cmp esi, dword [rbx + 0x48]
jae 0x14001ad90
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.140019750
mov ecx, ebp
call qword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r15d, [rsi + 1]
mov rcx, qword [rbx + 0x50]
movsxd r14, r15d
lea rdx, [r14*8]
call sub.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x14001ae1d
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x14001ae1d
mov eax, dword [rbx + 0x48]
mov edx, r15d
sub edx, eax
lea rcx, [rdi + rax*8]
lea r8, [rdx*8]
xor edx, edx
call sub.msvcrt.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.msvcrt.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x14001ad5f
call fcn.140019fc0
mov rbx, rax
jmp 0x14001ad4a
mov rcx, r13
call fcn.140019750
mov eax, 0xc
jmp 0x14001ad7d

Function at 0x14001aea0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140019f10
mov ecx, dword [0x1400ce178]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x14001aec8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140019fc0
test rax, rax
jne 0x14001aeba
add rsp, 0x28
ret

Function at 0x14001af30
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140019f10
mov ecx, dword [0x1400ce178]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x14001af58
add rax, 0x18
add rsp, 0x28
ret
call fcn.140019fc0
test rax, rax
jne 0x14001af4a
jmp 0x14001af4e

Function at 0x14001b070
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140102d08]
test eax, eax
jne 0x14001b088
xor eax, eax
add rsp, 0x28
ret
call fcn.140019f10
mov ecx, dword [0x1400ce178]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x14001b0b8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001b07e
test byte [rax + 0x40], 3
je 0x14001b07e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14001b080
call fcn.140019fc0
test rax, rax
jne 0x14001b09e
jmp 0x14001b07e

Function at 0x14001b0d0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140019f10
mov ecx, dword [0x1400ce178]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x14001b110
test ebx, ebx
jle 0x14001b100
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.140019fc0
test rax, rax
jne 0x14001b0ed
add rsp, 0x20
pop rbx
ret
Function at 0x14001b200
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140019f10
mov ecx, dword [0x1400ce178]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001b278
test byte [rbx + 0x40], 0xc
jne 0x14001b22f
mov eax, dword [0x140102d08]
test eax, eax
jne 0x14001b240
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140019130
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001b263
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001b263
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001b28c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140019400
call fcn.140019fc0
mov rbx, rax
test rax, rax
jne 0x14001b21f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001b2aa
call qword [sym.imp.KERNEL32.DLL_ResetEvent]
mov rcx, rsi
call fcn.140019400
call fcn.14001b120
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001b330
call fcn.140018ee0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001b368
call fcn.140019f10
mov ecx, dword [0x1400ce178]
mov edi, esi
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001b3c0
test esi, esi
je 0x14001b346
call fcn.14001b200
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001b3a0
mov edx, edi
call fcn.140018f90
call fcn.14001b200
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140019f10
mov ecx, dword [0x1400ce178]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x14001b3b0
call fcn.14001b200
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_Sleep]
call fcn.14001b200
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140019f10
mov ecx, dword [0x1400ce178]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14001b305
call fcn.140019fc0
mov rbx, rax
jmp 0x14001b305
mov ecx, edi
call qword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x14001b31e
call fcn.140019fc0
jmp 0x14001b346
call fcn.140019fc0
mov rbx, rax
jmp 0x14001b301
Function at 0x14001b2c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140019f10
mov ecx, dword [0x1400ce178]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001b278
test byte [rbx + 0x40], 0xc
jne 0x14001b22f
mov eax, dword [0x140102d08]
test eax, eax
jne 0x14001b240
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140019130
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001b263
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001b263
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001b28c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140019400
call fcn.140019fc0
mov rbx, rax
test rax, rax
jne 0x14001b21f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001b2aa
call qword [sym.imp.KERNEL32.DLL_ResetEvent]
mov rcx, rsi
call fcn.140019400
call fcn.14001b120
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001b330
call fcn.140018ee0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001b368
call fcn.140019f10
mov ecx, dword [0x1400ce178]
mov edi, esi
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001b3c0
test esi, esi
je 0x14001b346
call fcn.14001b200
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001b3a0
mov edx, edi
call fcn.140018f90
call fcn.14001b200
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140019f10
mov ecx, dword [0x1400ce178]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x14001b3b0
call fcn.14001b200
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_Sleep]
call fcn.14001b200
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140019f10
mov ecx, dword [0x1400ce178]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14001b305
call fcn.140019fc0
mov rbx, rax
jmp 0x14001b305
mov ecx, edi
call qword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x14001b31e
call fcn.140019fc0
jmp 0x14001b346
call fcn.140019fc0
mov rbx, rax
jmp 0x14001b301

Function at 0x14001b3d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140019f10
mov ecx, dword [0x1400ce178]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001b440
test esi, esi
je 0x14001b420
call fcn.14001b200
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001b450
mov edx, esi
call fcn.140018f90
call fcn.14001b200
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001b200
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_Sleep]
call fcn.14001b200
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140019fc0
mov rbx, rax
jmp 0x14001b3f1
mov ecx, esi
call qword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x14001b40a
Function at 0x14001b9e0
Capabilities:
Create thread
Get thread local storage value
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, rcx
mov rdi, rdx
mov rsi, r8
mov r12, r9
call fcn.140019ca0
mov rbx, rax
test rax, rax
je 0x14001bc14
test rbp, rbp
je 0x14001ba1b
mov rax, qword [rax + 0x1d8]
mov qword [rbp], rax
mov r13, qword [sym.imp.KERNEL32.DLL_Sleep]
mov dword [rbx + 0x44], 1
mov dword [rbx + 0xbc], 0
mov qword [rbx + 0x28], 0xffffffffffffffff
mov r14, r13
mov qword [rbx + 8], r12
mov r12, qword [sym.imp.KERNEL32.DLL_CreateEventA]
mov qword [rbx + 0x10], rsi
xor esi, esi
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call r12
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x14001ba90
test esi, esi
jne 0x14001ba80
xor ecx, ecx
mov esi, 1
call r14
jmp 0x14001ba4f
add esi, 1
mov ecx, 0x14
call r13
cmp esi, 5
jne 0x14001ba4f
mov qword [rbx + 0x38], 0xffffffffffffffff
lea r12, [rbx + 0x68]
mov rcx, r12
call fcn.140019700
cmp eax, 1
je 0x14001bc5f
cmp qword [rbx + 0x30], 0
mov dword [rbx], 0xbab1f00d
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xc0], 0
mov dword [rbx + 0xb8], 0
je 0x14001bbfd
xor edx, edx
test rdi, rdi
je 0x14001bafd
mov eax, dword [rdi]
mov rsi, qword [rdi + 0x10]
mov dword [rbx + 0x44], eax
test al, 8
jne 0x14001bc20
mov eax, dword [rdi + 0x18]
mov dword [rbx + 0xc0], eax
mov edx, esi
lea r8, [0x14001a270]
mov r9, rbx
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rsi, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001bbc8
mov eax, dword [rbx + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x14001bba0
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_SetThreadPriority]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.DLL_ResetEvent]
test byte [rbx + 0x44], 4
jne 0x14001bb80
mov qword [rbx + 0x28], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_Sleep]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, rsi
mov qword [rbx + 0x28], 0
call qword [sym.imp.KERNEL32.DLL_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x14001bb67
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x14001bb41
mov edx, 2
cmp eax, edx
cmovle edx, eax
cmp eax, 0xf
mov eax, 0xf
cmovge edx, eax
jmp 0x14001bb41
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001bbd7
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
lea rcx, [rbx + 0x38]
call fcn.140019590
mov rcx, r12
call fcn.140019700
cmp eax, 1
je 0x14001bc5f
mov qword [rbx + 0x68], 0xffffffffffffffff
pxor xmm0, xmm0
movups xmmword [rbx + 0x28], xmm0
test rbp, rbp
je 0x14001bc0a
mov qword [rbp], 0
cmp qword [rbx + 0x1d0], 0
je 0x14001bc48
mov eax, 0xb
jmp 0x14001bb71
call fcn.140019f10
mov ecx, dword [0x1400ce178]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x14001bc58
mov eax, dword [rax + 0xc0]
jmp 0x14001baf5
mov rcx, rbx
call fcn.140019d70
jmp 0x14001bc14
call fcn.140019fc0
jmp 0x14001bc36
call fcn.140019a70
nop
nop word cs:[rax + rax]