joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400016a0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
xor edx, edx
mov rsi, rcx
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001778
lea rdi, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x1c
mov rdx, rdi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x140001798
mov r12, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [sym.imp.KERNEL32.dll_GetProcessId]
mov r13, qword [sym.imp.KERNEL32.dll_OpenThread]
jmp 0x140001717
mov rdx, rdi
mov rcx, rbx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
je 0x14000175b
mov r14d, dword [rsp + 0x2c]
mov rcx, rsi
call rbp
cmp r14d, eax
jne 0x140001708
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 2
call r13
mov r14, rax
test rax, rax
je 0x140001708
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, r14
call r12
mov rdx, rdi
mov rcx, rbx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x140001717
mov rcx, rbx
call r12
nop
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea rcx, str.Unable_to_take_a_snapshot_of_the_threads_n
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp fcn.140001620
lea rcx, str.Unable_to_get_the_first_thread_n
call fcn.140001620
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x1400017c0
Capabilities:
Enumerate threads
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
xor edx, edx
mov rsi, rcx
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001898
lea rdi, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x1c
mov rdx, rdi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1400018b8
mov r12, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [sym.imp.KERNEL32.dll_GetProcessId]
mov r13, qword [sym.imp.KERNEL32.dll_OpenThread]
jmp 0x140001837
mov rdx, rdi
mov rcx, rbx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
je 0x14000187b
mov r14d, dword [rsp + 0x2c]
mov rcx, rsi
call rbp
cmp r14d, eax
jne 0x140001828
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 2
call r13
mov r14, rax
test rax, rax
je 0x140001828
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, r14
call r12
mov rdx, rdi
mov rcx, rbx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x140001837
mov rcx, rbx
call r12
nop
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea rcx, str.Unable_to_take_a_snapshot_of_the_threads_n
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp fcn.140001620
lea rcx, str.Unable_to_get_the_first_thread_n
call fcn.140001620
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x140001970
Capabilities:
Enumerate process modules

Disassembly:
push r15
mov eax, 0x1148
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.140002ec0
sub rsp, rax
mov edx, 0x1000
lea rsi, [rsp + 0x140]
mov r12, rcx
lea r8, [rsp + 0x2c]
mov rcx, rsi
call sub.KERNEL32.dll_K32EnumProcesses
mov eax, dword [rsp + 0x2c]
shr eax, 2
je 0x140001a18
mov rbp, qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r13, qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
lea rdi, [rsp + 0x30]
nop dword [rax]
mov r15d, dword [rsi + rbx*4]
xor edx, edx
mov ecx, 0x410
mov r8d, r15d
call rbp
mov r14, rax
test rax, rax
je 0x140001a08
mov r9d, 0x104
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.KERNEL32.dll_K32GetModuleBaseNameA
mov rcx, rdi
mov rdx, r12
call sub.msvcrt.dll_strcmp
mov rcx, r14
test eax, eax
je 0x140001a38
call r13
mov eax, dword [rsp + 0x2c]
add rbx, 1
shr eax, 2
cmp rbx, rax
jb 0x1400019c8
xor r15d, r15d
mov eax, r15d
add rsp, 0x1148
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001a1b
Function at 0x140002110
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.14000f430
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.14000f430
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 0x140002180
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x140016104]
mov r12, rcx
test ebx, ebx
jle 0x1400022b0
mov rax, qword [0x140016108]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x1400021cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x140002255
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x1400021b0
mov rcx, r12
call fcn.140002c00
mov rsi, rax
test rax, rax
je 0x1400022d2
mov rax, qword [0x140016108]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.140002d30
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140016108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400022b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000224e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002260
add dword [0x140016104], 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 [0x140016108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000224e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002110
nop dword [rax]
xor ebx, ebx
jmp 0x1400021d8
mov rax, qword [0x140016108]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002110
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140002110
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002850
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x140016160]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140016140]
test rbx, rbx
je 0x1400028ac
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1400028a3
test r12, r12
je 0x1400028a3
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002888
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002c00
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140011f60]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002c20
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002c28
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002c20
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002c75
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 0x140002c6c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002c20
add rax, 0x28
cmp rax, r9
jne 0x140002c58
xor eax, eax
ret

Function at 0x140002c80
Capabilities:
Parse pe header

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

Function at 0x140002d30
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140011f60]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002d50
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002d58
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x140004f00
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
xor r14d, r14d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140005068
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14000505d
mov ebp, r14d
cmp dword [rsp + 0xb8], r14d
jbe 0x14000505d
lea r15, [r14 - 1]
mov eax, 0x100
mov dword [rsp + 0xb0], eax
mov qword [rsp + 0x68], r14
mov rsi, r14
nop dword [rax + rax]
mov ecx, eax
mov eax, 2
mul rcx
mov rdi, rax
cmovo rdi, r15
mov rcx, rdi
call fcn.14004834c
mov rbx, rax
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword ds:[rsp + 0x68], rbx
test rsi, rsi
je 0x140004fed
mov rcx, rsi
call fcn.140048300
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0xb0]
mov r8, rbx
mov edx, ebp
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov rsi, rbx
cmp eax, 0xea
jne 0x140005030
mov eax, dword [rsp + 0xb0]
jmp 0x140004fb0
test eax, eax
jne 0x140005046
mov rdx, rbx
mov rcx, qword [rsp + 0x60]
call fcn.140005080
nop
mov rcx, rbx
call fcn.140048300
inc ebp
cmp ebp, dword [rsp + 0xb8]
jb 0x140004f94
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000ab20
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140071040]
xor rax, rsp
mov qword [rsp + 0x60], rax
test cl, cl
jne 0x14000ab86
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str._System_Scanner__Running_checks_to_detect_event_log_bypasses..._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400064a0
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesEventLogSystem
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000ad10
lea rax, ds:[rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, str.File
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000ad05
mov ecx, dword [rsp + 0x30]
shr rcx, 1
mov eax, 2
mul rcx
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.14004834c
mov rdi, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.File
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop word [rax + rax]
test eax, eax
jne 0x14000acf8
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x14000ac62
mov r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.1400066a0
nop
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rcx, qword [rsp + 0x40]
lea rdx, str._SystemRoot_System32WinevtLogsSystem.evtx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14000acb3
lea rdx, str.____Event_log_bypass_detected._Ban_the_user._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000ad40
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x14000acf8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000acf3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000acf3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140048300
mov rcx, rdi
call fcn.140048300
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400482e0
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
movzx ecx, dl
jmp 0x14000ab20
Function at 0x14000ce50
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x14000ce78
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000ce9e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000cea0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000cf01
test ecx, ecx
jle 0x14000ced9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14000cf01
cmp qword [rdi + 0x80], 0
je 0x14000cf01
lfence
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x14000cf20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rbp, rdx
mov rsi, rcx
test r8, r8
jg 0x14000cf51
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x14000cf72
lfence
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov rbx, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14000cf8e
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000cf90
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000cfcc
mov qword [rsp + 0x38], rdi
cmp rax, r14
mov rdi, r14
mov rcx, rbp
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add rbp, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000d060
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000d007
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000d03e
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add rbp, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000d060
cmp rbx, rax
ja 0x14000d010
nop
test rbx, rbx
je 0x14000d060
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub r14, rbx
mov rax, r14
lfence
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14000d4a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140071040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000d4cd
xor eax, eax
jmp 0x14000d642
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000d507
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000d507
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14000d642
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000d635
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000d54a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14000d577
mov rdx, qword ds:[rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000d63a
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000d5ea
nop dword [rax]
sub eax, 1
je 0x14000d5ea
cmp eax, 2
jne 0x14000d635
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000d63a
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000d61b
lfence
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000d635
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000d63a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400482e0
mov rbx, qword ss:[rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000dac0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140071040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000dba6
cmp byte [rcx + 0x71], 0
je 0x14000dba6
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
mov rax, qword [rax + 0x18]
call qword [0x14004ed88]
cmp eax, 0xffffffff
je 0x14000dba2
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000db63
sub eax, 1
je 0x14000db67
nop dword [rax + rax]
cmp eax, 2
jne 0x14000dba2
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400482e0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000db98
lfence
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000dba2
cmp byte ds:[rbx + 0x71], 0
sete al
jmp 0x14000db4b
xor al, al
jmp 0x14000db4b
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400482e0
add rsp, 0x60
pop rbx
ret
Function at 0x1400153c0
Capabilities:
Delete volume shadow copies

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor edi, edi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], rdi
lea r8d, [rdi + 0x17]
lea rdx, str.vssadmin_delete_shadows
call fcn.1400066a0
nop
lea rcx, [rbx + 0x20]
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], rdi
lea r8d, [rdi + 0x45]
lea rdx, str.____Found_evidence_of_shadow_copy_cleared:_vssadmin_delete_shadows.
call fcn.1400066a0
nop
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140015a80
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x6b0
mov rax, qword [0x140071040]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
mov rbp, rcx
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str._s_s
mov edx, 0x104
lea rcx, [rsp + 0x280]
call fcn.140015820
lea r14, [0x140074ba0]
mov rdi, 0xffffffffffffffff
inc rdi
cmp word [r14 + rdi*2], 0
jne 0x140015ad4
lea rdx, str._username_
mov qword [rsp + 0x6e0], rbx
lea rcx, [rsp + 0x280]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
nop dword [rax]
test rax, rax
je 0x140015b8b
nop dword [rax]
lea rcx, [rsp + 0x280]
mov rbx, rax
sub rbx, rcx
mov r8d, 0xfa
sar rbx, 1
sub r8, rbx
cmp rdi, r8
ja 0x140015b65
lea rdx, [rax + 0x14]
add r8, r8
lea rax, [rbx + rdi]
lea rcx, [rsp + 0x280]
lea rcx, [rcx + rax*2]
call sub.VCRUNTIME140.dll_memmove
lea rcx, ds:[rsp + 0x280]
mov rdx, r14
lea rcx, [rcx + rbx*2]
lea r8, [rdi + rdi]
call sub.VCRUNTIME140.dll_memcpy
lea rax, ds:[rbx + rdi]
lea rcx, [rsp + 0x280]
lea rcx, [rcx + rax*2]
lea rdx, str._username_
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x140015b10
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140015cc6
nop dword [rax + rax]
lea rax, [rsp + 0x5c]
mov r9, rbp
lea r8, [0x1400568c0]
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [rsp + 0x490]
call fcn.140015820
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [r14 + rdi*2], 0
jne 0x140015be0
lea rdx, str._username_
lea rcx, ds:[rsp + 0x490]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x140015c8b
nop
lea rcx, [rsp + 0x490]
mov rbx, rax
sub rbx, rcx
mov r8d, 0xfa
sar rbx, 1
sub r8, rbx
cmp rdi, r8
ja 0x140015c65
lea rdx, [rax + 0x14]
add r8, r8
lea rax, [rbx + rdi]
lea rcx, [rsp + 0x490]
lea rcx, [rcx + rax*2]
call sub.VCRUNTIME140.dll_memmove
lea rcx, ds:[rsp + 0x490]
mov rdx, r14
lea rcx, [rcx + rbx*2]
lea r8, [rdi + rdi]
call sub.VCRUNTIME140.dll_memcpy
lea rax, ds:[rbx + rdi]
lea rcx, [rsp + 0x490]
lea rcx, [rcx + rax*2]
lea rdx, str._username_
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x140015c10
test byte [rsp + 0x30], 1
je 0x140015ca6
lea rdx, [rsp + 0x490]
lea rcx, str.____Macro_file:__s_is_marked_as_read_only._Ban_the_player._n
call fcn.140003d60
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140015bb0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x6e0]
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.1400482e0
mov rbp, qword [rsp + 0x6e8]
add rsp, 0x6b0
pop r14
pop rdi
pop rsi
ret
Function at 0x140017e40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140017e74
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140017e60
ret