joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001224c
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.14000c20c
xor ebx, ebx
mov rdi, rax
cmp qword [0x140023770], rbx
jne 0x140012352
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140012427
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140012427
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140023770], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140023778], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x140023780], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x140023790], rax
test rax, rax
je 0x140012349
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140023788], rax
jmp 0x140012359
mov rax, qword [0x140023788]
jmp 0x140012360
mov rax, qword [0x140023788]
mov r11, qword [0x140023790]
cmp rax, rdi
je 0x1400123c8
cmp r11, rdi
je 0x1400123c8
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x140023790]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x1400123c8
test rax, rax
je 0x1400123c8
call rsi
test rax, rax
je 0x1400123c2
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400123c2
test byte [rsp + 0x38], 1
jne 0x1400123c8
bts ebp, 0x15
jmp 0x140012406
mov rcx, qword [0x140023778]
cmp rcx, rdi
je 0x140012406
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140012406
call rax
mov rbx, rax
test rax, rax
je 0x140012406
mov rcx, qword [0x140023780]
cmp rcx, rdi
je 0x140012406
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140012406
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140023770]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140012427
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140012429
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140139820
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140651840]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1401398f3
cmp byte [rcx + 0x71], 0
je 0x1401398f3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1401398ef
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1401398b4
sub eax, 1
je 0x1401398b8
cmp eax, 2
jne 0x1401398ef
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140349970
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1401398e6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1401398ef
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14013989c
xor al, al
jmp 0x14013989c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140349970
add rsp, 0x60
pop rbx
ret
Function at 0x140139ca0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140651840]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x140139ccd
xor eax, eax
jmp 0x140139e36
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 0x140139d0d
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 0x140139d0d
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 0x140139e2e
cmp qword [rdi + 0x80], 0
je 0x140139e29
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 0x140139d47
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 0x140139d72
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 0x140139e2e
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 0x140139de1
sub eax, 1
je 0x140139de1
cmp eax, 2
jne 0x140139e29
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 0x140139e2e
mov rbx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x140139e0f
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 0x140139e29
lea rax, [rsp + 0x40]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x140139e2e
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140349970
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14013a590
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 0x14013a600
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 0x14013a631
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.0x14013a648
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 0x14013a699
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 0x14013a711
mov rcx, rbp
call fcn.140139940
cmp rbx, 0xfff
jbe 0x14013a6f1
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 0x14013a732
cmp rbx, rax
ja 0x14013a6c0
test rdi, rdi
je 0x14013a711
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 0x14013a714
Function at 0x14013a740
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 case.default.0x14013a761
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 0x14013a7dc
test rax, rax
jle 0x14013a7bc
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 0x14013a7dc
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14013a7dc
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 0x140172540
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140651840]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rcx
mov qword [rsp + 0x78], rcx
cmp qword [rcx + 0x18], 0xf
jbe 0x140172576
mov rcx, qword [rcx]
mov rax, qword [rbx + 0x10]
cmp byte [rax + rcx - 1], 0x5f
jne 0x140172595
mov r8, rbx
lea rdx, [rsp + 0x20]
lea rcx, [0x140659c58]
call fcn.140165830
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.14013af60
mov rdi, rax
mov qword [rsp + 0x30], rax
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.14013af60
xor r9d, r9d
lea r8d, [r9 + 1]
mov rdx, rax
lea rcx, [0x14057f290]
call fcn.14018ac00
movsxd rsi, eax
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x14017260a
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140172605
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1401726ec
mov rcx, r8
call fcn.14034961c
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov rax, qword [0x14057f298]
mov rdx, qword [rax + rsi*8]
test rdx, rdx
je 0x14017267e
cmp dword [rdx + 0x20], 0
jge 0x14017267e
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], 0xf
jbe 0x140172653
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140138980
lea rdx, str.__already_defined_as_a_keyword
mov rcx, rax
call fcn.140138300
lea rdx, [0x140141ad0]
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 + 0x20], 0
mov dword [rsp + 0x28], 0xffffffff
lea r8, [rsp + 0x20]
mov dl, 1
mov ecx, esi
call fcn.14018a910
mov rdi, rax
test rax, rax
jne 0x1401726f3
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.1401380a0
mov rcx, rax
lea rdx, str.__already_defined
call fcn.140138300
lea rdx, [0x140141ad0]
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.1401393b0
mov rax, rdi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140349970
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1401d2eb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
movsxd rdi, r8d
mov esi, r9d
mov rax, rdx
mov rbx, rcx
cmp r9d, 0x34
jae 0x1401d2f2d
mov rdx, qword [rcx]
mov r8d, r9d
mov rcx, rax
mov dword [rdx], 1
mov edx, edi
call fcn.1401d04e0
mov r11, rax
mov rax, qword [rbx + 8]
test esi, esi
jne 0x1401d2f05
xor r11d, r11d
mov qword [rax], r11
mov al, 1
jmp 0x1401d3055
mov ecx, 0x40
sub ecx, esi
cmp byte [rsp + 0x50], 0
je 0x1401d2f20
sar r11, cl
mov qword [rax], r11
mov al, 1
jmp 0x1401d3055
shr r11, cl
mov qword [rax], r11
mov al, 1
jmp 0x1401d3055
mov rcx, rdi
mov qword [rsp + 0x30], rbp
sar rcx, 3
and edi, 7
add rax, rcx
cmp byte [rsp + 0x50], 0
je 0x1401d2f58
mov edx, pe_nt_image_headers64
mov ecx, edi
sar edx, cl
test byte [rax], dl
je 0x1401d2f58
mov bpl, 0xff
jmp 0x1401d2f5b
xor bpl, bpl
add r9d, edi
xor r11d, r11d
mov r10d, r9d
shr r10, 3
add r10, rax
cmp rax, r10
jae 0x1401d2fa1
movzx r8d, byte [rax]
mov edx, 0xff
movzx ecx, bpl
xor r8d, ecx
mov ecx, edi
sar edx, cl
test edx, r8d
jne 0x1401d2fa1
inc rax
mov edi, r11d
cmp rax, r10
jae 0x1401d2fa1
cmp byte [rax], bpl
jne 0x1401d2fa1
inc rax
cmp rax, r10
jb 0x1401d2f94
and r9d, 7
je 0x1401d2fb7
movzx edx, byte [r10]
mov ecx, 8
sub cl, r9b
shr edx, cl
jmp 0x1401d2fba
mov edx, r11d
mov rcx, qword [rbx]
mov r14d, 1
mov r8d, edx
mov dword [rcx], r14d
cmp r10, rax
jbe 0x1401d301b
nop
cmp r9d, 0x34
jl 0x1401d3001
mov rdx, qword [rbx]
movsxd rcx, dword [rdx]
cmp ecx, dword [rbx + 0x10]
jge 0x1401d2ffb
mov rdx, rcx
mov rcx, qword [rbx + 8]
mov qword [rcx + rdx*8 - 8], r8
mov r8, r11
mov rcx, qword [rbx]
inc dword [rcx]
sub r9d, 0x34
jmp 0x1401d3001
cmp r9d, 0x38
jge 0x1401d306b
movzx edx, byte [r10 - 1]
dec r10
mov ecx, r9d
add r9d, 8
shl rdx, cl
or r8, rdx
cmp r10, rax
ja 0x1401d2fd0
sub r9d, edi
movzx ecx, r9b
shl r14, cl
lea rax, [r14 - 1]
and rax, r8
mov rdx, rax
sub rdx, r14
test bpl, bpl
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.1401d3cf0
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov dword [rdx], r11d
xor al, al
jmp 0x1401d3050
Function at 0x1401e19e0
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
test al, 3
jne 0x1401e1b2f
test rax, rax
je 0x1401e1b2f
mov r11, qword [rdx]
mov r14, rax
shr r14, 2
xor ebp, ebp
cmp byte [rax + r11 - 1], 0x3d
jne 0x1401e1a46
cmp byte [rax + r11 - 2], 0x3d
setne bpl
xor edi, edi
add ebp, 0xfffffffe
cmp byte [rax + r11 - 2], 0x3d
sete dil
inc rdi
jmp 0x1401e1a48
xor edi, edi
mov rdx, qword [rcx + 8]
lea rax, [r14 + r14*2]
lea rcx, [rdx + rdi]
cmp rcx, rax
jb 0x1401e1b2f
mov r15, qword [r9]
xor r10d, r10d
movzx esi, r8b
mov rax, r15
shl esi, 7
add esi, 0x40
lea r12, [rdx + r15]
test r14, r14
je 0x1401e1b25
lea rbx, [r14 - 1]
sub r11, rdi
lea r13, [0x140384c90]
nop dword [rax + rax]
xor r8d, r8d
mov r9, rdi
nop word [rax + rax]
movzx ecx, byte [r11 + r9]
movzx edx, byte [rcx + r13]
test esi, edx
jne 0x1401e1abe
cmp edx, 1
je 0x1401e1abe
cmp r10, rbx
jb 0x1401e1b2f
cmp r9, 4
jb 0x1401e1b2f
mov ecx, r8d
and edx, 0x3f
shl ecx, 6
inc r9
mov r8d, edx
or r8d, ecx
mov rcx, r9
sub rcx, rdi
cmp rcx, 4
jb 0x1401e1aa0
cmp r10, rbx
jae 0x1401e1b08
mov ecx, r8d
inc r10
shr ecx, 0x10
add r11, 4
mov byte [rax], cl
mov ecx, r8d
shr ecx, 8
mov byte [rax + 1], cl
mov byte [rax + 2], r8b
add rax, 3
cmp r10, r14
jb 0x1401e1a90
jmp 0x1401e1b25
lea edx, [rbp + 3]
nop dword [rax + rax]
mov ecx, r8d
shl r8d, 8
shr ecx, 0x10
mov byte [rax], cl
inc rax
sub rdx, 1
jne 0x1401e1b10
cmp rax, r12
ja 0x1401e1b4e
sub rax, r15
jmp 0x1401e1b31
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.1401e4790
int3

Function at 0x1401eb430
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 0x1401eb472
lea r10, [0x140385e60]
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 0x1401eb450
ret

Function at 0x1401eb490
Capabilities:
Encode data using xor

Disassembly:
mov r9, qword [rcx + 8]
mov rax, 0xffffffffffffffff
mov r8, qword [rcx]
test r9, r9
je 0x1401eb4cc
lea r10, [0x140385660]
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 0x1401eb4b0
not rax
ret
Function at 0x140206a90
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov r11, rdx
movsxd rdi, r9d
lea rsi, [rcx - 1]
mov r10, r8
not rcx
shr rsi, 0x3f
shr rcx, 0x3f
and rsi, rcx
mov ecx, dword [rdx + 8]
xor ecx, dword [r8 + 8]
dec rsi
and ecx, esi
xor dword [rdx + 8], ecx
xor dword [r8 + 8], ecx
mov edx, dword [rdx + 0x10]
movq xmm4, rsi
xor edx, dword [r8 + 0x10]
and edx, esi
punpcklqdq xmm4, xmm4
xor dword [r11 + 0x10], edx
xor dword [r8 + 0x10], edx
mov ecx, dword [r11 + 0x14]
mov edx, ecx
mov eax, dword [r8 + 0x14]
xor rdx, rax
and edx, 4
and rdx, rsi
mov eax, edx
xor eax, ecx
xor ecx, ecx
mov dword [r11 + 0x14], eax
xor dword [r8 + 0x14], edx
mov edx, ecx
test r9d, r9d
jle 0x140206bad
cmp edi, 2
jb 0x140206bad
mov r9, qword [r8]
lea rax, [rdi - 1]
mov r8, qword [r11]
lea rbx, [rdi - 1]
lea rbx, [r9 + rbx*8]
lea rax, [r8 + rax*8]
cmp r9, rax
ja 0x140206b3c
cmp rbx, r8
jae 0x140206bad
cmp r9, r10
ja 0x140206b46
cmp rbx, r10
jae 0x140206bad
cmp r9, r11
ja 0x140206b50
cmp rbx, r11
jae 0x140206bad
cmp r8, r10
ja 0x140206b5a
cmp rax, r10
jae 0x140206bad
cmp r8, r11
ja 0x140206b64
cmp rax, r11
jae 0x140206bad
mov eax, edi
and eax, 0xfffffffe
nop dword [rax]
movdqu xmm2, xmmword [rcx + r9]
add edx, 2
movdqu xmm1, xmmword [rcx + r8]
lea rcx, [rcx + 0x10]
movdqa xmm3, xmm2
pxor xmm3, xmm1
pand xmm3, xmm4
movdqa xmm0, xmm3
pxor xmm3, xmm2
pxor xmm0, xmm1
movdqu xmmword [rcx + r8 - 0x10], xmm0
movdqu xmmword [rcx + r9 - 0x10], xmm3
cmp edx, eax
jl 0x140206b70
movsxd rax, edx
cmp rax, rdi
jge 0x140206bed
nop word [rax + rax]
mov rcx, qword [r11]
mov rdx, qword [rcx + rax*8]
lea r8, [rcx + rax*8]
mov rcx, qword [r10]
mov r9, rdx
xor r9, qword [rcx + rax*8]
and r9, rsi
xor rdx, r9
mov qword [r8], rdx
mov rcx, qword [r10]
xor qword [rcx + rax*8], r9
inc rax
cmp rax, rdi
jl 0x140206bc0
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret

Function at 0x140210140
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.140349c40
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret