joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180135fb0
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x690
mov rax, qword [0x18018f008]
xor rax, rsp
mov qword [rsp + 0x680], rax
mov esi, edx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x54]
mov r8d, 0x62c
call sub.VCRUNTIME140.dll_memset
xor ebp, ebp
mov dword [rsp + 0x50], 0xa0000003
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x2200000
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180136075
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r9d, [rbp + 8]
mov dword [rsp + 0x28], ebp
lea r8, [rsp + 0x50]
mov edx, 0x900ac
mov qword [rsp + 0x20], rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1801360a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.tcl86t.dll_hclWinConvertError
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.180146240
lea r11, [rsp + 0x690]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x1801360b9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
jmp 0x18013607a
Function at 0x1801360c0
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
lea rbp, [rsp - 0x650]
sub rsp, 0x750
mov rax, qword [0x18018f008]
xor rax, rsp
mov qword [rbp + 0x640], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
bt eax, 0xa
jae 0x18013626b
xor r8d, r8d
lea rdx, [rbp + 0x10]
mov rcx, rbx
call fcn.1801362b0
test eax, eax
jne 0x180136277
mov eax, dword [rbp + 0x10]
test eax, eax
je 0x180136129
cmp eax, 0x80000000
je 0x180136129
cmp eax, 0xa0000003
jne 0x18013626b
xor ebx, ebx
cmp word [rbp + 0x20], 0x5c
jne 0x180136208
lea r8d, [rbx + 0xb]
lea rdx, str.__Volume
lea rcx, [rbp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
lea rcx, [rbp + 0x20]
test eax, eax
jne 0x1801361c2
mov eax, 0x5c
mov word [rbp + 0x22], ax
call fcn.1801313d0
cmp al, 0xff
je 0x18013626b
mov word [rsp + 0x21], 0x3a
mov byte [rsp + 0x20], al
call fcn.180106220
mov ecx, 3
mov rbx, rax
mov dword [rax], 0
call sym.tcl86t.dll_hclpAlloc
test rax, rax
je 0x180136299
movzx ecx, word [rsp + 0x20]
mov qword [rbx + 8], rax
mov word [rax], cx
mov rax, rbx
mov rcx, qword [rbx + 8]
mov byte [rcx + 2], 0
mov dword [rbx + 0x10], 2
inc dword [rbx]
mov qword [rbx + 0x18], 0
jmp 0x180136279
mov qword [rsp + 0x768], rdi
lea rdx, [0x180172d20]
mov edi, 4
mov r8d, edi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
jne 0x1801361e7
mov ebx, edi
jmp 0x180136200
mov r8, rdi
lea rdx, [0x180172cf8]
lea rcx, [rbp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
cmove ebx, edi
mov rdi, qword [rsp + 0x768]
movzx edx, word [rbp + 0x1a]
lea rax, [rsp + 0x40]
shr edx, 1
lea r8, [rsp + 0x30]
lea rcx, [rbp + 0x20]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 0xc8
mov byte [rsp + 0x40], 0
call sym.tcl86t.dll_hcl_UniCharToUtfDString
mov edx, dword [rsp + 0x38]
mov ecx, ebx
sub edx, ebx
add rcx, qword [rsp + 0x30]
call sym.tcl86t.dll_hcl_NewStringObj
mov rbx, rax
inc dword [rax]
lea rax, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
cmp rcx, rax
je 0x180136266
call sym.tcl86t.dll_hclpFree
mov rax, rbx
jmp 0x180136279
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WS2_32.dll_shutdown
xor eax, eax
mov rcx, qword [rbp + 0x640]
xor rcx, rsp
call fcn.180146240
mov rbx, qword [rsp + 0x770]
add rsp, 0x750
pop rbp
ret
mov edx, 3
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3
Function at 0x1801363b0
Capabilities:
Create directory
Delete directory

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
mov rdi, rcx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1801363e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.tcl86t.dll_hclWinConvertError
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x50], rbx
xor r9d, r9d
mov qword [rsp + 0x58], rbp
xor r8d, r8d
xor ebp, ebp
mov edx, 0x40000000
mov qword [rsp + 0x30], rbp
mov rcx, rdi
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x180136438
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.tcl86t.dll_hclWinConvertError
mov eax, ebx
jmp 0x18013649f
movzx r9d, word [rsi + 4]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rbp
add r9d, 8
mov qword [rsp + 0x30], rax
mov r8, rsi
mov dword [rsp + 0x28], ebp
mov edx, 0x900a4
mov rcx, rbx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x180136494
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.tcl86t.dll_hclWinConvertError
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, 0xffffffff
jmp 0x18013649f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x1801364c0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
mov eax, 0x1438
call fcn.1801471f0
sub rsp, rax
mov rbx, rcx
lea rdi, [rsp + 0x1458]
call fcn.180001000
mov qword [rsp + 0x28], rdi
lea rdx, [rsp + 0x830]
xor edi, edi
mov r9, rbx
mov r8d, 0xc00
mov qword [rsp + 0x20], rdi
mov rcx, qword [rax]
or rcx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 0x400
lea r9d, [rdi - 1]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x830]
mov word [rsp + 0x82e], di
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp word [rsp + 0x82e], di
je 0x18013657a
movsd xmm0, qword [str._...]
movzx eax, word [0x180172d38]
movsd qword [rsp + 0x826], xmm0
mov word [rsp + 0x82e], ax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x180136591
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1801365b6
mov ecx, 0x30
call qword [sym.imp.USER32.dll_MessageBeep]
mov r9d, 0x12010
lea r8, str.Fatal_Error
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
int3
Function at 0x180137760
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x18018f008]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rdx
mov rdi, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x1801377d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.tcl86t.dll_hclWinConvertError
test rdi, rdi
je 0x1801377cd
mov rcx, rdi
call sym.tcl86t.dll_hcl_PosixError
mov rdx, rax
lea rcx, str.error_getting_working_directory_name:__s
call sym.tcl86t.dll_hcl_ObjPrintf
mov rdx, rax
mov rcx, rdi
call sym.tcl86t.dll_hcl_SetObjResult
xor eax, eax
jmp 0x180137856
cmp word [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
je 0x180137803
cmp word [rsp + 0x22], 0x3a
jne 0x180137803
cmp word [rsp + 0x24], 0x5c
jne 0x180137803
cmp word [rsp + 0x26], 0x5c
lea rax, [rsp + 0x24]
cmovne rax, rcx
mov rcx, rax
lea rax, [rbx + 0x10]
mov dword [rbx + 8], 0
mov qword [rbx], rax
mov dword [rbx + 0xc], 0xc8
mov byte [rax], 0
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x180137822
mov r8, rbx
mov edx, eax
call sym.tcl86t.dll_hcl_UniCharToUtfDString
mov rax, qword [rbx]
movzx ecx, byte [rax]
test cl, cl
je 0x180137856
cmp cl, 0x5c
jne 0x180137848
mov byte [rax], 0x2f
movzx ecx, byte [rax + 1]
inc rax
test cl, cl
jne 0x180137840
mov rax, qword [rbx]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180146240
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
ret
Function at 0x18013ac50
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x250
mov rax, qword [0x18018f008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbp, rcx
mov r15, rdx
lea rcx, [0x180190498]
call sym.tcl86t.dll_hcl_MutexLock
cmp qword [0x1801904a0], 0
jne 0x18013ae00
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
cmp rsi, 0xf8
jb 0x18013acc1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x26
jmp 0x18013ad4e
movups xmm0, xmmword [str.TCLXXXXXXXX]
movsd xmm1, qword [0x180173218]
movups xmmword [rsp + rsi*2 + 0x30], xmm0
movsd qword [rsp + rsi*2 + 0x40], xmm1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ebx, ebx
lea r14, [rsp + rsi*2 + 0x36]
mov edi, eax
nop word [rax + rax]
mov r8d, edi
lea rdx, str._08x
mov rcx, r14
call qword [sym.imp.USER32.dll_wsprintfW]
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x18013adb4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x18013ad84
imul edi, edi, 0x1000193
inc ebx
cmp ebx, 0x100
jl 0x18013acf0
mov eax, eax
lea rcx, [0x180000000]
movzx ebx, byte [rax + rcx + 0x15f8f0]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], ebx
mov rcx, rbp
call sym.tcl86t.dll_hcl_PosixError
mov rdx, rax
lea rcx, str.couldnt_create_temporary_directory:__s
call sym.tcl86t.dll_hcl_ObjPrintf
mov rdx, rax
mov rcx, rbp
call sym.tcl86t.dll_hcl_SetObjResult
mov rcx, qword [0x180190498]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x18013ae7f
cmp eax, 0x10c
jb 0x18013ad35
add eax, 0xffffd8cd
cmp eax, 0x25
jb 0x18013ada3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WS2_32.dll_shutdown
jmp 0x18013ad4e
lea rcx, [0x180000000]
movzx ebx, byte [rax + rcx + 0x15ea88]
jmp 0x18013ad46
lea ebx, [rsi*2 + 0x18]
mov ecx, ebx
call sym.tcl86t.dll_hclpAlloc
mov rdx, rax
test rax, rax
jne 0x18013add2
test ebx, ebx
jne 0x18013aea6
lea rax, [rsp + 0x30]
mov qword [0x1801904a0], rdx
sub rdx, rax
lea rcx, [rsp + 0x30]
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x18013adf0
mov rcx, qword [0x180190498]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x1801904a0]
call fcn.1801387d0
mov r8d, 1
mov rdx, r15
mov rcx, rbp
mov rbx, rax
call fcn.1800eabc0
mov rdi, rax
test rax, rax
jne 0x18013ae4d
mov edx, dword [rbx]
lea ecx, [rdx - 1]
mov dword [rbx], ecx
cmp edx, 1
jg 0x18013ae49
mov rcx, rbx
call sym.tcl86t.dll_hclFreeObj
xor eax, eax
jmp 0x18013ae7f
mov r9d, 0x7fffffff
mov qword [rsp + 0x20], 0
mov r8d, 1
lea rdx, [0x180161274]
mov rcx, rbx
call sym.tcl86t.dll_hcl_AppendLimitedToObj
mov rdx, rdi
mov rcx, rbx
call sym.tcl86t.dll_hcl_AppendObjToObj
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180146240
mov rbx, qword [rsp + 0x290]
add rsp, 0x250
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov edx, ebx
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3
Function at 0x18013aec0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x78
mov rax, qword [0x18018f840]
test rax, rax
je 0x18013aed7
add rsp, 0x78
jmp rax
mov rax, qword [0x1801902f8]
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x70], rdi
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd rcx, dword [0x1801904b0]
xor edi, edi
mov ebx, edi
test rax, rax
je 0x18013af13
test ecx, ecx
jle 0x18013af13
cmp ecx, dword [rax + 8]
jge 0x18013af13
mov rax, qword [rax]
mov rbx, qword [rax + rcx*8]
test rbx, rbx
jne 0x18013af49
lea ecx, [rbx + 0x50]
call sym.tcl86t.dll_hclpAlloc
mov rbx, rax
test rax, rax
je 0x18013b00d
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x50]
call sub.VCRUNTIME140.dll_memset
mov rdx, rbx
lea rcx, [0x1801904b0]
call fcn.180106bc0
lea rcx, [0x1801904a8]
call sym.tcl86t.dll_hcl_MutexLock
mov eax, dword [0x180190494]
test eax, eax
jne 0x18013afb1
mov rax, qword [0x180190358]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
lea rax, str.TclNotifier
mov dword [rsp + 0x20], edi
mov qword [rsp + 0x60], rax
lea rax, [0x18013b360]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rdi
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmmword [rsp + 0x40], xmm0
call qword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x18013b01f
mov eax, dword [0x180190494]
mov rcx, qword [0x1801904a8]
inc eax
mov dword [0x180190494], eax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rbx
mov dword [rbx + 0x38], edi
mov dword [rbx + 0x4c], edi
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov qword [rbx + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rbx + 0x28], eax
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, qword [rsp + 0x70]
mov qword [rbx + 0x30], rax
mov rax, rbx
mov rbx, qword [rsp + 0x80]
add rsp, 0x78
ret
mov edx, 0x50
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3
lea rcx, str.Unable_to_register_TclNotifier_window_class
call sym.tcl86t.dll_hcl_Panic
int3
Function at 0x18013b140
Capabilities:
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0x20
mov rax, qword [0x18018f820]
mov rdi, rcx
test rax, rax
je 0x18013b15d
add rsp, 0x20
pop rdi
jmp rax
mov rax, qword [0x1801902f8]
mov qword [rsp + 0x30], rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd rcx, dword [0x1801904b0]
xor ebx, ebx
test rax, rax
je 0x18013b18f
test ecx, ecx
jle 0x18013b18f
cmp ecx, dword [rax + 8]
jge 0x18013b18f
mov rax, qword [rax]
mov rbx, qword [rax + rcx*8]
test rbx, rbx
jne 0x18013b1c5
lea ecx, [rbx + 0x50]
call sym.tcl86t.dll_hclpAlloc
mov rbx, rax
test rax, rax
je 0x18013b23b
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x50]
call sub.VCRUNTIME140.dll_memset
mov rdx, rbx
lea rcx, [0x1801904b0]
call fcn.180106bc0
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x18013b230
mov r10d, 1
test rdi, rdi
jne 0x18013b1dd
xor edx, edx
jmp 0x18013b1fb
mov eax, 0x10624dd3
imul dword [rdi + 4]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, dword [rdi], 0x3e8
add edx, eax
cmove edx, r10d
mov dword [rbx + 0x48], edx
test edx, edx
je 0x18013b220
mov r8d, edx
mov dword [rbx + 0x4c], r10d
mov rdx, r10
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.USER32.dll_SetTimer]
mov rdx, r10
mov dword [rbx + 0x4c], 0
call qword [sym.imp.USER32.dll_KillTimer]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, 0x50
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3

Function at 0x18013b250
Capabilities:
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0x60
mov rax, qword [0x18018f858]
mov edi, ecx
test rax, rax
je 0x18013b26c
add rsp, 0x60
pop rdi
jmp rax
mov rax, qword [0x1801902f8]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd rcx, dword [0x1801904b0]
xor esi, esi
mov ebx, esi
test rax, rax
je 0x18013b2a5
test ecx, ecx
jle 0x18013b2a5
cmp ecx, dword [rax + 8]
jge 0x18013b2a5
mov rax, qword [rax]
mov rbx, qword [rax + rcx*8]
test rbx, rbx
jne 0x18013b2db
lea ecx, [rbx + 0x50]
call sym.tcl86t.dll_hclpAlloc
mov rbx, rax
test rax, rax
je 0x18013b346
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x50]
call sub.VCRUNTIME140.dll_memset
mov rdx, rbx
lea rcx, [0x1801904b0]
call fcn.180106bc0
cmp edi, 1
jne 0x18013b336
cmp qword [rbx + 0x40], rsi
jne 0x18013b336
mov rax, qword [0x180190358]
lea r8, str.TclNotifier
mov qword [rsp + 0x58], rsi
lea rdx, str.TclNotifier
mov qword [rsp + 0x50], rax
xor r9d, r9d
mov qword [rsp + 0x48], rsi
xor ecx, ecx
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rcx, rbx
mov qword [rbx + 0x40], rax
call sym.tcl86t.dll_hcl_AlertNotifier
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov edx, 0x50
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3
Function at 0x18013b460
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x18018f828]
mov rbx, rcx
test rax, rax
je 0x18013b47d
add rsp, 0x60
pop rbx
jmp rax
mov rax, qword [0x1801902f8]
mov qword [rsp + 0x88], rdi
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd rcx, dword [0x1801904b0]
xor edi, edi
test rax, rax
je 0x18013b4b2
test ecx, ecx
jle 0x18013b4b2
cmp ecx, dword [rax + 8]
jge 0x18013b4b2
mov rax, qword [rax]
mov rdi, qword [rax + rcx*8]
test rdi, rdi
jne 0x18013b4e8
lea ecx, [rdi + 0x50]
call sym.tcl86t.dll_hclpAlloc
mov rdi, rax
test rax, rax
je 0x18013b636
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x50]
call sub.VCRUNTIME140.dll_memset
mov rdx, rdi
lea rcx, [0x1801904b0]
call fcn.180106bc0
mov qword [rsp + 0x80], rsi
test rbx, rbx
je 0x18013b546
mov r8d, dword [rbx]
mov ecx, dword [rbx + 4]
mov dword [rsp + 0x78], r8d
mov dword [rsp + 0x7c], ecx
test r8d, r8d
jne 0x18013b50d
test ecx, ecx
je 0x18013b528
mov rdx, qword [0x18018fa50]
lea rcx, [rsp + 0x78]
call qword [sym.tcl86t.dll_hclDbDumpActiveObjects]
mov ecx, dword [rsp + 0x7c]
mov r8d, dword [rsp + 0x78]
mov eax, 0x10624dd3
imul ecx
mov esi, edx
sar esi, 6
mov eax, esi
shr eax, 0x1f
add esi, eax
imul eax, r8d, 0x3e8
add esi, eax
jmp 0x18013b54b
mov esi, 0xffffffff
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, 1
test eax, eax
jne 0x18013b5ae
mov qword [rsp + 0x70], rbp
nop dword [rax]
nop dword [rax + rax]
mov r9d, 0x4ff
mov dword [rsp + 0x20], 2
mov r8d, esi
lea rdx, [rdi + 0x30]
mov ecx, ebx
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
cmp eax, 0xc0
je 0x18013b580
mov rbp, qword [rsp + 0x70]
cmp eax, 0xffffffff
je 0x18013b5ee
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x18013b612
xor r9d, r9d
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x18013b5f5
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.USER32.dll_PostQuitMessage]
mov ebx, 0xffffffff
jmp 0x18013b614
cmp eax, 0xffffffff
je 0x18013b5ee
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x18013b614
xor ebx, ebx
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rsi, qword [rsp + 0x80]
mov eax, ebx
mov rdi, qword [rsp + 0x88]
add rsp, 0x60
pop rbx
ret
mov edx, 0x50
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3
Function at 0x18013b7a0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp dword [0x1801904c0], 0
jne 0x18013b7e4
lea rcx, [0x1801904d0]
call sym.tcl86t.dll_hcl_MutexLock
cmp dword [0x1801904c0], 0
jne 0x18013b7d7
mov dword [0x1801904c0], 1
mov qword [0x1801904b8], 0
mov rcx, qword [0x1801904d0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x1801902f8]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd rcx, dword [0x1801904c8]
test rax, rax
je 0x18013b816
test ecx, ecx
jle 0x18013b816
cmp ecx, dword [rax + 8]
jge 0x18013b816
mov rax, qword [rax]
cmp qword [rax + rcx*8], 0
jne 0x18013b89c
mov rax, qword [0x1801902f8]
mov qword [rsp + 0x20], rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd rcx, dword [0x1801904c8]
xor ebx, ebx
test rax, rax
je 0x18013b848
test ecx, ecx
jle 0x18013b848
cmp ecx, dword [rax + 8]
jge 0x18013b848
mov rax, qword [rax]
mov rbx, qword [rax + rcx*8]
test rbx, rbx
jne 0x18013b871
lea ecx, [rbx + 8]
call sym.tcl86t.dll_hclpAlloc
mov rbx, rax
test rax, rax
je 0x18013b8a1
xor eax, eax
lea rcx, [0x1801904c8]
mov rdx, rbx
mov qword [rbx], rax
call fcn.180106bc0
xor r8d, r8d
mov qword [rbx], 0
lea rdx, [0x18013b9b0]
lea rcx, [0x18013b8c0]
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
jmp sym.tcl86t.dll_hcl_CreateEventSource
add rsp, 0x28
ret
mov edx, 8
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3
Function at 0x18013bbc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x148
mov rax, qword [0x18018f008]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov r9, rcx
mov edi, edx
mov ecx, edx
and ecx, 3
je 0x18013bc13
sub ecx, 1
je 0x18013bc0c
cmp ecx, 1
je 0x18013bc05
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WS2_32.dll_shutdown
xor eax, eax
jmp 0x18013bdb8
mov esi, 0xc0000000
jmp 0x18013bc18
mov esi, 0x40000000
jmp 0x18013bc18
mov esi, 0x80000000
mov qword [rsp + 0x170], rbx
mov eax, edi
mov qword [rsp + 0x140], rbp
and eax, 0x700
mov qword [rsp + 0x138], r14
mov qword [rsp + 0x130], r15
cmp eax, 0x500
ja 0x18013bc6b
je 0x18013bc80
cmp eax, 0x100
je 0x18013bc64
cmp eax, 0x200
je 0x18013bc87
cmp eax, 0x300
jne 0x18013bc79
mov ebx, 2
jmp 0x18013bc8c
mov ebx, 4
jmp 0x18013bc8c
cmp eax, 0x600
je 0x18013bc87
cmp eax, 0x700
je 0x18013bc80
mov ebx, 3
jmp 0x18013bc8c
mov ebx, 1
jmp 0x18013bc8c
mov ebx, 5
xor r15d, r15d
mov dword [rsp + 0x4c], 0xc8
mov dword [rsp + 0x48], r15d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x50], r15b
test r9, r9
jne 0x18013bcb5
mov r14d, r15d
jmp 0x18013bcca
lea r8, [rsp + 0x40]
mov edx, 0xffffffff
mov rcx, r9
call sym.tcl86t.dll_hcl_UtfToUniCharDString
mov r14, rax
mov ebp, edi
mov eax, r15d
and ebp, 0x100
jne 0x18013bce7
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
cmove eax, r15d
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], eax
mov edx, esi
mov rcx, r14
mov dword [rsp + 0x20], ebx
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rsp + 0x40]
mov rbx, rax
mov r14, qword [rsp + 0x138]
lea rax, [rsp + 0x50]
cmp rcx, rax
je 0x18013bd25
call sym.tcl86t.dll_hclpFree
mov dword [rsp + 0x48], r15d
lea rax, [rsp + 0x50]
mov byte [rsp + 0x50], r15b
mov r15, qword [rsp + 0x130]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x4c], 0xc8
cmp rbx, 0xffffffffffffffff
jne 0x18013bd75
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ax, 0x6e
jne 0x18013bd6a
test ebp, ebp
mov eax, 2
mov ecx, 0x50
cmovne eax, ecx
mov ecx, eax
call sym.tcl86t.dll_hclWinConvertError
xor eax, eax
jmp 0x18013bda8
test dil, 9
je 0x18013bd8f
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, reloc.WS2_32.dll_recv
call sym.tcl86t.dll_hclpAlloc
test rax, rax
je 0x18013bdd2
mov dword [rax], 3
mov qword [rax + 8], rbx
mov rbx, qword [rsp + 0x170]
mov rbp, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.180146240
add rsp, 0x148
pop rdi
pop rsi
ret
mov edx, reloc.WS2_32.dll_recv
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3