joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013a90
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000c020
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140013b1a
cmp byte [rbp - 0x21], r15b
je 0x140013b15
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140013b50
call fcn.14000afa4
test eax, eax
jne 0x140013b3c
cmp byte [rbp - 0x21], r15b
je 0x140013b34
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140013b50
cmp byte [rbp - 0x21], r15b
je 0x140013b4d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000e628
test eax, eax
jne 0x140013bf0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000c020
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140013b8f
cmp byte [rbp - 0x21], r15b
je 0x140013bc4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140013bc4
call fcn.14000afa4
test eax, eax
jne 0x140013bb0
cmp byte [rbp - 0x21], r15b
je 0x140013ba9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140013bc4
cmp byte [rbp - 0x21], r15b
je 0x140013bc1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000e628
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140013bf0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140013bf3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140013c01
mov rcx, rdi
call fcn.14000cb90
cmp byte [rbp + 0x3f], r15b
je 0x140013c10
mov rcx, qword [rbp + 0x27]
call fcn.14000cb90
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400168a8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
xor edi, edi
mov rax, r15
lea rcx, [0x14002bb90]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x1400168fe
cmp word [rdx], r9w
jne 0x1400168fe
or byte [rax + rbp*8 + 0x38], 4
jmp 0x140016903
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x140016a82
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x140016a4d
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x14001694b
cmp rcx, r8
jae 0x14001696b
cmp word [rcx], r9w
jne 0x14001694b
add rax, 4
mov edx, r9d
jmp 0x14001694e
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x140016920
jmp 0x140016a82
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140016a46
cmp dword [rsp + 0x80], edi
je 0x140016a46
lea r9, [0x14002bb90]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x140016a20
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x1400169d3
mov word [rbx], bp
jmp 0x140016a7f
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x1400169ee
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x140016a7f
cmp word [rsp + 0x70], bp
jne 0x140016a2c
cmp rbx, rsi
je 0x1400169cb
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140013ccc
cmp word [rsp + 0x70], bp
je 0x140016a82
mov word [rbx], 0xd
jmp 0x140016a7f
mov rcx, r15
lea r9, [0x14002bb90]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140016a7c
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140016a82
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140016f70
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140013ccc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140013ccc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400170bd
cmp rax, 0xffffffffffffffff
je 0x1400170bd
xor edi, edi
test rbp, rbp
jle 0x14001706b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14000d490
mov rbx, rax
test rax, rax
jne 0x140016ff8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140017061
mov edx, 0x8000
mov ecx, r14d
call fcn.140007348
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001268c
cmp eax, 0xffffffff
je 0x140017041
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140017008
mov edx, r15d
mov ecx, r14d
call fcn.140007348
jmp 0x140017061
cmp byte [rsi + 0x38], dil
je 0x140017058
cmp dword [rsi + 0x34], 5
jne 0x140017058
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140017061
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14000cb90
jmp 0x1400170cf
jns 0x1400170cf
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140013ccc
cmp rax, 0xffffffffffffffff
jne 0x140017089
cmp byte [rsi + 0x30], dil
je 0x1400170cf
jmp 0x1400170c5
mov ecx, r14d
call fcn.14000f0ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400170cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400170cf
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400170ca
mov edi, dword [rsi + 0x2c]
jmp 0x1400170cf
mov edi, 0x16
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140013ccc
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x65d417a0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x65d417ce
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x65d41480]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x65d4de60
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x65eb9024]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x65d4df7a
mov rax, qword [0x65eb9028]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x65d4deae
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x65d4df60
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x65d4de92
mov rcx, rbx
call fcn.65d4ec80
test rax, rax
mov r12, rax
je 0x65d4dfb2
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x65eb9028]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call fcn.65d4eda0
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x65eb9028]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x65d4df95
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x65d4df59
sub eax, 0x40
and eax, 0xffffffbf
je 0x65d4df59
mov r9, rbp
add r9, qword [0x65eb9028]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x65d4df81
add dword [0x65eb9024], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_memcpy
xor ebp, ebp
jmp 0x65d4debb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.65d4ddf0
mov rax, qword [0x65eb9028]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call fcn.65d4ddf0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.65d4ddf0
nop
nop word cs:[rax + rax]

Function at 0x65d4eb90
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x65d4ebd1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x65d4ebc8
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x65d4ebd3
add rax, 0x28
cmp rax, r9
jne 0x65d4ebb4
xor eax, eax
repz ret

Function at 0x65d4ec80
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x65eb36c0]
cmp word [rbx], 0x5a4d
je 0x65d4eca0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call fcn.65d4eb50
test eax, eax
je 0x65d4ec94
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.65d4eb90
Function at 0x65d4ef00
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x65eb9900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x65eb98e0]
test rbx, rbx
je 0x65d4ef54
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x65d4ef4b
test rsi, rsi
je 0x65d4ef4b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x65d4ef30
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x65eb9900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax

Function at 0x65d4f6b0
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov rdi, rcx
movsxd r12, edx
mov r13, r8
call sub.msvcrt.dll_strlen
mov rsi, rax
lea ebx, [rax + 0xf]
lea eax, [rax + 0x52]
cdqe
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.65d4f870
sub rsp, rax
movsxd r14, esi
movabs rax, 0x656d68732d636367
lea r15, [rsp + 0x20]
lea rcx, [rsp + 0x2f]
mov r8, r14
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov eax, 0x326d
mov dword [rsp + 0x28], 0x64742d6d
mov word [rsp + 0x2c], ax
movsxd rbx, ebx
mov byte [rsp + 0x2e], 0x2d
call sub.msvcrt.dll_memcpy
lea rax, [r15 + r14 + 0x10]
lea r14d, [rsi + 0x50]
movabs rdx, 0x6161616161616161
xor ecx, ecx
mov r8, r15
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rdx
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rdx
mov qword [rax + 0x30], rdx
mov qword [rax + 0x38], rdx
movsxd rax, r14d
xor edx, edx
mov byte [rsp + rax + 0x20], 0
mov byte [rsp + rbx + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [rsp + rbx + 0x20], 0x2d
mov rdi, rax
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x65d4f799
int3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x65d4f838
mov rcx, r12
call sub.msvcrt.dll_malloc
lea r9d, [rsi + 0x10]
mov rbx, rax
mov r10d, 0x40
bt rbx, r10
jae 0x65d4f7d4
mov r11d, r14d
sub r11d, r10d
movsxd r11, r11d
mov byte [r15 + r11], 0x41
sub r10d, 1
jne 0x65d4f7c0
mov dword [rbp - 0x54], r9d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
mov r9d, dword [rbp - 0x54]
je 0x65d4f835
lea r8d, [rsi + 0x51]
movzx ecx, ax
mov rdx, r15
call fcn.65d4f630
cmp rax, rbx
mov rsi, rax
je 0x65d4f850
mov rcx, rbx
call sub.msvcrt.dll_free
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
lea rsp, [rbp - 0x48]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
int3
lea r9d, [rsi + 0x10]
lea r8d, [rsi + 0x51]
movzx ecx, ax
mov rdx, r15
call fcn.65d4f630
mov rsi, rax
jmp 0x65d4f80f
xor edx, edx
mov r8, r12
mov rcx, rbx
call sub.msvcrt.dll_memset
test r13, r13
je 0x65d4f80f
mov rcx, rbx
call r13
jmp 0x65d4f80f
Function at 0x65d4fcb0
Capabilities:
Check mutex on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov rcx, qword [0x65eb9958]
mov esi, edx
test rcx, rcx
je 0x65d4fc50
call fcn.65d54750
cmp dword [rbx], 0xbab1f00d
jne 0x65d4fc77
mov eax, dword [rbx + 4]
test eax, eax
jle 0x65d4fc77
mov eax, dword [rbx + 4]
test eax, eax
jle 0x65d4fc03
mov eax, dword [rbx + 4]
sub eax, 1
mov dword [rbx + 4], eax
mov rcx, qword [0x65eb9958]
test rcx, rcx
je 0x65d4fc20
call fcn.65d54800
mov eax, esi
add rsp, 0x38
pop rbx
pop rsi
ret
lea r8, [0x65d4f990]
lea rcx, str.mutex_global_shmem
mov edx, 8
call fcn.65d548e0
mov rcx, rax
mov qword [0x65eb9958], rax
call fcn.65d54800
mov eax, esi
add rsp, 0x38
pop rbx
pop rsi
ret
lea rcx, str.mutex_global_shmem
lea r8, [0x65d4f990]
mov edx, 8
call fcn.65d548e0
mov rcx, rax
mov qword [0x65eb9958], rax
jmp 0x65d4fbd7
call qword [sym.imp.msvcrt.dll___iob_func]
lea r9, str.C:_crossdev_src_winpthreads_git20141130_src_mutex.c
lea rcx, [rax + 0x60]
lea r8, str._m___valid__LIFE_MUTEX____m___busy___0_
lea rdx, [0x65eb3180]
mov dword [rsp + 0x20], 0x39
call sub.msvcrt.dll_fprintf
mov ecx, 1
call sub.msvcrt.dll_exit
nop
nop
lea r8, [0x65d4f990]
lea rcx, str.mutex_global_shmem
mov edx, 8
jmp fcn.65d548e0

Function at 0x65d513f0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x65eb99c8]
test rbx, rbx
je 0x65d51420
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [0x65eb99c8]
test rax, rax
je 0x65d51444
cmp dword [rax], 0xffffffff
je 0x65d51465
add rsp, 0x20
pop rbx
ret
lea r8, [0x65d50880]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.65d548e0
mov rbx, rax
mov qword [0x65eb99c8], rax
jmp 0x65d51401
lea r8, [0x65d50880]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.65d548e0
mov qword [0x65eb99c8], rax
jmp 0x65d51415
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
Function at 0x65d51900
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rcx, qword [0x65eb99d0]
test rcx, rcx
je 0x65d51a40
call fcn.65d51870
mov rax, qword [0x65eb99c8]
test rax, rax
je 0x65d51a63
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x65d51943
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.65d51240
test rax, rax
mov rbx, rax
je 0x65d51aab
cmp qword [0x65ebc040], 0
je 0x65d51aab
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
mov dword [rbx + 0x68], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rsi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x30], rax
mov qword [rbx + 0x38], 0xffffffffffffffff
mov qword [rbx + 0x60], 0xffffffffffffffff
mov dword [rbx + 0xb0], 0
mov qword [rbx + 0x28], 0
call rsi
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rsi
mov dword [rsp + 0x30], 2
mov rcx, rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbx + 0x28]
mov r8, rbp
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x65d51ab2
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xb8], eax
movzx eax, byte [rbx + 0x40]
mov dword [rbx + 0xb4], 0
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [0x65eb99c8]
test rax, rax
je 0x65d51a87
mov rdx, rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x65d51ab2
mov rax, rbx
jmp 0x65d5193a
lea rcx, str._pthread_tls_once_shmem
xor r8d, r8d
mov edx, 4
call fcn.65d548e0
mov rcx, rax
mov qword [0x65eb99d0], rax
jmp 0x65d51918
lea r8, [0x65d50880]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.65d548e0
mov qword [0x65eb99c8], rax
jmp 0x65d5192d
lea r8, [0x65d50880]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.65d548e0
mov qword [0x65eb99c8], rax
jmp 0x65d51a28
xor eax, eax
jmp 0x65d5193a
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
lea rcx, str._pthread_key_dest_shmem
xor r8d, r8d
mov edx, 8
jmp fcn.65d548e0
Function at 0x65d51ac0
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rcx, qword [0x65eb99d0]
test rcx, rcx
je 0x65d51a40
call fcn.65d51870
mov rax, qword [0x65eb99c8]
test rax, rax
je 0x65d51a63
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x65d51943
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.65d51240
test rax, rax
mov rbx, rax
je 0x65d51aab
cmp qword [0x65ebc040], 0
je 0x65d51aab
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
mov dword [rbx + 0x68], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rsi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x30], rax
mov qword [rbx + 0x38], 0xffffffffffffffff
mov qword [rbx + 0x60], 0xffffffffffffffff
mov dword [rbx + 0xb0], 0
mov qword [rbx + 0x28], 0
call rsi
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rsi
mov dword [rsp + 0x30], 2
mov rcx, rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbx + 0x28]
mov r8, rbp
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x65d51ab2
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xb8], eax
movzx eax, byte [rbx + 0x40]
mov dword [rbx + 0xb4], 0
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [0x65eb99c8]
test rax, rax
je 0x65d51a87
mov rdx, rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x65d51ab2
mov rax, rbx
jmp 0x65d5193a
lea rcx, str._pthread_tls_once_shmem
xor r8d, r8d
mov edx, 4
call fcn.65d548e0
mov rcx, rax
mov qword [0x65eb99d0], rax
jmp 0x65d51918
lea r8, [0x65d50880]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.65d548e0
mov qword [0x65eb99c8], rax
jmp 0x65d5192d
lea r8, [0x65d50880]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.65d548e0
mov qword [0x65eb99c8], rax
jmp 0x65d51a28
xor eax, eax
jmp 0x65d5193a
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
lea rcx, str._pthread_key_dest_shmem
xor r8d, r8d
mov edx, 8
jmp fcn.65d548e0
Function at 0x65d548e0
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x80]
mov rdi, rcx
movsxd r12, edx
mov r13, r8
call sub.msvcrt.dll_strlen
mov r14, rax
lea ebx, [rax + 0xf]
lea eax, [rax + 0x51]
cdqe
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.65d4f870
sub rsp, rax
movsxd r15, r14d
movabs rax, 0x656d68732d636367
lea rsi, [rsp + 0x20]
lea rcx, [rsp + 0x2f]
mov r8, r15
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov eax, 0x326d
mov dword [rsp + 0x28], 0x64742d6d
mov word [rsp + 0x2c], ax
movsxd rbx, ebx
mov byte [rsp + 0x2e], 0x2d
call sub.msvcrt.dll_memcpy
lea rax, [rsi + r15 + 0x10]
lea r15d, [r14 + 0x50]
movabs rdx, 0x6161616161616161
xor ecx, ecx
mov r8, rsi
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rdx
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rdx
mov qword [rax + 0x30], rdx
mov qword [rax + 0x38], rdx
movsxd rax, r15d
xor edx, edx
mov byte [rsp + rax + 0x20], 0
mov byte [rsp + rbx + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [rsp + rbx + 0x20], 0x2d
mov rdi, rax
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x65d549c9
int3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x65d54a62
mov rcx, r12
add r14d, 0x10
call sub.msvcrt.dll_malloc
mov r10d, 0x40
mov rbx, rax
bt rbx, r10
jae 0x65d54a04
mov r11d, r15d
sub r11d, r10d
movsxd r11, r11d
mov byte [rsi + r11], 0x41
sub r10d, 1
jne 0x65d549f0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x65d54a5f
mov rdx, rsi
movzx ecx, ax
mov r9d, r14d
mov r8d, r15d
call fcn.65d54860
cmp rax, rbx
mov rsi, rax
je 0x65d54a79
mov rcx, rbx
call sub.msvcrt.dll_free
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
lea rsp, [rbp - 0x58]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
int3
lea r9d, [r14 + 0x10]
mov rdx, rsi
movzx ecx, ax
mov r8d, r15d
call fcn.65d54860
mov rsi, rax
jmp 0x65d54a39
xor edx, edx
mov r8, r12
mov rcx, rbx
call sub.msvcrt.dll_memset
test r13, r13
je 0x65d54a39
mov rcx, rbx
call r13
jmp 0x65d54a39

Function at 0x65d573b0
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [0x65d58d60]
lea rcx, str.__terminate_handler_sh
mov edx, 8
jmp fcn.65d4f6b0

Function at 0x65d573d0
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [0x65d58d70]
lea rcx, str.__unexpected_handler_sh
mov edx, 8
jmp fcn.65d4f6b0