joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000a3b0
Capabilities:
Get explorer pid

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140024040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_GetShellWindow]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call fcn.14000a2e0
cmp eax, dword [rsp + 0x20]
jne 0x14000a43d
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.___Pausing_to_allow_for_debugging
call fcn.140006120
lea rdx, [0x140006300]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.___Press_enter_to_close
call fcn.140006120
lea rdx, [0x140006300]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_istream_char__struct_std::char_traits_char__::get_void____ptr64]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000fd90
add rsp, 0x38
ret
Function at 0x14000d600
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140024040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14000d712
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000d712
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
mov qword [rsp + 0x58], r8
mov ecx, dword [rax + rdx + 0xb0]
test ecx, ecx
jne 0x14000d679
mov qword [rdi], r8
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r8
jmp 0x14000d71d
lea rbx, [rdx + rcx]
mov ebp, dword [rax + rdx + 0xb4]
add rbp, rbx
mov rcx, qword [rsp + 0x50]
cmp rbx, rbp
jae 0x14000d700
mov edx, dword [rbx + 4]
test edx, edx
je 0x14000d700
mov eax, dword [rbx]
add rax, rsi
mov qword [rsp + 0x28], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x30], rax
lea rax, [rdx - 8]
shr rax, 1
mov dword [rsp + 0x38], eax
cmp rcx, r8
je 0x14000d6d9
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x38]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rsp + 0x50], rcx
jmp 0x14000d6f5
lea r8, [rsp + 0x28]
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.14000dde0
mov r8, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rbp
jb 0x14000d691
mov rax, qword [rsp + 0x48]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], r8
jmp 0x14000d71d
mov qword [rcx], r8
mov qword [rcx + 8], r8
mov qword [rcx + 0x10], r8
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000fd90
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000f040
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x50
mov rax, qword [0x140024040]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edx, edx
lea r9, [rsp + 0x20]
mov rsi, rcx
xor r14d, r14d
xor r8d, r8d
mov dword [rsp + 0x20], r14d
mov ebx, r14d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14000f0ce
test rbx, rbx
je 0x14000f096
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14000f080
test eax, eax
jns 0x14000f0ef
test rbx, rbx
je 0x14000f0f4
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14000f1f2
test rbx, rbx
jne 0x14000f0fb
xor eax, eax
jmp 0x14000f1f2
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rdi
mov edi, r14d
cmp dword [rbx], r14d
jbe 0x14000f1d2
mov eax, edi
xorps xmm0, xmm0
imul rcx, rax, 0x128
movups xmmword [rsp + 0x28], xmm0
movzx edx, word [rcx + rbx + 0x2e]
lea rbp, [rcx + rbx]
add rdx, 0x30
mov qword [rsp + 0x38], r14
add rdx, rcx
mov qword [rsp + 0x40], r14
add rdx, rbx
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], r14b
jne 0x14000f150
lea rcx, [rsp + 0x28]
call fcn.140008760
cmp qword [rsi + 0x18], 0xf
mov rdx, rsi
jbe 0x14000f170
mov rdx, qword [rsi]
cmp qword [rsp + 0x40], 0xf
lea rcx, [rsp + 0x28]
cmova rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14000f208
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14000f1c8
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f1c3
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000f251
call fcn.14000fdb0
inc edi
cmp edi, dword [rbx]
jb 0x14000f114
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000fd90
add rsp, 0x50
pop r14
pop rsi
pop rbx
ret
mov rdi, qword [rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14000f25d
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f258
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f258
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000fdb0
mov rax, rdi
jmp 0x14000f1e5
Function at 0x14000f674
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14000f6ae
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000f6b3
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14000f6fc
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400126c0]
cmp byte [rcx + rax], 0
je 0x14000f6fc
dec r8
sub rdx, 1
jne 0x14000f6e2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140010b80
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140010bca
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140010bca
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140010bca
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140010bca
cmp dword [rcx + 0x84], 0xe
jbe 0x140010bca
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140010bcc
xor al, al
add rsp, 0x28
ret
Function at 0x14000c980
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000c9cc
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000c9c4
cmp dword [rcx + 0x3c], edx
jl 0x14000c9c4
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000c9c4
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000c9cc
mov rax, rdx
add rsp, 0x18
ret

Function at 0x14240b0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14240bd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14240cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14240b5
lea eax, [rcx + 1]
jmp 0x14240db
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14240ee
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14240d4
sub eax, 3
jb 0x142410e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x142415d
sar eax, 1
movsxd rbp, eax
jb 0x1424144
jmp 0x142411c
add ebx, ebx
jne 0x142411a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1424144
inc ecx
add ebx, ebx
jne 0x142412a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1424144
call r11
adc ecx, ecx
add ebx, ebx
jne 0x142413d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x142412c
add ecx, 2
jmp 0x1424149
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.01424072
jmp 0x14240bd
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1010000]
mov eax, dword [rdi]
or eax, eax
je 0x14241b9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1024000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1424169
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14241b3
mov qword [rbx], rax
add rbx, 8
jmp 0x1424189
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14241fd
cmp al, 0xef
ja 0x14241e5
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14241c5
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x14241d4
mov eax, dword [rdi]
add rdi, 4
jmp 0x14241d4
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1424251
sub rsp, 0xffffffffffffff80
jmp 0x45bb20
Function at 0x180001c30
Capabilities:
Allocate or change rwx memory
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1800ea200]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor esi, esi
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], esi
xor edx, edx
lea ecx, [rsi + 5]
call qword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x180001d20
mov eax, dword [rsp + 0x30]
lea r9, [rsp + 0x40]
add eax, 0x5000
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov dword [rsp + 0x30], eax
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x20], 0x3000
lea rcx, [r8 - 1]
call qword [sym.imp.ntdll.dll_ZwAllocateVirtualMemory]
test eax, eax
js 0x180001d20
mov r8, qword [rsp + 0x40]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call sub.VCRUNTIME140.dll_memset
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x180001d20
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbx
mov ecx, 5
call qword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
mov edi, eax
test eax, eax
jns 0x180001d3f
mov r9d, 0x8000
mov qword [rsp + 0x38], rbx
lea r8, [rsp + 0x40]
mov qword [rsp + 0x40], rsi
lea rdx, [rsp + 0x38]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_ZwFreeVirtualMemory]
cmp edi, 0xc0000004
je 0x180001c72
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180059b00
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov rax, rbx
jmp 0x180001d22
Function at 0x180001db0
Capabilities:
Suspend thread

Disassembly:
push rsi
sub rsp, 0x70
mov rax, qword [0x1800ea200]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rcx
xor eax, eax
mov ecx, 1
lock cmpxchg dword [0x1800eb088], ecx
cmp eax, ecx
jne 0x180001df0
nop dword [rax + rax]
pause
xor eax, eax
lock cmpxchg dword [0x1800eb088], ecx
cmp eax, ecx
je 0x180001de0
test rsi, rsi
jne 0x180001e0a
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180059b00
add rsp, 0x70
pop rsi
ret
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x90], rbp
xor ebp, ebp
mov ebx, ebp
cmp dword [rsi + 4], ebx
jbe 0x180001ee6
mov qword [rsp + 0x98], rdi
nop
mov eax, ebx
lea rdi, [rax + rax*4]
shl rdi, 4
add rdi, rsi
mov qword [rdi + 0x100], rbp
mov rax, qword gs:[0x30]
mov ecx, dword [rax + 0x48]
cmp qword [rdi + 0x130], rcx
je 0x180001ed3
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x30
lea r9, [rdi + 0x128]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x28]
mov dword [rsp + 0x40], ebp
mov edx, 0x1a
mov qword [rsp + 0x38], rbp
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rbp
movdqu xmmword [rsp + 0x48], xmm0
call qword [sym.imp.ntdll.dll_ZwOpenThread]
test eax, eax
js 0x180001ed3
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x180001ed3
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x58], ebp
call qword [sym.imp.ntdll.dll_ZwSuspendThread]
test eax, eax
jns 0x180001ec7
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntdll.dll_ZwClose]
jmp 0x180001ed3
mov rax, qword [rsp + 0x20]
mov qword [rdi + 0x100], rax
inc ebx
cmp ebx, dword [rsi + 4]
jb 0x180001e30
mov rdi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x90]
mov al, 1
mov rbx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180059b00
add rsp, 0x70
pop rsi
ret

Function at 0x180001f10
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x30
mov rax, qword [0x1800ea200]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor edx, edx
mov rsi, rcx
xor r8d, r8d
lea rcx, [rdx - 1]
call qword [sym.imp.ntdll.dll_ZwFlushInstructionCache]
xor ebp, ebp
test rsi, rsi
jne 0x180001f46
xor al, al
jmp 0x180001fa5
mov qword [rsp + 0x48], rbx
mov ebx, ebp
cmp dword [rsi + 4], ebx
jbe 0x180001f9e
mov qword [rsp + 0x50], rdi
mov eax, ebx
lea rdi, [rax + rax*4]
add rdi, rdi
mov rcx, qword [rsi + rdi*8 + 0x100]
test rcx, rcx
je 0x180001f92
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ntdll.dll_ZwResumeThread]
mov rcx, qword [rsi + rdi*8 + 0x100]
call qword [sym.imp.ntdll.dll_ZwClose]
mov qword [rsi + rdi*8 + 0x100], rbp
inc ebx
cmp ebx, dword [rsi + 4]
jb 0x180001f57
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
mov al, 1
xchg dword [0x1800eb088], ebp
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180059b00
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
Function at 0x1800021b0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1800ea200]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov edi, r8d
lea rax, [r11 - 0x30]
mov rbp, rdx
mov qword [r11 - 0x28], rcx
mov rbx, rcx
mov qword [r11 - 0x38], rdi
lea r8, [r11 - 0x38]
mov qword [r11 - 0x48], rax
lea rdx, [r11 - 0x28]
mov dword [rsp + 0x38], 0
mov rcx, 0xffffffffffffffff
mov r9d, 0x40
call qword [sym.imp.ntdll.dll_ZwProtectVirtualMemory]
xor esi, esi
test eax, eax
cmovns esi, dword [rsp + 0x38]
test esi, esi
jne 0x18000221a
xor al, al
jmp 0x180002260
mov r8, rdi
mov rdx, rbp
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x38]
mov qword [rsp + 0x40], rdi
mov r9d, esi
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x38], 0
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_ZwProtectVirtualMemory]
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180059b00
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000b270
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx + 0xc0], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
jg 0x18000b2ab
mov r8d, 0x589
lea rdx, str.C:UserscryptoeDesktopAceid_ccincludesimguiimgui.h
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movsxd rax, dword [rbx + 0xc0]
xor ecx, ecx
mov r8, qword [rbx + 0xc8]
mov rdx, rdi
sub rdx, rsi
test rdi, rdi
mov r8d, dword [r8 + rax*4 - 4]
cmove rdx, rcx
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.18000c0f0

Function at 0x18000bc50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
movsxd rbp, r9d
mov r14, r8
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x18000bc73
test rdx, rdx
jne 0x18000bc8d
mov r8d, 0x5df
lea rdx, str.C:UserscryptoeDesktopAceid_ccincludesimguiimgui.cpp
lea rcx, str.filename__mode
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test r14, r14
je 0x18000bc99
mov qword [r14], 0
mov rdx, rbx
mov rcx, rdi
call fcn.18000bd60
mov rbx, rax
test rax, rax
jne 0x18000bcba
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], r15
call fcn.18000bbe0
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18000bd37
lea rcx, [rax + rbp]
call fcn.18000deb0
mov rsi, rax
test rax, rax
je 0x18000bd37
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
cmp rax, rdi
je 0x18000bd10
mov rcx, rbx
call fcn.18000bbc0
mov rcx, rsi
call fcn.18000ded0
jmp 0x18000bd3f
test ebp, ebp
jle 0x18000bd22
lea rcx, [rsi + rdi]
mov r8, rbp
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call fcn.18000bbc0
test r14, r14
je 0x18000bd32
mov qword [r14], rdi
mov rax, rsi
jmp 0x18000bd41
mov rcx, rbx
call fcn.18000bbc0
xor eax, eax
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x18000c0a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rcx
not r8d
test rdx, rdx
je 0x18000c0dd
lea r10, [0x1800606d0]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r9]
lea r9, [r9 + 1]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [r10 + rcx*4]
sub rdx, 1
jne 0x18000c0c0
not r8d
mov eax, r8d
ret
Function at 0x18000c0f0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x18000c14d
lea rbx, [0x1800606d0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x18000c134
cmp r10, 2
jb 0x18000c134
cmp byte [r9], r8b
jne 0x18000c134
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x18000c110
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x18000c18f
lea rbx, [0x1800606d0]
cmp r8b, 0x23
jne 0x18000c173
cmp byte [r9], r8b
jne 0x18000c173
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x18000c160
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x18000dd00
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x30
mov rbx, qword [0x1800ea348]
cmp byte [rbx + 0x3068], 0
je 0x18000ddc9
cmp qword [rbx + 0x3070], 0
mov qword [rax - 0x10], rsi
lea rsi, [rax + 0x10]
mov qword [rax - 0x18], rdi
je 0x18000ddad
xor edx, edx
lea rcx, [rbx + 0x3078]
call fcn.1800182b0
mov rdx, qword [rsp + 0x40]
lea rcx, [rbx + 0x3078]
mov r8, rsi
call fcn.180017b60
mov eax, dword [rbx + 0x3078]
xor edx, edx
mov r9, qword [rbx + 0x3070]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x3080]
cmove ecx, edx
test rax, rax
movsxd r8, ecx
mov edx, 1
lea rcx, [0x1800ea340]
cmovne rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop rbx
ret
mov rdx, rcx
mov r8, rsi
lea rcx, [rbx + 0x3078]
call fcn.180017b60
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop rbx
ret
Function at 0x180013e70
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x1800ea348]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x3034], ecx
test rbx, rbx
je 0x180013edd
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.180013ef0
lea rdx, [0x180063994]
mov rcx, rbx
mov rdi, rax
call fcn.18000bd60
mov rbx, rax
test rax, rax
je 0x180013ed8
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, rbx
call fcn.18000bbc0
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret

Function at 0x1800211f0
Capabilities:
Compute adler32 checksum

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
mov r10, rdx
movzx r9d, cx
mov eax, 0x5e6ea9af
shr ecx, 0x10
mul r8d
mov ebx, r8d
mov esi, r8d
shr edx, 0xb
imul eax, edx, 0x15b0
sub ebx, eax
test r8d, r8d
je 0x18002133f
mov qword [rsp + 0x20], rdi
xor r11d, r11d
cmp ebx, 7
jbe 0x1800212a6
lea edx, [r11 + 7]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r10]
add r11d, 8
add r9d, eax
add edx, 8
movzx eax, byte [r10 + 1]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 2]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 3]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 4]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 5]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 6]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 7]
add ecx, r9d
add r9d, eax
add r10, 8
add ecx, r9d
cmp edx, ebx
jb 0x180021240
xor edx, edx
xor r8d, r8d
cmp r11d, ebx
jae 0x180021307
mov eax, ebx
sub eax, r11d
cmp eax, 2
jb 0x1800212f4
mov eax, ebx
sub eax, r11d
sub eax, 2
shr eax, 1
inc eax
mov edi, eax
lea r11d, [r11 + rax*2]
nop dword [rax]
movzx eax, byte [r10]
add r9d, eax
movzx eax, byte [r10 + 1]
add edx, r9d
add r10, 2
add r9d, eax
add r8d, r9d
sub rdi, 1
jne 0x1800212d0
cmp r11d, ebx
jae 0x180021301
movzx eax, byte [r10]
add r9d, eax
add ecx, r9d
inc r10
lea eax, [r8 + rdx]
add ecx, eax
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul eax, edx, 0xffff000f
add r9d, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
sub esi, ebx
mov ebx, 0x15b0
jne 0x180021227
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
shl ecx, 0x10
lea eax, [r9 + rcx]
pop rsi
ret