joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001cf20
Capabilities:
Check if file exists
Get file attributes
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0xd58
mov rax, qword [0x180063010]
xor rax, rsp
mov qword [rsp + 0xd40], rax
mov dword [rsp + 0x230], 0
mov qword [rsp + 0x68], 0
mov rcx, qword [rsp + 0xd78]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x18001d062
lea rax, [rsp + 0x123]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x9e0]
lea rcx, [0x180056cc0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x82
rep movsb byte [rdi], byte [rsi]
mov eax, 2
imul rax, rax, 0x40
movzx eax, word [rsp + rax + 0x9e0]
test eax, eax
je 0x18001cfc1
mov dword [rsp + 0x17c], 1
jmp 0x18001cfcc
mov dword [rsp + 0x17c], 0
movzx eax, byte [rsp + 0x17c]
test eax, eax
je 0x18001d047
mov dword [rsp + 0xd4], 0
jmp 0x18001cff5
mov eax, dword [rsp + 0xd4]
inc eax
mov dword [rsp + 0xd4], eax
cmp dword [rsp + 0xd4], 0x41
jge 0x18001d047
movsxd rax, dword [rsp + 0xd4]
movzx eax, word [rsp + rax*2 + 0x9e0]
mov dword [rsp + 0x210], eax
mov eax, dword [rsp + 0xd4]
cdq
mov ecx, 0x3a
idiv ecx
mov eax, edx
add eax, 0x34
mov ecx, dword [rsp + 0x210]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0xd4]
mov word [rsp + rcx*2 + 0x9e0], ax
jmp 0x18001cfe5
lea rax, [rsp + 0x9e0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, 1
jmp 0x18001f81c
jmp 0x180801cee
mov rcx, qword [rsp + 0xd40]
xor rcx, rsp
call fcn.180028050
add rsp, 0xd58
pop rdi
pop rsi
ret
Function at 0x180021c70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x48
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x68], 0
je 0x180021caa
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.1800231a0
jmp 0x180021df3
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x40]
cmp qword [rax], 0
je 0x180021cd4
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x58]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
jmp 0x180021cdc
mov dword [rsp + 0x20], 0
movsxd rax, dword [rsp + 0x20]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x70], 0
jle 0x180021d9c
cmp qword [rsp + 0x28], 0
jle 0x180021d9c
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x70], rax
jge 0x180021d14
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x28]
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x58]
mov ecx, dword [rsp + 0x28]
mov eax, dword [rax]
sub eax, ecx
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x58]
mov dword [rcx], eax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x40]
movsxd rcx, dword [rsp + 0x28]
add rcx, qword [rax]
mov rax, rcx
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x40]
mov qword [rcx], rax
cmp qword [rsp + 0x70], 0
jle 0x180021de3
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x80], 0
je 0x180021de3
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x70]
mov edx, 1
mov rcx, qword [rsp + 0x68]
call fcn.18003024c
mov rcx, qword [rsp + 0x70]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x1800249d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [0x180063010]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xc0]
cmp qword [rax + 0x68], 0
je 0x180024a0d
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x180024a14
mov al, 1
jmp 0x180024b88
mov dword [rsp + 0x40], 0xffffffff
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0xc0]
call qword [rax + 0x18]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], 0xffffffff
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jne 0x180024a56
mov dword [rsp + 0x38], 1
jmp 0x180024a5e
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x180024a77
xor al, al
jmp 0x180024b88
mov qword [rsp + 0x68], 0x20
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x98]
mov rcx, qword [rsp + 0xc0]
add rcx, 0x74
mov rdx, qword [rsp + 0x58]
mov rdx, qword [rdx]
mov qword [rsp + 0x60], rdx
lea r8, [rsp + 0x70]
mov qword [rsp + 0x20], r8
mov r9, rax
lea r8, [rsp + 0x78]
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x60]
call qword [rax + 0x40]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x180024af6
cmp dword [rsp + 0x34], 1
je 0x180024b02
cmp dword [rsp + 0x34], 3
je 0x180024b76
jmp 0x180024b86
mov rax, qword [rsp + 0xc0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jbe 0x180024b4d
mov rax, qword [rsp + 0xc0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
lea rcx, [rsp + 0x78]
call fcn.18003024c
cmp qword [rsp + 0x50], rax
je 0x180024b4d
xor al, al
jmp 0x180024b88
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x180024b67
mov dword [rsp + 0x3c], 1
jmp 0x180024b6f
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
jmp 0x180024b88
mov rax, qword [rsp + 0xc0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x180024b88
xor al, al
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.180028050
add rsp, 0xb8
ret
Function at 0x18003b3a4
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x18003b244
call fcn.180033944
mov dword [rax], 0x16
call fcn.1800319fc
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x18003b22c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x18003b22c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x18003b276
lock or dword [rax + 0x14], 0x10
jmp 0x18003b22c
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x18003b293
mov rcx, qword [rbp + 0x10]
call fcn.18003b9f8
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.180038e34
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.18003bf8c
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x18003b2ea
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x18003b22c
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x18003b356
mov rcx, qword [rbp + 0x10]
call fcn.180038e34
cmp eax, 0xffffffff
je 0x18003b33d
mov rcx, qword [rbp + 0x10]
call fcn.180038e34
cmp eax, 0xfffffffe
je 0x18003b33d
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.180038e34
movsxd rdi, eax
lea rsi, [0x1801d5300]
mov rcx, rbx
sar rdi, 6
call fcn.180038e34
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x18003b344
lea rax, [0x180063270]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18003b356
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x18003b38c
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x18003b388
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x18003b388
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x18003b22f
jmp 0x18003b1fc
Function at 0x40c120
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 fcn.004183a0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.004183a0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x40c190
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00543614]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x40c338
mov rax, qword [0x00543618]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x40c1dc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x40c267
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x40c1c0
mov rcx, r12
call fcn.0040cef0
mov rbp, rax
test rax, rax
je 0x40c372
mov rax, qword [0x00543618]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.0040d020
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00543618]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40c381
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x40c260
sub eax, 4
and eax, 0xfffffffb
jne 0x40c2f0
add dword [0x00543614], 1
cmp ebx, 8
jae 0x40c298
test bl, 4
jne 0x40c340
test ebx, ebx
je 0x40c289
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x40c360
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x40c289
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x40c2ca
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x00543618]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40c260
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0040c120
nop dword [rax]
xor edi, edi
jmp 0x40c1e7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x40c289
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x40c289
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.0040c120
mov rax, qword [0x00543618]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.0040c120
nop
nop dword [rax]
Function at 0x40cb60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00543900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x005438e0]
test rbx, rbx
je 0x40cbb4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x40cbab
test r12, r12
je 0x40cbab
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40cb90
lea rcx, [0x00543900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x40cef0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x0051c840]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x40cf69
mov rcx, r10
call fcn.0040cdc0
test eax, eax
je 0x40cf69
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x40cf66
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x40cf5d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x40cf69
add r8, 0x28
cmp r8, r9
jne 0x40cf48
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x40d900
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 qword [rbp], r8
mov r15, rcx
movsxd rbx, edx
call sub.msvcrt.dll_strlen
mov rsi, rax
lea r13d, [rax + 0xf]
lea edi, [rax + 0x10]
lea eax, [rax + 0x52]
cdqe
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.0040d1a0
sub rsp, rax
movsxd r12, esi
mov rdx, r15
movsxd r13, r13d
mov r8, r12
lea r14, [rsp + 0x20]
lea rcx, [rsp + 0x2f]
movabs rax, 0x656d68732d636367
mov qword [rsp + 0x20], rax
mov eax, 0x326d
lea r15d, [rsi + 0x50]
mov dword [rsp + 0x28], 0x64742d6d
mov word [rsp + 0x2c], ax
mov byte [rsp + 0x2e], 0x2d
call sub.msvcrt.dll_memcpy
lea rax, [r14 + r12 + 0x10]
mov r8, r14
movabs rdx, 0x6161616161616161
movabs rcx, 0x6161616161616161
mov qword [rax], rdx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rcx
mov qword [rax + 0x30], rdx
xor edx, edx
mov qword [rax + 0x38], rcx
movsxd rax, r15d
xor ecx, ecx
mov byte [rsp + rax + 0x20], 0
mov byte [rsp + r13 + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [rsp + r13 + 0x20], 0x2d
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40d9fa
int3
mov rcx, r14
add esi, 0x51
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
je 0x40da48
mov rdx, r14
movzx ecx, ax
mov r9d, edi
mov r8d, esi
call fcn.0040d890
mov r14, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, r14
lea rsp, [rbp - 0x58]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rbx
call sub.msvcrt.dll_malloc
mov r13, rax
mov eax, 0x40
nop dword [rax + rax]
bt r13, rax
jae 0x40da73
mov edx, r15d
sub edx, eax
movsxd rdx, edx
mov byte [r14 + rdx], 0x41
sub eax, 1
jne 0x40da60
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
jne 0x40da87
int3
mov rdx, r14
movzx ecx, ax
mov r9d, edi
mov r8d, esi
call fcn.0040d890
mov r14, rax
cmp r13, rax
je 0x40daad
mov rcx, r13
call sub.msvcrt.dll_free
jmp 0x40da1f
xor edx, edx
mov r8, rbx
mov rcx, rax
call sub.msvcrt.dll_memset
cmp qword [rbp], 0
je 0x40da1f
mov rcx, r14
call qword [rbp]
jmp 0x40da1f

Function at 0x41ad70
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x005443e8]
test rbx, rbx
je 0x41ada8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [0x005443e8]
test rax, rax
je 0x41add0
cmp dword [rax], 0xffffffff
je 0x4b4150
add rsp, 0x20
pop rbx
ret
lea r8, [0x0041a180]
mov edx, 4
lea rcx, str._pthread_tls_shmem
call fcn.0041e8d0
mov qword [0x005443e8], rax
mov rbx, rax
jmp 0x41ad81
lea r8, [0x0041a180]
mov edx, 4
lea rcx, str._pthread_tls_shmem
call fcn.0041e8d0
mov qword [0x005443e8], rax
jmp 0x41ad95
call sub.msvcrt.dll_abort
nop
Function at 0x41b340
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rcx, qword [0x005443f0]
test rcx, rcx
je 0x41b498
cmp dword [rcx], 1
je 0x41b363
call fcn.0041b200
mov rax, qword [0x005443e8]
test rax, rax
je 0x41b4c0
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x41b390
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
call fcn.0041aba0
cmp qword [0x00547050], 0
mov rbx, rax
je 0x41b383
test rax, rax
je 0x41b383
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.0041b280
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rdi
mov dword [rsp + 0x30], 2
mov r8, rsi
mov rdx, r12
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 0x4b4156
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
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
mov rax, qword [0x005443e8]
test rax, rax
je 0x41b4e8
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4b4156
mov r12, rbx
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
lea rcx, str._pthread_tls_once_shmem
xor r8d, r8d
mov edx, 4
call fcn.0041e8d0
mov qword [0x005443f0], rax
mov rcx, rax
jmp 0x41b359
lea r8, [0x0041a180]
mov edx, 4
lea rcx, str._pthread_tls_shmem
call fcn.0041e8d0
mov qword [0x005443e8], rax
jmp 0x41b373
lea r8, [0x0041a180]
mov edx, 4
lea rcx, str._pthread_tls_shmem
call fcn.0041e8d0
mov qword [0x005443e8], rax
jmp 0x41b46e
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x41e8d0
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 rsi, r8
mov r12, rcx
movsxd rbx, edx
call sub.msvcrt.dll_strlen
mov r8, rax
lea eax, [rax + 0xf]
mov dword [rbp - 0x54], eax
lea eax, [r8 + 0x51]
lea edi, [r8 + 0x10]
cdqe
lea r15d, [r8 + 0x50]
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.0040d1a0
movabs rcx, 0x656d68732d636367
sub rsp, rax
movsxd r13, r8d
mov rdx, r12
mov eax, 0x326d
mov r8, r13
mov qword [rsp + 0x20], rcx
lea r14, [rsp + 0x20]
lea rcx, [rsp + 0x2f]
mov dword [rsp + 0x28], 0x64742d6d
mov word [rsp + 0x2c], ax
mov byte [rsp + 0x2e], 0x2d
call sub.msvcrt.dll_memcpy
lea rax, [r14 + r13 + 0x10]
movsxd r12, dword [rbp - 0x54]
mov r8, r14
movabs rdx, 0x6161616161616161
movabs rcx, 0x6161616161616161
mov qword [rax], rdx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rcx
mov qword [rax + 0x30], rdx
xor edx, edx
mov qword [rax + 0x38], rcx
movsxd rax, r15d
xor ecx, ecx
mov byte [rsp + rax + 0x20], 0
mov byte [rsp + r12 + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [rsp + r12 + 0x20], 0x2d
mov edx, 0xffffffff
mov r13, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41e9ce
int3
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
je 0x41ea20
mov rdx, r14
movzx ecx, ax
mov r9d, edi
mov r8d, r15d
call fcn.0041e860
mov r14, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, r14
lea rsp, [rbp - 0x48]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rbx
call sub.msvcrt.dll_malloc
mov r12, rax
mov eax, 0x40
bt r12, rax
jae 0x41ea43
mov edx, r15d
sub edx, eax
movsxd rdx, edx
mov byte [r14 + rdx], 0x41
sub eax, 1
jne 0x41ea30
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
jne 0x41ea57
int3
mov rdx, r14
movzx ecx, ax
mov r9d, edi
mov r8d, r15d
call fcn.0041e860
mov r14, rax
cmp r12, rax
je 0x41ea7d
mov rcx, r12
call sub.msvcrt.dll_free
jmp 0x41e9f0
xor edx, edx
mov r8, rbx
mov rcx, rax
call sub.msvcrt.dll_memset
test rsi, rsi
je 0x41e9f0
mov rcx, r14
call rsi
jmp 0x41e9f0

Function at 0x41fd90
Capabilities:
Enumerate processes

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x150
xor edx, edx
xor r12d, r12d
mov rbx, rcx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x41fe0e
lea rsi, [rsp + 0x20]
mov rcx, rax
lea rdi, [rsp + 0x4c]
mov dword [rsp + 0x20], 0x130
mov rdx, rsi
call sub.KERNEL32.dll_Process32First
mov r12d, eax
test r12d, r12d
je 0x41fe05
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x41fdf5
mov r12d, dword [rsp + 0x28]
jmp 0x41fe05
mov rdx, rsi
mov rcx, r13
call sub.KERNEL32.dll_Process32Next
mov r12d, eax
jmp 0x41fdd9
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r12d
add rsp, 0x150
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
Function at 0x420500
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [0x004b3400]
mov edx, 8
lea rcx, str.__terminate_handler_sh
jmp fcn.0040d900

Function at 0x420520
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [0x004b3410]
mov edx, 8
lea rcx, str.__unexpected_handler_sh
jmp fcn.0040d900