joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f2b20
Capabilities:
Get geographical location

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

Function at 0x1400f4018
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x2962018e0
Capabilities:
Check if file exists
Execute command
Get file attributes

Disassembly:
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x60
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x296201910
mov eax, 1
add rsp, 0x60
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
lea rbx, [rsp + 0x30]
lea r14, [rsp + 0x20]
mov qword [rsp + 0x20], rbx
test r12, r12
je 0x296201a72
mov rcx, r12
call sub.msvcrt.dll_strlen
mov qword [rsp + 0x40], rax
mov rsi, rax
cmp rax, 0xf
ja 0x296201a18
cmp rax, 1
jne 0x296201a60
movzx edx, byte [r12]
lea r13, [rsp + 0x40]
mov byte [rsp + 0x30], dl
mov rdx, rbx
mov qword [rsp + 0x28], rax
lea r12, [rsp + 0x50]
mov rcx, r13
mov byte [rdx + rax], 0
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x40], r12
lea rdx, [rax + 6]
mov byte [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
call fcn.2962a8f30
movabs rax, 0x3fffffffffffffff
sub rax, qword [rsp + 0x48]
cmp rax, 5
jbe 0x296201a7e
mov r8d, 6
lea rdx, str.mkdir
mov rcx, r13
call fcn.2962a90e0
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
mov rcx, r13
call fcn.2962a90e0
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_system
mov rcx, qword [rsp + 0x40]
cmp rcx, r12
je 0x2962019f1
mov rax, qword [rsp + 0x50]
lea rdx, [rax + 1]
call fcn.2962bbcd0
mov rcx, qword [rsp + 0x20]
cmp rcx, rbx
je 0x2962018fa
mov rax, qword [rsp + 0x30]
lea rdx, [rax + 1]
call fcn.2962bbcd0
jmp 0x2962018fa
lea r13, [rsp + 0x40]
mov rcx, r14
xor r8d, r8d
mov rdx, r13
call fcn.2962a9220
mov qword [rsp + 0x20], rax
mov rcx, rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov rdx, r12
mov r8, rsi
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x20]
jmp 0x29620195d
test rax, rax
jne 0x296201a8a
mov rdx, rbx
lea r13, [rsp + 0x40]
jmp 0x29620195d
lea rcx, [0x296d13040]
call fcn.2962bcdb0
lea rcx, [0x296d1306a]
call fcn.2962bcea0
mov rcx, rbx
lea r13, [rsp + 0x40]
jmp 0x296201a3d

Function at 0x296201ac0
Capabilities:
Set file attributes

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x130
xor eax, eax
mov rsi, rcx
lea rdi, [rsp + 0x30]
mov r12d, edx
mov ecx, 0x1e
rep stosq qword [rdi], rax
mov rcx, rsi
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov dword [rdi], 0
call sub.msvcrt.dll_strlen
mov rdi, rax
test rax, rax
je 0x296201b6c
mov r13, qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor ebx, ebx
lea rbp, [rsp + 0x20]
mov r14, r13
jmp 0x296201b31
add rbx, 1
cmp rdi, rbx
je 0x296201b6c
cmp byte [rsi + rbx], 0x5c
jne 0x296201b28
mov r8, rbx
mov rdx, rsi
mov rcx, rbp
call sub.msvcrt.dll_strncpy
test r12d, r12d
je 0x296201b58
mov rcx, rbp
call sub.msvcrt.dll_strlen
cmp rax, 0x19
ja 0x296201b88
add rbx, 1
mov edx, pe_nt_image_headers64
mov rcx, rbp
call r13
cmp rdi, rbx
jne 0x296201b31
mov eax, 1
add rsp, 0x130
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov edx, 7
mov rcx, rbp
call r14
jmp 0x296201b28
Function at 0x296201d10
Capabilities:
Encode data using xor
Get hostname

Disassembly:
push r13
push r12
push rdi
push rbx
sub rsp, 0x258
xor eax, eax
mov r12, rcx
lea rdi, [rsp + 0x40]
mov ecx, 0x1e
mov dword [rsp + 0x20], 0x104
rep stosq qword [rdi], rax
mov ecx, 0x1e
lea rbx, [rsp + 0x30]
mov qword [rsp + 0x27], 0
mov byte [rsp + 0x2f], 0
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x140], 0
mov qword [rsp + 0x148], 0
mov dword [rdi], 0
lea rdi, [rsp + 0x150]
rep stosq qword [rdi], rax
mov rcx, rbx
mov dword [rdi], 0
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov r9d, dword [rsp + 0x20]
test r9d, r9d
je 0x296201e20
add r9, rbx
mov rdx, rbx
mov ecx, 0x4e67c6a7
nop dword [rax + rax]
mov eax, ecx
mov r8d, ecx
add rdx, 1
shr r8d, 2
shl eax, 5
add eax, r8d
movsx r8d, byte [rdx - 1]
add eax, r8d
xor ecx, eax
cmp rdx, r9
jne 0x296201db8
lea r13, [rsp + 0x27]
mov r8d, 0x10
mov rdx, r13
call fcn.296201ba0
lea r8, [rsp + 0x140]
mov rdx, r13
mov rcx, r8
call sub.msvcrt.dll_strcpy
mov rcx, r12
mov rdx, rax
call sub.msvcrt.dll_strcpy
nop
add rsp, 0x258
pop rbx
pop rdi
pop r12
pop r13
ret
mov ecx, 0x4e67c6a7
jmp 0x296201dda

Function at 0x296201e30
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x50
xor r9d, r9d
mov dword [rsp + 0x4c], 0
mov r13, rdx
mov ebx, r8d
mov edx, 0x40000000
mov qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
xor eax, eax
cmp r12, 0xffffffffffffffff
je 0x296201eae
mov rcx, r12
lea r9, [rsp + 0x4c]
mov r8d, ebx
mov rdx, r13
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r12
test eax, eax
je 0x296201ea6
cmp dword [rsp + 0x4c], ebx
je 0x296201ec0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x50
pop rbx
pop r12
pop r13
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x50
pop rbx
pop r12
pop r13
ret
Function at 0x2962026c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rsi
mov ecx, 0x12c
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
call rsi
sub eax, 0x12c
sub eax, ebx
movsxd rdx, eax
shr rdx, 0x20
xor eax, edx
sub eax, edx
cmp eax, 0x64
setg al
movzx eax, al
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x29620d3b0
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.2962235d0
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.2962235d0
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 0x29620d420
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x296d40084]
mov r12, rcx
test ebx, ebx
jle 0x29620d550
mov rax, qword [0x296d40088]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x29620d46c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x29620d4f3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x29620d450
mov rcx, r12
call fcn.29620dba0
mov rsi, rax
test rax, rax
je 0x29620d572
mov rax, qword [0x296d40088]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.29620dcd0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x296d40088]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x29620d557
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x29620d4ec
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x29620d500
add dword [0x296d40084], 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 [0x296d40088]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x29620d4ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.29620d3b0
nop dword [rax]
xor ebx, ebx
jmp 0x29620d477
mov rax, qword [0x296d40088]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.29620d3b0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.29620d3b0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x29620d810
Capabilities:
Get thread local storage value

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

Disassembly:
mov rdx, qword [0x296d195a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x29620dbc0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x29620dbc8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x29620dbc0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x29620dc15
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 0x29620dc0c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x29620dbc0
add rax, 0x28
cmp rax, r9
jne 0x29620dbf8
xor eax, eax
ret

Function at 0x29620dc20
Capabilities:
Parse pe header

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

Function at 0x29620dcd0
Capabilities:
Parse pe header

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

Function at 0x29620deb0
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 0x29620ded0
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 0x29620df18
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x29620dec4
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 0x29620df05
Function at 0x29620e030
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x296d401d0]
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 0x29620e053
lea rax, [0x296d401d8]
mov ecx, 0x5f
lea rdx, str.__eh_shmem3_gcc_tdm_
lea r8, [rax + 0x15]
jmp 0x29620e09b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x29620e098
lea rax, [0x296d40200]
mov ecx, 0x5f
lea rdx, str.__eh_shmem3_gcc_tdm_
lea r8, [rax + 0x14]
jmp 0x29620e0cb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x29620e0c8
xor ecx, ecx
mov byte [0x296d40214], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x296d4021d], rdx
lea r8, [0x296d401d0]
lea rbx, [0x296d40215]
mov qword [0x296d4022d], rdx
mov qword [0x296d4023d], rdx
mov qword [0x296d4024d], rdx
xor edx, edx
mov qword [0x296d40215], rax
mov qword [0x296d40225], rax
mov qword [0x296d40235], rax
mov qword [0x296d40245], rax
mov byte [0x296d40255], 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 0x29620e2a6
lea rcx, [0x296d40200]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x29620e1f1
lea rsi, [0x296d40140]
lea r8, [0x296d40255]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x29620e19d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x29620e190
lea rcx, [0x296d40200]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x29620e293
lea rcx, [0x29620df40]
mov qword [0x296d40140], 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 [0x296d40140]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x56
lea rdx, [0x296d40200]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x296d40255]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x29620e2c6
nop dword [rax]
cmp byte [rax], 0x41
jne 0x29620e243
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x29620e230
mov rax, rdx
mov qword [0x296d40140], rax
lea rsi, [0x296d40140]
jmp 0x29620e269
cmp rdx, rsi
je 0x29620e1cf
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x29620e260
cmp rdx, rsi
je 0x29620e1cf
mov qword [rdx + 8], rsi
lea rcx, [0x29620df40]
call sub.msvcrt.dll__onexit
jmp 0x29620e1cf
lea rcx, [0x296d17f70]
call fcn.29620deb0
xor eax, eax
jmp 0x29620e1e8
lea rcx, [0x296d17f48]
call fcn.29620deb0
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, [0x296d17f98]
call fcn.29620deb0
xor eax, eax
jmp 0x29620e24f
Function at 0x296211db0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x296d195e0]
mov rax, qword [rsi]
test rax, rax
je 0x296211e40
cmp qword [rax + 0x30], 0
jne 0x296211e60
lea rbx, [0x296d0fe98]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x296211e10
cmp qword [rax + 0x30], 0
jne 0x296211e30
lea rdx, [0x296d0fe98]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x2962bd6c0
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.296217080
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x296211df2
test rax, rax
jne 0x296211e30
call fcn.296217080
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x296211e00
call fcn.296217080
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x296211dd0
test rax, rax
jne 0x296211e60
call fcn.296217080
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x296211ddb
call sub.msvcrt.dll_abort
nop

Function at 0x296211e70
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 0x296211f82
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x296211f5a
add rax, 1
cmp rax, 0x6b
je 0x296211f77
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x296211f50
cmp edx, 0x6a
je 0x296211f77
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 0x296211f6b
Function at 0x296216f00
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 0x296216f20
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 0x296216f68
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x296216f14
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 0x296216f55
Function at 0x296217080
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x296d403a0]
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 0x2962170a3
lea rax, [0x296d403a8]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x2962170eb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x2962170e8
lea rax, [0x296d403e0]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x29621711b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x296217118
xor ecx, ecx
mov byte [0x296d403f9], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x296d40402], rdx
lea r8, [0x296d403a0]
lea rbx, [0x296d403fa]
mov qword [0x296d40412], rdx
mov qword [0x296d40422], rdx
mov qword [0x296d40432], rdx
xor edx, edx
mov qword [0x296d403fa], rax
mov qword [0x296d4040a], rax
mov qword [0x296d4041a], rax
mov qword [0x296d4042a], rax
mov byte [0x296d4043a], 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 0x2962172f6
lea rcx, [0x296d403e0]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x296217241
lea rsi, [0x296d402e0]
lea r8, [0x296d4043a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x2962171ed
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x2962171e0
lea rcx, [0x296d403e0]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x2962172e3
lea rcx, [0x296216f90]
mov qword [0x296d402e0], 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 [0x296d402e0]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x296d403e0]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x296d4043a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x296217316
nop dword [rax]
cmp byte [rax], 0x41
jne 0x296217293
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x296217280
mov rax, rdx
mov qword [0x296d402e0], rax
lea rsi, [0x296d402e0]
jmp 0x2962172b9
cmp rdx, rsi
je 0x29621721f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x2962172b0
cmp rdx, rsi
je 0x29621721f
mov qword [rdx + 8], rsi
lea rcx, [0x296216f90]
call sub.msvcrt.dll__onexit
jmp 0x29621721f
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.296216f00
xor eax, eax
jmp 0x296217238
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.296216f00
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.296216f00
xor eax, eax
jmp 0x29621729f
Function at 0x2962826f0
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 0x296282717
call rbp
cmp dword [rax], 4
jne 0x296282734
mov rcx, rdi
call fcn.296282510
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x296282710
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x180122c20
Capabilities:
Get system information on windows

Disassembly:
mov word [rsp + 8], cx
sub rsp, 0x78
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
movzx eax, word [rsp + 0x80]
test eax, eax
jne 0x180122c56
xor eax, eax
jmp 0x180122d90
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, 0x110
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180122d87
mov r8d, 0x110
xor edx, edx
mov rcx, qword [rsp + 0x50]
call sub.msvcrt.dll_memset
movzx eax, word [rsp + 0x80]
cmp eax, 8
jg 0x180122caf
movzx eax, word [rsp + 0x80]
add eax, 8
mov word [rsp + 0x80], ax
movzx eax, word [rsp + 0x80]
mov ecx, dword [rsp + 0x24]
sub rcx, 0x20
mov r9d, eax
mov r8d, 8
mov edx, ecx
mov rcx, qword [rsp + 0x50]
call fcn.1801236f0
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jne 0x180122d7a
mov eax, dword [rsp + 0x24]
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x180122d1d
mov rcx, qword [rsp + 0x50]
call fcn.180123c50
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.msvcrt.dll_free]
xor eax, eax
jmp 0x180122d90
mov rax, qword [rsp + 0x50]
add rax, 0x90
mov rcx, rax
call fcn.18010d590
mov rax, qword [rsp + 0x50]
add rax, 0xe8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0xd8], rcx
mov rax, qword [rsp + 0x50]
movzx ecx, word [rsp + 0x80]
mov word [rax + 0xd0], cx
mov rax, qword [rsp + 0x50]
mov dword [rax + 0xe0], 0
jmp 0x180122d85
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.msvcrt.dll_free]
jmp 0x180122d8b
xor eax, eax
jmp 0x180122d90
mov rax, qword [rsp + 0x50]
add rsp, 0x78
ret

Function at 0x140001ce8
Capabilities:
Parse pe header

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