joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018c70
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x2e8
mov rax, qword [0x140072100]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
lea rcx, [rsp + 0x30]
call sub.cudart64_80.dll_cudaGetDeviceCount
test eax, eax
je 0x140018cbd
xor ecx, ecx
lea rdx, str.No_CUDA_device_found_
cmp eax, 0x26
jne 0x140018cac
lea rdx, str.Unable_to_query_number_of_CUDA_devices_
call fcn.140014db0
mov ecx, 1
call qword [sym.imp.MSVCR120.dll_exit]
int3
mov qword [rsp + 0x300], rdi
xor edi, edi
cmp dword [rsp + 0x30], edi
jle 0x140018d82
mov qword [rsp + 0x2f0], rbx
mov qword [rsp + 0x2f8], rsi
mov qword [rsp + 0x2e0], r14
lea r14, [0x140000000]
mov ebx, edi
mov esi, edi
nop dword [rax]
nop dword [rax + rax]
mov edx, dword [rbx + r14 + 0x72580]
lea rcx, [rsp + 0x40]
call sub.cudart64_80.dll_cudaGetDeviceProperties
test eax, eax
jne 0x140018da2
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCR120.dll__strdup]
inc edi
add rsi, 8
mov qword [rsi + r14 + 0x752d8], rax
mov eax, dword [rsp + 0x1a4]
add rbx, 4
mov dword [rbx + r14 + 0x751dc], eax
mov eax, dword [rsp + 0x188]
mov dword [rsi + r14 + 0x75218], eax
mov eax, dword [rsp + 0x18c]
mov dword [rsi + r14 + 0x7521c], eax
cmp edi, dword [rsp + 0x30]
jl 0x140018d00
mov rbx, qword [rsp + 0x2f0]
mov rsi, qword [rsp + 0x2f8]
mov r14, qword [rsp + 0x2e0]
mov rdi, qword [rsp + 0x300]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140058040
add rsp, 0x2e8
ret
mov ecx, eax
call sub.cudart64_80.dll_cudaGetErrorString
lea r9, str.D:_codesync_ccminer_cryptonight_cryptonight_cryptonight.cu
lea rcx, [0x140059860]
mov r8, rax
movsxd rax, edi
mov dword [rsp + 0x20], Ordinal_79
mov edx, dword [r14 + rax*4 + 0x72580]
call qword [sym.imp.MSVCR120.dll_printf]
mov ecx, 1
call qword [sym.imp.MSVCR120.dll_exit]
int3

Function at 0x140018e80
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
lea rcx, [rsp + 0x30]
call sub.cudart64_80.dll_cudaDriverGetVersion
test eax, eax
je 0x140018eac
lea rdx, str.Unable_to_query_CUDA_driver_version__Is_an_nVidia_driver_installed_
xor ecx, ecx
call fcn.140014db0
mov ecx, 1
call qword [sym.imp.MSVCR120.dll_exit]
int3
cmp dword [rsp + 0x30], 0x1f40
jge 0x140018ed7
xor r9d, r9d
lea rdx, str.Driver_does_not_support_CUDA__d._d_API__Update_your_nVidia_driver_
xor ecx, ecx
lea r8d, [r9 + 8]
call fcn.140014db0
mov ecx, 1
call qword [sym.imp.MSVCR120.dll_exit]
int3
lea rcx, [rsp + 0x38]
call sub.cudart64_80.dll_cudaGetDeviceCount
test eax, eax
je 0x140018f0b
xor ecx, ecx
lea rdx, str.No_CUDA_device_found_
cmp eax, 0x26
jne 0x140018efa
lea rdx, str.Unable_to_query_number_of_CUDA_devices_
call fcn.140014db0
mov ecx, 1
call qword [sym.imp.MSVCR120.dll_exit]
int3
mov eax, dword [rsp + 0x38]
add rsp, 0x28
ret
Function at 0x1400195e0
Capabilities:
Get thread local storage value

Disassembly:
xor r8d, r8d
jmp 0x14001ba70
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x50
xor ebp, ebp
mov r15, r8
mov r14, rdx
mov rbx, rcx
mov dword [rsp + 0x70], ebp
test rcx, rcx
je 0x14001bbb4
mov rax, qword [rcx]
test rax, rax
je 0x14001bbb4
cmp rax, 0xffffffffffffffff
jne 0x14001bab8
call fcn.14001b940
mov dword [rsp + 0x70], eax
test eax, 0xffffffef
jne 0x14001baef
mov qword [rsp + 0x80], rdi
mov rdi, qword [rbx]
lea rcx, [rdi + 0x18]
call fcn.14001d430
test eax, eax
jne 0x14001badf
inc dword [rdi]
lea rcx, [rdi + 0x18]
call fcn.14001d170
test eax, eax
je 0x14001bb01
call qword [sym.imp.MSVCR120.dll__errno]
mov eax, dword [rax]
mov rdi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rbp
ret
lea rax, [rsp + 0x70]
mov qword [rsp + 0x78], rsi
mov rsi, qword [0x140074a20]
mov qword [rsp + 0x30], rax
lea rax, [0x14001bd10]
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x40], rax
test rsi, rsi
je 0x14001bb5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [0x140074a20]
lea rdx, [rsp + 0x38]
mov rcx, rsi
mov qword [rsp + 0x48], rbp
call fcn.14001a910
mov rcx, r14
call fcn.14001a680
mov rsi, qword [rsp + 0x78]
mov dword [rsp + 0x70], eax
test eax, eax
jne 0x14001bba1
lea rcx, [rdi + 0x10]
mov rdx, r15
call fcn.14001d2f0
test eax, eax
je 0x14001bba1
call qword [sym.imp.MSVCR120.dll__errno]
mov ecx, dword [rax]
mov dword [rsp + 0x70], ecx
mov ecx, 1
call fcn.14001c180
mov eax, dword [rsp + 0x70]
jmp 0x14001bae7
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rbp
ret
Function at 0x1400195f0
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x80
xor eax, eax
movaps xmmword [rsp + 0x70], xmm6
mov r14, r9
mov r12, r8
mov r13, rcx
mov ebx, ntohl
mov esi, eax
mov dword [rcx + 8], eax
test rdx, rdx
je 0x14001962d
mov rdi, qword [rdx]
jmp 0x140019630
mov rdi, rax
lea rcx, [rsp + 0x50]
mov qword [rsp + 0xb0], r15
call fcn.14001c090
movups xmm6, xmmword [rax]
movq rbp, xmm6
test rbp, rbp
je 0x14001972d
mov r15d, dword [rbp + 0x188]
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call qword [sym.imp.MSVCR120.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14001972d
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], r14
movups xmmword [rax], xmm6
test rdi, rdi
je 0x140019725
mov eax, dword [rdi + 0x18]
mov r14d, dword [rdi + 0x10]
mov dword [rbp + 0x184], eax
cmp dword [rdi + 0x20], 0
mov r15d, dword [rdi + 0x1c]
jne 0x1400196b0
lea rcx, [rsp + 0x60]
call fcn.14001a7d0
mov rax, qword [rax]
mov r15d, dword [rax + 0x188]
xor r12d, r12d
lea rax, [rbp + 0x198]
lea r8, [0x14001cbd0]
mov r9, rsi
mov qword [rsp + 0x28], rax
mov edx, r14d
xor ecx, ecx
mov dword [rbp + 0x28], r12d
mov qword [rbp + 0x58], r12
mov dword [rsp + 0x20], 4
call qword [sym.imp.MSVCR120.dll__beginthreadex]
mov r14, rax
mov qword [rbp + 8], rax
test rax, rax
je 0x140019713
test rdi, rdi
je 0x14001970a
lea rcx, [rsp + 0x30]
mov r8d, r15d
xor edx, edx
movdqa xmmword [rsp + 0x30], xmm6
call fcn.14001c6a0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ResumeThread]
test r14, r14
cmovne ebx, r12d
test ebx, ebx
jne 0x14001972d
movups xmmword [r13], xmm6
jmp 0x14001974b
xor r12d, r12d
mov r14d, r12d
jmp 0x1400196b3
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm6
call fcn.14001c850
test rsi, rsi
je 0x14001974b
mov rcx, rsi
call qword [sym.imp.MSVCR120.dll_free]
mov r15, qword [rsp + 0xb0]
movaps xmm6, xmmword [rsp + 0x70]
lea r11, [rsp + 0x80]
mov rbp, qword [r11 + 0x40]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14001a7d0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rdi, qword [0x140074a18]
xor r15d, r15d
movaps xmmword [rsp + 0x60], xmm6
mov rsi, rcx
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], r15d
test rdi, rdi
je 0x14001a832
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rdi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x14001a832
movups xmm6, xmmword [rdi + 0x10]
jmp 0x14001a8e4
lea rcx, [rsp + 0x50]
call fcn.14001c090
movups xmm6, xmmword [rax]
movq rbp, xmm6
test rbp, rbp
je 0x14001a8e4
or dword [rbp + 0x194], 1
mov dword [rbp + 0x184], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rbp + 0x198], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
lea r9, [rbp + 8]
mov r8, rdi
mov rdx, rbx
mov rcx, rax
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x14001a8c5
lea rcx, [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm6
call fcn.14001ca70
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
jmp 0x14001a8e7
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov rdx, rbp
mov dword [rbp + 0x188], eax
mov rcx, qword [0x140074a18]
call fcn.14001a910
movups xmmword [rsi], xmm6
movaps xmm6, xmmword [rsp + 0x60]
lea r11, [rsp + 0x70]
mov rax, rsi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14001a910
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rsi, qword [0x140074a18]
mov r14, rdx
mov rdi, rcx
cmp rcx, rsi
je 0x14001a952
lea rcx, [rbp - 0x50]
call fcn.14001a7d0
mov rbx, qword [rax]
test rbx, rbx
jne 0x14001a98e
mov eax, 2
jmp 0x14001aab9
test rsi, rsi
je 0x14001a97d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x14001a97d
movups xmm0, xmmword [rsi + 0x10]
jmp 0x14001a986
test r14, r14
je 0x14001a948
movups xmm0, xmmword [r14]
movups xmmword [rbp - 0x50], xmm0
mov rbx, qword [rbp - 0x50]
mov qword [rsp + 0x90], r15
xor r15d, r15d
mov esi, r15d
test rdi, rdi
je 0x14001aaaf
test rbx, rbx
je 0x14001aa9a
cmp qword [rdi + 8], rsi
je 0x14001aa9a
test r14, r14
je 0x14001aa9a
lea rcx, [rdi + 0x10]
lea rdx, [rbp - 0x20]
call fcn.14001be40
lea rcx, [rbx + 0x30]
lea rdx, [rbp - 0x40]
call fcn.14001be40
mov rax, qword [rbx + 0x58]
test rax, rax
je 0x14001a9f3
cmp qword [rax + 8], rdi
je 0x14001aa00
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14001a9e4
mov rdx, rdi
mov rcx, rbx
call fcn.14001ce90
mov esi, eax
mov rdx, qword [rbp - 0x40]
mov rcx, r15
lock xadd qword [rbp - 0x38], rcx
or rbx, 0xffffffffffffffff
test rcx, rcx
jne 0x14001aa3a
lea rax, [rbp - 0x40]
lock cmpxchg qword [rdx], r15
lea rcx, [rbp - 0x40]
cmp rcx, rax
je 0x14001aa4d
lea rcx, [rbp - 0x28]
call fcn.14001bde0
mov rcx, r15
lock xadd qword [rbp - 0x38], rcx
xor eax, eax
lock cmpxchg qword [rcx + 0x10], rbx
je 0x14001aa4d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rdx, qword [rbp - 0x20]
mov rcx, r15
lock xadd qword [rbp - 0x18], rcx
test rcx, rcx
jne 0x14001aa83
lea rax, [rbp - 0x20]
lock cmpxchg qword [rdx], r15
lea rcx, [rbp - 0x20]
cmp rcx, rax
je 0x14001aa96
lea rcx, [rbp - 8]
call fcn.14001bde0
mov rcx, r15
lock xadd qword [rbp - 0x18], rcx
xor eax, eax
lock cmpxchg qword [rcx + 0x10], rbx
je 0x14001aa96
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
test esi, esi
jne 0x14001aaaf
mov ecx, dword [rdi]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, ntohl
test eax, eax
cmove esi, ecx
mov r15, qword [rsp + 0x90]
mov eax, esi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14001ae70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
cmp dword [0x140074a10], 0
je 0x14001b098
mov qword [rsp + 0x80], rdi
mov rdi, qword [0x140074a18]
test rdi, rdi
je 0x14001b085
mov qword [rsp + 0x70], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rdi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x14001b06d
movups xmm0, xmmword [rdi + 0x10]
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x88], r14
movaps xmmword [rbp - 0x40], xmm0
call fcn.14001b120
xor esi, esi
lea rcx, [rdi + 0x38]
lea rdx, [rbp - 0x20]
mov qword [rbp - 8], rsi
mov qword [rbp - 0x10], rsi
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x20], rcx
xchg qword [rcx], rdx
or r14, 0xffffffffffffffff
test rdx, rdx
je 0x14001af66
lea rax, [rbp - 0x20]
mov qword [rdx + 8], rax
xor eax, eax
lock cmpxchg qword [rdx + 0x18], r14
je 0x14001af26
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rax, rsi
lock xadd qword [rbp - 0x10], rax
test rax, rax
jne 0x14001af66
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rbx, rax
xor eax, eax
lock cmpxchg qword [rbp - 0x10], rbx
jne 0x14001af5d
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 0x20]
mov dword [rdi + 0x28], 6
mov rcx, rsi
lock xadd qword [rbp - 0x18], rcx
test rcx, rcx
jne 0x14001afa3
lea rax, [rbp - 0x20]
lock cmpxchg qword [rdx], rsi
lea rcx, [rbp - 0x20]
cmp rcx, rax
je 0x14001afb6
lea rcx, [rbp - 8]
call fcn.14001bde0
mov rcx, rsi
lock xadd qword [rbp - 0x18], rcx
xor eax, eax
lock cmpxchg qword [rcx + 0x10], r14
je 0x14001afb6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
cmp qword [rdi + 0x178], 0
mov rsi, qword [rsp + 0x78]
je 0x14001b03a
nop word [rax + rax]
mov rax, qword [rdi + 0x178]
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x28]
mov r8, qword [rcx + 0x10]
mov qword [rcx + 0x10], rdi
mov r9, qword [rdx + 0x18]
test r9, r9
je 0x14001aff7
mov rax, qword [rdx + 0x10]
mov qword [r9 + 0x10], rax
mov r9, qword [rdx + 0x10]
test r9, r9
je 0x14001b008
mov rax, qword [rdx + 0x18]
mov qword [r9 + 0x18], rax
cmp qword [r8 + 0x178], rdx
jne 0x14001b01c
mov rax, qword [rdx + 0x18]
mov qword [r8 + 0x178], rax
mov rdx, qword [rcx + 0x28]
mov eax, r14d
xchg dword [rdx + 8], eax
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEvent]
cmp qword [rdi + 0x178], 0
jne 0x14001afd0
cmp dword [rdi + 0x184], 1
mov r14, qword [rsp + 0x88]
jne 0x14001b06d
movups xmm0, xmmword [rdi + 0x10]
lea rcx, [rbp - 0x30]
movaps xmmword [rbp - 0x30], xmm0
call fcn.14001c850
mov rax, qword [0x140074a18]
mov ecx, dword [rax]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x80]
mov eax, 1
add rsp, 0x60
pop rbp
ret
mov eax, 1
mov rdi, qword [rsp + 0x80]
add rsp, 0x60
pop rbp
ret
mov eax, 1
add rsp, 0x60
pop rbp
ret
Function at 0x14001ba70
Capabilities:
Get thread local storage value

