joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180017390
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1801485f0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
cmp qword [rcx + 0x78], 0
je 0x1800175c4
cmp byte [rcx + 0x81], 0
je 0x1800175c4
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x1800173f1
xor al, al
jmp 0x1800175c6
xor r14d, r14d
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], r14
mov r15d, 0xf
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x20], r14
mov byte [rbp - 0x30], r14b
xor ecx, ecx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x20], 8
lea rax, [rbp - 0x30]
cmp r15, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
mov r9, qword [rbp - 0x18]
mov r10, qword [rbp - 0x30]
nop word [rax + rax]
lea rdx, [rbp - 0x30]
cmp r9, 0x10
cmovae rdx, r10
lea r8, [rbp - 0x30]
cmovae r8, r10
mov rcx, qword [rdi + 0x78]
mov r10, qword [rcx]
mov r9, qword [rbp - 0x20]
add r9, rdx
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x84]
call qword [r10 + 0x40]
test eax, eax
je 0x180017484
dec eax
jne 0x18001757e
jmp 0x18001748b
mov byte [rdi + 0x81], 0
lea rax, [rbp - 0x30]
mov r10, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
cmp r9, 0x10
cmovae rax, r10
mov rbx, qword [rbp - 0x40]
sub rbx, rax
je 0x1800174d9
lea rcx, [rbp - 0x30]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rdi + 0x90]
mov r8, rbx
mov edx, 1
call fcn.1800b8098
cmp rbx, rax
jne 0x180017583
mov r9, qword [rbp - 0x18]
mov r10, qword [rbp - 0x30]
cmp byte [rdi + 0x81], 0
je 0x1800175a1
test rbx, rbx
jne 0x180017440
or rax, 0xffffffffffffffff
mov r8, qword [rbp - 0x20]
sub rax, r8
cmp rax, 8
jbe 0x180017594
lea rbx, [r8 + 8]
cmp rbx, 0xfffffffffffffffe
ja 0x180017587
cmp r9, rbx
jae 0x180017529
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.180018170
mov r9, qword [rbp - 0x18]
mov r10, qword [rbp - 0x30]
jmp 0x180017545
test rbx, rbx
jne 0x18001754e
mov qword [rbp - 0x20], r14
lea rax, [rbp - 0x30]
cmp r9, 0x10
cmovae rax, r10
mov byte [rax], bl
jmp 0x18001742b
test rbx, rbx
je 0x180017440
lea rcx, [rbp - 0x30]
cmp r9, 0x10
cmovae rcx, r10
mov rax, qword [rbp - 0x20]
xor edx, edx
mov qword [rax + rcx], rdx
mov qword [rbp - 0x20], rbx
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rax, qword [rbp - 0x30]
mov byte [rbx + rax], dl
jmp 0x18001742b
sub eax, 2
je 0x1800175a1
xor bl, bl
jmp 0x1800175a3
lea rcx, str.string_too_long
call fcn.1800b0d28
int3
lea rcx, str.string_too_long
call fcn.1800b0d28
int3
mov bl, 1
cmp qword [rbp - 0x18], 0x10
jb 0x1800175b3
mov rcx, qword [rbp - 0x30]
call fcn.1800b5700
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x20], r14
mov byte [rbp - 0x30], 0
movzx eax, bl
jmp 0x1800175c6
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1800b6c40
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x18001f560
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4d0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1801485f0]
xor rax, rsp
mov qword [rsp + 0x4c8], rax
mov rdi, rdx
mov r13, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rdx
xor ebx, ebx
mov esi, ebx
mov dword [rsp + 0x20], ebx
cmp qword [rcx + 0x10], rbx
je 0x18001f5f0
xor edx, edx
lea ecx, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r15, rax
mov qword [rsp + 0x38], rax
cmp rax, 0xffffffffffffffff
je 0x18001f5f0
mov dword [rsp + 0x50], 0x238
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x18001f600
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18001f7a5
lea rdx, [rsp + 0x50]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x18001f79a
mov rcx, r13
call fcn.180013890
mov rcx, rax
lea rdx, [rsp + 0x7c]
call fcn.1800b96c4
test eax, eax
jne 0x18001f600
cmp qword [rdi + 0x10], 0
jne 0x18001f63f
mov esi, dword [rsp + 0x58]
jmp 0x18001f79a
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r12, rax
test rax, rax
je 0x18001f600
mov word [rsp + 0x2b0], bx
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x2b2]
call fcn.1800b6c70
mov r9d, 0x104
lea r8, [rsp + 0x2b0]
xor edx, edx
mov rcx, r12
call qword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x18001f600
mov qword [rsp + 0x2a0], rbx
mov qword [rsp + 0x2a8], rbx
mov qword [rsp + 0x2a8], 7
mov qword [rsp + 0x2a0], rbx
mov word [rsp + 0x290], bx
cmp word [rsp + 0x2b0], 0
jne 0x18001f6d3
mov r8, rbx
jmp 0x18001f6eb
lea rax, [rsp + 0x2b0]
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x18001f6e0
lea rdx, [rsp + 0x2b0]
lea rcx, [rsp + 0x290]
call fcn.1800166f0
nop
cmp qword [rdi + 0x18], 8
jb 0x18001f70d
mov rdx, qword [rdi]
jmp 0x18001f710
mov rdx, rdi
mov r9, qword [rdi + 0x10]
xor r8d, r8d
lea rcx, [rsp + 0x290]
call fcn.180016dd0
cmp rax, 0xffffffffffffffff
sete r14b
cmp qword [rsp + 0x2a8], 8
jb 0x18001f744
mov rcx, qword [rsp + 0x290]
call fcn.1800b5700
mov qword [rsp + 0x2a8], 7
mov qword [rsp + 0x2a0], rbx
mov word [rsp + 0x290], bx
test r14b, r14b
je 0x18001f76a
jmp 0x18001f600
mov esi, dword [rsp + 0x58]
mov dword [rsp + 0x20], esi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18001f600
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x4c8]
xor rcx, rsp
call fcn.1800b6c40
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18001fb00
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0xe0
xor eax, eax
xor r15d, r15d
mov r14, r8
mov rdi, rcx
mov rbp, rdx
lea r8d, [r15 + 0x60]
lea rcx, [rsp + 0x78]
xor edx, edx
movzx ebx, r9b
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
call fcn.1800b6c70
mov rcx, qword [rdi + 0x10]
neg bl
sbb ax, ax
inc rcx
mov dword [rsp + 0x70], 0x68
and ax, 5
mov dword [rsp + 0xac], 1
mov word [rsp + 0xb0], ax
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1800b1b34
mov rsi, rax
test rax, rax
je 0x18001fcdf
mov r8, qword [rdi + 0x10]
xor edx, edx
mov rcx, rax
inc r8
call fcn.1800b6c70
cmp qword [rdi + 0x18], 8
jb 0x18001fbb9
mov rdi, qword [rdi]
lea rdx, [0x180100a98]
mov r8, rdi
mov rcx, rsi
call qword [sym.imp.USER32.dll_wsprintfW]
mov bl, 1
cmp qword [r14 + 0x10], r15
ja 0x18001fbd9
mov rdi, r15
jmp 0x18001fbe4
mov rcx, r14
call fcn.180013890
mov rdi, rax
cmp qword [rbp + 0x10], r15
ja 0x18001fbef
mov rax, r15
jmp 0x18001fbf7
mov rcx, rbp
call fcn.180013890
mov ecx, r15d
lea rdx, [rsp + 0x50]
cmp byte [rsp + 0x120], cl
mov qword [rsp + 0x48], rdx
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x40], rdx
setne cl
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], ecx
mov rcx, rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x18001fc48
xor bl, bl
jmp 0x18001fcb4
cmp byte [rsp + 0x128], r15b
je 0x18001fc6d
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18001fc6d
mov edx, dword [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x18001fc44
mov rdx, qword [rsp + 0x148]
test rdx, rdx
je 0x18001fc8e
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18001fc8e
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x18001fc44
mov rcx, qword [rsp + 0x138]
test rcx, rcx
je 0x18001fca1
mov eax, dword [rsp + 0x64]
mov dword [rcx], eax
mov rax, qword [rsp + 0x140]
test rax, rax
je 0x18001fcb4
mov ecx, dword [rsp + 0x60]
mov dword [rax], ecx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x50], r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
mov qword [rsp + 0x58], r15
call fcn.1800b72ec
movzx eax, bl
lea r11, [rsp + 0xe0]
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 0x180020c20
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x1801485f0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rdx
mov rbx, rcx
lea rdx, [0x180100a4c]
mov rcx, rdi
xor r8d, r8d
call fcn.1800166f0
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x20a
call fcn.1800b6c70
lea rdx, [rsp + 0x20]
mov r8d, 0x105
mov rcx, rbx
call qword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x180020cc0
cmp word [rsp + 0x20], 0
jne 0x180020c8e
xor r8d, r8d
jmp 0x180020cab
lea rax, [rsp + 0x20]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x180020ca0
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1800166f0
nop dword [rax + rax]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1800b6c40
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
ret
Function at 0x180025790
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x40
cmp qword [rcx + 0x10], 0
movzx ebx, r9b
mov esi, r8d
mov rbp, rdx
jne 0x1800257b3
xor al, al
add rsp, 0x40
pop rsi
pop rbp
pop rbx
ret
cmp qword [rcx + 0x18], 8
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], r14
jb 0x1800257c7
mov rcx, qword [rcx]
mov edx, 4
mov eax, 2
test bl, bl
cmovne eax, edx
xor r14d, r14d
xor r9d, r9d
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x180025808
xor al, al
jmp 0x180025855
test bl, bl
je 0x180025820
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x60]
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
mov bl, 1
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
movzx ebx, bl
test eax, eax
mov rcx, rdi
cmove ebx, r14d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
mov rdi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x70]
add rsp, 0x40
pop rsi
pop rbp
pop rbx
ret

Function at 0x180025870
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x50
cmp qword [rcx + 0x10], 0
mov rsi, r9
mov ebp, r8d
mov r14, rdx
jne 0x180025894
xor al, al
add rsp, 0x50
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x18], 8
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x88], r15
jb 0x1800258ae
mov rcx, qword [rcx]
xor r15d, r15d
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], r15
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1800258e7
xor al, al
jmp 0x180025978
lea rdx, [rsp + 0x70]
mov rcx, rax
mov qword [rsp + 0x78], rbx
mov dword [rsp + 0x70], r15d
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, rdi
mov ebx, eax
cmp dword [rsp + 0x70], r15d
je 0x180025915
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x180025973
test eax, eax
jne 0x180025926
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsi], r15d
mov al, 1
jmp 0x180025973
cmp eax, ebp
jbe 0x180025936
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsi], ebx
xor al, al
jmp 0x180025973
test ebp, ebp
lea r9, [rsp + 0x40]
mov rdx, r14
cmove ebp, eax
mov bl, 1
mov dword [rsp + 0x40], r15d
mov r8d, ebp
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x40]
movzx ebx, bl
mov dword [rsi], ecx
test eax, eax
mov rcx, rdi
cmove ebx, r15d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
mov rbx, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov r15, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop rsi
pop rbp
ret
Function at 0x180025df0
Capabilities:
Get disk information

Disassembly:
push rdi
sub rsp, 0x2b0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x2c8], rbx
mov rax, qword [0x1801485f0]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rbx, rcx
cmp qword [rcx + 0x10], 0
jne 0x180025e2d
xor al, al
jmp 0x180025f5e
xor edi, edi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x28], di
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.1800165a0
nop
lea edx, [rdi + 0x2f]
lea rcx, [rsp + 0x28]
call fcn.18001c9e0
lea edx, [rdi + 0x5c]
lea rcx, [rsp + 0x28]
call fcn.18001c9e0
cmp qword [rsp + 0x38], 3
ja 0x180025eaf
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jbe 0x180025f34
cmp eax, 4
ja 0x180025eaf
mov bl, 1
jmp 0x180025f36
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x180025f1a
mov rcx, qword [rbx + 0x10]
lea eax, [rcx - 1]
movsxd rdx, eax
cmp rcx, rdx
ja 0x180025eed
lea rcx, str.invalid_string_position
call fcn.1800b0d60
int3
mov rax, qword [rbx + 0x18]
cmp rax, 8
jb 0x180025efc
mov rcx, qword [rbx]
jmp 0x180025eff
mov rcx, rbx
cmp word [rcx + rdx*2], 0x5c
je 0x180025f16
cmp rax, 8
jb 0x180025f0f
mov rbx, qword [rbx]
cmp word [rbx + rdx*2], 0x2f
jne 0x180025f34
mov bl, 1
jmp 0x180025f36
mov rcx, rax
test byte [rsp + 0x50], 0x10
je 0x180025f2e
call qword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
jmp 0x180025f36
call qword [sym.imp.KERNEL32.dll_FindClose]
xor bl, bl
cmp qword [rsp + 0x40], 8
jb 0x180025f48
mov rcx, qword [rsp + 0x28]
call fcn.1800b5700
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x28], di
movzx eax, bl
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.1800b6c40
mov rbx, qword [rsp + 0x2c8]
add rsp, 0x2b0
pop rdi
ret

Function at 0x180025f80
Capabilities:
Check if file exists

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x10], 0
jne 0x180025f92
xor al, al
add rsp, 0x28
ret
cmp qword [rcx + 0x18], 8
jb 0x180025f9c
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
add rsp, 0x28
ret
Function at 0x180026620
Capabilities:
Check if file exists
Move file

Disassembly:
mov r11, rsp
push r14
sub rsp, 0xa0
mov qword [r11 - 0x40], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov rax, qword [0x1801485f0]
xor rax, rsp
mov qword [rsp + 0x98], rax
movzx r14d, dl
xor edi, edi
mov qword [r11 - 0x28], rdi
mov qword [r11 - 0x20], rdi
mov qword [r11 - 0x20], 7
mov qword [r11 - 0x28], rdi
mov word [rsp + 0x70], di
or rsi, 0xffffffffffffffff
mov r9, rsi
xor r8d, r8d
mov rdx, rcx
lea rcx, [r11 - 0x38]
call fcn.1800165a0
nop
lea edx, [rdi + 0x20]
lea rcx, [rsp + 0x70]
call fcn.18001cae0
cmp qword [rsp + 0x80], rdi
je 0x1800267f9
lea rcx, [rsp + 0x70]
cmp qword [rsp + 0x88], 8
cmovae rcx, qword [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x1800267f9
lea rcx, [rsp + 0x70]
cmp qword [rsp + 0x88], 8
cmovae rcx, qword [rsp + 0x70]
mov rax, rsi
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1800266e0
add eax, 2
movsxd rbx, eax
mov eax, 2
mul rbx
cmovo rax, rsi
mov rcx, rax
call fcn.1800b1b34
mov rsi, rax
mov qword [rsp + 0x60], rax
lea r8, [rsp + 0x70]
cmp qword [rsp + 0x88], 8
cmovae r8, qword [rsp + 0x70]
mov rdx, rbx
mov rcx, rax
call fcn.1800b8c80
mov rcx, qword [rsp + 0x80]
mov word [rsi + rcx*2], di
mov rax, qword [rsp + 0x80]
mov word [rsi + rax*2 + 2], di
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov ecx, 0x414
or ax, cx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x30], 3
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
test r14b, r14b
je 0x18002679d
or ax, 0x40
jmp 0x1800267a5
mov ecx, 0xffbf
and ax, cx
mov word [rsp + 0x48], ax
mov bl, 1
lea rcx, [rsp + 0x28]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
movzx ebx, bl
test eax, eax
cmovne ebx, edi
mov byte [rsp + 0x20], bl
jmp 0x1800267d1
test rsi, rsi
je 0x1800267df
mov rcx, rsi
call fcn.1800b72ec
nop
cmp qword [rsp + 0x88], 8
jb 0x1800267f4
mov rcx, qword [rsp + 0x70]
call fcn.1800b5700
movzx eax, bl
jmp 0x180026810
cmp qword [rsp + 0x88], 8
jb 0x18002680e
mov rcx, qword [rsp + 0x70]
call fcn.1800b5700
mov al, 1
mov word [rsp + 0x70], di
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x88], 7
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1800b6c40
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x180027590
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x240]
sub rsp, 0x340
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x378], rbx
mov rax, qword [0x1801485f0]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov byte [rsp + 0x20], r9b
movzx ebx, r8b
mov rdi, rdx
mov rsi, rcx
cmp qword [rcx + 0x10], 0
je 0x1800277ec
cmp qword [rcx + 0x18], 8
jb 0x1800275e9
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x1800277ec
lea r8, str..
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.180019600
nop
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x28], rax
cmp rax, 0xffffffffffffffff
je 0x1800277b6
nop word [rax + rax]
lea rdx, [rbp + 0xc]
lea rcx, [0x180100958]
call fcn.1800b96c4
test eax, eax
je 0x180027794
lea rdx, [rbp + 0xc]
lea rcx, [0x180100b74]
call fcn.1800b96c4
test eax, eax
je 0x180027794
lea r8, [0x180100a48]
mov rdx, rsi
lea rcx, [rbp - 0x48]
call fcn.180019600
nop
lea r8, [rbp + 0xc]
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.1800196f0
nop
cmp qword [rbp - 0x30], 8
jb 0x1800276a6
mov rcx, qword [rbp - 0x48]
call fcn.1800b5700
mov qword [rbp - 0x30], 7
xor eax, eax
mov qword [rbp - 0x38], rax
mov word [rbp - 0x48], ax
test byte [rbp - 0x20], 0x10
je 0x18002775b
test bl, bl
je 0x18002773e
lea r8, [0x180100a48]
mov rdx, rsi
lea rcx, [rbp - 0x68]
call fcn.180019600
nop
lea r8, [rbp + 0xc]
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.1800196f0
nop
mov rdx, rax
mov rcx, rdi
call fcn.180014930
nop
cmp qword [rbp - 0x70], 8
jb 0x180027709
mov rcx, qword [rsp + 0x78]
call fcn.1800b5700
mov qword [rbp - 0x70], 7
xor eax, eax
mov qword [rbp - 0x78], rax
mov word [rsp + 0x78], ax
cmp qword [rbp - 0x50], 8
jb 0x18002772e
mov rcx, qword [rbp - 0x68]
call fcn.1800b5700
xor eax, eax
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], rax
mov word [rbp - 0x68], ax
cmp byte [rsp + 0x20], 0
je 0x18002776d
mov r9b, 1
movzx r8d, bl
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.180027590
jmp 0x18002776d
test bl, bl
jne 0x18002776d
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.180014a10
nop
cmp qword [rsp + 0x70], 8
jb 0x18002777f
mov rcx, qword [rsp + 0x58]
call fcn.1800b5700
mov qword [rsp + 0x70], 7
xor eax, eax
mov qword [rsp + 0x68], rax
mov word [rsp + 0x58], ax
lea rdx, [rbp - 0x20]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180027640
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rdi + 8]
sub rbx, qword [rdi]
sar rbx, 5
cmp qword [rsp + 0x50], 8
jb 0x1800277d3
mov rcx, qword [rsp + 0x38]
call fcn.1800b5700
mov qword [rsp + 0x50], 7
xor eax, eax
mov qword [rsp + 0x48], rax
mov word [rsp + 0x38], ax
mov eax, ebx
jmp 0x1800277ee
xor eax, eax
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.1800b6c40
mov rbx, qword [rsp + 0x378]
add rsp, 0x340
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800285c0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1801485f0]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, VarUI4FromDisp
call fcn.1800b6c70
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], VarUI4FromDisp
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x18002872d
mov eax, dword [rsp + 0x24]
cmp eax, 5
jne 0x180028634
cmp dword [rsp + 0x28], 1
jne 0x18002872d
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800b6c40
add rsp, 0x158
ret
cmp eax, 6
jne 0x18002872d
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x180028662
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800b6c40
add rsp, 0x158
ret
cmp eax, 1
jne 0x180028684
mov eax, 2
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800b6c40
add rsp, 0x158
ret
cmp eax, 2
jne 0x18002872d
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180028710
lea rcx, [rsp + 0x20]
call rax
test eax, eax
jne 0x180028710
mov eax, dword [rsp + 0x24]
cmp eax, 6
jne 0x1800286e7
cmp dword [rsp + 0x28], 3
jne 0x180028710
mov eax, 4
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800b6c40
add rsp, 0x158
ret
cmp eax, 0xa
jne 0x180028710
cmp dword [rsp + 0x28], 0
jne 0x180028710
mov eax, 5
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800b6c40
add rsp, 0x158
ret
mov eax, 3
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800b6c40
add rsp, 0x158
ret
or eax, 0xffffffff
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800b6c40
add rsp, 0x158
ret
Function at 0x180028b10
Capabilities:
Get token privileges

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp + 0x1f], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x1801485f0]
xor rax, rsp
mov qword [rbp + 0x47], rax
call fcn.1800285c0
test eax, eax
jne 0x180028b4d
mov al, 1
jmp 0x180028c41
xor edi, edi
mov qword [rbp + 0xf], rdi
mov qword [rbp + 0x17], rdi
mov qword [rbp + 0x17], 7
mov qword [rbp + 0xf], rdi
mov word [rbp - 1], di
xor r8d, r8d
lea rdx, [0x180100a4c]
lea rcx, [rbp - 1]
call fcn.1800166f0
nop
lea rcx, [rbp + 0x27]
call fcn.180028160
nop
lea rdx, [rbp - 1]
mov rcx, rax
call fcn.18001f560
mov ebx, eax
cmp qword [rbp + 0x3f], 8
jb 0x180028ba3
mov rcx, qword [rbp + 0x27]
call fcn.1800b5700
mov qword [rbp + 0x3f], 7
mov qword [rbp + 0x37], rdi
mov word [rbp + 0x27], di
cmp qword [rbp + 0x17], 8
jb 0x180028bc3
mov rcx, qword [rbp - 1]
call fcn.1800b5700
mov qword [rbp + 0x17], 7
mov qword [rbp + 0xf], rdi
mov word [rbp - 1], di
mov r8d, ebx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
mov qword [rbp - 0x11], rdi
lea r8, [rbp - 0x11]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea r8, [rbp - 0x11]
mov edx, 8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [rbp - 0x19], edi
mov dword [rbp - 9], edi
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rbp - 0x19]
lea edx, [r9 + 0xe]
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov al, 1
movzx eax, al
cmp dword [rbp - 0x19], 3
cmovae eax, edi
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1800b6c40
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret