joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140040f3c
Capabilities:
Create thread
Hide graphical window

Disassembly:
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140037df0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x48
rep stosb byte [rdi], al
xor ecx, ecx
call qword [sym.imp.GDI32.dll_GetStockObject]
mov qword [rsp + 0xa0], rax
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x88], 0
lea rax, [0x1400382a8]
mov qword [rsp + 0x78], rax
lea rax, [0x14004b878]
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x70], 3
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_RegisterClassA]
movzx eax, ax
test eax, eax
jne 0x140040ff4
lea rdx, str._n_n_notepad
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14002a630
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x60], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x80000000
xor r8d, r8d
lea rdx, [0x14004b890]
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [0x1400558f8], rax
mov edx, 5
mov rcx, qword [0x1400558f8]
call qword [sym.imp.USER32.dll_ShowWindow]
lea rdx, [0x14004b868]
mov rcx, qword [0x1400558f8]
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov r8d, 0x800a0
mov edx, 0xffffffec
mov rcx, qword [0x1400558f8]
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rcx, qword [0x1400558f8]
call qword [sym.imp.USER32.dll_UpdateWindow]
add rsp, 0xc0
pop rdi
ret
Function at 0x140042150
Capabilities:
Create thread
Execute command
Hide graphical window

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x88
mov rax, qword [0x140054ac0]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea rcx, str.color_2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x14004b7d0]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x40], rax
call fcn.140036938
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x1400376e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.14003f528
lea rdx, [0x140040d84]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
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 rcx, [0x14004b7d4]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x14004b7d8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x14004b7dc]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov edx, 5
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
lea rcx, [0x14004b7e0]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov edx, 5
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
cmp qword [0x140055350], 0
jne 0x14004228d
lea rdx, str.Fortnite
lea rcx, [rsp + 0x68]
call fcn.14002c6d0
lea rcx, [rsp + 0x68]
call fcn.140039c08
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [0x140055350], rax
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140042249
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rdx, [0x14004b7f8]
mov rcx, qword [rsp + 0x30]
call fcn.14002cd94
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call fcn.140038a14
mov dword [0x140055358], eax
xor edx, edx
mov rcx, qword [0x140055830]
call fcn.1400366b8
movzx eax, al
test eax, eax
je 0x1400422fe
mov edx, dword [0x140055358]
mov rcx, qword [0x140055830]
call fcn.14002e4b0
lea rdx, str.FortniteClient_Win64_Shipping.exe
mov rcx, qword [0x140055830]
call fcn.1400363f0
mov qword [0x140055348], rax
call fcn.140040f3c
call fcn.1400410c8
call fcn.140041cd0
call fcn.140042038
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140042930
add rsp, 0x88
ret
Function at 0x140043030
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004307a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004307a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004307a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004307a
cmp dword [rcx + 0x84], 0xe
jbe 0x14004307a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14004307c
xor al, al
add rsp, 0x28
ret
Function at 0x1400511c0
Capabilities:
Encode data using xor

Disassembly:
sub rdx, r8
sub rcx, r8
mov r10, r9
shr r9, 4
je 0x1400511f5
nop
movdqu xmm0, xmmword [rdx + r8]
pxor xmm0, xmmword [r8]
movdqu xmmword [rcx + r8], xmm0
movdqa xmmword [r8], xmm0
lea r8, [r8 + 0x10]
dec r9
jne 0x1400511d0
and r10, 0xf
je 0x140051225
mov r9d, reloc.WS2_32.dll_recv
sub r9, r10
xor eax, eax
mov al, byte [rdx + r8]
xor al, byte [r8]
mov byte [rcx + r8], al
mov byte [r8], al
lea r8, [r8 + 1]
dec r10
jne 0x140051200
xor eax, eax
mov byte [r8], al
lea r8, [r8 + 1]
dec r9
jne 0x140051219
mov rax, r8
repz ret

Function at 0x140051230
Capabilities:
Encode data using xor

Disassembly:
sub rdx, r8
sub rcx, r8
mov r10, r9
shr r9, 4
je 0x14005126d
nop
movdqu xmm0, xmmword [rdx + r8]
movdqa xmm1, xmmword [r8]
pxor xmm1, xmm0
movdqu xmmword [rcx + r8], xmm1
movdqa xmmword [r8], xmm0
lea r8, [r8 + 0x10]
dec r9
jne 0x140051240
pxor xmm1, xmm1
and r10, 0xf
je 0x1400512a3
mov r9d, reloc.WS2_32.dll_recv
sub r9, r10
xor eax, eax
xor r11, r11
mov r11b, byte [rdx + r8]
mov al, byte [r8]
xor al, r11b
mov byte [rcx + r8], al
mov byte [r8], r11b
lea r8, [r8 + 1]
dec r10
jne 0x14005127b
xor eax, eax
mov byte [r8], al
lea r8, [r8 + 1]
dec r9
jne 0x140051297
mov rax, r8
repz ret
Function at 0x1401392f0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14053a7e8]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1401393c3
cmp byte [rcx + 0x71], 0
je 0x1401393c3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1401393bf
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 0x140139384
sub eax, 1
je 0x140139388
cmp eax, 2
jne 0x1401393bf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140344c40
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1401393b6
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 0x1401393bf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14013936c
xor al, al
jmp 0x14013936c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140344c40
add rsp, 0x60
pop rbx
ret
Function at 0x1401396f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14053a7e8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14013971d
xor eax, eax
jmp 0x140139872
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140139748
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140139748
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 0x140139872
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140139865
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14013978b
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 0x1401397b6
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 0x14013986a
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 0x140139825
sub eax, 1
je 0x140139825
cmp eax, 2
jne 0x140139865
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 0x14013986a
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140139853
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 0x140139865
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov eax, edi
jne 0x14013986a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140344c40
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140139f80
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.140138210
mov rcx, rax
mov rdx, rbx
call fcn.140138210
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.140138210
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140139ff0
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 0x14013a021
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.0x14013a038
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 0x14013a060
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14013a062
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14013a094
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 0x14013a131
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14013a0d2
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 0x14013a111
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 0x14013a152
cmp rdi, rax
ja 0x14013a0e0
test rbx, rbx
je 0x14013a131
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 0x14013a134
Function at 0x14013a160
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.0x14013a190
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 0x14013a1b8
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14013a1ba
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14013a213
test ecx, ecx
jle 0x14013a1f3
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 0x14013a213
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14013a213
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 0x140171cf0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14053a7e8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rcx
mov qword [rsp + 0x68], rcx
cmp qword [rcx + 0x18], 0x10
jb 0x140171d23
mov rcx, qword [rcx]
mov rax, qword [rbx + 0x10]
cmp byte [rax + rcx - 1], 0x5f
jne 0x140171d42
mov r8, rbx
lea rdx, [rsp + 0x28]
lea rcx, [0x140542b18]
call fcn.140164b90
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.14013a980
mov rdi, rax
mov qword [rsp + 0x20], rax
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14013a980
xor r9d, r9d
lea r8d, [r9 + 1]
mov rdx, rax
lea rcx, [0x140468290]
call fcn.140189b90
movsxd rsi, eax
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140171db7
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140171db2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140171e99
mov rcx, r8
call fcn.1403448d8
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov rax, qword [0x140468298]
mov rdx, qword [rax + rsi*8]
test rdx, rdx
je 0x140171e2b
cmp dword [rdx + 0x20], 0
jge 0x140171e2b
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.140138210
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140171e00
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140138680
lea rdx, str.__already_defined_as_a_keyword
mov rcx, rax
call fcn.140138210
lea rdx, [0x1401409d0]
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.1401898c0
mov rdi, rax
test rax, rax
jne 0x140171ea0
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.140138210
mov rdx, rbx
mov rcx, rax
call fcn.140138030
mov rcx, rax
lea rdx, str.__already_defined
call fcn.140138210
lea rdx, [0x1401409d0]
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.140138f50
mov rax, rdi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140344c40
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1401ce820
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 0x1401ce8be
mov rdx, qword [rcx]
mov ebp, 1
mov r8d, r9d
mov rcx, rax
mov dword [rdx], ebp
mov edx, r11d
call fcn.1401cbe60
mov rdx, qword [rbx + 8]
test edi, edi
jne 0x1401ce87c
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 0x1401ce8a4
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 0x1401ce8eb
mov edx, pe_nt_image_headers64
mov ecx, r11d
sar edx, cl
test byte [rax], dl
je 0x1401ce8eb
mov sil, 0xff
jmp 0x1401ce8ee
xor sil, sil
add r9d, r11d
mov r10d, r9d
shr r10, 3
add r10, rax
cmp rax, r10
jae 0x1401ce932
movzx r8d, byte [rax]
mov edx, 0xff
movzx ecx, sil
xor r8d, ecx
mov ecx, r11d
sar edx, cl
test edx, r8d
jne 0x1401ce932
inc rax
xor r11d, r11d
cmp rax, r10
jae 0x1401ce932
cmp byte [rax], sil
jne 0x1401ce932
inc rax
cmp rax, r10
jb 0x1401ce925
and r9d, 7
je 0x1401ce948
movzx edx, byte [r10]
mov ecx, 8
sub cl, r9b
shr edx, cl
jmp 0x1401ce94a
xor edx, edx
mov rcx, qword [rbx]
mov ebp, 1
mov r8d, edx
mov dword [rcx], ebp
cmp r10, rax
jbe 0x1401ce9ab
nop dword [rax]
cmp r9d, 0x34
jl 0x1401ce991
mov rdx, qword [rbx]
movsxd rcx, dword [rdx]
cmp ecx, dword [rbx + 0x10]
jge 0x1401ce98b
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 0x1401ce991
cmp r9d, 0x38
jge 0x1401ce9f5
movzx edx, byte [r10 - 1]
dec r10
mov ecx, r9d
add r9d, 8
shl rdx, cl
or r8, rdx
cmp r10, rax
ja 0x1401ce960
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.1401cf680
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 0x1401ce9e0
Function at 0x1401d6730
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 0x1401d68e4
lea eax, [r13 + 1]
mov dword [rcx + 0x3c], eax
mov rbx, qword [rcx + 0x18]
test rbx, rbx
je 0x1401d691d
movzx eax, byte [rbx + 0x14]
and eax, 7
cmp r13d, eax
jb 0x1401d678b
xor ebx, ebx
mov qword [rsp + 0x98], rbx
xor r15d, r15d
xor ecx, ecx
jmp 0x1401d67cf
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 0x1401d67cf
mov eax, 1
lock xadd dword [rbx + 8], eax
mov rbx, qword [rsp + 0x98]
test rcx, rcx
je 0x1401d6903
mov rax, qword [rbx]
mov rdi, qword [rax + 0x18]
lea rdx, [rsp + 0x80]
mov rcx, rbp
call fcn.1401d5a90
movzx r8d, word [rax]
lea rdx, [rsp + 0x90]
mov rcx, rbx
call rdi
nop
mov ebx, 0xffffffff
test r15, r15
je 0x1401d6821
mov eax, ebx
lock xadd dword [r15 + 8], eax
cmp eax, 1
jne 0x1401d6821
mov rcx, r15
call fcn.1401cb900
nop
cmp dword [rbp + 0x30], 0
je 0x1401d68d7
mov rax, qword [rbp + 0x28]
test rax, rax
je 0x1401d68d7
cmp dword [rax + 8], 0
je 0x1401d68d7
lea rcx, [rbp + 0x20]
mov r8d, r13d
lea rdx, [rsp + 0x38]
call fcn.1401df440
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.1401d5f60
mov rdi, rax
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x1401d68ab
mov edx, ebx
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x1401d689f
call fcn.1401cb900
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 0x1401d68d7
lock xadd dword [rcx + 8], ebx
cmp ebx, 1
jne 0x1401d68d7
call fcn.1401cb900
nop
mov rax, qword [rsp + 0x90]
mov qword [r14], rax
jmp 0x1401d68eb
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.1401dfe20
nop
mov r8d, 0x120
lea rdx, str.D:_a_ton_toncryptocommon_refcnt.hpp
lea rcx, str.ptr___deferencing_null_Ref_
call fcn.1401dfe20
int3