joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14016e250
Capabilities:
Check if file exists
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push rdi
sub rsp, 0x280
mov rax, qword [0x1404af540]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor edi, edi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rdi
lea rdx, str.SoftwareSinoTestTestReadyInstallation
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], edi
mov qword [rsp + 0x50], rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14016e3d8
xor edx, edx
mov qword [rsp + 0x290], rbx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x38], rdi
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], rdi
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rdi
mov ebx, edi
mov dword [rsp + 0x58], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14016e396
cmp dword [rsp + 0x5c], 1
jne 0x14016e354
mov r9, 0xffffffffffffffff
lea r8, [0x1404113c0]
mov edx, 0x104
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14016e354
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x38], rdi
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], rdi
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], rax
inc ebx
mov edx, ebx
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x58], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x14016e310
mov rcx, qword [rsp + 0x50]
lea rax, [0x1404b0240]
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_SafeArrayCopy
lea rdx, [0x1404ba700]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1403ca460
add rsp, 0x280
pop rdi
ret
Function at 0x140179e80
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1404af540]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], bx
cmp edx, 3
jne 0x140179ee5
lea r9, str.DoPERR_TIMEOUT
mov edx, Ordinal_16
lea rcx, [rsp + 0x30]
call fcn.140004f70
call fcn.1401d56e0
mov r14, rax
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rbx
xor r8d, r8d
lea rdx, [0x140419d94]
mov rcx, rdi
call fcn.140006340
nop
mov dword [rsp + 0x20], 4
mov rsi, qword [rsp + 0x40]
mov r10, qword [rsp + 0x30]
mov r11, qword [rsp + 0x48]
test rsi, rsi
je 0x14017a013
lea r8, [rsp + 0x30]
cmp r11, 7
cmova r8, r10
movabs rdx, 0xcbf29ce484222325
mov rcx, rbx
lea r9, [rsi + rsi]
test r9, r9
je 0x140179f74
movabs rbp, 0x100000001b3
nop dword [rax + rax]
movzx eax, byte [r8 + rcx]
xor rdx, rax
imul rdx, rbp
inc rcx
cmp rcx, r9
jb 0x140179f60
mov rcx, qword [r14 + 0x38]
and rcx, rdx
add rcx, rcx
mov rax, qword [r14 + 0x20]
mov r9, qword [rax + rcx*8 + 8]
cmp r9, qword [r14 + 0x10]
je 0x140179fd9
mov rbp, qword [rax + rcx*8]
lea rax, [r9 + 0x10]
cmp qword [r9 + 0x28], 7
jbe 0x140179fa0
mov rax, qword [r9 + 0x10]
lea r8, [rsp + 0x30]
cmp r11, 7
cmova r8, r10
cmp rsi, qword [r9 + 0x20]
jne 0x14017a049
mov rdx, rsi
test rsi, rsi
je 0x140179fd6
sub r8, rax
movzx ecx, word [rax]
cmp word [rax + r8], cx
jne 0x14017a049
add rax, 2
sub rdx, 1
jne 0x140179fc2
mov rbx, r9
test rbx, rbx
cmove rbx, qword [r14 + 0x10]
cmp rbx, qword [r14 + 0x10]
je 0x14017a013
lea r8, [rbx + 0x30]
cmp rdi, r8
je 0x14017a013
mov rdx, r8
cmp qword [r8 + 0x18], 7
jbe 0x140179ffd
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
mov rcx, rdi
call fcn.1400050d0
mov r11, qword [rsp + 0x48]
mov r10, qword [rsp + 0x30]
cmp r11, 7
jbe 0x14017a05f
lea rdx, [r11*2 + 2]
mov rax, r10
cmp rdx, 0x1000
jb 0x14017a057
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14017a057
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
cmp r9, rbp
je 0x140179fd9
mov r9, qword [r9 + 8]
jmp 0x140179f91
mov rcx, r10
call fcn.1403ca488
mov rax, rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1403ca460
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140180460
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
sub rsp, 0x90
mov rax, qword [0x1404af540]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rcx, qword [0x1404af5e0]
lea r9, [rsp + 0x30]
xorps xmm0, xmm0
lea rdx, str.:POS_n
xor ebp, ebp
mov r8d, 5
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x34], ebp
xor bl, bl
movups xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x30], ebp
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x20], rbp
movups xmmword [rsp + 0x70], xmm0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1401805ec
cmp dword [rsp + 0x30], 5
jne 0x1401805ec
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, qword [0x1404af5e0]
lea r9, [rsp + 0x34]
mov qword [0x1404bac78], rax
lea rdx, [rsp + 0x40]
mov r8d, Ordinal_40
mov qword [0x1404bac80], 0x3e8
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401805e5
cmp dword [rsp + 0x34], 4
jbe 0x1401805e5
lea rdx, [0x14043c85c]
mov qword [0x1404bac80], rbp
lea rcx, [rsp + 0x40]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
je 0x1401805e5
mov qword [rsp + 0xa0], rsi
lea rdx, str.POS
lea rcx, [rsp + 0x40]
mov qword [rsp + 0xa8], rdi
call qword [sym.imp.VCRUNTIME140.dll_strstr]
lea rdx, [0x14043c868]
mov rsi, rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov rdi, rax
test rax, rax
je 0x14018059d
lea rcx, [rax + 3]
xor edx, edx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtod]
movsd qword [0x1404c1c18], xmm0
mov byte [rdi], bl
test rsi, rsi
je 0x1401805d5
lea rcx, [rsi + 4]
xor edx, edx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtod]
movsd qword [0x1404c33f0], xmm0
test rdi, rdi
je 0x1401805d5
movsd xmm1, qword [0x1404c1c18]
xorps xmm0, xmm0
comisd xmm1, xmm0
movzx ebx, bl
mov eax, 1
cmova ebx, eax
mov rsi, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0xa8]
mov qword [0x1404bac80], rbp
movzx eax, bl
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1403ca460
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop rbp
ret
Function at 0x1401a7940
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1404af540]
xor rax, rsp
mov qword [rsp + 0x28], rax
call fcn.1401ab0c0
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1401a7974
mov byte [rax + 8], 1
call fcn.1401aa410
call fcn.1401ab0c0
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
je 0x1401a7a46
mov ecx, dword [rax + 0xc]
cmp ecx, 1
jl 0x1401a7a46
sub ecx, 1
mov dword [rax + 0xc], ecx
jne 0x1401a7a46
call fcn.1401aa410
mov rbx, rax
mov qword [rsp + 0x20], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
call fcn.1401aa410
mov rdx, qword [rax + 0x28]
mov rax, qword [rdx + 8]
mov rdi, rdx
cmp byte [rax + 0x19], 0
jne 0x1401a79f7
mov ecx, dword [rsi + 0x10]
nop word [rax + rax]
cmp dword [rax + 0x20], ecx
jge 0x1401a79eb
mov rax, qword [rax + 0x10]
jmp 0x1401a79f1
mov rdi, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1401a79e0
cmp byte [rdi + 0x19], 0
jne 0x1401a7a05
mov eax, dword [rdi + 0x20]
cmp dword [rsi + 0x10], eax
jge 0x1401a7a08
mov rdi, rdx
call fcn.1401aa410
cmp rdi, qword [rax + 0x28]
je 0x1401a7a31
call fcn.1401aa410
lea rcx, [rax + 0x28]
mov rdx, rdi
call fcn.1401aa600
mov edx, reloc.SinoSPE.dll_Ordinal_48
mov rcx, rax
call fcn.1403ca488
mov dword [rsi + 0x10], 0xffffffff
test rbx, rbx
je 0x1401a7a46
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1403ca460
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1401aab30
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
lea rax, vtable.nbase::FrameworkThread.1.0
mov qword [rcx], rax
mov rax, qword [rcx + 0x20]
movsxd rdx, dword [rax + 4]
lea rax, vtable.nbase::FrameworkThread.0
mov qword [rdx + rcx + 0x20], rax
call fcn.1401aac30
lea rcx, [rbx + 0x58]
call fcn.140021010
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x1401aab7d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rbx + 0x40]
test rdi, rdi
je 0x1401aabb2
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1401aabb2
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], esi
cmp esi, 1
jne 0x1401aabb2
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.SinoSPE.dll_Ordinal_8]
lea rax, vtable.nbase::Thread.0
mov qword [rbx], rax
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1401aabf8
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x10]
test eax, eax
je 0x1401aabe9
test rcx, rcx
je 0x1401aabf8
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [rbx + 8], eax
mov qword [rbx + 0x10], rax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1401aac30
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x1404af540]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
xor edi, edi
cmp byte [rcx + 0x28], dil
je 0x1401aada3
cmp byte [rcx + 0x29], dil
jne 0x1401aad63
cmp qword [rcx + 0x30], rdi
je 0x1401aad63
mov byte [rcx + 0x29], 1
xorps xmm0, xmm0
movups xmmword [rbp + 0x37], xmm0
mov rax, qword [rcx + 0x20]
movsxd rcx, dword [rax + 4]
add rcx, 0x20
add rcx, rbx
lea rdx, [rbp + 0x37]
call fcn.140003770
lea rax, [0x1401aadd0]
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rdi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], rax
movdqu xmmword [rbp - 0x59], xmm0
mov rcx, qword [rbp + 0x3f]
test rcx, rcx
je 0x1401aacd9
mov rax, qword [rbp + 0x37]
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x51], rcx
lock inc dword [rcx + 0xc]
mov rcx, qword [rbp + 0x3f]
movups xmm0, xmmword [rbp - 0x29]
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], rbx
test rcx, rcx
je 0x1401aad04
mov eax, 0xffffffff
lock xadd dword [rcx + 0xc], eax
cmp eax, 1
jne 0x1401aad04
mov rcx, qword [rbp + 0x3f]
mov rax, qword [rcx]
call qword [rax + reloc.SinoSPE.dll_Ordinal_8]
nop
lea rax, vtable.std::_Func_impl_no_alloc_class_nbase::WeakCallback_class_std::_Binder_struct_std::_Unforced__void_____thiscall_nbase::FrameworkThread::__void_____ptr64__class_nbase::FrameworkThread____ptr64____ptr64____void___.0
mov qword [rbp - 9], rax
mov rax, qword [rbp - 0x59]
mov qword [rbp - 1], rax
mov rax, qword [rbp - 0x51]
mov qword [rbp + 7], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x59], xmm0
movups xmm0, xmmword [rbp - 0x29]
movups xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x1f], rbx
lea rax, [rbp - 9]
mov qword [rbp + 0x2f], rax
lea rdx, [rbp - 9]
mov rcx, qword [rbx + 0x30]
call fcn.1401acf00
nop
mov rcx, qword [rbp + 0x2f]
test rcx, rcx
je 0x1401aad63
mov rax, qword [rcx]
lea rdx, [rbp - 9]
cmp rcx, rdx
setne dl
call qword [rax + reloc.SinoSPE.dll_Ordinal_32]
nop
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1401aad9d
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x10]
test eax, eax
je 0x1401aad90
test rcx, rcx
je 0x1401aad9d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbx + 8], edi
mov qword [rbx + 0x10], rdi
mov word [rbx + 0x28], 0
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1403ca460
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1401ab0c0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x78
mov eax, dword [0x1404c77b0]
cmp eax, 2
je 0x1401ab186
mov ecx, 1
xor eax, eax
lock cmpxchg dword [0x1404c77b0], ecx
jne 0x1401ab163
mov ecx, 4
mov qword [rsp + 0x70], rbx
call fcn.1403ca490
mov rbx, rax
mov qword [rsp + 0x20], rax
mov dword [rax], 0
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
lea rcx, [rsp + 0x28]
lea rax, vtable.std::_Func_impl_no_alloc_class_std::_Binder_struct_std::_Unforced__void____cdecl___void____ptr64_____ptr64__void____ptr64____ptr64___void___.0
mov qword [0x1404c77b8], rbx
mov qword [rsp + 0x28], rax
lea rax, [0x1401ab1a0]
mov qword [rsp + 0x30], rax
lea rax, [0x1404c77b0]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x60], rax
call fcn.1401ab810
mov rax, qword [0x1404c77b8]
mov rbx, qword [rsp + 0x70]
mov dword [0x1404c77b0], 2
add rsp, 0x78
ret
cmp eax, 2
je 0x1401ab186
mov eax, dword [0x1404c77b0]
cmp eax, 2
je 0x1401ab186
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x1404c77b0]
cmp eax, 2
jne 0x1401ab173
mov rax, qword [0x1404c77b8]
add rsp, 0x78
ret

Function at 0x1401ab630
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 7
jbe 0x1401ab63e
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add rsp, 0x28
ret

Function at 0x1401abf90
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
mov rbx, rcx
xor eax, eax
mov dword [rsp + 0x30], eax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], 7
mov word [rcx], ax
mov dword [rsp + 0x30], 1
mov edx, 0x104
mov r9d, edx
call fcn.1401aa0a0
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1401abfda
mov rcx, qword [rbx]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edx, eax
mov rcx, rbx
call fcn.1401a9db0
mov rax, rbx
add rsp, 0x40
pop rbx
ret
Function at 0x1401ac880
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rax, vtable.nbase::MessageLoop.0
mov qword [rcx], rax
xor ebx, ebx
nop
mov rcx, rdi
call fcn.1401aca90
mov rcx, rdi
call fcn.1401ad370
mov rcx, rdi
call fcn.1401aca90
test al, al
je 0x1401ac8c3
inc ebx
cmp ebx, 0x64
jl 0x1401ac8a0
xor esi, esi
lea rbx, [rdi + 0x128]
test rbx, rbx
je 0x1401ac8d4
inc dword [rbx + 8]
mov rcx, qword [rdi + 0x140]
mov rdx, qword [rdi + 0x138]
mov rax, rcx
sub rax, rdx
sar rax, 3
test rax, rax
je 0x1401ac930
sub rcx, rdx
sar rcx, 3
cmp rsi, rcx
jb 0x1401ac902
inc rsi
jmp 0x1401ac913
mov rcx, qword [rdx + rsi*8]
inc rsi
test rcx, rcx
je 0x1401ac913
mov rax, qword [rcx]
call qword [rax]
mov rcx, qword [rdi + 0x140]
mov rdx, qword [rdi + 0x138]
mov rax, rcx
sub rax, rdx
sar rax, 3
cmp rsi, rax
jb 0x1401ac8f1
test rbx, rbx
je 0x1401ac947
dec dword [rbx + 8]
cmp dword [rbx + 8], 1
jge 0x1401ac947
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
nop
mov rcx, qword [rdi + 0x150]
mov rax, qword [rcx]
call qword [rax + reloc.SinoSPE.dll_Ordinal_48]
mov qword [rdi + 0x150], 0
mov rbx, qword [rdi + 0x158]
mov qword [rdi + 0x158], 0
mov esi, 0xffffffff
test rbx, rbx
je 0x1401ac9a4
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1401ac9a4
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1401ac9a4
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.SinoSPE.dll_Ordinal_8]
call fcn.1401ade50
xor edx, edx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rdi + 0x158]
test rbx, rbx
je 0x1401ac9e8
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1401ac9e8
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1401ac9e8
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.SinoSPE.dll_Ordinal_8]
lea rcx, [rdi + 0x138]
call fcn.1400cec70
lea rcx, [rdi + 0x110]
call fcn.1400cec70
lea rcx, [rdi + 0xd0]
call fcn.1401ae150
lea rcx, [rdi + 0xa8]
call fcn.1401ae310
lea rcx, [rdi + 0x80]
call fcn.1401ae310
lea rcx, [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [rdi + 0x30]
call fcn.1401ae310
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x1401aca67
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1401aca67
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x1401aca67
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.SinoSPE.dll_Ordinal_8]
lea rax, vtable.nbase::MessagePump::Delegate.0
mov qword [rdi], rax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401ade50
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x78
mov eax, dword [0x1404c77c0]
cmp eax, 2
je 0x1401adf16
mov ecx, 1
xor eax, eax
lock cmpxchg dword [0x1404c77c0], ecx
jne 0x1401adef3
mov ecx, 4
mov qword [rsp + 0x70], rbx
call fcn.1403ca490
mov rbx, rax
mov qword [rsp + 0x20], rax
mov dword [rax], 0
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
lea rcx, [rsp + 0x28]
lea rax, vtable.std::_Func_impl_no_alloc_class_std::_Binder_struct_std::_Unforced__void____cdecl___void____ptr64_____ptr64__void____ptr64____ptr64___void___.0
mov qword [0x1404c77c8], rbx
mov qword [rsp + 0x28], rax
lea rax, [0x1401ab1a0]
mov qword [rsp + 0x30], rax
lea rax, [0x1404c77c0]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x60], rax
call fcn.1401ab810
mov rax, qword [0x1404c77c8]
mov rbx, qword [rsp + 0x70]
mov dword [0x1404c77c0], 2
add rsp, 0x78
ret
cmp eax, 2
je 0x1401adf16
mov eax, dword [0x1404c77c0]
cmp eax, 2
je 0x1401adf16
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x1404c77c0]
cmp eax, 2
jne 0x1401adf03
mov rax, qword [0x1404c77c8]
add rsp, 0x78
ret

Function at 0x1401aef90
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rax, vtable.nbase::Thread.0
mov rbx, rcx
mov qword [rcx], rax
mov edi, edx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1401aefe5
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x10]
test eax, eax
je 0x1401aefd6
test rcx, rcx
je 0x1401aefe5
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [rbx + 8], eax
mov qword [rbx + 0x10], rax
test dil, 1
je 0x1401aeff8
mov edx, reloc.SinoSPE.dll_Ordinal_32
mov rcx, rbx
call fcn.1403ca488
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1401af800
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov eax, dword [rdx + 8]
mov rbx, rdx
mov rdi, rcx
cmp eax, 0x12
jne 0x1401af836
mov rax, qword [rcx + 0x18]
mov byte [rax + 4], 1
mov ecx, dword [rdx + 0x10]
call qword [sym.imp.USER32.dll_PostQuitMessage]
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp eax, 0x401
jne 0x1401af855
mov rax, qword [rcx + 0x20]
cmp qword [rdx], rax
jne 0x1401af855
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1401af8d0
mov edx, 0x5001
mov rcx, rbx
call qword [sym.imp.USER32.dll_CallMsgFilterW]
test eax, eax
jne 0x1401af8b5
mov rax, qword [rdi]
mov rdx, rbx
mov rcx, rdi
call qword [rax + reloc.SinoSPE.dll_Ordinal_48]
mov rax, qword [rdi + 0x18]
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x1401af897
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + reloc.SinoSPE.dll_Ordinal_8]
test al, al
jne 0x1401af8a9
mov rax, qword [rdi + 0x18]
mov byte [rax + 4], 1
jmp 0x1401af8a9
mov rcx, rbx
call qword [sym.imp.USER32.dll_TranslateMessage]
mov rcx, rbx
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov rax, qword [rdi]
mov rdx, rbx
mov rcx, rdi
call qword [rax + Ordinal_58]
mov rbx, qword [rsp + 0x30]
mov al, 1
add rsp, 0x20
pop rdi
ret

Function at 0x1401af8d0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x1404af540]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rcx
call fcn.1401ade50
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edx, edx
mov dword [rsp + 0x20], 1
lea rcx, [rsp + 0x30]
cmp byte [rax + 0x28], dl
je 0x1401af95a
mov r9d, reloc.SinoSPE.dll_Ordinal_15
mov r8d, r9d
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x1401af956
mov r9d, 0x113
mov dword [rsp + 0x20], 1
mov r8d, r9d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x1401af956
xchg dword [rbx + 0x10], eax
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1403ca460
add rsp, 0x70
pop rbx
ret
mov cl, 1
jmp 0x1401af96b
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
setne cl
xor eax, eax
xchg dword [rbx + 0x10], eax
test cl, cl
jne 0x1401af989
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1403ca460
add rsp, 0x70
pop rbx
ret
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.SinoSPE.dll_Ordinal_24]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1401af800
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1403ca460
add rsp, 0x70
pop rbx
ret
Function at 0x1401b0270
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x1404af540]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rdi, rcx
lea rbx, [rcx + 0x18]
mov qword [rsp + 0x20], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
cmp qword [rdi + 0x40], 0
je 0x1401b02be
call fcn.1401ade50
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp rax, qword [rdi + 0x40]
jne 0x1401b02be
mov dil, 1
jmp 0x1401b02c1
xor dil, dil
test rbx, rbx
je 0x1401b02cf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, dil
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1403ca460
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret