joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000427d
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140040c3c
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1400b23f8]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x1400b23f0]
call fcn.1400406b4
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x140040c7c
call qword [0x1400d9020]
jmp 0x140040c82
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140004345
Capabilities:
Set environment variable

Disassembly:
jmp 0x140098f9c
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140002423
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140099026
cmp byte [rbp - 0x21], r15b
je 0x140099021
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14009905c
call fcn.1400047c8
test eax, eax
jne 0x140099048
cmp byte [rbp - 0x21], r15b
je 0x140099040
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14009905c
cmp byte [rbp - 0x21], r15b
je 0x140099059
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140004a07
test eax, eax
jne 0x1400990fc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140002423
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14009909b
cmp byte [rbp - 0x21], r15b
je 0x1400990d0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400990d0
call fcn.1400047c8
test eax, eax
jne 0x1400990bc
cmp byte [rbp - 0x21], r15b
je 0x1400990b5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400990d0
cmp byte [rbp - 0x21], r15b
je 0x1400990cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140004a07
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400990fc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400990ff
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14009910d
mov rcx, rdi
call fcn.1400011ae
cmp byte [rbp + 0x3f], r15b
je 0x14009911c
mov rcx, qword [rbp + 0x27]
call fcn.1400011ae
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140004359
Capabilities:
Check for time delay via gettickcount

Disassembly:
jmp 0x140018030
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, eax
cmp byte [rbx + 8], 0
jne 0x1400181b3
nop dword [rax + rax]
xor sil, sil
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
xor edi, edi
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
sub rax, rcx
sar rax, 3
test rax, rax
je 0x1400180de
nop dword [rax]
nop word [rax + rax]
lea rdx, [rsp + 0x20]
mov rcx, qword [rcx + rdi*8]
call fcn.1400010e6
test al, al
je 0x1400180c7
mov rax, qword [rbx + 0x10]
mov r8, qword [rbx]
mov rdx, qword [rax + rdi*8]
mov rcx, rbx
call qword [r8 + 0x10]
mov sil, 1
inc rdi
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
sub rax, rcx
sar rax, 3
cmp rdi, rax
jb 0x1400180a0
mov ecx, dword [rbx + 0x28]
test ecx, ecx
jle 0x14001810a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebp
mov ecx, dword [rbx + 0x28]
cmp eax, ecx
jl 0x14001810a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, eax
jmp 0x1400181a9
test sil, sil
jne 0x1400181a9
mov edi, 0xffffffff
test ecx, ecx
jle 0x140018130
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [rbx + 0x28]
add ecx, ebp
sub ecx, eax
xor edi, edi
test ecx, ecx
cmovg edi, ecx
mov rax, qword [rsp + 0x28]
sub rax, qword [rsp + 0x20]
cmp rax, 8
jae 0x140018175
cmp edi, 0xffffffff
jne 0x140018167
lea r8, str.timeout___INFINITE
mov edx, 0x47
lea rcx, str.D:_a_arduino_ide_arduino_ideelectron_build_node_modules_node_ptydepswinpty_src_agentEventLoop.cc
call fcn.1400040b1
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400181a9
test edi, edi
je 0x1400181a9
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400181a9
sar rax, 3
mov r9d, edi
xor r8d, r8d
mov rdx, qword [rsp + 0x20]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
jne 0x1400181a9
lea r8, str.result___WAIT_FAILED
mov edx, 0x4f
lea rcx, str.D:_a_arduino_ide_arduino_ideelectron_build_node_modules_node_ptydepswinpty_src_agentEventLoop.cc
call fcn.1400040b1
cmp byte [rbx + 8], 0
je 0x140018070
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400181ef
mov rdx, qword [rsp + 0x30]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400181ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018204
call fcn.140003b75
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.14000215d
int3

Function at 0x140004462
Capabilities:
Parse pe header

Disassembly:
jmp 0x14006f200
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14006ef5c
Function at 0x14000448a
Capabilities:
Manipulate console buffer

Disassembly:
jmp 0x140011e00
push rbx
sub rsp, 0x20
mov r10, qword [rdx]
mov rbx, rdx
mov r8, qword [rdx + 8]
movabs rax, 0x6666666666666667
sub r8, r10
imul r8
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x140011e64
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x38]
mov r8d, edx
mov dword [rsp + 0x38], 0
mov rdx, r10
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x140011e5d
lea rcx, str.WriteConsoleInputW_failed
call fcn.140004610
mov rax, qword [rbx]
mov qword [rbx + 8], rax
add rsp, 0x20
pop rbx
ret

Function at 0x1400046d8
Capabilities:
Manipulate console buffer
Read pipe
Write pipe

Disassembly:
jmp 0x140021520
sub rsp, 0x28
mov edx, dword [rdx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x140021543
lea rcx, str.SetConsoleCursorPosition_failed
add rsp, 0x28
jmp fcn.140004610
add rsp, 0x28
ret
Function at 0x14000483b
Capabilities:
Log keystrokes
Read pipe
Write pipe

Disassembly:
jmp 0x140010f30
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x30
movzx esi, r8w
mov ebp, edx
mov r14, rcx
cmp r9d, 0x10000
jae 0x140010f83
lea eax, [r9 - 0xd800]
cmp eax, 0x7ff
jbe 0x140011000
movzx eax, word [rsp + 0x60]
mov word [rsp + 0x60], ax
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
jmp fcn.140002cc5
cmp r9d, 0x110000
jae 0x140011000
mov ecx, 0xd800
mov qword [rsp + 0x40], rbx
movzx ebx, word [rsp + 0x60]
mov qword [rsp + 0x48], rdi
lea edi, [r9 - 0x10000]
mov r9d, edi
mov word [rsp + 0x20], bx
shr r9d, 0xa
or r9w, cx
mov ecx, 0x3ff
and di, cx
mov ecx, 0xdc00
or di, cx
mov rcx, r14
call fcn.140002cc5
movzx r9d, di
mov word [rsp + 0x60], bx
movzx r8d, si
mov edx, ebp
mov rcx, r14
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
jmp fcn.140002cc5
mov edx, r9d
lea rcx, str.INTERNAL_ERROR:_appendInputRecordCP:_invalid_codePoint:_U_04X
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
jmp fcn.140004610
Function at 0x14000d930
Capabilities:
Manipulate console buffer

Disassembly:
jmp 0x14000d930
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400cb008]
xor rax, rsp
mov qword [rbp - 8], rax
mov ebx, r8d
mov edi, edx
mov rsi, rcx
cmp edx, 1
jl 0x14000d966
cmp ebx, 1
jge 0x14000d97e
lea r8, str.cols___1__rows___1
mov edx, 0x227
lea rcx, str.D:_a_arduino_ide_arduino_ideelectron_build_node_modules_node_ptydepswinpty_src_agentAgent.cc
call fcn.1400040b1
mov eax, 0x9c4
cmp edi, eax
cmovg edi, eax
mov eax, 0x7d0
cmp ebx, eax
cmovg ebx, eax
lea r15, [rsi + 0x40]
mov qword [rbp - 0x48], r15
movzx r12d, byte [r15 + 8]
mov byte [rbp - 0x40], r12b
movzx edx, byte [rsi + 0x48]
mov rcx, r15
call fcn.140003526
nop
mov word [rbp - 0x60], di
mov word [rbp - 0x5e], bx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x38], xmm0
mov dword [rbp - 0x28], eax
mov word [rbp - 0x24], ax
cmp byte [rsi + 0x38], al
jne 0x14000d9e6
lea rcx, [rbp - 0x50]
call fcn.140002ce8
mov rbx, qword [rax]
mov qword [rax], 0
mov rdi, qword [rbp - 0x50]
jmp 0x14000d9fd
lea rcx, [rbp - 0x58]
call fcn.140003b6b
mov rbx, qword [rax]
mov qword [rax], 0
mov rdi, qword [rbp - 0x58]
test rdi, rdi
je 0x14000da1e
cmp byte [rdi + 8], 0
je 0x14000da11
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x10
mov rcx, rdi
call fcn.140003b75
mov qword [rbp - 0x58], rbx
mov edi, dword [rbp - 0x60]
mov dword [rbp - 0x60], edi
lea r9, [rbp - 0x38]
lea r8, [rbp - 0x60]
mov rdx, rbx
mov rcx, qword [rsi + 0x68]
call fcn.140003715
mov rcx, qword [rsi + 0xa8]
mov rax, qword [rbp - 0x2e]
mov qword [rcx + 0xec], rax
mov rcx, qword [rsi + 0x70]
test rcx, rcx
je 0x14000da6b
mov dword [rbp - 0x60], edi
lea r9, [rbp - 0x38]
lea r8, [rbp - 0x60]
mov rdx, qword [rsi + 0x78]
call fcn.140003715
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x10], eax
mov eax, 4
mov word [rbp - 0x20], ax
lea rdx, [rbp - 0x60]
mov rcx, rbx
call fcn.1400020d6
mov ecx, dword [rax]
mov dword [rbp - 0x1c], ecx
mov dword [rbp - 0x5c], 0
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea r9, [rbp - 0x5c]
mov r8d, 1
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
nop
test rbx, rbx
je 0x14000dadd
cmp byte [rbx + 8], 0
je 0x14000dacf
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x10
mov rcx, rbx
call fcn.140003b75
nop
movzx edx, r12b
mov rcx, r15
call fcn.140003526
nop
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400029d2
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140010f30
Capabilities:
Log keystrokes
Read pipe
Write pipe

Disassembly:
jmp 0x140010f30
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x30
movzx esi, r8w
mov ebp, edx
mov r14, rcx
cmp r9d, 0x10000
jae 0x140010f83
lea eax, [r9 - 0xd800]
cmp eax, 0x7ff
jbe 0x140011000
movzx eax, word [rsp + 0x60]
mov word [rsp + 0x60], ax
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
jmp fcn.140002cc5
cmp r9d, 0x110000
jae 0x140011000
mov ecx, 0xd800
mov qword [rsp + 0x40], rbx
movzx ebx, word [rsp + 0x60]
mov qword [rsp + 0x48], rdi
lea edi, [r9 - 0x10000]
mov r9d, edi
mov word [rsp + 0x20], bx
shr r9d, 0xa
or r9w, cx
mov ecx, 0x3ff
and di, cx
mov ecx, 0xdc00
or di, cx
mov rcx, r14
call fcn.140002cc5
movzx r9d, di
mov word [rsp + 0x60], bx
movzx r8d, si
mov edx, ebp
mov rcx, r14
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
jmp fcn.140002cc5
mov edx, r9d
lea rcx, str.INTERNAL_ERROR:_appendInputRecordCP:_invalid_codePoint:_U_04X
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
jmp fcn.140004610

Function at 0x140011060
Capabilities:
Log keystrokes

Disassembly:
jmp 0x140011060
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
mov dword [rsp + 0x24], edx
mov eax, 1
movzx ecx, r8w
xor edx, edx
mov word [rsp + 0x28], ax
movzx ebx, r9w
mov dword [rsp + 0x20], 1
mov word [rsp + 0x2a], r8w
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rdx, qword [rdi + 8]
mov word [rsp + 0x2c], ax
movzx eax, word [rsp + 0x70]
mov dword [rsp + 0x30], eax
mov word [rsp + 0x2e], bx
cmp rdx, qword [rdi + 0x10]
je 0x1400110d1
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdx], xmm0
mov dword [rdx + 0x10], eax
add qword [rdi + 8], 0x14
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
lea r8, [rsp + 0x20]
mov rcx, rdi
call fcn.14000270c
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140011bc0
Capabilities:
Manipulate console buffer

Disassembly:
jmp 0x140011bc0
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
movzx ebp, dl
mov rdi, rcx
lea rsi, [rcx + 0x28]
mov r14, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140011be9
mov r14, qword [rsi]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
xor ebx, ebx
mov rcx, qword [rcx + 0x38]
test rcx, rcx
je 0x140011c40
nop word [rax + rax]
sub ecx, ebx
lea r8, [r14 + rbx]
mov byte [rsp + 0x20], bpl
mov r9d, ecx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140002428
cmp eax, 0xffffffff
je 0x140011c40
cdqe
add rbx, rax
mov rax, qword [rdi + 0x38]
mov ecx, eax
cmp rbx, rax
jb 0x140011c10
lea rax, [rsi + 0x10]
mov r8, qword [rax]
cmp r8, rbx
cmovb rbx, r8
cmp qword [rsi + 0x18], 0x10
jb 0x140011c58
mov rsi, qword [rsi]
sub r8, rbx
mov qword [rax], r8
inc r8
lea rdx, [rsi + rbx]
mov rcx, rsi
call fcn.1400048c7
mov rcx, qword [rsp + 0x38]
mov r10, qword [rsp + 0x30]
sub rcx, r10
movabs rbx, 0x6666666666666667
mov rax, rbx
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x140011cd1
mov dword [rsp + 0x70], 0
lea r9, [rsp + 0x70]
mov r8d, edx
mov rdx, r10
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x140011cc7
lea rcx, str.WriteConsoleInputW_failed
call fcn.140004610
mov r10, qword [rsp + 0x30]
mov qword [rsp + 0x38], r10
test r10, r10
je 0x140011d23
mov rcx, qword [rsp + 0x40]
sub rcx, r10
mov rax, rbx
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*4]
shl rdx, 2
mov rax, r10
cmp rdx, 0x1000
jb 0x140011d1b
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011d39
mov rcx, r10
call fcn.140003b75
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
call fcn.14000215d
int3

Function at 0x140011e00
Capabilities:
Manipulate console buffer

Disassembly:
jmp 0x140011e00
push rbx
sub rsp, 0x20
mov r10, qword [rdx]
mov rbx, rdx
mov r8, qword [rdx + 8]
movabs rax, 0x6666666666666667
sub r8, r10
imul r8
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x140011e64
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x38]
mov r8d, edx
mov dword [rsp + 0x38], 0
mov rdx, r10
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x140011e5d
lea rcx, str.WriteConsoleInputW_failed
call fcn.140004610
mov rax, qword [rbx]
mov qword [rbx + 8], rax
add rsp, 0x20
pop rbx
ret
Function at 0x140018030
Capabilities:
Check for time delay via gettickcount

