joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012ba0
Capabilities:
Create thread
Get thread local storage value
Set 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, 0x30
mov r14, rcx
mov r15, rdx
mov ecx, dword [0x14003d17c]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or ebx, 0xffffffff
mov rdi, rax
test rax, rax
jne 0x140012bf1
mov ebx, dword [0x14003d17c]
lea rdx, [rsp + 0x50]
and dword [rsp + 0x50], eax
lea rdi, [rsp + 0x50]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
inc dword [rdi]
mov r10, qword [0x14003d048]
lea rax, [0x14003d048]
lea rdx, [0x140035650]
mov esi, 0x1df
cmp r10, rax
je 0x140012c4a
test byte [r10 + 0x1c], 1
je 0x140012c4a
mov eax, dword [rdi]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x140012c2f
mov eax, ecx
mov ecx, esi
sub rcx, rax
jmp 0x140012c31
xor ecx, ecx
lea r9, [rcx + rdx]
mov edx, 0x2c
mov rcx, qword [r10 + 0x10]
lea r8, [0x140036400]
call fcn.1400012b0
mov rax, qword [r14]
mov rcx, r14
mov byte [r15], 0
mov rax, qword [rax + 8]
call qword [0x140034e68]
and qword [rsp + 0x28], 0
lea r8, [0x140012db0]
and dword [rsp + 0x20], 0
mov r9, r14
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov rbp, rax
test rax, rax
jne 0x140012ca8
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
lea r14, [0x14003d048]
lea r15, [0x140035650]
jmp 0x140012d2f
mov edx, 0x3a98
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
test eax, eax
je 0x140012d11
mov r10, qword [0x14003d048]
lea r14, [0x14003d048]
cmp r10, r14
je 0x140012d1f
test byte [r10 + 0x1c], 8
je 0x140012d1f
mov eax, dword [rdi]
inc eax
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x140012ced
mov eax, ecx
mov rcx, rsi
sub rcx, rax
jmp 0x140012cef
xor ecx, ecx
lea r15, [0x140035650]
mov edx, 0x2d
lea r9, [rcx + r15]
mov rcx, qword [r10 + 0x10]
lea r8, [0x140036400]
call fcn.1400012b0
jmp 0x140012d26
mov al, byte [r14 + 0xc]
lea r14, [0x14003d048]
mov byte [r15], al
lea r15, [0x140035650]
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [0x14003d048]
cmp rcx, r14
je 0x140012d70
test byte [rcx + 0x1c], 1
je 0x140012d70
mov eax, dword [rdi]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x140012d55
mov eax, edx
sub rsi, rax
jmp 0x140012d57
xor esi, esi
mov rcx, qword [rcx + 0x10]
lea r9, [rsi + r15]
mov edx, 0x2e
lea r8, [0x140036400]
call fcn.1400012b0
dec dword [rdi]
cmp ebx, 0xffffffff
je 0x140012d8e
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x140012d8e
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140013b6c
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x250
mov rax, qword [0x14003d0d8]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor r15d, r15d
lea rax, [rsp + 0x30]
mov ebx, 0x104
mov qword [r8], r15
mov r9d, ebx
lea rdx, [rsp + 0x30]
sub rcx, rax
mov r14, r8
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x140013bdf
movzx eax, word [rcx + rdx]
test ax, ax
je 0x140013bdf
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x140013bbd
lea rax, [rdx - 2]
test r9, r9
lea r8, [0x140036490]
cmovne rax, rdx
lea rcx, [rsp + 0x30]
mov rdx, rbx
mov word [rax], r15w
call fcn.140010bd4
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
jne 0x140013c4a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x140013d0f
mov edx, 0xc8
mov rcx, qword [rbp + 0x168]
lea r8, [0x140036444]
call fcn.1400139b8
mov esi, eax
jmp 0x140013d12
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], r15d
mov rcx, rdi
mov dword [rsp + 0x20], r15d
call fcn.140013a28
mov esi, eax
test eax, eax
jns 0x140013c80
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xce
call fcn.140013980
jmp 0x140013d12
lea r8, [0x140036498]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140010bd4
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov rbx, rax
test rax, rax
jne 0x140013cb8
mov edx, 0xd4
jmp 0x140013c30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140013a28
mov esi, eax
test eax, eax
jns 0x140013cee
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xd6
call fcn.140013980
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
jne 0x140013d12
jmp 0x140013d52
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x140013d64
movsxd rcx, dword [rsp + 0x20]
movsxd rax, dword [rsp + 0x24]
shl rcx, 0x1f
or rax, rcx
mov qword [r14], rax
mov esi, r15d
test rdi, rdi
je 0x140013d24
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x140013d76
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400304d0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, qword [rbp + 0x168]
mov edx, 0x878
call fcn.1400139d0
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x878
call fcn.1400139d0
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x878
call fcn.1400139d0
int3
Function at 0x140016110
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov rbp, rcx
mov ecx, dword [0x14003d17c]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or ebx, 0xffffffff
mov rdi, rax
test rax, rax
jne 0x14001615f
mov ebx, dword [0x14003d17c]
lea rdx, [rsp + 0x88]
and dword [rsp + 0x88], eax
lea rdi, [rsp + 0x88]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
inc dword [rdi]
mov r10, qword [0x14003d048]
lea r13, [0x14003d048]
lea rdx, [0x140035650]
mov r14d, 0x1df
cmp r10, r13
je 0x1400161bf
test byte [r10 + 0x1c], 1
je 0x1400161bf
mov eax, dword [rdi]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14001619f
mov eax, ecx
mov ecx, r14d
sub rcx, rax
jmp 0x1400161a1
xor ecx, ecx
lea r9, [rcx + rdx]
mov qword [rsp + 0x20], rbp
mov rcx, qword [r10 + 0x10]
lea r8, [0x1400367b8]
mov edx, reloc.ProximityCommon.dll_Ordinal_24
call fcn.140001370
mov rcx, qword [rbp + 0xd8]
and qword [rsp + 0x80], 0
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
test eax, eax
jne 0x1400161ff
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
test esi, esi
js 0x14001629d
mov rdx, qword [rbp + 0x88]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov qword [rsp + 0x40], rbp
lea rax, [0x140015740]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea r8d, [r9 + 3]
and qword [rsp + 0x20], 0
lea ecx, [r9 + 5]
call qword [sym.imp.api_ms_win_devices_query_l1_1_0.dll_DevCreateObjectQueryFromId]
mov esi, eax
test eax, eax
js 0x14001629d
mov rcx, qword [rbp + 0xd8]
or edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
test eax, eax
jne 0x140016268
mov esi, dword [rbp + 0x100]
jmp 0x140016286
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.api_ms_win_devices_query_l1_1_0.dll_DevCloseObjectQuery]
and qword [rsp + 0x80], 0
mov rcx, qword [0x14003d048]
cmp rcx, r13
je 0x1400162ee
test byte [rcx + 0x1c], 1
je 0x1400162ee
mov eax, dword [rdi]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x1400162c3
mov eax, edx
sub r14, rax
jmp 0x1400162c6
xor r14d, r14d
mov rcx, qword [rcx + 0x10]
lea r9, [0x140035650]
add r9, r14
mov dword [rsp + 0x28], esi
mov edx, 0x19
mov qword [rsp + 0x20], rbp
lea r8, [0x1400367b8]
call fcn.140001730
dec dword [rdi]
cmp ebx, 0xffffffff
je 0x14001630c
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14001630c
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov eax, esi
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400166e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r14, rcx
mov rbp, r8
mov ecx, dword [0x14003d17c]
mov r12d, edx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or ebx, 0xffffffff
mov rsi, rax
test rax, rax
jne 0x140016732
mov ebx, dword [0x14003d17c]
lea rdx, [rsp + 0x70]
and dword [rsp + 0x70], eax
lea rsi, [rsp + 0x70]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
inc dword [rsi]
mov r8, qword [0x14003d048]
lea rax, [0x14003d048]
lea rdx, [0x140035650]
mov r15d, 0x1df
cmp r8, rax
je 0x140016795
test byte [r8 + 0x1c], 1
je 0x140016795
mov eax, dword [rsi]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x140016772
mov eax, ecx
mov ecx, r15d
sub rcx, rax
jmp 0x140016774
xor ecx, ecx
lea r9, [rcx + rdx]
mov qword [rsp + 0x30], rbp
mov rcx, qword [r8 + 0x10]
mov edx, 0x1f
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r14
call fcn.140014f94
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [r14 + 0xf0], rax
test rax, rax
jne 0x1400167d3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
jmp 0x1400167d5
xor edi, edi
test edi, edi
js 0x14001685e
test byte [0x14003d7c0], 2
je 0x14001680c
mov rax, qword [r14 + 0x90]
lea rdx, [0x1400355e8]
mov r9, qword [r14 + 0x88]
mov r8, qword [r14 + 0xd0]
mov qword [rsp + 0x20], rax
call fcn.14001a6fc
mov r8, qword [r14 + 0x10]
lea rcx, [r14 + 0x38]
mov rdx, qword [r14]
mov r9d, r12d
mov qword [rsp + 0x20], rbp
call fcn.14001a514
mov edi, eax
test eax, eax
js 0x14001685e
mov rcx, qword [r14 + 0xf0]
mov edx, 0x2710
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
test eax, eax
je 0x14001685e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
mov rcx, qword [0x14003d048]
lea rax, [0x14003d048]
cmp rcx, rax
je 0x1400168b6
test byte [rcx + 0x1c], 1
je 0x1400168b6
mov eax, dword [rsi]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x14001688b
mov eax, edx
sub r15, rax
jmp 0x14001688e
xor r15d, r15d
mov rcx, qword [rcx + 0x10]
lea r9, [0x140035650]
add r9, r15
mov dword [rsp + 0x28], edi
mov edx, 0x20
mov qword [rsp + 0x20], r14
lea r8, [0x1400367b8]
call fcn.140001730
or eax, 0xffffffff
add dword [rsi], eax
cmp ebx, eax
je 0x1400168d6
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x1400168d6
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
lea r11, [rsp + 0x40]
mov eax, edi
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400168f4
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x30
mov rbp, rcx
mov ecx, dword [0x14003d17c]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or ebx, 0xffffffff
mov rdi, rax
test rax, rax
jne 0x140016942
mov ebx, dword [0x14003d17c]
lea rdx, [rsp + 0x50]
and dword [rsp + 0x50], eax
lea rdi, [rsp + 0x50]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
inc dword [rdi]
mov r10, qword [0x14003d048]
lea r12, [0x14003d048]
lea rdx, [0x140035650]
mov r14d, 0x1df
cmp r10, r12
je 0x1400169a2
test byte [r10 + 0x1c], 1
je 0x1400169a2
mov eax, dword [rdi]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x140016982
mov eax, ecx
mov ecx, r14d
sub rcx, rax
jmp 0x140016984
xor ecx, ecx
lea r9, [rcx + rdx]
mov qword [rsp + 0x20], rbp
mov rcx, qword [r10 + 0x10]
lea r8, [0x1400367b8]
mov edx, 0x21
call fcn.140001370
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
test eax, eax
jne 0x1400169d9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
test esi, esi
js 0x140016a8a
mov rcx, qword [rbp + 0x80]
lea rdx, [0x140016570]
mov r8, rbp
call qword [sym.imp.deviceassociation.dll_DafStartReadCeremonyData]
mov esi, eax
test eax, eax
jns 0x140016a4e
mov r10, qword [0x14003d048]
cmp r10, r12
je 0x140016adc
test byte [r10 + 0x1c], 0x10
je 0x140016a91
mov ecx, dword [rdi]
inc ecx
lea eax, [rcx + rcx*4]
cmp eax, 0x1e1
ja 0x140016a27
mov rcx, r14
sub rcx, rax
jmp 0x140016a29
xor ecx, ecx
lea r9, [0x140035650]
mov dword [rsp + 0x20], esi
add r9, rcx
lea r8, [0x1400367b8]
mov rcx, qword [r10 + 0x10]
mov edx, 0x22
call fcn.140001304
jmp 0x140016a8a
mov rcx, qword [rbp + 0xe0]
mov edx, 0x7530
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
test eax, eax
jne 0x140016a6c
mov esi, dword [rbp + 0x100]
jmp 0x140016a8a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
mov r10, qword [0x14003d048]
cmp r10, r12
je 0x140016adc
test byte [r10 + 0x1c], 1
je 0x140016adc
mov eax, dword [rdi]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x140016ab1
mov eax, ecx
sub r14, rax
jmp 0x140016ab4
xor r14d, r14d
mov rcx, qword [r10 + 0x10]
lea r9, [0x140035650]
add r9, r14
mov dword [rsp + 0x28], esi
mov edx, 0x23
mov qword [rsp + 0x20], rbp
lea r8, [0x1400367b8]
call fcn.140001730
dec dword [rdi]
cmp ebx, 0xffffffff
je 0x140016afa
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x140016afa
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov rbx, qword [rsp + 0x58]
mov eax, esi
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop r12
pop rdi
ret
Function at 0x1400172e8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x30
mov rsi, rcx
mov rbp, rdx
mov ecx, dword [0x14003d17c]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or ebx, 0xffffffff
mov rdi, rax
test rax, rax
jne 0x140017339
mov ebx, dword [0x14003d17c]
lea rdx, [rsp + 0x50]
and dword [rsp + 0x50], eax
lea rdi, [rsp + 0x50]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov r12d, 1
add dword [rdi], r12d
mov r10, qword [0x14003d048]
lea rax, [0x14003d048]
lea rdx, [0x140035650]
mov r14d, 0x1df
cmp r10, rax
je 0x14001739f
test byte [r10 + 0x1c], r12b
je 0x14001739f
mov eax, dword [rdi]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14001737f
mov eax, ecx
mov ecx, r14d
sub rcx, rax
jmp 0x140017381
xor ecx, ecx
lea r9, [rcx + rdx]
mov qword [rsp + 0x20], rsi
mov rcx, qword [r10 + 0x10]
lea r8, [0x1400367b8]
mov edx, 0x2f
call fcn.140001370
mov rax, qword [0x140035ac0]
sub rax, qword [rsi + 0x28]
jne 0x1400173b7
mov rax, qword [0x140035ac8]
sub rax, qword [rsi + 0x30]
xor ecx, ecx
test rax, rax
lea edx, [rcx + 2]
cmove ecx, edx
cmp byte [rsi + 0x104], 0
mov rdx, qword [rsi + 8]
cmovne ecx, r12d
test rdx, rdx
jne 0x1400173dd
mov rdx, qword [rsi + 0x90]
mov r8, qword [rsi + 0xb0]
mov r9, rbp
call fcn.140023770
mov ebp, eax
mov r10, qword [0x14003d048]
lea rax, [0x14003d048]
cmp r10, rax
je 0x140017446
test byte [r10 + 0x1c], r12b
je 0x140017446
mov ecx, dword [rdi]
lea edx, [rcx + rcx*4]
cmp edx, 0x1e1
ja 0x14001741b
mov eax, edx
sub r14, rax
jmp 0x14001741e
xor r14d, r14d
mov rcx, qword [r10 + 0x10]
lea r9, [0x140035650]
add r9, r14
mov dword [rsp + 0x28], ebp
mov edx, 0x30
mov qword [rsp + 0x20], rsi
lea r8, [0x1400367b8]
call fcn.140001730
dec dword [rdi]
cmp ebx, 0xffffffff
je 0x140017464
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x140017464
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov rbx, qword [rsp + 0x58]
mov eax, ebp
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r12
pop rdi
ret
Function at 0x140017cc4
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x30
mov rbp, rcx
mov r14d, edx
mov ecx, dword [0x14003d17c]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or ebx, 0xffffffff
mov rdi, rax
test rax, rax
jne 0x140017d15
mov ebx, dword [0x14003d17c]
lea rdx, [rsp + 0x50]
and dword [rsp + 0x50], eax
lea rdi, [rsp + 0x50]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
inc dword [rdi]
mov r10, qword [0x14003d048]
lea r12, [0x14003d048]
lea rdx, [0x140035650]
mov esi, 0x1df
cmp r10, r12
je 0x140017d78
test byte [r10 + 0x1c], 1
je 0x140017d78
mov eax, dword [rdi]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x140017d53
mov eax, ecx
mov ecx, esi
sub rcx, rax
jmp 0x140017d55
xor ecx, ecx
lea r9, [rcx + rdx]
mov dword [rsp + 0x28], r14d
mov rcx, qword [r10 + 0x10]
lea r8, [0x1400367b8]
mov edx, 0x3d
mov qword [rsp + 0x20], rbp
call fcn.140001730
mov rcx, qword [rbp + 0xf8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
test eax, eax
jne 0x140017e20
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx r8d, ax
or r8d, 0x80070000
test eax, eax
cmovle r8d, eax
mov eax, 0x80004005
test r8d, r8d
cmovns r8d, eax
test r8d, r8d
jns 0x140017e20
mov rcx, qword [0x14003d048]
cmp rcx, r12
je 0x140017e6d
test byte [rcx + 0x1c], 0x10
je 0x140017e27
mov eax, dword [rdi]
inc eax
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x140017de4
mov eax, edx
mov rdx, rsi
sub rdx, rax
jmp 0x140017de6
xor edx, edx
mov rax, qword [rbp + 0x88]
lea r14, [0x140035650]
mov rcx, qword [rcx + 0x10]
lea r9, [rdx + r14]
mov dword [rsp + 0x28], r8d
mov edx, 0x3e
lea r8, [0x1400367b8]
mov qword [rsp + 0x20], rax
call fcn.14000d534
mov rcx, qword [0x14003d048]
jmp 0x140017e2e
mov rcx, qword [0x14003d048]
lea r14, [0x140035650]
cmp rcx, r12
je 0x140017e6d
test byte [rcx + 0x1c], 1
je 0x140017e6d
mov eax, dword [rdi]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x140017e4d
mov eax, edx
sub rsi, rax
jmp 0x140017e4f
xor esi, esi
mov rcx, qword [rcx + 0x10]
lea r9, [rsi + r14]
mov edx, 0x3f
mov qword [rsp + 0x20], rbp
lea r8, [0x1400367b8]
call fcn.140001370
dec dword [rdi]
cmp ebx, 0xffffffff
je 0x140017e8b
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x140017e8b
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r12
pop rdi
ret
Function at 0x140019178
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x30
mov rsi, rcx
mov ecx, dword [0x14003d17c]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or ebx, 0xffffffff
mov rdi, rax
test rax, rax
jne 0x1400191c6
mov ebx, dword [0x14003d17c]
lea rdx, [rsp + 0x50]
and dword [rsp + 0x50], eax
lea rdi, [rsp + 0x50]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
inc dword [rdi]
mov r10, qword [0x14003d048]
lea r12, [0x14003d048]
lea rdx, [0x140035650]
mov r14d, 0x1df
cmp r10, r12
je 0x140019226
test byte [r10 + 0x1c], 1
je 0x140019226
mov eax, dword [rdi]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x140019206
mov eax, ecx
mov ecx, r14d
sub rcx, rax
jmp 0x140019208
xor ecx, ecx
lea r9, [rcx + rdx]
mov qword [rsp + 0x20], rsi
mov rcx, qword [r10 + 0x10]
lea r8, [0x1400367b8]
mov edx, 0x53
call fcn.140001370
mov rcx, rsi
call fcn.140019f8c
mov rcx, qword [0x140035ae0]
mov ebp, eax
cmp rcx, qword [rsi + 0x28]
jne 0x14001927d
mov rcx, qword [0x140035ae8]
cmp rcx, qword [rsi + 0x30]
jne 0x14001927d
cmp eax, 0x640018
jne 0x14001927d
mov rax, qword [rsi + 0x18]
lea r8, [0x140036550]
mov r9, qword [rsi + 0x20]
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.140019308
test eax, eax
js 0x14001927b
mov rcx, rsi
call fcn.140019f8c
xor ebp, ebp
mov rcx, qword [0x14003d048]
cmp rcx, r12
je 0x1400192ce
test byte [rcx + 0x1c], 1
je 0x1400192ce
mov eax, dword [rdi]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x1400192a3
mov eax, edx
sub r14, rax
jmp 0x1400192a6
xor r14d, r14d
mov rcx, qword [rcx + 0x10]
lea r9, [0x140035650]
add r9, r14
mov dword [rsp + 0x28], ebp
mov edx, 0x54
mov qword [rsp + 0x20], rsi
lea r8, [0x1400367b8]
call fcn.140001730
dec dword [rdi]
cmp ebx, 0xffffffff
je 0x1400192ec
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x1400192ec
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov rbx, qword [rsp + 0x58]
mov eax, ebp
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r12
pop rdi
ret
Function at 0x14001bf08
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rdx
mov rdi, rcx
mov rax, qword [rax + 8]
call qword [0x140034e68]
xor r9d, r9d
mov rdx, rdi
mov rcx, rbx
lea r8d, [r9 + 4]
call qword [sym.imp.api_ms_win_shcore_thread_l1_1_0.dll_SHCreateThread]
test eax, eax
je 0x14001bf40
xor ebx, ebx
jmp 0x14001bf72
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
test ebx, ebx
jns 0x14001bf72
mov rcx, qword [rdi]
mov rax, qword [rcx + 0x10]
mov rcx, rdi
call qword [0x140034e68]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret