joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006aa00
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.140075930
sub rsp, rax
mov rax, qword [0x1400e6480]
xor rax, rsp
mov qword [rsp + 0x4060], rax
mov ecx, dword [rsp + 0x4098]
call fcn.140064200
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 0x14006aacd
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.14006a6d0
jmp 0x14006abb1
mov rax, qword [rsp + 0x4080]
mov qword [rsp + 0x28], rax
mov rax, qword [0x1400e4560]
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.14006a910
mov rax, qword [rsp + 0x4088]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0x60], rcx
lea rdx, [rsp + 0x60]
lea rcx, [0x1400e5188]
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 0x14006aba5
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, [0x1400e51b8]
call fcn.140002df0
call fcn.1400826c8
mov dword [rax], 0x83
jmp 0x14006abad
mov dword [rsp + 0x50], 0
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x4060]
xor rcx, rsp
call fcn.1400758f0
add rsp, 0x4070
pop rdi
ret
Function at 0x14006b700
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 0x14006b74d
mov ecx, 0x19000
call fcn.140078014
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x40], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x40], 0
jne 0x14006b74d
call fcn.1400826c8
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
mov eax, 0xffffffff
jmp 0x14006b822
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 0x14006b78e
cmp dword [rsp + 0x58], 0x19000
jae 0x14006b778
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x30], eax
jmp 0x14006b780
mov dword [rsp + 0x30], 0x19000
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x30]
mov dword [rax + 0x48], ecx
jmp 0x14006b79a
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x48], 0x19000
mov rax, qword [rsp + 0x50]
lea rcx, [0x14006aec0]
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 0x14006b7e4
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x54], 1
jmp 0x14006b820
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.14006b550
mov dword [rsp + 0x34], eax
call fcn.1400826c8
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 0x14006b822
xor eax, eax
add rsp, 0x48
ret
Function at 0x14006e130
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 0x14006e1a8
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 0x14006e194
call fcn.140067200
test eax, eax
je 0x14006e181
cmp dword [0x1400e8924], 0
je 0x14006e194
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 0x14006e1a8
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 0x14006e1c7
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 0x14006e200
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x40]
call fcn.140078000
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x60], 0
je 0x14006e21a
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x60]
call fcn.140078000
mov rcx, qword [rsp + 0x30]
call fcn.140078000
xor eax, eax
add rsp, 0x28
ret

Function at 0x14006e230
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x48], 0
jne 0x14006e284
mov ecx, 0x800
call fcn.140078014
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x40], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x40], 0
jne 0x14006e278
call fcn.1400826c8
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
mov eax, 0xffffffff
jmp 0x14006e30f
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, [0x14006dbe0]
xor edx, edx
xor ecx, ecx
call fcn.14008904c
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14006e2f3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.14006b550
mov dword [rsp + 0x30], eax
call fcn.1400826c8
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 0x14006e30f
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 0x14006e320
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, [0x14006df50]
xor edx, edx
xor ecx, ecx
call fcn.14008904c
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14006e3c3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.14006b550
mov dword [rsp + 0x30], eax
call fcn.1400826c8
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 0x14006e3df
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 0x140071c00
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 0x140071c55
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 0x140071c92
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 0x140071cce
jmp 0x140071ea7
cmp dword [0x1400e890c], 0
jne 0x140071dc9
cmp dword [0x1400e5fd8], 0
je 0x140071d20
mov dword [0x1400e5fd8], 0
call fcn.140004710
test eax, eax
je 0x140071d01
mov dword [0x1400e5fdc], 0
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xa8]
call fcn.140076788
test rax, rax
je 0x140071d20
call fcn.140072760
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0xb0], eax
jb 0x140071d50
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xa8]
call fcn.140076788
test rax, rax
je 0x140071d50
mov dword [0x1400e8948], 1
jmp 0x140071d7e
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0xb0], eax
jb 0x140071d7e
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xa8]
call fcn.140076788
test rax, rax
je 0x140071d7e
mov dword [0x1400e8948], 0
cmp dword [0x1400e5fdc], 0
je 0x140071d8c
call fcn.140072b20
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 [0x1400e5fdc], 0
je 0x140071dc4
call fcn.140072e10
jmp 0x140071ea7
cmp dword [rsp + 0xb0], 1
jne 0x140071e02
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0xa8]
movsx eax, byte [rcx + rax]
cmp eax, 0xd
jne 0x140071e02
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.140074de0
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x40], rax
je 0x140071ea7
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x40], rax
jae 0x140071ea7
cmp qword [rsp + 0xc0], 0
je 0x140071e3d
cmp qword [rsp + 0xc0], 0
je 0x140071ea7
mov rax, qword [rsp + 0xc0]
cmp qword [rax], 0
je 0x140071e3d
add rsp, 0x98
ret
Function at 0x140072400
Capabilities:
Manipulate console buffer

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x478
mov rax, qword [0x1400e6480]
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 0x140072438
jmp 0x14007251b
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.140072040
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.1400758f0
add rsp, 0x478
ret

