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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.14011c600
cmp qword [0x14058a048], 0
mov rbx, rax
je 0x14011ca38
test rax, rax
je 0x14011ca38
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.14011c040
cmp eax, 1
je 0x14011ca46
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 fcn.140269e0c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x14026b838]
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 0x14011ca4c
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.14011c3c0
nop
jmp fcn.140269e0c

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

Disassembly:
sub rsp, 0x28
call fcn.14011c870
mov ecx, dword [0x14026b838]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14011ca80
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14011c920
Function at 0x14011d100
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, qword [0x1402af0f0]
mov rax, qword [rbx]
mov qword [rsp + 0x38], rax
xor eax, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
mov edx, 1
test eax, eax
je 0x14011d15e
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x14011d15e
xor edx, edx
nop dword [rax]
mov ecx, eax
and ecx, 1
add edx, ecx
shr rax, 1
jne 0x14011d148
test edx, edx
mov eax, 1
cmove edx, eax
mov rax, qword [rsp + 0x38]
sub rax, qword [rbx]
jne 0x14011d170
mov eax, edx
add rsp, 0x40
pop rbx
ret
call fcn.140120520
nop
nop word cs:[rax + rax]
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbp, qword [0x1402af0f0]
mov r12, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rax, qword [rbp]
mov qword [rsp + 0x38], rax
xor eax, eax
mov edi, ecx
test ecx, ecx
mov eax, 1
cmove edi, eax
call r12
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
mov ebx, eax
test eax, eax
je 0x14011d20f
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x14011d230
xor ebx, ebx
xor esi, esi
nop dword [rax]
add rsi, rsi
cmp edi, ebx
jle 0x14011d1f2
test al, 1
je 0x14011d1f2
or rsi, 1
add ebx, 1
shr rax, 1
jne 0x14011d1e0
mov qword [rsp + 0x28], 0
call r12
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
mov rax, qword [rsp + 0x38]
sub rax, qword [rbp]
jne 0x14011d236
mov eax, ebx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor esi, esi
xor ebx, ebx
jmp 0x14011d200
call fcn.140120520
nop
nop dword [rax]
Function at 0x14011d180
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, qword [0x1402af0f0]
mov rax, qword [rbx]
mov qword [rsp + 0x38], rax
xor eax, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
mov edx, 1
test eax, eax
je 0x14011d15e
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x14011d15e
xor edx, edx
nop dword [rax]
mov ecx, eax
and ecx, 1
add edx, ecx
shr rax, 1
jne 0x14011d148
test edx, edx
mov eax, 1
cmove edx, eax
mov rax, qword [rsp + 0x38]
sub rax, qword [rbx]
jne 0x14011d170
mov eax, edx
add rsp, 0x40
pop rbx
ret
call fcn.140120520
nop
nop word cs:[rax + rax]
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbp, qword [0x1402af0f0]
mov r12, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rax, qword [rbp]
mov qword [rsp + 0x38], rax
xor eax, eax
mov edi, ecx
test ecx, ecx
mov eax, 1
cmove edi, eax
call r12
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
mov ebx, eax
test eax, eax
je 0x14011d20f
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x14011d230
xor ebx, ebx
xor esi, esi
nop dword [rax]
add rsi, rsi
cmp edi, ebx
jle 0x14011d1f2
test al, 1
je 0x14011d1f2
or rsi, 1
add ebx, 1
shr rax, 1
jne 0x14011d1e0
mov qword [rsp + 0x28], 0
call r12
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
mov rax, qword [rsp + 0x38]
sub rax, qword [rbp]
jne 0x14011d236
mov eax, ebx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor esi, esi
xor ebx, ebx
jmp 0x14011d200
call fcn.140120520
nop
nop dword [rax]
Function at 0x14011d240
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 [0x1402af0f0]
mov rax, qword [rbp]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x14011d388
cmp eax, 1
je 0x14011d2ad
call fcn.14011c140
lea r12, [rax + 8]
mov rdi, rax
mov rcx, r12
call fcn.14011ba50
mov r13d, dword [rbx]
test r13d, r13d
je 0x14011d2d0
cmp r13d, 1
jne 0x14011d360
mov rcx, r12
call fcn.14011bd40
test rdi, rdi
je 0x14011d2ad
mov rcx, rdi
call fcn.14011c4f0
xor eax, eax
mov rdx, qword [rsp + 0x38]
sub rdx, qword [rbp]
jne 0x14011d3db
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [0x14011c5d0]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.14011c870
mov ecx, dword [0x14026b838]
mov r13, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r13
test rax, rax
je 0x14011d3c8
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.14011c870
mov ecx, dword [0x14026b838]
call r13
test rax, rax
je 0x14011d3b0
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.14011c870
mov ecx, dword [0x14026b838]
call r13
test rax, rax
je 0x14011d398
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x14011d298
mov ecx, 2
call qword [fcn.140119ad0]
mov r9d, r13d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14011d298
mov eax, 0x16
jmp 0x14011d2af
call fcn.14011c920
test rax, rax
jne 0x14011d349
jmp 0x140269e3e
call fcn.14011c920
test rax, rax
jne 0x14011d325
jmp 0x140269e2f
call fcn.14011c920
test rax, rax
jne 0x14011d2ff
jmp 0x140269e25
call fcn.140120520
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 0x14011d660
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.14011c870
mov ecx, dword [0x14026b838]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14011d6d8
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.14011c050
cmp esi, dword [rbx + 0x48]
jae 0x14011d6b3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x14011d6b3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.14011c090
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.14011c920
mov rbx, rax
jmp 0x14011d68d
Function at 0x14011d6f0
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.14011c870
mov ecx, dword [0x14026b838]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14011d7f0
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.14011c050
cmp esi, dword [rbx + 0x48]
jae 0x14011d770
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.14011c090
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.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x14011d7fd
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x14011d7fd
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.msvcrt.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.msvcrt.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x14011d73f
call fcn.14011c920
mov rbx, rax
jmp 0x14011d72a
mov rcx, r13
call fcn.14011c090
mov eax, 0xc
jmp 0x14011d75d

Function at 0x14011d880
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14011c870
mov ecx, dword [0x14026b838]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14011d8a8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.14011c920
test rax, rax
jne 0x14011d89a
add rsp, 0x28
ret

Function at 0x14011d910
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14011c870
mov ecx, dword [0x14026b838]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14011d938
add rax, 0x18
add rsp, 0x28
ret
call fcn.14011c920
test rax, rax
jne 0x14011d92a
jmp 0x14011d92e

Function at 0x14011da50
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1405856c8]
test eax, eax
jne 0x14011da68
xor eax, eax
add rsp, 0x28
ret
call fcn.14011c870
mov ecx, dword [0x14026b838]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14011da98
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14011da5e
test byte [rax + 0x40], 3
je 0x14011da5e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14011da60
call fcn.14011c920
test rax, rax
jne 0x14011da7e
jmp 0x14011da5e

Function at 0x14011dab0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14011c870
mov ecx, dword [0x14026b838]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14011daf0
test ebx, ebx
jle 0x14011dae0
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.14011c920
test rax, rax
jne 0x14011dacd
add rsp, 0x20
pop rbx
ret
Function at 0x14011dbe0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14011c870
mov ecx, dword [0x14026b838]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14011dc58
test byte [rbx + 0x40], 0xc
jne 0x14011dc0f
mov eax, dword [0x1405856c8]
test eax, eax
jne 0x14011dc20
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14011ba50
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14011dc43
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14011dc43
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14011dc6c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14011bd40
call fcn.14011c920
mov rbx, rax
test rax, rax
jne 0x14011dbff
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 0x14011dc8a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14011bd40
call fcn.14011db00
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14011dd10
call fcn.14011b7e0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14011dd48
call fcn.14011c870
mov ecx, dword [0x14026b838]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14011dda0
test esi, esi
je 0x14011dd26
call fcn.14011dbe0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14011dd80
mov edx, edi
call fcn.14011b8b0
call fcn.14011dbe0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14011c870
mov ecx, dword [0x14026b838]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14011dd90
call fcn.14011dbe0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14011dbe0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14011c870
mov ecx, dword [0x14026b838]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14011dce5
call fcn.14011c920
mov rbx, rax
jmp 0x14011dce5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14011dcfe
call fcn.14011c920
jmp 0x14011dd26
call fcn.14011c920
mov rbx, rax
jmp 0x14011dce1
Function at 0x14011dca0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14011c870
mov ecx, dword [0x14026b838]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14011dc58
test byte [rbx + 0x40], 0xc
jne 0x14011dc0f
mov eax, dword [0x1405856c8]
test eax, eax
jne 0x14011dc20
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14011ba50
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14011dc43
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14011dc43
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14011dc6c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14011bd40
call fcn.14011c920
mov rbx, rax
test rax, rax
jne 0x14011dbff
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 0x14011dc8a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14011bd40
call fcn.14011db00
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14011dd10
call fcn.14011b7e0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14011dd48
call fcn.14011c870
mov ecx, dword [0x14026b838]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14011dda0
test esi, esi
je 0x14011dd26
call fcn.14011dbe0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14011dd80
mov edx, edi
call fcn.14011b8b0
call fcn.14011dbe0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14011c870
mov ecx, dword [0x14026b838]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14011dd90
call fcn.14011dbe0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14011dbe0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14011c870
mov ecx, dword [0x14026b838]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14011dce5
call fcn.14011c920
mov rbx, rax
jmp 0x14011dce5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14011dcfe
call fcn.14011c920
jmp 0x14011dd26
call fcn.14011c920
mov rbx, rax
jmp 0x14011dce1

Function at 0x14011ddb0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14011c870
mov ecx, dword [0x14026b838]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14011de20
test esi, esi
je 0x14011de00
call fcn.14011dbe0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14011de30
mov edx, esi
call fcn.14011b8b0
call fcn.14011dbe0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14011dbe0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14011dbe0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14011c920
mov rbx, rax
jmp 0x14011ddd1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14011ddea
Function at 0x14011e3f0
Capabilities:
Create thread
Get thread local storage value
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, rcx
mov rdi, rdx
mov rsi, r8
mov r12, r9
call fcn.14011c600
mov rbx, rax
test rax, rax
je 0x14011e627
test rbp, rbp
je 0x14011e42b
mov rax, qword [rax + 0x1d8]
mov qword [rbp], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rbx + 0x44], 1
mov dword [rbx + 0xbc], 0
mov qword [rbx + 0x28], 0xffffffffffffffff
mov r14, r13
mov qword [rbx + 8], r12
mov r12, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x10], rsi
xor esi, esi
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call r12
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x14011e4a0
test esi, esi
jne 0x14011e490
xor ecx, ecx
mov esi, 1
call r14
jmp 0x14011e45f
add esi, 1
mov ecx, 0x14
call r13
cmp esi, 5
jne 0x14011e45f
mov qword [rbx + 0x38], 0xffffffffffffffff
lea r12, [rbx + 0x68]
mov rcx, r12
call fcn.14011c040
cmp eax, 1
je 0x14011e677
cmp qword [rbx + 0x30], 0
mov dword [rbx], 0xbab1f00d
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xc0], 0
mov dword [rbx + 0xb8], 0
je 0x14011e610
xor edx, edx
test rdi, rdi
je 0x14011e50d
mov eax, dword [rdi]
mov rsi, qword [rdi + 0x10]
mov dword [rbx + 0x44], eax
test al, 8
jne 0x14011e638
mov eax, dword [rdi + 0x18]
mov dword [rbx + 0xc0], eax
mov edx, esi
lea r8, [0x14011cbd0]
mov r9, rbx
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rsi, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14011e5d8
mov eax, dword [rbx + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x14011e5b0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [rbx + 0x44], 4
jne 0x14011e590
mov qword [rbx + 0x28], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, rsi
mov qword [rbx + 0x28], 0
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14011e577
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x14011e551
mov edx, 2
cmp eax, edx
cmovle edx, eax
cmp eax, 0xf
mov eax, 0xf
cmovge edx, eax
jmp 0x14011e551
mov rcx, qword [rbx + 0x30]
lea rsi, [rbx + 0x38]
test rcx, rcx
je 0x14011e5eb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.14011bed0
mov rcx, r12
call fcn.14011c040
cmp eax, 1
je 0x14011e677
mov qword [rbx + 0x68], 0xffffffffffffffff
pxor xmm0, xmm0
movups xmmword [rbx + 0x28], xmm0
test rbp, rbp
je 0x14011e61d
mov qword [rbp], 0
cmp qword [rbx + 0x1d0], 0
je 0x14011e660
mov eax, 0xb
jmp 0x14011e581
call fcn.14011c870
mov ecx, dword [0x14026b838]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14011e670
mov eax, dword [rax + 0xc0]
jmp 0x14011e505
mov rcx, rbx
call fcn.14011c6d0
jmp 0x14011e627
call fcn.14011c920
jmp 0x14011e64e
call fcn.14011c3c0
nop
nop dword [rax]
Function at 0x140120520
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140120550
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
jmp qword [sym.imp.msvcrt.dll__endthreadex]
Function at 0x1402058b0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read_1
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x1402058f8
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x1402058ca
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140218270
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x140218298
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read_1
test eax, eax
jle 0x1402182e0
cdqe
add rsi, rax
sub rbx, rax
jne 0x1402182b0
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x1402182ec
call rbp
cmp dword [rax], 4
je 0x1402182b0
lea rcx, str.random_device_could_not_be_read
call fcn.140269800
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140225e50
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
movups xmmword [rsp], xmm6
movups xmmword [rsp + 0x10], xmm7
movdqu xmm2, xmmword [0x14027e4b0]
pxor xmm7, xmm7
movdqu xmm3, xmmword [0x14027e4c0]
movdqu xmm4, xmmword [0x14027e4d0]
movdqu xmm5, xmmword [0x14027e4e0]
mov rax, rcx
lea rcx, [rcx + 0x380]
mov rdx, rax
nop
movdqu xmm0, xmmword [rdx]
movdqu xmm1, xmmword [rdx + 4]
add rdx, 0x10
movdqu xmm6, xmmword [rdx + 0x624]
pand xmm1, xmm3
pand xmm0, xmm2
por xmm0, xmm1
movdqa xmm1, xmm0
pand xmm0, xmm4
psrld xmm1, 1
pcmpeqd xmm0, xmm7
pxor xmm1, xmm6
movdqa xmm6, xmm1
pxor xmm6, xmm5
pand xmm1, xmm0
pandn xmm0, xmm6
por xmm0, xmm1
movups xmmword [rdx - 0x10], xmm0
cmp rcx, rdx
jne 0x140225e90
mov ecx, dword [rax + 0x388]
mov edx, dword [rax + 0x38c]
pxor xmm7, xmm7
movq xmm0, qword [rax + 0x380]
movq xmm1, qword [0x14027e4b0]
movq xmm6, qword [0x14027e4c0]
and edx, 0x7fffffff
and ecx, 0x80000000
pand xmm0, xmm1
or ecx, edx
movq xmm1, qword [rax + 0x384]
mov edx, ecx
pand xmm1, xmm6
shr edx, 1
xor edx, dword [rax + 0x9bc]
por xmm0, xmm1
mov r8d, edx
movq xmm1, qword [rax + 0x9b4]
movdqa xmm6, xmm0
xor r8d, 0x9908b0df
and ecx, 1
psrld xmm6, 1
cmovne edx, r8d
lea rcx, [rax + 0x9bc]
pxor xmm1, xmm6
movq xmm6, qword [0x14027e4d0]
mov dword [rax + 0x388], edx
lea rdx, [rax + 0x38c]
pand xmm0, xmm6
movq xmm6, qword [0x14027e4e0]
pcmpeqd xmm0, xmm7
pxor xmm6, xmm1
pand xmm1, xmm0
pandn xmm0, xmm6
pxor xmm6, xmm6
por xmm0, xmm1
movq qword [rax + 0x380], xmm0
movdqu xmm0, xmmword [rdx]
movdqu xmm1, xmmword [rdx + 4]
add rdx, 0x10
movdqu xmm7, xmmword [rdx - 0x39c]
pand xmm1, xmm3
pand xmm0, xmm2
por xmm0, xmm1
movdqa xmm1, xmm0
pand xmm0, xmm4
psrld xmm1, 1
pcmpeqd xmm0, xmm6
pxor xmm1, xmm7
movdqa xmm7, xmm1
pxor xmm7, xmm5
pand xmm1, xmm0
pandn xmm0, xmm7
por xmm0, xmm1
movups xmmword [rdx - 0x10], xmm0
cmp rcx, rdx
jne 0x140225fa5
mov ecx, dword [rax + 0x9bc]
mov edx, dword [rax]
mov qword [rax + 0x9c0], 0
movups xmm6, xmmword [rsp]
movups xmm7, xmmword [rsp + 0x10]
and edx, 0x7fffffff
and ecx, 0x80000000
or ecx, edx
mov edx, ecx
shr edx, 1
xor edx, dword [rax + 0x630]
mov r8d, edx
xor r8d, 0x9908b0df
and ecx, 1
cmovne edx, r8d
mov dword [rax + 0x9bc], edx
add rsp, 0x28
ret