joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140073694
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
xor edx, edx
mov r12, rcx
lea ecx, [rdx + 2]
mov rbx, r8
mov dword [rbp - 0x70], 0x238
call qword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
lea rdx, [rbp - 0x70]
mov rcx, rax
mov r14, rax
call qword [sym.imp.KERNEL32.DLL_Process32FirstW]
mov rdi, qword [r12]
xor r13d, r13d
mov byte [rbx], r13b
mov esi, r13d
cmp word [rdi], r13w
je 0x140073713
mov rcx, rdi
movzx ecx, word [rcx]
call fcn.140027640
test eax, eax
je 0x140073723
inc esi
lea rcx, [rdi + rsi*2]
cmp word [rcx], r13w
jne 0x1400736fb
mov rcx, rdi
call fcn.14002758c
mov rdi, rax
jmp 0x1400737d8
mov edi, r13d
jmp 0x1400737d8
lea rdx, [rbp - 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_Process32NextW]
cmp eax, 1
jne 0x1400737e1
lea rcx, [rsp + 0x30]
call fcn.14001e400
lea rcx, [rsp + 0x50]
call fcn.14001e400
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x70]
call fcn.14001ee7c
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x30]
lea rcx, [rsp + 0x70]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.140019fac
lea rcx, [rsp + 0x70]
call fcn.14001c05c
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.14001ea20
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov rdx, r12
call fcn.14001e880
test eax, eax
jne 0x1400737b3
mov eax, dword [rbp - 0x68]
jmp 0x1400737be
test edi, edi
je 0x1400737c4
mov eax, dword [rbp - 0x68]
cmp edi, eax
jne 0x1400737c4
mov dword [r15], eax
mov byte [rbx], 1
lea rcx, [rsp + 0x50]
call fcn.14001c05c
lea rcx, [rsp + 0x30]
call fcn.14001c05c
cmp byte [rbx], r13b
je 0x14007372b
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 0x140073810
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
and dword [rdx], 0
mov rdi, rdx
mov edx, 0x80
xor r9d, r9d
lea r8d, [rdx - 0x7d]
mov dword [rax - 0x60], edx
mov dword [rax - 0x68], r8d
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140073854
xor al, al
jmp 0x1400738cd
and dword [rsp + 0x40], 0
and dword [rsp + 0x44], 0
xor eax, eax
lea ebx, [rax + 0x28]
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, ebx
mov dword [rsp + 0x48], eax
call fcn.140026b10
and qword [rsp + 0x38], 0
and dword [rsp + 0x98], 0
lea rax, [rsp + 0x98]
lea r9d, [rbx - 0x1c]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov edx, 0x2d1400
mov rcx, rsi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.DLL_DeviceIoControl]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
test ebx, ebx
je 0x140073850
mov eax, dword [rsp + 0x6c]
mov dword [rdi], eax
mov al, 1
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400738e4
Capabilities:
Get storage device properties

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400e3630]
xor edi, edi
cmp byte [rax + 0x39], dil
jne 0x14007390c
mov eax, 0x80004005
jmp 0x1400739a6
mov edx, 0x80
mov qword [rsp + 0x30], rdi
xor r9d, r9d
lea r8d, [rdx - 0x7d]
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140073902
xor eax, eax
mov qword [rsp + 0x38], rdi
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], eax
lea rax, [rsp + 0x78]
lea r8, [rsp + 0x40]
mov edx, 0x2d1400
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], r9d
mov rcx, rsi
mov qword [rsp + 0x40], 7
mov dword [rsp + 0x78], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.DLL_DeviceIoControl]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
test ebx, ebx
je 0x140073902
cmp byte [rsp + 0x58], dil
setne dil
mov eax, edi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x270
mov rbx, rcx
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400741e1
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x1400741d4
or eax, 0xffffffff
jmp 0x1400741e1
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [rsp + 0x20]
add rsp, 0x270
pop rbx
ret
Function at 0x140074468
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
lea rdx, [rsp + 0x120]
mov ecx, 0x101
call qword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x140074546
lea rcx, [rsp + 0x20]
mov edx, 0x100
call qword [sym.imp.WSOCK32.dll_gethostname]
lea rcx, [rsp + 0x20]
call qword [sym.imp.WSOCK32.dll_gethostbyname]
test rax, rax
je 0x140074546
mov r9, qword [rax + 0x18]
xor ecx, ecx
cmp qword [r9], rcx
je 0x1400744d4
mov rax, r9
lea rax, [rax + 8]
inc ecx
cmp qword [rax], 0
jne 0x1400744c8
cmp ebx, ecx
jle 0x1400744e9
lea rdx, str.0.0.0.0
mov rcx, rdi
call fcn.140026ad8
jmp 0x14007453e
mov rdx, qword [r9 + rbx*8 - 8]
lea rcx, [rsp + 0x2e0]
mov r8d, 4
call fcn.1400262a0
mov ecx, dword [rsp + 0x2e0]
call qword [sym.imp.WSOCK32.dll_inet_ntoa]
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.140028540
lea rcx, [rsp + 0x20]
or edx, 0xffffffff
call fcn.140075538
mov rcx, rdi
mov rdx, rax
mov rbx, rax
call fcn.140026ad8
mov rcx, rbx
call fcn.140024994
call qword [sym.imp.WSOCK32.dll_WSACleanup]
jmp 0x140074555
lea rdx, [0x1400aa2d0]
mov rcx, rdi
call fcn.140026ad8
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2c0
pop rdi
ret

Function at 0x140074568
Capabilities:
Get common file path

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

Function at 0x1400747f0
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov rbp, rsp
sub rsp, 0x60
xor ebx, ebx
lea rax, [rbp + 0x20]
lea rcx, [rbp + 0x18]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
lea r8d, [rbx + 0x20]
mov r9d, 0x220
mov dl, 2
mov dword [rsp + 0x28], ebx
mov dword [rbp + 0x18], ebx
mov word [rbp + 0x1c], 0x500
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp + 0x10], eax
test eax, eax
je 0x14007486a
mov rdx, qword [rbp + 0x20]
lea r8, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp + 0x10], ecx
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp + 0x10]
mov rbx, qword [rsp + 0x88]
cmp eax, 1
sete al
add rsp, 0x60
pop rbp
ret

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

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14007492b
test al, 0x10
je 0x14007492b
mov al, 1
jmp 0x14007492d
xor al, al
add rsp, 0x28
ret
Function at 0x1400749a8
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 esi, r9d
mov rbp, r8
mov r14, rdx
mov r15, rcx
mov byte [0x1400e151f], dil
test ebx, ebx
je 0x140074a1e
mov byte [0x1400e1520], 1
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x80]
lea r8, [0x140074ee4]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x34], ebx
call fcn.140027e70
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 0x140074a53
or edx, 0xffffffff
mov rcx, rdi
mov byte [0x1400e1520], 0
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
or eax, 0xffffffff
cmp byte [0x1400e151f], 1
cmove ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140074c30
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.1400388f0
sub rsp, rax
mov dil, r8b
mov rbx, rdx
mov esi, 0x7fff
lea r8, [rbp + 0x103d0]
mov edx, esi
call fcn.140074404
lea r8, [rbp + 0x3d0]
mov edx, esi
mov rcx, rbx
call fcn.140074404
lea rcx, [rbp + 0x103d0]
call fcn.140074914
xor esi, esi
test al, al
jne 0x140074c97
xor al, al
jmp 0x140074e71
lea rcx, [rbp + 0x3d0]
call fcn.140074914
test al, al
je 0x140074d5a
test dil, dil
je 0x140074c90
lea rdx, [rbp + 0x3d0]
lea rcx, [rbp + 0x103d0]
call qword [sym.imp.KERNEL32.DLL_lstrcmpiW]
lea rcx, [rbp + 0x103d0]
test eax, eax
jne 0x140074d04
lea rdx, [rbp + 0x3d0]
call fcn.140027544
test eax, eax
je 0x140074cfd
lea rdx, [rbp + 0x3d0]
lea rcx, [rbp + 0x103d0]
call qword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
setne al
jmp 0x140074e71
mov al, 1
jmp 0x140074e71
lea rax, [rbp - 0x50]
lea r9, [rbp + 0x1c0]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.140028168
lea rdx, [0x1400aa2ec]
lea rcx, [rbp + 0x3d0]
call fcn.140026aac
lea rdx, [rbp + 0x1c0]
lea rcx, [rbp + 0x3d0]
call fcn.140026aac
cmp word [rbp - 0x50], si
je 0x140074d5a
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x3d0]
call fcn.140026aac
lea rdx, [rbp + 0x3d0]
lea rcx, [rsp + 0x30]
call fcn.14001ee7c
lea rdx, [rbp + 0x103d0]
lea rcx, [rbp - 0x78]
call fcn.14001ee7c
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x78]
call fcn.140074880
lea rcx, [rbp - 0x78]
mov bl, al
call fcn.14001c05c
lea rcx, [rsp + 0x30]
call fcn.14001c05c
lea rdx, [rbp + 0x3d0]
lea rcx, [rbp + 0x103d0]
test bl, bl
je 0x140074df0
mov r8b, 1
call fcn.140072f70
test al, al
je 0x140074c90
lea rdx, [rbp + 0x103d0]
lea rcx, [rsp + 0x30]
call fcn.14001ee7c
lea rcx, [rsp + 0x30]
mov dl, 1
call fcn.1400750c8
lea rcx, [rsp + 0x30]
test al, al
sete bl
call fcn.14001c05c
test bl, bl
jmp 0x140074e6e
call fcn.140027544
test eax, eax
je 0x140074c90
lea rcx, [rbp + 0x103d0]
call fcn.1400268e8
lea rcx, [rbp + 0x3d0]
mov word [rbp + rax*2 + 0x103d2], si
call fcn.1400268e8
lea rcx, [rsp + 0x50]
xorps xmm0, xmm0
mov word [rbp + rax*2 + 0x3d2], si
lea rax, [rbp + 0x103d0]
movdqu xmmword [rsp + 0x78], xmm0
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0x3d0]
mov dword [rsp + 0x74], esi
mov qword [rsp + 0x68], rax
mov eax, 0x614
mov qword [rsp + 0x50], rsi
mov word [rsp + 0x70], ax
mov dword [rsp + 0x58], 1
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete 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
Function at 0x1400750c8
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.1400388f0
sub rsp, rax
mov rcx, qword [rcx]
mov bl, dl
lea r8, [rsp + 0x60]
mov edx, 0x7fff
call fcn.140074404
lea rcx, [rsp + 0x60]
call fcn.140074914
xor edi, edi
test al, al
je 0x14007516f
lea rcx, [rsp + 0x60]
test bl, bl
jne 0x140075122
call qword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x14007516f
call fcn.1400268e8
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
mov word [rsp + rax*2 + 0x62], di
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rdi
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x30], rax
mov eax, 0x614
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
lea r11, [rsp + 0x10060]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x140075184
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.140072e44
lea rcx, [rsp + 0x30]
call fcn.140065a30
xor ebx, ebx
test al, al
je 0x140075213
cmp edi, 0x20
je 0x140075202
cmp edi, 0x40
je 0x140075207
test dil, 0xb
jne 0x1400751d4
xor edx, edx
mov ecx, edi
call qword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x140075211
test dil, 0x14
mov r9d, ebx
mov eax, 1
cmovne r9d, eax
test dil, 2
mov dword [rsp + 0x28], esi
cmovne ebx, eax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
jmp 0x140075211
mov ebx, 1
xor edx, edx
mov ecx, ebx
call qword [sym.imp.KERNEL32.DLL_SetSystemPowerState]
mov ebx, eax
lea rcx, [rsp + 0x30]
call fcn.14006513c
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

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

Disassembly:
test ecx, ecx
js 0x1400752b1
push rbx
sub rsp, 0x20
mov ebx, ecx
test ecx, ecx
je 0x1400752a6
cmp ecx, 0xf
jae 0x1400752a4
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
test eax, eax
je 0x1400752a4
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
xorps xmm0, xmm0
sub rax, qword [rsp + 0x40]
cvtsi2sd xmm0, qword [rsp + 0x48]
cvtsi2sd xmm1, rax
divsd xmm1, xmm0
mulsd xmm1, qword [0x1400b9060]
cvttsd2si rax, xmm1
cmp eax, ebx
jb 0x14007525e
jmp 0x1400752ac
mov ecx, ebx
call qword [sym.imp.KERNEL32.DLL_Sleep]
add rsp, 0x20
pop rbx
ret
Function at 0x140075454
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
lea edx, [r9 + 0x10]
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x28], 0x1f4
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
jne 0x1400754d6
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]
xor edx, edx
mov rcx, rax
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 0x140077468
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0x60
mov eax, dword [rcx]
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
mov rbx, r9
mov dword [rsp + 0x40], reloc.OLEAUT32.dll_SafeArrayGetElement
test al, 0x10
je 0x1400774b6
mov ecx, r8d
call qword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x140077543
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call fcn.140077284
jmp 0x14007756c
test edx, eax
je 0x1400774ec
mov rax, qword [r9]
test rax, rax
jne 0x14007756f
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 0x140077549
or rax, 0xffffffffffffffff
jmp 0x14007756f
mov ecx, r8d
call qword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov qword [rbx], rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
jbe 0x1400774a0
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x40]
lea rcx, [0x1400cda38]
mov edx, 0x40000000
mov r8d, 2
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov qword [rbx], rax
inc rax
test rax, 0xfffffffffffffffe
jne 0x140077549
and qword [rbx], 0
jmp 0x14007756c
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
mov r8d, 1
call fcn.140077284
mov rcx, rbx
call fcn.140077234
mov rax, qword [rsp + 0x70]
mov qword [rbx], rax
mov rax, qword [rbx]
add rsp, 0x60
pop rbx
ret
Function at 0x140077578
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0x60
mov eax, dword [rcx]
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
mov rbx, r9
mov dword [rsp + 0x40], reloc.OLEAUT32.dll_SafeArrayGetElement
test al, 0x10
je 0x1400775c8
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x140077657
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call fcn.140077284
jmp 0x140077680
test al, 1
je 0x1400775fe
mov rax, qword [r9]
test rax, rax
jne 0x140077683
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 0x14007765d
or rax, 0xffffffffffffffff
jmp 0x140077683
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov r8d, 1
lea rcx, [rax - 1]
mov qword [rbx], rax
cmp rcx, 0xfffffffffffffffd
jbe 0x1400775b8
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x40]
lea rcx, [0x1400cda38]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov qword [rbx], rax
inc rax
test rax, 0xfffffffffffffffe
jne 0x14007765d
and qword [rbx], 0
jmp 0x140077680
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
mov r8d, 1
call fcn.140077284
mov rcx, rbx
call fcn.140077234
mov rax, qword [rsp + 0x70]
mov qword [rbx], rax
mov rax, qword [rbx]
add rsp, 0x60
pop rbx
ret

Function at 0x140077788
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x58], 0
call fcn.1400777f0
test al, al
je 0x1400777ca
test rdx, rdx
je 0x1400777ca
test r8, r8
je 0x1400777ca
and qword [rsp + 0x20], 0
lea rbx, [rcx + 0x28]
lea r9, [rsp + 0x58]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x1400777ca
mov rcx, rbx
call fcn.140077234
mov eax, dword [rsp + 0x58]
add rsp, 0x30
pop rbx
ret

Function at 0x140077a4c
Capabilities:
Create thread

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

Function at 0x140077a8c
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 + 0x58]
mov rdi, rcx
cmp qword [rsi], 0
je 0x140077af4
mov eax, dword [rcx + 0x60]
mov ebp, 0x1f6
xchg dword [rcx + 0x60], eax
cmp eax, ebp
je 0x140077af4
add rcx, 0x28
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.140077234
xchg dword [rdi + 0x60], ebp
lea rcx, [rdi + 0x28]
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 0x14007b2dc
Capabilities:
Create directory
Delete directory

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 8], rcx
push rbp
push rdi
push r14
lea rbp, [rax - 0x4ff68]
mov eax, 0x50050
call fcn.1400388f0
sub rsp, rax
mov sil, r9b
mov rdi, r8
mov rcx, rdx
lea r9, [rsp + 0x40]
lea r8, [rbp + 0xff50]
mov edx, 0x7fff
call qword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
xor r14d, r14d
test eax, eax
jne 0x14007b331
xor eax, eax
jmp 0x14007b471
lea r8, [rbp + 0xff50]
lea rdx, [0x1400cde90]
lea rcx, [rsp + 0x50]
call fcn.140027690
lea rcx, [rsp + 0x50]
call fcn.1400268e8
mov rbx, rax
cmp word [rsp + rax*2 + 0x4e], 0x5c
jne 0x14007b36c
cmp word [rsp + rax*2 + 0x4c], 0x3a
je 0x14007b36c
mov word [rsp + rax*2 + 0x4e], r14w
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x14007b380
test sil, sil
je 0x14007b32a
mov qword [rsp + 0x30], r14
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rdi
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14007b3c0
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
jmp 0x14007b32a
lea rcx, [rbp + 0x1ff50]
xor edx, edx
mov r8d, 0x2fffa
call fcn.140026b10
add bx, bx
lea rdx, [rsp + 0x50]
mov word [rbp + 0x1ff5a], bx
lea rcx, [rbp + 0x1ff60]
add bx, 2
mov r8d, 0x7fff
mov dword [rbp + 0x1ff50], 0xa0000003
mov word [rbp + 0x1ff5c], bx
call fcn.140028120
movzx eax, word [rbp + 0x1ff5a]
mov qword [rsp + 0x38], r14
add ax, 0xc
lea r8, [rbp + 0x1ff50]
mov edx, 0x900a4
movzx r9d, ax
mov word [rbp + 0x1ff54], ax
lea rax, [rbp + 0x4ff70]
mov qword [rsp + 0x30], rax
add r9d, 8
mov rcx, rsi
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.DLL_DeviceIoControl]
mov rcx, rsi
test eax, eax
jne 0x14007b466
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x14007b3b2
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, 1
lea r11, [rsp + 0x50050]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140081000
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
lea rbp, [rax - 0x1a8]
sub rsp, 0x288
mov rcx, rdx
lea rdx, [rsp + 0x30]
xor ebx, ebx
mov sil, bl
call qword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400810ac
lea rdx, [0x1400aa2d8]
lea rcx, [rsp + 0x5c]
call fcn.140027544
test eax, eax
je 0x14008109a
lea rdx, [0x1400cdb78]
lea rcx, [rsp + 0x5c]
call fcn.140027544
test eax, eax
je 0x14008109a
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
lea rcx, [rsp + 0x5c]
mov edx, eax
mov eax, dword [rbp + 0x1c8]
or edx, dword [rbp + 0x1c0]
not eax
and edx, eax
call qword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
je 0x1400810c5
mov sil, 1
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x140081041
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_FindClose]
cmp byte [rbp + 0x1d0], bl
jne 0x1400810d5
mov al, sil
jmp 0x140081192
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_FindClose]
xor al, al
jmp 0x140081192
lea rdx, [rsp + 0x30]
lea rcx, [0x1400cdb70]
call qword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140081185
mov rsi, qword [rbp + 0x1b8]
test byte [rsp + 0x30], 0x10
je 0x14008116f
lea rdx, [0x1400aa2d8]
lea rcx, [rsp + 0x5c]
call fcn.140027544
test eax, eax
je 0x14008116f
lea rdx, [0x1400cdb78]
lea rcx, [rsp + 0x5c]
call fcn.140027544
test eax, eax
je 0x14008116f
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
mov al, byte [rbp + 0x1d0]
mov r9d, dword [rbp + 0x1c8]
mov r8d, dword [rbp + 0x1c0]
mov rcx, qword [rbp + 0x1b0]
mov rdx, rsi
mov byte [rsp + 0x20], al
call fcn.140081000
test al, al
je 0x140081187
lea rcx, [0x1400cdb78]
call qword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x1400810fb
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_FindClose]
mov al, bl
add rsp, 0x288
pop rdi
pop rsi
pop rbx
pop rbp
ret