Disassembly:
xor r8d, r8d
jmp 0x14001ba70
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x50
xor ebp, ebp
mov r15, r8
mov r14, rdx
mov rbx, rcx
mov dword [rsp + 0x70], ebp
test rcx, rcx
je 0x14001bbb4
mov rax, qword [rcx]
test rax, rax
je 0x14001bbb4
cmp rax, 0xffffffffffffffff
jne 0x14001bab8
call fcn.14001b940
mov dword [rsp + 0x70], eax
test eax, 0xffffffef
jne 0x14001baef
mov qword [rsp + 0x80], rdi
mov rdi, qword [rbx]
lea rcx, [rdi + 0x18]
call fcn.14001d430
test eax, eax
jne 0x14001badf
inc dword [rdi]
lea rcx, [rdi + 0x18]
call fcn.14001d170
test eax, eax
je 0x14001bb01
call qword [sym.imp.MSVCR120.dll__errno]
mov eax, dword [rax]
mov rdi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rbp
ret
lea rax, [rsp + 0x70]
mov qword [rsp + 0x78], rsi
mov rsi, qword [0x140074a20]
mov qword [rsp + 0x30], rax
lea rax, [0x14001bd10]
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x40], rax
test rsi, rsi
je 0x14001bb5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [0x140074a20]
lea rdx, [rsp + 0x38]
mov rcx, rsi
mov qword [rsp + 0x48], rbp
call fcn.14001a910
mov rcx, r14
call fcn.14001a680
mov rsi, qword [rsp + 0x78]
mov dword [rsp + 0x70], eax
test eax, eax
jne 0x14001bba1
lea rcx, [rdi + 0x10]
mov rdx, r15
call fcn.14001d2f0
test eax, eax
je 0x14001bba1
call qword [sym.imp.MSVCR120.dll__errno]
mov ecx, dword [rax]
mov dword [rsp + 0x70], ecx
mov ecx, 1
call fcn.14001c180
mov eax, dword [rsp + 0x70]
jmp 0x14001bae7
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rbp
ret

Function at 0x14001c180
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, qword [0x140074a20]
mov esi, ecx
test rdi, rdi
jne 0x14001c1a5
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rdi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x30]
test rdi, rdi
je 0x14001c1f1
test esi, esi
je 0x14001c1e1
mov rax, qword [rdi]
test rax, rax
je 0x14001c1e1
mov rcx, qword [rdi + 8]
call rax
mov rdx, qword [rdi + 0x10]
mov rcx, qword [0x140074a20]
call fcn.14001a910
mov rax, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14001c200
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
cmp dword [0x140074a10], 0
je 0x14001c217
mov eax, 1
add rsp, 0x28
ret
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
xor edi, edi
lea edx, [rdi + 0x20]
lea ecx, [rdi + 1]
mov dword [0x140074a10], 1
call qword [sym.imp.MSVCR120.dll_calloc]
mov rbx, rax
test rax, rax
jne 0x14001c24a
mov qword [0x140074a18], rdi
jmp 0x14001c2b7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
cmp eax, 0xffffffff
jne 0x14001c267
mov rcx, rbx
mov edi, ntohl
call qword [sym.imp.MSVCR120.dll_free]
xor ebx, ebx
mov qword [0x140074a18], rbx
test edi, edi
jne 0x14001c2b7
lea edx, [rdi + 0x20]
lea ecx, [rdi + 1]
call qword [sym.imp.MSVCR120.dll_calloc]
mov rbx, rax
test rax, rax
jne 0x14001c28f
mov qword [0x140074a20], rdi
jmp 0x14001c2b7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
cmp eax, 0xffffffff
jne 0x14001c2ac
mov rcx, rbx
mov edi, ntohl
call qword [sym.imp.MSVCR120.dll_free]
xor ebx, ebx
mov qword [0x140074a20], rbx
test edi, edi
je 0x14001c2bc
call fcn.14001c2e0
mov eax, dword [0x140074a10]
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x14001cda0
Capabilities:
Get thread local storage value
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, qword [0x140074a18]
xor edi, edi
mov ebp, ecx
test rsi, rsi
jne 0x14001cdc8
mov esi, edi
jmp 0x14001cde3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [rbp - 1]
mov dword [rsi + 0x28], 5
cmp ecx, 1
jbe 0x14001cdfe
mov ecx, 1
call qword [sym.imp.MSVCR120.dll_exit]
int3
test byte [rsi + 0x194], 1
je 0x14001ce30
mov eax, ebp
dec eax
je 0x14001ce16
dec eax
jne 0x14001ce19
or edi, 0xffffffff
jmp 0x14001ce19
mov edi, dword [rsi + 0x48]
call fcn.14001ae70
mov ecx, edi
call qword [sym.imp.MSVCR120.dll__endthreadex]
nop word [rax + rax]
mov rdi, qword [0x140074a20]
test rdi, rdi
je 0x14001ce7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rdi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x14001ce7c
mov rax, qword [rdi]
test rax, rax
je 0x14001ce6a
mov rcx, qword [rdi + 8]
call rax
mov rdx, qword [rdi + 0x10]
mov rcx, qword [0x140074a20]
call fcn.14001a910
jmp 0x14001ce30
lea rcx, [rsi + 0x70]
mov edx, ebp
call qword [sym.imp.MSVCR120.dll_longjmp]
int3
Function at 0x14001d2f0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rdi, qword [rcx]
xor ebp, ebp
mov rbx, rdx
mov dword [rsp + 0x70], ebp
mov r14, rcx
call fcn.14001aad0
test rbx, rbx
jne 0x14001d327
or r15d, 0xffffffff
jmp 0x14001d332
mov rcx, rbx
call fcn.14001c450
mov r15d, eax
lea rcx, [rdi + 8]
call fcn.14001a0a0
mov dword [rsp + 0x70], eax
test eax, eax
jne 0x14001d3fa
lea rcx, [rdi + 8]
cmp qword [r14], rbp
jne 0x14001d366
call fcn.14001a680
call qword [sym.imp.MSVCR120.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x14001d406
dec dword [rdi]
mov ebx, dword [rdi]
call fcn.14001a680
test ebx, ebx
jns 0x14001d3ef
mov rsi, qword [0x140074a20]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rax
lea rax, [0x14001c560]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x38], rax
test rsi, rsi
je 0x14001d3c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [0x140074a20]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov qword [rsp + 0x40], rbp
call fcn.14001a910
mov rcx, qword [rdi + 0x10]
mov edx, r15d
call fcn.14001b740
mov ecx, eax
mov dword [rsp + 0x70], eax
call fcn.14001c180
cmp dword [rsp + 0x70], 0
jne 0x14001d3fa
xor eax, eax
jmp 0x14001d409
call qword [sym.imp.MSVCR120.dll__errno]
mov ecx, dword [rsp + 0x70]
mov dword [rax], ecx
or eax, 0xffffffff
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret