joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002c5f8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 0x48]
test rcx, rcx
je 0x14002c628
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_SendMessageW]
and qword [rbx + 0x48], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
lea rdi, [rbx + 0x38]
mov rsi, rax
mov rcx, qword [rdi]
and qword [rdi], 0
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x14002c656
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rdi], rsi
mov esi, 0x80004005
cmp qword [rdi], 0
jne 0x14002c681
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovns ecx, esi
test ecx, ecx
js 0x14002c6d3
and dword [rbx + 0x40], 0
lea rcx, [0x14002c4b0]
xor r9d, r9d
mov rdx, rbx
lea r8d, [r9 + 4]
call qword [sym.imp.api_ms_win_shcore_thread_l1_1_0.dll_SHCreateThread]
mov ecx, eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, esi
test eax, eax
je 0x14002c6d3
mov r8d, 1
lea rax, [rsp + 0x40]
mov r9, rdi
mov qword [rsp + 0x20], rax
or edx, 0xffffffff
lea ecx, [r8 + 7]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoWaitForMultipleHandles]
mov ecx, eax
test eax, eax
js 0x14002c6d3
mov ecx, dword [rbx + 0x40]
mov rbx, qword [rsp + 0x48]
mov eax, ecx
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14002cce4
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12, rcx
mov rbp, r8
mov ecx, dword [0x14003d17c]
mov r13, rdx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or esi, 0xffffffff
mov r14, rax
test rax, rax
jne 0x14002cd45
mov esi, dword [0x14003d17c]
lea rdx, [rsp + 0x88]
and dword [rsp + 0x88], eax
lea r14, [rsp + 0x88]
mov ecx, esi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
inc dword [r14]
mov eax, dword [r14]
mov r10, qword [0x14003d048]
lea rcx, [0x14003d048]
lea rdx, [0x140035650]
mov r15d, 0x1df
cmp r10, rcx
je 0x14002cda2
test byte [r10 + 0x1c], 1
je 0x14002cda2
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14002cd87
mov eax, ecx
mov ecx, r15d
sub rcx, rax
jmp 0x14002cd89
xor ecx, ecx
lea r9, [rcx + rdx]
mov edx, 0xa
mov rcx, qword [r10 + 0x10]
lea r8, [0x140037148]
call fcn.1400012b0
xor edi, edi
lea rdx, [0x140035918]
mov qword [rsp + 0x30], rdi
lea ecx, [rdi + 0x68]
call fcn.1400308a0
mov rbx, rax
test rax, rax
je 0x14002ce2e
mov dword [rax + 0xc], 1
lea rax, [0x140033d50]
mov qword [rbx], rax
mov rax, qword [0x14003d7d0]
test rax, rax
je 0x14002cdfc
mov rax, qword [rax]
lea rcx, [0x1400034c0]
cmp qword [rax + 8], rcx
jne 0x14002cdf6
lock inc dword [0x14003d7d8]
jmp 0x14002cdfc
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoAddRefServerProcess]
mov qword [rbx + 0x10], r12
lea rax, [0x140033dc8]
xor r12d, r12d
mov qword [rbx], rax
mov qword [rbx + 0x18], r12
mov rdi, rbx
mov qword [rbx + 0x20], r12
mov qword [rbx + 0x28], r12
mov dword [rbx + 0x30], r12d
mov qword [rbx + 0x38], r12
mov byte [rbx + 0x40], r12b
mov dword [rbx + 0x44], r12d
jmp 0x14002ce31
xor r12d, r12d
mov rax, rdi
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x8007000e
test rdi, rdi
je 0x14002ce54
lea rcx, [rdi + 0x18]
mov rdx, r13
call fcn.140022bf0
mov ebx, eax
test ebx, ebx
js 0x14002ce64
mov rcx, rdi
mov rdi, r12
mov qword [rbp], rcx
jmp 0x14002ce68
mov qword [rbp], r12
mov rcx, qword [0x14003d048]
lea rax, [0x14003d048]
cmp rcx, rax
je 0x14002cebc
test byte [rcx + 0x1c], 1
je 0x14002cebc
mov eax, dword [r14]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x14002ce96
mov eax, edx
sub r15, rax
jmp 0x14002ce99
mov r15, r12
mov rcx, qword [rcx + 0x10]
lea r9, [0x140035650]
add r9, r15
mov dword [rsp + 0x20], ebx
mov edx, ntohl
lea r8, [0x140037148]
call fcn.140001304
test rdi, rdi
je 0x14002ced1
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
or eax, 0xffffffff
add dword [r14], eax
cmp esi, eax
je 0x14002cef2
mov ecx, esi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14002cef2
xor edx, edx
mov ecx, esi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
lea r11, [rsp + 0x40]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14002d1ac
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbp, rcx
mov ecx, dword [0x14003d17c]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or ebx, 0xffffffff
mov r14, rax
test rax, rax
jne 0x14002d1f2
mov ebx, dword [0x14003d17c]
lea rdx, [rsp + 0x60]
and dword [rsp + 0x60], eax
lea r14, [rsp + 0x60]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
inc dword [r14]
mov eax, dword [r14]
mov r10, qword [0x14003d048]
lea rcx, [0x14003d048]
lea rdx, [0x140035650]
mov r15d, 0x1df
cmp r10, rcx
je 0x14002d24f
test byte [r10 + 0x1c], 1
je 0x14002d24f
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14002d234
mov eax, ecx
mov ecx, r15d
sub rcx, rax
jmp 0x14002d236
xor ecx, ecx
lea r9, [rcx + rdx]
mov edx, 0xa
mov rcx, qword [r10 + 0x10]
lea r8, [0x140037200]
call fcn.1400012b0
xor esi, esi
lea rdx, [0x140035918]
mov qword [rsp + 0x68], rsi
lea ecx, [rsi + 0x10]
call fcn.1400308a0
mov rdi, rax
test rax, rax
je 0x14002d2bf
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
lea rax, [0x140033e40]
mov qword [rdi], rax
mov rax, qword [0x14003d7d0]
mov dword [rdi + 0xc], 1
test rax, rax
je 0x14002d2b2
mov rax, qword [rax]
lea rcx, [0x1400034c0]
cmp qword [rax + 8], rcx
jne 0x14002d2ac
lock inc dword [0x14003d7d8]
jmp 0x14002d2b2
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoAddRefServerProcess]
lea rax, [0x140033e78]
mov rsi, rdi
mov qword [rdi], rax
mov qword [rbp], rsi
neg rsi
sbb edi, edi
not edi
and edi, 0x8007000e
mov r10, qword [0x14003d048]
lea rax, [0x14003d048]
cmp r10, rax
je 0x14002d325
test byte [r10 + 0x1c], 1
je 0x14002d325
mov eax, dword [r14]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14002d2ff
mov eax, ecx
sub r15, rax
jmp 0x14002d302
xor r15d, r15d
mov rcx, qword [r10 + 0x10]
lea r9, [0x140035650]
add r9, r15
mov dword [rsp + 0x20], edi
mov edx, ntohl
lea r8, [0x140037200]
call fcn.140001304
dec dword [r14]
cmp ebx, 0xffffffff
je 0x14002d344
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14002d344
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov eax, edi
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002d3a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbp, rcx
mov r13, r8
mov ecx, dword [0x14003d17c]
mov r12, rdx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or ebx, 0xffffffff
mov r14, rax
test rax, rax
jne 0x14002d3f9
mov ebx, dword [0x14003d17c]
lea rdx, [rsp + 0x80]
and dword [rsp + 0x80], eax
lea r14, [rsp + 0x80]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
inc dword [r14]
mov eax, dword [r14]
mov r10, qword [0x14003d048]
lea rcx, [0x14003d048]
lea rdx, [0x140035650]
mov r15d, 0x1df
cmp r10, rcx
je 0x14002d456
test byte [r10 + 0x1c], 1
je 0x14002d456
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14002d43b
mov eax, ecx
mov ecx, r15d
sub rcx, rax
jmp 0x14002d43d
xor ecx, ecx
lea r9, [rcx + rdx]
mov edx, ntohl
mov rcx, qword [r10 + 0x10]
lea r8, [0x140037200]
call fcn.1400012b0
xor esi, esi
lea rdx, [0x140035918]
mov qword [rsp + 0x88], rsi
lea ecx, [rsi + 0x20]
call fcn.1400308a0
mov rdi, rax
test rax, rax
je 0x14002d4de
mov dword [rax + 0xc], 1
lea rax, [0x140033f20]
mov qword [rdi], rax
mov rax, qword [0x14003d7d0]
test rax, rax
je 0x14002d4b3
mov rax, qword [rax]
lea rcx, [0x1400034c0]
cmp qword [rax + 8], rcx
jne 0x14002d4ad
lock inc dword [0x14003d7d8]
jmp 0x14002d4b3
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoAddRefServerProcess]
lea rax, [0x140034170]
mov qword [rdi], rax
mov qword [rdi + 0x10], rbp
test rbp, rbp
je 0x14002d4d7
mov rax, qword [rbp]
mov rcx, rbp
mov rax, qword [rax + 8]
call qword [0x140034e68]
mov qword [rdi + 0x18], r12
mov rsi, rdi
mov qword [r13], rsi
neg rsi
sbb edi, edi
not edi
and edi, 0x8007000e
mov r10, qword [0x14003d048]
lea rax, [0x14003d048]
cmp r10, rax
je 0x14002d544
test byte [r10 + 0x1c], 1
je 0x14002d544
mov eax, dword [r14]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14002d51e
mov eax, ecx
sub r15, rax
jmp 0x14002d521
xor r15d, r15d
mov rcx, qword [r10 + 0x10]
lea r9, [0x140035650]
add r9, r15
mov dword [rsp + 0x20], edi
mov edx, ntohl
lea r8, [0x140037200]
call fcn.140001304
or eax, 0xffffffff
add dword [r14], eax
cmp ebx, eax
je 0x14002d565
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14002d565
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov eax, edi
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002da40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbp, rcx
mov r13, r8
mov ecx, dword [0x14003d17c]
mov r12, rdx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or ebx, 0xffffffff
mov r14, rax
test rax, rax
jne 0x14002da99
mov ebx, dword [0x14003d17c]
lea rdx, [rsp + 0x80]
and dword [rsp + 0x80], eax
lea r14, [rsp + 0x80]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
inc dword [r14]
mov eax, dword [r14]
mov r10, qword [0x14003d048]
lea rcx, [0x14003d048]
lea rdx, [0x140035650]
mov r15d, 0x1df
cmp r10, rcx
je 0x14002daf6
test byte [r10 + 0x1c], 1
je 0x14002daf6
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14002dadb
mov eax, ecx
mov ecx, r15d
sub rcx, rax
jmp 0x14002dadd
xor ecx, ecx
lea r9, [rcx + rdx]
mov edx, reloc.ProximityCommon.dll_Ordinal_20
mov rcx, qword [r10 + 0x10]
lea r8, [0x140037200]
call fcn.1400012b0
xor esi, esi
lea rdx, [0x140035918]
mov qword [rsp + 0x88], rsi
lea ecx, [rsi + 0x20]
call fcn.1400308a0
mov rdi, rax
test rax, rax
je 0x14002db7e
mov dword [rax + 0xc], 1
lea rax, [0x140033f78]
mov qword [rdi], rax
mov rax, qword [0x14003d7d0]
test rax, rax
je 0x14002db53
mov rax, qword [rax]
lea rcx, [0x1400034c0]
cmp qword [rax + 8], rcx
jne 0x14002db4d
lock inc dword [0x14003d7d8]
jmp 0x14002db53
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoAddRefServerProcess]
lea rax, [0x1400340d0]
mov qword [rdi], rax
mov qword [rdi + 0x10], rbp
test rbp, rbp
je 0x14002db77
mov rax, qword [rbp]
mov rcx, rbp
mov rax, qword [rax + 8]
call qword [0x140034e68]
mov qword [rdi + 0x18], r12
mov rsi, rdi
mov qword [r13], rsi
neg rsi
sbb edi, edi
not edi
and edi, 0x8007000e
mov r10, qword [0x14003d048]
lea rax, [0x14003d048]
cmp r10, rax
je 0x14002dbe4
test byte [r10 + 0x1c], 1
je 0x14002dbe4
mov eax, dword [r14]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14002dbbe
mov eax, ecx
sub r15, rax
jmp 0x14002dbc1
xor r15d, r15d
mov rcx, qword [r10 + 0x10]
lea r9, [0x140035650]
add r9, r15
mov dword [rsp + 0x20], edi
mov edx, reloc.ProximityCommon.dll_Ordinal_21
lea r8, [0x140037200]
call fcn.140001304
or eax, 0xffffffff
add dword [r14], eax
cmp ebx, eax
je 0x14002dc05
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14002dc05
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov eax, edi
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002dca8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbp, rcx
mov r13, r8
mov ecx, dword [0x14003d17c]
mov r12, rdx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or ebx, 0xffffffff
mov r14, rax
test rax, rax
jne 0x14002dd01
mov ebx, dword [0x14003d17c]
lea rdx, [rsp + 0x80]
and dword [rsp + 0x80], eax
lea r14, [rsp + 0x80]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
inc dword [r14]
mov eax, dword [r14]
mov r10, qword [0x14003d048]
lea rcx, [0x14003d048]
lea rdx, [0x140035650]
mov r15d, 0x1df
cmp r10, rcx
je 0x14002dd5e
test byte [r10 + 0x1c], 1
je 0x14002dd5e
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14002dd43
mov eax, ecx
mov ecx, r15d
sub rcx, rax
jmp 0x14002dd45
xor ecx, ecx
lea r9, [rcx + rdx]
mov edx, reloc.ProximityCommon.dll_Ordinal_24
mov rcx, qword [r10 + 0x10]
lea r8, [0x140037200]
call fcn.1400012b0
xor esi, esi
lea rdx, [0x140035918]
mov qword [rsp + 0x88], rsi
lea ecx, [rsi + 0x20]
call fcn.1400308a0
mov rdi, rax
test rax, rax
je 0x14002dde6
mov dword [rax + 0xc], 1
lea rax, [0x140033fc8]
mov qword [rdi], rax
mov rax, qword [0x14003d7d0]
test rax, rax
je 0x14002ddbb
mov rax, qword [rax]
lea rcx, [0x1400034c0]
cmp qword [rax + 8], rcx
jne 0x14002ddb5
lock inc dword [0x14003d7d8]
jmp 0x14002ddbb
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoAddRefServerProcess]
lea rax, [0x1400340a0]
mov qword [rdi], rax
mov qword [rdi + 0x10], rbp
test rbp, rbp
je 0x14002dddf
mov rax, qword [rbp]
mov rcx, rbp
mov rax, qword [rax + 8]
call qword [0x140034e68]
mov qword [rdi + 0x18], r12
mov rsi, rdi
mov qword [r13], rsi
neg rsi
sbb edi, edi
not edi
and edi, 0x8007000e
mov r10, qword [0x14003d048]
lea rax, [0x14003d048]
cmp r10, rax
je 0x14002de4c
test byte [r10 + 0x1c], 1
je 0x14002de4c
mov eax, dword [r14]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14002de26
mov eax, ecx
sub r15, rax
jmp 0x14002de29
xor r15d, r15d
mov rcx, qword [r10 + 0x10]
lea r9, [0x140035650]
add r9, r15
mov dword [rsp + 0x20], edi
mov edx, 0x19
lea r8, [0x140037200]
call fcn.140001304
or eax, 0xffffffff
add dword [r14], eax
cmp ebx, eax
je 0x14002de6d
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14002de6d
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov eax, edi
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002ea88
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r9
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rbp, rcx
mov r12, r8
mov ecx, dword [0x14003d17c]
mov r13, rdx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or edi, 0xffffffff
mov r14, rax
test rax, rax
jne 0x14002eae4
mov edi, dword [0x14003d17c]
lea rdx, [rsp + 0x30]
and dword [rsp + 0x30], eax
lea r14, [rsp + 0x30]
mov ecx, edi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
inc dword [r14]
mov eax, dword [r14]
mov r10, qword [0x14003d048]
lea rcx, [0x14003d048]
lea rdx, [0x140035650]
mov r15d, 0x1df
cmp r10, rcx
je 0x14002eb3e
test byte [r10 + 0x1c], 1
je 0x14002eb3e
lea eax, [rax + rax*4]
cmp eax, 0x1e1
ja 0x14002eb23
mov ecx, r15d
sub rcx, rax
jmp 0x14002eb25
xor ecx, ecx
lea r9, [rcx + rdx]
mov edx, 0x24
mov rcx, qword [r10 + 0x10]
lea r8, [0x140037200]
call fcn.1400012b0
xor esi, esi
lea rdx, [0x140035918]
mov qword [rsp + 0x38], rsi
lea ecx, [rsi + 0x28]
call fcn.1400308a0
mov rbx, rax
test rax, rax
je 0x14002ebc7
mov dword [rax + 0xc], 1
lea rax, [0x140034020]
mov qword [rbx], rax
mov rax, qword [0x14003d7d0]
test rax, rax
je 0x14002eb98
mov rax, qword [rax]
lea rcx, [0x1400034c0]
cmp qword [rax + 8], rcx
jne 0x14002eb92
lock inc dword [0x14003d7d8]
jmp 0x14002eb98
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoAddRefServerProcess]
lea rax, [0x140034048]
mov qword [rbx], rax
mov qword [rbx + 0x10], rbp
test rbp, rbp
je 0x14002ebbc
mov rax, qword [rbp]
mov rcx, rbp
mov rax, qword [rax + 8]
call qword [0x140034e68]
mov qword [rbx + 0x18], r13
mov rsi, rbx
mov qword [rbx + 0x20], r12
mov rax, qword [rsp + 0x88]
mov qword [rax], rsi
neg rsi
sbb ebx, ebx
not ebx
and ebx, 0x8007000e
mov r10, qword [0x14003d048]
lea rax, [0x14003d048]
cmp r10, rax
je 0x14002ec34
test byte [r10 + 0x1c], 1
je 0x14002ec34
mov eax, dword [r14]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14002ec0e
mov eax, ecx
sub r15, rax
jmp 0x14002ec11
xor r15d, r15d
mov rcx, qword [r10 + 0x10]
lea r9, [0x140035650]
add r9, r15
mov dword [rsp + 0x20], ebx
mov edx, 0x25
lea r8, [0x140037200]
call fcn.140001304
or eax, 0xffffffff
add dword [r14], eax
cmp edi, eax
je 0x14002ec55
mov ecx, edi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14002ec55
xor edx, edx
mov ecx, edi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
lea r11, [rsp + 0x40]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14002ed08
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbp, rcx
mov r12, r8
mov ecx, dword [0x14003d17c]
mov r13, rdx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or esi, 0xffffffff
mov r14, rax
test rax, rax
jne 0x14002ed61
mov esi, dword [0x14003d17c]
lea rdx, [rsp + 0x80]
and dword [rsp + 0x80], eax
lea r14, [rsp + 0x80]
mov ecx, esi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
inc dword [r14]
mov eax, dword [r14]
mov r10, qword [0x14003d048]
lea rcx, [0x14003d048]
lea rdx, [0x140035650]
mov r15d, 0x1df
cmp r10, rcx
je 0x14002edbe
test byte [r10 + 0x1c], 1
je 0x14002edbe
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14002eda3
mov eax, ecx
mov ecx, r15d
sub rcx, rax
jmp 0x14002eda5
xor ecx, ecx
lea r9, [rcx + rdx]
mov edx, 0x26
mov rcx, qword [r10 + 0x10]
lea r8, [0x140037200]
call fcn.1400012b0
and qword [r12], 0
lea rdx, [0x140035918]
xor ebx, ebx
mov qword [rsp + 0x88], rbx
lea ecx, [rbx + 0x28]
call fcn.1400308a0
mov rdi, rax
test rax, rax
je 0x14002ee4f
mov dword [rax + 0xc], 1
lea rax, [0x140033eb0]
mov qword [rdi], rax
mov rax, qword [0x14003d7d0]
test rax, rax
je 0x14002ee20
mov rax, qword [rax]
lea rcx, [0x1400034c0]
cmp qword [rax + 8], rcx
jne 0x14002ee1a
lock inc dword [0x14003d7d8]
jmp 0x14002ee20
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoAddRefServerProcess]
lea rax, [0x140033ee8]
mov qword [rdi], rax
mov qword [rdi + 0x10], rbp
test rbp, rbp
je 0x14002ee44
mov rax, qword [rbp]
mov rcx, rbp
mov rax, qword [rax + 8]
call qword [0x140034e68]
and qword [rdi + 0x18], rbx
mov rbx, rdi
mov qword [rdi + 0x20], r13
mov rax, rbx
neg rax
sbb edi, edi
not edi
and edi, 0x8007000e
test rbx, rbx
je 0x14002ee6d
mov rax, rbx
xor ebx, ebx
mov qword [r12], rax
mov rcx, qword [0x14003d048]
lea rax, [0x14003d048]
cmp rcx, rax
je 0x14002eec1
test byte [rcx + 0x1c], 1
je 0x14002eec1
mov eax, dword [r14]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x14002ee9b
mov eax, edx
sub r15, rax
jmp 0x14002ee9e
xor r15d, r15d
mov rcx, qword [rcx + 0x10]
lea r9, [0x140035650]
add r9, r15
mov dword [rsp + 0x20], edi
mov edx, 0x27
lea r8, [0x140037200]
call fcn.140001304
test rbx, rbx
je 0x14002eed6
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
or eax, 0xffffffff
add dword [r14], eax
cmp esi, eax
je 0x14002eef7
mov ecx, esi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14002eef7
xor edx, edx
mov ecx, esi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov eax, edi
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003023c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14003db48], rbx
je 0x1400302a3
cmp rax, rbx
jne 0x140030296
mov ebx, 1
mov esi, ebx
jmp 0x1400302a8
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14003027b
mov ebx, 1
mov eax, dword [0x14003db50]
cmp eax, ebx
jne 0x1400302c0
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14003032c
mov eax, dword [0x14003db50]
test eax, eax
jne 0x140030321
mov dword [0x14003db50], ebx
lea r15, [0x140034ee8]
lea rdi, [0x140034ec8]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140030313
test eax, eax
jne 0x140030317
cmp qword [rdi], r14
je 0x140030308
mov rax, qword [rdi]
mov rcx, qword [0x140034e68]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1400302ea
test eax, eax
je 0x140030327
mov eax, 0xff
jmp 0x140030480
mov dword [0x14003d1c4], ebx
mov edi, 0x1f
mov eax, dword [0x14003db50]
cmp eax, ebx
jne 0x140030353
lea rdx, [0x140034ec0]
lea rcx, [0x140034e70]
call sub.msvcrt.dll__initterm
mov dword [0x14003db50], 2
test esi, esi
jne 0x140030361
mov rax, r14
xchg qword [0x14003db48], rax
cmp qword [0x14003db68], r14
je 0x140030394
lea rcx, [0x14003db68]
call fcn.140030a20
test eax, eax
je 0x140030394
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14003db68]
mov r9, qword [0x140034e68]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x1400303ad
mov eax, 0xff
jmp 0x140030480
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x140030431
cmp word [rcx], r14w
je 0x1400303c6
test edx, edx
jne 0x140030431
movzx eax, word [rcx]
sub ax, bx
cmp ax, di
ja 0x1400303dc
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400303c6
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call 0x140003330
mov dword [0x14003d1c0], eax
cmp dword [0x14003d1e0], r14d
jne 0x14003041a
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14003d1c4], r14d
jne 0x14003042f
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14003d1c0]
jmp 0x140030480
cmp word [rcx], 0x22
jne 0x140030445
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400303b6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140030aa0
add rsp, 0x28
jmp 0x14003023c