joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001e61c
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rbp, rcx
mov ecx, dword [0x14003d17c]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or ebx, 0xffffffff
xor r12d, r12d
mov rdi, rax
test rax, rax
jne 0x14001e66c
mov ebx, dword [0x14003d17c]
lea rdx, [rsp + 0x78]
mov ecx, ebx
mov dword [rsp + 0x78], r12d
lea rdi, [rsp + 0x78]
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 r15, [0x140035650]
mov r14d, 0x1df
cmp r10, rax
je 0x14001e6cd
test byte [r10 + 0x1c], 1
je 0x14001e6cd
mov eax, dword [rdi]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14001e6ac
mov eax, ecx
mov ecx, r14d
sub rcx, rax
jmp 0x14001e6af
mov rcx, r12
lea r9, [rcx + r15]
mov qword [rsp + 0x20], rbp
mov rcx, qword [r10 + 0x10]
lea r8, [0x140036cb8]
mov edx, 0x42
call fcn.140001370
lea rcx, str.NearFieldProximity_Global_Share_Content_AppId
call qword [sym.imp.api_ms_win_shcore_sysinfo_l1_1_0.dll_SetCurrentProcessExplicitAppUserModelID]
mov esi, eax
test eax, eax
js 0x14001e75c
lea rcx, [rbp + 0x18]
mov rax, rbp
neg rax
lea r15, [rbp + 0x120]
sbb rsi, rsi
and rsi, rcx
mov rcx, qword [r15]
test rcx, rcx
je 0x14001e70f
mov qword [r15], r12
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov r8, r15
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ProximityCommon.dll_Ordinal_22]
mov esi, eax
test eax, eax
js 0x14001e755
mov rcx, qword [r15]
xor r9d, r9d
mov rdx, qword [rbp + 0x118]
xor r8d, r8d
mov qword [rsp + 0x30], r12
mov word [rsp + 0x28], r12w
mov rax, qword [rcx]
mov dword [rsp + 0x20], 1
mov rax, qword [rax + 0x18]
call qword [0x140034e68]
mov esi, eax
lea r15, [0x140035650]
mov rcx, qword [0x14003d048]
lea rax, [0x14003d048]
cmp rcx, rax
je 0x14001e7ae
test byte [rcx + 0x1c], 1
je 0x14001e7ae
mov eax, dword [rdi]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x14001e789
mov eax, edx
sub r14, rax
jmp 0x14001e78c
mov r14, r12
mov rcx, qword [rcx + 0x10]
lea r9, [r14 + r15]
mov edx, 0x43
mov dword [rsp + 0x28], esi
lea r8, [0x140036cb8]
mov qword [rsp + 0x20], rbp
call fcn.140001730
dec dword [rdi]
cmp ebx, 0xffffffff
je 0x14001e7cc
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14001e7cc
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, esi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14001fa08
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 r14
push r15
sub rsp, 0x50
mov rbp, 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 0x14001fa59
mov ebx, dword [0x14003d17c]
lea rdx, [rsp + 0x70]
and dword [rsp + 0x70], eax
lea rdi, [rsp + 0x70]
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 r14d, 0x1df
cmp r10, rax
je 0x14001fac5
test byte [r10 + 0x1c], 1
je 0x14001fac5
mov eax, dword [rdi]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14001fa99
mov eax, ecx
mov ecx, r14d
sub rcx, rax
jmp 0x14001fa9b
xor ecx, ecx
lea r9, [rcx + rdx]
mov qword [rsp + 0x28], r15
mov rcx, qword [r10 + 0x10]
lea r8, [0x140036cb8]
mov edx, 0x4f
mov qword [rsp + 0x20], rbp
call fcn.140001470
mov r10, qword [0x14003d048]
mov rcx, qword [rbp + 0x160]
lea rax, [rcx + 1]
neg rax
sbb esi, esi
and esi, 0x8000000e
cmp rcx, 0xffffffffffffffff
jne 0x14001fb75
lea r8d, [rcx + 0x21]
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_memset
and dword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x34], 1
mov qword [rsp + 0x38], r15
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_1.dll_PowerCreateRequest]
mov qword [rbp + 0x160], rax
cmp rax, 0xffffffffffffffff
je 0x14001fb46
mov edx, 3
mov rcx, rax
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_1.dll_PowerSetRequest]
test eax, eax
jne 0x14001fb46
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
or qword [rbp + 0x160], 0xffffffffffffffff
cmp qword [rbp + 0x160], 0xffffffffffffffff
jne 0x14001fb6e
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]
lea rax, [0x14003d048]
cmp r10, rax
je 0x14001fbc7
test byte [r10 + 0x1c], 1
je 0x14001fbc7
mov eax, dword [rdi]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14001fb9c
mov eax, ecx
sub r14, rax
jmp 0x14001fb9f
xor r14d, r14d
mov rcx, qword [r10 + 0x10]
lea r9, [0x140035650]
add r9, r14
mov dword [rsp + 0x28], esi
mov edx, 0x50
mov qword [rsp + 0x20], rbp
lea r8, [0x140036cb8]
call fcn.140001730
dec dword [rdi]
cmp ebx, 0xffffffff
je 0x14001fbe5
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14001fbe5
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
lea r11, [rsp + 0x50]
mov eax, esi
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
Function at 0x14001fc04
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 r15
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 0x14001fc52
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 rcx, qword [0x14003d048]
lea r15, [0x14003d048]
lea r8, [0x140035650]
mov esi, 0x1df
lea r12d, [rsi + 2]
cmp rcx, r15
je 0x14001fcbe
test byte [rcx + 0x1c], 1
je 0x14001fcbe
mov eax, dword [rdi]
lea edx, [rax + rax*4]
cmp edx, r12d
ja 0x14001fc90
mov eax, edx
mov edx, esi
sub rdx, rax
jmp 0x14001fc92
xor edx, edx
mov rcx, qword [rcx + 0x10]
lea r9, [rdx + r8]
mov edx, 0x51
mov qword [rsp + 0x20], rbp
lea r8, [0x140036cb8]
call fcn.140001370
mov rcx, qword [0x14003d048]
lea r8, [0x140035650]
cmp qword [rbp + 0x160], 0xffffffffffffffff
je 0x14001fd2d
cmp rcx, r15
je 0x14001fd04
test byte [rcx + 0x1c], 4
je 0x14001fd04
mov eax, dword [rdi]
inc eax
lea edx, [rax + rax*4]
cmp edx, r12d
ja 0x14001fce9
mov eax, edx
mov rdx, rsi
sub rdx, rax
jmp 0x14001fceb
xor edx, edx
mov rcx, qword [rcx + 0x10]
lea r9, [rdx + r8]
mov edx, 0x52
lea r8, [0x140036cb8]
call fcn.1400012b0
mov rcx, qword [rbp + 0x160]
mov edx, 3
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_1.dll_PowerClearRequest]
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
or qword [rbp + 0x160], 0xffffffffffffffff
jmp 0x14001fd6d
cmp rcx, r15
je 0x14001fdb6
test byte [rcx + 0x1c], 8
je 0x14001fd74
mov eax, dword [rdi]
inc eax
lea edx, [rax + rax*4]
cmp edx, r12d
ja 0x14001fd52
mov eax, edx
mov rdx, rsi
sub rdx, rax
jmp 0x14001fd54
xor edx, edx
mov rcx, qword [rcx + 0x10]
lea r9, [rdx + r8]
mov edx, 0x53
lea r8, [0x140036cb8]
call fcn.1400012b0
mov rcx, qword [0x14003d048]
cmp rcx, r15
je 0x14001fdb6
test byte [rcx + 0x1c], 1
je 0x14001fdb6
mov eax, dword [rdi]
lea edx, [rax + rax*4]
cmp edx, r12d
ja 0x14001fd90
mov eax, edx
sub rsi, rax
jmp 0x14001fd92
xor esi, esi
mov rcx, qword [rcx + 0x10]
lea r9, [0x140035650]
add r9, rsi
mov qword [rsp + 0x20], rbp
mov edx, 0x54
lea r8, [0x140036cb8]
call fcn.140001370
dec dword [rdi]
cmp ebx, 0xffffffff
je 0x14001fdd4
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14001fdd4
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 r12
pop rdi
ret
Function at 0x140021654
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
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 0x14002169c
mov ebx, dword [0x14003d17c]
lea rdx, [rsp + 0x58]
and dword [rsp + 0x58], eax
lea rdi, [rsp + 0x58]
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 r14d, 0x1df
cmp r10, rax
je 0x140021705
test byte [r10 + 0x1c], 1
je 0x140021705
mov eax, dword [rdi]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x1400216dc
mov eax, ecx
mov ecx, r14d
sub rcx, rax
jmp 0x1400216de
xor ecx, ecx
mov rax, qword [rbp + 0x48]
lea r9, [rcx + rdx]
mov rcx, qword [r10 + 0x10]
lea r8, [0x140036cb8]
mov qword [rsp + 0x28], rax
mov edx, 0x6a
mov qword [rsp + 0x20], rbp
call fcn.14001abac
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.USER32.dll_IsWindowVisible]
cmp eax, 1
sete sil
cmp eax, 1
jne 0x1400217b0
mov rcx, qword [rbp + 0x48]
lea r9d, [rax + 3]
and dword [rsp + 0x50], 0
lea r8, [rsp + 0x50]
lea edx, [rax + 0xd]
call qword [sym.imp.dwmapi.dll_DwmGetWindowAttribute]
mov rcx, qword [0x14003d048]
mov r8d, eax
test eax, eax
js 0x140021753
cmp dword [rsp + 0x50], 0
sete sil
jmp 0x1400217b7
lea rax, [0x14003d048]
cmp rcx, rax
je 0x1400217ab
test byte [rcx + 0x1c], 4
je 0x1400217ab
mov eax, dword [rdi]
inc eax
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x14002177e
mov eax, edx
mov rdx, r14
sub rdx, rax
jmp 0x140021780
xor edx, edx
mov rcx, qword [rcx + 0x10]
lea r9, [0x140035650]
add r9, rdx
mov dword [rsp + 0x20], r8d
mov edx, 0x6b
lea r8, [0x140036cb8]
call fcn.140001304
mov rcx, qword [0x14003d048]
xor sil, sil
jmp 0x1400217b7
mov rcx, qword [0x14003d048]
lea rax, [0x14003d048]
cmp rcx, rax
je 0x14002180c
test byte [rcx + 0x1c], 1
je 0x14002180c
mov eax, dword [rdi]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x1400217dd
mov eax, edx
sub r14, rax
jmp 0x1400217e0
xor r14d, r14d
mov rcx, qword [rcx + 0x10]
lea r9, [0x140035650]
movzx eax, sil
lea r8, [0x140036cb8]
mov dword [rsp + 0x28], eax
add r9, r14
mov edx, 0x6c
mov qword [rsp + 0x20], rbp
call fcn.140001730
dec dword [rdi]
cmp ebx, 0xffffffff
je 0x14002182a
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14002182a
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov rbx, qword [rsp + 0x60]
mov al, sil
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140023770
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r13d, ecx
mov rdi, r9
mov ecx, dword [0x14003d17c]
mov r12, r8
mov rbp, rdx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or ebx, 0xffffffff
mov r14, rax
test rax, rax
jne 0x1400237cb
mov ebx, dword [0x14003d17c]
lea rdx, [rsp + 0x30]
and dword [rsp + 0x30], eax
lea r14, [rsp + 0x30]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
inc dword [r14]
mov r10, qword [0x14003d048]
lea rax, [0x14003d048]
lea rdx, [0x140035650]
mov r15d, 0x1df
cmp r10, rax
je 0x140023832
test byte [r10 + 0x1c], 1
je 0x140023832
mov eax, dword [r14]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14002380d
mov eax, ecx
mov ecx, r15d
sub rcx, rax
jmp 0x14002380f
xor ecx, ecx
lea r9, [rcx + rdx]
mov qword [rsp + 0x28], r12
mov rcx, qword [r10 + 0x10]
lea r8, [0x140036d18]
mov edx, ntohl
mov qword [rsp + 0x20], rbp
call fcn.14000b660
mov ecx, 0x20
call fcn.140030ea0
mov rsi, rax
test rax, rax
je 0x14002385e
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x20]
call sub.msvcrt.dll_memset
and qword [rsi + 8], 0
and qword [rsi + 0x10], 0
jmp 0x140023860
xor esi, esi
test rsi, rsi
je 0x1400238ec
mov dword [rsi], r13d
mov qword [rsi + 0x18], rdi
mov dword [rdi], 1
test rbp, rbp
je 0x140023898
lea rdi, [rsi + 0x10]
mov rcx, qword [rdi]
and qword [rdi], 0
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.api_ms_win_shcore_obsolete_l1_1_0.dll_SHStrDupW]
test r12, r12
je 0x1400238ba
lea rdi, [rsi + 8]
mov rcx, qword [rdi]
and qword [rdi], 0
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.api_ms_win_shcore_obsolete_l1_1_0.dll_SHStrDupW]
mov rcx, rsi
call fcn.1400233a4
mov rcx, qword [rsi + 0x10]
mov edi, eax
and qword [rsi + 0x10], 0
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov rcx, qword [rsi + 8]
and qword [rsi + 8], 0
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov rcx, rsi
call fcn.140030104
jmp 0x1400238f1
mov edi, 0x8007000e
mov rcx, qword [0x14003d048]
lea rax, [0x14003d048]
cmp rcx, rax
je 0x140023945
test byte [rcx + 0x1c], 1
je 0x140023945
mov eax, dword [r14]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x14002391f
mov eax, edx
sub r15, rax
jmp 0x140023922
xor r15d, r15d
mov rcx, qword [rcx + 0x10]
lea r9, [0x140035650]
add r9, r15
mov dword [rsp + 0x20], edi
mov edx, reloc.WS2_32.dll_ntohl
lea r8, [0x140036d18]
call fcn.140001304
or eax, 0xffffffff
add dword [r14], eax
cmp ebx, eax
je 0x140023966
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x140023966
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 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400239ec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor r9d, r9d
mov eax, r8d
mov rsi, rdx
shr eax, 4
mov ebx, r8d
mov rbp, rcx
mov rcx, rsi
mov edi, 0x80004005
lea r15d, [r9 + 1]
add ax, r15w
lea edx, [r9 + 6]
movzx r8d, ax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindResourceExW]
xor r14d, r14d
test rax, rax
je 0x140023a95
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
test rax, rax
je 0x140023a95
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LockResource]
mov rcx, rax
test rax, rax
je 0x140023a95
and ebx, 0xf
jbe 0x140023a74
mov edx, ebx
movzx eax, word [rcx]
add eax, r15d
lea rcx, [rcx + rax*2]
sub rdx, r15
jne 0x140023a65
cmp word [rcx], r14w
lea rax, [rcx + 2]
movzx r8d, word [rcx]
lea rdx, [0x140035af8]
cmovne rdx, rax
mov rcx, rbp
call fcn.140023bb4
mov edi, eax
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140024460
Capabilities:
Allocate thread local storage
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r14
sub rsp, 0x250
mov rax, qword [0x14003d0d8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r14, rcx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcessId]
lea r8, str.ComTaskPool:_d
mov edx, 0x104
mov r9d, eax
lea rcx, [rsp + 0x30]
call fcn.1400104f0
mov ebx, eax
test eax, eax
js 0x1400245c8
mov r12d, 0x80004005
cmp dword [0x14003d120], 0xffffffff
jne 0x1400245c8
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
je 0x14002452f
and dword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSemaphore]
test eax, eax
jne 0x14002450c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x12a
je 0x1400244e6
jmp 0x140024521
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x20]
mov dword [0x14003d120], eax
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x1400245c0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
jne 0x140024547
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsAlloc]
mov edi, eax
cmp eax, 0xffffffff
jne 0x140024563
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
test ebx, ebx
cmovns ebx, r12d
jmp 0x1400245c0
lea r8d, [rax + 1]
mov edx, edi
lea r9, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_2_1.dll_CreateSemaphoreW]
mov rsi, rax
test rax, rax
je 0x14002459e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xb7
je 0x140024593
mov dword [0x14003d120], edi
jmp 0x1400245c0
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x1400245b8
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
test ebx, ebx
cmovns ebx, r12d
mov ecx, edi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsFree]
test ebx, ebx
jns 0x1400244ba
mov eax, dword [0x14003d120]
mov dword [r14], eax
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400304d0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r12
pop rdi
ret
Function at 0x140024e3c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rdi, rcx
call fcn.1400243d0
mov ebx, eax
test eax, eax
js 0x140024f3d
xor edx, edx
xor ecx, ecx
mov r9d, 0x1f0003
lea r8d, [rdx + 1]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventExW]
mov qword [rdi + 0x38], rax
mov r14d, 0x80004005
test rax, rax
jne 0x140024ea8
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
test ebx, ebx
cmovns ebx, r14d
test ebx, ebx
js 0x140024f3d
lock inc dword [0x14003da60]
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [0x140034e68]
lea rax, [rsp + 0x48]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x140024e20]
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov rsi, rax
test rax, rax
je 0x140024eee
xor ebx, ebx
jmp 0x140024f0c
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
test ebx, ebx
cmovns ebx, r14d
test ebx, ebx
js 0x140024f17
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x140024f3d
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov rcx, qword [rdi + 0x48]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
and qword [rdi + 0x48], 0
lock dec dword [0x14003da60]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140025ec8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 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 0x140025f11
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 rcx, qword [0x14003d048]
lea r12, [0x14003d048]
lea r8, [0x140035650]
mov r14d, 0x1df
cmp rcx, r12
je 0x140025f77
test byte [rcx + 0x1c], 1
je 0x140025f77
mov eax, dword [rdi]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x140025f50
mov eax, edx
mov edx, r14d
sub rdx, rax
jmp 0x140025f52
xor edx, edx
mov rcx, qword [rcx + 0x10]
lea r9, [rdx + r8]
mov edx, ntohl
mov qword [rsp + 0x20], rsi
lea r8, [0x140036d28]
call fcn.140001370
mov rcx, qword [0x14003d048]
mov r8, qword [rsi + 0x58]
test r8, r8
je 0x140025fb6
mov rax, qword [r8]
lea rdx, [rsi + 0x18]
mov rcx, r8
mov rax, qword [rax + 0x18]
call qword [0x140034e68]
mov rcx, qword [rsi + 0x58]
test rcx, rcx
je 0x140025faf
and qword [rsi + 0x58], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov rcx, qword [0x14003d048]
mov rdx, qword [rsi + 0x50]
test rdx, rdx
je 0x140025fdb
and qword [rsi + 0x50], 0
mov rcx, rdx
mov rax, qword [rdx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov rcx, qword [0x14003d048]
cmp rcx, r12
je 0x140026021
test byte [rcx + 0x1c], 1
je 0x140026021
mov eax, dword [rdi]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x140025ffa
mov eax, edx
sub r14, rax
jmp 0x140025ffd
xor r14d, r14d
mov rcx, qword [rcx + 0x10]
lea r9, [0x140035650]
add r9, r14
mov qword [rsp + 0x20], rsi
mov edx, ntohl
lea r8, [0x140036d28]
call fcn.140001370
dec dword [rdi]
cmp ebx, 0xffffffff
je 0x14002603f
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14002603f
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 rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop r12
pop rdi
ret