joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18013c080
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
lea rdx, [rsp + 0x48]
xor r9d, r9d
lea rcx, [rsp + 0x40]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x18013c106
mov qword [rsp + 0x30], rbx
mov ecx, reloc.WS2_32.dll_recv
mov rbx, qword [rsp + 0x40]
call sym.tcl86t.dll_hclpAlloc
test rax, rax
je 0x18013c120
mov dword [rax], 3
mov ecx, reloc.WS2_32.dll_recv
mov qword [rax + 8], rbx
mov rbx, qword [rsp + 0x48]
mov qword [rsi], rax
call sym.tcl86t.dll_hclpAlloc
test rax, rax
je 0x18013c120
mov qword [rax + 8], rbx
mov rbx, qword [rsp + 0x30]
mov dword [rax], 3
mov qword [rdi], rax
mov eax, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.tcl86t.dll_hclWinConvertError
mov rsi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov edx, reloc.WS2_32.dll_recv
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3

Function at 0x18013c140
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx], 3
mov rbx, rcx
jne 0x18013c1fe
mov rax, qword [0x1801902f8]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd rcx, dword [0x18018fdd0]
test rax, rax
je 0x18013c1bb
test ecx, ecx
jle 0x18013c1bb
cmp ecx, dword [rax + 8]
jge 0x18013c1bb
mov rax, qword [rax]
mov rdx, qword [rax + rcx*8]
test rdx, rdx
je 0x18013c1bb
cmp dword [rdx + 8], 0
je 0x18013c1bb
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp rax, qword [rbx + 8]
je 0x18013c1ee
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp rax, qword [rbx + 8]
je 0x18013c1ee
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp rax, qword [rbx + 8]
je 0x18013c1ee
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18013c1ee
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x18013c1ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.tcl86t.dll_hclWinConvertError
mov rcx, rbx
call sym.tcl86t.dll_hclpFree
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
call sym.tcl86t.dll_hclpFree
xor eax, eax
add rsp, 0x20
pop rbx
ret
lea rcx, str.TclpCloseFile:_unexpected_file_type
call sym.tcl86t.dll_hcl_Panic
int3
Function at 0x18013de10
Capabilities:
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x60
mov rdi, r8
mov dword [rax - 0x28], 0x18
mov rsi, rdx
mov qword [rax - 0x20], 0
mov rbx, rcx
mov dword [rax - 0x18], 0
lea r8, [rax - 0x28]
xor r9d, r9d
lea rdx, [rax - 0x30]
lea rcx, [rax - 0x38]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x18013decc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.tcl86t.dll_hclWinConvertError
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call sym.tcl86t.dll_hcl_ErrnoMsg
mov rdi, rax
call sym.tcl86t.dll_hcl_ErrnoId
test rbx, rbx
je 0x18013de9d
mov r9, rdi
mov qword [rsp + 0x20], 0
mov r8, rax
lea rdx, str.POSIX
mov rcx, rbx
call sym.tcl86t.dll_hcl_SetErrorCode
mov rdx, rdi
lea rcx, str.pipe_creation_failed:__s
call sym.tcl86t.dll_hcl_ObjPrintf
mov rdx, rax
mov rcx, rbx
call sym.tcl86t.dll_hcl_SetObjResult
mov eax, 1
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov rcx, qword [rsp + 0x30]
mov edx, 2
call sym.tcl86t.dll_hcl_MakeFileChannel
mov rdx, rax
mov qword [rsi], rax
mov rcx, rbx
call sym.tcl86t.dll_hcl_RegisterChannel
mov rcx, qword [rsp + 0x38]
mov edx, 4
call sym.tcl86t.dll_hcl_MakeFileChannel
mov rdx, rax
mov qword [rdi], rax
mov rcx, rbx
call sym.tcl86t.dll_hcl_RegisterChannel
mov rbx, qword [rsp + 0x70]
xor eax, eax
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x18013ed20
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [rcx + 0x20]
mov edi, edx
mov rbx, rcx
xor ebp, ebp
mov rsi, qword [rax + 8]
test edi, edi
je 0x18013ed9c
mov rax, qword [rbx + 0x58]
test rax, rax
je 0x18013ed9c
mov eax, dword [rax + 8]
cmp eax, 8
je 0x18013ed9c
cmp dword [0x18018fdbc], ebp
jne 0x18013ed9c
mov rax, qword [0x1801902f8]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd rcx, dword [0x18018fdd0]
test rax, rax
je 0x18013ed95
test ecx, ecx
jle 0x18013ed95
cmp ecx, dword [rax + 8]
jge 0x18013ed95
mov rax, qword [rax]
mov rdx, qword [rax + rcx*8]
test rdx, rdx
je 0x18013ed95
cmp dword [rdx + 8], ebp
jne 0x18013ed9c
mov edx, 0xffffffff
jmp 0x18013ed9e
mov edx, ebp
mov rcx, qword [rbx + 0x78]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x18013ee50
test byte [rbx + 0x98], 4
jne 0x18013ee40
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rbp
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp eax, 1
jne 0x18013ee19
cmp dword [rsp + 0x48], ebp
ja 0x18013ee40
test byte [rbx + 0x98], 8
jne 0x18013ee4c
mov rcx, qword [rbx + 0x78]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x18013ed43
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x18013ed43
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.tcl86t.dll_hclWinConvertError
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rbx + 0x98]
cmp dword [rax], 0x20
jne 0x18013ee47
or ecx, 4
mov dword [rbx + 0x98], ecx
mov eax, 1
jmp 0x18013ee61
test cl, 8
je 0x18013ee5c
xor eax, eax
jmp 0x18013ee61
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x8c
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x18013f670
Capabilities:
Terminate thread

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rbx, qword [rcx]
mov rdi, rdx
mov rsi, rcx
test rbx, rbx
je 0x18013f7ea
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r12
xor r12d, r12d
mov qword [rsp + 0x28], r14
xor eax, eax
mov r14, qword [rbx]
mov qword [rsp + 0x20], r15
mov r15d, 2
mov qword [rbx + 0x18], r12
lock cmpxchg dword [rbx + 8], r15d
je 0x18013f7a1
cmp eax, r15d
je 0x18013f79c
cmp eax, 8
je 0x18013f7ad
mov ebp, 1
mov ecx, 4
mov eax, ebp
lock cmpxchg dword [rbx + 8], ecx
cmp eax, 8
je 0x18013f7ad
test rdx, rdx
je 0x18013f7ad
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x50], 0x103
jne 0x18013f7ad
cmp dword [0x18018fdbc], r12d
jne 0x18013f722
call sym.tcl86t.dll_hclInThreadExit
test eax, eax
jne 0x18013f722
mov ebp, r12d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rax, qword [0x180190a70]
test rax, rax
je 0x18013f73c
mov rcx, rdi
call rax
mov edx, shutdown
test ebp, ebp
mov rcx, rdi
cmovne edx, r12d
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x18013f7ad
mov eax, dword [rbx + 8]
cmp eax, 8
je 0x18013f7ad
mov edx, 0x1388
mov eax, 0x32
test ebp, ebp
mov rcx, rdi
cmovne edx, eax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x18013f7ad
test ebp, ebp
jne 0x18013f78e
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x18013f7ad
xchg dword [rbx + 8], r15d
cmp r15d, 8
cmovne rbx, r12
jmp 0x18013f7ad
mov qword [rcx], r12
jmp 0x18013f7d6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rbx, r12
mov qword [rsi], r12
test rbx, rbx
je 0x18013f7d6
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x18013f7c4
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x18013f800
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1801904c4], 0
jne 0x18013f849
lea rcx, [0x1801904f8]
call sym.tcl86t.dll_hcl_MutexLock
cmp dword [0x1801904c4], 0
jne 0x18013f83c
xor edx, edx
mov dword [0x1801904c4], 1
lea rcx, [0x18013f9e0]
call sym.tcl86t.dll_hcl_CreateExitHandler
mov rcx, qword [0x1801904f8]
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 [0x1801904f0]
xor ebx, ebx
test rax, rax
je 0x18013f876
test ecx, ecx
jle 0x18013f876
cmp ecx, dword [rax + 8]
jge 0x18013f876
mov rax, qword [rax]
mov rbx, qword [rax + rcx*8]
test rbx, rbx
jne 0x18013f8fa
mov rax, qword [0x1801902f8]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd rcx, dword [0x1801904f0]
test rax, rax
je 0x18013f8a6
test ecx, ecx
jle 0x18013f8a6
cmp ecx, dword [rax + 8]
jge 0x18013f8a6
mov rax, qword [rax]
mov rbx, qword [rax + rcx*8]
test rbx, rbx
jne 0x18013f8cf
lea ecx, [rbx + 8]
call sym.tcl86t.dll_hclpAlloc
mov rbx, rax
test rax, rax
je 0x18013f903
xor eax, eax
lea rcx, [0x1801904f0]
mov rdx, rbx
mov qword [rbx], rax
call fcn.180106bc0
xor r8d, r8d
mov qword [rbx], 0
lea rdx, [0x18013fb40]
lea rcx, [0x18013fa10]
call sym.tcl86t.dll_hcl_CreateEventSource
xor edx, edx
lea rcx, [0x18013f920]
call sym.tcl86t.dll_hcl_CreateThreadExitHandler
mov rax, rbx
add rsp, 0x20
pop rbx
ret
mov edx, 8
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3

Function at 0x18013ff30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbp, qword [rsp + 0x70]
mov rdi, rcx
mov r14, r9
mov r15d, r8d
mov rbx, rdx
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rcx, [rdi + 0xa0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub dword [rdi + 0xe8], r15d
xor eax, eax
mov qword [rbp + 0x10], rax
mov r9, r14
mov rcx, qword [rdi]
mov r8d, r15d
mov rdx, rbx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rdi + 0xa0]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
jne 0x18013ffb9
call qword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x3e5
je 0x18013fffd
cmp eax, 0x7c
jne 0x180140016
lea rcx, [rdi + 0xa0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [r14]
lea rcx, [rdi + 0xa0]
sub edx, r15d
add dword [rdi + 0xe8], edx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
mov rcx, qword [rdi]
mov r9d, 1
mov r8, r14
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x18013ffb9
xor eax, eax
jmp 0x18013ffe4
Function at 0x180141f30
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1801902f8]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd rcx, dword [0x180190508]
test rax, rax
je 0x18014200b
test ecx, ecx
jle 0x18014200b
cmp ecx, dword [rax + 8]
jge 0x18014200b
mov rax, qword [rax]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rax + rcx*8]
test rbx, rbx
je 0x180142006
mov rcx, qword [rbx + 8]
mov qword [rsp + 0x20], rdi
xor edi, edi
test rcx, rcx
je 0x180141fc5
mov rax, qword [rbx]
test rax, rax
je 0x180141fbb
xor r9d, r9d
xor r8d, r8d
mov edx, 0x403
mov rcx, rax
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, qword [rbx + 0x18]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 8]
mov qword [rbx], rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], rdi
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x180141fd8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x18], rdi
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x180141feb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x20], rdi
xor r8d, r8d
lea rdx, [0x180143e20]
lea rcx, [0x180143d30]
call sym.tcl86t.dll_hcl_DeleteEventSource
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
Function at 0x180142010
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
je 0x180142041
test byte [rcx + 0x10], 0x20
je 0x180142041
mov dword [rdx], 0x7e
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
test byte [rcx + 0x10], 2
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbp
je 0x18014213e
xor ecx, ecx
call sym.tcl86t.dll_hcl_SetServiceMode
mov ebp, eax
nop
mov rcx, qword [0x1801902f8]
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd rcx, dword [0x180190508]
xor ebx, ebx
test rax, rax
je 0x18014208d
test ecx, ecx
jle 0x18014208d
cmp ecx, dword [rax + 8]
jge 0x18014208d
mov rax, qword [rax]
mov rbx, qword [rax + rcx*8]
mov rcx, qword [rbx + 0x20]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rdi + 0x18]
test al, 0x10
jne 0x1801420da
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test rsi, rsi
je 0x180142137
test byte [rdi + 0x10], 1
jne 0x1801420cd
mov rcx, qword [rbx + 0x18]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x180142060
mov dword [rsi], 0x8c
mov eax, 0xffffffff
jmp 0x180142140
mov eax, dword [rdi + 0x18]
and eax, 0xffffffef
mov dword [rdi + 0x18], eax
test rsi, rsi
je 0x1801420f5
mov eax, dword [rdi + 0x10]
test al, 1
jne 0x1801420f5
and eax, 0xfffffffd
mov dword [rdi + 0x10], eax
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rdx, rdi
xor ecx, ecx
call fcn.180143010
mov ecx, ebp
mov ebx, eax
call sym.tcl86t.dll_hcl_SetServiceMode
test ebx, ebx
jne 0x18014212c
test byte [rdi + 0x10], 0x10
je 0x18014213e
test rsi, rsi
je 0x180142137
mov dword [rsi], 0x8c
lea eax, [rbx - 1]
jmp 0x180142140
test rsi, rsi
je 0x180142137
mov dword [rsi], 0x7e
mov eax, 0xffffffff
jmp 0x180142140
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1801424a0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x20
mov rax, qword [0x1801902f8]
mov rbp, rcx
xor r14d, r14d
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
xor edi, edi
movsxd rax, dword [0x180190508]
test rdx, rdx
je 0x1801424e2
test eax, eax
jle 0x1801424e2
cmp eax, dword [rdx + 8]
jge 0x1801424e2
mov rcx, rax
mov rax, qword [rdx]
mov rdi, qword [rax + rcx*8]
test rdi, rdi
jne 0x180142527
lea ecx, [rdi + 0x38]
call sym.tcl86t.dll_hclpAlloc
mov rdi, rax
test rax, rax
je 0x180142664
xor eax, eax
lea rcx, [0x180190508]
mov qword [rdi], rax
mov rdx, rdi
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], rax
mov qword [rdi + 0x28], rax
mov qword [rdi + 0x30], rax
call fcn.180106bc0
lea rcx, [0x180190500]
mov qword [rsp + 0x40], rbx
call sym.tcl86t.dll_hcl_MutexLock
mov rcx, qword [0x180190500]
xor ebx, ebx
cmp dword [0x1801904ec], 1
sete bl
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x1801425fe
mov qword [rsp + 0x48], rsi
mov rsi, qword [rbp + 8]
test rsi, rsi
je 0x1801425f9
mov qword [rsp + 0x50], r15
lea r15, [0x180000000]
nop word [rax + rax]
mov rax, qword [rsi + 0x10]
mov qword [rbp + 8], rax
mov rcx, qword [rsi + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x1801425e3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x10c
jb 0x1801425c7
add eax, 0xffffd8cd
cmp eax, 0x25
jb 0x1801425bc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WS2_32.dll_shutdown
jmp 0x1801425da
movzx ebx, byte [rax + r15 + 0x15ea88]
jmp 0x1801425d2
mov eax, eax
movzx ebx, byte [rax + r15 + 0x15f8f0]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r14d, dword [rax]
mov rcx, rsi
call sym.tcl86t.dll_hclpFree
mov rsi, qword [rbp + 8]
test rsi, rsi
jne 0x180142580
mov r15, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rcx, qword [rbp + 0x38]
mov rbx, qword [rsp + 0x40]
test rcx, rcx
je 0x180142612
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x180142621
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rcx, qword [rdi + 0x28]
test rcx, rcx
je 0x180142650
cmp rcx, rbp
jne 0x180142650
mov rcx, qword [rdi + 0x20]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rdi + 0x20]
mov qword [rdi + 0x28], 0
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbp
call sym.tcl86t.dll_hclpFree
mov eax, r14d
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
mov edx, gethostname
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3
Function at 0x1801435c0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x18018f008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rsi, rcx
lea rcx, [0x180190500]
call sym.tcl86t.dll_hcl_MutexLock
call fcn.180143a40
mov rcx, qword [0x180190500]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x180190500]
call sym.tcl86t.dll_hcl_MutexLock
mov rcx, qword [0x180190500]
xor edi, edi
cmp dword [0x1801904ec], 1
mov ebx, edi
sete bl
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
jne 0x180143631
xor eax, eax
jmp 0x1801436de
mov rax, qword [0x1801902f8]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd rdx, dword [0x180190508]
test rax, rax
je 0x18014365c
test edx, edx
jle 0x18014365c
cmp edx, dword [rax + 8]
jge 0x18014365c
mov rax, qword [rax]
mov rdi, qword [rax + rdx*8]
mov edx, 0x1000
mov rcx, rsi
call sym.tcl86t.dll_hclSockMinimumBuffers
mov rcx, rsi
call fcn.180144510
mov r9, rax
mov edx, 0x402
mov r8d, 1
mov rbx, rax
mov dword [rax + 0x1c], 0x23
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r8, rbx
lea rdx, str.sock_p
lea rcx, [rsp + 0x20]
call fcn.180001060
mov r9d, 6
lea rdx, [rsp + 0x20]
mov r8, rbx
lea rcx, [0x18015fc00]
call sym.tcl86t.dll_hcl_CreateChannel
lea r9, str.auto_crlf
mov qword [rbx], rax
lea r8, str._translation
mov rdx, rax
xor ecx, ecx
call sym.tcl86t.dll_hcl_SetChannelOption
mov rax, qword [rbx]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180146240
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x180143700
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push r13
push r14
push r15
sub rsp, 0x80
mov ecx, 0x469
mov r13, rdx
call fcn.180143950
mov ecx, 0x4d2
mov qword [rsp + 0x58], rax
call fcn.180143950
mov r15, rax
call fcn.180143a20
mov rdx, qword gs:[0x30]
xor r11d, r11d
mov r10d, eax
mov r14d, r11d
mov r8, qword [rdx + 0x60]
mov r9, qword [r8 + 0x18]
add r9, 0x10
mov rcx, qword [r9]
cmp rcx, r9
je 0x180143791
lea r8, [fcn.180143a20]
nop dword [rax]
mov rdx, qword [rcx + 0x30]
cmp r8, rdx
jb 0x180143784
mov eax, dword [rcx + 0x40]
add rax, rdx
cmp r8, rax
jb 0x18014378e
mov rcx, qword [rcx]
cmp rcx, r9
jne 0x180143770
jmp 0x180143791
mov r14, rdx
test r14, r14
jne 0x1801437a6
xor eax, eax
add rsp, 0x80
pop r15
pop r14
pop r13
ret
mov qword [rsp + 0xa8], rbx
lea rdx, [rsp + 0x49]
mov ebx, dword [r14 + r10 + 4]
mov r8d, r11d
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x70], rsi
lea rsi, [r14 + r10]
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x60], r12
mov r12d, dword [rsi + 8]
add r12, r14
add rbx, r14
movsd xmm0, qword [rbx]
mov eax, dword [rbx + 8]
movsd qword [rsp + 0x40], xmm0
mov dword [rsp + 0x48], eax
nop
movsxd rcx, r8d
lea rdx, [rdx + 4]
mov rax, rcx
add r8d, 4
and eax, 3
movzx eax, byte [rsp + rax + 0x44]
xor byte [rdx - 5], al
lea rax, [rcx + 1]
and eax, 3
movzx eax, byte [rsp + rax + 0x44]
xor byte [rdx - 4], al
lea rax, [rcx - 2]
and eax, 3
movzx eax, byte [rsp + rax + 0x44]
xor byte [rdx - 3], al
lea rax, [rcx - 1]
and eax, 3
movzx eax, byte [rsp + rax + 0x44]
xor byte [rdx - 2], al
cmp r8d, 4
jb 0x1801437f0
mov ebp, dword [rsp + 0x48]
mov r9d, 0x40
mov edx, ebp
mov r8d, 0x1000
xor ecx, ecx
add rbx, 0xc
mov edi, ebp
call r15
mov r15, rax
mov rdx, rax
test ebp, ebp
je 0x180143876
movzx ecx, byte [rbx]
lea rbx, [rbx + 1]
mov byte [rdx], cl
lea rdx, [rdx + 1]
sub rdi, 1
jne 0x180143863
mov rdi, qword [rsp + 0x68]
xor r8d, r8d
mov rbx, qword [rsp + 0xa8]
mov edx, r8d
test ebp, ebp
je 0x1801438a7
mov rcx, r15
mov eax, edx
lea rcx, [rcx + 1]
and eax, 7
inc edx
movzx eax, byte [rax + rsi + 0x10]
xor byte [rcx - 1], al
cmp edx, ebp
jb 0x180143890
mov eax, dword [rsi]
mov rcx, rsi
cmp byte [rsi + 0x20], 1
mov dword [rsp + 0x40], eax
mov eax, dword [rsi + 0xc]
cmove r13, r14
mov dword [rsp + 0x44], eax
cmovne r14, r8
mov rdx, qword [rsp + 0x40]
mov r9, r14
mov qword [rsp + 0x50], r8
mov eax, dword [rsi + 0x1c]
mov r8d, dword [rsi + 0x18]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
call r15
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov r12, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
test rax, rax
je 0x180143932
mov r9d, dword [rsp + 0xb8]
mov rdx, r13
mov r8, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa0]
call rax
mov eax, 1
add rsp, 0x80
pop r15
pop r14
pop r13
ret
Function at 0x180143950
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov rax, qword gs:[0x60]
xor r8d, r8d
mov ebx, ecx
mov rdx, qword [rax + 0x18]
mov rax, qword [rdx + 0x10]
mov rdx, qword [rax]
mov rax, qword [rdx]
mov r10, qword [rax + 0x30]
movsxd rax, dword [r10 + 0x3c]
mov edi, dword [rax + r10 + 0x88]
add rdi, r10
mov r9d, dword [rdi + 0x20]
mov r11d, dword [rdi + 0x18]
add r9, r10
test r11d, r11d
je 0x1801439dc
nop dword [rax]
mov eax, dword [r9]
lea r9, [r9 + 4]
add rax, r10
xor edx, edx
movzx ecx, byte [rax]
test cl, cl
je 0x1801439d0
nop dword [rax]
nop word [rax + rax]
movzx ecx, cl
lea rax, [rax + 1]
add edx, ecx
movzx ecx, byte [rax]
test cl, cl
jne 0x1801439c0
cmp edx, ebx
je 0x1801439e9
inc r8d
cmp r8d, r11d
jb 0x1801439a0
xor eax, eax
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
mov edx, dword [rdi + 0x24]
lea eax, [r8 + r8]
mov rbx, qword [rsp + 8]
movsxd rcx, eax
lea rax, [r10 + rdx]
movzx edx, word [rcx + rax]
mov ecx, dword [rdi + 0x1c]
mov rdi, qword [rsp + 0x10]
add rcx, r10
mov eax, dword [rcx + rdx*4]
add rax, r10
ret