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

Disassembly:
test ecx, ecx
jle 0x1400159de
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x2d0
mov rax, qword [0x14007b100]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
xor edi, edi
mov qword [rsp + 0x2e0], r14
mov ebx, edi
movsxd rsi, ecx
lea r14, [0x140000000]
mov edx, dword [r14 + rbx*4 + 0x7f000]
lea rcx, [rsp + 0x30]
call sub.cudart64_80.dll_cudaGetDeviceProperties
test eax, eax
jne 0x1400159df
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov qword [r14 + rbx*8 + 0x7eee0], rax
inc edi
mov eax, dword [rsp + 0x194]
mov dword [r14 + rbx*4 + 0x7efb0], eax
mov eax, dword [rsp + 0x178]
mov dword [r14 + rbx*8 + 0x7edb0], eax
mov eax, dword [rsp + 0x17c]
mov dword [r14 + rbx*8 + 0x7edb4], eax
inc rbx
cmp rbx, rsi
jl 0x140015952
mov r14, qword [rsp + 0x2e0]
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.14005c440
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov ecx, eax
call sub.cudart64_80.dll_cudaGetErrorString
mov r8, rax
mov dword [rsp + 0x20], reloc.WS2_32.dll_WSASetLastError
movsxd rax, edi
lea r9, str.D:_code_ccminer_cryptonight_cryptonight_cryptonight.cu
lea rcx, [0x14005f338]
mov edx, dword [r14 + rax*4 + 0x7f000]
call fcn.140004f00
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x140015918
Capabilities:
Terminate process

Disassembly:
test ecx, ecx
jle 0x1400159de
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x2d0
mov rax, qword [0x14007b100]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
xor edi, edi
mov qword [rsp + 0x2e0], r14
mov ebx, edi
movsxd rsi, ecx
lea r14, [0x140000000]
mov edx, dword [r14 + rbx*4 + 0x7f000]
lea rcx, [rsp + 0x30]
call sub.cudart64_80.dll_cudaGetDeviceProperties
test eax, eax
jne 0x1400159df
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov qword [r14 + rbx*8 + 0x7eee0], rax
inc edi
mov eax, dword [rsp + 0x194]
mov dword [r14 + rbx*4 + 0x7efb0], eax
mov eax, dword [rsp + 0x178]
mov dword [r14 + rbx*8 + 0x7edb0], eax
mov eax, dword [rsp + 0x17c]
mov dword [r14 + rbx*8 + 0x7edb4], eax
inc rbx
cmp rbx, rsi
jl 0x140015952
mov r14, qword [rsp + 0x2e0]
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.14005c440
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov ecx, eax
call sub.cudart64_80.dll_cudaGetErrorString
mov r8, rax
mov dword [rsp + 0x20], reloc.WS2_32.dll_WSASetLastError
movsxd rax, edi
lea r9, str.D:_code_ccminer_cryptonight_cryptonight_cryptonight.cu
lea rcx, [0x14005f338]
mov edx, dword [r14 + rax*4 + 0x7f000]
call fcn.140004f00
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140015f60
Capabilities:
Get thread local storage value

Disassembly:
xor r8d, r8d
jmp 0x140018450
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 0x140018594
mov rax, qword [rcx]
test rax, rax
je 0x140018594
cmp rax, 0xffffffffffffffff
jne 0x140018498
call fcn.140018320
mov dword [rsp + 0x70], eax
test eax, 0xffffffef
jne 0x1400184cf
mov qword [rsp + 0x80], rdi
mov rdi, qword [rbx]
lea rcx, [rdi + 0x18]
call fcn.140019e10
test eax, eax
jne 0x1400184bf
inc dword [rdi]
lea rcx, [rdi + 0x18]
call fcn.140019b50
test eax, eax
je 0x1400184e1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.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 [0x14007e4e8]
mov qword [rsp + 0x30], rax
lea rax, [0x1400186f0]
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 0x14001853e
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 [0x14007e4e8]
lea rdx, [rsp + 0x38]
mov rcx, rsi
mov qword [rsp + 0x48], rbp
call fcn.1400172f0
mov rcx, r14
call fcn.140017060
mov rsi, qword [rsp + 0x78]
mov dword [rsp + 0x70], eax
test eax, eax
jne 0x140018581
lea rcx, [rdi + 0x10]
mov rdx, r15
call fcn.140019cd0
test eax, eax
je 0x140018581
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
mov dword [rsp + 0x70], ecx
mov ecx, 1
call fcn.140018b60
mov eax, dword [rsp + 0x70]
jmp 0x1400184c7
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rbp
ret
Function at 0x140015f70
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, listen
mov esi, eax
mov dword [rcx + 8], eax
test rdx, rdx
je 0x140015fad
mov rdi, qword [rdx]
jmp 0x140015fb0
mov rdi, rax
lea rcx, [rsp + 0x50]
mov qword [rsp + 0xb0], r15
call fcn.140018a70
movups xmm6, xmmword [rax]
movq rbp, xmm6
test rbp, rbp
je 0x1400160ad
mov r15d, dword [rbp + 0x188]
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1400160ad
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], r14
movups xmmword [rax], xmm6
test rdi, rdi
je 0x1400160a5
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 0x140016030
lea rcx, [rsp + 0x60]
call fcn.1400171b0
mov rax, qword [rax]
mov r15d, dword [rax + 0x188]
xor r12d, r12d
lea rax, [rbp + 0x198]
lea r8, [0x1400195b0]
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.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov r14, rax
mov qword [rbp + 8], rax
test rax, rax
je 0x140016093
test rdi, rdi
je 0x14001608a
lea rcx, [rsp + 0x30]
mov r8d, r15d
xor edx, edx
movdqa xmmword [rsp + 0x30], xmm6
call fcn.140019080
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ResumeThread]
test r14, r14
cmovne ebx, r12d
test ebx, ebx
jne 0x1400160ad
movups xmmword [r13], xmm6
jmp 0x1400160cb
xor r12d, r12d
mov r14d, r12d
jmp 0x140016033
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm6
call fcn.140019230
test rsi, rsi
je 0x1400160cb
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.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 0x1400171b0
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 [0x14007e4e0]
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 0x140017212
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 0x140017212
movups xmm6, xmmword [rdi + 0x10]
jmp 0x1400172c4
lea rcx, [rsp + 0x50]
call fcn.140018a70
movups xmm6, xmmword [rax]
movq rbp, xmm6
test rbp, rbp
je 0x1400172c4
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 0x1400172a5
lea rcx, [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm6
call fcn.140019450
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
jmp 0x1400172c7
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov rdx, rbp
mov dword [rbp + 0x188], eax
mov rcx, qword [0x14007e4e0]
call fcn.1400172f0
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 0x1400172f0
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 [0x14007e4e0]
mov r14, rdx
mov rdi, rcx
cmp rcx, rsi
je 0x140017332
lea rcx, [rbp - 0x50]
call fcn.1400171b0
mov rbx, qword [rax]
test rbx, rbx
jne 0x14001736e
mov eax, 2
jmp 0x140017499
test rsi, rsi
je 0x14001735d
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 0x14001735d
movups xmm0, xmmword [rsi + 0x10]
jmp 0x140017366
test r14, r14
je 0x140017328
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 0x14001748f
test rbx, rbx
je 0x14001747a
cmp qword [rdi + 8], rsi
je 0x14001747a
test r14, r14
je 0x14001747a
lea rcx, [rdi + 0x10]
lea rdx, [rbp - 0x20]
call fcn.140018820
lea rcx, [rbx + 0x30]
lea rdx, [rbp - 0x40]
call fcn.140018820
mov rax, qword [rbx + 0x58]
test rax, rax
je 0x1400173d3
cmp qword [rax + 8], rdi
je 0x1400173e0
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400173c4
mov rdx, rdi
mov rcx, rbx
call fcn.140019870
mov esi, eax
mov rdx, qword [rbp - 0x40]
mov rcx, r15
lock xadd qword [rbp - 0x38], rcx
or rbx, 0xffffffffffffffff
test rcx, rcx
jne 0x14001741a
lea rax, [rbp - 0x40]
lock cmpxchg qword [rdx], r15
lea rcx, [rbp - 0x40]
cmp rcx, rax
je 0x14001742d
lea rcx, [rbp - 0x28]
call fcn.1400187c0
mov rcx, r15
lock xadd qword [rbp - 0x38], rcx
xor eax, eax
lock cmpxchg qword [rcx + 0x10], rbx
je 0x14001742d
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 0x140017463
lea rax, [rbp - 0x20]
lock cmpxchg qword [rdx], r15
lea rcx, [rbp - 0x20]
cmp rcx, rax
je 0x140017476
lea rcx, [rbp - 8]
call fcn.1400187c0
mov rcx, r15
lock xadd qword [rbp - 0x18], rcx
xor eax, eax
lock cmpxchg qword [rcx + 0x10], rbx
je 0x140017476
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
test esi, esi
jne 0x14001748f
mov ecx, dword [rdi]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, listen
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 0x140017850
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
cmp dword [0x14007e4d8], 0
je 0x140017a78
mov qword [rsp + 0x80], rdi
mov rdi, qword [0x14007e4e0]
test rdi, rdi
je 0x140017a65
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 0x140017a4d
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.140017b00
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 0x140017946
lea rax, [rbp - 0x20]
mov qword [rdx + 8], rax
xor eax, eax
lock cmpxchg qword [rdx + 0x18], r14
je 0x140017906
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rax, rsi
lock xadd qword [rbp - 0x10], rax
test rax, rax
jne 0x140017946
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 0x14001793d
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 0x140017983
lea rax, [rbp - 0x20]
lock cmpxchg qword [rdx], rsi
lea rcx, [rbp - 0x20]
cmp rcx, rax
je 0x140017996
lea rcx, [rbp - 8]
call fcn.1400187c0
mov rcx, rsi
lock xadd qword [rbp - 0x18], rcx
xor eax, eax
lock cmpxchg qword [rcx + 0x10], r14
je 0x140017996
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
cmp qword [rdi + 0x178], 0
mov rsi, qword [rsp + 0x78]
je 0x140017a1a
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 0x1400179d7
mov rax, qword [rdx + 0x10]
mov qword [r9 + 0x10], rax
mov r9, qword [rdx + 0x10]
test r9, r9
je 0x1400179e8
mov rax, qword [rdx + 0x18]
mov qword [r9 + 0x18], rax
cmp qword [r8 + 0x178], rdx
jne 0x1400179fc
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 0x1400179b0
cmp dword [rdi + 0x184], 1
mov r14, qword [rsp + 0x88]
jne 0x140017a4d
movups xmm0, xmmword [rdi + 0x10]
lea rcx, [rbp - 0x30]
movaps xmmword [rbp - 0x30], xmm0
call fcn.140019230
mov rax, qword [0x14007e4e0]
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 0x140018450
Capabilities:
Get thread local storage value

Disassembly:
xor r8d, r8d
jmp 0x140018450
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 0x140018594
mov rax, qword [rcx]
test rax, rax
je 0x140018594
cmp rax, 0xffffffffffffffff
jne 0x140018498
call fcn.140018320
mov dword [rsp + 0x70], eax
test eax, 0xffffffef
jne 0x1400184cf
mov qword [rsp + 0x80], rdi
mov rdi, qword [rbx]
lea rcx, [rdi + 0x18]
call fcn.140019e10
test eax, eax
jne 0x1400184bf
inc dword [rdi]
lea rcx, [rdi + 0x18]
call fcn.140019b50
test eax, eax
je 0x1400184e1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.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 [0x14007e4e8]
mov qword [rsp + 0x30], rax
lea rax, [0x1400186f0]
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 0x14001853e
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 [0x14007e4e8]
lea rdx, [rsp + 0x38]
mov rcx, rsi
mov qword [rsp + 0x48], rbp
call fcn.1400172f0
mov rcx, r14
call fcn.140017060
mov rsi, qword [rsp + 0x78]
mov dword [rsp + 0x70], eax
test eax, eax
jne 0x140018581
lea rcx, [rdi + 0x10]
mov rdx, r15
call fcn.140019cd0
test eax, eax
je 0x140018581
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
mov dword [rsp + 0x70], ecx
mov ecx, 1
call fcn.140018b60
mov eax, dword [rsp + 0x70]
jmp 0x1400184c7
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rbp
ret

Function at 0x140018b60
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, qword [0x14007e4e8]
mov esi, ecx
test rdi, rdi
jne 0x140018b85
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 0x140018bd1
test esi, esi
je 0x140018bc1
mov rax, qword [rdi]
test rax, rax
je 0x140018bc1
mov rcx, qword [rdi + 8]
call rax
mov rdx, qword [rdi + 0x10]
mov rcx, qword [0x14007e4e8]
call fcn.1400172f0
mov rax, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140018be0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
cmp dword [0x14007e4d8], 0
je 0x140018bf7
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 [0x14007e4d8], 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
jne 0x140018c2a
mov qword [0x14007e4e0], rdi
jmp 0x140018c97
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
cmp eax, 0xffffffff
jne 0x140018c47
mov rcx, rbx
mov edi, listen
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor ebx, ebx
mov qword [0x14007e4e0], rbx
test edi, edi
jne 0x140018c97
lea edx, [rdi + 0x20]
lea ecx, [rdi + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
jne 0x140018c6f
mov qword [0x14007e4e8], rdi
jmp 0x140018c97
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
cmp eax, 0xffffffff
jne 0x140018c8c
mov rcx, rbx
mov edi, listen
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor ebx, ebx
mov qword [0x14007e4e8], rbx
test edi, edi
je 0x140018c9c
call fcn.140018cc0
mov eax, dword [0x14007e4d8]
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x140019780
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 [0x14007e4e0]
xor edi, edi
mov ebp, ecx
test rsi, rsi
jne 0x1400197a8
mov esi, edi
jmp 0x1400197c3
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 0x1400197de
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
test byte [rsi + 0x194], 1
je 0x140019810
mov eax, ebp
dec eax
je 0x1400197f6
dec eax
jne 0x1400197f9
or edi, 0xffffffff
jmp 0x1400197f9
mov edi, dword [rsi + 0x48]
call fcn.140017850
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__endthreadex]
nop word [rax + rax]
mov rdi, qword [0x14007e4e8]
test rdi, rdi
je 0x14001985c
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 0x14001985c
mov rax, qword [rdi]
test rax, rax
je 0x14001984a
mov rcx, qword [rdi + 8]
call rax
mov rdx, qword [rdi + 0x10]
mov rcx, qword [0x14007e4e8]
call fcn.1400172f0
jmp 0x140019810
lea rcx, [rsi + 0x70]
mov edx, ebp
call qword [sym.imp.VCRUNTIME140.dll_longjmp]
int3
Function at 0x140019cd0
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.1400174b0
test rbx, rbx
jne 0x140019d07
or r15d, 0xffffffff
jmp 0x140019d12
mov rcx, rbx
call fcn.140018e30
mov r15d, eax
lea rcx, [rdi + 8]
call fcn.140016a80
mov dword [rsp + 0x70], eax
test eax, eax
jne 0x140019dda
lea rcx, [rdi + 8]
cmp qword [r14], rbp
jne 0x140019d46
call fcn.140017060
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x140019de6
dec dword [rdi]
mov ebx, dword [rdi]
call fcn.140017060
test ebx, ebx
jns 0x140019dcf
mov rsi, qword [0x14007e4e8]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rax
lea rax, [0x140018f40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x38], rax
test rsi, rsi
je 0x140019da6
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 [0x14007e4e8]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov qword [rsp + 0x40], rbp
call fcn.1400172f0
mov rcx, qword [rdi + 0x10]
mov edx, r15d
call fcn.140018120
mov ecx, eax
mov dword [rsp + 0x70], eax
call fcn.140018b60
cmp dword [rsp + 0x70], 0
jne 0x140019dda
xor eax, eax
jmp 0x140019de9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.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