joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140054124
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14007f180]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, r8
mov rdi, rdx
mov ecx, dword [0x140086270]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x140086180], ecx
jg 0x140054206
mov eax, ebx
cmp rbx, rax
jne 0x1400541c8
xor ecx, ecx
test rbx, rbx
setne cl
xor eax, eax
test ebx, ebx
setne al
cmp ecx, eax
jne 0x1400541c8
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
mov rcx, qword [0x140086178]
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x140054249
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14005c750
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
mov ecx, 0x5b6
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.GenerateBlock_size
lea rcx, [rsp + 0x20]
call fcn.14000c000
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140053e54
lea rdx, [0x14007b8c8]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [0x140086180]
call fcn.14005ce14
cmp dword [0x140086180], 0xffffffff
jne 0x140054170
lea rcx, [0x140086178]
call fcn.140053d68
lea rcx, [0x1400607ec]
call fcn.14005caa4
nop
lea rcx, [0x140086180]
call fcn.14005cda8
jmp 0x140054170
mov ecx, eax
call fcn.14005428c
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x140067268]
lea rcx, [rsp + 0x20]
call fcn.14000c000
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140053e54
lea rdx, [0x14007b8c8]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140055690
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
xor r14d, r14d
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
cmp r8, 8
jb 0x140055703
mov rbp, r8
shr rbp, 3
imul rax, rbp, 0xfffffffffffffff8
add rdi, rax
mov r8d, 8
lea rcx, [rsp + 0x58]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 8
lea rcx, [rsp + 0x50]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x50]
add rsi, 8
xor rax, qword [rsp + 0x58]
add rbx, 8
or r14, rax
sub rbp, 1
jne 0x1400556c2
mov rcx, r14
shr rcx, 0x20
or ecx, r14d
mov edx, ecx
mov eax, ecx
shr edx, 8
or edx, ecx
shr eax, 0x10
and edx, 0xff00
or edx, eax
movzx eax, cl
shr edx, 8
or edx, eax
test rdi, rdi
je 0x140055745
sub rsi, rbx
movzx ecx, byte [rsi + rbx]
movzx eax, byte [rbx]
inc rbx
xor ecx, eax
or edx, ecx
sub rdi, 1
jne 0x140055731
mov rbx, qword [rsp + 0x40]
test edx, edx
mov rbp, qword [rsp + 0x48]
sete al
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140055760
Capabilities:
Encode data using xor

Disassembly:
test r9, r9
je 0x140055826
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbx, r9
mov r15d, 4
mov rdi, r8
mov rsi, rdx
mov r14, rcx
cmp rbx, r15
jb 0x1400557f1
mov rbp, rbx
shr rbp, 2
imul rax, rbp, 0xfffffffffffffffc
add rbx, rax
mov r8, r15
lea rcx, [rsp + 0x20]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov r8, r15
lea rcx, [rsp + 0x68]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x68]
lea rdx, [rsp + 0x24]
xor eax, dword [rsp + 0x20]
mov r8, r15
mov rcx, r14
mov dword [rsp + 0x24], eax
call sub.VCRUNTIME140.dll_memcpy
add r14, r15
add rsi, r15
add rdi, r15
sub rbp, 1
jne 0x1400557a6
test rbx, rbx
je 0x14005580e
sub rsi, rdi
sub r14, rdi
mov al, byte [rsi + rdi]
xor al, byte [rdi]
mov byte [r14 + rdi], al
inc rdi
sub rbx, 1
jne 0x1400557fc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x140055828
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x1400558d5
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rbx, r8
mov r14d, 4
mov rsi, rdx
mov rdi, rcx
cmp rbx, r14
jb 0x1400558ad
mov rbp, rbx
shr rbp, 2
imul rax, rbp, 0xfffffffffffffffc
add rbx, rax
mov r8, r14
lea rcx, [rsp + 0x68]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov r8, r14
lea rcx, [rsp + 0x60]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x60]
lea rdx, [rsp + 0x20]
xor eax, dword [rsp + 0x68]
mov r8, r14
mov rcx, rdi
mov dword [rsp + 0x20], eax
call sub.VCRUNTIME140.dll_memcpy
add rdi, r14
add rsi, r14
sub rbp, 1
jne 0x140055865
test rbx, rbx
je 0x1400558c3
sub rsi, rdi
mov al, byte [rsi + rdi]
xor byte [rdi], al
inc rdi
sub rbx, 1
jne 0x1400558b5
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14005b7f4
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movdqu xmm1, xmmword [rcx]
mov r9d, 4
shl edx, 2
mov r8, rcx
movdqu xmm0, xmmword [rcx + rdx*4]
movdqu xmmword [rcx], xmm0
movdqu xmmword [rcx + rdx*4], xmm1
add edx, 0xfffffffc
cmp edx, r9d
jbe 0x14005b843
aesimc xmm0, xmmword [r8 + rdx*4]
mov ecx, r9d
add r9d, 4
aesimc xmm1, xmmword [r8 + rcx*4]
movdqu xmmword [r8 + rcx*4], xmm0
movdqu xmmword [r8 + rdx*4], xmm1
add edx, 0xfffffffc
cmp r9d, edx
jb 0x14005b81a
mov eax, r9d
aesimc xmm0, xmmword [r8 + rax*4]
movdqu xmmword [r8 + rax*4], xmm0
ret