Function at 0x1400726e0
Capabilities:
Manipulate console buffer

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov rax, qword [0x1400e6480]
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 0x140072713
jmp 0x140072740
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.1400758f0
add rsp, 0x58
ret
Function at 0x140072970
Capabilities:
Manipulate console buffer

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x1400e6480]
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 0x1400729bf
xor eax, eax
jmp 0x140072b00
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 0x1400729dc
xor eax, eax
jmp 0x140072b00
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.140073710
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400758f0
add rsp, 0x88
ret
Function at 0x140073710
Capabilities:
Manipulate console buffer

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov rax, qword [0x1400e6480]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x30]
mov rcx, qword [0x1400e88f0]
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x140073746
jmp 0x1400737e4
movzx eax, word [rsp + 0x60]
mov word [rsp + 0x24], ax
movzx eax, word [rsp + 0x68]
mov word [rsp + 0x26], ax
movsx eax, word [rsp + 0x32]
dec eax
cmp dword [rsp + 0x68], eax
jle 0x14007379a
mov eax, dword [0x1400ec920]
cmp dword [rsp + 0x68], eax
jle 0x14007379a
mov eax, dword [0x1400ec920]
mov dword [rsp + 0x20], eax
jmp 0x140073789
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x68]
cmp dword [rsp + 0x20], eax
jge 0x14007379a
call fcn.140073e10
jmp 0x14007377f
movsx eax, word [rsp + 0x32]
cmp dword [rsp + 0x68], eax
jl 0x1400737b1
movsx eax, word [rsp + 0x32]
dec eax
mov word [rsp + 0x26], ax
mov edx, dword [rsp + 0x24]
mov rcx, qword [0x1400e88f0]
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x1400737d0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x60]
mov dword [0x1400ec924], eax
mov eax, dword [rsp + 0x68]
mov dword [0x1400ec920], eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400758f0
add rsp, 0x58
ret

Function at 0x140082ab8
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140082943
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test rax, rax
je 0x140082943
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140082943
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140082943
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140082943
cmp dword [rcx + 0x84], 0xe
jbe 0x140082943
cmp dword [rcx + 0xf8], 0
je 0x140082943
mov ecx, ebx
call fcn.1400829e4
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1400827c0
cmp dword [rbp + 0x20], 0
je 0x140082990
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140082998
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400828dc

Function at 0x1400877f8
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
test eax, eax
jne 0x140087818
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.140082658
or eax, 0xffffffff
jmp 0x14008781a
xor eax, eax
add rsp, 0x28
ret
Function at 0x140087820
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x140087840
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.140082658
or eax, 0xffffffff
jmp 0x140087842
xor eax, eax
add rsp, 0x28
ret
jmp 0x140087820

Function at 0x140087848
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x140087840
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.140082658
or eax, 0xffffffff
jmp 0x140087842
xor eax, eax
add rsp, 0x28
ret
jmp 0x140087820
Function at 0x140013a10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x1400a407c]
call fcn.140075db4
mov r9, qword [rbp + 0xf8]
mov r8, qword [rbp + 0xf0]
mov rdx, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x140013a70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x1400a407c]
call fcn.140075db4
mov r9, qword [rbp + 0xf8]
mov r8, qword [rbp + 0xf0]
mov rdx, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x140014040
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x20]
lea rcx, [0x1400a407c]
call fcn.140075db4
mov eax, dword [rbp + 0x160]
not eax
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x150]
mov qword [rbp + 0x28], rax
lea rax, [0x1400796f0]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x158]
mov qword [rbp + 0x118], rax
mov rax, qword [rbp + 0x158]
dec rax
mov qword [rbp + 0x158], rax
cmp qword [rbp + 0x118], 0
je 0x1400140bf
mov dword [rbp + 0x120], 1
jmp 0x1400140c9
mov dword [rbp + 0x120], 0
cmp dword [rbp + 0x120], 0
je 0x140014112
mov eax, dword [rbp + 4]
shr eax, 8
mov ecx, dword [rbp + 4]
and ecx, 0xff
mov rdx, qword [rbp + 0x28]
movzx edx, byte [rdx]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rbp + 0x48]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 0x114], eax
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
mov eax, dword [rbp + 0x114]
mov dword [rbp + 4], eax
jmp 0x14001408a
mov eax, dword [rbp + 4]
not eax
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret