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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.1401743c0
test rax, rax
je 0x140193720
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r15, r14
lea r12, [rsi + 0x28]
mov word [rsp + 0x40], cx
mov r13, rax
lea rbp, [rsp + 0x3a]
mov eax, 0x4e
lea rdi, [rsp + 0x3c]
nop word [rax + rax]
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, rsi
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1401fe754
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x140193686
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140193678
test rbx, rbx
je 0x1401fe754
mov word [rax], dx
add rsi, 1
xor edx, edx
add r15, 2
mov word [rax + 2], dx
movzx eax, byte [rsi]
test al, al
jne 0x140193638
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rcx, qword [0x1402306a0]
mov rsi, rax
mov rax, qword [0x140213700]
mov rbx, qword [rax + 0x1c0]
test rcx, rcx
je 0x140193795
mov rdx, rbx
call fcn.140164b90
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.1401876e0
mov rdx, qword [rbx]
test edx, edx
js 0x140193702
sub rdx, 1
mov qword [rbx], rdx
je 0x14019377d
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x14022ff60]
lea rsi, [0x14022ff60]
test bl, bl
je 0x140193740
mov rax, qword [0x14022ff68]
lea rsi, [0x14022ff68]
test rax, rax
jne 0x140193702
cmp byte [0x140230182], 0
jne 0x140193756
movzx ecx, bl
call fcn.1401663d0
mov rdx, 0xffffffffffffffff
lea rcx, [0x14022ff80]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x1401937bf
mov edx, dword [rax]
add edx, 1
je 0x140193702
mov dword [rax], edx
jmp 0x140193702
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [sym.imp.python312.dll__Py_Dealloc]
mov rax, qword [rsp + 0x28]
jmp 0x140193702
mov rcx, qword [0x140230618]
mov rdi, qword [rax + 0x1b0]
test rcx, rcx
je 0x1401937ca
mov rdx, rdi
call fcn.140164b90
mov qword [0x1402306a0], rax
mov rcx, rax
jmp 0x1401936d9
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x14020b3db]
call qword [sym.imp.python312.dll_PyImport_ImportModule]
mov qword [0x140230618], rax
mov rcx, rax
test rax, rax
je 0x1401fe754
jmp 0x1401937a8
Function at 0x1401e9f20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x14022ff41], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x1401e9fa8
lea rdx, [0x14020f63a]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1401ea010
mov rbx, qword [0x14022fde0]
jmp 0x1401e9f65
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x1401e9f60
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.1401d9f60
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x14022fde0], rax
mov ebx, dword [rax]
mov qword [0x14022fde0], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x14022fde0], rdx
call fcn.1401e9050
cmp eax, ebx
jne 0x1401ea078
mov byte [0x14022ff41], 1
jmp 0x1401e9f3c
cmp byte [0x14022ff40], 0
jne 0x1401e9f53
mov rbx, qword [sym.imp.python312.dll_PyDict_New]
call rbx
mov qword [0x1402308a8], rax
call rbx
mov qword [0x1402308a0], rax
call rbx
mov qword [0x140230898], rax
call rbx
mov qword [0x140230890], rax
call rbx
mov qword [0x140230888], rax
call rbx
mov qword [0x140230880], rax
call rbx
mov qword [0x140230878], rax
call rbx
mov byte [0x14022ff40], 1
mov qword [0x140230870], rax
jmp 0x1401e9f53
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1401ec480
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1401fdc00
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1401fdc00
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x1401ed152
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140230d68]
test eax, eax
je 0x1401ed1ea
lea rax, [0x140230d40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140230d70]
mov qword [rbp - 8], rax
jmp 0x1401ed1ce
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1401ed1c2
cmp qword [rbp - 0x10], 0
je 0x1401ed1c2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1401ed188
lea rax, [0x140230d40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1401ed1eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1401ed2f0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1401ed318
mov eax, 0
jmp 0x1401ed366
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1401ed341
mov eax, 0
jmp 0x1401ed366
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1401ed361
mov eax, 0
jmp 0x1401ed366
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1401ed36c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1401ed3ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1401ed3e1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1401ed3e1
mov rax, qword [rbp - 8]
jmp 0x1401ed3ff
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1401ed3b4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000adf0
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.140020fd0
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.140020fd0
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 0x14000ae60
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400e90c4]
mov r12, rcx
test ebx, ebx
jle 0x14000af90
mov rax, qword [0x1400e90c8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000aeac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000af33
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x14000ae90
mov rcx, r12
call fcn.14000b800
mov rsi, rax
test rax, rax
je 0x14000afb2
mov rax, qword [0x1400e90c8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.14000b930
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400e90c8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000af97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000af2c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000af40
add dword [0x1400e90c4], 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 [0x1400e90c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000af2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000adf0
nop dword [rax]
xor ebx, ebx
jmp 0x14000aeb7
mov rax, qword [0x1400e90c8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000adf0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14000adf0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000b470
Capabilities:
Get thread local storage value

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

Disassembly:
mov rdx, qword [0x1400c1900]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000b820
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000b828
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000b820
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14000b875
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 0x14000b86c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000b820
add rax, 0x28
cmp rax, r9
jne 0x14000b858
xor eax, eax
ret

Function at 0x14000b880
Capabilities:
Parse pe header

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

Function at 0x14000b930
Capabilities:
Parse pe header

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

Function at 0x14000bb00
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 0x14000bb20
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 0x14000bb68
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x14000bb14
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 0x14000bb55
Function at 0x14000bc80
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x1400e9230]
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 0x14000bca3
lea rax, [0x1400e9238]
mov ecx, 0x5f
lea rdx, str.__eh_shmem3_gcc_tdm_
lea r8, [rax + 0x15]
jmp 0x14000bceb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x14000bce8
lea rax, [0x1400e9260]
mov ecx, 0x5f
lea rdx, str.__eh_shmem3_gcc_tdm_
lea r8, [rax + 0x14]
jmp 0x14000bd1b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x14000bd18
xor ecx, ecx
mov byte [0x1400e9274], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x1400e927d], rdx
lea r8, [0x1400e9230]
lea rbx, [0x1400e9275]
mov qword [0x1400e928d], rdx
mov qword [0x1400e929d], rdx
mov qword [0x1400e92ad], rdx
xor edx, edx
mov qword [0x1400e9275], rax
mov qword [0x1400e9285], rax
mov qword [0x1400e9295], rax
mov qword [0x1400e92a5], rax
mov byte [0x1400e92b5], 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 0x14000bef6
lea rcx, [0x1400e9260]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x14000be41
lea rsi, [0x1400e91a0]
lea r8, [0x1400e92b5]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x14000bded
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x14000bde0
lea rcx, [0x1400e9260]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x14000bee3
lea rcx, [0x14000bb90]
mov qword [0x1400e91a0], 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 [0x1400e91a0]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x56
lea rdx, [0x1400e9260]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x1400e92b5]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x14000bf16
nop dword [rax]
cmp byte [rax], 0x41
jne 0x14000be93
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x14000be80
mov rax, rdx
mov qword [0x1400e91a0], rax
lea rsi, [0x1400e91a0]
jmp 0x14000beb9
cmp rdx, rsi
je 0x14000be1f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x14000beb0
cmp rdx, rsi
je 0x14000be1f
mov qword [rdx + 8], rsi
lea rcx, [0x14000bb90]
call sub.msvcrt.dll__onexit
jmp 0x14000be1f
lea rcx, [0x1400c0300]
call fcn.14000bb00
xor eax, eax
jmp 0x14000be38
lea rcx, [0x1400c02d8]
call fcn.14000bb00
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, [0x1400c0328]
call fcn.14000bb00
xor eax, eax
jmp 0x14000be9f
Function at 0x14000fa00
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1400c1980]
mov rax, qword [rsi]
test rax, rax
je 0x14000fa90
cmp qword [rax + 0x30], 0
jne 0x14000fab0
lea rbx, [0x1400b9088]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x14000fa60
cmp qword [rax + 0x30], 0
jne 0x14000fa80
lea rdx, [0x1400b9088]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x1400b8010
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140014cd0
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x14000fa42
test rax, rax
jne 0x14000fa80
call fcn.140014cd0
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x14000fa50
call fcn.140014cd0
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x14000fa20
test rax, rax
jne 0x14000fab0
call fcn.140014cd0
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x14000fa2b
call sub.msvcrt.dll_abort
nop

Function at 0x14000fac0
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 0x14000fbd2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14000fbaa
add rax, 1
cmp rax, 0x6b
je 0x14000fbc7
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x14000fba0
cmp edx, 0x6a
je 0x14000fbc7
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 0x14000fbbb
Function at 0x140014b50
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 0x140014b70
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 0x140014bb8
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140014b64
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 0x140014ba5
Function at 0x140014cd0
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x1400e9400]
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 0x140014cf3
lea rax, [0x1400e9408]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x140014d3b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140014d38
lea rax, [0x1400e9440]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x140014d6b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140014d68
xor ecx, ecx
mov byte [0x1400e9459], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x1400e9462], rdx
lea r8, [0x1400e9400]
lea rbx, [0x1400e945a]
mov qword [0x1400e9472], rdx
mov qword [0x1400e9482], rdx
mov qword [0x1400e9492], rdx
xor edx, edx
mov qword [0x1400e945a], rax
mov qword [0x1400e946a], rax
mov qword [0x1400e947a], rax
mov qword [0x1400e948a], rax
mov byte [0x1400e949a], 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 0x140014f46
lea rcx, [0x1400e9440]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140014e91
lea rsi, [0x1400e9340]
lea r8, [0x1400e949a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x140014e3d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140014e30
lea rcx, [0x1400e9440]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x140014f33
lea rcx, [0x140014be0]
mov qword [0x1400e9340], 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 [0x1400e9340]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x1400e9440]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x1400e949a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x140014f66
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140014ee3
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140014ed0
mov rax, rdx
mov qword [0x1400e9340], rax
lea rsi, [0x1400e9340]
jmp 0x140014f09
cmp rdx, rsi
je 0x140014e6f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140014f00
cmp rdx, rsi
je 0x140014e6f
mov qword [rdx + 8], rsi
lea rcx, [0x140014be0]
call sub.msvcrt.dll__onexit
jmp 0x140014e6f
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.140014b50
xor eax, eax
jmp 0x140014e88
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.140014b50
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.140014b50
xor eax, eax
jmp 0x140014eef
Function at 0x14007d260
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 0x14007d287
call rbp
cmp dword [rax], 4
jne 0x14007d2a4
mov rcx, rdi
call fcn.14007d080
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x14007d280
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret