joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001a610
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x14001a641
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x14001a6bb
mov rdi, r14
mov rcx, rbx
call fcn.14001b870
test rax, rax
jle 0x14001a693
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.140036d50
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14001a6ab
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14001a6b3
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14001a655
sub r14, rdi
jmp 0x14001a79f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14001a6d2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001a6d4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001a706
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140036d50
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14001a79c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001a741
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14001a77d
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14003e538
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14001a79c
cmp rbp, rax
ja 0x14001a750
test rbp, rbp
je 0x14001a79c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14003e538
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14001d510
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov r14d, edx
mov rbx, rcx
lea rax, vtable.asio::detail::scheduler.0
mov qword [rcx], rax
cmp qword [rcx + 0xc0], 0
je 0x14001d660
cmp byte [rcx + 0x58], 0
je 0x14001d55d
add rcx, 0x30
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov sil, 1
jmp 0x14001d560
xor sil, sil
mov word [rbx + 0xb8], 0x101
cmp byte [rbx + 0x58], 0
je 0x14001d57e
or qword [rbx + 0x70], 1
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_SetEvent]
cmp byte [rbx + 0xa0], 0
jne 0x14001d59d
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x14001d59d
mov byte [rbx + 0xa0], 1
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test sil, sil
je 0x14001d5b5
cmp byte [rbx + 0x58], 0
je 0x14001d5b2
lea rcx, [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor sil, sil
mov rbp, qword [rbx + 0xc0]
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 8]
mov qword [rsp + 0x28], rax
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x14008ce28], eax
mov rcx, qword [rbp + 8]
test eax, eax
je 0x14001d60c
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x14001d62e
xor r8d, r8d
mov rdx, rcx
lea rcx, [fcn.140010a40]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov edx, 0xffffffff
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rbp, qword [rbx + 0xc0]
test rbp, rbp
je 0x14001d651
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x18
mov rcx, rbp
call fcn.140034650
test sil, sil
je 0x14001d660
lea rcx, [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rbx + 0xa8]
call fcn.140021080
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rax, vtable.asio::execution_context::service.0
mov qword [rbx], rax
test r14b, 1
je 0x14001d6a7
mov edx, 0xc8
mov rcx, rbx
call fcn.140034650
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14001d6d0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rbx, rcx
lea rsi, [rcx + 0x30]
mov qword [rsp + 0x20], rsi
cmp byte [rsi + 0x28], 0
je 0x14001d708
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dil, 1
jmp 0x14001d70b
xor dil, dil
mov byte [rsp + 0x28], dil
mov byte [rbx + 0xb9], 1
cmp qword [rbx + 0xc0], 0
je 0x14001d75c
mov byte [rbx + 0xb8], 1
cmp byte [rsi + 0x28], 0
je 0x14001d73d
or qword [rbx + 0x70], 1
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_SetEvent]
cmp byte [rbx + 0xa0], 0
jne 0x14001d75c
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x14001d75c
mov byte [rbx + 0xa0], 1
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x14001d778
cmp byte [rsi + 0x28], 0
je 0x14001d770
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor dil, dil
mov byte [rsp + 0x28], dil
mov rbp, qword [rbx + 0xc0]
xor r14d, r14d
test rbp, rbp
je 0x14001d82d
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 8]
mov qword [rsp + 0x38], rax
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea ecx, [r14 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r14d
lock xadd dword [0x14008ce28], eax
mov rcx, qword [rbp + 8]
test eax, eax
je 0x14001d7dc
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x14001d7fe
xor r8d, r8d
mov rdx, rcx
lea rcx, [fcn.140010a40]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov edx, 0xffffffff
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdi, qword [rbx + 0xc0]
test rdi, rdi
je 0x14001d821
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x18
mov rcx, rdi
call fcn.140034650
mov qword [rbx + 0xc0], r14
movzx edi, byte [rsp + 0x28]
mov rcx, qword [rbx + 0xa8]
test rcx, rcx
je 0x14001d897
lea rbp, [rbx + 0x88]
lea r15, [0x140089e50]
nop word [rax + rax]
mov rax, qword [rcx]
mov qword [rbx + 0xa8], rax
test rax, rax
jne 0x14001d866
mov qword [rbx + 0xb0], r14
mov qword [rcx], r14
cmp rcx, rbp
je 0x14001d88b
mov rax, qword [rcx + 8]
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x48], r15
xor r9d, r9d
lea r8, [rsp + 0x40]
mov rdx, rcx
xor ecx, ecx
call rax
mov rcx, qword [rbx + 0xa8]
test rcx, rcx
jne 0x14001d850
mov qword [rbx + 0x78], r14
test dil, dil
je 0x14001d8a9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret
Function at 0x14001d8d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov dword [rbp - 0x41], ebx
lea rax, [0x140089e50]
mov qword [rbp - 0x39], rax
movups xmm0, xmmword [rbp - 0x41]
movups xmmword [rdx], xmm0
mov eax, dword [rcx + 0xa4]
test eax, eax
jne 0x14001d91f
call fcn.140010e50
xor eax, eax
jmp 0x14001da58
mov dword [rbp + 0x27], ebx
lea rcx, [rbp + 0x2f]
call fcn.140030a18
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x3f], rbx
mov qword [rbp + 0x47], rbx
mov dword [rbp + 0x4f], ebx
lea rax, [rdi + 0x28]
test rdi, rdi
cmove rax, rbx
mov qword [rbp - 0x59], rax
lea rax, [rbp - 0x29]
mov qword [rbp - 0x51], rax
mov ecx, dword [0x14008ce6c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbp - 0x49], rax
lea rdx, [rbp - 0x59]
mov ecx, dword [0x14008ce6c]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rcx, [rdi + 0x30]
mov qword [rbp - 0x69], rcx
cmp byte [rcx + 0x28], 0
je 0x14001d99f
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x61], 1
jmp 0x14001d9a3
mov byte [rbp - 0x61], 0
mov r9, rsi
lea r8, [rbp - 0x29]
lea rdx, [rbp - 0x69]
mov rcx, rdi
call fcn.14001dd90
test rax, rax
je 0x14001da01
nop dword [rax + rax]
lea rax, [rbx + 1]
cmp rbx, 0xffffffffffffffff
cmove rax, rbx
mov rbx, rax
mov rcx, qword [rbp - 0x69]
cmp byte [rcx + 0x28], 0
je 0x14001d9e9
cmp byte [rbp - 0x61], 0
jne 0x14001d9e9
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x61], 1
mov r9, rsi
lea r8, [rbp - 0x29]
lea rdx, [rbp - 0x69]
mov rcx, rdi
call fcn.14001dd90
test rax, rax
jne 0x14001d9c0
cmp byte [rbp - 0x61], 0
je 0x14001da12
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rdx, qword [rbp - 0x49]
mov ecx, dword [0x14008ce6c]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rcx, [rbp + 0x3f]
call fcn.140021080
lea rdi, [rbp - 0x29]
mov esi, 0xa
mov rcx, qword [rdi]
test rcx, rcx
je 0x14001da42
call fcn.140034b4c
add rdi, 8
sub rsi, 1
jne 0x14001da35
lea rcx, [rbp + 0x2f]
call fcn.140030aa4
mov rax, rbx
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14001dae0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x70
xor eax, eax
lea rbx, [rcx + 0x28]
test rcx, rcx
mov ecx, dword [0x14008ce6c]
cmove rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001dbf4
cmp qword [rax], rbx
je 0x14001db1c
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14001db08
add rsp, 0x70
pop rbx
ret
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x14001dbf4
mov ecx, dword [rbx + 0x50]
test ecx, ecx
je 0x14001dbc1
cmp ecx, 1
jne 0x14001dbf4
lea rdx, [rbx + 0x58]
mov dword [rbx + 0x50], 2
lea rcx, [rsp + 0x30]
call fcn.1400309c4
xorps xmm0, xmm0
lea rax, vtable.asio::multiple_exceptions.0
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x58]
movups xmmword [rsp + 0x48], xmm0
call fcn.1400309c4
lea rcx, [rsp + 0x30]
call fcn.140030aa4
lea rcx, [rsp + 0x20]
call fcn.140030a18
lea r8, [0x140085360]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.1400309ec
lea rcx, [rsp + 0x58]
call fcn.140030aa4
lea rax, vtable.std::exception.0
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x40], rax
call fcn.140036aa0
jmp 0x14001dbdc
lea rcx, [rsp + 0x20]
mov dword [rbx + 0x50], 1
call fcn.140030a18
lea rcx, [rsp + 0x20]
call fcn.140030a24
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x58]
call fcn.1400309bc
lea rcx, [rsp + 0x20]
call fcn.140030aa4
add rsp, 0x70
pop rbx
ret
Function at 0x14001dc00
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rdx
mov rbx, rcx
lea rdi, [rcx + 0x28]
xor ebp, ebp
cmp byte [rdi], bpl
jne 0x14001dc30
test r8b, r8b
je 0x14001dc56
test rbx, rbx
cmove rdi, rbp
mov ecx, dword [0x14008ce6c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001dc56
cmp qword [rax], rdi
je 0x14001dc81
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14001dc48
lock inc dword [rbx + 0xa4]
lea rdi, [rbx + 0x30]
mov qword [rsp + 0x20], rdi
cmp byte [rdi + 0x28], bpl
je 0x14001dcb2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov sil, 1
movzx eax, sil
movzx ecx, al
jmp 0x14001dcb9
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14001dc56
inc dword [rcx + 0x78]
mov qword [r14], rbp
mov rax, qword [rcx + 0x70]
test rax, rax
je 0x14001dca5
mov qword [rax], r14
mov qword [rcx + 0x70], r14
jmp 0x14001dd68
mov qword [rcx + 0x68], r14
mov qword [rcx + 0x70], r14
jmp 0x14001dd68
xor sil, sil
xor al, al
xor cl, cl
mov byte [rsp + 0x28], sil
mov qword [r14], rbp
mov rdx, qword [rbx + 0xb0]
test rdx, rdx
je 0x14001dcd2
mov qword [rdx], r14
jmp 0x14001dcdc
mov qword [rbx + 0xa8], r14
movzx eax, cl
mov qword [rbx + 0xb0], r14
cmp byte [rdi + 0x28], 0
je 0x14001dd24
or qword [rbx + 0x70], 1
cmp qword [rbx + 0x70], 1
jbe 0x14001dd1e
test al, al
je 0x14001dd10
cmp byte [rdi + 0x28], 0
je 0x14001dd08
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor sil, sil
mov byte [rsp + 0x28], sil
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov al, 1
jmp 0x14001dd20
xor al, al
test al, al
jne 0x14001dd5a
cmp byte [rbx + 0xa0], 0
jne 0x14001dd43
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x14001dd43
mov byte [rbx + 0xa0], 1
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test sil, sil
je 0x14001dd5a
cmp byte [rdi + 0x28], 0
je 0x14001dd57
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor sil, sil
test sil, sil
je 0x14001dd68
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140026e80
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140026eaf
mov rcx, qword [rcx + 0x18]
test rcx, rcx
je 0x140026ea7
mov rax, qword [rcx]
xor edx, edx
call rax
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140026ef8
mov ecx, dword [0x14008ce6c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140026ee8
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140026ee8
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x140026f03
inc ecx
inc rax
cmp rax, 2
jl 0x140026ed6
mov rcx, rbx
call fcn.140034b4c
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x28]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400293e0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 0x18], r8d
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x20], 0
je 0x140029420
mov r8, qword [rcx + 0x18]
mov qword [rbp + 7], r8
mov rax, qword [rcx + 0x28]
mov qword [rbp + 0x17], rax
mov rax, qword [r8 + 8]
mov rdx, rcx
lea rcx, [rbp - 0x11]
call rax
jmp 0x140029430
xorps xmm0, xmm0
movdqu xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], 0
mov rax, qword [rbx + 0x30]
mov qword [rbp + 0x1f], rax
lea rdx, [rdi + 8]
lea rcx, [rbp + 0x2f]
call fcn.1400309c4
nop
cmp qword [rbp + 0xf], 0
je 0x14002954d
mov rcx, qword [rbp + 0x17]
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x140029480
lea rcx, [0x14002a4a0]
mov qword [rbp - 0x49], rcx
lea rcx, [rbp + 0x27]
mov qword [rbp - 0x41], rcx
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x11]
call rax
jmp 0x140029523
mov rdi, qword [rcx + 0x10]
lea rdx, [rbp + 0x2f]
lea rcx, [rbp - 0x41]
call fcn.1400309c4
lea rax, [rbp - 0x49]
mov qword [rbp + 0x6f], rax
lea rax, [rbp + 0x77]
mov qword [rbp - 0x29], rax
mov ecx, dword [0x14008ce6c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400294b8
mov rdx, qword [rax + 8]
jmp 0x1400294ba
xor edx, edx
mov r8d, 0x28
call fcn.140018e90
mov rbx, rax
mov qword [rbp - 0x19], 0
lea rcx, [rax + 0x10]
lea rdx, [rbp - 0x41]
call fcn.1400309c4
lea rax, [0x14002a5e0]
mov qword [rbx], rax
mov qword [rbp + 0x67], rbx
mov qword [rbp - 0x21], 0
lea rcx, [rbp - 0x29]
call fcn.14002a400
nop
lea rcx, [rbp - 0x41]
call fcn.140030aa4
nop
lea rdx, [rbp + 0x67]
lea rcx, [rbp - 0x11]
call rdi
nop
mov rcx, qword [rbp + 0x67]
test rcx, rcx
je 0x140029523
mov rax, qword [rcx]
xor edx, edx
call rax
nop
lea rcx, [rbp + 0x2f]
call fcn.140030aa4
nop
cmp qword [rbp + 0xf], 0
je 0x140029542
mov rax, qword [rbp + 7]
mov rdx, qword [rax]
lea rcx, [rbp - 0x11]
call rdx
nop
add rsp, 0xb0
pop rdi
pop rbx
pop rbp
ret
lea rcx, [rbp - 0x29]
call fcn.140010780
nop
lea rcx, [rbp - 0x29]
call fcn.1400150d0
int3
Function at 0x14002a230
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rbx, rcx
cmp qword [rcx + 0x20], 0
je 0x14002a33a
mov rcx, qword [rcx + 0x28]
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x14002a276
lea rcx, [0x14002a580]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 0x20]
mov rcx, rbx
call rax
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
mov rdi, qword [rcx + 0x10]
mov rax, qword [rdx]
xor esi, esi
mov qword [rdx], rsi
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov ecx, dword [0x14008ce6c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002a2b8
mov rdx, qword [rax + 8]
jmp 0x14002a2bb
mov rdx, rsi
mov r8d, 0x18
call fcn.140018e90
mov qword [rsp + 0x40], rsi
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x80], rsi
mov qword [rax + 8], rcx
lea rcx, [0x14002a710]
mov qword [rax], rcx
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x38], rsi
lea rcx, [rsp + 0x30]
call fcn.14002a4e0
nop
lea rcx, [rsp + 0x80]
call fcn.1400176f0
nop
lea rdx, [rsp + 0x88]
mov rcx, rbx
call rdi
nop
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14002a332
mov rax, qword [rcx]
xor edx, edx
call rax
nop
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
lea rcx, [rsp + 0x30]
call fcn.140010780
nop
lea rcx, [rsp + 0x30]
call fcn.1400150d0
int3

Function at 0x14002a400
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14002a427
add rcx, 0x10
call fcn.140030aa4
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14002a473
mov ecx, dword [0x14008ce6c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002a463
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14002a463
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x14002a47e
inc ecx
inc rax
cmp rax, 6
jl 0x14002a451
mov rcx, rbx
call fcn.140034b4c
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x28]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 8], 0
add rsp, 0x20
pop rdi
ret

Function at 0x14002a4e0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14002a507
add rcx, 8
call fcn.1400176f0
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14002a553
mov ecx, dword [0x14008ce6c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002a543
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14002a543
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x14002a55e
inc ecx
inc rax
cmp rax, 6
jl 0x14002a531
mov rcx, rbx
call fcn.140034b4c
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x18]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 8], 0
add rsp, 0x20
pop rdi
ret
Function at 0x14002e2a0
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
xor r14d, r14d
lea rax, [r11 + 8]
lea r9, [r11 + 0x10]
mov qword [r11 + 0x10], r14
xor edx, edx
mov dword [r11 + 8], r14d
xor ecx, ecx
mov qword [r11 - 0x78], rax
lea r8d, [r14 + 1]
call qword [sym.imp.WTSAPI32.dll_WTSEnumerateProcessesW]
test eax, eax
je 0x14002e44d
mov edi, r14d
cmp dword [rsp + 0xa0], r14d
jbe 0x14002e44d
lea r15, [r14 - 1]
nop dword [rax]
nop dword [rax + rax]
mov eax, edi
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r14
mov r8, r15
mov qword [rsp + 0x60], r14
lea rcx, [rax + rax*2]
mov rax, qword [rsp + 0xa8]
lea rbp, [rcx*8]
mov rdx, qword [rax + rbp + 8]
inc r8
cmp word [rdx + r8*2], r14w
jne 0x14002e330
lea rcx, [rsp + 0x48]
call fcn.140015920
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x30]
lea rcx, [0x14008cec8]
call fcn.14002ce00
mov rsi, qword [rsp + 0x60]
mov r10, qword [rsp + 0x48]
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], r14b
jne 0x14002e3ce
mov r11, qword [rax + 0x30]
add rax, 0x20
cmp qword [rax + 0x18], 8
jb 0x14002e380
mov rax, qword [rax]
mov rbx, qword [rsp + 0x58]
lea r9, [rsp + 0x48]
cmp rsi, 8
mov rcx, rbx
cmovae r9, r10
cmp r11, rbx
cmovb rcx, r11
test rcx, rcx
je 0x14002e3b8
sub r9, rax
movzx edx, word [r9 + rax]
cmp dx, word [rax]
jne 0x14002e3c1
add rax, 2
sub rcx, 1
jne 0x14002e3a4
cmp rbx, r11
jb 0x14002e3ce
mov bl, 1
jmp 0x14002e3d0
mov eax, 1
cmovb eax, r15d
test eax, eax
jns 0x14002e3bd
xor bl, bl
cmp rsi, 8
jb 0x14002e407
lea rdx, [rsi*2 + 2]
mov rax, r10
cmp rdx, 0x1000
jb 0x14002e3ff
mov r10, qword [r10 - 8]
add rdx, 0x27
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002e474
mov rcx, r10
call fcn.140034650
test bl, bl
je 0x14002e43e
mov r8, qword [rsp + 0xa8]
mov rdx, qword [0x14008cf08]
add r8, 4
add r8, rbp
cmp rdx, qword [0x14008cf10]
je 0x14002e439
mov eax, dword [r8]
mov dword [rdx], eax
add qword [0x14008cf08], 4
jmp 0x14002e43e
call fcn.14002ea10
inc edi
cmp edi, dword [rsp + 0xa0]
jb 0x14002e300
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x14002e460
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14003d30c
int3