joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001b960
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001a570
mov ecx, dword [0x1400c7308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001b918
test byte [rbx + 0x40], 0xc
jne 0x14001b8cf
mov eax, dword [0x1400fac48]
test eax, eax
jne 0x14001b8e0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.1400197f0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001b903
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001b903
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001b92c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140019ac0
call fcn.14001a620
mov rbx, rax
test rax, rax
jne 0x14001b8bf
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001b94a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140019ac0
call fcn.14001b7c0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001b9d0
call fcn.1400194b0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001ba08
call fcn.14001a570
mov ecx, dword [0x1400c7308]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001ba60
test esi, esi
je 0x14001b9e6
call fcn.14001b8a0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001ba40
mov edx, edi
call fcn.140019580
call fcn.14001b8a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001a570
mov ecx, dword [0x1400c7308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001ba50
call fcn.14001b8a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001b8a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001a570
mov ecx, dword [0x1400c7308]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14001b9a5
call fcn.14001a620
mov rbx, rax
jmp 0x14001b9a5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001b9be
call fcn.14001a620
jmp 0x14001b9e6
call fcn.14001a620
mov rbx, rax
jmp 0x14001b9a1

Function at 0x14001ba70
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14001a570
mov ecx, dword [0x1400c7308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001bae0
test esi, esi
je 0x14001bac0
call fcn.14001b8a0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001baf0
mov edx, esi
call fcn.140019580
call fcn.14001b8a0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001b8a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001b8a0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001a620
mov rbx, rax
jmp 0x14001ba91
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001baaa
Function at 0x14001fa70
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fread
mov edx, 0xffffffff
test rax, rax
jle 0x14001fa9c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x140020570
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r12
push rdi
push rsi
push rbx
sub rsp, 0xa0
lea rbp, [rsp + 0xa0]
mov rdi, qword [0x1400d1bc0]
movabs rsi, 0x657220677562206c
movabs rbx, 0x6c75662074696d62
movabs r9, 0x756f6e6520746f6e
movabs r10, 0x6563617073206867
movabs r11, 0x726f6620726f6620
movabs r12, 0x617078652074616d
movabs r14, 0x5028206e6f69736e
movabs r15, 0x757320657361656c
mov rax, qword [rdi]
mov qword [rbp - 8], rax
xor eax, eax
mov qword [rbp - 0x48], rsi
sub rdx, rcx
movabs rsi, 0x2f2f3a7370747468
mov qword [rbp - 0x50], rbx
lea rax, [rdx + 0x78]
movabs rbx, 0x2074612074726f70
mov qword [rbp - 0x38], rsi
and rax, 0xfffffffffffffff0
movabs rsi, 0x736775622f67726f
mov qword [rbp - 0x28], rsi
movabs rsi, 0x202020200a3a29
mov qword [rbp - 0x40], rbx
movabs rbx, 0x2e756e672e636367
mov qword [rbp - 0x30], rbx
movabs rbx, 0x2f736775622f6772
mov qword [rbp - 0x1f], rsi
mov rsi, rdx
mov qword [rbp - 0x80], r9
mov qword [rbp - 0x78], r10
mov qword [rbp - 0x70], r11
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x27], rbx
call fcn.14000e240
movabs rdx, 0x657220677562206c
movdqu xmm0, xmmword [rbp - 0x30]
sub rsp, rax
mov r8, rsi
movabs rax, 0x6c75662074696d62
mov qword [rsp + 0x50], rax
lea rbx, [rsp + 0x20]
movabs rax, 0x2074612074726f70
mov qword [rbx + 0x40], rax
mov rax, qword [rbp - 0x20]
mov qword [rbx + 0x38], rdx
movabs rdx, 0x2f2f3a7370747468
mov qword [rbx + 0x48], rdx
mov rdx, rcx
mov qword [rbx + 0x60], rax
lea rax, [rbx + 0x68]
mov qword [rbx], r9
mov rcx, rax
mov qword [rbx + 8], r10
mov qword [rbx + 0x10], r11
mov qword [rbx + 0x18], r12
mov qword [rbx + 0x20], r14
mov qword [rbx + 0x28], r15
movups xmmword [rbx + 0x50], xmm0
call sub.msvcrt.dll_memcpy
mov byte [rbx + rsi + 0x68], 0
mov rax, qword [rbp - 8]
sub rax, qword [rdi]
jne 0x140020701
mov rcx, rbx
call sym.__ZNKSbIwSt11char_traitsIwESaIwEE7compareEPKw
call fcn.14000f000
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140020710
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rdi, qword [0x1400d1bc0]
mov rax, qword [rdi]
mov qword [rsp + 0x28], rax
xor eax, eax
cmp byte [0x1400ca090], 0
jne 0x14002083c
mov byte [0x1400ca090], 1
call fcn.1400c5aa0
test rax, rax
je 0x140020808
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x24]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x24], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call fcn.14000d020
mov ecx, 2
mov rsi, qword [fcn.140017940]
mov rbp, rax
call rsi
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call fcn.140017f88
mov edx, dword [rsp + 0x24]
mov ecx, 2
test edx, edx
je 0x1400207f9
call rsi
mov rcx, rbx
mov rdx, rax
call sub.msvcrt.dll_fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x1400cb661]
mov r9, rax
call fcn.140017f88
mov eax, dword [rsp + 0x24]
test eax, eax
jne 0x1400207ea
mov rcx, rbp
call fcn.140017f78
mov rax, qword [rsp + 0x28]
sub rax, qword [rdi]
jne 0x14002086b
call sym._87
call rsi
mov rcx, rbp
mov rdx, rax
call sub.msvcrt.dll_fputs
jmp 0x1400207b9
mov ecx, 2
call qword [fcn.140017940]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call fcn.140017f88
mov rax, qword [rsp + 0x28]
sub rax, qword [rdi]
jne 0x14002086b
call sub.msvcrt.dll_abort
mov ecx, 2
call qword [fcn.140017940]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call fcn.140017f88
mov rax, qword [rsp + 0x28]
sub rax, qword [rdi]
je 0x140020837
call fcn.14000f000
sub rdx, 1
mov rcx, rax
jne 0x1400208db
call sym._71
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call fcn.140017f88
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sub.msvcrt.dll_fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sub.msvcrt.dll_fputc
call fcn.1400c5ad0
jmp 0x14002082d
call sym._71
call fcn.1400c5ad0
jmp 0x14002082d

Function at 0x140087680
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, qword [sym.imp.msvcrt.dll__read]
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, rdi
call fcn.140087490
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call rbp
movsxd r13, eax
cmp eax, 0xffffffff
je 0x1400876d0
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call r12
cmp dword [rax], 4
je 0x1400876a3
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x1400a8490
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x14], 0x80000000
mov dword [rbp - 0x18], 0x7fffffff
mov qword [rbp - 8], 0
jmp 0x1400a8522
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 8]
mov eax, dword [rax + rdx*4]
and eax, 0x80000000
mov ecx, eax
mov rax, qword [rbp - 8]
lea rdx, [rax + 1]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
and eax, 0x7fffffff
or eax, ecx
mov dword [rbp - 0x24], eax
mov rax, qword [rbp - 8]
lea rdx, [rax + 0x18d]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
mov edx, dword [rbp - 0x24]
shr edx, 1
xor edx, eax
mov eax, dword [rbp - 0x24]
and eax, 1
test eax, eax
je 0x1400a8509
mov eax, 0x9908b0df
jmp 0x1400a850e
mov eax, 0
xor eax, edx
mov ecx, eax
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 8]
mov dword [rax + rdx*4], ecx
add qword [rbp - 8], 1
cmp qword [rbp - 8], 0xe2
jbe 0x1400a84b4
mov qword [rbp - 0x10], 0xe3
jmp 0x1400a85a4
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x10]
mov eax, dword [rax + rdx*4]
and eax, 0x80000000
mov ecx, eax
mov rax, qword [rbp - 0x10]
lea rdx, [rax + 1]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
and eax, 0x7fffffff
or eax, ecx
mov dword [rbp - 0x20], eax
mov rax, qword [rbp - 0x10]
lea rdx, [rax - 0xe3]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
mov edx, dword [rbp - 0x20]
shr edx, 1
xor edx, eax
mov eax, dword [rbp - 0x20]
and eax, 1
test eax, eax
je 0x1400a858b
mov eax, 0x9908b0df
jmp 0x1400a8590
mov eax, 0
xor eax, edx
mov ecx, eax
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x10]
mov dword [rax + rdx*4], ecx
add qword [rbp - 0x10], 1
cmp qword [rbp - 0x10], 0x26e
jbe 0x1400a8536
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x9bc]
and eax, 0x80000000
mov edx, eax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax]
and eax, 0x7fffffff
or eax, edx
mov dword [rbp - 0x1c], eax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x630]
mov edx, dword [rbp - 0x1c]
shr edx, 1
xor edx, eax
mov eax, dword [rbp - 0x1c]
and eax, 1
test eax, eax
je 0x1400a85f1
mov eax, 0x9908b0df
jmp 0x1400a85f6
mov eax, 0
xor edx, eax
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x9bc], edx
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x9c0], 0
nop
add rsp, 0x30
pop rbp
ret
Function at 0x1400a8620
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov eax, dword [rbp + 0x18]
mov ecx, eax
call fcn.1400ba040
mov rdx, qword [rbp + 0x10]
mov dword [rdx], eax
mov qword [rbp - 8], 1
jmp 0x1400a8698
mov rax, qword [rbp - 8]
lea rdx, [rax - 1]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
shr eax, 0x1e
xor dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
imul eax, eax, 0x6c078965
mov dword [rbp - 0xc], eax
mov rax, qword [rbp - 8]
mov ecx, eax
call fcn.1400ba070
add dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
mov ecx, eax
call fcn.1400ba040
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp - 8]
mov dword [rdx + rcx*4], eax
add qword [rbp - 8], 1
cmp qword [rbp - 8], 0x26f
jbe 0x1400a8649
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x9c0], 0x270
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400a86f0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x9c0]
cmp rax, 0x26f
jbe 0x1400a871b
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym._47
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x9c0]
lea rcx, [rax + 1]
mov rdx, qword [rbp + 0x10]
mov qword [rdx + 0x9c0], rcx
mov rdx, qword [rbp + 0x10]
mov eax, dword [rdx + rax*4]
mov dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shr eax, 0xb
xor dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shl eax, 7
and eax, 0x9d2c5680
xor dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shl eax, 0xf
and eax, 0xefc60000
xor dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shr eax, 0x12
xor dword [rbp - 4], eax
mov eax, dword [rbp - 4]
add rsp, 0x30
pop rbp
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x0050c260]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x0050c270]
mov dword [rax], 1
mov rax, qword [0x0050c280]
mov dword [rax], 1
mov rax, qword [0x0050c250]
mov dword [rax], 1
mov rax, qword [0x0050bff0]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010d0
mov rax, qword [0x0050c240]
mov dword [0x00540020], ecx
mov eax, dword [rax]
test eax, eax
je 0x4010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x0050c0f0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x0050c0d0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x0050b410]
cmp dword [rax], 1
je 0x401108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401120
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067
Function at 0x4055d2
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 0x4056f1
mov eax, dword [rbp + 0x3bc]
test eax, eax
je 0x4056f1
lea rax, [rbp + 0x3c3]
mov rcx, rax
call fcn.0049ce40
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 0x405639
mov rax, qword [rbp + 0x400]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x40573e
add rsp, 0x450
pop rbx
pop rdi
pop rbp
ret

Function at 0x405833
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov dword [rbp + 0x10], ecx
mov r8d, dword [rbp + 0x10]
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 0x405875
Capabilities:
Get session user name

Disassembly:
push rbp
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x10], rcx
mov ecx, 0x101
call sym.malloc
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x40], 0x101
lea rdx, [rbp - 0x40]
mov rax, qword [rbp - 0x38]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_GetUserNameA]
call rax
test eax, eax
setne al
test al, al
je 0x405912
lea rax, [rbp - 0x3a]
mov rcx, rax
call fcn.0049ce40
lea rcx, [rbp - 0x3a]
mov rdx, qword [rbp - 0x38]
lea rax, [rbp - 0x60]
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 - 0x3a]
mov rcx, rax
call sym.std::allocator_char_::allocator__
mov rax, qword [rbp - 0x38]
mov rcx, rax
call sym.free
lea rax, [rbp - 0x60]
mov rdx, rax
mov rcx, qword [rbp - 0x10]
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 - 0x60]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
jmp 0x405982
mov rax, qword [rbp - 0x38]
mov rcx, rax
call sym.free
lea rax, [rbp - 0x39]
mov rcx, rax
call fcn.0049ce40
lea rax, [rbp - 0x39]
mov r8, rax
mov edx, 0
mov rcx, qword [rbp - 0x10]
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_
nop
lea rax, [rbp - 0x39]
mov rcx, rax
call sym.std::allocator_char_::allocator__
jmp 0x405982
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rbp
ret
Function at 0x406ff0
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 0x4071d6
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 0x407057
test r11b, 2
jne 0x4071b5
add rsi, 4
cmp rsi, rdi
jae 0x4071d6
and r11d, 4
je 0x4070e5
test rbx, rbx
je 0x40717a
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 0x40708b
add rbp, 1
cmp r14, rbp
jne 0x40707c
test r10, r10
je 0x40715b
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 0x40715b
test rbx, rbx
je 0x40717a
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 0x407107
add rbp, 1
cmp r14, rbp
jne 0x4070f8
test r10, r10
je 0x40715b
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 0x40717a
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 0x4071c2
add rbx, r12
lea rax, [r12 + rsi]
mov byte [rbx], 0x3d
add rbx, 1
cmp rax, rbx
jne 0x407186
add rsi, 1
mov byte [r12 + rsi - 1], 0
cmp rdi, rsi
ja 0x407192
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 0x407057
mov rsi, rbx
add rsi, 1
mov byte [r12 + rsi - 1], 0
cmp rdi, rsi
ja 0x407192
jmp 0x4071a1
call sym.sodium_misuse
nop dword [rax + rax]
Function at 0x407bd0
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 [0x00540170], rax
cmp rax, 0xf
jbe 0x407c0d
mov edx, 0x10
lea rcx, [0x00540160]
call sym.randombytes_buf
xor eax, eax
leave
ret
call sym.sodium_misuse
nop dword [rax]
nop word cs:[rax + rax]

Function at 0x408080
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 0x4081ae
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 0x4080bd
xor eax, eax
lea r12, [rsp + 0x30]
movzx ecx, byte [r9 + rax]
mov byte [r12 + rax], cl
add rax, 1
cmp rax, 8
jne 0x4080d6
lea r13, [rsp + 0x38]
mov rax, r13
mov byte [rax], r10b
add rax, 1
shr r10, 8
cmp rax, r15
jne 0x4080f1
cmp qword [rbp + 0x20], 0x3f
jbe 0x4081c1
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 0x408141
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 0x408160
add rbx, 0x40
add rsi, 0x40
cmp rdi, rbx
jne 0x40812e
mov rax, qword [rsp + 0x28]
add qword [rbp + 0x10], rax
and qword [rbp + 0x20], 0x3f
jne 0x4081c9
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 0x4081e0
jmp 0x408194