joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001750
Capabilities:
Delete registry key

Disassembly:
push r12
sub rsp, 0x40
mov r9d, 0xf003f
lea rax, [rsp + 0x38]
mov r12, r8
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov r8d, eax
mov eax, 1
test r8d, r8d
jne 0x14000179a
mov rcx, qword [rsp + 0x38]
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add rsp, 0x40
pop r12
ret

Function at 0x1400017b0
Capabilities:
Set registry value

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x68
mov r12d, 1
lea rax, [rsp + 0x54]
mov r13, rdx
mov rbx, r8
mov rdx, rcx
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov esi, r9d
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x38], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x140001820
mov eax, r12d
add rsp, 0x68
pop rbx
pop rsi
pop r12
pop r13
ret
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov rcx, qword [rsp + 0x58]
mov r9d, esi
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, r13
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x58]
mov r12d, eax
test eax, eax
jne 0x140001868
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, r12d
add rsp, 0x68
pop rbx
pop rsi
pop r12
pop r13
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r12d, 1
mov eax, r12d
add rsp, 0x68
pop rbx
pop rsi
pop r12
pop r13
ret

Function at 0x140001890
Capabilities:
Delete registry key

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x40
mov rsi, qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rdx, qword [rcx]
mov rbx, rcx
mov rcx, 0xffffffff80000000
call rsi
lea rax, [rsp + 0x38]
xor r8d, r8d
mov r12, qword [rbx]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
lea rdx, str.SoftwareClasses
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400018f2
mov rcx, qword [rsp + 0x38]
mov rdx, r12
call rsi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
add rsp, 0x40
pop rbx
pop rsi
pop r12
ret
Function at 0x140002990
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x88
mov eax, 0x500
mov r9d, 0x220
mov edx, 2
mov r8d, 0x20
mov word [rsp + 0x76], ax
lea rax, [rsp + 0x78]
lea rcx, [rsp + 0x72]
mov dword [rsp + 0x72], 0
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x6c], eax
test eax, eax
jne 0x140002a18
cmp eax, 1
sete al
add rsp, 0x88
ret
mov rdx, qword [rsp + 0x78]
lea r8, [rsp + 0x6c]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x6c]
cmp eax, 1
sete al
add rsp, 0x88
ret

Function at 0x140002a50
Capabilities:
Delete service
Stop service

Disassembly:
push r14
push r13
push r12
sub rsp, 0x40
mov r8d, 0xf003f
xor edx, edx
xor r14d, r14d
mov r13, rcx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r12, rax
test rax, rax
je 0x140002ad4
mov rdx, qword [r13]
mov r8d, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov r13, rax
test rax, rax
je 0x140002b30
mov rcx, rax
lea r8, [rsp + 0x20]
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, r13
test eax, eax
je 0x140002ae8
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, r13
mov r13, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x140002b10
call r13
mov r14d, 1
mov rcx, r12
call r13
mov eax, r14d
add rsp, 0x40
pop r12
pop r13
pop r14
ret
mov r13, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call r13
mov rcx, r12
call r13
mov eax, r14d
add rsp, 0x40
pop r12
pop r13
pop r14
ret
call r13
mov rcx, r12
call r13
mov eax, r14d
add rsp, 0x40
pop r12
pop r13
pop r14
ret
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, r14d
add rsp, 0x40
pop r12
pop r13
pop r14
ret
Function at 0x140002b50
Capabilities:
Delete service
Enumerate services

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r13, rax
test rax, rax
je 0x140002c8e
lea rbp, [rsp + 0x58]
lea r12, [rsp + 0x5c]
xor edx, edx
mov rcx, rax
lea rdi, [rsp + 0x54]
mov r9d, 3
mov r8d, 0x30
mov qword [rsp + 0x38], rbp
mov rbx, qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExA]
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x5c], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call rbx
mov ecx, dword [rsp + 0x54]
call fcn.1400c6c10
mov qword [rsp + 0x38], rbp
xor edx, edx
mov rcx, r13
mov rsi, rax
mov eax, dword [rsp + 0x54]
mov qword [rsp + 0x40], r12
mov r9d, 3
mov qword [rsp + 0x48], 0
mov r8d, 0x30
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call rbx
mov eax, dword [rsp + 0x58]
mov rbp, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x140002c88
mov rdi, qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbp, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
mov r14, qword [sym.imp.ADVAPI32.dll_DeleteService]
nop
mov edx, ebx
mov r8d, 0xf01ff
mov rcx, r13
lea rax, [rdx*8]
sub rax, rdx
mov rdx, qword [rsi + rax*8]
call rdi
mov r12, rax
test rax, rax
je 0x140002c7f
mov rcx, rax
call r14
mov rcx, r12
call rbp
add ebx, 1
cmp dword [rsp + 0x58], ebx
ja 0x140002c50
mov rcx, r13
call rbp
nop
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x140002ca0
Capabilities:
Delete file
Get common file path

Disassembly:
push r12
push rbx
sub rsp, 0x138
mov edx, 0x104
lea r12, [rsp + 0x20]
mov rbx, rcx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r8, rbx
mov rdx, r12
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_PathCombineA]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
add rsp, 0x138
pop rbx
pop r12
ret
Function at 0x14000f490
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.140025790
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.140025790
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 0x14000f500
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14015c2b4]
mov r12, rcx
test ebx, ebx
jle 0x14000f630
mov rax, qword [0x14015c2b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000f54c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000f5d3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x14000f530
mov rcx, r12
call fcn.14000fea0
mov rsi, rax
test rax, rax
je 0x14000f652
mov rax, qword [0x14015c2b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.14000ffd0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14015c2b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000f637
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000f5cc
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000f5e0
add dword [0x14015c2b4], 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 [0x14015c2b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000f5cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000f490
nop dword [rax]
xor ebx, ebx
jmp 0x14000f557
mov rax, qword [0x14015c2b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000f490
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14000f490
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000fb10
Capabilities:
Get thread local storage value

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

Disassembly:
mov rdx, qword [0x140133ad0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000fec0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000fec8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000fec0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14000ff15
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 0x14000ff0c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000fec0
add rax, 0x28
cmp rax, r9
jne 0x14000fef8
xor eax, eax
ret

Function at 0x14000ff20
Capabilities:
Parse pe header

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

Function at 0x14000ffd0
Capabilities:
Parse pe header

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

Function at 0x1400101a0
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 0x1400101c0
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 0x140010208
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1400101b4
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 0x1400101f5
Function at 0x140010320
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x14015c430]
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 0x140010343
lea rax, [0x14015c438]
mov ecx, 0x5f
lea rdx, str.__eh_shmem3_gcc_tdm_
lea r8, [rax + 0x15]
jmp 0x14001038b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140010388
lea rax, [0x14015c460]
mov ecx, 0x5f
lea rdx, str.__eh_shmem3_gcc_tdm_
lea r8, [rax + 0x14]
jmp 0x1400103bb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x1400103b8
xor ecx, ecx
mov byte [0x14015c474], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x14015c47d], rdx
lea r8, [0x14015c430]
lea rbx, [0x14015c475]
mov qword [0x14015c48d], rdx
mov qword [0x14015c49d], rdx
mov qword [0x14015c4ad], rdx
xor edx, edx
mov qword [0x14015c475], rax
mov qword [0x14015c485], rax
mov qword [0x14015c495], rax
mov qword [0x14015c4a5], rax
mov byte [0x14015c4b5], 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 0x140010596
lea rcx, [0x14015c460]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x1400104e1
lea rsi, [0x14015c3a0]
lea r8, [0x14015c4b5]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x14001048d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140010480
lea rcx, [0x14015c460]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x140010583
lea rcx, [0x140010230]
mov qword [0x14015c3a0], 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 [0x14015c3a0]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x56
lea rdx, [0x14015c460]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x14015c4b5]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x1400105b6
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140010533
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140010520
mov rax, rdx
mov qword [0x14015c3a0], rax
lea rsi, [0x14015c3a0]
jmp 0x140010559
cmp rdx, rsi
je 0x1400104bf
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140010550
cmp rdx, rsi
je 0x1400104bf
mov qword [rdx + 8], rsi
lea rcx, [0x140010230]
call sub.msvcrt.dll__onexit
jmp 0x1400104bf
lea rcx, [0x140132480]
call fcn.1400101a0
xor eax, eax
jmp 0x1400104d8
lea rcx, [0x140132458]
call fcn.1400101a0
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, [0x1401324a8]
call fcn.1400101a0
xor eax, eax
jmp 0x14001053f
Function at 0x1400140a0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x140133b50]
mov rax, qword [rsi]
test rax, rax
je 0x140014130
cmp qword [rax + 0x30], 0
jne 0x140014150
lea rbx, [0x1400ca178]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140014100
cmp qword [rax + 0x30], 0
jne 0x140014120
lea rdx, [0x1400ca178]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x1400c94c0
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400194b0
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x1400140e2
test rax, rax
jne 0x140014120
call fcn.1400194b0
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x1400140f0
call fcn.1400194b0
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x1400140c0
test rax, rax
jne 0x140014150
call fcn.1400194b0
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x1400140cb
call sub.msvcrt.dll_abort
nop

Function at 0x140014160
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 0x140014272
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14001424a
add rax, 1
cmp rax, 0x6b
je 0x140014267
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140014240
cmp edx, 0x6a
je 0x140014267
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 0x14001425b
Function at 0x140018130
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.140013dd0
mov r12, rax
test rax, rax
je 0x140018399
test rdi, rdi
je 0x14001816a
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 0x1400181d7
add ebx, 1
cmp ebx, 1
je 0x1400182e0
mov ecx, 0x14
call r14
cmp ebx, 5
jne 0x1400181a5
mov qword [r12 + 0x38], 0xffffffffffffffff
lea r14, [r12 + 0x68]
mov rcx, r14
call fcn.140012a20
cmp eax, 1
je 0x1400183df
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 0x140018382
xor edx, edx
test rsi, rsi
je 0x14001824f
mov eax, dword [rsi]
mov edx, dword [rsi + 0x10]
mov dword [r12 + 0x44], eax
test al, 8
jne 0x1400183b0
mov eax, dword [rsi + 0x18]
mov dword [r12 + 0xc0], eax
lea r8, [0x1400157d0]
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 0x140018340
mov eax, dword [r12 + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x140018310
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 0x1400182f0
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 0x1400181a5
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 0x1400182bf
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x140018295
mov edx, 0xf
cmp eax, 0xe
jg 0x140018295
cmp eax, 2
mov edx, 2
cmovle edx, eax
jmp 0x140018295
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x140018350
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [r12 + 0x38]
call fcn.1400128a0
mov rcx, r14
call fcn.140012a20
cmp eax, 1
je 0x1400183df
mov qword [r12 + 0x68], 0xffffffffffffffff
mov qword [r12 + 0x30], 0
mov qword [r12 + 0x28], 0
test rdi, rdi
je 0x14001838e
mov qword [rdi], 0
cmp qword [r12 + 0x1d0], 0
je 0x1400183d0
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.140014c80
mov edx, dword [rsp + 0x3c]
mov eax, dword [rax + 0xc0]
mov dword [r12 + 0xc0], eax
jmp 0x14001824f
mov rcx, r12
call fcn.140014310
mov eax, 0xb
jmp 0x14001839e
call fcn.140014160
nop
nop word cs:[rax + rax]
Function at 0x140019330
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 0x140019350
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 0x140019398
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140019344
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 0x140019385
Function at 0x1400194b0
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x14015c600]
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 0x1400194d3
lea rax, [0x14015c608]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x14001951b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140019518
lea rax, [0x14015c640]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x14001954b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140019548
xor ecx, ecx
mov byte [0x14015c659], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x14015c662], rdx
lea r8, [0x14015c600]
lea rbx, [0x14015c65a]
mov qword [0x14015c672], rdx
mov qword [0x14015c682], rdx
mov qword [0x14015c692], rdx
xor edx, edx
mov qword [0x14015c65a], rax
mov qword [0x14015c66a], rax
mov qword [0x14015c67a], rax
mov qword [0x14015c68a], rax
mov byte [0x14015c69a], 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 0x140019726
lea rcx, [0x14015c640]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140019671
lea rsi, [0x14015c540]
lea r8, [0x14015c69a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x14001961d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140019610
lea rcx, [0x14015c640]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x140019713
lea rcx, [0x1400193c0]
mov qword [0x14015c540], 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 [0x14015c540]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x14015c640]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x14015c69a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x140019746
nop dword [rax]
cmp byte [rax], 0x41
jne 0x1400196c3
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x1400196b0
mov rax, rdx
mov qword [0x14015c540], rax
lea rsi, [0x14015c540]
jmp 0x1400196e9
cmp rdx, rsi
je 0x14001964f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x1400196e0
cmp rdx, rsi
je 0x14001964f
mov qword [rdx + 8], rsi
lea rcx, [0x1400193c0]
call sub.msvcrt.dll__onexit
jmp 0x14001964f
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.140019330
xor eax, eax
jmp 0x140019668
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.140019330
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.140019330
xor eax, eax
jmp 0x1400196cf
Function at 0x140082190
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 0x1400821b7
call rbp
cmp dword [rax], 4
jne 0x1400821d4
mov rcx, rdi
call fcn.140081fb0
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x1400821b0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret