joyce8/EMBER2024-capa huggingface dataset:
Function at 0x281b81550
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.281b97850
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.281b97850
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 0x281b815c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x281ccd264]
mov r12, rcx
test ebx, ebx
jle 0x281b816f0
mov rax, qword [0x281ccd268]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x281b8160c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x281b81693
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x281b815f0
mov rcx, r12
call fcn.281b81d40
mov rsi, rax
test rax, rax
je 0x281b81712
mov rax, qword [0x281ccd268]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.281b81e70
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x281ccd268]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x281b816f7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x281b8168c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x281b816a0
add dword [0x281ccd264], 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 [0x281ccd268]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x281b8168c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.281b81550
nop dword [rax]
xor ebx, ebx
jmp 0x281b81617
mov rax, qword [0x281ccd268]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.281b81550
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.281b81550
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x281b819b0
Capabilities:
Get thread local storage value

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

Disassembly:
mov rdx, qword [0x281ca4830]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x281b81d60
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x281b81d68
ret
cmp word [r8 + 0x18], 0x20b
jne 0x281b81d60
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x281b81db5
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 0x281b81dac
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x281b81d60
add rax, 0x28
cmp rax, r9
jne 0x281b81d98
xor eax, eax
ret

Function at 0x281b81dc0
Capabilities:
Parse pe header

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

Function at 0x281b81e70
Capabilities:
Parse pe header

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

Function at 0x281b82050
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 0x281b82070
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 0x281b820b8
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x281b82064
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 0x281b820a5
Function at 0x281b821d0
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x281ccd3b0]
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 0x281b821f3
lea rax, [0x281ccd3b8]
mov ecx, 0x5f
lea rdx, str.__eh_shmem3_gcc_tdm_
lea r8, [rax + 0x15]
jmp 0x281b8223b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x281b82238
lea rax, [0x281ccd3e0]
mov ecx, 0x5f
lea rdx, str.__eh_shmem3_gcc_tdm_
lea r8, [rax + 0x14]
jmp 0x281b8226b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x281b82268
xor ecx, ecx
mov byte [0x281ccd3f4], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x281ccd3fd], rdx
lea r8, [0x281ccd3b0]
lea rbx, [0x281ccd3f5]
mov qword [0x281ccd40d], rdx
mov qword [0x281ccd41d], rdx
mov qword [0x281ccd42d], rdx
xor edx, edx
mov qword [0x281ccd3f5], rax
mov qword [0x281ccd405], rax
mov qword [0x281ccd415], rax
mov qword [0x281ccd425], rax
mov byte [0x281ccd435], 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 0x281b82446
lea rcx, [0x281ccd3e0]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x281b82391
lea rsi, [0x281ccd320]
lea r8, [0x281ccd435]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x281b8233d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x281b82330
lea rcx, [0x281ccd3e0]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x281b82433
lea rcx, [0x281b820e0]
mov qword [0x281ccd320], 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 [0x281ccd320]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x56
lea rdx, [0x281ccd3e0]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x281ccd435]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x281b82466
nop dword [rax]
cmp byte [rax], 0x41
jne 0x281b823e3
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x281b823d0
mov rax, rdx
mov qword [0x281ccd320], rax
lea rsi, [0x281ccd320]
jmp 0x281b82409
cmp rdx, rsi
je 0x281b8236f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x281b82400
cmp rdx, rsi
je 0x281b8236f
mov qword [rdx + 8], rsi
lea rcx, [0x281b820e0]
call sub.msvcrt.dll__onexit
jmp 0x281b8236f
lea rcx, [0x281ca31b0]
call fcn.281b82050
xor eax, eax
jmp 0x281b82388
lea rcx, [0x281ca3188]
call fcn.281b82050
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, [0x281ca31d8]
call fcn.281b82050
xor eax, eax
jmp 0x281b823ef
Function at 0x281b85f50
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x281ca4870]
mov rax, qword [rsi]
test rax, rax
je 0x281b85fe0
cmp qword [rax + 0x30], 0
jne 0x281b86000
lea rbx, [0x281c3b158]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x281b85fb0
cmp qword [rax + 0x30], 0
jne 0x281b85fd0
lea rdx, [0x281c3b158]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x281c3aca0
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.281b8b360
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x281b85f92
test rax, rax
jne 0x281b85fd0
call fcn.281b8b360
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x281b85fa0
call fcn.281b8b360
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x281b85f70
test rax, rax
jne 0x281b86000
call fcn.281b8b360
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x281b85f7b
call sub.msvcrt.dll_abort
nop

Function at 0x281b86010
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 0x281b86122
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x281b860fa
add rax, 1
cmp rax, 0x6b
je 0x281b86117
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x281b860f0
cmp edx, 0x6a
je 0x281b86117
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 0x281b8610b
Function at 0x281b89fe0
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rdi, rcx
mov rsi, rdx
mov rbx, r8
mov rbp, r9
call fcn.281b85c80
mov r12, rax
test rax, rax
je 0x281b8a249
test rdi, rdi
je 0x281b8a01a
mov rax, qword [rax + 0x1d8]
mov qword [rdi], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [r12 + 8], rbp
mov dword [r12 + 0x44], 1
mov rbp, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [r12 + 0xbc], 0
mov r14, r13
mov qword [r12 + 0x28], 0xffffffffffffffff
mov qword [r12 + 0x10], rbx
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call rbp
mov qword [r12 + 0x30], rax
test rax, rax
jne 0x281b8a087
add ebx, 1
cmp ebx, 1
je 0x281b8a190
mov ecx, 0x14
call r14
cmp ebx, 5
jne 0x281b8a055
mov qword [r12 + 0x38], 0xffffffffffffffff
lea r14, [r12 + 0x68]
mov rcx, r14
call fcn.281b848d0
cmp eax, 1
je 0x281b8a28f
cmp qword [r12 + 0x30], 0
mov qword [r12 + 0x68], 0xffffffffffffffff
mov dword [r12], 0xbab1f00d
mov dword [r12 + 0xc0], 0
mov dword [r12 + 0xb8], 0
je 0x281b8a232
xor edx, edx
test rsi, rsi
je 0x281b8a0ff
mov eax, dword [rsi]
mov edx, dword [rsi + 0x10]
mov dword [r12 + 0x44], eax
test al, 8
jne 0x281b8a260
mov eax, dword [rsi + 0x18]
mov dword [r12 + 0xc0], eax
lea r8, [0x281b87680]
mov r9, r12
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov r13, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x281b8a1f0
mov eax, dword [r12 + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x281b8a1c0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [r12 + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [r12 + 0x44], 4
jne 0x281b8a1a0
mov qword [r12 + 0x28], r13
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor ecx, ecx
call r13
jmp 0x281b8a055
mov qword [r12 + 0x28], 0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x281b8a16f
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x281b8a145
mov edx, 0xf
cmp eax, 0xe
jg 0x281b8a145
cmp eax, 2
mov edx, 2
cmovle edx, eax
jmp 0x281b8a145
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x281b8a200
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [r12 + 0x38]
call fcn.281b84750
mov rcx, r14
call fcn.281b848d0
cmp eax, 1
je 0x281b8a28f
mov qword [r12 + 0x68], 0xffffffffffffffff
mov qword [r12 + 0x30], 0
mov qword [r12 + 0x28], 0
test rdi, rdi
je 0x281b8a23e
mov qword [rdi], 0
cmp qword [r12 + 0x1d0], 0
je 0x281b8a280
mov eax, 0xb
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov dword [rsp + 0x3c], edx
call fcn.281b86b30
mov edx, dword [rsp + 0x3c]
mov eax, dword [rax + 0xc0]
mov dword [r12 + 0xc0], eax
jmp 0x281b8a0ff
mov rcx, r12
call fcn.281b861c0
mov eax, 0xb
jmp 0x281b8a24e
call fcn.281b86010
nop
nop word cs:[rax + rax]
Function at 0x281b8b1e0
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 0x281b8b200
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 0x281b8b248
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x281b8b1f4
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 0x281b8b235
Function at 0x281b8b360
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x281ccd580]
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 0x281b8b383
lea rax, [0x281ccd588]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x281b8b3cb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x281b8b3c8
lea rax, [0x281ccd5c0]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x281b8b3fb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x281b8b3f8
xor ecx, ecx
mov byte [0x281ccd5d9], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x281ccd5e2], rdx
lea r8, [0x281ccd580]
lea rbx, [0x281ccd5da]
mov qword [0x281ccd5f2], rdx
mov qword [0x281ccd602], rdx
mov qword [0x281ccd612], rdx
xor edx, edx
mov qword [0x281ccd5da], rax
mov qword [0x281ccd5ea], rax
mov qword [0x281ccd5fa], rax
mov qword [0x281ccd60a], rax
mov byte [0x281ccd61a], 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 0x281b8b5d6
lea rcx, [0x281ccd5c0]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x281b8b521
lea rsi, [0x281ccd4c0]
lea r8, [0x281ccd61a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x281b8b4cd
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x281b8b4c0
lea rcx, [0x281ccd5c0]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x281b8b5c3
lea rcx, [0x281b8b270]
mov qword [0x281ccd4c0], 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 [0x281ccd4c0]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x281ccd5c0]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x281ccd61a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x281b8b5f6
nop dword [rax]
cmp byte [rax], 0x41
jne 0x281b8b573
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x281b8b560
mov rax, rdx
mov qword [0x281ccd4c0], rax
lea rsi, [0x281ccd4c0]
jmp 0x281b8b599
cmp rdx, rsi
je 0x281b8b4ff
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x281b8b590
cmp rdx, rsi
je 0x281b8b4ff
mov qword [rdx + 8], rsi
lea rcx, [0x281b8b270]
call sub.msvcrt.dll__onexit
jmp 0x281b8b4ff
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.281b8b1e0
xor eax, eax
jmp 0x281b8b518
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.281b8b1e0
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.281b8b1e0
xor eax, eax
jmp 0x281b8b57f
Function at 0x281bf43f0
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 0x281bf4417
call rbp
cmp dword [rax], 4
jne 0x281bf4434
mov rcx, rdi
call fcn.281bf4210
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x281bf4410
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400066e1
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x140006711
mov rax, qword [rbp + 0x18]
mov rcx, rax
call fcn.1400066a3
mov rcx, rax
jmp 0x140006716
mov ecx, 0
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rdx
mov r8, rcx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sub.msvcrt.dll_fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14001067d
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sub.msvcrt.dll_fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140015940
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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.14001b9d0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14001b9d0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x1400159b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14002c2b4]
mov rbx, rcx
test esi, esi
jle 0x140015ae0
mov rax, qword [0x14002c2b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400159fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140015a85
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400159e0
mov rcx, rbx
call fcn.140016400
mov rdi, rax
test rax, rax
je 0x140015b02
mov rax, qword [0x14002c2b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140016540
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14002c2b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140015ae7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140015a7e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140015a90
add dword [0x14002c2b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14002c2b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140015a7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140015940
nop dword [rax]
xor esi, esi
jmp 0x140015a08
mov rax, qword [0x14002c2b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140015940
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140015940
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140016070
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14002c320]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14002c300]
test rbx, rbx
je 0x1400160cc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400160c3
test rsi, rsi
je 0x1400160c3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400160a8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]