joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e560
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14002f300]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14002f2e0]
test rbx, rbx
je 0x14000e5bc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14000e5b3
test eax, eax
jne 0x14000e5b3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000e598
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000e8f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140026cb0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000e910
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000e918
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000e910
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000e96d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000e964
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000e910
add rax, 0x28
cmp rax, r9
jne 0x14000e950
xor eax, eax
ret

Function at 0x14000e970
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140026cb0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000e98f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000e998
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000e98f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000ea30
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140026cb0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000ea4f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000ea58
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x14000f520
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2d
lea rdx, str._buffer_overflow_detected_:_terminated_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x14000f550
mov ecx, 8
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x14000f570
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x14000f5a0
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140010480
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140026d90]
mov qword [rsp + 0x48], 0
lea rbx, [rsp + 0x20]
mov rdx, qword [rax]
mov qword [rsp + 0x58], rdx
xor edx, edx
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x4d], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea r8, str.Error_cleaning_up_spin_keys_for_thread__lu._n
mov edx, 0x35
mov rcx, rbx
mov r9d, eax
call fcn.14000f5e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop word cs:[rax + rax]

Function at 0x140010890
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x14002f420], 1
je 0x140010908
lea rdi, [0x14002f420]
mov rcx, rdi
call fcn.140010210
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.14000fbb0
mov esi, dword [0x14002f420]
test esi, esi
jne 0x140010918
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140023138], eax
cmp eax, 0xffffffff
je 0x140022ab6
mov dword [0x14002f420], 1
mov rcx, rbp
call fcn.14000fe80
test rbx, rbx
je 0x140010908
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140010510
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x1400108e8
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__ld_n
mov rcx, rax
call fcn.14000f620
jmp 0x1400108e8
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
mov rax, qword [0x28]
ud2

Function at 0x140010940
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.140010620
mov rbx, rax
test rax, rax
je 0x140010a3c
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.140014530
cmp eax, 1
je 0x140010a48
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140022abc
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x140023138]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140022abc
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.140010480
nop
nop
Function at 0x140010a50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140010890
mov ecx, dword [0x140023138]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140010a70
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140010940

Function at 0x140011220
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, qword [0x140026d90]
mov rax, qword [rbp]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x140011368
cmp eax, 1
je 0x14001128d
call fcn.140010210
lea r12, [rax + 8]
mov rdi, rax
mov rcx, r12
call fcn.14000fbb0
mov r13d, dword [rbx]
test r13d, r13d
je 0x1400112b0
cmp r13d, 1
jne 0x140011340
mov rcx, r12
call fcn.14000fe80
test rdi, rdi
je 0x14001128d
mov rcx, rdi
call fcn.140010510
xor eax, eax
mov rdx, qword [rsp + 0x38]
sub rdx, qword [rbp]
jne 0x1400113bb
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [0x1400105f0]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140010890
mov ecx, dword [0x140023138]
mov r13, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r13
test rax, rax
je 0x1400113a8
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140010890
mov ecx, dword [0x140023138]
call r13
test rax, rax
je 0x140011390
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140010890
mov ecx, dword [0x140023138]
call r13
test rax, rax
je 0x140011378
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x140011278
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, r13d
mov r8, rbx
lea rdx, str._once__p_is__ld_n
mov rcx, rax
call fcn.14000f620
jmp 0x140011278
mov eax, 0x16
jmp 0x14001128f
call fcn.140010940
test rax, rax
jne 0x140011329
jmp 0x140022aee
call fcn.140010940
test rax, rax
jne 0x140011305
jmp 0x140022adf
call fcn.140010940
test rax, rax
jne 0x1400112df
jmp 0x140022ad5
call fcn.14000f570
nop
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2

Function at 0x140011640
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.140010890
mov ecx, dword [0x140023138]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400116b8
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140014540
cmp esi, dword [rbx + 0x48]
jae 0x140011693
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x140011693
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.140014580
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140010940
mov rbx, rax
jmp 0x14001166d
Function at 0x1400116d0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.140010890
mov ecx, dword [0x140023138]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400117d0
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.140014540
cmp esi, dword [rbx + 0x48]
jae 0x140011750
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.140014580
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r15d, [rsi + 1]
mov rcx, qword [rbx + 0x50]
movsxd r14, r15d
lea rdx, [r14*8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
mov rdi, rax
test rax, rax
je 0x1400117dd
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
mov r14, rax
test rax, rax
je 0x1400117dd
mov eax, dword [rbx + 0x48]
mov edx, r15d
sub edx, eax
lea rcx, [rdi + rax*8]
lea r8, [rdx*8]
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x14001171f
call fcn.140010940
mov rbx, rax
jmp 0x14001170a
mov rcx, r13
call fcn.140014580
mov eax, 0xc
jmp 0x14001173d

Function at 0x140011860
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140010890
mov ecx, dword [0x140023138]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140011888
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140010940
test rax, rax
jne 0x14001187a
add rsp, 0x28
ret

Function at 0x1400118f0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140010890
mov ecx, dword [0x140023138]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140011918
add rax, 0x18
add rsp, 0x28
ret
call fcn.140010940
test rax, rax
jne 0x14001190a
jmp 0x14001190e

Function at 0x140011a30
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14002f428]
test eax, eax
jne 0x140011a48
xor eax, eax
add rsp, 0x28
ret
call fcn.140010890
mov ecx, dword [0x140023138]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140011a78
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x140011a3e
test byte [rax + 0x40], 3
je 0x140011a3e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140011a40
call fcn.140010940
test rax, rax
jne 0x140011a5e
jmp 0x140011a3e
Function at 0x140011a90
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140010890
mov ecx, dword [0x140023138]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140011ad0
test ebx, ebx
jle 0x140011ac0
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.140010940
test rax, rax
jne 0x140011aad
add rsp, 0x20
pop rbx
ret

Function at 0x140011bc0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140010890
mov ecx, dword [0x140023138]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140011c38
test byte [rbx + 0x40], 0xc
jne 0x140011bef
mov eax, dword [0x14002f428]
test eax, eax
jne 0x140011c00
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14000fbb0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140011c23
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140011c23
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x140011c4c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14000fe80
call fcn.140010940
mov rbx, rax
test rax, rax
jne 0x140011bdf
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x140011c6a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14000fe80
call fcn.140011ae0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140011cf0
call fcn.140013520
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140011d28
call fcn.140010890
mov ecx, dword [0x140023138]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140011d80
test esi, esi
je 0x140011d06
call fcn.140011bc0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140011d60
mov edx, edi
call fcn.1400135f0
call fcn.140011bc0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140010890
mov ecx, dword [0x140023138]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140011d70
call fcn.140011bc0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140011bc0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140010890
mov ecx, dword [0x140023138]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140011cc5
call fcn.140010940
mov rbx, rax
jmp 0x140011cc5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140011cde
call fcn.140010940
jmp 0x140011d06
call fcn.140010940
mov rbx, rax
jmp 0x140011cc1
Function at 0x140011c80
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140010890
mov ecx, dword [0x140023138]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140011c38
test byte [rbx + 0x40], 0xc
jne 0x140011bef
mov eax, dword [0x14002f428]
test eax, eax
jne 0x140011c00
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14000fbb0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140011c23
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140011c23
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x140011c4c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14000fe80
call fcn.140010940
mov rbx, rax
test rax, rax
jne 0x140011bdf
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x140011c6a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14000fe80
call fcn.140011ae0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140011cf0
call fcn.140013520
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140011d28
call fcn.140010890
mov ecx, dword [0x140023138]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140011d80
test esi, esi
je 0x140011d06
call fcn.140011bc0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140011d60
mov edx, edi
call fcn.1400135f0
call fcn.140011bc0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140010890
mov ecx, dword [0x140023138]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140011d70
call fcn.140011bc0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140011bc0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140010890
mov ecx, dword [0x140023138]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140011cc5
call fcn.140010940
mov rbx, rax
jmp 0x140011cc5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140011cde
call fcn.140010940
jmp 0x140011d06
call fcn.140010940
mov rbx, rax
jmp 0x140011cc1

