joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003e350
Capabilities:
Initialize winsock library

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x1f0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1401c7ef8]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
mov eax, 1
lock xadd dword [0x1401cf800], eax
inc eax
cmp eax, 1
jne 0x14003e3ae
lea ecx, [rax + 1]
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x1401cf804], eax
xor esi, esi
mov edi, esi
lock xadd dword [0x1401cf804], edi
test edi, edi
je 0x14003e3de
call fcn.1400cb6b0
mov dword [rsp + 0x20], edi
mov qword [rsp + 0x28], rax
lea rdx, str.winsock
lea rcx, [rsp + 0x20]
call fcn.140009620
nop
mov ecx, 0x38
call sub.MSVCR100.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rdi, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x14003e40f
call qword [sym.imp.MSVCP100.dll_public:_static_unsigned_long_long_unsigned___int64____cdecl_std::numeric_limits_unsigned_long_long_unsigned___int64__::max_void_]
mov r9, rax
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call fcn.14003d9e0
mov rsi, rax
mov qword [rbx + 8], rsi
mov rcx, qword [rsi + 0x30]
mov qword [rbx + 0x10], rcx
mov rax, rbx
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.1400d6f80
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14003f010
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov eax, ebx
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x14003f05d
call fcn.14003d2d0
mov dword [rsp + 0x28], ebx
call fcn.1400cb6b0
mov rcx, qword [rsp + 0x28]
mov qword [rsi], rcx
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14003f0ea
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov ecx, dword [0x1401cf990]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x38]
mov ecx, dword [0x1401cf990]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov r8, rsi
mov dl, 1
mov rcx, rdi
call fcn.14003dec0
test rax, rax
je 0x14003f0c6
call qword [sym.imp.MSVCP100.dll_public:_static_unsigned_long_long_unsigned___int64____cdecl_std::numeric_limits_unsigned_long_long_unsigned___int64__::max_void_]
cmp rbx, rax
je 0x14003f0b4
inc rbx
mov r8, rsi
mov dl, 1
mov rcx, rdi
call fcn.14003dec0
test rax, rax
jne 0x14003f0a6
mov rdx, qword [rsp + 0x48]
mov ecx, dword [0x1401cf990]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14003f0e7
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
mov rax, rbx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1400412a0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x28
mov rbx, rcx
mov ecx, dword [0x1401cf990]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edi, edi
test rax, rax
je 0x1400412f9
mov rax, qword [rax + 8]
test rax, rax
je 0x1400412f9
mov rcx, qword [rax]
test rcx, rcx
je 0x1400412f9
mov qword [rax], rdi
movzx eax, byte [rcx]
cmp rax, rbx
jb 0x1400412f4
mov byte [rcx + rbx], al
mov rax, rcx
add rsp, 0x28
pop rdi
pop rbx
ret
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
lea rcx, [rbx + 1]
call sub.MSVCR100.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
cmp rbx, 0xff
ja 0x14004130e
movzx edi, bl
mov byte [rax + rbx], dil
add rsp, 0x28
pop rdi
pop rbx
ret

