joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001a470
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov r14, r8
mov rbp, rdx
mov rdi, rcx
mov rbx, r8
je 0x14001a508
test r8, r8
jle 0x14001a500
nop word [rax + rax]
mov rcx, rdi
call fcn.140013aa0
test rax, rax
jle 0x14001a4de
cmp rbx, rax
mov rsi, rbx
mov rdx, rbp
cmovge rsi, rax
mov rax, qword [rdi + 0x40]
mov r8, rsi
mov rcx, qword [rax]
call fcn.140036ce0
mov rax, qword [rdi + 0x58]
sub rbx, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
jmp 0x14001a4f8
mov rax, qword [rdi]
mov rcx, rdi
movzx edx, byte [rbp]
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14001a500
dec rbx
mov esi, 1
add rbp, rsi
test rbx, rbx
jg 0x14001a4a0
sub r14, rbx
mov rax, r14
jmp 0x14001a586
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], r15
mov r9, qword [rax]
test r9, r9
je 0x14001a521
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14001a523
xor ecx, ecx
movsxd rsi, ecx
test r14, r14
jle 0x14001a57b
test ecx, ecx
jle 0x14001a55c
cmp r14, rsi
mov rcx, r9
cmovl rsi, r14
mov r8, rsi
call fcn.140036ce0
mov rax, qword [rdi + 0x58]
add rbp, rsi
sub r14, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
test r14, r14
jle 0x14001a57b
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14001a57b
mov r8, r14
mov edx, 1
mov rcx, rbp
call fcn.14003de20
sub r14, rax
mov r15, qword [rsp + 0x40]
sub rbx, r14
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14001a5a0
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 0x14001a5d1
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 0x14001a64b
mov rdi, r14
mov rcx, rbx
call fcn.14001b800
test rax, rax
jle 0x14001a623
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.140036ce0
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 0x14001a63b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14001a643
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14001a5e5
sub r14, rdi
jmp 0x14001a72f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14001a662
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001a664
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001a696
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140036ce0
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 0x14001a72c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001a6d1
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 0x14001a70d
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14003e4c8
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14001a72c
cmp rbp, rax
ja 0x14001a6e0
test rbp, rbp
je 0x14001a72c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14003e4c8
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 0x14001d4a0
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 0x14001d5f0
cmp byte [rcx + 0x58], 0
je 0x14001d4ed
add rcx, 0x30
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov sil, 1
jmp 0x14001d4f0
xor sil, sil
mov word [rbx + 0xb8], 0x101
cmp byte [rbx + 0x58], 0
je 0x14001d50e
or qword [rbx + 0x70], 1
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_SetEvent]
cmp byte [rbx + 0xa0], 0
jne 0x14001d52d
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x14001d52d
mov byte [rbx + 0xa0], 1
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test sil, sil
je 0x14001d545
cmp byte [rbx + 0x58], 0
je 0x14001d542
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 0x14001d59c
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x14001d5be
xor r8d, r8d
mov rdx, rcx
lea rcx, [fcn.1400109d0]
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 0x14001d5e1
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x18
mov rcx, rbp
call fcn.1400345e0
test sil, sil
je 0x14001d5f0
lea rcx, [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rbx + 0xa8]
call fcn.140021020
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 0x14001d637
mov edx, 0xc8
mov rcx, rbx
call fcn.1400345e0
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 0x14001d660
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 0x14001d698
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dil, 1
jmp 0x14001d69b
xor dil, dil
mov byte [rsp + 0x28], dil
mov byte [rbx + 0xb9], 1
cmp qword [rbx + 0xc0], 0
je 0x14001d6ec
mov byte [rbx + 0xb8], 1
cmp byte [rsi + 0x28], 0
je 0x14001d6cd
or qword [rbx + 0x70], 1
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_SetEvent]
cmp byte [rbx + 0xa0], 0
jne 0x14001d6ec
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x14001d6ec
mov byte [rbx + 0xa0], 1
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x14001d708
cmp byte [rsi + 0x28], 0
je 0x14001d700
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 0x14001d7bd
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 0x14001d76c
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x14001d78e
xor r8d, r8d
mov rdx, rcx
lea rcx, [fcn.1400109d0]
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 0x14001d7b1
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x18
mov rcx, rdi
call fcn.1400345e0
mov qword [rbx + 0xc0], r14
movzx edi, byte [rsp + 0x28]
mov rcx, qword [rbx + 0xa8]
test rcx, rcx
je 0x14001d827
lea rbp, [rbx + 0x88]
lea r15, [0x140089e50]
nop word [rax + rax]
mov rax, qword [rcx]
mov qword [rbx + 0xa8], rax
test rax, rax
jne 0x14001d7f6
mov qword [rbx + 0xb0], r14
mov qword [rcx], r14
cmp rcx, rbp
je 0x14001d81b
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 0x14001d7e0
mov qword [rbx + 0x78], r14
test dil, dil
je 0x14001d839
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 0x14001d860
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 0x14001d8af
call fcn.140010de0
xor eax, eax
jmp 0x14001d9e8
mov dword [rbp + 0x27], ebx
lea rcx, [rbp + 0x2f]
call fcn.1400309a4
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 0x14001d92f
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x61], 1
jmp 0x14001d933
mov byte [rbp - 0x61], 0
mov r9, rsi
lea r8, [rbp - 0x29]
lea rdx, [rbp - 0x69]
mov rcx, rdi
call fcn.14001dd20
test rax, rax
je 0x14001d991
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 0x14001d979
cmp byte [rbp - 0x61], 0
jne 0x14001d979
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.14001dd20
test rax, rax
jne 0x14001d950
cmp byte [rbp - 0x61], 0
je 0x14001d9a2
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.140021020
lea rdi, [rbp - 0x29]
mov esi, 0xa
mov rcx, qword [rdi]
test rcx, rcx
je 0x14001d9d2
call fcn.140034adc
add rdi, 8
sub rsi, 1
jne 0x14001d9c5
lea rcx, [rbp + 0x2f]
call fcn.140030a30
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 0x14001da70
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 0x14001db84
cmp qword [rax], rbx
je 0x14001daac
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14001da98
add rsp, 0x70
pop rbx
ret
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x14001db84
mov ecx, dword [rbx + 0x50]
test ecx, ecx
je 0x14001db51
cmp ecx, 1
jne 0x14001db84
lea rdx, [rbx + 0x58]
mov dword [rbx + 0x50], 2
lea rcx, [rsp + 0x30]
call fcn.140030950
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.140030950
lea rcx, [rsp + 0x30]
call fcn.140030a30
lea rcx, [rsp + 0x20]
call fcn.1400309a4
lea r8, [0x140085360]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.140030978
lea rcx, [rsp + 0x58]
call fcn.140030a30
lea rax, vtable.std::exception.0
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x40], rax
call fcn.140036a30
jmp 0x14001db6c
lea rcx, [rsp + 0x20]
mov dword [rbx + 0x50], 1
call fcn.1400309a4
lea rcx, [rsp + 0x20]
call fcn.1400309b0
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x58]
call fcn.140030948
lea rcx, [rsp + 0x20]
call fcn.140030a30
add rsp, 0x70
pop rbx
ret
Function at 0x14001db90
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 0x14001dbc0
test r8b, r8b
je 0x14001dbe6
test rbx, rbx
cmove rdi, rbp
mov ecx, dword [0x14008ce6c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001dbe6
cmp qword [rax], rdi
je 0x14001dc11
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14001dbd8
lock inc dword [rbx + 0xa4]
lea rdi, [rbx + 0x30]
mov qword [rsp + 0x20], rdi
cmp byte [rdi + 0x28], bpl
je 0x14001dc42
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov sil, 1
movzx eax, sil
movzx ecx, al
jmp 0x14001dc49
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14001dbe6
inc dword [rcx + 0x78]
mov qword [r14], rbp
mov rax, qword [rcx + 0x70]
test rax, rax
je 0x14001dc35
mov qword [rax], r14
mov qword [rcx + 0x70], r14
jmp 0x14001dcf8
mov qword [rcx + 0x68], r14
mov qword [rcx + 0x70], r14
jmp 0x14001dcf8
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 0x14001dc62
mov qword [rdx], r14
jmp 0x14001dc6c
mov qword [rbx + 0xa8], r14
movzx eax, cl
mov qword [rbx + 0xb0], r14
cmp byte [rdi + 0x28], 0
je 0x14001dcb4
or qword [rbx + 0x70], 1
cmp qword [rbx + 0x70], 1
jbe 0x14001dcae
test al, al
je 0x14001dca0
cmp byte [rdi + 0x28], 0
je 0x14001dc98
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 0x14001dcb0
xor al, al
test al, al
jne 0x14001dcea
cmp byte [rbx + 0xa0], 0
jne 0x14001dcd3
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x14001dcd3
mov byte [rbx + 0xa0], 1
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test sil, sil
je 0x14001dcea
cmp byte [rdi + 0x28], 0
je 0x14001dce7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor sil, sil
test sil, sil
je 0x14001dcf8
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 0x140026e20
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 0x140026e4f
mov rcx, qword [rcx + 0x18]
test rcx, rcx
je 0x140026e47
mov rax, qword [rcx]
xor edx, edx
call rax
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140026e98
mov ecx, dword [0x14008ce6c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140026e88
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140026e88
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x140026ea3
inc ecx
inc rax
cmp rax, 2
jl 0x140026e76
mov rcx, rbx
call fcn.140034adc
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 0x140029380
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 0x1400293c0
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 0x1400293d0
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.140030950
nop
cmp qword [rbp + 0xf], 0
je 0x1400294ed
mov rcx, qword [rbp + 0x17]
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x140029420
lea rcx, [0x14002a440]
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 0x1400294c3
mov rdi, qword [rcx + 0x10]
lea rdx, [rbp + 0x2f]
lea rcx, [rbp - 0x41]
call fcn.140030950
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 0x140029458
mov rdx, qword [rax + 8]
jmp 0x14002945a
xor edx, edx
mov r8d, 0x28
call fcn.140018e20
mov rbx, rax
mov qword [rbp - 0x19], 0
lea rcx, [rax + 0x10]
lea rdx, [rbp - 0x41]
call fcn.140030950
lea rax, [0x14002a580]
mov qword [rbx], rax
mov qword [rbp + 0x67], rbx
mov qword [rbp - 0x21], 0
lea rcx, [rbp - 0x29]
call fcn.14002a3a0
nop
lea rcx, [rbp - 0x41]
call fcn.140030a30
nop
lea rdx, [rbp + 0x67]
lea rcx, [rbp - 0x11]
call rdi
nop
mov rcx, qword [rbp + 0x67]
test rcx, rcx
je 0x1400294c3
mov rax, qword [rcx]
xor edx, edx
call rax
nop
lea rcx, [rbp + 0x2f]
call fcn.140030a30
nop
cmp qword [rbp + 0xf], 0
je 0x1400294e2
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.140010710
nop
lea rcx, [rbp - 0x29]
call fcn.140015060
int3
Function at 0x14002a1d0
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 0x14002a2da
mov rcx, qword [rcx + 0x28]
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x14002a216
lea rcx, [0x14002a520]
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 0x14002a258
mov rdx, qword [rax + 8]
jmp 0x14002a25b
mov rdx, rsi
mov r8d, 0x18
call fcn.140018e20
mov qword [rsp + 0x40], rsi
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x80], rsi
mov qword [rax + 8], rcx
lea rcx, [0x14002a6b0]
mov qword [rax], rcx
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x38], rsi
lea rcx, [rsp + 0x30]
call fcn.14002a480
nop
lea rcx, [rsp + 0x80]
call fcn.140017680
nop
lea rdx, [rsp + 0x88]
mov rcx, rbx
call rdi
nop
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14002a2d2
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.140010710
nop
lea rcx, [rsp + 0x30]
call fcn.140015060
int3

Function at 0x14002a3a0
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 0x14002a3c7
add rcx, 0x10
call fcn.140030a30
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14002a413
mov ecx, dword [0x14008ce6c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002a403
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14002a403
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x14002a41e
inc ecx
inc rax
cmp rax, 6
jl 0x14002a3f1
mov rcx, rbx
call fcn.140034adc
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 0x14002a480
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 0x14002a4a7
add rcx, 8
call fcn.140017680
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14002a4f3
mov ecx, dword [0x14008ce6c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002a4e3
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14002a4e3
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x14002a4fe
inc ecx
inc rax
cmp rax, 6
jl 0x14002a4d1
mov rcx, rbx
call fcn.140034adc
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 0x14002e240
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 0x14002e3ed
mov edi, r14d
cmp dword [rsp + 0xa0], r14d
jbe 0x14002e3ed
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 0x14002e2d0
lea rcx, [rsp + 0x48]
call fcn.1400158b0
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x30]
lea rcx, [0x14008cec8]
call fcn.14002cda0
mov rsi, qword [rsp + 0x60]
mov r10, qword [rsp + 0x48]
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], r14b
jne 0x14002e36e
mov r11, qword [rax + 0x30]
add rax, 0x20
cmp qword [rax + 0x18], 8
jb 0x14002e320
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 0x14002e358
sub r9, rax
movzx edx, word [r9 + rax]
cmp dx, word [rax]
jne 0x14002e361
add rax, 2
sub rcx, 1
jne 0x14002e344
cmp rbx, r11
jb 0x14002e36e
mov bl, 1
jmp 0x14002e370
mov eax, 1
cmovb eax, r15d
test eax, eax
jns 0x14002e35d
xor bl, bl
cmp rsi, 8
jb 0x14002e3a7
lea rdx, [rsi*2 + 2]
mov rax, r10
cmp rdx, 0x1000
jb 0x14002e39f
mov r10, qword [r10 - 8]
add rdx, 0x27
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002e414
mov rcx, r10
call fcn.1400345e0
test bl, bl
je 0x14002e3de
mov r8, qword [rsp + 0xa8]
mov rdx, qword [0x14008cf08]
add r8, 4
add r8, rbp
cmp rdx, qword [0x14008cf10]
je 0x14002e3d9
mov eax, dword [r8]
mov dword [rdx], eax
add qword [0x14008cf08], 4
jmp 0x14002e3de
call fcn.14002e9b0
inc edi
cmp edi, dword [rsp + 0xa0]
jb 0x14002e2a0
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x14002e400
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.14003d29c
int3