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

Disassembly:
jmp 0x1800e1ae0
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov ecx, dword [0x180161ce8]
cmp ecx, 0xffffffff
jne 0x1800e1b08
xor esi, esi
jmp 0x1800e1b11
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov qword [rsp + 0x40], rsi
test rsi, rsi
je 0x1800e1b55
mov rcx, qword [rsi + 0x30]
nop
mov rdi, qword [rsi + 0x18]
test rcx, rcx
jne 0x1800e1b96
test rdi, rdi
jne 0x1800e1ba0
lea rdx, [0x1800e1810]
lea rcx, [0x18016bf38]
call fcn.1800e1450
mov ecx, dword [0x180161ce8]
cmp ecx, 0xffffffff
je 0x1800e1b55
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rsi, rsi
je 0x1800e1b86
or eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1800e1b86
mov rax, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rdi, rdi
je 0x1800e1bf4
nop dword [rax + rax]
mov rax, qword [rdi + 8]
mov qword [rsi + 0x18], rax
mov rcx, qword [rdi]
test rcx, rcx
je 0x1800e1bd7
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rdi]
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [rsi + 0x18]
test rdi, rdi
jne 0x1800e1ba0
mov rcx, qword [rsi + 0x30]
test rcx, rcx
je 0x1800e1b20
nop dword [rax]
nop word [rax + rax]
mov rbx, qword [rsi + 0x28]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1800e1c2c
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x1800e1c2c
call qword [rbx + 0x28]
mov rax, rbx
cmp byte [rbx + 0x19], 0
jne 0x1800e1c7b
mov rcx, qword [rbx + 0x10]
cmp byte [rcx + 0x19], 0
jne 0x1800e1c5e
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
jne 0x1800e1c7b
nop dword [rax + rax]
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x1800e1c50
jmp 0x1800e1c7b
mov rcx, qword [rbx + 8]
cmp byte [rcx + 0x19], 0
jne 0x1800e1c7b
cmp rax, qword [rcx + 0x10]
jne 0x1800e1c7b
mov rax, rcx
mov rcx, qword [rcx + 8]
cmp byte [rcx + 0x19], 0
je 0x1800e1c68
mov rdx, rbx
lea rcx, [rsi + 0x28]
call fcn.1800e0fa0
nop
mov edx, 0x40
mov rcx, rax
call fcn.180091f20
nop
mov rcx, qword [rsi + 0x30]
test rcx, rcx
jne 0x1800e1c10
jmp 0x1800e1b20
Function at 0x1800e1ae0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x1800e1ae0
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov ecx, dword [0x180161ce8]
cmp ecx, 0xffffffff
jne 0x1800e1b08
xor esi, esi
jmp 0x1800e1b11
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov qword [rsp + 0x40], rsi
test rsi, rsi
je 0x1800e1b55
mov rcx, qword [rsi + 0x30]
nop
mov rdi, qword [rsi + 0x18]
test rcx, rcx
jne 0x1800e1b96
test rdi, rdi
jne 0x1800e1ba0
lea rdx, [0x1800e1810]
lea rcx, [0x18016bf38]
call fcn.1800e1450
mov ecx, dword [0x180161ce8]
cmp ecx, 0xffffffff
je 0x1800e1b55
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rsi, rsi
je 0x1800e1b86
or eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1800e1b86
mov rax, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rdi, rdi
je 0x1800e1bf4
nop dword [rax + rax]
mov rax, qword [rdi + 8]
mov qword [rsi + 0x18], rax
mov rcx, qword [rdi]
test rcx, rcx
je 0x1800e1bd7
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rdi]
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [rsi + 0x18]
test rdi, rdi
jne 0x1800e1ba0
mov rcx, qword [rsi + 0x30]
test rcx, rcx
je 0x1800e1b20
nop dword [rax]
nop word [rax + rax]
mov rbx, qword [rsi + 0x28]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1800e1c2c
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x1800e1c2c
call qword [rbx + 0x28]
mov rax, rbx
cmp byte [rbx + 0x19], 0
jne 0x1800e1c7b
mov rcx, qword [rbx + 0x10]
cmp byte [rcx + 0x19], 0
jne 0x1800e1c5e
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
jne 0x1800e1c7b
nop dword [rax + rax]
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x1800e1c50
jmp 0x1800e1c7b
mov rcx, qword [rbx + 8]
cmp byte [rcx + 0x19], 0
jne 0x1800e1c7b
cmp rax, qword [rcx + 0x10]
jne 0x1800e1c7b
mov rax, rcx
mov rcx, qword [rcx + 8]
cmp byte [rcx + 0x19], 0
je 0x1800e1c68
mov rdx, rbx
lea rcx, [rsi + 0x28]
call fcn.1800e0fa0
nop
mov edx, 0x40
mov rcx, rax
call fcn.180091f20
nop
mov rcx, qword [rsi + 0x30]
test rcx, rcx
jne 0x1800e1c10
jmp 0x1800e1b20
Function at 0x180e8711c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x180e87126
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 0x180e8714f
pop rbp
sub rbp, 0x33
sub rbp, 0xe8711c
cmp edx, 1
je 0x180e87192
ldmxcsr dword [rsp]
add rsp, 8
popfq
pop r15
pop r14
pop r13
pop r12
pop r11
pop r10
pop r9
pop r8
pop rdi
pop rsi
pop rbp
pop rbx
pop rdx
pop rcx
pop rax
xor rax, rax
ret
sub rsp, 0x20
jmp 0x180e871a2
mov rax, 0xe8711c
add rax, rbp
add rax, 0xb8
mov rcx, 0x60b
mov rdx, 0x4e714994
xor byte [rax], dl
inc rax
dec rcx
jne 0x180e871c1
jmp 0x180e871d8
fcomp qword [0x12905915b]
xchg esp, eax
xchg esp, eax
xchg esp, eax
fcom qword [0x1157e0e3c]
xchg esp, eax
fcom qword [rbp + 0x5453dc7d]
popfq
xchg esp, eax
xchg esp, eax
xchg esp, eax
fcom qword [rbx + 0x56]
mov esp, 0xdc949494
invalid
Function at 0x140028d04
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.14001c388
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c388
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140028e54
cmp rax, 0xffffffffffffffff
je 0x140028e54
xor edi, edi
test rbp, rbp
jle 0x140028dff
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f014
mov rbx, rax
test rax, rax
jne 0x140028d8c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028df5
mov edx, 0x8000
mov ecx, r14d
call fcn.140019c38
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.14001d070
cmp eax, 0xffffffff
je 0x140028dd5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028d9c
mov edx, r15d
mov ecx, r14d
call fcn.140019c38
jmp 0x140028df5
cmp byte [rsi + 0x38], dil
je 0x140028dec
cmp dword [rsi + 0x34], 5
jne 0x140028dec
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028df5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a574
jmp 0x140028e68
jns 0x140028e68
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c388
cmp rax, 0xffffffffffffffff
jne 0x140028e20
cmp byte [rsi + 0x30], dil
je 0x140028e68
mov edi, dword [rsi + 0x2c]
jmp 0x140028e68
mov ecx, r14d
call fcn.140018768
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140028e68
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 0x140028e68
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140028e61
mov eax, dword [rsi + 0x2c]
jmp 0x140028e66
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c388
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 0x140029f60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140029f88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140029f88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x17597a0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x17597aa
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 0x17597d3
pop rbp
sub rbp, 0x33
sub rbp, 0x13597a0
sub rsp, 0x20
jmp 0x17597f2
mov rax, 0x13597a0
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xedee805
xor byte [rax], dl
inc rax
dec rcx
jne 0x1759811
jmp 0x1759828
mov r12, gs
mov cs, word [rcx + rdi + 0x4d050505]
test ah, al
or eax, 0x4d050504
add al, 0xec
ret 0xc5
Function at 0x40c1c0
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.00418440
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.00418440
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 0x40c230
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x004e4634]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x40c3d8
mov rax, qword [0x004e4638]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x40c27c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x40c307
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x40c260
mov rcx, r12
call fcn.0040cf90
mov rbp, rax
test rax, rax
je 0x40c412
mov rax, qword [0x004e4638]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.0040d0c0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004e4638]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40c421
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x40c300
sub eax, 4
and eax, 0xfffffffb
jne 0x40c390
add dword [0x004e4634], 1
cmp ebx, 8
jae 0x40c338
test bl, 4
jne 0x40c3e0
test ebx, ebx
je 0x40c329
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x40c400
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 0x40c329
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 0x40c36a
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 [0x004e4638]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40c300
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0040c1c0
nop dword [rax]
xor edi, edi
jmp 0x40c287
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x40c329
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x40c329
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.0040c1c0
mov rax, qword [0x004e4638]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.0040c1c0
nop
nop dword [rax]
Function at 0x40cc00
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004e4920]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004e4900]
test rbx, rbx
je 0x40cc54
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 0x40cc4b
test r12, r12
je 0x40cc4b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40cc30
lea rcx, [0x004e4920]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x40cf90
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x004bd840]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x40d009
mov rcx, r10
call fcn.0040ce60
test eax, eax
je 0x40d009
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 0x40d006
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 0x40cffd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x40d009
add r8, 0x28
cmp r8, r9
jne 0x40cfe8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x40d9a0
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.0040d240
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 0x40da9a
int3
mov rcx, r14
add esi, 0x51
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
je 0x40dae8
mov rdx, r14
movzx ecx, ax
mov r9d, edi
mov r8d, esi
call fcn.0040d930
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 0x40db13
mov edx, r15d
sub edx, eax
movsxd rdx, edx
mov byte [r14 + rdx], 0x41
sub eax, 1
jne 0x40db00
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
jne 0x40db27
int3
mov rdx, r14
movzx ecx, ax
mov r9d, edi
mov r8d, esi
call fcn.0040d930
mov r14, rax
cmp r13, rax
je 0x40db4d
mov rcx, r13
call sub.msvcrt.dll_free
jmp 0x40dabf
xor edx, edx
mov r8, rbx
mov rcx, rax
call sub.msvcrt.dll_memset
cmp qword [rbp], 0
je 0x40dabf
mov rcx, r14
call qword [rbp]
jmp 0x40dabf

Function at 0x41ae10
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x004e5408]
test rbx, rbx
je 0x41ae48
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [0x004e5408]
test rax, rax
je 0x41ae70
cmp dword [rax], 0xffffffff
je 0x4b4200
add rsp, 0x20
pop rbx
ret
lea r8, [0x0041a220]
mov edx, 4
lea rcx, str._pthread_tls_shmem
call fcn.0041e970
mov qword [0x004e5408], rax
mov rbx, rax
jmp 0x41ae21
lea r8, [0x0041a220]
mov edx, 4
lea rcx, str._pthread_tls_shmem
call fcn.0041e970
mov qword [0x004e5408], rax
jmp 0x41ae35
call sub.msvcrt.dll_abort
nop
Function at 0x41b320
Capabilities:
Print debug messages

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, rcx
test rcx, rcx
je 0x41b345
call fcn.0041a1c0
cmp eax, 1
je 0x41b352
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
ret
lea r12, [rsp + 0x20]
xor eax, eax
mov ecx, 0xa
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
mov rdi, r12
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x48]
mov ecx, 0x43
rep stosb byte [rdi], al
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 0x41b3d8
mov eax, 0x28
jmp 0x41b3aa
add rax, 1
cmp rax, 0x6b
je 0x41b3ca
cmp byte [r12 + rax], 0
mov edx, eax
jne 0x41b3a0
cmp eax, 0x6a
je 0x41b3ca
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0xa
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rax + 0x20], 0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x27
jmp 0x41b3b8
Function at 0x41b3e0
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 [0x004e5410]
test rcx, rcx
je 0x41b538
cmp dword [rcx], 1
je 0x41b403
call fcn.0041b2a0
mov rax, qword [0x004e5408]
test rax, rax
je 0x41b560
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x41b430
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
call fcn.0041ac40
cmp qword [0x004e8050], 0
mov rbx, rax
je 0x41b423
test rax, rax
je 0x41b423
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.0041b320
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 0x4b4206
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 [0x004e5408]
test rax, rax
je 0x41b588
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4b4206
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.0041e970
mov qword [0x004e5410], rax
mov rcx, rax
jmp 0x41b3f9
lea r8, [0x0041a220]
mov edx, 4
lea rcx, str._pthread_tls_shmem
call fcn.0041e970
mov qword [0x004e5408], rax
jmp 0x41b413
lea r8, [0x0041a220]
mov edx, 4
lea rcx, str._pthread_tls_shmem
call fcn.0041e970
mov qword [0x004e5408], rax
jmp 0x41b50e
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x41e970
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.0040d240
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 0x41ea6e
int3
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
je 0x41eac0
mov rdx, r14
movzx ecx, ax
mov r9d, edi
mov r8d, r15d
call fcn.0041e900
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 0x41eae3
mov edx, r15d
sub edx, eax
movsxd rdx, edx
mov byte [r14 + rdx], 0x41
sub eax, 1
jne 0x41ead0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
jne 0x41eaf7
int3
mov rdx, r14
movzx ecx, ax
mov r9d, edi
mov r8d, r15d
call fcn.0041e900
mov r14, rax
cmp r12, rax
je 0x41eb1d
mov rcx, r12
call sub.msvcrt.dll_free
jmp 0x41ea90
xor edx, edx
mov r8, rbx
mov rcx, rax
call sub.msvcrt.dll_memset
test rsi, rsi
je 0x41ea90
mov rcx, r14
call rsi
jmp 0x41ea90

Function at 0x420490
Capabilities:
Check mutex on windows

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

Function at 0x4204b0
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [0x004b3540]
mov edx, 8
lea rcx, str.__unexpected_handler_sh
jmp fcn.0040d9a0
Function at 0x47c0c0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x47c0e7
call rbp
cmp dword [rax], 4
jne 0x47c104
mov rcx, rdi
call fcn.0047bec0
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x47c0e0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret