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

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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.140015b70
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140015b70
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14000b340
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400fa0a4]
mov rbx, rcx
test esi, esi
jle 0x14000b470
mov rax, qword [0x1400fa0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000b38b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000b415
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000b370
mov rcx, rbx
call fcn.14000bdb0
mov rdi, rax
test rax, rax
je 0x14000b492
mov rax, qword [0x1400fa0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000bef0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400fa0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b477
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000b40e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000b420
add dword [0x1400fa0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400fa0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000b40e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000b2d0
nop dword [rax]
xor esi, esi
jmp 0x14000b398
mov rax, qword [0x1400fa0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000b2d0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000b2d0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000ba20
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400fa100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400fa0e0]
test rbx, rbx
je 0x14000ba7c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14000ba73
test eax, eax
jne 0x14000ba73
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000ba58
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000bdb0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400d13d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000bdd0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000bdd8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000bdd0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000be2d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000be24
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000bdd0
add rax, 0x28
cmp rax, r9
jne 0x14000be10
xor eax, eax
ret

Function at 0x14000be30
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400d13d0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000be4f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000be58
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000be4f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000bef0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400d13d0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000bf0f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000bf18
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14007b2f0
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 rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x14007b338
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14007b30a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400c54d0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400ca1e0]
jmp 0x14000cc10

Function at 0x1400c54e0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400ca1e0]
jmp 0x14000cc10
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140115e40]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140115e50]
mov dword [rax], 1
mov rax, qword [0x140115e60]
mov dword [rax], 1
mov rax, qword [0x140115de0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140115e30]
mov dword [0x14014a020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140115f20]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140115f00]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140115200]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140007230
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rbx
sub rsp, 0x450
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], rcx
mov qword [rbp + 0x3f8], rdx
mov qword [rbp + 0x400], r8
mov qword [rbp + 0x408], r9
mov qword [rbp + 0x3c8], 0x3e8
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
lea rdx, [rbp - 0x20]
mov eax, 0
mov ecx, 0x7b
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp + 0x3c4], 0
mov dword [rbp + 0x3bc], 0
lea rcx, [rbp + 0x3bc]
lea rdx, [rbp - 0x30]
mov rax, qword [rbp + 0x400]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8d, 0x3e8
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
mov dword [rbp + 0x3c4], eax
cmp dword [rbp + 0x3c4], 0
je 0x14000734f
mov eax, dword [rbp + 0x3bc]
test eax, eax
je 0x14000734f
lea rax, [rbp + 0x3c3]
mov rcx, rax
call fcn.1400a18a0
mov eax, dword [rbp + 0x3bc]
mov r8d, eax
lea rcx, [rbp + 0x3c3]
lea rdx, [rbp - 0x30]
lea rax, [rbp - 0x50]
mov r9, rcx
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__unsigned_long_long__std::allocator_char__const_
lea rax, [rbp + 0x3c3]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0x3f8]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.operator_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
jmp 0x140007297
mov rax, qword [rbp + 0x400]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x14000739c
add rsp, 0x450
pop rbx
pop rdi
pop rbp
ret

Function at 0x140007498
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov dword [rbp + 0x10], ecx
mov eax, dword [rbp + 0x10]
mov r8d, eax
mov edx, 1
mov ecx, 0x100001
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateProcess]
call rax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x1400074dc
Capabilities:
Get session user name

Disassembly:
push rbp
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp + 0x20], rcx
mov ecx, 0x101
call sym.malloc
mov qword [rbp - 8], rax
mov dword [rbp - 0x10], 0x101
lea rdx, [rbp - 0x10]
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_GetUserNameA]
call rax
test eax, eax
setne al
test al, al
je 0x140007576
lea rax, [rbp - 0xa]
mov rcx, rax
call fcn.1400a18a0
lea rcx, [rbp - 0xa]
mov rdx, qword [rbp - 8]
lea rax, [rbp - 0x30]
mov r8, rcx
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp - 0xa]
mov rcx, rax
call sym.std::allocator_char_::allocator__
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.free
lea rdx, [rbp - 0x30]
mov rax, qword [rbp + 0x20]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
jmp 0x1400075e8
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.free
lea rax, [rbp - 9]
mov rcx, rax
call fcn.1400a18a0
lea rdx, [rbp - 9]
mov rax, qword [rbp + 0x20]
mov r8, rdx
mov edx, 0
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp - 9]
mov rcx, rax
call sym.std::allocator_char_::allocator__
jmp 0x1400075e8
mov rax, qword [rbp + 0x20]
add rsp, 0x58
pop rbx
pop rbp
ret
Function at 0x140009060
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r11d, dword [rsp + 0x90]
mov eax, r11d
and eax, 0xfffffff9
cmp eax, 1
jne 0x140009246
mov rax, r9
mov rdi, rdx
mov r12, rcx
mov rbp, r8
movabs rdx, 0xaaaaaaaaaaaaaaab
mov rbx, r9
mul rdx
shr rdx, 1
mov rsi, rdx
lea rax, [rdx + rdx*2]
mov rdx, r9
shl rsi, 2
sub rdx, rax
je 0x1400090c7
test r11b, 2
jne 0x140009225
add rsi, 4
cmp rsi, rdi
jae 0x140009246
and r11d, 4
je 0x140009155
test rbx, rbx
je 0x1400091ea
lea r14, [rbp + rbx]
xor r11d, r11d
xor ebx, ebx
xor r10d, r10d
movzx eax, byte [rbp]
shl r11d, 8
add r10, 8
add r11d, eax
sub r10, 6
mov eax, r11d
mov r15, rbx
add rbx, 1
mov ecx, r10d
shr eax, cl
mov ecx, eax
and ecx, 0x3f
call sym.b64_byte_to_urlsafe_char
mov byte [r12 + rbx - 1], al
cmp r10, 5
ja 0x1400090fb
add rbp, 1
cmp r14, rbp
jne 0x1400090ec
test r10, r10
je 0x1400091cb
mov ecx, 6
sub ecx, r10d
shl r11d, cl
mov ecx, r11d
and ecx, 0x3f
call sym.b64_byte_to_urlsafe_char
mov byte [r12 + rbx], al
lea rbx, [r15 + 2]
jmp 0x1400091cb
test rbx, rbx
je 0x1400091ea
lea r14, [rbp + rbx]
xor r10d, r10d
xor ebx, ebx
movzx eax, byte [rbp]
shl r11d, 8
add r10, 8
add r11d, eax
sub r10, 6
mov eax, r11d
mov r15, rbx
add rbx, 1
mov ecx, r10d
shr eax, cl
mov ecx, eax
and ecx, 0x3f
call sym.b64_byte_to_char
mov byte [r12 + rbx - 1], al
cmp r10, 5
ja 0x140009177
add rbp, 1
cmp r14, rbp
jne 0x140009168
test r10, r10
je 0x1400091cb
mov ecx, 6
sub ecx, r10d
shl r11d, cl
mov ecx, r11d
and ecx, 0x3f
call sym.b64_byte_to_char
mov byte [r12 + rbx], al
lea rbx, [r15 + 2]
cmp rsi, rbx
jae 0x1400091ea
mov r8d, 0xe6
lea rdx, str..._.._.._libsodium_1.0.18_src_libsodium_sodium_codecs.c
lea rcx, str.b64_pos___b64_len
call qword [sym.imp.msvcrt.dll__assert]
cmp rbx, rsi
jae 0x140009232
add rbx, r12
lea rax, [r12 + rsi]
mov byte [rbx], 0x3d
add rbx, 1
cmp rax, rbx
jne 0x1400091f6
add rsi, 1
mov byte [r12 + rsi - 1], 0
cmp rdi, rsi
ja 0x140009202
add rsp, 0x28
mov rax, r12
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
shr rdx, 1
lea rsi, [rsi + rdx + 2]
jmp 0x1400090c7
mov rsi, rbx
add rsi, 1
mov byte [r12 + rsi - 1], 0
cmp rdi, rsi
ja 0x140009202
jmp 0x140009211
call sym.sodium_misuse
nop dword [rax + rax]
Function at 0x140009c40
Capabilities:
Get system information on windows

Disassembly:
push rbp
mov rbp, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x50
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
mov qword [0x14014a1b0], rax
cmp rax, 0xf
jbe 0x140009c7d
mov edx, 0x10
lea rcx, [0x14014a1a0]
call sym.randombytes_buf
xor eax, eax
leave
ret
call sym.sodium_misuse
nop dword [rax]
nop word cs:[rax + rax]

Function at 0x14000a0f0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
mov r10, qword [rbp + 0x30]
mov qword [rbp + 0x20], r8
mov rcx, qword [rbp + 0x38]
test r8, r8
je 0x14000a21e
mov rbx, rdx
xor eax, eax
lea r15, [rsp + 0x40]
movzx edx, byte [rcx + rax]
mov byte [r15 + rax], dl
add rax, 1
cmp rax, 0x20
jne 0x14000a12d
xor eax, eax
lea r12, [rsp + 0x30]
movzx ecx, byte [r9 + rax]
mov byte [r12 + rax], cl
add rax, 1
cmp rax, 8
jne 0x14000a146
lea r13, [rsp + 0x38]
mov rax, r13
mov byte [rax], r10b
add rax, 1
shr r10, 8
cmp rax, r15
jne 0x14000a161
cmp qword [rbp + 0x20], 0x3f
jbe 0x14000a231
mov rax, qword [rbp + 0x20]
mov rsi, qword [rbp + 0x10]
lea r14, [rsp + 0x60]
sub rax, 0x40
and rax, 0xffffffffffffffc0
add rax, 0x40
mov qword [rsp + 0x28], rax
lea rdi, [rbx + rax]
xor r9d, r9d
mov r8, r15
mov rdx, r12
mov rcx, r14
call sym.crypto_core_salsa20
xor eax, eax
movzx r9d, byte [rbx + rax]
xor r9b, byte [r14 + rax]
mov byte [rsi + rax], r9b
add rax, 1
cmp rax, 0x40
jne 0x14000a1b1
mov r9, r13
mov eax, 1
movzx r10d, byte [r9]
add r9, 1
add eax, r10d
mov byte [r9 - 1], al
shr eax, 8
cmp r9, r15
jne 0x14000a1d0
add rbx, 0x40
add rsi, 0x40
cmp rdi, rbx
jne 0x14000a19e
mov rax, qword [rsp + 0x28]
add qword [rbp + 0x10], rax
and qword [rbp + 0x20], 0x3f
jne 0x14000a239
mov edx, 0x40
mov rcx, r14
call sym.sodium_memzero
mov edx, 0x20
mov rcx, r15
call sym.sodium_memzero
lea rsp, [rbp - 0x38]
xor eax, eax
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rdi, rbx
lea r14, [rsp + 0x60]
mov rdx, r12
xor r9d, r9d
mov r8, r15
mov rcx, r14
call sym.crypto_core_salsa20
mov r12d, dword [rbp + 0x20]
xor eax, eax
mov rcx, qword [rbp + 0x10]
movzx edx, byte [rdi + rax]
xor dl, byte [r14 + rax]
mov byte [rcx + rax], dl
add rax, 1
cmp r12d, eax
ja 0x14000a250
jmp 0x14000a204

Function at 0x14000a400
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140102074]
test eax, eax
jne 0x14000a418
mov dword [0x140102074], 1
mov eax, 0xffffffff
cmp rdx, rax
ja 0x14000a430
call sym.SystemFunction036
test al, al
je 0x14000a430
add rsp, 0x28
ret
call sym.sodium_misuse
nop
nop word cs:[rax + rax]
Function at 0x14000d3e0
Capabilities:
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov qword [rsp + 0x70], rcx
test r9, r9
je 0x14000d61c
mov edi, dword [r9]
mov ebx, dword [r9 + 4]
mov r10d, dword [r9 + 8]
mov r15d, dword [r9 + 0xc]
mov eax, dword [r8 + 4]
mov r11d, dword [rdx + 4]
mov dword [rsp + 0x1c], 0xa
mov r13d, dword [rdx]
mov r12d, dword [r8]
mov ecx, dword [r8 + 0xc]
mov r14d, dword [r8 + 0x10]
mov dword [rsp + 8], eax
mov eax, dword [r8 + 8]
mov esi, dword [r8 + 0x14]
mov dword [rsp + 4], r11d
mov r9d, dword [r8 + 0x18]
mov r11d, dword [rdx + 8]
mov dword [rsp + 0xc], eax
mov edx, dword [rdx + 0xc]
mov eax, dword [r8 + 0x1c]
lea r8d, [rdi + rsi]
lea ebp, [r13 + r10]
rol r8d, 7
rol ebp, 7
xor ecx, r8d
xor ebp, eax
lea r8d, [rcx + rdi]
rol r8d, 9
xor r8d, r11d
mov r11d, r8d
lea r8d, [rcx + r8]
rol r8d, 0xd
mov dword [rsp + 0x10], r11d
xor r8d, esi
mov esi, r8d
mov r8d, r11d
lea r11d, [r14 + r15]
add r8d, esi
mov dword [rsp + 0x14], esi
rol r11d, 7
xor r11d, dword [rsp + 0xc]
ror r8d, 0xe
xor edi, r8d
lea r8d, [r12 + rbx]
rol r8d, 7
xor edx, r8d
lea r8d, [rdx + rbx]
rol r8d, 9
mov esi, r8d
xor esi, r9d
lea r8d, [rdx + rsi]
mov dword [rsp + 0x18], esi
rol r8d, 0xd
xor r12d, r8d
lea r8d, [rsi + r12]
ror r8d, 0xe
xor ebx, r8d
lea r8d, [rbp + r10]
rol r8d, 9
xor r8d, dword [rsp + 8]
lea eax, [rbp + r8]
rol eax, 0xd
xor r13d, eax
lea eax, [r8 + r13]
ror eax, 0xe
xor r10d, eax
lea eax, [r11 + r15]
rol eax, 9
xor eax, dword [rsp + 4]
lea r9d, [r11 + rax]
rol r9d, 0xd
xor r9d, r14d
lea esi, [rax + r9]
ror esi, 0xe
xor r15d, esi
lea esi, [rdi + r11]
rol esi, 7
xor r12d, esi
lea esi, [rdi + r12]
rol esi, 9
xor esi, r8d
lea r8d, [r12 + rsi]
mov dword [rsp + 8], esi
rol r8d, 0xd
mov r14d, r8d
xor r14d, r11d
add esi, r14d
mov dword [rsp + 0xc], r14d
mov r8d, esi
lea esi, [rbp + r15]
ror r8d, 0xe
rol esi, 7
xor esi, dword [rsp + 0x14]
xor edi, r8d
lea r8d, [rcx + rbx]
rol r8d, 7
xor r13d, r8d
lea r8d, [rbx + r13]
rol r8d, 9
mov r14d, r8d
xor r14d, eax
lea eax, [r13 + r14]
mov dword [rsp + 4], r14d
rol eax, 0xd
xor ecx, eax
lea eax, [r14 + rcx]
lea r14d, [rdx + r10]
rol r14d, 7
ror eax, 0xe
xor r14d, r9d
xor ebx, eax
lea r9d, [r15 + rsi]
lea r11d, [r10 + r14]
rol r9d, 9
xor r9d, dword [rsp + 0x18]
rol r11d, 9
xor r11d, dword [rsp + 0x10]
lea eax, [r14 + r11]
rol eax, 0xd
xor edx, eax
lea eax, [r11 + rdx]
ror eax, 0xe
xor r10d, eax
lea eax, [rsi + r9]
rol eax, 0xd
xor eax, ebp
lea r8d, [r9 + rax]
ror r8d, 0xe
xor r15d, r8d
sub dword [rsp + 0x1c], 1
jne 0x14000d44f
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 4]
mov dword [rax], edi
mov dword [rax + 4], ebx
mov dword [rax + 8], r10d
mov dword [rax + 0xc], r15d
mov dword [rax + 0x10], r13d
mov dword [rax + 0x14], ecx
mov dword [rax + 0x18], r11d
mov dword [rax + 0x1c], edx
add rsp, 0x28
xor eax, eax
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r15d, 0x6b206574
mov r10d, 0x79622d32
mov ebx, 0x3320646e
mov edi, 0x61707865
jmp 0x14000d40d
Function at 0x14000da90
Capabilities:
Hash data using sha512

Disassembly:
movabs rax, 0xbb67ae8584caa73b
push rdi
lea rdi, [rcx + 0x48]
mov r9, rcx
mov qword [rcx + 8], rax
and rdi, 0xfffffffffffffff8
movabs rax, 0x3c6ef372fe94f82b
movabs r8, 0x6a09e667f3bcc908
mov qword [rcx + 0x10], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x18], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x20], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x28], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x30], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rcx + 0x38], rax
mov eax, ecx
sub eax, edi
mov qword [rcx], r8
mov qword [rcx + 0x40], 0
mov qword [rcx + 0x161], 0
lea ecx, [rax + 0x169]
xor eax, eax
shr ecx, 3
rep stosq qword [rdi], rax
mov rcx, r8
jmp 0x14000db39
mov rcx, qword [r9 + rax*8]
xor rcx, qword [rdx + rax*8]
mov qword [r9 + rax*8], rcx
add rax, 1
cmp rax, 8
jne 0x14000db35
xor eax, eax
pop rdi
ret
Function at 0x14001f820
Capabilities:
Encrypt data using curve25519

Disassembly:
push rbp
xor eax, eax
mov rbp, rsp
push r13
push r12
mov r12, rcx
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x150
movzx ecx, byte [rdx + rax]
mov byte [r12 + rax], cl
add rax, 1
cmp rax, 0x20
jne 0x14001f839
movzx eax, byte [r12 + 0x1f]
and byte [r12], 0xf8
mov rdx, r12
lea r13, [rsp + 0x20]
lea rcx, [rsp + 0xb0]
lea rbx, [rsp + 0x80]
and eax, 0x7f
or eax, 0x40
mov byte [r12 + 0x1f], al
call sym.ge25519_scalarmult_base
mov r8, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xe8]
add r8, qword [rsp + 0x108]
add rcx, qword [rsp + 0x110]
mov rdx, qword [rsp + 0xf0]
add rdx, qword [rsp + 0x118]
mov qword [rsp + 0x58], r8
lea r8, [rsp + 0xd8]
mov qword [rsp + 0x60], rcx
mov rax, qword [rsp + 0xf8]
mov rcx, rbx
add rax, qword [rsp + 0x120]
mov qword [rsp + 0x68], rdx
lea rdx, [rsp + 0x100]
mov r9, qword [rsp + 0xd8]
add r9, qword [rsp + 0x100]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x50], r9
call sym.fe25519_sub
mov rdx, rbx
call sym.fe25519_invert
lea rdx, [rsp + 0x50]
mov r8, rbx
mov rcx, r13
call sym.fe25519_mul
mov rdx, r13
mov rcx, r12
call sym.fe25519_tobytes
lea rsp, [rbp - 0x18]
xor eax, eax
pop rbx
pop r12
pop r13
pop rbp
ret

Function at 0x14001fee0
Capabilities:
Encrypt data using curve25519

Disassembly:
push r14
xor eax, eax
xor r14d, r14d
push r13
mov r13, rdx
push r12
mov r12, rcx
push rbp
lea rbp, [0x14010785f]
push rdi
lea r11, [rbp - 0x1f]
push rsi
push rbx
mov rbx, r8
sub rsp, 0x10
mov byte [rsp + 0xf], 0
lea rsi, [rsp + 9]
lea rcx, [rsp + 0x10]
mov dword [rsp + 9], 0
mov word [rsp + 0xd], ax
xor eax, eax
movzx edx, byte [rbx]
mov rdi, rsi
mov r10, r11
mov r9, rsi
jmp 0x14001ff3b
movzx r14d, byte [r9]
movzx eax, byte [r10]
xor eax, edx
add r9, 1
add r10, 0x20
or eax, r14d
mov byte [r9 - 1], al
cmp r9, rcx
jne 0x14001ff33
add r11, 1
movzx r14d, byte [rsp + 9]
add rbx, 1
cmp r11, rbp
je 0x14001ff6a
movzx eax, byte [r11]
jmp 0x14001ff25
movzx r9d, byte [r8 + 0x1f]
lea rdx, [0x14010787f]
xor eax, eax
lea r10, [rdx + 0xc0]
and r9d, 0x7f
jmp 0x14001ff90
movzx r14d, byte [rsi]
movzx eax, byte [rdx]
add rdx, 0x20
xor eax, r9d
add rsi, 1
or eax, r14d
mov byte [rsi - 1], al
cmp r10, rdx
jne 0x14001ff85
xor edx, edx
movzx eax, byte [rdi]
add rdi, 1
sub eax, 1
or edx, eax
cmp rdi, rcx
jne 0x14001ffa4
and dh, 1
jne 0x14001ffd3
add rsp, 0x10
mov rdx, r13
mov rcx, r12
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp sym.crypto_scalarmult_curve25519_ref10.part.0
add rsp, 0x10
mov eax, 0xffffffff
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x140032310
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]