joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e4a10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov ebp, r8d
test rcx, rcx
je 0x1400e4a88
test rdx, rdx
je 0x1400e4a88
mov eax, dword [rcx + 0x18]
mov esi, dword [rdx + 0x18]
xor esi, eax
and esi, 0xff
jne 0x1400e4a88
movzx edx, al
cmp edx, 0x40
jg 0x1400e4ac0
test al, 0xfc
je 0x1400e4aa0
movabs rcx, 0x1000000010001011
lea eax, [rdx - 4]
bt rcx, rax
jae case.0x1400e4a81.1
cmp rbx, rdi
je case.0x1400e4a81.0
cmp edx, 0x20
jg 0x1400e4b80
cmp eax, 0x1c
ja case.0x1400e4a81.1
lea rdx, [0x140128d44]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
xor esi, esi
mov eax, esi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
sub edx, 1
xor esi, esi
cmp edx, 1
setbe sil
mov eax, esi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp edx, 0x80
jne case.0x1400e4a81.1
cmp rcx, rdi
je case.0x1400e4a81.0
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je case.0x1400e4a81.1
mov rdx, qword [rdi + 0x20]
test rdx, rdx
je case.0x1400e4a81.1
call sym.strcmp
xor esi, esi
test eax, eax
sete sil
jmp case.0x1400e4a81.1
mov rbx, qword [rbx + 0x10]
mov rdi, qword [rdi + 0x10]
test rbx, rbx
je 0x1400e4b27
test rdi, rdi
je 0x1400e4b27
mov r8d, ebp
mov rdx, rdi
mov rcx, rbx
call sym.cJSON_Compare
mov esi, eax
test eax, eax
je case.0x1400e4a81.1
mov rbx, qword [rbx]
mov rdi, qword [rdi]
test rbx, rbx
jne 0x1400e4aff
xor esi, esi
cmp rbx, rdi
sete sil
jmp case.0x1400e4a81.1
movsd xmm3, qword [rdi + 0x30]
movsd xmm0, qword [rbx + 0x30]
xor esi, esi
movq xmm2, qword [0x140128dc0]
movapd xmm4, xmm0
movapd xmm1, xmm3
subsd xmm0, xmm3
andpd xmm1, xmm2
andpd xmm4, xmm2
maxsd xmm4, xmm1
andpd xmm0, xmm2
movapd xmm1, xmm4
mulsd xmm1, qword [0x140128dd0]
comisd xmm1, xmm0
setae sil
jmp case.0x1400e4a81.1
cmp edx, 0x40
jne case.0x1400e4a81.1
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x1400e4bca
mov rdx, qword [r12 + 0x38]
mov r8d, ebp
mov rcx, rdi
call sym.get_object_item
mov rdx, rax
test rax, rax
je case.0x1400e4a81.1
mov r8d, ebp
mov rcx, r12
call sym.cJSON_Compare
test eax, eax
je 0x1400e4a88
mov r12, qword [r12]
test r12, r12
jne 0x1400e4b92
mov rdi, qword [rdi + 0x10]
test rdi, rdi
je case.0x1400e4a81.0
mov rdx, qword [rdi + 0x38]
mov r8d, ebp
mov rcx, rbx
call sym.get_object_item
mov rdx, rax
test rax, rax
je case.0x1400e4a81.1
mov r8d, ebp
mov rcx, rdi
call sym.cJSON_Compare
test eax, eax
je 0x1400e4a88
mov rdi, qword [rdi]
test rdi, rdi
jne 0x1400e4bd3
nop dword [rax]
mov esi, 1
jmp case.0x1400e4a81.1

Function at 0x1400e4f00
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x1400e4f70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140147854]
mov rbx, rcx
test esi, esi
jle 0x1400e50a0
mov rax, qword [0x140147858]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400e4fbb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400e5045
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400e4fa0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400e50c2
mov rax, qword [0x140147858]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140147858]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400e50a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400e503e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400e5050
add dword [0x140147854], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140147858]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400e503e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400e4fc8
mov rax, qword [0x140147858]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400e5650
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1401478c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401478a0]
test rbx, rbx
je 0x1400e56ac
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 0x1400e56a3
test eax, eax
jne 0x1400e56a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400e5688
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 0x1400e58c0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400e58d8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400e58e0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400e58f0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400e593d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400e5934
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400e593f
add rax, 0x28
cmp rax, r9
jne 0x1400e5920
xor eax, eax
ret

Function at 0x1400e5940
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400e59d0
mov rdx, qword [0x140129ff0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400e59be
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400e59be
cmp word [rax + 0x18], 0x20b
jne 0x1400e59be
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400e59d0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400e59a9
add rbx, 0x28
cmp rbx, rdi
je 0x1400e59d0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400e59a0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x140129ff0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400e5a00
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400e5a08
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400e5a00
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400e5a5d
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 0x1400e5a54
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400e5a00
add rax, 0x28
cmp rax, r9
jne 0x1400e5a40
xor eax, eax
ret

Function at 0x1400e5a60
Capabilities:
Parse pe header

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

Function at 0x1400e5aa0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140129ff0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400e5ac0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400e5ac8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400e5ac0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400e5b10
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400e5b07
test rcx, rcx
je 0x1400e5ac0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1400e5af8
xor eax, eax
ret
Function at 0x1400e5b20
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140129ff0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400e5b80
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400e5b88
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400e5b80
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400e5b80
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400e5bd4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400e5be0
add rdx, 0x28
cmp rdx, r9
jne 0x1400e5bc0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140129ff0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400e5c12
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400e5c20
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400e5c12
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400e5c12
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400e5c12
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400e5c75
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400e5c88
add rdx, 0x28
cmp r10, rdx
jne 0x1400e5c60
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400e5c97
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400e5ca7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400e5c7e
test ecx, ecx
jg 0x1400e5c90
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x1400f5590
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400fccd8], eax
cmp eax, 0xffffffff
je sym.pthread_tls_init.cold
add rsp, 0x28
ret
Function at 0x1400f55b0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x7b], 0
mov qword [rsp + 0x83], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x1400f56b2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1400f568a
add rax, 1
cmp rax, 0x6b
je 0x1400f56a7
cmp byte [rcx + rax], 0
jne 0x1400f5680
lea edx, [rax + 1]
cmp eax, 0x6a
je 0x1400f56a7
cdqe
mov byte [rsp + rax + 0x20], 0xa
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sym.abort
mov edx, 0x28
mov eax, 0x27
lea rcx, [rsp + 0x20]
jmp 0x1400f5698
Function at 0x1400f5c10
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp dword [0x1401484a0], 1
je 0x1400f5cb6
lea rdi, [0x1400fccc0]
lea rsi, [0x1401484a0]
mov rcx, rdi
call sym.pthread_spin_lock
mov rbx, qword [0x140148450]
test rbx, rbx
jne 0x1400f5c60
jmp 0x1400f5e53
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x1400f5e20
mov rbx, rax
cmp qword [rbx], rsi
jne 0x1400f5c50
add dword [rbx + 0x10], 1
lea rsi, [rbx + 8]
mov rcx, rdi
call sym.pthread_spin_unlock
mov rcx, rsi
call sym.pthread_mutex_lock
mov edi, dword [0x1401484a0]
test edi, edi
jne 0x1400f5ce0
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400fccd8], eax
cmp eax, 0xffffffff
je sym.__pthread_self_lite.cold
mov dword [0x1401484a0], 1
mov rcx, rsi
call sym.pthread_mutex_unlock
mov rcx, rbx
call sym.leaveOnceObject.part.0
mov ecx, dword [0x1400fccd8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400f5d10
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp edi, 1
je 0x1400f5ca6
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r9d, edi
lea r8, [0x1401484a0]
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sym.fprintf_2
jmp 0x1400f5ca6
call sym.pop_pthread_mem
cmp qword [sym.__dyn_tls_pthread], 0
mov rsi, rax
je 0x1400f5cca
test rax, rax
je 0x1400f5cca
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rsi + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rsi + 0x38], 0xffffffffffffffff
lea rcx, [rsi + 0x68]
mov qword [rsi + 0x30], rax
call sym.pthread_spin_destroy
cmp eax, 1
je 0x1400f5e78
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsi + 0x68], 0xffffffffffffffff
mov dword [rsi + 0xb8], 0
mov qword [rsi + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rbx
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rsi + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je sym.__pthread_self_lite.cold
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400fccd8]
mov rdx, rsi
mov dword [rsi + 0xbc], 0
mov dword [rsi + 0xc0], eax
movzx eax, byte [rsi + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rsi + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je sym.__pthread_self_lite.cold
mov rbx, rsi
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov edx, 0x20
mov ecx, 1
call sym.calloc
mov qword [rax], rsi
mov dword [rax + 0x10], 1
mov qword [rbx + 0x18], rax
mov rbx, rax
lea rsi, [rbx + 8]
xor edx, edx
mov rcx, rsi
call sym.pthread_mutex_init
jmp 0x1400f5c6d
mov edx, 0x20
mov ecx, 1
call sym.calloc
mov qword [rax], rsi
mov rbx, rax
mov dword [rax + 0x10], 1
mov qword [0x140148450], rax
jmp 0x1400f5e40
call sym.replace_spin_keys.part.0
nop
nop
Function at 0x1400f6300
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
test edx, edx
jne 0x1400f6320
test r8, r8
je 0x1400f63d0
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
ret
cmp edx, 1
je 0x1400f6400
cmp edx, 3
jne 0x1400f6313
mov ecx, dword [0x1400fccd8]
cmp ecx, 0xffffffff
je 0x1400f6313
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400f6313
test byte [rax + 0x40], 0x30
je 0x1400f6428
mov rcx, qword [rax + 0x1d8]
test rcx, rcx
je 0x1400f6362
call sym._pthread_cleanup_dest.part.0
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x1400f6387
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400f637f
call rsi
pxor xmm0, xmm0
movups xmmword [rbx + 0x28], xmm0
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x1400f64fc
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x1400f64ef
mov ecx, dword [0x1400fccd8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x1400f6313
mov rcx, qword [0x140148460]
test rcx, rcx
je 0x1400f6313
call qword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov qword [0x140148460], 0
jmp 0x1400f6313
lea rdx, [sym.SetThreadName_VEH]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov qword [0x140148460], rax
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rax + 0x30]
mov eax, dword [rax + 0xbc]
test eax, eax
jne 0x1400f64a0
test rcx, rcx
je 0x1400f6441
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x1d8]
mov qword [rbx + 0x30], 0
mov dword [rbx + 0xbc], 1
test rcx, rcx
je 0x1400f6464
call sym._pthread_cleanup_dest.part.0
test byte [rbx + 0x44], 4
je 0x1400f64e0
mov rcx, qword [rbx + 0x28]
mov dword [rbx], 0xdeadbeef
test rcx, rcx
je 0x1400f6387
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x28], 0
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
jmp 0x1400f6394
test rcx, rcx
je 0x1400f64e0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x30], 0
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x1400f64fc
mov qword [rbx + 0x68], 0xffffffffffffffff
jmp 0x1400f6313
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
jmp 0x1400f64c0
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x1400f63b8
call sym.replace_spin_keys.part.0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1400f7760
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1400fccc8]
mov rbx, rcx
mov rcx, rdi
mov esi, edx
call sym.pthread_mutex_lock
mov rax, qword [0x140148478]
test rax, rax
je 0x1400f77d0
mov r9, qword [0x140148480]
lea r8, [rax - 1]
xor ecx, ecx
cmp rax, 1
jne 0x1400f77ae
jmp 0x1400f7848
cmp rcx, rax
je 0x1400f77d0
lea r8, [rax - 1]
cmp r8, rcx
jb 0x1400f77d0
lea rax, [rcx + r8]
shr rax, 1
mov rdx, rax
shl rdx, 4
add rdx, r9
cmp rbx, qword [rdx + 8]
je 0x1400f77e8
jb 0x1400f77a0
lea rcx, [rax + 1]
cmp r8, rcx
jae 0x1400f77ae
mov rcx, rdi
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rax, qword [rdx]
test rax, rax
je 0x1400f77d0
cmp qword [rax + 0x1d8], rbx
jne 0x1400f77d0
test byte [rax + 0x40], 0xc
jne 0x1400f77d0
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x1400f77d0
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x1400f77d0
mov rcx, rdi
call sym.pthread_mutex_unlock
test esi, esi
je 0x1400f7840
sub esi, 2
cmp esi, 0x15
ja 0x1400f7853
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp sym.pthread_cancel
xor eax, eax
jmp 0x1400f77dd
cmp rbx, qword [r9 + 8]
jne 0x1400f77d0
mov rax, qword [r9]
jmp 0x1400f77eb
mov eax, 0x16
jmp 0x1400f77dd
Function at 0x1400f7b00
Capabilities:
Create thread
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 sym.pop_pthread_mem
mov rbx, rax
test rax, rax
je 0x1400f7d34
test rbp, rbp
je 0x1400f7b3b
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 0x1400f7bb0
test esi, esi
jne 0x1400f7ba0
xor ecx, ecx
mov esi, 1
call r14
jmp 0x1400f7b6f
add esi, 1
mov ecx, 0x14
call r13
cmp esi, 5
jne 0x1400f7b6f
mov qword [rbx + 0x38], 0xffffffffffffffff
lea r12, [rbx + 0x68]
mov rcx, r12
call sym.pthread_spin_destroy
cmp eax, 1
je 0x1400f7d5a
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 0x1400f7d1d
xor edx, edx
test rdi, rdi
je 0x1400f7c1d
mov eax, dword [rdi]
mov rsi, qword [rdi + 0x10]
mov dword [rbx + 0x44], eax
test al, 8
jne 0x1400f7d40
mov eax, dword [rdi + 0x18]
mov dword [rbx + 0xc0], eax
mov edx, esi
lea r8, [sym.pthread_create_wrapper]
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 0x1400f7ce8
mov eax, dword [rbx + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x1400f7cc0
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 0x1400f7ca0
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 0x1400f7c87
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x1400f7c61
mov edx, 2
cmp eax, edx
cmovle edx, eax
cmp eax, 0xf
mov eax, 0xf
cmovge edx, eax
jmp 0x1400f7c61
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400f7cf7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
mov rcx, r12
call sym.pthread_spin_destroy
cmp eax, 1
je 0x1400f7d5a
mov qword [rbx + 0x68], 0xffffffffffffffff
pxor xmm0, xmm0
movups xmmword [rbx + 0x28], xmm0
test rbp, rbp
je 0x1400f7d2a
mov qword [rbp], 0
cmp qword [rbx + 0x1d0], 0
je 0x1400f7d50
mov eax, 0xb
jmp 0x1400f7c91
call sym.__pthread_self_lite
mov eax, dword [rax + 0xc0]
jmp 0x1400f7c15
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x1400f7d34
call sym.replace_spin_keys.part.0
nop
Function at 0x140793ae4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140793aee
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140793b17
pop rbp
sub rbp, 0x33
sub rbp, 0x793ae4
sub rsp, 0x20
jmp 0x140793b36
mov rax, 0x793ae4
add rax, rbp
add rax, 0x84
mov rcx, 0x647
mov rdx, 0x63ec9a25
xor byte [rax], dl
inc rax
dec rcx
jne 0x140793b55
jmp 0x140793b6c
insd dword [rdi], dx
lodsb al, byte [rsi]
int3