joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18010a990
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1802e13c8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x18010a9bd
xor eax, eax
jmp 0x18010ab26
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x18010a9fd
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x18010a9fd
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x18010ab1e
cmp qword [rdi + 0x80], 0
je 0x18010ab19
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x18010aa37
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x18010aa62
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x18010ab1e
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 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 0x18010aad1
sub eax, 1
je 0x18010aad1
cmp eax, 2
jne 0x18010ab19
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x18010ab1e
mov rbx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x18010aaff
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x18010ab19
lea rax, [rsp + 0x40]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x18010ab1e
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1801589e0
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x18010b3e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rsi, r8
mov r14, rdx
mov rbp, rcx
test r8, r8
jg 0x18010b411
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 0x18010b42f
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 qword [rsp + 0x30], rbx
mov rbx, rsi
mov qword [rsp + 0x38], rdi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
test rax, rax
je 0x18010b479
cmp rax, rsi
mov rdi, rsi
mov rcx, rbp
cmovb rdi, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rdi
mov rcx, r14
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, edi
mov rcx, rbp
add r14, rdi
sub rbx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rbp + 0x80], 0
mov rdi, rbx
je 0x18010b4f1
mov rcx, rbp
call fcn.18010a810
cmp rbx, 0xfff
jbe 0x18010b4d1
nop word [rax + rax]
mov r9, qword [rbp + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x18010b512
cmp rbx, rax
ja 0x18010b4a0
test rdi, rdi
je 0x18010b4f1
mov r9, qword [rbp + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
sub rsi, rdi
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
sub rsi, rbx
jmp 0x18010b4f4
Function at 0x18010b520
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x18010b548
add rsp, 0x20
pop r14
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 qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x18010b5bc
test rax, rax
jle 0x18010b59c
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x18010b5bc
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x18010b5bc
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x40]
sub rsi, rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret

Function at 0x18010b5e0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x1802e50d0]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18010b644
mov eax, 0xa
jmp 0x18010b6d7
test esi, esi
je 0x18010b666
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18010b689
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18010b689
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18010b682
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18010b689
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x18010b6f0
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1802e13c8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
xor esi, esi
xor edx, edx
lea ecx, [rsi + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x18010b83c
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x18010b833
mov esi, 1
mov qword [rsp + 0x68], rbx
cmp dword [rsp + 0x20], 0x10
jb 0x18010b7ea
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18010b7ea
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18010b7ea
mov rdx, qword [rdi]
test rdx, rdx
jne 0x18010b7ab
mov dword [rdi + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x1802e4a60]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi], rax
mov rdx, rax
test rax, rax
je 0x18010b812
lea rbx, [rdi + 0xc]
jmp 0x18010b7df
mov eax, dword [rdi + 8]
lea rbx, [rdi + 0xc]
cmp dword [rbx], eax
jb 0x18010b7df
add eax, eax
mov r8, rdx
mov r9d, eax
xor edx, edx
mov dword [rdi + 8], eax
mov rcx, qword [0x1802e4a60]
shl r9, 2
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18010b812
mov qword [rdi], rax
mov ecx, dword [rbx]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rbp
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x18010b751
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18010b82e
mov r8, qword [rdi]
xor esi, esi
test r8, r8
je 0x18010b82e
mov rcx, qword [0x1802e4a60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rdi], rsi
mov rbx, qword [rsp + 0x68]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1801589e0
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x18010b860
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov ebp, r8d
mov qword [rcx], 0
mov r14d, edx
mov qword [rcx + 8], 0
mov rdi, rcx
call fcn.18010b6f0
test eax, eax
jne 0x18010b8a7
mov eax, 9
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rdi], 0
je 0x18010b91e
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rdi + 0xc], ebx
jbe 0x18010b906
mov qword [rsp + 0x38], rsi
nop
mov r8, qword [rdi]
xor edx, edx
mov r8d, dword [r8 + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18010b8fa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.18010be30
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x18010b8c0
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rbp, qword [rsp + 0x40]
xor eax, eax
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x18010b940
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov edi, 1
mov ebp, r15d
mov ebx, r15d
xor eax, eax
lock cmpxchg dword [0x1802e4a58], edi
je 0x18010b991
nop
cmp rbx, 0x20
jae 0x18010b97a
xor ecx, ecx
jmp 0x18010b97c
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1802e4a58], edi
jne 0x18010b970
cmp qword [0x1802e4a60], rbp
je 0x18010babd
mov r8d, dword [0x1802e50dc]
mov ebx, r15d
test r8d, r8d
je 0x18010bac2
mov rdx, qword [0x1802e50d0]
add rdx, 0x20
nop dword [rax]
movzx ecx, byte [rdx]
shr cl, 1
xor cl, byte [rdx]
test cl, 2
jne 0x18010b9dc
inc ebx
add rdx, 0x38
cmp ebx, r8d
jb 0x18010b9c0
jmp 0x18010bac2
cmp ebx, 0xffffffff
je 0x18010bac2
mov edx, 0xffffffff
lea rcx, [rsp + 0x20]
mov r8d, 2
call fcn.18010b860
mov ebp, eax
test eax, eax
jne 0x18010bac2
mov r8d, dword [0x1802e50dc]
cmp ebx, r8d
jae 0x18010ba54
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x1802e50d0]
movzx r9d, byte [rdx + rcx + 0x20]
movzx ecx, r9b
shr cl, 1
xor cl, r9b
test cl, 2
je 0x18010ba4d
mov edx, r9d
mov ecx, ebx
shr edx, 2
and edx, edi
call fcn.18010b5e0
mov ebp, eax
test eax, eax
jne 0x18010ba54
mov r8d, dword [0x1802e50dc]
inc ebx
cmp ebx, r8d
jb 0x18010ba10
cmp qword [rsp + 0x20], r15
je 0x18010bac2
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18010baa7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rsi
mov esi, eax
nop
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18010ba98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x18010ba70
mov rsi, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1802e4a60]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18010bac2
mov ebp, 2
xchg dword [0x1802e4a58], r15d
mov rbx, qword [rsp + 0x48]
mov eax, ebp
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x18010bfe0
Capabilities:
Encode data using xor

Disassembly:
mov edx, 1
jmp 0x18010bfe0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor esi, esi
mov edi, edx
mov r14d, esi
mov ebx, esi
xor eax, eax
mov rbp, rcx
mov r15d, 1
lock cmpxchg dword [0x1802e4a58], r15d
je 0x18010c03a
cmp rbx, 0x20
jae 0x18010c021
xor ecx, ecx
jmp 0x18010c024
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1802e4a58], r15d
jne 0x18010c017
cmp qword [0x1802e4a60], rsi
je 0x18010c0d5
test rbp, rbp
jne 0x18010c08b
cmp dword [0x1802e50dc], esi
mov r8d, esi
jbe 0x18010c0db
shl dil, 2
nop
mov eax, r8d
inc r8d
imul rdx, rax, 0x38
mov rax, qword [0x1802e50d0]
movzx ecx, byte [rdx + rax + 0x20]
xor cl, dil
and cl, 4
xor byte [rdx + rax + 0x20], cl
cmp r8d, dword [0x1802e50dc]
jb 0x18010c060
jmp 0x18010c0db
mov edx, dword [0x1802e50dc]
mov eax, esi
test edx, edx
je 0x18010c0b0
mov r8, qword [0x1802e50d0]
mov rcx, r8
cmp rbp, qword [rcx]
je 0x18010c0b8
inc eax
add rcx, 0x38
cmp eax, edx
jb 0x18010c0a1
mov r14d, 4
jmp 0x18010c0db
cmp eax, 0xffffffff
je 0x18010c0b0
shl dil, 2
imul rcx, rax, 0x38
xor dil, byte [rcx + r8 + 0x20]
and dil, 4
xor byte [rcx + r8 + 0x20], dil
jmp 0x18010c0db
mov r14d, 2
xchg dword [0x1802e4a58], esi
mov rsi, qword [rsp + 0x50]
mov eax, r14d
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x18010c1b0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x18010c1f0
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1802e50c0]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18010c22e
cmp rsi, r14
jb 0x18010c226
cmp rsi, r15
jae 0x18010c226
cmp qword [rsi + 8], 0
jne 0x18010c3f7
mov rsi, qword [rsi]
test rsi, rsi
jne 0x18010c211
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x18010c2c2
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x18010c2b9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18010c2b9
cmp dword [rsp + 0x70], 0x10000
je 0x18010c33b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x18010c2b9
sub rbx, rbp
cmp rbx, r14
jae 0x18010c280
test rsi, rsi
jne 0x18010c3a0
cmp rdi, r15
ja 0x18010c3df
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18010c3df
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18010c3df
cmp dword [rsp + 0x70], 0x10000
je 0x18010c371
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x18010c2f2
jmp 0x18010c3df
test rbx, rbx
je 0x18010c2b9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18010c3a0
cmp rbx, r14
jae 0x18010c260
jmp 0x18010c2c2
test rdi, rdi
je 0x18010c3df
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18010c3a0
cmp rdi, r15
jbe 0x18010c2d0
jmp 0x18010c3df
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x18010c3b0
mov rax, qword [0x1802e50c0]
mov qword [rsi], rax
mov qword [0x1802e50c0], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x18011cd00
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
lea rbp, [rsp - 0x248]
sub rsp, 0x348
mov rax, qword [0x1802e13c8]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov rdi, r8
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, rdi
jae 0x18011ce94
lea rax, str.cannot_write_to_file
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0x14
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
mov qword [rsp + 0x50], 0
lea rax, [rbp]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x30], ecx
lea rax, [0x1802e1388]
mov qword [rsp + 0x38], rax
mov qword [rbp + 0x20], 0
lea rdi, vtable.fmt::v9::basic_memory_buffer_char__500__class_std::allocator_char__.0
mov qword [rbp + 0x10], rdi
lea rax, [rbp + 0x30]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x28], 0x1f4
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x70], xmm0
movaps xmm1, xmmword [rsp + 0x60]
movdqa xmmword [rbp - 0x80], xmm1
xor r9d, r9d
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x10]
call fcn.180111990
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
movdqa xmm1, xmmword [0x180163730]
movdqu xmmword [rbp - 0x18], xmm1
mov byte [rbp - 0x28], 0
movups xmmword [rbp - 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x38], xmm1
mov r8, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x18]
lea rcx, [rbp - 0x48]
call fcn.18009dc80
nop
mov qword [rbp + 0x10], rdi
lea rax, [rbp + 0x30]
mov rcx, qword [rbp + 0x18]
cmp rcx, rax
je 0x18011ce33
mov rdx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18011ce2d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18011ce8d
call fcn.180158a3c
nop
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea r8, [rbp - 0x48]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x70]
call fcn.180118fa0
lea rax, vtable.std::system_error.0
mov qword [rbp - 0x70], rax
mov rdx, qword [rbp - 0x30]
cmp rdx, 0x10
jb 0x18011ceb2
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18011cead
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18011cead
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.1801589e0
add rsp, 0x348
pop rdi
pop rbp
ret
call fcn.180158a3c
movdqa xmm0, xmmword [0x180163730]
movdqu xmmword [rbp - 0x38], xmm0
mov byte [rbp - 0x48], 0
mov byte [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x28]
call fcn.18009c4d0
lea rdx, [0x1802de7e8]
lea rcx, [rbp - 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x180123380
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, qword [0x1802e4a70]
xor r15d, r15d
mov r14d, ecx
mov ebp, r15d
mov rsi, qword [rdi + 0x3ea0]
test cl, 0x10
jne 0x18012350d
mov ebx, dword [rdi + 0x473c]
test ebx, ebx
je 0x1801233f8
cmp dword [rdi + 0x3f00], ebx
jne 0x180123506
mov eax, dword [rdi + 0x3f2c]
cmp eax, 0xffffffff
cmove eax, r15d
movsxd r15, eax
cmp byte [r15 + rdi + 0xe04], bpl
je 0x180123506
cmp byte [rsi + 0xb3], bpl
jmp 0x1801234af
cmp byte [rdi + 0xe04], bpl
je 0x180123506
cmp byte [rsi + 0xb3], bpl
jne 0x180123506
test byte [rdi + 0x4744], 1
jne 0x180123434
cmp dword [rdi + 0x3f00], ebp
je 0x180123506
cmp qword [rdi + 0x3f20], rsi
jne 0x180123506
test r14b, 8
je 0x180123506
lea rdx, [rdi + 0x4748]
mov rcx, rsi
call fcn.180127ed0
mov ebx, eax
mov dword [rdi + 0x473c], eax
mov rax, qword [0x1802e4a70]
cmp dword [rax + 0x3f00], ebx
jne 0x18012346a
mov dword [rax + 0x3f04], ebx
cmp dword [rax + 0x3f30], ebx
jne 0x180123479
mov byte [rax + 0x3f34], 1
mov edx, ebx
lea rcx, [rdi + 0x4748]
call fcn.18012a420
movzx ebp, al
test al, al
je 0x1801234a9
cmp byte [rdi + 0x3738], r15b
je 0x1801234a9
mov rdx, rsi
mov ecx, ebx
call fcn.180133900
mov rcx, rsi
call fcn.180127800
cmp dword [rdi + 0x3f00], ebx
jne 0x180123506
mov byte [rdi + 0x3f0d], bpl
movsxd rcx, dword [rsi + 0xe8]
mov rax, qword [rsi + 0xf0]
mov ebp, dword [rax + rcx*4 - 4]
mov rax, qword [0x1802e4a70]
movsxd rcx, r15d
cmp byte [rcx + rax + 0xe04], 0
jne 0x1801234e3
xor sil, sil
jmp 0x1801234fc
movss xmm1, dword [rax + 0x38]
movss xmm0, dword [rax + rcx*4 + 0x3790]
mulss xmm1, xmm1
comiss xmm0, xmm1
setae sil
call fcn.180133a50
test sil, sil
jne 0x180123559
xor al, al
jmp 0x1801235f9
mov r9d, 0xffffffff
lea rdx, [0x1802af921]
mov ebx, r9d
lea r10, [0x1802ae470]
mov r8b, 0x23
cmp r8b, 0x23
jne 0x18012353a
cmp byte [rdx], r8b
jne 0x18012353a
cmp byte [rdx + 1], r8b
cmove ebx, r9d
movzx ecx, bl
movzx eax, r8b
movzx r8d, byte [rdx]
xor rcx, rax
shr ebx, 8
inc rdx
xor ebx, dword [r10 + rcx*4]
test r8b, r8b
jne 0x180123527
not ebx
cmp byte [rdi + 0x4a2c], 0
jne 0x180123597
call fcn.180124a20
mov dword [rdi + 0x4a4c], ebx
mov dword [rdi + 0x4a50], ebp
mov byte [rdi + 0x4a2c], 1
mov dword [rdi + 0x4a30], r14d
mov dword [rdi + 0x4a38], r15d
cmp ebx, dword [rdi + 0x3f00]
jne 0x180123597
mov byte [rdi + 0x3f0e], 1
mov eax, dword [rdi + 0x3e20]
mov dword [rdi + 0x4a34], eax
mov byte [rdi + 0x4a2d], 1
test r14b, 1
jne 0x1801235ea
xor edx, edx
xor ecx, ecx
call fcn.180123750
cmp dword [rdi + 0x4aa0], 0
je 0x1801235ea
test dword [rdi + 0x4a94], 0x1000
je 0x1801235ea
mov rax, qword [rdi + 0x3ea0]
mov byte [rax + 0xb3], 1
mov byte [rax + 0xb5], 1
mov byte [rax + 0xd0], 1
test r14b, 0x12
jne 0x1801235f7
and dword [rdi + 0x4744], 0xfffffffe
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret