joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f5e0
Capabilities:
Hijack thread execution

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x4f8
mov rsi, rcx
call sym.__pth_gpointer_locked
test rax, rax
mov rbx, rax
je 0x41f609
mov rcx, qword [rax + 0x28]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
jbe 0x41f620
mov eax, 3
add rsp, 0x4f8
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdi, [rsp + 0x20]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x41f609
lea rbp, [rbx + 0x38]
mov rcx, rbp
call sym.pthread_mutex_lock
call sym.__pthread_self_lite
test rax, rax
je 0x41f7c5
mov rax, qword [rax + 0x1c8]
cmp rsi, rax
je 0x41f6c3
mov eax, dword [rbx + 0x44]
and eax, 3
cmp eax, 3
movzx eax, byte [rbx + 0x40]
je 0x41f720
test al, 3
jne 0x41f6aa
and eax, 0xfffffffc
or eax, 1
mov byte [rbx + 0x40], al
mov rax, qword [0x004ac600]
test rax, rax
je 0x41f7cc
lock add dword [rax], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x41f69b
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbp
call sym.pthread_mutex_unlock
xor eax, eax
jmp 0x41f60e
mov rcx, rbp
call sym.pthread_mutex_unlock
test byte [rbx + 0x40], 0xc
jne 0x41f609
xor eax, eax
jmp 0x41f60e
movzx eax, byte [rbx + 0x40]
test al, 3
jne 0x41f6aa
and eax, 0xfffffffc
or eax, 1
mov byte [rbx + 0x40], al
mov rax, qword [0x004ac600]
test rax, rax
je 0x41f7ec
lock add dword [rax], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x41f6f7
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [rbx + 0x44]
and eax, 3
cmp eax, 3
jne 0x41f69b
movzx eax, byte [rbx + 0x40]
and dword [rbx + 0x44], 0xfffffffe
mov rcx, rbp
and eax, 0xfffffff3
or eax, 4
mov byte [rbx + 0x40], al
call sym.pthread_mutex_unlock
call sym._pthread_invoke_cancel
test al, 0xc
jne 0x41f6aa
test al, 0xf
jne 0x41f609
mov rcx, qword [rbx + 0x28]
mov dword [rsp + 0x50], 0x100001
call qword [sym.imp.KERNEL32.dll_SuspendThread]
xor edx, edx
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41f69b
mov rcx, qword [rbx + 0x28]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
lea rax, [sym._pthread_invoke_cancel]
mov rcx, qword [rbx + 0x28]
mov rdx, rdi
mov qword [rsp + 0x118], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
movzx eax, byte [rbx + 0x40]
and dword [rbx + 0x44], 0xfffffffe
and eax, 0xfffffff0
or eax, 5
mov byte [rbx + 0x40], al
mov rax, qword [0x004ac600]
test rax, rax
je 0x41f80c
lock add dword [rax], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x41f7ae
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbp
call sym.pthread_mutex_unlock
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x41f69b
xor eax, eax
jmp 0x41f653
lea rcx, str._pthread_cancelling_shmem
xor r8d, r8d
mov edx, 4
call sym.__shmem_winpthreads_grab
mov qword [0x004ac600], rax
jmp 0x41f688
lea rcx, str._pthread_cancelling_shmem
xor r8d, r8d
mov edx, 4
call sym.__shmem_winpthreads_grab
mov qword [0x004ac600], rax
jmp 0x41f6e4
lea rcx, str._pthread_cancelling_shmem
xor r8d, r8d
mov edx, 4
call sym.__shmem_winpthreads_grab
mov qword [0x004ac600], rax
jmp 0x41f79b
Function at 0x41f830
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x004ac5b8]
mov edi, edx
test rcx, rcx
je 0x41f910
call sym.pthread_mutex_lock
mov rcx, rbx
call sym.__pthread_get_pointer
test rax, rax
je 0x41f86a
mov rsi, qword [rax + 0x1c8]
cmp rsi, rbx
je 0x41f890
mov rcx, qword [0x004ac5b8]
test rcx, rcx
je 0x41f8e0
mov ebx, 3
call sym.pthread_mutex_unlock
mov eax, ebx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
test byte [rax + 0x40], 0xc
jne 0x41f86a
mov ebx, dword [rax + 0xb4]
test ebx, ebx
jne 0x41f86a
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x41f86a
mov rcx, qword [0x004ac5b8]
test rcx, rcx
je 0x41f937
call sym.pthread_mutex_unlock
test edi, edi
je 0x41f880
sub edi, 2
mov ebx, 0x16
cmp edi, 0x15
ja 0x41f880
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp sym.pthread_cancel
lea rcx, str.mtx_pthr_locked_shmem
lea r8, [sym.__shmem_winpthreads_init_mtx_pthr_locked_shmem]
mov edx, 8
call sym.__shmem_winpthreads_grab
mov rcx, rax
mov qword [0x004ac5b8], rax
jmp 0x41f876
lea rcx, str.mtx_pthr_locked_shmem
lea r8, [sym.__shmem_winpthreads_init_mtx_pthr_locked_shmem]
mov edx, 8
call sym.__shmem_winpthreads_grab
mov rcx, rax
mov qword [0x004ac5b8], rax
jmp 0x41f84c
lea rcx, str.mtx_pthr_locked_shmem
lea r8, [sym.__shmem_winpthreads_init_mtx_pthr_locked_shmem]
mov edx, 8
call sym.__shmem_winpthreads_grab
mov rcx, rax
mov qword [0x004ac5b8], rax
jmp 0x41f8ba
Function at 0x41fbb0
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov r14, rcx
mov r12, rdx
mov rsi, r8
mov rdi, r9
call sym.pop_pthread_mem
test rax, rax
mov rbx, rax
je 0x41fd61
test r14, r14
je 0x41fbea
mov rax, qword [rax + 0x1c8]
mov qword [r14], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rbx + 8], rdi
mov rdi, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x10], rsi
mov esi, 1
mov dword [rbx + 0xb4], 0
mov dword [rbx + 0x44], 1
mov qword [rbx + 0x28], 0xffffffffffffffff
mov rbp, r13
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
call rdi
test rax, rax
mov qword [rbx + 0x30], rax
jne 0x41fe10
cmp esi, 1
jne 0x41fc50
xor ecx, ecx
call r13
add esi, 1
jmp 0x41fc21
mov ecx, 0x14
call rbp
cmp esi, 5
jne 0x41fc47
mov rax, qword [rbx + 0x30]
mov qword [rbx + 0x38], 0xffffffffffffffff
mov qword [rbx + 0x60], 0xffffffffffffffff
mov dword [rbx], 0xbab1f00d
mov dword [rbx + 0xb8], 0
mov dword [rbx + 0xb0], 0
test rax, rax
je 0x41fd47
test r12, r12
je 0x41fe50
mov eax, dword [r12]
mov rsi, qword [r12 + 0x10]
test al, 8
mov dword [rbx + 0x44], eax
jne 0x41fde0
mov eax, dword [r12 + 0x18]
mov edx, esi
mov dword [rbx + 0xb8], eax
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
mov r9, rbx
lea r8, [sym.pthread_create_wrapper]
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rsi, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x41fd17
mov edx, dword [rbx + 0xb8]
cmp edx, 0xfffffff2
jl 0x41fd75
cmp edx, 0xffffffff
jl 0x41fe00
cmp edx, 0xe
jg 0x41fe40
cmp edx, 2
mov eax, 2
cmovge edx, eax
jmp 0x41fd7a
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x41fd26
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
mov qword [rbx + 0x60], 0xffffffffffffffff
mov qword [rbx + 0x30], 0
mov qword [rbx + 0x28], 0
test r14, r14
je 0x41fd53
mov qword [r14], 0
cmp qword [rbx + 0x1c0], 0
je 0x41fe57
mov eax, 0xb
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov edx, 0xfffffff1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [rbx + 0x44], 4
je 0x41fdd0
mov rcx, rsi
mov qword [rbx + 0x28], 0
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov qword [rbx + 0x28], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x41fdad
call sym.__pthread_self_lite
mov eax, dword [rax + 0xb8]
mov edx, esi
mov dword [rbx + 0xb8], eax
jmp 0x41fcbd
mov edx, 0xfffffffe
jmp 0x41fd7a
mov qword [rbx + 0x38], 0xffffffffffffffff
mov qword [rbx + 0x60], 0xffffffffffffffff
mov dword [rbx], 0xbab1f00d
mov dword [rbx + 0xb8], 0
mov dword [rbx + 0xb0], 0
jmp 0x41fc93
mov edx, 0xf
jmp 0x41fd7a
xor edx, edx
jmp 0x41fcbd
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x41fd61
Function at 0x420390
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str.dummy_concurrency_level_shmem
xor r8d, r8d
mov edx, 4
jmp sym.__shmem_winpthreads_grab

Function at 0x420770
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_winpthreads_init_mutex_global_shmem]
lea rcx, str.mutex_global_shmem
mov edx, 8
jmp sym.__shmem_winpthreads_grab

Function at 0x420790
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_winpthreads_init_mutex_global_static_shmem]
lea rcx, str.mutex_global_static_shmem
mov edx, 8
jmp sym.__shmem_winpthreads_grab

Function at 0x420890
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_winpthreads_init_mxattr_recursive_shmem]
lea rcx, str.mxattr_recursive_shmem
mov edx, 4
jmp sym.__shmem_winpthreads_grab

Function at 0x4208b0
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_winpthreads_init_mxattr_errorcheck_shmem]
lea rcx, str.mxattr_errorcheck_shmem
mov edx, 4
jmp sym.__shmem_winpthreads_grab

Function at 0x4214e0
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_winpthreads_init_cond_locked_shmem_cond]
lea rcx, str.cond_locked_shmem_cond
mov edx, 8
jmp sym.__shmem_winpthreads_grab
Function at 0x4224d0
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x80]
mov rdi, rcx
movsxd r12, edx
mov r13, r8
call sym.strlen
mov r14, rax
lea ebx, [rax + 0xf]
lea eax, [rax + 0x51]
cdqe
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.00411840
sub rsp, rax
movsxd r15, r14d
movabs rax, 0x656d68732d636367
lea rsi, [rsp + 0x20]
lea rcx, [rsp + 0x2f]
mov r8, r15
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov eax, 0x326d
mov dword [rsp + 0x28], 0x64742d6d
mov word [rsp + 0x2c], ax
movsxd rbx, ebx
mov byte [rsp + 0x2e], 0x2d
call sym.memcpy
lea rax, [rsi + r15 + 0x10]
lea r15d, [r14 + 0x50]
movabs rdx, 0x6161616161616161
xor ecx, ecx
mov r8, rsi
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rdx
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rdx
mov qword [rax + 0x30], rdx
mov qword [rax + 0x38], rdx
movsxd rax, r15d
xor edx, edx
mov byte [rsp + rax + 0x20], 0
mov byte [rsp + rbx + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [rsp + rbx + 0x20], 0x2d
mov rdi, rax
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4225b9
int3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x422652
mov rcx, r12
add r14d, 0x10
call sym.malloc
mov r10d, 0x40
mov rbx, rax
bt rbx, r10
jae 0x4225f4
mov r11d, r15d
sub r11d, r10d
movsxd r11, r11d
mov byte [rsi + r11], 0x41
sub r10d, 1
jne 0x4225e0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x42264f
mov rdx, rsi
movzx ecx, ax
mov r9d, r14d
mov r8d, r15d
call sym.get_ptr_from_atom_1
cmp rax, rbx
mov rsi, rax
je 0x422669
mov rcx, rbx
call sym.free
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
lea rsp, [rbp - 0x58]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
int3
lea r9d, [r14 + 0x10]
mov rdx, rsi
movzx ecx, ax
mov r8d, r15d
call sym.get_ptr_from_atom_1
mov rsi, rax
jmp 0x422629
xor edx, edx
mov r8, r12
mov rcx, rbx
call sym.memset
test r13, r13
je 0x422629
mov rcx, rbx
call r13
jmp 0x422629

Function at 0x4227c0
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str.global_lock_spinlock
xor r8d, r8d
mov edx, 4
jmp sym.__shmem_winpthreads_grab

Function at 0x422fb0
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_winpthreads_init_rwl_global_shmem]
lea rcx, str.rwl_global_shmem
mov edx, 8
jmp sym.__shmem_winpthreads_grab

Function at 0x423080
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_winpthreads_init_cond_locked_shmem_rwlock]
lea rcx, str.cond_locked_shmem_rwlock
mov edx, 8
jmp sym.__shmem_winpthreads_grab

Function at 0x423b90
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_init_init]
lea rcx, str.init
mov edx, 8
jmp dbg.__shmem_grab

Function at 0x423bb0
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str.eh_globals
xor r8d, r8d
mov edx, 0x10
jmp dbg.__shmem_grab
Function at 0x424260
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_init___terminate_handler_sh]
lea rcx, str.__terminate_handler_sh
mov edx, 8
jmp dbg.__shmem_grab

Function at 0x424280
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_init___unexpected_handler_sh]
lea rcx, str.__unexpected_handler_sh
mov edx, 8
jmp dbg.__shmem_grab

Function at 0x425540
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
test rax, rax
jle 0x425571
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret
mov dword [rbx + 0x48], 0xffffffff
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x425ec0
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x0048a150], 0
jne 0x425f87
mov byte [0x0048a150], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x42601a
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call sym.__cxa_demangle
mov rsi, qword [sym.imp.msvcrt.dll___iob_func]
mov rdi, rax
call rsi
lea rcx, str.terminate_called_after_throwing_an_instance_of_
lea r9, [rax + 0x60]
mov r8d, 0x30
mov edx, 1
call sym.fwrite
cmp dword [rsp + 0x2c], 0
je 0x425f77
call rsi
lea rdx, [rax + 0x60]
mov rcx, rbx
call sym.fputs
call rsi
lea rcx, [0x0048bf91]
lea r9, [rax + 0x60]
mov r8d, 2
mov edx, 1
call sym.fwrite
cmp dword [rsp + 0x2c], 0
je 0x425fad
call sym.__cxa_rethrow
call rsi
lea rdx, [rax + 0x60]
mov rcx, rdi
call sym.fputs
jmp 0x425f4e
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, str.terminate_called_recursively_n
lea r9, [rax + 0x60]
mov r8d, 0x1d
mov edx, 1
call sym.fwrite
call sym.abort
mov rcx, rdi
call sym.free
jmp 0x425f72
call sym.abort
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, str.terminate_called_without_an_active_exception_n
lea r9, [rax + 0x60]
mov r8d, 0x2d
mov edx, 1
call sym.fwrite
jmp 0x426015

Function at 0x454400
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rbp, rcx
mov rdi, rdx
mov esi, r8d
mov rcx, rbp
call method.std::__basic_file_char_.fd__
mov r8d, esi
mov rdx, rdi
mov ecx, eax
call sym.read
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
je 0x454450
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x45441a
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1401cdbe1
Capabilities:
Encode data using base64

Disassembly:
mov edx, 0xef19119e
mov qword [rbx + rcx*2 - 0x6e546210], rdi
mov r11d, dword [r10 + rcx - 0x372a3108]
lea r10, [r10 + rcx - 0x372a3104]
and ecx, dword [rsp + rcx - 0x372a30f6]
movzx edi, dl
xor r11d, esi
bswap r11d
shr word [rsp + rcx + 0x16], 0x8e
ror r11d, 2
sal r8w, 0x88
rol dword [rsp + rcx + 0xf], 0xec
sub r11d, 0xd6bb5908
or dl, ah
ja 0x140219bc6
neg r11d
lea r11d, [rcx + r11 + 0x2aa0ca3e]
sar dword [rsp + rcx + 0x11], 0x72
neg dx
call fcn.1401c7764
Function at 0x14000ce50
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov r10, rcx
test edx, edx
je 0x14000ce86
mov r9, rcx
mov rax, r9
lea rcx, [0x140074b50]
sub rax, r10
and eax, 0xf
mov cl, byte [rax + rcx]
xor cl, byte [r9]
xor cl, r8b
inc r8d
not cl
mov byte [r9], cl
inc r9
cmp r8d, edx
jb 0x14000ce5d
ret
Function at 0x1400666b4
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
xor r15d, r15d
mov r12d, 1
cmp qword [0x1400ccdc0], r15
jne 0x140066815
xor ecx, ecx
call fcn.14006c500
mov rcx, rax
mov rdi, rax
call fcn.140067300
test al, al
jne 0x140066705
mov eax, r12d
jmp 0x14006687e
mov eax, 0x5a4d
cmp word [rdi], ax
je 0x140066719
mov eax, 2
jmp 0x14006687e
cmp dword [rdi + 0x3c], 0x400
jl 0x14006672c
mov eax, 3
jmp 0x14006687e
movsxd rbx, dword [rdi + 0x3c]
add rbx, rdi
cmp dword [rbx], 0x4550
je 0x140066745
mov eax, 4
jmp 0x14006687e
mov qword [0x1400ccdc0], r15
movzx r14d, r15w
movzx esi, word [rbx + 0x14]
add rsi, rbx
cmp r15w, word [rbx + 6]
jae 0x140066833
movsx rax, r14w
lea rbp, [rax + rax*4]
mov eax, dword [rsi + rbp*8 + 0x3c]
test eax, 0x22000020
jne 0x14006679d
and eax, 0xc0000000
cmp eax, 0xc0000000
jne 0x14006679d
cmp dword [rsi + rbp*8 + 0x20], 0x10
jb 0x14006679d
mov eax, dword [rsi + rbp*8 + 0x24]
test eax, eax
je 0x14006679d
lea rcx, [rdi + rax]
call fcn.140067300
test al, al
jne 0x1400667cc
movzx ecx, word [rbx + 6]
add r14w, r12w
movsx eax, r14w
cmp eax, ecx
jl 0x140066762
mov rcx, qword [0x1400ccdc0]
test rcx, rcx
je 0x140066833
call fcn.140067300
test al, al
jne 0x1400667e7
mov eax, 6
jmp 0x14006687e
mov eax, dword [rsi + rbp*8 + 0x24]
mov ecx, dword [rsi + rbp*8 + 0x20]
add rax, rdi
add rcx, 0xfffffffffffffff0
add rcx, rax
mov qword [0x1400ccdc0], rcx
jmp 0x1400667b4
mov rdx, qword [0x1400ccdc0]
lea rcx, [0x1400ccdb0]
mov r8d, 0x10
call sub.ntdll.dll_memcpy
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPriorityClass]
mov dword [0x1400ccdc8], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x4000
call fcn.1400668e0
test eax, eax
jne 0x14006683a
mov eax, 7
jmp 0x14006687e
mov eax, 5
jmp 0x14006687e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, r12d
call fcn.140066930
test eax, eax
jne 0x140066856
mov eax, 8
jmp 0x14006687e
mov rax, qword [0x1400ccdc0]
movabs rcx, 0xcc873400686c02d6
mov qword [rax], rcx
lea rcx, [0x1400ccd40]
mov rax, qword [0x1400ccdc0]
mov qword [rax + 8], rcx
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400686a8
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x250
lea rdx, [rsp + 0x40]
mov rbx, rcx
call fcn.14000cc34
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call fcn.140052afc
mov rdx, rax
lea rdi, [rsp + 0x40]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
cmp rdx, 0xffffffffffffffff
jne 0x14006872a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140068726
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x140068726
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
jne 0x140068745
xor al, al
jmp 0x140068734
mov rcx, rdx
call fcn.14000a158
mov al, 1
mov rbx, qword [rsp + 0x260]
add rsp, 0x250
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
lea rcx, [0x1400b4b9c]
mov r8d, eax
call fcn.140069bd0
call fcn.14006d5d4
int3

Function at 0x14006c6f8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
mov rbx, rdx
mov rdi, rcx
mov edx, dword [rax + rcx + 0x88]
test edx, edx
je 0x14006c7fc
cmp dword [rax + rcx + 0x8c], 0
je 0x14006c7fc
call fcn.14006dcec
mov esi, eax
mov rcx, rdi
add rsi, rdi
mov edx, dword [rsi + 0x20]
call fcn.14006dcec
mov edx, dword [rsi + 0x24]
mov rcx, rdi
mov r13d, eax
add r13, rdi
call fcn.14006dcec
mov edx, dword [rsi + 0x1c]
mov rcx, rdi
mov r12d, eax
add r12, rdi
call fcn.14006dcec
mov r14d, eax
add r14, rdi
cmp rbx, 0x10000
jae 0x14006c7bb
mov edx, dword [rsi + 0x10]
cmp rbx, rdx
jb 0x14006c80e
mov ecx, dword [rsi + 0x14]
add ecx, edx
cmp rbx, rcx
jae 0x14006c80e
sub rbx, rdx
mov eax, dword [r14 + rbx*4]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor ebp, ebp
cmp dword [rsi + 0x18], ebp
jbe 0x14006c80e
mov edx, dword [r13 + rbp*4]
mov rcx, rdi
call fcn.14006dcec
mov edx, eax
mov rcx, rbx
add rdx, rdi
call fcn.14000c780
test al, al
jne 0x14006c7e9
inc ebp
cmp ebp, dword [rsi + 0x18]
jae 0x14006c80e
jmp 0x14006c7c2
movzx edx, word [r12 + rbp*2]
mov rcx, rdi
mov edx, dword [r14 + rdx*4]
call fcn.14006dcec
jmp 0x14006c79e
lea rcx, [0x1400b4dda]
call fcn.140069bd0
call fcn.14006d5d4
int3
mov rdx, rbx
lea rcx, [0x1400b4e50]
call fcn.140069bd0
call fcn.14006d5d4
int3
Function at 0x14006c824
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf0
mov rdi, rdx
lea rdx, [rsp + 0x20]
call fcn.14000cc5c
lea rcx, [rsp + 0x20]
call fcn.14006c590
mov rsi, rax
movsxd rax, dword [rax + 0x3c]
mov ecx, dword [rax + rsi + 0x88]
test ecx, ecx
je 0x14006c908
cmp dword [rax + rsi + 0x8c], 0
je 0x14006c908
lea rbx, [rsi + rcx]
mov r15d, dword [rbx + 0x24]
mov r14d, dword [rbx + 0x1c]
add r15, rsi
add r14, rsi
cmp rdi, 0x10000
jae 0x14006c8d3
mov edx, dword [rbx + 0x10]
cmp rdi, rdx
jb 0x14006c91a
mov ecx, dword [rbx + 0x14]
add ecx, edx
cmp rdi, rcx
jae 0x14006c91a
sub rdi, rdx
mov eax, dword [r14 + rdi*4]
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov r12d, dword [rbx + 0x20]
xor ebp, ebp
add r12, rsi
cmp dword [rbx + 0x18], ebp
jbe 0x14006c91a
mov edx, dword [r12 + rbp*4]
mov rcx, rdi
add rdx, rsi
call sub.ntdll.dll_strcmp
test eax, eax
je 0x14006c8fd
inc ebp
cmp ebp, dword [rbx + 0x18]
jae 0x14006c91a
jmp 0x14006c8e1
movzx eax, word [r15 + rbp*2]
mov eax, dword [r14 + rax*4]
jmp 0x14006c8b2
lea rcx, [0x1400b4eb6]
call fcn.140069bd0
call fcn.14006d5d4
int3
lea rcx, [0x1400b4f32]
call fcn.140069bd0
call fcn.14006d5d4
int3

Function at 0x14006ca40
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x150
and dword [rcx], 0
xor edx, edx
mov r15, rcx
mov dword [rsp + 0x20], 0x130
xor r14d, r14d
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14006cb3a
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x14006cb54
lea rdx, [rsp + 0x20]
mov rcx, rbx
inc r14d
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x14006ca9d
mov eax, r14d
imul rcx, rax, 0x130
call fcn.1400694e4
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r12, rax
xor ebp, ebp
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x14006cb6e
mov eax, ebp
lea rsi, [rsp + 0x20]
imul rdi, rax, 0x130
inc ebp
mov ecx, 0x130
add rdi, r12
rep movsb byte [rdi], byte [rsi]
cmp ebp, r14d
jae 0x14006cb0a
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x14006cada
mov rcx, rbx
call fcn.14000a158
lea r11, [rsp + 0x150]
mov dword [r15], ebp
mov rbx, qword [r11 + 0x20]
mov rax, r12
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x1400b4cda]
call fcn.140069bd0
call fcn.14006d5d4
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x1400b4d1c]
call fcn.140069bd0
call fcn.14006d5d4
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x1400b4d5e]
call fcn.140069bd0
call fcn.14006d5d4
int3