joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007ca04
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x1e8]
sub rsp, 0x2e0
mov rbx, rcx
xor edi, edi
lea rcx, [rsp + 0x30]
mov r14b, dil
call fcn.1400053cc
lea rcx, [rsp + 0x70]
call fcn.1400053cc
lea rcx, [rsp + 0x50]
call fcn.1400053cc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14001d284
mov rcx, qword [rsp + 0x30]
call fcn.14007dd74
test al, al
je 0x14007ca78
lea rdx, str..
lea rcx, [rsp + 0x30]
call fcn.140003f78
xor r9d, r9d
mov qword [rsp + 0x20], rdi
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.14000ace8
mov rcx, qword [rsp + 0x30]
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
mov sil, 1
cmp rax, 0xffffffffffffffff
je 0x14007cb1b
cmp sil, 1
jne 0x14007cb1b
test byte [rbp - 0x70], 0x10
jne 0x14007cafa
lea rdx, [rsp + 0x70]
mov r14b, sil
lea rcx, [rsp + 0x30]
call fcn.14000449c
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140004274
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x30]
call fcn.140003f78
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x14007cb10
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14007caaf
mov sil, dil
jmp 0x14007caaf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x14007cb27
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov dil, r14b
lea rcx, [rsp + 0x50]
call fcn.1400054ac
lea rcx, [rsp + 0x70]
call fcn.1400054ac
lea rcx, [rsp + 0x30]
call fcn.1400054ac
lea r11, [rsp + 0x2e0]
mov al, dil
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14007cb94
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1f8]
sub rsp, 0x2d0
mov r15, rdx
mov dword [rbp - 0x70], 0x238
xor edx, edx
mov r12, rcx
mov rdi, r8
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rbp - 0x70]
mov r14, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
mov rsi, qword [r12]
xor r13d, r13d
mov byte [rdi], r13b
mov ebx, r13d
movzx ecx, word [rsi]
jmp 0x14007cc06
call fcn.14002ae7c
test eax, eax
je 0x14007cc1b
inc ebx
movzx ecx, word [rsi + rbx*2]
test cx, cx
jne 0x14007cbf7
mov rcx, rsi
call fcn.14002adc8
mov rbx, rax
jmp 0x14007ccdd
mov ebx, r13d
jmp 0x14007ccdd
lea rdx, [rbp - 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x14007cce6
lea rcx, [rsp + 0x30]
call fcn.1400053cc
lea rcx, [rsp + 0x50]
call fcn.1400053cc
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x70]
call fcn.14000c6d0
lea rax, [rsp + 0x50]
xor r8d, r8d
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.14000ace8
lea rcx, [rsp + 0x70]
call fcn.1400054ac
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140004274
mov rax, qword [r12 + 8]
mov r9, qword [r12]
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rax
call fcn.1400210e0
mov ecx, dword [rbp - 0x68]
test eax, eax
je 0x14007ccc3
test ebx, ebx
je 0x14007ccc9
cmp ebx, ecx
jne 0x14007ccc9
mov byte [rdi], 1
mov dword [r15], ecx
lea rcx, [rsp + 0x50]
call fcn.1400054ac
lea rcx, [rsp + 0x30]
call fcn.1400054ac
cmp byte [rdi], r13b
je 0x14007cc23
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x2d0]
mov al, 1
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14007cd14
Capabilities:
Get storage device properties

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x80
and qword [rax - 0x58], 0
mov rdi, rdx
and dword [rdx], 0
xor r9d, r9d
mov edx, 0x80
mov dword [rax - 0x60], edx
lea r8d, [rdx - 0x7d]
mov dword [rax - 0x68], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14007cdcf
and dword [rsp + 0x40], 0
lea rcx, [rsp + 0x50]
and dword [rsp + 0x44], 0
xor eax, eax
xor edx, edx
mov dword [rsp + 0x48], eax
lea ebx, [rax + 0x28]
mov r8d, ebx
call fcn.1400267d0
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x98]
and dword [rsp + 0x98], 0
lea r9d, [rbx - 0x1c]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], ebx
mov edx, 0x2d1400
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14007cdcf
mov eax, dword [rsp + 0x6c]
mov dword [rdi], eax
mov al, 1
jmp 0x14007cdd1
xor al, al
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14007cde8
Capabilities:
Get storage device properties

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x60
xor edi, edi
cmp byte [0x1400f1459], dil
je 0x14007ce9a
mov qword [rax - 0x38], rdi
lea r8d, [rdi + 3]
mov edx, 0x80
xor r9d, r9d
mov dword [rax - 0x40], edx
mov dword [rax - 0x48], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14007ce9a
xor eax, eax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x54], rax
lea r9d, [rdi + 0xc]
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x50]
mov dword [rsp + 0x48], eax
mov edx, 0x2d1400
lea rax, [rsp + 0x78]
mov dword [rsp + 0x50], 7
mov qword [rsp + 0x30], rax
mov rcx, rsi
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x78], edi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14007ce9a
cmp byte [rsp + 0x48], dil
setne dil
mov eax, edi
jmp 0x14007ce9f
mov eax, 0x80004005
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14007d564
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x270
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rdx, eax
cmp word [rbx + rdx*2 - 2], 0x22
je 0x14007d5b2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14007d5b5
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x14007d5b2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [rsp + 0x20]
jmp 0x14007d5b5
or eax, 0xffffffff
add rsp, 0x270
pop rbx
ret
Function at 0x14007d5c0
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rbp, rdx
mov rsi, r8
lea rdx, [rax - 0x38]
mov r15, rcx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
xor ebx, ebx
mov edi, eax
test eax, eax
je 0x14007d7be
mov rcx, rdi
call fcn.1400251f8
mov r9, rax
mov r8d, edi
xor edx, edx
mov rcx, r15
mov r14, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov rcx, rsi
call fcn.1400292e8
lea rcx, [rax + 0x1a]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400251f8
lea r15, [0x1400b74d8]
mov rcx, rax
mov rdx, r15
mov rdi, rax
call fcn.14002930c
mov rdx, r15
mov rcx, rsi
call fcn.140029b4c
test eax, eax
je 0x14007d6f3
lea rdx, str.StringFileInfo_
mov rcx, rdi
call fcn.14002e328
mov rdx, r15
mov rcx, rsi
call fcn.140026960
test rax, rax
jne 0x14007d6e8
lea r9, [rsp + 0x88]
mov rcx, r14
lea r8, [rsp + 0x40]
lea rdx, str.VarFileInfoTranslation
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14007d6ce
mov rax, qword [rsp + 0x40]
lea rdx, [rdi + 0x20]
mov r8d, 4
mov r11d, dword [rax]
mov ecx, r11d
call fcn.14000c760
shr r11, 0x10
lea rdx, [rdi + 0x28]
mov rcx, r11
call fcn.14000c760
jmp 0x14007d6dd
lea rdx, str.04090000
mov rcx, rdi
call fcn.14002e328
mov rdx, r15
mov rcx, rdi
call fcn.14002e328
mov rdx, rsi
mov rcx, rdi
call fcn.14002e328
lea rdx, str.DefaultLangCodepage
mov rcx, rsi
call fcn.1400293b8
test eax, eax
jne 0x14007d731
lea rdx, [rdi + 0x20]
mov rcx, rbp
lea r8d, [rax + 8]
call fcn.1400325b4
mov rcx, r14
mov word [rbp + 0x10], bx
call fcn.1400251b4
mov rcx, rdi
call fcn.1400251b4
mov al, 1
jmp 0x14007d7be
lea r9, [rsp + 0x88]
mov rdx, rdi
lea r8, [rsp + 0x38]
mov rcx, r14
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14007d7ac
mov rdx, r15
mov rcx, rsi
call fcn.140029b4c
test eax, eax
jne 0x14007d790
mov rax, qword [rsp + 0x38]
lea rdx, str._u._u._u._u
mov r8d, dword [rax + 8]
mov ecx, dword [rax + 0xc]
movzx eax, cx
shr ecx, 0x10
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov rcx, rbp
movzx r9d, r8w
shr r8d, 0x10
call fcn.140024d90
jmp 0x14007d7aa
mov rdx, qword [rsp + 0x38]
mov r8d, 0x200
mov rcx, rbp
call fcn.1400325b4
mov word [rbp + 0x400], bx
mov bl, 1
mov rcx, r14
call fcn.1400251b4
mov rcx, rdi
call fcn.1400251b4
mov al, bl
lea r11, [rsp + 0x50]
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 0x14007d938
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x2c0
mov rdi, rdx
movsxd rbx, ecx
mov ecx, 0x101
lea rdx, [rsp + 0x120]
call qword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x14007da16
mov edx, 0x100
lea rcx, [rsp + 0x20]
call qword [sym.imp.WSOCK32.dll_gethostname]
lea rcx, [rsp + 0x20]
call qword [sym.imp.WSOCK32.dll_gethostbyname]
test rax, rax
je 0x14007da16
mov r9, qword [rax + 0x18]
xor ecx, ecx
cmp qword [r9], rcx
je 0x14007d9a4
mov rax, r9
inc ecx
lea rax, [rax + 8]
cmp qword [rax], 0
jne 0x14007d998
cmp ebx, ecx
jle 0x14007d9b9
lea rdx, str.0.0.0.0
mov rcx, rdi
call fcn.14002930c
jmp 0x14007da0e
mov rdx, qword [r9 + rbx*8 - 8]
lea rcx, [rsp + 0x2e0]
mov r8d, 4
call fcn.140026290
mov ecx, dword [rsp + 0x2e0]
call qword [sym.imp.WSOCK32.dll_inet_ntoa]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400329f0
or edx, 0xffffffff
lea rcx, [rsp + 0x20]
call fcn.14007e944
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.14002930c
mov rcx, rbx
call fcn.1400251b4
call qword [sym.imp.WSOCK32.dll_WSACleanup]
jmp 0x14007da25
lea rdx, [0x1400b7438]
mov rcx, rdi
call fcn.14002930c
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2c0
pop rdi
ret

Function at 0x14007da38
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rbx, rdx
lea rax, [rsp + 0x30]
mov edx, ecx
mov qword [rsp + 0x20], rax
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140004344
add rsp, 0x240
pop rbx
ret

Function at 0x14007dd74
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14007dd8b
test al, 0x10
je 0x14007dd8b
mov al, 1
jmp 0x14007dd8d
xor al, al
add rsp, 0x28
ret

Function at 0x14007de08
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov ebx, dword [rsp + 0x80]
xor edi, edi
mov byte [0x1400f1419], dil
mov esi, r9d
mov rbp, r8
mov r14, rdx
mov r15, rcx
test ebx, ebx
je 0x14007de7e
mov byte [0x1400f141a], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x34], ebx
mov dword [rsp + 0x30], eax
lea r8, [0x14007e34c]
lea rax, [rsp + 0x80]
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
and dword [rsp + 0x20], edi
call fcn.1400324d4
mov rdi, rax
mov r9d, esi
mov r8, rbp
mov rdx, r14
mov rcx, r15
call qword [sym.imp.USER32.dll_MessageBoxW]
mov ebx, eax
test rdi, rdi
je 0x14007deb3
or edx, 0xffffffff
mov byte [0x1400f141a], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x68]
or eax, 0xffffffff
cmp byte [0x1400f1419], 1
mov rsi, qword [rsp + 0x70]
cmove ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14007e090
Capabilities:
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x203d8]
mov eax, 0x204d0
call fcn.140049520
sub rsp, rax
mov dil, r8b
mov rbx, rdx
mov esi, 0x7fff
lea r8, [rbp + 0x103d0]
mov edx, esi
call fcn.14007d8d4
lea r8, [rbp + 0x3d0]
mov edx, esi
mov rcx, rbx
call fcn.14007d8d4
lea rcx, [rbp + 0x103d0]
call fcn.14007dd74
xor esi, esi
test al, al
je 0x14007e158
lea rcx, [rbp + 0x3d0]
call fcn.14007dd74
test al, al
je 0x14007e1c9
test dil, dil
je 0x14007e158
lea rdx, [rbp + 0x3d0]
lea rcx, [rbp + 0x103d0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea rcx, [rbp + 0x103d0]
test eax, eax
jne 0x14007e173
lea rdx, [rbp + 0x3d0]
call fcn.140029b4c
test eax, eax
je 0x14007e2ec
lea rdx, [rbp + 0x3d0]
lea rcx, [rbp + 0x103d0]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x14007e2ec
xor al, al
lea r11, [rsp + 0x204d0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
lea rax, [rbp - 0x50]
xor r8d, r8d
lea r9, [rbp + 0x1c0]
mov qword [rsp + 0x20], rax
xor edx, edx
call fcn.1400328cc
lea rdx, [0x1400b74d8]
lea rcx, [rbp + 0x3d0]
call fcn.14002e328
lea rdx, [rbp + 0x1c0]
lea rcx, [rbp + 0x3d0]
call fcn.14002e328
cmp word [rbp - 0x50], si
je 0x14007e1c9
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x3d0]
call fcn.14002e328
lea rdx, [rbp + 0x3d0]
lea rcx, [rsp + 0x30]
call fcn.14000c6d0
lea rdx, [rbp + 0x103d0]
lea rcx, [rbp - 0x78]
call fcn.14000c6d0
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x78]
call fcn.14007dcd0
lea rcx, [rbp - 0x78]
mov bl, al
call fcn.1400054ac
lea rcx, [rsp + 0x30]
call fcn.1400054ac
lea rdx, [rbp + 0x3d0]
lea rcx, [rbp + 0x103d0]
test bl, bl
je 0x14007e268
mov r8b, 1
call fcn.14007c3c0
test al, al
je 0x14007e158
lea rdx, [rbp + 0x103d0]
lea rcx, [rsp + 0x30]
call fcn.14000c6d0
mov dl, 1
lea rcx, [rsp + 0x30]
call fcn.14007e530
test al, al
lea rcx, [rsp + 0x30]
sete bl
call fcn.1400054ac
test bl, bl
je 0x14007e2ec
jmp 0x14007e158
call fcn.140029b4c
test eax, eax
je 0x14007e158
lea rcx, [rbp + 0x103d0]
call fcn.1400292e8
lea rcx, [rbp + 0x3d0]
mov word [rbp + rax*2 + 0x103d2], si
call fcn.1400292e8
mov ecx, 0x614
mov dword [rsp + 0x74], esi
xorps xmm0, xmm0
mov word [rsp + 0x70], cx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], rsi
mov word [rbp + rax*2 + 0x3d2], si
lea rax, [rbp + 0x103d0]
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0x3d0]
mov qword [rsp + 0x68], rax
movdqu xmmword [rsp + 0x78], xmm0
mov dword [rsp + 0x58], 1
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x14007e158
mov al, 1
jmp 0x14007e15a
Function at 0x14007e530
Capabilities:
Delete directory
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0xff60]
mov eax, 0x10060
call fcn.140049520
sub rsp, rax
mov rcx, qword [rcx]
lea r8, [rsp + 0x60]
mov bl, dl
mov edx, 0x7fff
call fcn.14007d8d4
lea rcx, [rsp + 0x60]
call fcn.14007dd74
xor edi, edi
test al, al
je 0x14007e587
lea rcx, [rsp + 0x60]
test bl, bl
jne 0x14007e59e
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14007e5ea
xor al, al
lea r11, [rsp + 0x10060]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call fcn.1400292e8
xorps xmm0, xmm0
mov qword [rsp + 0x38], rdi
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x44], edi
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + rax*2 + 0x62], di
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov eax, 0x614
mov word [rsp + 0x40], ax
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x14007e587
mov al, 1
jmp 0x14007e589

Function at 0x14007e5f0
Capabilities:
Shutdown system

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov esi, edx
mov edi, ecx
lea rdx, str.SeShutdownPrivilege
lea rcx, [rsp + 0x30]
call fcn.14007c294
lea rcx, [rsp + 0x30]
call fcn.14006e2ec
xor ebx, ebx
test al, al
je 0x14007e67a
lea eax, [rdi - 0x20]
test eax, 0xffffffdf
je 0x14007e668
test dil, 0xb
jne 0x14007e640
xor edx, edx
mov ecx, edi
call qword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x14007e678
mov eax, edi
mov dword [rsp + 0x28], esi
shr eax, 1
and eax, 1
test dil, 0x14
mov dword [rsp + 0x20], eax
setne bl
xor r8d, r8d
mov r9d, ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
jmp 0x14007e678
cmp edi, 0x20
sete bl
xor edx, edx
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetSystemPowerState]
mov ebx, eax
lea rcx, [rsp + 0x30]
call fcn.14006da00
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x14007e698
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
test ecx, ecx
js 0x14007e719
push rbx
sub rsp, 0x20
mov ebx, ecx
test ecx, ecx
je 0x14007e70e
cmp ebx, 0xf
jae 0x14007e70c
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14007e70c
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x38]
xorps xmm1, xmm1
sub rax, qword [rsp + 0x40]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x48]
cvtsi2sd xmm1, rax
divsd xmm1, xmm0
mulsd xmm1, qword [0x1400c81c8]
cvttsd2si rax, xmm1
cmp eax, ebx
jb 0x14007e6c6
jmp 0x14007e714
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
add rsp, 0x20
pop rbx
ret
Function at 0x14007e8bc
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x40
xor r9d, r9d
xor r8d, r8d
mov rbx, rcx
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_PostMessageW]
xor r9d, r9d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov dword [rsp + 0x28], 0x1f4
mov rcx, rbx
mov dword [rsp + 0x20], 2
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
jne 0x14007e93e
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, rax
xor edx, edx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x40
pop rbx
ret

Function at 0x14008088c
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0x60
and dword [rsp + 0x50], 0
mov rbx, r9
and qword [rsp + 0x48], 0
mov eax, dword [rcx]
mov dword [rsp + 0x40], reloc.OLEAUT32.dll_SafeArrayGetElement
test al, 0x10
je 0x1400808da
mov ecx, r8d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x140080967
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call fcn.1400806a8
jmp 0x140080990
test edx, eax
je 0x140080910
mov rax, qword [r9]
test rax, rax
jne 0x140080993
mov rcx, qword [rsp + 0x90]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x14008096d
or rax, 0xffffffffffffffff
jmp 0x140080993
mov ecx, r8d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
jbe 0x1400808c4
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x40]
mov dword [rsp + 0x28], 0x80
lea rcx, [0x1400de648]
mov edx, 0x40000000
mov dword [rsp + 0x20], 3
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
inc rax
test rax, 0xfffffffffffffffe
jne 0x14008096d
and qword [rbx], 0
jmp 0x140080990
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
mov r8d, 1
call fcn.1400806a8
mov rcx, rbx
call fcn.140080658
mov rax, qword [rsp + 0x70]
mov qword [rbx], rax
mov rax, qword [rbx]
add rsp, 0x60
pop rbx
ret
Function at 0x14008099c
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0x60
and dword [rsp + 0x50], 0
mov rbx, r9
and qword [rsp + 0x48], 0
mov eax, dword [rcx]
mov dword [rsp + 0x40], reloc.OLEAUT32.dll_SafeArrayGetElement
test al, 0x10
je 0x1400809ec
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x140080a7b
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call fcn.1400806a8
jmp 0x140080aa4
test al, 1
je 0x140080a22
mov rax, qword [r9]
test rax, rax
jne 0x140080aa7
mov rdx, qword [rsp + 0x90]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x140080a81
or rax, 0xffffffffffffffff
jmp 0x140080aa7
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
mov r8d, 1
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
jbe 0x1400809dc
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x40]
mov dword [rsp + 0x28], 0x80
lea rcx, [0x1400de648]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
inc rax
test rax, 0xfffffffffffffffe
jne 0x140080a81
and qword [rbx], 0
jmp 0x140080aa4
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
mov r8d, 1
call fcn.1400806a8
mov rcx, rbx
call fcn.140080658
mov rax, qword [rsp + 0x70]
mov qword [rbx], rax
mov rax, qword [rbx]
add rsp, 0x60
pop rbx
ret

Function at 0x140080e68
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x60], 0
mov rbx, rcx
jne 0x140080e9f
lea rax, [rsp + 0x40]
mov r9, rcx
mov qword [rsp + 0x28], rax
lea r8, [0x140080e58]
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x60], rax
add rsp, 0x30
pop rbx
ret

Function at 0x140080ea8
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
lea rsi, [rcx + 0x60]
mov rdi, rcx
cmp qword [rsi], 0
je 0x140080f10
mov eax, dword [rcx + 0x68]
mov ebp, 0x1f6
xchg dword [rcx + 0x68], eax
cmp eax, ebp
je 0x140080f10
add rcx, 0x30
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rsi]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsi]
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call fcn.140080658
xchg dword [rdi + 0x68], ebp
lea rcx, [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400828cc
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
sub dword [reloc.WSOCK32.dll_accept], 1
jne 0x1400828de
call fcn.1400829cc
mov rax, qword [0x1400f4078]
mov ecx, dword [rax]
add rax, 4
mov qword [0x1400f4078], rax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
add rsp, 0x28
ret