joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400befc0
Capabilities:
Get memory capacity

Disassembly:
push rbx
sub rsp, 0xc0
mov rax, qword [0x1401664b8]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbx, rcx
call fcn.140023530
xorps xmm0, xmm0
mov qword [rbx + 0x70], 0
movups xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0xa0], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, 0x48
lea rdx, [rsp + 0x60]
mov rcx, rax
call sub.KERNEL32.dll_K32GetProcessMemoryInfo
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x50], rdx
mov qword [rbx + 0x50], rcx
mov rcx, qword [rsp + 0x68]
cmovbe rdx, qword [rsp + 0x50]
mov qword [rbx + 0x58], rcx
mov rcx, qword [rsp + 0x98]
mov qword [rbx], rax
mov rax, qword [rsp + 0x30]
mov qword [rbx + 0x60], rcx
mov rcx, qword [rsp + 0xa0]
mov qword [rbx + 0x40], rax
mov rax, rbx
mov qword [rbx + 0x68], rcx
mov qword [rbx + 0x48], rdx
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14010f320
add rsp, 0xc0
pop rbx
ret
Function at 0x1400bf8c0
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x1401664b8]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor r12d, r12d
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x20], r12
mov r14, r8
mov qword [rsp + 0x28], r12
mov r15, rdx
mov dil, 1
mov esi, r12d
mov r13d, r12d
test rdx, rdx
je 0x1400bf98c
cmp word [rdx], r12w
je 0x1400bf98c
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rdx + rbx*2], r12w
jne 0x1400bf923
inc ebx
test ebx, ebx
jle 0x1400bf94d
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.140019590
mov r13d, dword [rsp + 0x2c]
mov esi, dword [rsp + 0x28]
mov r12, qword [rsp + 0x20]
mov edx, esi
add esi, ebx
mov dword [rsp + 0x28], esi
cmp esi, r13d
jle 0x1400bf972
lea rcx, [rsp + 0x20]
call fcn.1400191f0
mov r13d, dword [rsp + 0x2c]
mov esi, dword [rsp + 0x28]
mov r12, qword [rsp + 0x20]
movsxd r8, ebx
mov rdx, r15
add r8, r8
mov rcx, r12
call fcn.140032f10
mov eax, 4
test esi, esi
jne 0x1400bf991
mov eax, 5
lea edx, [rsi + rax]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x3c], r13d
cmp edx, r13d
jle 0x1400bf9b1
lea rcx, [rsp + 0x30]
call fcn.140019590
mov r8d, 3
lea rdx, [0x14012b858]
lea rcx, [rsp + 0x30]
call fcn.14001e570
cmp dword [rsp + 0x38], 0
lea rbx, [0x14011b550]
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x20]
mov r8, rbx
movzx r9d, dil
cmovne r8, qword [rsp + 0x30]
call fcn.1400c34f0
cmp dword [rsp + 0x28], 0
lea rdx, [rsp + 0x50]
cmovne rbx, qword [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, qword [rsp + 0x20]
mov rbx, rax
test rcx, rcx
je 0x1400bfa1b
call fcn.140044390
cmp rbx, 0xffffffffffffffff
je 0x1400bfa85
nop dword [rax]
nop word [rax + rax]
movzx ecx, word [rsp + 0x7c]
movzx eax, word [rsp + 0x7e]
cmp cx, 0x2e
jne 0x1400bfa56
test ax, ax
je 0x1400bfa65
cmp cx, cx
jne 0x1400bfa56
cmp ax, cx
jne 0x1400bfa56
cmp word [rbp - 0x80], 0
je 0x1400bfa65
mov rcx, qword [r14 + 8]
lea rdx, [rsp + 0x50]
call qword [r14]
movzx edi, al
test dil, dil
je 0x1400bfa7c
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400bfa30
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400bfa94
call fcn.140044390
movzx eax, dil
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14010f320
mov rbx, qword [rsp + 0x2f0]
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400c3a10
Capabilities:
Create process memory minidump

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rbx, r9
mov rdi, r8
mov ebp, edx
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor esi, esi
mov qword [rsp + 0x30], 0
cmp r14, rax
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
setne sil
mov rcx, rbx
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x1400c3a7f
xor al, al
jmp 0x1400c3b2a
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x64], rax
mov eax, dword [rdi + 0x54]
add eax, eax
mov dword [rsp + 0x60], ebp
cmp dword [rdi + 0x50], 0
mov dword [rsp + 0x6c], esi
mov dword [rsp + 0x50], 0x10000
mov dword [rsp + 0x54], eax
je 0x1400c3ab1
mov rax, qword [rdi + 0x48]
jmp 0x1400c3ab8
lea rax, [0x14011b550]
mov qword [rsp + 0x58], rax
mov rcx, rdi
lea rax, [rsp + 0x50]
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x44], rax
call fcn.140031630
xor ebx, ebx
mov ecx, 0x1826
test al, al
cmovne ebx, ecx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov qword [rsp + 0x30], 0
mov r9d, ebx
mov edx, eax
mov r8, r15
lea rax, [rsp + 0x40]
mov rcx, r14
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call sub.dbghelp.dll_MiniDumpWriteDump
mov rcx, r15
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 1
sete al
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1400c3ed0
Capabilities:
Get common file path

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword gs:[0x58]
mov ecx, dword [0x1402374f4]
mov edx, 0x1c
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x140210978], eax
jg 0x1400c40bb
mov ecx, dword [0x140210970]
test ecx, ecx
je 0x1400c3f15
lea eax, [rcx - 1]
test eax, eax
jne 0x1400c40a4
lea r9, [rbp + 0x10]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140142990]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x1400c409e
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x68], rdi
mov rdi, qword [rbp + 0x10]
mov qword [rsp + 0x60], r14
xor r14d, r14d
mov qword [rbp - 0x30], r14
mov edx, r14d
mov dword [rbp - 0x28], edx
mov ecx, r14d
mov dword [rbp - 0x24], ecx
test rdi, rdi
je 0x1400c3fb9
cmp word [rdi], cx
je 0x1400c3fb9
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], cx
jne 0x1400c3f74
inc ebx
test ebx, ebx
jle 0x1400c3f94
mov edx, ebx
lea rcx, [rbp - 0x30]
call fcn.140019590
mov ecx, dword [rbp - 0x24]
mov edx, dword [rbp - 0x28]
lea eax, [rbx + rdx]
mov dword [rbp - 0x28], eax
cmp eax, ecx
jle 0x1400c3fa7
lea rcx, [rbp - 0x30]
call fcn.1400191f0
mov rcx, qword [rbp - 0x30]
mov rdx, rdi
movsxd r8, ebx
add r8, r8
call fcn.140032f10
lea r9, [0x140128070]
mov dword [rsp + 0x20], 1
lea r8, [0x14011dca0]
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x30]
call fcn.14001f930
mov rcx, qword [rax]
mov r8d, dword [rax + 8]
mov qword [rax], r14
mov qword [rbp - 0x40], rcx
mov ecx, dword [rax + 0xc]
mov qword [rax + 8], r14
mov eax, r8d
neg eax
mov dword [rbp - 0x38], r8d
mov dword [rbp - 0x34], ecx
sbb edx, edx
add edx, 7
add edx, r8d
cmp edx, ecx
jle 0x1400c4012
lea rcx, [rbp - 0x40]
call fcn.140019590
mov r8d, 6
lea rdx, str._Epic_
lea rcx, [rbp - 0x40]
call fcn.14001cc20
mov rcx, qword [0x140210968]
mov rsi, qword [rbp - 0x40]
mov ebx, dword [rbp - 0x38]
mov edi, dword [rbp - 0x34]
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], r14
mov r14, qword [rsp + 0x60]
test rcx, rcx
je 0x1400c4050
call fcn.140044390
mov rcx, qword [rbp - 0x20]
mov qword [0x140210968], rsi
mov rsi, qword [rsp + 0x90]
mov dword [0x140210970], ebx
mov rbx, qword [rsp + 0x88]
mov dword [0x140210974], edi
mov rdi, qword [rsp + 0x68]
test rcx, rcx
je 0x1400c4086
call fcn.140044390
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x1400c4094
call fcn.140044390
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [0x140210970]
test ecx, ecx
lea rax, [0x14011b550]
cmovne rax, qword [0x140210968]
add rsp, 0x70
pop rbp
ret
lea rcx, [0x140210978]
call fcn.14010f50c
cmp dword [0x140210978], 0xffffffff
jne 0x1400c3f00
lea rcx, [0x1401175e0]
call fcn.14010f270
lea rcx, [0x140210978]
call fcn.14010f4ac
jmp 0x1400c3f00
Function at 0x1400c4710
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x538
mov rax, qword [0x1401664b8]
xor rax, rsp
mov qword [rsp + 0x520], rax
call fcn.1400c8af0
cmp qword [rsp + 0x548], 0
je 0x1400c4752
cmp dword [rsp + 0x550], 0
jne 0x1400c4759
xor eax, eax
jmp 0x1400c47fd
mov r8d, dword [rsp + 0x540]
xor edx, edx
mov ecx, 0x1b
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400c477f
xor eax, eax
jmp 0x1400c47fd
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
lea rcx, [rsp + 0x30]
call fcn.1400c3c50
mov dword [rsp + 0x70], 0x100001
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x510], rax
mov dword [rsp + 0x28], 0
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1400c47e3
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x30]
mov edx, dword [rsp + 0x550]
mov rcx, qword [rsp + 0x548]
call fcn.1400c4500
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.14010f320
add rsp, 0x538
ret

Function at 0x1400c4940
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0x40
xor r9d, r9d
mov dword [rsp + 0x20], 0x18
lea r8, [rsp + 0x20]
mov qword [rsp + 0x28], 0
mov rbx, rcx
mov dword [rsp + 0x30], 1
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1400c4990
mov rcx, qword [rbx]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1400c4990
mov al, 1
add rsp, 0x40
pop rbx
ret
xor al, al
add rsp, 0x40
pop rbx
ret
Function at 0x1400c4f50
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x90
xorps xmm0, xmm0
mov rbx, r8
movups xmmword [rax - 0x78], xmm0
mov dword [rax - 0x78], 0x70
movups xmmword [rax - 0x68], xmm0
mov qword [rax - 0x60], rcx
lea rcx, [rsp + 0x20]
mov dword [rax - 0x74], 0x4040
movups xmmword [rax - 0x58], xmm0
movups xmmword [rax - 0x48], xmm0
movups xmmword [rax - 0x38], xmm0
movups xmmword [rax - 0x28], xmm0
movups xmmword [rax - 0x18], xmm0
lea rax, str.runas
mov dword [rsp + 0x50], 5
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], rdx
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1400c4ff9
mov rcx, qword [rsp + 0x88]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test rbx, rbx
je 0x1400c4fe0
mov rcx, qword [rsp + 0x88]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0x90
pop rbx
ret
xor al, al
add rsp, 0x90
pop rbx
ret

Function at 0x1400c5620
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov eax, 0x80
mov qword [rcx], rsi
mov edi, esi
mov qword [rcx + 8], rsi
cmp eax, esi
mov rbx, rcx
jle 0x1400c565a
mov dword [rbx + 8], eax
cmp eax, dword [rbx + 0xc]
jle 0x1400c5669
mov edx, edi
mov rcx, rbx
call fcn.1400191f0
jmp 0x1400c5669
jge 0x1400c5669
je 0x1400c5669
mov rcx, rbx
mov dword [rbx + 8], eax
call fcn.140019390
mov rdx, qword [rbx]
mov ecx, dword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1400c56ec
movsxd rdi, dword [rbx + 8]
cmp eax, edi
jae 0x1400c5644
inc eax
cmp eax, edi
jle 0x1400c56c4
mov esi, eax
mov dword [rbx + 8], eax
sub esi, edi
cmp eax, dword [rbx + 0xc]
jle 0x1400c569d
mov edx, edi
mov rcx, rbx
call fcn.1400191f0
mov rax, qword [rbx]
xor edx, edx
movsxd r8, esi
add r8, r8
lea rcx, [rax + rdi*2]
call sub.VCRUNTIME140.dll_memset
mov rax, rbx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
jge 0x1400c570b
mov ecx, edi
sub ecx, eax
je 0x1400c570b
sub edi, ecx
mov rcx, rbx
mov dword [rbx + 8], edi
call fcn.140019390
mov rax, rbx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov eax, dword [rbx + 0xc]
mov dword [rbx + 8], esi
test eax, eax
jns 0x1400c5700
xor edx, edx
mov rcx, rbx
call fcn.140019590
mov rax, qword [rbx]
test rax, rax
je 0x1400c570b
mov word [rax], si
mov rsi, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ca610
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbp
push rbx
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x58
xor bl, bl
mov qword [r11 + 0x20], rsi
xor r14d, r14d
mov qword [r11 - 0x38], r12
mov rax, rdx
mov r13d, r14d
mov r15, r9
mov rdi, r8
mov edx, 0x200
nop dword [rax]
test bl, bl
jne 0x1400ca7eb
mov r9d, 0x100
mov qword [rbp - 0x20], r14
test r13d, r13d
cmove r9d, edx
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x20], rdx
or r9d, 0x20019
mov rdx, rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400ca7d1
mov rcx, qword [rbp - 0x20]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov rdx, rdi
mov dword [rbp - 0x28], r14d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400ca7c7
mov eax, dword [rbp - 0x28]
test eax, eax
je 0x1400ca7c7
mov ecx, eax
call fcn.140013490
mov rcx, qword [rbp - 0x20]
mov r12, rax
lea rax, [rbp - 0x28]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400ca7bf
mov esi, dword [rbp - 0x28]
mov rbx, r14
shr esi, 1
mov edi, r14d
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], 0
test r12, r12
je 0x1400ca779
cmp esi, 1
jbe 0x1400ca779
cmp word [r12], ax
je 0x1400ca779
test esi, esi
je 0x1400ca73a
mov edx, esi
lea rcx, [rbp - 0x18]
call fcn.140019590
mov r14d, dword [rbp - 0xc]
mov edi, dword [rbp - 0x10]
mov rbx, qword [rbp - 0x18]
mov edx, edi
add edi, esi
mov dword [rbp - 0x10], edi
cmp edi, r14d
jle 0x1400ca75a
lea rcx, [rbp - 0x18]
call fcn.1400191f0
mov r14d, dword [rbp - 0xc]
mov edi, dword [rbp - 0x10]
mov rbx, qword [rbp - 0x18]
lea r8, [rsi*2 - 2]
mov rdx, r12
mov rcx, rbx
call fcn.140032f10
movsxd rax, edi
xor esi, esi
mov word [rbx + rax*2 - 2], si
jmp 0x1400ca77b
xor esi, esi
lea rax, [rbp - 0x18]
cmp r15, rax
je 0x1400ca7a9
mov rcx, qword [r15]
test rcx, rcx
je 0x1400ca791
call fcn.140044390
mov qword [r15], rbx
mov dword [r15 + 0xc], r14d
xor r14d, r14d
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rsi
mov dword [r15 + 8], edi
jmp 0x1400ca7b9
test rbx, rbx
je 0x1400ca7b6
mov rcx, rbx
call fcn.140044390
xor r14d, r14d
mov rdi, qword [rbp + 0x48]
mov bl, 1
mov rcx, r12
call fcn.140013520
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rbp + 0x40]
inc r13d
mov rcx, qword [rbp + 0x38]
mov edx, 0x200
cmp r13d, 2
jl 0x1400ca650
mov r12, qword [rsp + 0x50]
movzx eax, bl
mov rsi, qword [rsp + 0xa8]
add rsp, 0x58
pop r15
pop r14
pop r13
pop rdi
pop rbx
pop rbp
ret
Function at 0x1400ca8f0
Capabilities:
Parse pe header

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rbx
push r15
sub rsp, 0x68
mov eax, 0x5a4d
mov r15, rdx
mov rbx, rcx
cmp word [rcx], ax
jne 0x1400caae7
mov qword [r11 - 0x28], r12
movsxd r12, dword [rcx + 0x3c]
add r12, rcx
cmp dword [r12], 0x4550
jne 0x1400caad8
mov r8d, dword [r12 + 0x90]
mov rdx, r12
mov qword [r11 + 0x10], rbp
mov qword [r11 - 0x30], r13
call fcn.1400c9480
xor ebp, ebp
mov qword [rsp + 0x90], rax
mov r13d, ebp
cmp dword [r12 + 0x94], ebp
jbe 0x1400caabc
mov qword [rsp + 0x58], rdi
mov ecx, ebp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x40], r14
nop
cmp dword [rcx + rax], 0
jne 0x1400ca996
cmp dword [rcx + rax + 4], 0
jne 0x1400ca996
cmp dword [rcx + rax + 8], 0
jne 0x1400ca996
cmp dword [rcx + rax + 0xc], 0
jne 0x1400ca996
cmp dword [rcx + rax + 0x10], 0
je 0x1400caaad
mov eax, dword [rcx + rax + 0xc]
test eax, eax
je 0x1400caa82
mov r8d, eax
mov rdx, r12
mov rcx, rbx
call fcn.1400c9480
mov qword [rsp + 0x30], rbp
mov rdi, rax
mov qword [rsp + 0x38], 0
mov r14, rbp
mov esi, ebp
test rax, rax
je 0x1400caa3c
cmp byte [rax], 0
je 0x1400caa3c
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400ca9d7
inc ebx
test ebx, ebx
jle 0x1400ca9ff
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.140019590
mov ebp, dword [rsp + 0x3c]
mov esi, dword [rsp + 0x38]
mov r14, qword [rsp + 0x30]
mov edx, esi
add esi, ebx
mov dword [rsp + 0x38], esi
cmp esi, ebp
jle 0x1400caa22
lea rcx, [rsp + 0x30]
call fcn.1400191f0
mov ebp, dword [rsp + 0x3c]
mov esi, dword [rsp + 0x38]
mov r14, qword [rsp + 0x30]
mov eax, 0x3f
mov r9d, ebx
mov r8, rdi
mov word [rsp + 0x20], ax
mov edx, ebx
mov rcx, r14
call fcn.140010cd0
movsxd rbx, dword [r15 + 8]
lea eax, [rbx + 1]
mov dword [r15 + 8], eax
cmp eax, dword [r15 + 0xc]
jle 0x1400caa57
mov edx, ebx
mov rcx, r15
call fcn.1400190f0
mov rax, rbx
mov qword [rsp + 0x30], 0
mov rbx, qword [rsp + 0x80]
shl rax, 4
add rax, qword [r15]
mov qword [rax], r14
mov dword [rax + 0xc], ebp
xor ebp, ebp
mov qword [rsp + 0x38], rbp
mov dword [rax + 8], esi
mov eax, dword [r12 + 0x94]
inc r13
lea rcx, [r13*4]
add rcx, r13
shl rcx, 2
cmp rcx, rax
mov rax, qword [rsp + 0x90]
jb 0x1400ca970
mov rsi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x58]
mov r13, qword [rsp + 0x48]
mov al, 1
mov rbp, qword [rsp + 0x88]
mov r12, qword [rsp + 0x50]
add rsp, 0x68
pop r15
pop rbx
ret
mov r12, qword [rsp + 0x50]
xor al, al
add rsp, 0x68
pop r15
pop rbx
ret
xor al, al
add rsp, 0x68
pop r15
pop rbx
ret
Function at 0x1400cab00
Capabilities:
Read file on windows
Read pipe

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x170
mov rax, qword [0x1401664b8]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor ebp, ebp
lea rax, [rsp + 0x30]
mov rsi, rdx
mov qword [rcx], rbp
mov qword [rcx + 8], rbp
mov rbx, rcx
mov rcx, rsi
mov qword [rsp + 0x28], rbp
xor r9d, r9d
mov dword [rsp + 0x30], ebp
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x1400cabf5
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1400cabf5
lea ecx, [rax + 1]
mov qword [rsp + 0x1a0], rdi
call fcn.140013490
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x34]
mov rdx, rax
mov dword [rsp + 0x34], ebp
mov rcx, rsi
mov qword [rsp + 0x20], rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400cabe5
mov ecx, dword [rsp + 0x34]
test ecx, ecx
je 0x1400cabe5
mov byte [rcx + rdi], bpl
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.1400c3b50
mov r8, 0xffffffffffffffff
mov rdx, qword [rax + 0x108]
inc r8
cmp word [rdx + r8*2], bp
jne 0x1400cabc1
mov rcx, rbx
call fcn.14001cc20
mov rcx, qword [rsp + 0x140]
test rcx, rcx
je 0x1400cabe5
call fcn.140044390
mov rcx, rdi
call fcn.140013520
mov rdi, qword [rsp + 0x1a0]
mov rax, rbx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14010f320
add rsp, 0x170
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400cac20
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor esi, esi
lea rax, [rsp + 0x50]
mov rbx, rdx
mov qword [rsp + 0x28], rsi
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x50], esi
xor edx, edx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x1400cad48
mov r8d, dword [rsp + 0x50]
test r8d, r8d
je 0x1400cad48
mov eax, dword [rbx + 8]
cmp r8d, eax
jle 0x1400cac8c
mov dword [rbx + 8], r8d
cmp r8d, dword [rbx + 0xc]
jle 0x1400caca7
mov edx, eax
mov rcx, rbx
call fcn.14003ea60
jmp 0x1400caca2
jge 0x1400caca7
mov ecx, eax
sub ecx, r8d
je 0x1400caca7
sub eax, ecx
mov rcx, rbx
mov dword [rbx + 8], eax
call fcn.14007b290
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rbx]
lea r9, [rsp + 0x58]
mov rcx, rdi
mov dword [rsp + 0x58], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400cad36
mov eax, dword [rsp + 0x58]
cmp eax, dword [rsp + 0x50]
jae 0x1400cad24
movsxd rdi, dword [rbx + 8]
cmp eax, edi
jle 0x1400cad0f
mov esi, eax
mov dword [rbx + 8], eax
sub esi, edi
cmp eax, dword [rbx + 0xc]
jle 0x1400caced
mov edx, edi
mov rcx, rbx
call fcn.14003ea60
mov rcx, rdi
movsxd r8, esi
add rcx, qword [rbx]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
jge 0x1400cad24
mov ecx, edi
sub ecx, eax
je 0x1400cad24
sub edi, ecx
mov rcx, rbx
mov dword [rbx + 8], edi
call fcn.14007b290
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov dword [rbx + 8], esi
cmp dword [rbx + 0xc], esi
je 0x1400cad48
xor edx, edx
mov rcx, rbx
call fcn.140070c00
mov rbx, qword [rsp + 0x40]
xor al, al
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400cad70
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
movzx ebx, cl
lea rcx, str.Win_RequestExit
call fcn.1400919a0
lea rcx, [0x14015c140]
call fcn.140013d20
test bl, bl
je 0x1400cade0
call fcn.14009f5f0
test rax, rax
je 0x1400cadbb
call fcn.14009f5f0
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x68]
call fcn.14009f5f0
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x20]
movzx eax, byte [0x1401ba361]
neg al
sbb ebx, ebx
and ebx, 3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, ebx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor ecx, ecx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.USER32.dll_PostQuitMessage]

Function at 0x1400cb1e0
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
call fcn.1400271a0
call fcn.1400c4100
mov rcx, rax
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
Function at 0x1400cb620
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
lea rcx, [rsp + 0x60]
movaps xmm6, xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mulss xmm6, dword [0x14012bb68]
cvttss2si rax, xmm6
test eax, eax
jne 0x1400cb652
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
jmp 0x1400cb65a
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x50]
mov byte [rsp + 0x50], 0
mov qword [rsp + 0x28], rax
lea rdx, [0x1401591f0]
lea rax, [0x1400272b0]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
call fcn.1400447a0
lea rcx, [rsp + 0x58]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [rsp + 0x58]
sub ecx, dword [rsp + 0x60]
add dword [rbx + 0x10], ecx
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
ret

Function at 0x1400cb7d0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push rsi
push r14
sub rsp, 0x288
mov rax, qword [0x1401664b8]
xor rax, rsp
mov qword [rsp + 0x270], rax
movzx esi, dl
mov r14, rcx
test dl, dl
je 0x1400cb893
xor edx, edx
mov qword [rsp + 0x2b0], rbx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400cb88b
mov rcx, qword [r14]
mov qword [rsp + 0x280], rdi
call qword [sym.imp.KERNEL32.dll_GetProcessId]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x238
mov rcx, rbx
mov edi, eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1400cb883
cmp dword [rsp + 0x50], edi
jne 0x1400cb872
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x1400cb872
movzx edx, sil
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
call fcn.1400cb7d0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1400cb842
mov rdi, qword [rsp + 0x280]
mov rbx, qword [rsp + 0x2b0]
mov rcx, qword [r14]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14010f320
add rsp, 0x288
pop r14
pop rsi
ret