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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14064e8e8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1401399cd
xor eax, eax
jmp 0x140139b22
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x1401399f8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x1401399f8
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], dil
mov eax, edi
jmp 0x140139b22
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140139b15
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140139a3b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x140139a66
mov rdx, qword [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 0x140139b1a
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 0x140139ad5
sub eax, 1
je 0x140139ad5
cmp eax, 2
jne 0x140139b15
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 0x140139b1a
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140139b03
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 0x140139b15
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov eax, edi
jne 0x140139b1a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140347220
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14013a230
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rdx, str.usage:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140138300
mov rcx, rax
mov rdx, rbx
call fcn.140138300
mov rcx, rax
lea rdx, str.___vIAPSR___O_level____i_indent_spc____o_output_filename____W_boc_filename____func_source_filename__..._n_tGenerates_Fift_TVM_assembler_code_from_a_funC_source_n_I_tEnables_interactive_mode__parse_stdin__n_o_fift_output_filename__tWrites_generated_code_into_specified_file_instead_of_stdout_n_v_tIncreases_verbosity_level__extra_information_output_into_stderr__n_i_indent__tSets_indentation_for_the_output_code__in_two_space_units__n_A_tPrefix_code_with___Asm.fif__include__preamble_n_O_level__tSets_optimization_level__2_by_default__n_P_tEnvelope_code_into_PROGRAM_..._END_c_n_S_tInclude_stack_layout_comments_in_the_output_code_n_R_tInclude_operation_rewrite_comments_in_the_output_code_n_W_output_boc_file__tInclude_Fift_code_to_serialize_and_save_generated_code_into_specified_BoC_file._Enables__A_and__P._n_t_s_tOutput_semantic_version_of_FunC_and_exit_n_t_V_version__tShow_func_build_information_n
call fcn.140138300
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x14013a2a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14013a2d1
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 case.default.0x14013a2e8
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 qword [rsp + 0x38], rdi
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14013a310
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14013a312
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14013a344
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rdi, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
mov rbx, rdi
je 0x14013a3e1
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14013a382
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 rdi, 0xfff
jbe 0x14013a3c1
nop dword [rax + rax]
mov r9, qword [rsi + 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 rdi, rax
add r14, rax
mov rbx, rdi
cmp rax, 0xfff
jne 0x14013a402
cmp rdi, rax
ja 0x14013a390
test rbx, rbx
je 0x14013a3e1
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
sub rbp, rdi
jmp 0x14013a3e4
Function at 0x14013a410
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je case.default.0x14013a440
mov rbx, qword [rsp + 0x40]
mov rdi, 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__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x14013a468
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14013a46a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14013a4c3
test ecx, ecx
jle 0x14013a4a3
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14013a4c3
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14013a4c3
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 + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1401721d0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14064e8e8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rcx
mov qword [rsp + 0x68], rcx
cmp qword [rcx + 0x18], 0x10
jb 0x140172203
mov rcx, qword [rcx]
mov rax, qword [rbx + 0x10]
cmp byte [rax + rcx - 1], 0x5f
jne 0x140172222
mov r8, rbx
lea rdx, [rsp + 0x28]
lea rcx, [0x140656e18]
call fcn.1401654c0
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.14013ac30
mov rdi, rax
mov qword [rsp + 0x20], rax
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14013ac30
xor r9d, r9d
lea r8d, [r9 + 1]
mov rdx, rax
lea rcx, [0x14057c290]
call fcn.14018a0a0
movsxd rsi, eax
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140172297
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140172292
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140172379
mov rcx, r8
call fcn.140346eb8
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov rax, qword [0x14057c298]
mov rdx, qword [rax + rsi*8]
test rdx, rdx
je 0x14017230b
cmp dword [rdx + 0x20], 0
jge 0x14017230b
lea rdx, str.fatal:_global_function__
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140138300
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1401722e0
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140138770
lea rdx, str.__already_defined_as_a_keyword
mov rcx, rax
call fcn.140138300
lea rdx, [0x140140f20]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0xffffffff
lea r8, [rsp + 0x28]
mov dl, 1
mov ecx, esi
call fcn.140189dd0
mov rdi, rax
test rax, rax
jne 0x140172380
lea rdx, str.fatal:_global_function__
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140138300
mov rdx, rbx
mov rcx, rax
call fcn.140138120
mov rcx, rax
lea rdx, str.__already_defined
call fcn.140138300
lea rdx, [0x140140f20]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea ecx, [rdi + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, rbx
call fcn.140139110
mov rax, rdi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140347220
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1401d0b60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
movsxd r11, r8d
mov edi, r9d
mov rax, rdx
mov rbx, rcx
cmp r9d, 0x34
jae 0x1401d0bfe
mov rdx, qword [rcx]
mov ebp, 1
mov r8d, r9d
mov rcx, rax
mov dword [rdx], ebp
mov edx, r11d
call fcn.1401ce1a0
mov rdx, qword [rbx + 8]
test edi, edi
jne 0x1401d0bbc
mov qword [rdx], 0
movzx eax, bpl
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x40
sub ecx, edi
cmp byte [rsp + 0x50], 0
je 0x1401d0be4
sar rax, cl
mov qword [rdx], rax
movzx eax, bpl
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
shr rax, cl
mov qword [rdx], rax
movzx eax, bpl
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, r11
mov qword [rsp + 0x30], rsi
sar rcx, 3
and r11d, 7
add rax, rcx
cmp byte [rsp + 0x50], 0
je 0x1401d0c2b
mov edx, pe_nt_image_headers64
mov ecx, r11d
sar edx, cl
test byte [rax], dl
je 0x1401d0c2b
mov sil, 0xff
jmp 0x1401d0c2e
xor sil, sil
add r9d, r11d
mov r10d, r9d
shr r10, 3
add r10, rax
cmp rax, r10
jae 0x1401d0c72
movzx r8d, byte [rax]
mov edx, 0xff
movzx ecx, sil
xor r8d, ecx
mov ecx, r11d
sar edx, cl
test edx, r8d
jne 0x1401d0c72
inc rax
xor r11d, r11d
cmp rax, r10
jae 0x1401d0c72
cmp byte [rax], sil
jne 0x1401d0c72
inc rax
cmp rax, r10
jb 0x1401d0c65
and r9d, 7
je 0x1401d0c88
movzx edx, byte [r10]
mov ecx, 8
sub cl, r9b
shr edx, cl
jmp 0x1401d0c8a
xor edx, edx
mov rcx, qword [rbx]
mov ebp, 1
mov r8d, edx
mov dword [rcx], ebp
cmp r10, rax
jbe 0x1401d0ceb
nop dword [rax]
cmp r9d, 0x34
jl 0x1401d0cd1
mov rdx, qword [rbx]
movsxd rcx, dword [rdx]
cmp ecx, dword [rbx + 0x10]
jge 0x1401d0ccb
mov rdx, rcx
mov rcx, qword [rbx + 8]
mov qword [rcx + rdx*8 - 8], r8
xor r8d, r8d
mov rcx, qword [rbx]
inc dword [rcx]
sub r9d, 0x34
jmp 0x1401d0cd1
cmp r9d, 0x38
jge 0x1401d0d35
movzx edx, byte [r10 - 1]
dec r10
mov ecx, r9d
add r9d, 8
shl rdx, cl
or r8, rdx
cmp r10, rax
ja 0x1401d0ca0
sub r9d, r11d
movzx ecx, r9b
shl rbp, cl
lea rax, [rbp - 1]
and rax, r8
mov rdx, rax
sub rdx, rbp
test sil, sil
cmove rdx, rax
mov rax, qword [rbx]
movsxd rcx, dword [rax]
mov rax, qword [rbx + 8]
mov qword [rax + rcx*8 - 8], rdx
mov rcx, rbx
call fcn.1401d19c0
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov dword [rdx], 0
xor al, al
jmp 0x1401d0d20
Function at 0x1401d8a50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rdi
push r13
push r14
push r15
sub rsp, 0x50
mov r14, rdx
mov rbp, rcx
mov r13d, dword [rcx + 0x3c]
mov eax, dword [rcx + 0x44]
sub eax, r13d
cmp eax, 1
jb 0x1401d8c04
lea eax, [r13 + 1]
mov dword [rcx + 0x3c], eax
mov rbx, qword [rcx + 0x18]
test rbx, rbx
je 0x1401d8c3d
movzx eax, byte [rbx + 0x14]
and eax, 7
cmp r13d, eax
jb 0x1401d8aab
xor ebx, ebx
mov qword [rsp + 0x98], rbx
xor r15d, r15d
xor ecx, ecx
jmp 0x1401d8aef
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x50]
movzx edx, byte [rbx + 0x15]
and edx, 7
lea rbx, [rdx*4]
add rbx, r13
mov rbx, qword [rax + rbx*8]
mov rcx, rbx
mov r15, rbx
mov qword [rsp + 0x98], rbx
test rbx, rbx
je 0x1401d8aef
mov eax, 1
lock xadd dword [rbx + 8], eax
mov rbx, qword [rsp + 0x98]
test rcx, rcx
je 0x1401d8c23
mov rax, qword [rbx]
mov rdi, qword [rax + 0x18]
lea rdx, [rsp + 0x80]
mov rcx, rbp
call fcn.1401d7ca0
movzx r8d, word [rax]
lea rdx, [rsp + 0x90]
mov rcx, rbx
call rdi
nop
mov ebx, 0xffffffff
test r15, r15
je 0x1401d8b41
mov eax, ebx
lock xadd dword [r15 + 8], eax
cmp eax, 1
jne 0x1401d8b41
mov rcx, r15
call fcn.1401cdc10
nop
cmp dword [rbp + 0x30], 0
je 0x1401d8bf7
mov rax, qword [rbp + 0x28]
test rax, rax
je 0x1401d8bf7
cmp dword [rax + 8], 0
je 0x1401d8bf7
lea rcx, [rbp + 0x20]
mov r8d, r13d
lea rdx, [rsp + 0x38]
call fcn.1401e1be0
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x90], 0
mov r8, rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.1401d8170
mov rdi, rax
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x1401d8bcb
mov edx, ebx
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x1401d8bbf
call fcn.1401cdc10
mov qword [rsp + 0x90], 0
mov rax, qword [rdi]
mov qword [rsp + 0x90], rax
mov qword [rdi], 0
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1401d8bf7
lock xadd dword [rcx + 8], ebx
cmp ebx, 1
jne 0x1401d8bf7
call fcn.1401cdc10
nop
mov rax, qword [rsp + 0x90]
mov qword [r14], rax
jmp 0x1401d8c0b
mov qword [rdx], 0
mov rax, r14
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
mov r8d, 0x120
lea rdx, str.D:_a_ton_toncryptocommon_refcnt.hpp
lea rcx, str.ptr___deferencing_null_Ref_
call fcn.1401e25f0
nop
mov r8d, 0x120
lea rdx, str.D:_a_ton_toncryptocommon_refcnt.hpp
lea rcx, str.ptr___deferencing_null_Ref_
call fcn.1401e25f0
int3
Function at 0x1401da150
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov r14, rdx
mov rbp, rcx
mov ecx, dword [rcx + 0x3c]
mov eax, dword [rbp + 0x44]
sub eax, ecx
cmp r8d, eax
jae 0x1401da2f8
lea r12d, [rcx + r8]
mov rbx, qword [rbp + 0x18]
test rbx, rbx
je 0x1401da331
movzx eax, byte [rbx + 0x14]
and eax, 7
cmp r12d, eax
jb 0x1401da1a6
xor ebx, ebx
mov qword [rsp + 0x98], rbx
xor r15d, r15d
xor ecx, ecx
jmp 0x1401da1e3
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x50]
movzx edx, byte [rbx + 0x15]
and edx, 7
lea rbx, [r12 + rdx*4]
mov rbx, qword [rax + rbx*8]
mov rcx, rbx
mov r15, rbx
mov qword [rsp + 0x98], rbx
test rbx, rbx
je 0x1401da1e3
mov eax, 1
lock xadd dword [rbx + 8], eax
mov rbx, qword [rsp + 0x98]
test rcx, rcx
je 0x1401da317
mov rax, qword [rbx]
mov rdi, qword [rax + 0x18]
lea rdx, [rsp + 0x90]
mov rcx, rbp
call fcn.1401d7ca0
movzx r8d, word [rax]
lea rdx, [rsp + 0x80]
mov rcx, rbx
call rdi
nop
mov ebx, 0xffffffff
test r15, r15
je 0x1401da235
mov eax, ebx
lock xadd dword [r15 + 8], eax
cmp eax, 1
jne 0x1401da235
mov rcx, r15
call fcn.1401cdc10
nop
cmp dword [rbp + 0x30], 0
je 0x1401da2eb
mov rax, qword [rbp + 0x28]
test rax, rax
je 0x1401da2eb
cmp dword [rax + 8], 0
je 0x1401da2eb
lea rcx, [rbp + 0x20]
mov r8d, r12d
lea rdx, [rsp + 0x38]
call fcn.1401e1be0
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x80], 0
mov r8, rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.1401d8170
mov rdi, rax
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1401da2bf
mov edx, ebx
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x1401da2b3
call fcn.1401cdc10
mov qword [rsp + 0x80], 0
mov rax, qword [rdi]
mov qword [rsp + 0x80], rax
mov qword [rdi], 0
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1401da2eb
lock xadd dword [rcx + 8], ebx
cmp ebx, 1
jne 0x1401da2eb
call fcn.1401cdc10
nop
mov rax, qword [rsp + 0x80]
mov qword [r14], rax
jmp 0x1401da2ff
mov qword [rdx], 0
mov rax, r14
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov r8d, 0x120
lea rdx, str.D:_a_ton_toncryptocommon_refcnt.hpp
lea rcx, str.ptr___deferencing_null_Ref_
call fcn.1401e25f0
nop
mov r8d, 0x120
lea rdx, str.D:_a_ton_toncryptocommon_refcnt.hpp
lea rcx, str.ptr___deferencing_null_Ref_
call fcn.1401e25f0
int3
Function at 0x1401df750
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword [rdx + 8]
mov r9, rcx
movzx r10d, r8b
test al, 3
jne 0x1401df8a2
test rax, rax
je 0x1401df8a2
mov r11, qword [rdx]
mov r14, rax
shr r14, 2
xor ebp, ebp
cmp byte [rax + r11 - 1], 0x3d
jne 0x1401df7b8
movzx eax, byte [rax + r11 - 2]
cmp al, 0x3d
setne bpl
xor edi, edi
add ebp, 0xfffffffe
cmp al, 0x3d
sete dil
inc rdi
jmp 0x1401df7ba
xor edi, edi
mov r8, qword [rcx + 8]
lea rax, [r14 + r14*2]
lea rcx, [rdi + r8]
cmp rcx, rax
jb 0x1401df8a2
mov r15, qword [r9]
mov esi, r10d
shl esi, 7
xor r10d, r10d
add esi, 0x40
mov rdx, r15
lea r12, [r8 + r15]
test r14, r14
je 0x1401df895
lea rbx, [r14 - 1]
sub r11, rdi
lea r13, [0x1403823f0]
nop dword [rax]
xor r8d, r8d
mov r9, rdi
nop word [rax + rax]
movzx eax, byte [r11 + r9]
movzx eax, byte [rax + r13]
test esi, eax
jne 0x1401df82e
cmp eax, 1
je 0x1401df82e
cmp r10, rbx
jb 0x1401df8a2
cmp r9, 4
jb 0x1401df8a2
and eax, 0x3f
mov ecx, r8d
mov r8d, eax
shl ecx, 6
inc r9
or r8d, ecx
mov rax, r9
sub rax, rdi
cmp rax, 4
jb 0x1401df810
cmp r10, rbx
jae 0x1401df878
mov eax, r8d
inc r10
shr eax, 0x10
add r11, 4
mov byte [rdx], al
mov eax, r8d
shr eax, 8
mov byte [rdx + 1], al
mov byte [rdx + 2], r8b
add rdx, 3
cmp r10, r14
jb 0x1401df800
jmp 0x1401df895
lea ecx, [rbp + 3]
nop dword [rax + rax]
mov eax, r8d
shl r8d, 8
shr eax, 0x10
mov byte [rdx], al
inc rdx
sub rcx, 1
jne 0x1401df880
cmp rdx, r12
ja 0x1401df8c1
sub rdx, r15
mov rax, rdx
jmp 0x1401df8a4
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov r8d, 0xa2
lea rdx, str.D:_a_ton_toncryptocommonutil.cpp
lea rcx, str.wptr___wend
call fcn.1401e25f0
int3
Function at 0x1401e8eb0
Capabilities:
Encode data using xor

Disassembly:
mov r8, qword [rcx]
xor eax, eax
mov r9, qword [rcx + 8]
add r9, r8
cmp r8, r9
je 0x1401e8ef2
lea r10, [0x1403835d0]
nop dword [rax + rax]
movzx ecx, byte [r8]
mov edx, eax
shr rdx, 8
inc r8
xor rdx, rcx
shl eax, 8
movzx ecx, dl
movzx edx, word [r10 + rcx*2]
xor eax, edx
cmp r8, r9
jne 0x1401e8ed0
ret

Function at 0x1401e8f10
Capabilities:
Encode data using xor

Disassembly:
movups xmm0, xmmword [rcx]
mov rax, 0xffffffffffffffff
movq r8, xmm0
psrldq xmm0, 8
movq r9, xmm0
test r9, r9
je 0x1401e8f5c
lea r10, [0x140382dd0]
nop word [rax + rax]
movsx rcx, byte [r8]
lea r8, [r8 + 1]
xor rcx, rax
shr rax, 8
movzx edx, cl
xor rax, qword [r10 + rdx*8]
sub r9, 1
jne 0x1401e8f40
not rax
ret
Function at 0x1401ea870
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov rdi, r8
mov rsi, rdx
mov r15, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x1401eaa92
add rcx, 0x10
call fcn.140144d50
mov rbx, rax
xor r13d, r13d
mov dword [rbp + 0x67], r13d
lea r14, str.D:_a_ton_ton_tdutils_tdutilsportFileFd.cpp
mov qword [rbp - 0x69], r14
mov dword [rbp - 0x61], 0x107
mov rcx, qword [rdi + 8]
mov qword [rbp + 0x7f], rcx
lea rdx, [rbp + 0x7f]
lea rcx, [rbp - 0x69]
call fcn.1401e9e70
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x67]
mov r8d, eax
mov rdx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1401ea91b
mov qword [rbp - 0x69], r14
mov dword [rbp - 0x61], 0x10a
lea rdx, [rbp + 0x67]
lea rcx, [rbp - 0x69]
call fcn.1401ea060
mov qword [rsi], r13
mov qword [rsi + 8], rax
jmp 0x1401eaa5a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
mov dword [rbp + 0x7f], r13d
mov word [rbp + 0x83], r13w
lea rax, vtable.td::NullLog.0
mov qword [rbp - 0x59], rax
xor r9d, r9d
lea r8, [rbp + 0x7f]
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x31]
call fcn.14013caf0
nop
lea rdi, [rax + 0x18]
lea rcx, str.Write_to
mov qword [rbp - 0x69], rcx
mov rbx, 0xffffffffffffffff
mov rax, rbx
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x1401ea970
mov qword [rbp - 0x61], rax
lea rdx, [rbp - 0x69]
mov rcx, rdi
call fcn.1401e36f0
mov rdx, qword [r15]
test rdx, rdx
je 0x1401eaaac
add rdx, 0x10
mov rcx, rdi
call fcn.1401eb490
lea rax, str._has_failed
mov qword [rbp - 0x69], rax
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1401ea9b0
mov qword [rbp - 0x61], rbx
lea rdx, [rbp - 0x69]
mov rcx, rdi
call fcn.1401e36f0
mov rcx, qword [rdi + 8]
mov rax, qword [rdi + 0x10]
add rax, 0x1e
cmp rcx, rax
jb 0x1401ea9e1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov byte [rcx], 0
mov rax, qword [rdi + 8]
mov r15, qword [rdi]
mov r14, rax
sub r14, r15
test r15, r15
je 0x1401eaac2
cmp byte [rax], 0
jne 0x1401eaa78
mov r9d, r12d
mov r8b, 1
xor edx, edx
lea rcx, [rbp - 0x69]
call fcn.140152760
movsd xmm0, qword [rax]
movsd qword [rbp - 0x49], xmm0
mov ebx, dword [rax + 8]
mov qword [rbp - 0x39], r13
lea rcx, [r14 + 0xd]
call fcn.14034726c
mov rdi, rax
movsd xmm0, qword [rbp - 0x49]
movsd qword [rax], xmm0
mov dword [rax + 8], ebx
mov r8, r14
mov rdx, r15
lea rcx, [rax + 0xc]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + r14 + 0xc], 0
lea rcx, [rbp - 0x31]
call fcn.1401e8000
nop
mov qword [rsi], rdi
mov rax, rsi
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r8d, 0x12a
lea rdx, str.D:_a_ton_ton_tdutils_td_utils_Slice.h
lea rcx, str.t__0
call fcn.1401e25f0
nop
mov r8d, 0x27b
lea rdx, str.D:_a_ton_ton_tdutils_tdutilsportFileFd.cpp
lea rcx, str._empty__
call fcn.1401e25f0
nop
mov r8d, 0x27b
mov rdx, r14
lea rcx, str._empty__
call fcn.1401e25f0
int3
mov r8d, 0x21
lea rdx, str.D:_a_ton_ton_tdutils_td_utils_Slice.h
lea rcx, str.s____nullptr
call fcn.1401e25f0
int3