Function at 0x140041320
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x28
mov rbx, rcx
mov ecx, dword [0x1401cf990]
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14004134d
mov r8, qword [rax + 8]
jmp 0x140041350
xor r8d, r8d
cmp rdi, 0xff
ja 0x140041374
test r8, r8
je 0x140041374
cmp qword [r8], 0
jne 0x140041374
movzx eax, byte [rbx + rdi]
mov byte [rbx], al
mov qword [r8], rbx
add rsp, 0x28
pop rdi
pop rbx
ret
mov rcx, rbx
add rsp, 0x28
pop rdi
pop rbx
jmp sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
Function at 0x14005b280
Capabilities:
Find taskbar

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1401c7ef8]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor esi, esi
mov rbx, rdx
lea rcx, str.Shell_TrayWnd
mov qword [rdx], rsi
mov qword [rdx + 8], rsi
mov qword [r8], rsi
xor edx, edx
mov rdi, r8
mov qword [r8 + 8], rsi
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x14005b361
lea rdx, [rbp - 0x48]
mov rcx, rax
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x40], rsi
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rbp - 0x48]
xor r11d, r11d
inc eax
lea edx, [rsi + 2]
mov dword [rbp - 0x50], eax
mov eax, dword [rbp - 0x44]
mov qword [rbp - 0x34], r11
mov dword [rbp - 0x4c], eax
mov rcx, qword [rbp - 0x50]
mov qword [rbp - 0x2c], r11
mov qword [rbp - 0x24], r11
mov qword [rbp - 0x1c], r11
mov dword [rbp - 0x14], r11d
mov dword [rbp - 0x38], 0x28
call qword [sym.imp.USER32.dll_MonitorFromPoint]
lea rdx, [rbp - 0x38]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetMonitorInfoW]
test eax, eax
je 0x14005b339
lea rdx, [rbp - 0x24]
mov rcx, rbx
call qword [sym.imp.USER32.dll_CopyRect]
jmp 0x14005b34a
mov qword [rbx], rsi
mov dword [rbx + 8], 0x400
mov dword [rbx + 0xc], 0x300
mov eax, dword [rbp - 0x48]
mov dword [rdi], eax
mov eax, dword [rbp - 0x44]
mov dword [rdi + 4], eax
mov eax, dword [rbp - 0x40]
mov dword [rdi + 8], eax
mov eax, dword [rbp - 0x3c]
mov dword [rdi + 0xc], eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400d6f80
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x140095f40
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
mov rax, qword [str._h_r_]
lea rcx, str._h_r_
mov qword [rsp + 0x20], rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rdx, [0x140118e08]
add rax, 0x18
mov qword [rsp + 0x38], rax
test rdx, 0xffffffffffff0000
jne 0x140095f96
movzx ebx, dx
xor edx, edx
mov ecx, ebx
call fcn.140001110
test rax, rax
je 0x140095fa0
lea rcx, [rsp + 0x38]
mov r8d, ebx
mov rdx, rax
call fcn.140004fb0
jmp 0x140095fa0
lea rcx, [rsp + 0x38]
call fcn.140006320
mov rax, qword [str._h_r_]
lea rcx, str._h_r_
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rdx, str.WinZip
add rax, 0x18
mov qword [rsp + 0x40], rax
test rdx, 0xffffffffffff0000
jne 0x140095fed
movzx ebx, dx
xor edx, edx
mov ecx, ebx
call fcn.140001110
test rax, rax
je 0x140095ff7
lea rcx, [rsp + 0x40]
mov r8d, ebx
mov rdx, rax
call fcn.140004fb0
jmp 0x140095ff7
lea rcx, [rsp + 0x40]
call fcn.140006320
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.140013930
mov rdx, qword [rsp + 0x48]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
mov rbx, qword [rsp + 0x20]
dec eax
test eax, eax
jg 0x140096040
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add rsp, 0x28
ret
Function at 0x1400a55a0
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x80
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov r12, rdx
mov rdi, rcx
mov dword [rsp + 0xb0], 0
lea rcx, str._h_r_
mov rax, qword [str._h_r_]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0xb0]
mov rcx, qword [r12]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
test eax, eax
jne 0x1400a5616
lea rcx, [rbx - 0x18]
call fcn.140001b90
add rax, 0x18
mov qword [rdi], rax
jmp 0x1400a56f4
mov rcx, rbp
call fcn.1400d6a4c
mov rsi, rax
mov r9, rax
mov r8d, ebp
xor edx, edx
mov rcx, qword [r12]
call sub.VERSION.dll_GetFileVersionInfoW
mov rcx, rsi
test eax, eax
jne 0x1400a5653
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
lea rcx, [rbx - 0x18]
call fcn.140001b90
add rax, 0x18
mov qword [rdi], rax
jmp 0x1400a56f4
lea r9, [rsp + 0xb8]
lea r8, [rsp + 0x38]
lea rdx, [0x140118dec]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x1400a568a
mov rcx, rsi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
lea rcx, [rbx - 0x18]
call fcn.140001b90
add rax, 0x18
mov qword [rdi], rax
jmp 0x1400a56f4
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x34
call sub.MSVCR100.dll_memcpy
mov r11, qword [rsp + 0x50]
mov r8d, r11d
shr r8d, 0x10
mov rax, r11
shr rax, 0x20
mov ecx, eax
shr ecx, 0x10
movzx eax, ax
movzx r9d, r11w
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rdx, str._d._d._d._d
lea rcx, [rsp + 0x30]
call fcn.14000ee80
mov rcx, rsi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rbx, qword [rsp + 0x30]
lea rcx, [rbx - 0x18]
call fcn.140001b90
add rax, 0x18
mov qword [rdi], rax
or eax, 0xffffffff
lock xadd dword [rbx - 8], eax
dec eax
test eax, eax
jg 0x1400a5710
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rdi
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x1400a6790
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], rsi
mov rsi, r8
mov rdi, rdx
cmp qword [rdx + 0x18], 8
jb 0x1400a67bb
mov rcx, qword [rdx]
jmp 0x1400a67be
mov rcx, rdx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test eax, eax
je 0x1400a6833
xor eax, eax
mov word [rsp + 0x68], ax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov edx, ebx
lea r8, [rsp + 0x68]
lea rcx, [rsp + 0x28]
call fcn.14002f860
nop
cmp qword [rdi + 0x18], 8
jb 0x1400a6801
mov rdi, qword [rdi]
mov r8d, ebx
mov rdx, qword [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1400a6837
cmp qword [rsp + 0x28], 0
je 0x1400a6833
lea rcx, [rsp + 0x28]
call qword [sym.imp.MSVCP100.dll_public:_void___cdecl_std::_Container_base0::_Orphan_all_void____ptr64]
mov rcx, qword [rsp + 0x28]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
xor al, al
jmp 0x1400a6877
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdx, qword [rsp + 0x28]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rsi
call fcn.1400067c0
nop
cmp qword [rsp + 0x28], 0
je 0x1400a6875
lea rcx, [rsp + 0x28]
call qword [sym.imp.MSVCP100.dll_public:_void___cdecl_std::_Container_base0::_Orphan_all_void____ptr64]
mov rcx, qword [rsp + 0x28]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
mov al, 1
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1400a7720
Capabilities:
Get session information
Get session user name

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rsi, rdx
mov rbp, rcx
mov qword [rsp + 0x78], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
mov r8d, 5
or edx, 0xffffffff
xor ecx, ecx
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x1400a780b
or rbx, 0xffffffffffffffff
mov rdx, qword [rsp + 0x78]
test rdx, rdx
je 0x1400a779e
xor eax, eax
mov rcx, rbx
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rcx, rsi
call fcn.14000c510
mov rcx, qword [rsp + 0x78]
call sub.WTSAPI32.dll_WTSFreeMemory
mov qword [rsp + 0x78], 0
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14000fdc0
nop
mov r8d, 1
lea rdx, [0x140118dec]
lea rcx, [rsp + 0x30]
call fcn.140005090
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x78]
mov r8d, 7
or edx, 0xffffffff
xor ecx, ecx
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
jne 0x1400a780f
mov rax, qword [rsp + 0x30]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x1400a780b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x1400a785d
mov rdx, qword [rsp + 0x78]
test rdx, rdx
je 0x1400a783e
xor eax, eax
mov rcx, rbx
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rcx, rbp
call fcn.14000c510
mov rcx, qword [rsp + 0x78]
call sub.WTSAPI32.dll_WTSFreeMemory
nop
mov rax, qword [rsp + 0x30]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x1400a785b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov al, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400b3cf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
cmp dword [rcx - 0x10], 0
jne 0x1400b3d04
xor al, al
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400b3d1d
test al, 0x10
jne 0x1400b3d1d
mov eax, 1
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400b68c0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
mov ecx, reloc.OLEAUT32.dll_RegisterTypeLib
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1400b68db
mov al, 1
add rsp, 0x28
ret
mov ecx, 0xa3
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
sets al
add rsp, 0x28
ret

Function at 0x1400bf930
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
lea rbp, [rax - 0x28]
sub rsp, 0x110
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
movzx edi, r9b
mov rsi, r8
mov rbx, rdx
mov rax, qword [rdx]
cmp dword [rax - 0x10], 0
jne 0x1400bf96c
xor al, al
jmp 0x1400bfac6
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp - 0x60]
call sub.MSVCR100.dll_memset
mov dword [rbp - 0x60], 0x68
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
lea rcx, str._h_r_
mov rax, qword [str._h_r_]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x70], rax
mov r9, qword [rsi]
mov r8, qword [rbx]
lea rdx, [0x14012f2d8]
lea rcx, [rsp + 0x70]
call fcn.14000ee80
mov rbx, qword [rsp + 0x70]
mov eax, dword [rbx - 0x10]
inc eax
xor r12d, r12d
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
movsxd rdx, eax
mov word [rbp + 0x38], r12w
lea r8, [rbp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.14002f860
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
sub rdx, rcx
sar rdx, 1
mov r8, rbx
call qword [sym.imp.MSVCR100.dll_wcscpy_s]
lea r11, [rsp + 0x78]
mov qword [rsp + 0x48], r11
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test eax, eax
je 0x1400bfa75
test dil, dil
je 0x1400bfa60
or edx, 0xffffffff
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
setne dil
cmp qword [rsp + 0x50], r12
je 0x1400bfa97
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP100.dll_public:_void___cdecl_std::_Container_base0::_Orphan_all_void____ptr64]
mov rcx, qword [rsp + 0x50]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400bfac2
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, dil
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
Function at 0x1400c9570
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1401c3790]
cmp ecx, 0xffffffff
je 0x1400c9635
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400c9635
mov ecx, dword [0x1401c3790]
mov qword [rsp + 0x20], rbx
xor ebx, ebx
cmp ecx, 0xffffffff
jne 0x1400c95a8
mov eax, ebx
jmp 0x1400c95b4
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x1401c3790]
cmp byte [rax + 0x90], bl
je 0x1400c9630
cmp ecx, 0xffffffff
je 0x1400c9630
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400c9630
mov ecx, dword [0x1401c3790]
cmp ecx, 0xffffffff
jne 0x1400c95dc
mov rax, rbx
jmp 0x1400c95e2
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rax + 0x88]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400c9630
mov ecx, dword [0x1401c3790]
cmp ecx, 0xffffffff
je 0x1400c9609
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rcx, qword [rbx + 0x88]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor r11d, r11d
lea rdx, [0x140187328]
lea rcx, [rsp + 0x30]
mov byte [rsp + 0x30], r11b
call sub.MSVCR100.dll__CxxThrowException
int3
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret

Function at 0x1400c9900
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1401c3790]
cmp ecx, 0xffffffff
je 0x1400c9980
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r11, rax
test rax, rax
je 0x1400c9980
mov rdx, qword [rax + 0x28]
mov rcx, qword [rdx + 8]
cmp byte [rcx + 0x39], 0
jne 0x1400c9948
cmp qword [rcx + 0x18], rbx
jae 0x1400c993c
mov rcx, qword [rcx + 0x10]
jmp 0x1400c9942
mov rdx, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x39], 0
je 0x1400c9930
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x38], rdx
cmp rdx, rax
je 0x1400c9963
cmp rbx, qword [rdx + 0x18]
jb 0x1400c9963
lea rax, [rsp + 0x38]
jmp 0x1400c996d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x40]
mov rax, qword [rax]
cmp rax, qword [r11 + 0x28]
je 0x1400c9980
add rax, 0x20
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1400c9e60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov ecx, dword [0x1401c3790]
cmp ecx, 0xffffffff
jne 0x1400c9e8b
xor ebp, ebp
jmp 0x1400c9e94
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
mov qword [rsp + 0x50], rbp
test rbp, rbp
je 0x1400c9fd4
cmp qword [rbp + 0x30], 0
jne 0x1400c9eb6
cmp qword [rbp + 0x18], 0
je 0x1400c9fad
jmp 0x1400c9ec0
cmp qword [rbp + 0x18], 0
je 0x1400c9f16
nop dword [rax]
mov rdi, qword [rbp + 0x18]
mov rax, qword [rdi + 8]
mov qword [rbp + 0x18], rax
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400c9efb
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rdi]
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rbp + 0x18], 0
jne 0x1400c9ec0
mov rsi, qword [rbp + 0x28]
mov rbx, qword [rsi]
cmp rbx, rsi
je 0x1400c9ea2
mov rdi, rbx
cmp byte [rbx + 0x39], 0
jne 0x1400c9f76
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x39], 0
jne 0x1400c9f4f
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x39], 0
jne 0x1400c9f76
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x39], 0
je 0x1400c9f41
jmp 0x1400c9f76
mov rax, qword [rbx + 8]
cmp byte [rax + 0x39], 0
jne 0x1400c9f73
nop dword [rax]
cmp rbx, qword [rax + 0x10]
jne 0x1400c9f73
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x39], 0
je 0x1400c9f60
mov rbx, rax
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x1400c9f8e
mov rdx, qword [rdi + 0x30]
test rdx, rdx
je 0x1400c9f8e
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8, rdi
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0x20]
call fcn.14003e500
cmp rbx, rsi
jne 0x1400c9f22
jmp 0x1400c9ea2
lea rdx, [0x1400c94d0]
lea rcx, [0x1401d0cd8]
call fcn.1400a1490
mov ecx, dword [0x1401c3790]
cmp ecx, 0xffffffff
je 0x1400c9fd4
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rbp, rbp
je 0x1400c9ffe
lock dec dword [rbp + 8]
jne 0x1400c9ffe
mov rax, qword [rbp]
xor edx, edx
mov rcx, rbp
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x1400ca080
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r9, qword [rcx]
mov rdi, rcx
lea r8, [0x1400ca020]
lea rax, [r9 + 0x40]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
call qword [sym.imp.MSVCR100.dll__beginthreadex]
mov rsi, rax
test rax, rax
jne 0x1400ca0c5
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rdi]
mov qword [rsp + 0x40], rbx
add rax, 8
lock inc dword [rax]
mov rbx, qword [rdi]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400ca0ec
cmp rcx, 0xffffffffffffffff
je 0x1400ca0ec
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], rsi
mov rcx, qword [rdi]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov al, 1
add rsp, 0x30
pop rdi
ret