Function at 0x14005bbe4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14005bc1e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14005bc23
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14005bc6c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140068ad0]
cmp byte [rcx + rax], 0
je 0x14005bc6c
dec r8
sub rdx, 1
jne 0x14005bc52
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14005d51c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005d566
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005d566
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005d566
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005d566
cmp dword [rcx + 0x84], 0xe
jbe 0x14005d566
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14005d568
xor al, al
add rsp, 0x28
ret
Function at 0x140065610
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14006561d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14006562d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140065615
lea eax, [rcx + 1]
jmp 0x14006563b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14006564e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140065634
sub eax, 3
jb 0x14006566e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400656bd
sar eax, 1
movsxd rbp, eax
jb 0x1400656a4
jmp 0x14006567c
add ebx, ebx
jne 0x14006567a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400656a4
inc ecx
add ebx, ebx
jne 0x14006568a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400656a4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14006569d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14006568c
add ecx, 2
jmp 0x1400656a9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400655d2
jmp 0x14006561d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2d000
mov dl, 0xe
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14006570d
cmp rsi, rcx
jae 0x140065715
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400656f4
cmp al, 0x8f
ja 0x1400656f4
cmp byte [rsi - 2], 0xf
je 0x1400656fa
sub al, 0xe8
cmp al, 1
ja 0x1400656de
cmp rsi, rcx
jae 0x140065715
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400656e4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140065715
lodsb al, byte [rsi]
jmp 0x1400656f4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x61000]
mov eax, dword [rdi]
or eax, eax
je 0x140065772
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x65b30]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140065722
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14006576c
mov qword [rbx], rax
add rbx, 8
jmp 0x140065742
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400657ac
cmp al, 0xef
ja 0x14006579e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14006577e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14006578d
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x227]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140065800
sub rsp, 0xffffffffffffff80
jmp 0x140013ff0
Function at 0x14000add0
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.140021020
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.140021020
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 0x14000ae40
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400ec0b4]
mov r12, rcx
test ebx, ebx
jle 0x14000af70
mov rax, qword [0x1400ec0b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000ae8c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000af13
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x14000ae70
mov rcx, r12
call fcn.14000b7e0
mov rsi, rax
test rax, rax
je 0x14000af92
mov rax, qword [0x1400ec0b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.14000b910
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400ec0b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.DLL_VirtualQuery]
test rax, rax
je 0x14000af77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000af0c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000af20
add dword [0x1400ec0b4], 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 [0x1400ec0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
test eax, eax
jne 0x14000af0c
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000add0
nop dword [rax]
xor ebx, ebx
jmp 0x14000ae97
mov rax, qword [0x1400ec0b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000add0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14000add0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000b450
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1400ec120]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rbx, qword [0x1400ec100]
test rbx, rbx
je 0x14000b4a4
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 0x14000b49b
test r12, r12
je 0x14000b49b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000b480
lea rcx, [0x1400ec120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
Function at 0x14000b7e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400c4d30]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000b800
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000b808
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000b800
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14000b855
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 0x14000b84c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000b800
add rax, 0x28
cmp rax, r9
jne 0x14000b838
xor eax, eax
ret

Function at 0x14000b860
Capabilities:
Parse pe header

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

Function at 0x14000b910
Capabilities:
Parse pe header

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

Function at 0x14000bae0
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 0x14000bb00
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 0x14000bb48
call qword [sym.imp.KERNEL32.DLL_IsDebuggerPresent]
test eax, eax
je 0x14000baf4
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 0x14000bb35
Function at 0x14000bc60
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
lea rdx, [0x1400ec230]
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 0x14000bc83
lea rax, [0x1400ec238]
mov ecx, 0x5f
lea rdx, str.__eh_shmem3_gcc_tdm_
lea r8, [rax + 0x15]
jmp 0x14000bccb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x14000bcc8
lea rax, [0x1400ec260]
mov ecx, 0x5f
lea rdx, str.__eh_shmem3_gcc_tdm_
lea r8, [rax + 0x14]
jmp 0x14000bcfb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x14000bcf8
xor ecx, ecx
mov byte [0x1400ec274], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x1400ec27d], rdx
lea r8, [0x1400ec230]
lea rbx, [0x1400ec275]
mov qword [0x1400ec28d], rdx
mov qword [0x1400ec29d], rdx
mov qword [0x1400ec2ad], rdx
xor edx, edx
mov qword [0x1400ec275], rax
mov qword [0x1400ec285], rax
mov qword [0x1400ec295], rax
mov qword [0x1400ec2a5], rax
mov byte [0x1400ec2b5], 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 0x14000bed6
lea rcx, [0x1400ec260]
call qword [sym.imp.KERNEL32.DLL_FindAtomA]
test ax, ax
jne 0x14000be21
lea rsi, [0x1400ec1a0]
lea r8, [0x1400ec2b5]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x14000bdcd
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x14000bdc0
lea rcx, [0x1400ec260]
call qword [sym.imp.KERNEL32.DLL_AddAtomA]
test ax, ax
je 0x14000bec3
lea rcx, [0x14000bb70]
mov qword [0x1400ec1a0], 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 [0x1400ec1a0]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x56
lea rdx, [0x1400ec260]
movzx ecx, ax
call qword [sym.imp.KERNEL32.DLL_GetAtomNameA]
lea r8, [0x1400ec2b5]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x14000bef6
nop dword [rax]
cmp byte [rax], 0x41
jne 0x14000be73
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x14000be60
mov rax, rdx
mov qword [0x1400ec1a0], rax
lea rsi, [0x1400ec1a0]
jmp 0x14000be99
cmp rdx, rsi
je 0x14000bdff
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x14000be90
cmp rdx, rsi
je 0x14000bdff
mov qword [rdx + 8], rsi
lea rcx, [0x14000bb70]
call sub.msvcrt.dll__onexit
jmp 0x14000bdff
lea rcx, [0x1400c3720]
call fcn.14000bae0
xor eax, eax
jmp 0x14000be18
lea rcx, [0x1400c36f8]
call fcn.14000bae0
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, [0x1400c3748]
call fcn.14000bae0
xor eax, eax
jmp 0x14000be7f
Function at 0x14000f9e0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1400c4db0]
mov rax, qword [rsi]
test rax, rax
je 0x14000fa70
cmp qword [rax + 0x30], 0
jne 0x14000fa90
lea rbx, [0x1400bb088]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.DLL_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x14000fa40
cmp qword [rax + 0x30], 0
jne 0x14000fa60
lea rdx, [0x1400bb088]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x1400ba600
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140014cb0
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x14000fa22
test rax, rax
jne 0x14000fa60
call fcn.140014cb0
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x14000fa30
call fcn.140014cb0
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x14000fa00
test rax, rax
jne 0x14000fa90
call fcn.140014cb0
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x14000fa0b
call sub.msvcrt.dll_abort
nop

Function at 0x14000faa0
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 0x14000fbb2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14000fb8a
add rax, 1
cmp rax, 0x6b
je 0x14000fba7
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x14000fb80
cmp edx, 0x6a
je 0x14000fba7
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 0x14000fb9b
Function at 0x140014b30
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 0x140014b50
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 0x140014b98
call qword [sym.imp.KERNEL32.DLL_IsDebuggerPresent]
test eax, eax
je 0x140014b44
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 0x140014b85
Function at 0x140014cb0
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
lea rdx, [0x1400ec400]
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 0x140014cd3
lea rax, [0x1400ec408]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x140014d1b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140014d18
lea rax, [0x1400ec440]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x140014d4b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140014d48
xor ecx, ecx
mov byte [0x1400ec459], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x1400ec462], rdx
lea r8, [0x1400ec400]
lea rbx, [0x1400ec45a]
mov qword [0x1400ec472], rdx
mov qword [0x1400ec482], rdx
mov qword [0x1400ec492], rdx
xor edx, edx
mov qword [0x1400ec45a], rax
mov qword [0x1400ec46a], rax
mov qword [0x1400ec47a], rax
mov qword [0x1400ec48a], rax
mov byte [0x1400ec49a], 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 0x140014f26
lea rcx, [0x1400ec440]
call qword [sym.imp.KERNEL32.DLL_FindAtomA]
test ax, ax
jne 0x140014e71
lea rsi, [0x1400ec340]
lea r8, [0x1400ec49a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x140014e1d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140014e10
lea rcx, [0x1400ec440]
call qword [sym.imp.KERNEL32.DLL_AddAtomA]
test ax, ax
je 0x140014f13
lea rcx, [0x140014bc0]
mov qword [0x1400ec340], 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 [0x1400ec340]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x1400ec440]
movzx ecx, ax
call qword [sym.imp.KERNEL32.DLL_GetAtomNameA]
lea r8, [0x1400ec49a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x140014f46
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140014ec3
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140014eb0
mov rax, rdx
mov qword [0x1400ec340], rax
lea rsi, [0x1400ec340]
jmp 0x140014ee9
cmp rdx, rsi
je 0x140014e4f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140014ee0
cmp rdx, rsi
je 0x140014e4f
mov qword [rdx + 8], rsi
lea rcx, [0x140014bc0]
call sub.msvcrt.dll__onexit
jmp 0x140014e4f
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.140014b30
xor eax, eax
jmp 0x140014e68
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.140014b30
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.140014b30
xor eax, eax
jmp 0x140014ecf