joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007d774
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
lea rdx, str.SoftwarePoliciesMicrosoftWindows_NTPrinters
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
xor ebx, ebx
test eax, eax
jne 0x14007d815
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x58], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.PrintDriverIsolationExecutionPolicy
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14007d7fa
cmp dword [rsp + 0x60], ebx
je 0x14007d7ff
mov ebx, 1
mov dword [rdi + 0x4c], ebx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x14007d81c
mov dword [rdi + 0x4c], 1
mov rcx, qword [0x1400be2f8]
lea rax, [0x1400be2f8]
cmp rcx, rax
je 0x14007d860
test byte [rcx + 0x1c], 2
je 0x14007d860
cmp dword [rdi + 0x4c], 1
lea rax, str.kExecuteInProc
mov rcx, qword [rcx + 0x10]
lea r9, str.kExecuteInSandbox
cmovne r9, rax
lea r8, [0x1400b4200]
mov edx, 0xd
call fcn.14004378c
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140080f28
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x40
and dword [rsp + 0x68], 0
lea rax, [r11 + 0x20]
and dword [rsp + 0x30], 0
lea r9, [r11 - 0x18]
mov rdi, r8
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
xor r8d, r8d
mov rbx, rdx
mov rsi, rcx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140081040
cmp dword [rsp + 0x30], 3
jne 0x140081040
cmp dword [rsp + 0x68], 0x48
jbe 0x140081040
mov ecx, dword [rsp + 0x68]
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
mov qword [rdi], rax
test rax, rax
je 0x140081039
lea rcx, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140081024
mov rcx, qword [rdi]
mov eax, dword [rsp + 0x68]
movzx edx, word [rcx + 0x44]
cmp edx, eax
ja 0x140080ff3
movzx r8d, word [rcx + 0x46]
cmp r8d, eax
jae 0x140080ff3
lea ecx, [r8 + rdx]
cmp eax, ecx
je 0x140081071
mov ebx, 0xd
mov rcx, qword [0x1400be2f8]
lea rax, [0x1400be2f8]
cmp rcx, rax
je 0x140081024
test byte [rcx + 0x1c], 4
je 0x140081024
mov rcx, qword [rcx + 0x10]
lea edx, [rbx - 3]
lea r8, [0x1400a4318]
call fcn.14002c20c
mov rcx, qword [rdi]
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
and qword [rdi], 0
jmp 0x140081071
mov ebx, 8
jmp 0x140081071
mov ebx, 0xd
mov rcx, qword [0x1400be2f8]
lea rax, [0x1400be2f8]
cmp rcx, rax
je 0x140081071
test byte [rcx + 0x1c], 4
je 0x140081071
mov rcx, qword [rcx + 0x10]
lea edx, [rbx - 2]
lea r8, [0x1400a4318]
call fcn.14002c20c
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400020bf
Capabilities:
Write file on windows

Disassembly:
push r12
sub rsp, 0x20
mov rax, qword [0x140030200]
test rax, rax
je 0x1400020d3
call rax
mov ecx, 2
call qword [fcn.140020a40]
mov r8d, 0xe
mov edx, 1
lea rcx, str.out_of_memory_n
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop

Function at 0x140006240
Capabilities:
Create process on windows
Create process suspended
Resume thread
Use process replacement

Disassembly:
push r12
mov eax, 0x1110
push rbp
push rdi
push rsi
push rbx
call fcn.1400109a0
sub rsp, rax
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov eax, ebx
mov rsi, rcx
mov ecx, 0x1a
lea rdi, [rsp + 0xa8]
mov rbp, rdx
rep stosd dword [rdi], eax
lea rdi, [rsp + 0x60]
mov ecx, 6
mov dword [rsp + 0x54], 0
rep stosd dword [rdi], eax
lea rdi, [rsp + 0x78]
mov ecx, 0xc
lea rdx, str.c:windows_system32_notepad.exe
rep stosd dword [rdi], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], 0
lea rdi, [rsp + 0x120]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
lea rax, [rsp + 0x54]
mov rcx, qword [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x78]
mov r9d, 0x30
call sub.ntdll.dll_NtQueryInformationProcess
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x58]
mov rax, qword [rsp + 0x80]
mov r12, qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r9d, 8
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, [rax + 0x10]
call r12
mov eax, ebx
mov ecx, 0x3fc
mov rdx, qword [rsp + 0x58]
rep stosd dword [rdi], eax
lea r8, [rsp + 0x110]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x110], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x1000
mov qword [rsp + 0x118], 0
call r12
mov rcx, qword [rsp + 0x60]
mov r9, rbp
mov r8, rsi
movsxd rax, dword [rsp + 0x14c]
mov edx, dword [rsp + rax + 0x138]
add rdx, qword [rsp + 0x58]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
add rsp, 0x1110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [0x1400290a0]
movsxd rdx, dword [rax]
mov rax, qword [0x140029090]
mov rcx, qword [rax]
jmp 0x140006240
sub rsp, 0x28
call fcn.1400063da
nop
add rsp, 0x28
jmp 0x1400063ef
Function at 0x1400063ef
Capabilities:
Use process replacement

Disassembly:
push r12
mov eax, 0x1110
push rbp
push rdi
push rsi
push rbx
call fcn.1400109a0
sub rsp, rax
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov eax, ebx
mov rsi, rcx
mov ecx, 0x1a
lea rdi, [rsp + 0xa8]
mov rbp, rdx
rep stosd dword [rdi], eax
lea rdi, [rsp + 0x60]
mov ecx, 6
mov dword [rsp + 0x54], 0
rep stosd dword [rdi], eax
lea rdi, [rsp + 0x78]
mov ecx, 0xc
lea rdx, str.c:windows_system32_notepad.exe
rep stosd dword [rdi], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], 0
lea rdi, [rsp + 0x120]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
lea rax, [rsp + 0x54]
mov rcx, qword [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x78]
mov r9d, 0x30
call sub.ntdll.dll_NtQueryInformationProcess
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x58]
mov rax, qword [rsp + 0x80]
mov r12, qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r9d, 8
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, [rax + 0x10]
call r12
mov eax, ebx
mov ecx, 0x3fc
mov rdx, qword [rsp + 0x58]
rep stosd dword [rdi], eax
lea r8, [rsp + 0x110]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x110], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x1000
mov qword [rsp + 0x118], 0
call r12
mov rcx, qword [rsp + 0x60]
mov r9, rbp
mov r8, rsi
movsxd rax, dword [rsp + 0x14c]
mov edx, dword [rsp + rax + 0x138]
add rdx, qword [rsp + 0x58]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
add rsp, 0x1110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [0x1400290a0]
movsxd rdx, dword [rax]
mov rax, qword [0x140029090]
mov rcx, qword [rax]
jmp 0x140006240
sub rsp, 0x28
call fcn.1400063da
nop
add rsp, 0x28
jmp 0x1400063ef
Function at 0x14000640a
Capabilities:
Use process replacement

Disassembly:
push r12
mov eax, 0x1110
push rbp
push rdi
push rsi
push rbx
call fcn.1400109a0
sub rsp, rax
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov eax, ebx
mov rsi, rcx
mov ecx, 0x1a
lea rdi, [rsp + 0xa8]
mov rbp, rdx
rep stosd dword [rdi], eax
lea rdi, [rsp + 0x60]
mov ecx, 6
mov dword [rsp + 0x54], 0
rep stosd dword [rdi], eax
lea rdi, [rsp + 0x78]
mov ecx, 0xc
lea rdx, str.c:windows_system32_notepad.exe
rep stosd dword [rdi], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], 0
lea rdi, [rsp + 0x120]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
lea rax, [rsp + 0x54]
mov rcx, qword [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x78]
mov r9d, 0x30
call sub.ntdll.dll_NtQueryInformationProcess
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x58]
mov rax, qword [rsp + 0x80]
mov r12, qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r9d, 8
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, [rax + 0x10]
call r12
mov eax, ebx
mov ecx, 0x3fc
mov rdx, qword [rsp + 0x58]
rep stosd dword [rdi], eax
lea r8, [rsp + 0x110]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x110], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x1000
mov qword [rsp + 0x118], 0
call r12
mov rcx, qword [rsp + 0x60]
mov r9, rbp
mov r8, rsi
movsxd rax, dword [rsp + 0x14c]
mov edx, dword [rsp + rax + 0x138]
add rdx, qword [rsp + 0x58]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
add rsp, 0x1110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [0x1400290a0]
movsxd rdx, dword [rax]
mov rax, qword [0x140029090]
mov rcx, qword [rax]
jmp 0x140006240
sub rsp, 0x28
call fcn.1400063da
nop
add rsp, 0x28
jmp 0x1400063ef
Function at 0x14000fcd0
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.140020a40
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.140020a40
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 0x14000fd40
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400302c4]
mov r12, rcx
test ebx, ebx
jle 0x14000fe70
mov rax, qword [0x1400302c8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000fd8c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000fe13
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x14000fd70
mov rcx, r12
call fcn.1400106e0
mov rsi, rax
test rax, rax
je 0x14000fe92
mov rax, qword [0x1400302c8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.140010810
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400302c8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000fe77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000fe0c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000fe20
add dword [0x1400302c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1400302c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000fe0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000fcd0
nop dword [rax]
xor ebx, ebx
jmp 0x14000fd97
mov rax, qword [0x1400302c8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000fcd0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14000fcd0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140010350
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140030320]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140030300]
test rbx, rbx
je 0x1400103a4
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 0x14001039b
test r12, r12
je 0x14001039b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140010380
lea rcx, [0x140030320]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400106e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140028f20]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140010700
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140010708
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140010700
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140010755
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14001074c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140010700
add rax, 0x28
cmp rax, r9
jne 0x140010738
xor eax, eax
ret

Function at 0x140010760
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140028f20]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140010780
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140010788
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140010780
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140010810
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140028f20]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140010830
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140010838
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x1400109e0
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140010a00
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x140010a48
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1400109f4
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140010a35
Function at 0x140010b60
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x140030430]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x140010b83
lea rax, [0x140030438]
mov ecx, 0x5f
lea rdx, str.__eh_shmem3_gcc_tdm_
lea r8, [rax + 0x15]
jmp 0x140010bcb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140010bc8
lea rax, [0x140030460]
mov ecx, 0x5f
lea rdx, str.__eh_shmem3_gcc_tdm_
lea r8, [rax + 0x14]
jmp 0x140010bfb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140010bf8
xor ecx, ecx
mov byte [0x140030474], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x14003047d], rdx
lea r8, [0x140030430]
lea rbx, [0x140030475]
mov qword [0x14003048d], rdx
mov qword [0x14003049d], rdx
mov qword [0x1400304ad], rdx
xor edx, edx
mov qword [0x140030475], rax
mov qword [0x140030485], rax
mov qword [0x140030495], rax
mov qword [0x1400304a5], rax
mov byte [0x1400304b5], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140010dd6
lea rcx, [0x140030460]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140010d21
lea rsi, [0x1400303a0]
lea r8, [0x1400304b5]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x140010ccd
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140010cc0
lea rcx, [0x140030460]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x140010dc3
lea rcx, [0x140010a70]
mov qword [0x1400303a0], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x1400303a0]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x56
lea rdx, [0x140030460]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x1400304b5]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x140010df6
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140010d73
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140010d60
mov rax, rdx
mov qword [0x1400303a0], rax
lea rsi, [0x1400303a0]
jmp 0x140010d99
cmp rdx, rsi
je 0x140010cff
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140010d90
cmp rdx, rsi
je 0x140010cff
mov qword [rdx + 8], rsi
lea rcx, [0x140010a70]
call sub.msvcrt.dll__onexit
jmp 0x140010cff
lea rcx, [0x140028780]
call fcn.1400109e0
xor eax, eax
jmp 0x140010d18
lea rcx, [0x140028758]
call fcn.1400109e0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, [0x1400287a8]
call fcn.1400109e0
xor eax, eax
jmp 0x140010d7f
Function at 0x140013480
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x140028fd0]
mov rax, qword [rsi]
test rax, rax
je 0x140013510
cmp qword [rax + 0x30], 0
jne 0x140013530
lea rbx, [0x140024468]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x1400134e0
cmp qword [rax + 0x30], 0
jne 0x140013500
lea rdx, [0x140024468]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x1400238e0
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140018380
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x1400134c2
test rax, rax
jne 0x140013500
call fcn.140018380
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x1400134d0
call fcn.140018380
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x1400134a0
test rax, rax
jne 0x140013530
call fcn.140018380
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x1400134ab
call sub.msvcrt.dll_abort
nop

Function at 0x140013540
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 + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
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 + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 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 0x140013652
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14001362a
add rax, 1
cmp rax, 0x6b
je 0x140013647
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140013620
cmp edx, 0x6a
je 0x140013647
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14001363b
Function at 0x140018200
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140018220
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x140018268
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140018214
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140018255
Function at 0x140018380
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x140030620]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x1400183a3
lea rax, [0x140030628]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x1400183eb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x1400183e8
lea rax, [0x140030660]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x14001841b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140018418
xor ecx, ecx
mov byte [0x140030679], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x140030682], rdx
lea r8, [0x140030620]
lea rbx, [0x14003067a]
mov qword [0x140030692], rdx
mov qword [0x1400306a2], rdx
mov qword [0x1400306b2], rdx
xor edx, edx
mov qword [0x14003067a], rax
mov qword [0x14003068a], rax
mov qword [0x14003069a], rax
mov qword [0x1400306aa], rax
mov byte [0x1400306ba], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400185f6
lea rcx, [0x140030660]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140018541
lea rsi, [0x140030560]
lea r8, [0x1400306ba]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x1400184ed
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x1400184e0
lea rcx, [0x140030660]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x1400185e3
lea rcx, [0x140018290]
mov qword [0x140030560], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x140030560]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x140030660]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x1400306ba]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x140018616
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140018593
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140018580
mov rax, rdx
mov qword [0x140030560], rax
lea rsi, [0x140030560]
jmp 0x1400185b9
cmp rdx, rsi
je 0x14001851f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x1400185b0
cmp rdx, rsi
je 0x14001851f
mov qword [rdx + 8], rsi
lea rcx, [0x140018290]
call sub.msvcrt.dll__onexit
jmp 0x14001851f
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.140018200
xor eax, eax
jmp 0x140018538
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.140018200
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, str.failed_to_get_string_from_atom_n
call fcn.140018200
xor eax, eax
jmp 0x14001859f