Function at 0x140011d90
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140010890
mov ecx, dword [0x140023138]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140011e00
test esi, esi
je 0x140011de0
call fcn.140011bc0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140011e10
mov edx, esi
call fcn.1400135f0
call fcn.140011bc0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140011bc0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140011bc0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140010940
mov rbx, rax
jmp 0x140011db1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140011dca
Function at 0x1400138f0
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
lea rdi, [0x140023148]
mov rbx, rcx
mov rcx, rdi
mov esi, edx
call fcn.140014540
mov rax, qword [rbx]
cmp dword [rax], 0xbab1f0ed
jne 0x140013939
mov rax, qword [rbx]
mov eax, dword [rax + 4]
test eax, eax
jle 0x140013939
mov rax, qword [rbx]
mov rcx, rdi
sub dword [rax + 4], 1
call fcn.140014580
mov eax, esi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [rsp + 0x20], 0x28
lea r9, str..._mingw_w64_mingw_w64_libraries_winpthreads_src_rwlock.c
lea r8, str.___rwlock_t__rwl___valid__LIFE_RWLOCK______rwlock_t__rwl___busy___0_
mov rcx, rax
lea rdx, str.Assertion_failed:___s___file__s__line__d_n
call fcn.14000f620
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
nop word cs:[rax + rax]
nop
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x10]
neg eax
mov dword [rcx + 0xc], eax
mov rbx, rcx
lea rcx, [rcx + 0x20]
mov dword [rcx - 0x10], 0
call fcn.14000fe80
lea rcx, [rbx + 0x18]
add rsp, 0x20
pop rbx
jmp fcn.14000fe80

Function at 0x140013d90
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140013bc0
test eax, eax
je 0x140013db8
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [rbx]
lea rdi, [rsi + 0x18]
mov rcx, rdi
call fcn.14000fbb0
test eax, eax
jne 0x140013de1
lock add dword [rsi + 0xc], 1
cmp dword [rsi + 0xc], 0x7fffffff
je 0x140013df8
mov rcx, rdi
call fcn.14000fe80
mov edx, eax
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.1400138f0
lea r12, [rsi + 0x20]
mov rcx, r12
call fcn.14000fbb0
mov ebp, eax
test eax, eax
je 0x140013e20
mov rcx, rdi
call fcn.14000fe80
mov edx, ebp
jmp 0x140013de3
mov eax, dword [rsi + 0x10]
sub dword [rsi + 0xc], eax
mov rcx, r12
mov dword [rsi + 0x10], 0
call fcn.14000fe80
mov rcx, rdi
mov esi, eax
call fcn.14000fe80
test esi, esi
mov edx, esi
cmove edx, eax
jmp 0x140013de3

Function at 0x1400140c0
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbx, rcx
call fcn.140013880
test eax, eax
jne 0x140014140
mov rsi, qword [rbx]
mov edx, dword [rsi + 8]
test edx, edx
je 0x140014110
lock sub dword [rsi + 8], 1
lea rcx, [rsi + 0x20]
call fcn.14000fe80
lea rcx, [rsi + 0x18]
mov edi, eax
call fcn.14000fe80
test edi, edi
cmove edi, eax
mov edx, edi
mov rcx, rbx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
jmp fcn.1400138f0
lea rdi, [rsi + 0x20]
mov rcx, rdi
call fcn.14000fbb0
mov edx, eax
test eax, eax
jne 0x1400140fd
lock add dword [rsi + 0x10], 1
mov eax, dword [rsi + 0x10]
test eax, eax
je 0x140014150
mov rcx, rdi
call fcn.14000fe80
mov edx, eax
jmp 0x1400140fd
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
lea rcx, [rsi + 0x28]
call fcn.140014eb0
mov rcx, rdi
mov dword [rsp + 0x2c], eax
call fcn.14000fe80
mov edx, dword [rsp + 0x2c]
test edx, edx
cmove edx, eax
jmp 0x1400140fd
Function at 0x1400032c0
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 8
movups xmm0, xmmword [rcx]
xorps xmm4, xmm4
lea rax, [r8 + 0x10]
cmp edx, 0x100
je 0x140003490
cmp edx, 0xc0
je 0x1400033f0
cmp edx, 0x80
jne 0x140003560
mov edx, 9
movdqa xmm5, xmmword [0x140166190]
mov r10d, 8
movdqa xmm4, xmmword [0x1401661b0]
movdqa xmm2, xmm0
movdqu xmmword [r8], xmm0
jmp 0x140003320
pshufb xmm0, xmm5
aesenclast xmm0, xmm4
pslld xmm4, 1
lea rax, [rax + 0x10]
movdqa xmm3, xmm2
pslldq xmm2, 4
pxor xmm3, xmm2
pslldq xmm2, 4
pxor xmm3, xmm2
pslldq xmm2, 4
pxor xmm2, xmm3
pxor xmm0, xmm2
movdqu xmmword [rax - 0x10], xmm0
movdqa xmm2, xmm0
dec r10d
jne 0x140003320
movdqa xmm4, xmmword [str.eeee]
pshufb xmm0, xmm5
aesenclast xmm0, xmm4
pslld xmm4, 1
movdqa xmm3, xmm2
pslldq xmm2, 4
pxor xmm3, xmm2
pslldq xmm2, 4
pxor xmm3, xmm2
pslldq xmm2, 4
pxor xmm2, xmm3
pxor xmm0, xmm2
movdqu xmmword [rax], xmm0
movdqa xmm2, xmm0
pshufb xmm0, xmm5
aesenclast xmm0, xmm4
movdqa xmm3, xmm2
pslldq xmm2, 4
pxor xmm3, xmm2
pslldq xmm2, 4
pxor xmm3, xmm2
pslldq xmm2, 4
pxor xmm2, xmm3
pxor xmm0, xmm2
movdqu xmmword [rax + 0x10], xmm0
mov dword [rax + 0x60], edx
xor eax, eax
jmp 0x140003567
movq xmm2, qword [rcx + 0x10]
mov edx, 0xb
movdqa xmm5, xmmword [0x1401661a0]
movdqa xmm4, xmmword [0x1401661b0]
mov r10d, 8
movdqu xmmword [r8], xmm0
jmp 0x140003420
movq qword [rax], xmm2
movdqa xmm1, xmm2
pshufb xmm2, xmm5
aesenclast xmm2, xmm4
pslld xmm4, 1
lea rax, [rax + 0x18]
movdqa xmm3, xmm0
pslldq xmm0, 4
pxor xmm3, xmm0
pslldq xmm0, 4
pxor xmm3, xmm0
pslldq xmm0, 4
pxor xmm0, xmm3
pshufd xmm3, xmm0, 0xff
pxor xmm3, xmm1
pslldq xmm1, 4
pxor xmm3, xmm1
pxor xmm0, xmm2
pxor xmm2, xmm3
movdqu xmmword [rax - 0x10], xmm0
dec r10d
jne 0x140003420
mov dword [rax + 0x20], edx
xor eax, eax
jmp 0x140003567
movups xmm2, xmmword [rcx + 0x10]
mov edx, 0xd
lea rax, [rax + 0x10]
movdqa xmm5, xmmword [0x140166190]
movdqa xmm4, xmmword [0x1401661b0]
mov r10d, 7
movdqu xmmword [r8], xmm0
movdqa xmm1, xmm2
movdqu xmmword [r8 + 0x10], xmm2
jmp 0x1400034d0
pshufb xmm2, xmm5
aesenclast xmm2, xmm4
movdqa xmm3, xmm0
pslldq xmm0, 4
pxor xmm3, xmm0
pslldq xmm0, 4
pxor xmm3, xmm0
pslldq xmm0, 4
pxor xmm0, xmm3
pslld xmm4, 1
pxor xmm0, xmm2
movdqu xmmword [rax], xmm0
dec r10d
je 0x140003552
pshufd xmm2, xmm0, 0xff
pxor xmm3, xmm3
aesenclast xmm2, xmm3
movdqa xmm3, xmm1
pslldq xmm1, 4
pxor xmm3, xmm1
pslldq xmm1, 4
pxor xmm3, xmm1
pslldq xmm1, 4
pxor xmm1, xmm3
pxor xmm2, xmm1
movdqu xmmword [rax + 0x10], xmm2
lea rax, [rax + 0x20]
movdqa xmm1, xmm2
jmp 0x1400034d0
mov dword [rax + 0x10], edx
xor eax, eax
jmp 0x140003567
mov rax, 0xfffffffffffffffe
pxor xmm0, xmm0
pxor xmm1, xmm1
pxor xmm2, xmm2
pxor xmm3, xmm3
pxor xmm4, xmm4
pxor xmm5, xmm5
add rsp, 8
ret