Disassembly:
jmp 0x140018030
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, eax
cmp byte [rbx + 8], 0
jne 0x1400181b3
nop dword [rax + rax]
xor sil, sil
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
xor edi, edi
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
sub rax, rcx
sar rax, 3
test rax, rax
je 0x1400180de
nop dword [rax]
nop word [rax + rax]
lea rdx, [rsp + 0x20]
mov rcx, qword [rcx + rdi*8]
call fcn.1400010e6
test al, al
je 0x1400180c7
mov rax, qword [rbx + 0x10]
mov r8, qword [rbx]
mov rdx, qword [rax + rdi*8]
mov rcx, rbx
call qword [r8 + 0x10]
mov sil, 1
inc rdi
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
sub rax, rcx
sar rax, 3
cmp rdi, rax
jb 0x1400180a0
mov ecx, dword [rbx + 0x28]
test ecx, ecx
jle 0x14001810a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebp
mov ecx, dword [rbx + 0x28]
cmp eax, ecx
jl 0x14001810a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, eax
jmp 0x1400181a9
test sil, sil
jne 0x1400181a9
mov edi, 0xffffffff
test ecx, ecx
jle 0x140018130
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [rbx + 0x28]
add ecx, ebp
sub ecx, eax
xor edi, edi
test ecx, ecx
cmovg edi, ecx
mov rax, qword [rsp + 0x28]
sub rax, qword [rsp + 0x20]
cmp rax, 8
jae 0x140018175
cmp edi, 0xffffffff
jne 0x140018167
lea r8, str.timeout___INFINITE
mov edx, 0x47
lea rcx, str.D:_a_arduino_ide_arduino_ideelectron_build_node_modules_node_ptydepswinpty_src_agentEventLoop.cc
call fcn.1400040b1
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400181a9
test edi, edi
je 0x1400181a9
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400181a9
sar rax, 3
mov r9d, edi
xor r8d, r8d
mov rdx, qword [rsp + 0x20]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
jne 0x1400181a9
lea r8, str.result___WAIT_FAILED
mov edx, 0x4f
lea rcx, str.D:_a_arduino_ide_arduino_ideelectron_build_node_modules_node_ptydepswinpty_src_agentEventLoop.cc
call fcn.1400040b1
cmp byte [rbx + 8], 0
je 0x140018070
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400181ef
mov rdx, qword [rsp + 0x30]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400181ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018204
call fcn.140003b75
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.14000215d
int3
Function at 0x14001bb40
Capabilities:
Read file on windows
Write file on windows

Disassembly:
jmp 0x14001bb40
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor r14d, r14d
lea rdi, [rcx + 0x20]
mov esi, r14d
mov rbx, rcx
cmp byte [rcx + 0x10], sil
je 0x14001bbc5
mov rcx, qword [rcx + 8]
lea r8, [rsp + 0x68]
mov dword [rsp + 0x68], r14d
xor r9d, r9d
mov rdx, rdi
mov rcx, qword [rcx + 0x98]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x14001bba1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
jne 0x14001bca8
xor eax, eax
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rax, qword [rbx]
mov rcx, rbx
mov edx, dword [rsp + 0x68]
mov byte [rbx + 0x10], sil
call qword [rax + 8]
mov dword [rbx + 0x14], r14d
mov esi, 2
mov rax, qword [rbx]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], r14d
mov rcx, rbx
mov byte [rsp + 0x60], r14b
call qword [rax + 0x10]
test al, al
je 0x14001bc7d
nop word [rax + rax]
lea r9, [rsp + 0x68]
mov r8d, dword [rsp + 0x70]
lea rdx, [rbx + 0x40]
mov dword [rbx + 0x14], r8d
xorps xmm0, xmm0
mov dword [rsp + 0x68], r14d
movups xmmword [rdi], xmm0
mov qword [rsp + 0x20], rdi
movups xmmword [rdi + 0x10], xmm0
mov rcx, qword [rbx + 8]
mov rax, qword [rbx + 0x18]
mov qword [rbx + 0x38], rax
mov rcx, qword [rcx + 0x98]
cmp byte [rsp + 0x60], r14b
je 0x14001bc38
call qword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x14001bc3e
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001bc8a
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rax, qword [rbx]
mov rcx, rbx
mov edx, dword [rsp + 0x68]
call qword [rax + 8]
mov dword [rbx + 0x14], r14d
lea r8, [rsp + 0x60]
mov rax, qword [rbx]
lea rdx, [rsp + 0x70]
mov rcx, rbx
mov esi, 2
call qword [rax + 0x10]
test al, al
jne 0x14001bbf0
mov eax, esi
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14001bca8
mov byte [rbx + 0x10], 1
mov eax, esi
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, 1
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400205d0
Capabilities:
Read pipe
Set console window title
Write pipe

Disassembly:
jmp 0x1400205d0
sub rsp, 0x28
cmp qword [rdx + 0x18], 8
jb 0x1400205de
mov rdx, qword [rdx]
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
test eax, eax
jne 0x1400205fb
lea rcx, str.SetConsoleTitleW_failed
add rsp, 0x28
jmp fcn.140004610
add rsp, 0x28
ret

Function at 0x140020e40
Capabilities:
Read pipe
Write pipe

Disassembly:
jmp 0x140020e40
sub rsp, 0x28
mov rcx, qword [rcx]
mov r8, rdx
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
test eax, eax
jne 0x140020e69
lea rcx, str.SetConsoleWindowInfo_failed
add rsp, 0x28
jmp fcn.140004610
add rsp, 0x28
ret
Function at 0x140021390
Capabilities:
Read pipe
Write pipe

Disassembly:
jmp 0x140021390
push rbx
sub rsp, 0x20
mov rcx, qword [rcx]
mov rbx, rdx
mov edx, dword [rdx]
call qword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
test eax, eax
jne 0x1400213c1
movsx r8d, word [rbx + 2]
lea rcx, str.SetConsoleScreenBufferSize_failed:_size__d__d_
movsx edx, word [rbx]
add rsp, 0x20
pop rbx
jmp fcn.140004610
add rsp, 0x20
pop rbx
ret

Function at 0x140021520
Capabilities:
Manipulate console buffer
Read pipe
Write pipe

Disassembly:
jmp 0x140021520
sub rsp, 0x28
mov edx, dword [rdx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x140021543
lea rcx, str.SetConsoleCursorPosition_failed
add rsp, 0x28
jmp fcn.140004610
add rsp, 0x28
ret

Function at 0x140021560
Capabilities:
Read pipe
Write pipe

Disassembly:
jmp 0x140021560
sub rsp, 0x28
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
test eax, eax
jne 0x140021581
lea rcx, str.SetConsoleTextAttribute_failed
add rsp, 0x28
jmp fcn.140004610
add rsp, 0x28
ret

Function at 0x140021620
Capabilities:
Manipulate console buffer

Disassembly:
jmp 0x140021620
sub rsp, 0x38
mov r9, qword [rdx]
xor eax, eax
mov rcx, qword [rcx]
mov r10, r8
mov dword [rsp + 0x40], eax
mov rdx, r10
mov rax, r9
mov qword [rsp + 0x58], r9
shr rax, 0x20
sub ax, r9w
inc ax
mov word [rsp + 0x48], ax
mov rax, r9
shr rax, 0x30
shr r9, 0x10
sub ax, r9w
mov r9d, dword [rsp + 0x40]
inc ax
mov word [rsp + 0x4a], ax
lea rax, [rsp + 0x58]
mov r8d, dword [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteConsoleOutputW]
test eax, eax
jne 0x14002168f
lea rcx, str.WriteConsoleOutput_failed
call fcn.140004610
add rsp, 0x38
ret
Function at 0x140024940
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
jmp 0x140024940
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov qword [rsp + 0x30], rcx
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx], rax
test rax, rax
jne 0x140024983
lea r8, str.m_module___NULL
lea edx, [rax + 0x28]
lea rcx, str.D:_a_arduino_ide_arduino_ideelectron_build_node_modules_node_ptydepswinpty_src_sharedOsModule.h
call fcn.1400040b1
nop
xor eax, eax
mov qword [rbx + 8], rax
mov byte [rbx + 0x10], al
mov qword [rbx + 0x18], rax
lea rdx, str.SystemFunction036
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
jne 0x1400249fc
lea rdx, str.SystemFunction036
lea rcx, str.GetProcAddress:__s_is_missing
call fcn.140004610
mov qword [rbx + 8], rdi
mov dword [rsp + 0x20], 0xf0000000
lea r9d, [rdi + 1]
xor r8d, r8d
xor edx, edx
lea rcx, [rbx + 0x18]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
setne cl
mov byte [rbx + 0x10], cl
test eax, eax
jne 0x140024a00
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GenRandom:_CryptAcquireContext_failed:__u
call fcn.140004610
jmp 0x140024a00
mov qword [rbx + 8], rdi
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret