joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400693e0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [rsp + 0x60], 8
je 0x140069413
cmp dword [rsp + 0x60], 4
je 0x140069413
cmp dword [rsp + 0x60], 1
je 0x140069413
cmp dword [rsp + 0x60], 0x1b
jne 0x14006948c
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x68]
mov r8d, dword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x90]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
jne 0x14006947e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.140067280
mov dword [rsp + 0x34], eax
call fcn.1400825b0
mov ecx, dword [rsp + 0x34]
mov dword [rax], ecx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, eax
lea rdx, str.socketio_setsockopt
lea rcx, [0x1400e47f8]
call fcn.140002e50
mov eax, dword [rsp + 0x30]
jmp 0x1400694b1
mov r8, qword [rsp + 0x50]
mov edx, dword [rsp + 0x60]
lea rcx, str.setsockop___ERROR:_unsupported_optname:_d_io:_p
call fcn.140002e50
call fcn.1400825b0
mov dword [rax], 0x81
mov eax, 0xffffffff
add rsp, 0x48
ret
Function at 0x140069980
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x20], 0
call fcn.140067010
test eax, eax
je 0x1400699b3
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_gethostname]
jmp 0x1400699c2
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_gethostname]
add rsp, 0x38
ret
Function at 0x140069f60
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x268
mov rax, qword [0x1400e6470]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x140069fce
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.GetWindowsDirectoryW_failed_with__d
call fcn.140002e50
call fcn.1400825b0
mov dword [rax], 0x83
jmp 0x14006a042
mov rcx, qword [rsp + 0x270]
call fcn.140077d68
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x40]
call fcn.14005f390
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x20], 0
je 0x140069fff
cmp qword [rsp + 0x28], 0
jne 0x14006a00c
call fcn.1400825b0
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
jmp 0x14006a042
mov rax, qword [rsp + 0x20]
mov qword [0x1400e8790], rax
mov qword [rsp + 0x20], 0
mov rax, qword [rsp + 0x28]
mov qword [0x1400e87b0], rax
mov qword [rsp + 0x28], 0
lea rax, [0x1400e8790]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x20], 0
je 0x14006a054
mov rcx, qword [rsp + 0x20]
call fcn.140077f70
cmp qword [rsp + 0x28], 0
je 0x14006a066
mov rcx, qword [rsp + 0x28]
call fcn.140077f70
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140075860
add rsp, 0x268
ret
Function at 0x14006a4e0
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov qword [rsp + 0x20], r9
mov word [rsp + 0x18], r8w
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x42f0
call fcn.1400758a0
sub rsp, rax
mov rax, qword [0x1400e6470]
xor rax, rsp
mov qword [rsp + 0x42e0], rax
xor eax, eax
mov word [rsp + 0xd0], ax
lea rax, [rsp + 0xd2]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov r8d, 1
mov edx, 1
mov rcx, qword [rsp + 0x4328]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_SetHandleInformation]
xor eax, eax
mov word [rsp + 0x2e0], ax
lea rax, [rsp + 0x2e2]
mov rdi, rax
xor eax, eax
mov ecx, 0x3ffc
rep stosb byte [rdi], al
lea rax, str._lsconhost.exe___headless___width__d___height__d___signal_0x_x_____ls
mov qword [rsp + 0x50], rax
mov edx, 0x104
lea rcx, [rsp + 0xd0]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
test eax, eax
jne 0x14006a599
lea rcx, str.unable_to_retrieve_system32_path
call fcn.14000c3a0
movzx eax, word [rsp + 0x4310]
movzx ecx, word [rsp + 0x4308]
mov rdx, qword [rsp + 0x4300]
mov qword [rsp + 0x40], rdx
mov rdx, qword [rsp + 0x4328]
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8d, 0x1fff
mov edx, 0x1fff
lea rcx, [rsp + 0x2e0]
call fcn.14006a720
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0x60], WSAGetLastError
mov rax, qword [rsp + 0x4318]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x4320]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x4320]
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0x9c], 0x10a
lea rdx, [rsp + 0x2e0]
lea rcx, str.pty_commandline:__ls
call fcn.140002e50
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_console_l1_1_0.dll_SetConsoleCtrlHandler]
mov rax, qword [rsp + 0x4330]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x2e0]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessW]
test eax, eax
jne 0x14006a6f0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r9d, eax
lea r8, [rsp + 0x2e0]
lea rdx, str.CreateConPty
lea rcx, str._s___failed_to_execute__ls__error:_d
call fcn.140002df0
call fcn.1400825b0
mov dword [rax], 0x83
mov eax, 0xffffffff
jmp 0x14006a6ff
mov edx, 1
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_console_l1_1_0.dll_SetConsoleCtrlHandler]
xor eax, eax
mov rcx, qword [rsp + 0x42e0]
xor rcx, rsp
call fcn.140075860
add rsp, 0x42f0
pop rdi
ret
Function at 0x14006a810
Capabilities:
Create process on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x4070
call fcn.1400758a0
sub rsp, rax
mov rax, qword [0x1400e6470]
xor rax, rsp
mov qword [rsp + 0x4060], rax
mov ecx, dword [rsp + 0x4098]
call fcn.140064160
mov qword [rsp + 0x58], rax
xor eax, eax
mov word [rsp + 0x60], ax
lea rax, [rsp + 0x62]
mov rdi, rax
xor eax, eax
mov ecx, 0x3ffc
rep stosb byte [rdi], al
mov dword [rsp + 0x50], 0xffffffff
call fcn.140004710
test eax, eax
je 0x14006a8dd
mov rax, qword [rsp + 0x4090]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x4088]
mov rax, qword [rax + 0x58]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x4088]
mov r9, qword [rax + 0x50]
mov rax, qword [rsp + 0x4088]
movzx r8d, word [rax + 0x34]
mov rax, qword [rsp + 0x4088]
movzx edx, word [rax + 0x30]
mov rcx, qword [rsp + 0x4080]
call fcn.14006a4e0
jmp 0x14006a9c1
mov rax, qword [rsp + 0x4080]
mov qword [rsp + 0x28], rax
mov rax, qword [0x1400e4550]
mov qword [rsp + 0x20], rax
lea r9, str.__ls_ssh_shellhost.exe_____pty__ls
mov r8d, 0x1fff
mov edx, 0x1fff
lea rcx, [rsp + 0x60]
call fcn.14006a720
mov rax, qword [rsp + 0x4088]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0x60], rcx
lea rdx, [rsp + 0x60]
lea rcx, [0x1400e5178]
call fcn.140002e50
mov rax, qword [rsp + 0x4090]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x4088]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessW]
test eax, eax
jne 0x14006a9b5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r9d, eax
lea r8, [rsp + 0x60]
lea rdx, str.exec_command_with_pty
lea rcx, [0x1400e51a8]
call fcn.140002df0
call fcn.1400825b0
mov dword [rax], 0x83
jmp 0x14006a9bd
mov dword [rsp + 0x50], 0
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x4060]
xor rcx, rsp
call fcn.140075860
add rsp, 0x4070
pop rdi
ret
Function at 0x14006b530
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x40], 0
jne 0x14006b57d
mov ecx, 0x19000
call fcn.140077f84
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x40], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x40], 0
jne 0x14006b57d
call fcn.1400825b0
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
mov eax, 0xffffffff
jmp 0x14006b652
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x90]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileType]
cmp eax, 1
jne 0x14006b5be
cmp dword [rsp + 0x58], 0x19000
jae 0x14006b5a8
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x30], eax
jmp 0x14006b5b0
mov dword [rsp + 0x30], 0x19000
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x30]
mov dword [rax + 0x48], ecx
jmp 0x14006b5ca
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x48], 0x19000
mov rax, qword [rsp + 0x50]
lea rcx, [0x14006acf0]
mov qword [rsp + 0x20], rcx
mov r9, rax
mov rax, qword [rsp + 0x50]
mov r8d, dword [rax + 0x48]
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0x40]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x90]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFileEx]
test eax, eax
je 0x14006b614
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x54], 1
jmp 0x14006b650
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.14006b380
mov dword [rsp + 0x34], eax
call fcn.1400825b0
mov ecx, dword [rsp + 0x34]
mov dword [rax], ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r8, qword [rsp + 0x50]
mov edx, eax
lea rcx, str.ReadFileEx___ERROR:_d__io:_p
call fcn.140002e50
mov eax, 0xffffffff
jmp 0x14006b652
xor eax, eax
add rsp, 0x48
ret
Function at 0x14006df60
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor edx, edx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x90]
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_CancelIoEx]
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x54], 0
je 0x14006dfd8
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x90]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileType]
cmp eax, 2
jne 0x14006dfc4
call fcn.140067010
test eax, eax
je 0x14006dfb1
cmp dword [0x1400e8924], 0
je 0x14006dfc4
xor edx, edx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateThread]
jmp 0x14006dfd8
mov edx, 0xffffffff
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x74], 0
je 0x14006dff7
mov edx, 0xffffffff
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x38]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SleepEx]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x90]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x40], 0
je 0x14006e030
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x40]
call fcn.140077f70
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x60], 0
je 0x14006e04a
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x60]
call fcn.140077f70
mov rcx, qword [rsp + 0x30]
call fcn.140077f70
xor eax, eax
add rsp, 0x28
ret

Function at 0x14006e060
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x48], 0
jne 0x14006e0b4
mov ecx, 0x800
call fcn.140077f84
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x40], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x40], 0
jne 0x14006e0a8
call fcn.1400825b0
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
mov eax, 0xffffffff
jmp 0x14006e13f
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x48], 0x800
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x50]
lea r8, [0x14006da10]
xor edx, edx
xor ecx, ecx
call fcn.140088f2c
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14006e123
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.14006b380
mov dword [rsp + 0x30], eax
call fcn.1400825b0
mov ecx, dword [rsp + 0x30]
mov dword [rax], ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r8, qword [rsp + 0x50]
mov edx, eax
lea rcx, str.TermRead_initiate___ERROR__beginthreadex__d__io:_p
call fcn.140002e50
mov eax, 0xffffffff
jmp 0x14006e13f
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x54], 1
xor eax, eax
add rsp, 0x48
ret
Function at 0x14006e150
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x50]
add rax, 0xa4
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_inet_ntoa
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x58]
mov dword [rax + 0xa4], ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x50]
lea r8, [0x14006dd80]
xor edx, edx
xor ecx, ecx
call fcn.140088f2c
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14006e1f3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.14006b380
mov dword [rsp + 0x30], eax
call fcn.1400825b0
mov ecx, dword [rsp + 0x30]
mov dword [rax], ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r8, qword [rsp + 0x50]
mov edx, eax
lea rcx, str.syncio_initiate_write_initiate___ERROR__beginthreadex__d__io:_p
call fcn.140002e50
mov eax, 0xffffffff
jmp 0x14006e20f
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x38], rcx
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x74], 1
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x140071a30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea rax, str.e__1h
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x48], 0xffffffffffffffff
inc qword [rsp + 0x48]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
cmp byte [rax + rcx], 0
jne 0x140071a85
mov rax, qword [rsp + 0x48]
mov dword [rsp + 0x58], eax
lea rax, str.e__1l
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x50], 0xffffffffffffffff
inc qword [rsp + 0x50]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
cmp byte [rax + rcx], 0
jne 0x140071ac2
mov rax, qword [rsp + 0x50]
mov dword [rsp + 0x5c], eax
lea rax, str.e_2J
mov qword [rsp + 0x80], rax
cmp dword [rsp + 0xb0], 0
jne 0x140071afe
jmp 0x140071cd7
cmp dword [0x1400e890c], 0
jne 0x140071bf9
cmp dword [0x1400e5fc8], 0
je 0x140071b50
mov dword [0x1400e5fc8], 0
call fcn.140004710
test eax, eax
je 0x140071b31
mov dword [0x1400e5fcc], 0
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xa8]
call fcn.1400766f8
test rax, rax
je 0x140071b50
call fcn.140072590
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0xb0], eax
jb 0x140071b80
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xa8]
call fcn.1400766f8
test rax, rax
je 0x140071b80
mov dword [0x1400e8948], 1
jmp 0x140071bae
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0xb0], eax
jb 0x140071bae
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xa8]
call fcn.1400766f8
test rax, rax
je 0x140071bae
mov dword [0x1400e8948], 0
cmp dword [0x1400e5fcc], 0
je 0x140071bbc
call fcn.140072950
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
cmp dword [0x1400e5fcc], 0
je 0x140071bf4
call fcn.140072c40
jmp 0x140071cd7
cmp dword [rsp + 0xb0], 1
jne 0x140071c32
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0xa8]
movsx eax, byte [rcx + rax]
cmp eax, 0xd
jne 0x140071c32
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0xa8]
mov byte [rcx + rax], 0xa
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0xb0]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov r9, qword [rsp + 0xc0]
mov r8, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.140074d50
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x40], rax
je 0x140071cd7
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x40], rax
jae 0x140071cd7
cmp qword [rsp + 0xc0], 0
je 0x140071c6d
cmp qword [rsp + 0xc0], 0
je 0x140071cd7
mov rax, qword [rsp + 0xc0]
cmp qword [rax], 0
je 0x140071c6d
add rsp, 0x98
ret
Function at 0x140072230
Capabilities:
Manipulate console buffer

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x478
mov rax, qword [0x1400e6470]
xor rax, rsp
mov qword [rsp + 0x460], rax
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1400e88f0]
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x140072268
jmp 0x14007234b
movzx eax, word [rsp + 0x4c]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x4e]
mov word [rsp + 0x32], ax
movsx eax, word [rsp + 0x30]
add eax, dword [rsp + 0x480]
mov word [rsp + 0x38], ax
movzx eax, word [rsp + 0x32]
mov word [rsp + 0x3a], ax
movzx eax, word [rsp + 0x32]
mov word [rsp + 0x3e], ax
movzx eax, word [rsp + 0x56]
mov word [rsp + 0x3c], ax
mov eax, 0x100
mov word [rsp + 0x34], ax
mov eax, 1
mov word [rsp + 0x36], ax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x1400e8918]
mov r8d, dword [rsp + 0x34]
lea rdx, [rsp + 0x60]
mov rcx, qword [0x1400e88f0]
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_ReadConsoleOutputA]
mov dword [rsp + 0x40], eax
call fcn.140071e70
movzx eax, word [rsp + 0x30]
mov word [rsp + 0x38], ax
mov eax, 0x100
mov word [rsp + 0x34], ax
mov eax, 1
mov word [rsp + 0x36], ax
movsx eax, word [rsp + 0x3c]
sub eax, dword [rsp + 0x480]
mov word [rsp + 0x3c], ax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x1400e8918]
mov r8d, dword [rsp + 0x34]
lea rdx, [rsp + 0x60]
mov rcx, qword [0x1400e88f0]
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_WriteConsoleOutputA]
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140075860
add rsp, 0x478
ret

Function at 0x140072510
Capabilities:
Manipulate console buffer

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov rax, qword [0x1400e6470]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x28]
mov rcx, qword [0x1400e88f0]
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x140072543
jmp 0x140072570
movsx eax, word [rsp + 0x2c]
add eax, dword [rsp + 0x60]
mov word [rsp + 0x20], ax
movsx eax, word [rsp + 0x2e]
add eax, dword [rsp + 0x68]
mov word [rsp + 0x22], ax
mov edx, dword [rsp + 0x20]
mov rcx, qword [0x1400e88f0]
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_SetConsoleCursorPosition]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140075860
add rsp, 0x58
ret
Function at 0x1400727a0
Capabilities:
Manipulate console buffer

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x1400e6470]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x48], 0
xor eax, eax
mov word [rsp + 0x30], ax
xor eax, eax
mov word [rsp + 0x32], ax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x38], rax
cmp qword [0x1400e88f0], 0
jne 0x1400727ef
xor eax, eax
jmp 0x140072930
lea rdx, [rsp + 0x58]
mov rcx, qword [0x1400e88f0]
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14007280c
xor eax, eax
jmp 0x140072930
movsx eax, word [rsp + 0x66]
movsx ecx, word [rsp + 0x62]
sub eax, ecx
inc eax
mov dword [rsp + 0x40], eax
movsx eax, word [rsp + 0x68]
movsx ecx, word [rsp + 0x64]
sub eax, ecx
inc eax
mov dword [rsp + 0x44], eax
movzx eax, word [rsp + 0x62]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x64]
mov word [rsp + 0x32], ax
mov eax, dword [rsp + 0x40]
imul eax, dword [rsp + 0x44]
lea rcx, [rsp + 0x4c]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x30]
mov r8d, eax
mov dl, 0x20
mov rcx, qword [0x1400e88f0]
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_FillConsoleOutputCharacterA]
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movzx edx, word [rax + 2]
mov rcx, qword [0x1400e88f0]
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_SetConsoleTextAttribute]
mov eax, dword [rsp + 0x40]
imul eax, dword [rsp + 0x44]
lea rcx, [rsp + 0x4c]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x30]
mov r8d, eax
mov rax, qword [rsp + 0x50]
movzx edx, word [rax + 2]
mov rcx, qword [0x1400e88f0]
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_FillConsoleOutputAttribute]
lea rax, [rsp + 0x62]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x1400e8918]
mov rax, qword [rsp + 0x38]
mov r8d, dword [rax + 8]
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rcx, qword [0x1400e88f0]
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_WriteConsoleOutputA]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x38]
add rax, 0x10
mov r8, rax
mov edx, 1
mov rcx, qword [0x1400e88f0]
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_SetConsoleWindowInfo]
mov rax, qword [rsp + 0x38]
movsx eax, word [rax + 0xe]
mov rcx, qword [rsp + 0x38]
movsx ecx, word [rcx + 0xc]
mov edx, eax
call fcn.140073540
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140075860
add rsp, 0x88
ret