joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ff20
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
mov r11, qword [r8 + 0x10]
mov r10, r8
mov qword [rsp + 0x10], rbp
mov rsi, rdx
mov rbp, qword [r8 + 0x18]
mov r14, rcx
mov r9, r8
cmp rbp, 7
jbe 0x14000ff4e
mov r9, qword [r8]
xor ebx, ebx
mov qword [rsp + 0x18], rdi
lea rdx, [r11 + r11]
movabs r8, 0xcbf29ce484222325
mov ecx, ebx
test rdx, rdx
je 0x14000ff94
movabs rdi, 0x100000001b3
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r9 + rcx]
inc rcx
xor r8, rax
imul r8, rdi
cmp rcx, rdx
jb 0x14000ff80
mov rcx, qword [r14 + 0x30]
mov rax, qword [r14 + 0x18]
and rcx, r8
add rcx, rcx
mov r9, qword [rax + rcx*8 + 8]
cmp r9, qword [r14 + 8]
je 0x14000fff7
mov rdi, qword [rax + rcx*8]
cmp qword [r9 + 0x28], 7
lea rax, [r9 + 0x10]
mov rcx, qword [rax + 0x10]
jbe 0x14000ffc3
mov rax, qword [rax]
mov r8, r10
cmp rbp, 7
jbe 0x14000ffcf
mov r8, qword [r10]
cmp r11, rcx
jne 0x140010019
mov rdx, r11
test r11, r11
je 0x14000fff4
sub r8, rax
nop
movzx ecx, word [r8 + rax]
cmp cx, word [rax]
jne 0x140010019
add rax, 2
sub rdx, 1
jne 0x14000ffe0
mov rbx, r9
mov rdi, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x10]
test rbx, rbx
je 0x140010024
mov qword [rsi], rbx
mov rax, rsi
mov rbx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
pop r14
ret
cmp r9, rdi
je 0x14000fff7
mov r9, qword [r9 + 8]
jmp 0x14000ffb1
mov rax, qword [r14 + 8]
mov rbx, qword [rsp + 0x20]
mov qword [rsi], rax
mov rax, rsi
mov rsi, qword [rsp + 0x28]
pop r14
ret
Function at 0x14001cab0
Capabilities:
Check if file exists

Disassembly:
sub rsp, 0x28
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x14001cad0
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x14001caf0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, r8
mov qword [rsp + 0x30], 0
mov rsi, rdx
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001cb4a
xor al, al
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov eax, 0xffffffff
mov dword [rsp + 0x68], 0
cmp rbx, rax
jbe 0x14001cb60
xor bl, bl
jmp 0x14001cb82
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], 0
mov r8d, ebx
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bl
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x58]
movzx eax, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14001d5a0
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x230
mov rax, qword [0x1400b5200]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x34], 1
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], 7
mov qword [rcx + 0x18], 0xf
mov rax, qword [str.unknown]
mov dword [rcx], eax
movzx eax, word [0x1400a4ad4]
mov word [rcx + 4], ax
movzx eax, byte [0x1400a4ad6]
mov byte [rcx + 6], al
mov byte [rcx + 7], 0
mov dword [rsp + 0x34], 1
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.HARDWAREDESCRIPTIONSystemCentralProcessor0
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14001d6b3
mov dword [rsp + 0x30], 0x1c8
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ProcessorNameString
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14001d6a7
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14001d6a7
cmp rax, 0x1c9
jae 0x14001d6cf
mov byte [rsp + rax + 0x50], 0
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x14001d690
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140016000
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rax, rbx
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.14005e480
add rsp, 0x230
pop rbx
ret
call fcn.14005ee9c
nop
int3

Function at 0x14001d7f0
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x210
mov rax, qword [0x1400b5200]
xor rax, rsp
mov qword [rsp + 0x200], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor eax, eax
mov dword [rsp + 0x24], eax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], 7
mov qword [rcx + 0x18], 0xf
mov rax, qword [str.unknown]
mov dword [rcx], eax
movzx eax, word [0x1400a4ad4]
mov word [rcx + 4], ax
movzx eax, byte [0x1400a4ad6]
mov byte [rcx + 6], al
mov byte [rcx + 7], 0
mov dword [rsp + 0x24], 1
mov dword [rsp + 0x20], 0x1c8
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x14001d8a9
mov eax, dword [rsp + 0x20]
cmp rax, 0x1c9
jae 0x14001d8c5
mov byte [rsp + rax + 0x30], 0
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14001d892
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140016000
mov rax, rbx
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.14005e480
add rsp, 0x210
pop rbx
ret
call fcn.14005ee9c
int3
Function at 0x14001dc60
Capabilities:
Get geographical location

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1400b5200]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 1
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], 7
mov qword [rcx + 0x18], 0xf
mov rax, qword [str.unknown]
mov dword [rcx], eax
movzx eax, word [0x1400a4ad4]
mov word [rcx + 4], ax
movzx eax, byte [0x1400a4ad6]
mov byte [rcx + 6], al
mov byte [rcx + 7], 0
mov dword [rsp + 0x20], 1
xor eax, eax
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], eax
mov r9d, 0x14
lea r8, [rsp + 0x30]
mov edx, 0x5c
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x14001dd18
mov byte [rsp + 0x44], 0
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14001dd00
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140016000
nop
mov rax, rbx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14005e480
add rsp, 0x50
pop rbx
ret
Function at 0x14001dd30
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r15
sub rsp, 0x570
mov rax, qword [0x1400b5200]
xor rax, rsp
mov qword [rsp + 0x560], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 1
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor r15d, r15d
mov qword [rcx + 0x10], r15
mov esi, 0xf
mov qword [rcx + 0x18], rsi
mov byte [rcx], r15b
mov dword [rsp + 0x20], 1
mov edx, 0x400
lea rcx, [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x14001df3c
mov eax, eax
cmp rax, 0x401
jae 0x14001df6d
mov byte [rsp + rax + 0x150], r15b
lea rax, [rsp + 0x150]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14001ddd0
lea rdx, [rsp + 0x150]
mov rcx, rbx
call fcn.140016000
mov rbp, qword [rbx + 0x10]
mov rdi, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14001ddfb
mov rdi, qword [rbx]
test rbp, rbp
je 0x14001de56
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x50]
call fcn.140087b80
lea rcx, [0x14008d970]
lea rdx, [0x14008d972]
movzx eax, byte [rcx]
mov byte [rsp + rax + 0x50], 1
inc rcx
cmp rcx, rdx
jne 0x14001de20
lea rdx, [rdi + rbp]
mov rcx, rdi
cmp rdi, rdx
jae 0x14001de56
nop dword [rax]
movzx eax, byte [rcx]
cmp byte [rsp + rax + 0x50], 0
jne 0x14001def9
inc rcx
cmp rcx, rdx
jb 0x14001de40
mov rcx, 0xffffffffffffffff
cmp rcx, 0xffffffffffffffff
je 0x14001df3c
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea r8, [rcx + 1]
cmp rbp, r8
cmovb r8, rbp
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14001de90
mov rdx, qword [rbx]
lea rcx, [rsp + 0x30]
call fcn.140004dd0
lea rax, [rsp + 0x30]
cmp rbx, rax
je 0x14001df01
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14001dede
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14001ded9
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001df67
mov rcx, r8
call fcn.14005e4dc
mov byte [rbx], 0
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rbx + 0x10], xmm1
mov byte [rsp + 0x30], 0
jmp 0x14001df06
sub rcx, rdi
jmp 0x14001de5d
mov rsi, qword [rsp + 0x48]
cmp rsi, 0xf
jbe 0x14001df3c
lea rdx, [rsi + 1]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001df36
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001df67
call fcn.14005e4dc
nop
mov rax, rbx
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.14005e480
lea r11, [rsp + 0x570]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop rdi
pop rsi
ret
call fcn.1400645e4
nop
call fcn.14005ee9c
int3
Function at 0x14001df80
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x400
mov rax, qword [0x1400b5200]
xor rax, rsp
mov qword [rsp + 0x3f0], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor eax, eax
mov dword [rsp + 0x34], eax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], 7
mov qword [rcx + 0x18], 0xf
mov rax, qword [str.unknown]
mov dword [rcx], eax
movzx eax, word [0x1400a4ad4]
mov word [rcx + 4], ax
movzx eax, byte [0x1400a4ad6]
mov byte [rcx + 6], al
mov byte [rcx + 7], 0
mov dword [rsp + 0x34], 2
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14001e093
mov dword [rsp + 0x30], 0x390
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ProductName
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14001e087
mov eax, dword [rsp + 0x30]
cmp rax, 0x391
jae 0x14001e0af
mov byte [rsp + rax + 0x50], 0
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14001e070
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140016000
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rax, rbx
mov rcx, qword [rsp + 0x3f0]
xor rcx, rsp
call fcn.14005e480
add rsp, 0x400
pop rbx
ret
call fcn.14005ee9c
nop
int3

Function at 0x14001e280
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x210
mov rax, qword [0x1400b5200]
xor rax, rsp
mov qword [rsp + 0x200], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor eax, eax
mov dword [rsp + 0x24], eax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], 7
mov qword [rcx + 0x18], 0xf
mov rax, qword [str.unknown]
mov dword [rcx], eax
movzx eax, word [0x1400a4ad4]
mov word [rcx + 4], ax
movzx eax, byte [0x1400a4ad6]
mov byte [rcx + 6], al
mov byte [rcx + 7], 0
mov dword [rsp + 0x24], 1
mov dword [rsp + 0x20], 0x1c8
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x14001e339
mov eax, dword [rsp + 0x20]
cmp rax, 0x1c9
jae 0x14001e355
mov byte [rsp + rax + 0x30], 0
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14001e322
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140016000
mov rax, rbx
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.14005e480
add rsp, 0x210
pop rbx
ret
call fcn.14005ee9c
int3

Function at 0x140020420
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
cmp r8d, 1
jl 0x140020449
xor ecx, ecx
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
mov dword [rbx], eax
setns al
add rsp, 0x20
pop rbx
ret
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400213e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov rbx, qword [r8 + 0x18]
mov rsi, r8
mov rdi, qword [r8 + 0x10]
mov r14, rdx
mov r10, rcx
mov r9, r8
cmp rbx, 7
jbe 0x14002140e
mov r9, qword [r8]
lea rdx, [rdi + rdi]
xor ecx, ecx
movabs r8, 0xcbf29ce484222325
test rdx, rdx
je 0x140021444
movabs r11, 0x100000001b3
nop dword [rax]
movzx eax, byte [r9 + rcx]
inc rcx
xor r8, rax
imul r8, r11
cmp rcx, rdx
jb 0x140021430
mov rcx, qword [r10 + 0x30]
mov rax, qword [r10 + 0x18]
and rcx, r8
mov r10, qword [r10 + 8]
add rcx, rcx
mov r11, qword [rax + rcx*8]
cmp r11, r10
je 0x140021531
mov rax, qword [rax + rcx*8 + 8]
nop dword [rax + rax]
lea r9, [r11 + 0x10]
mov rdx, rsi
cmp rbx, 7
jbe 0x140021480
mov rdx, qword [rsi]
cmp qword [r9 + 0x18], 7
mov r8, qword [r9 + 0x10]
jbe 0x14002148e
mov r9, qword [r9]
cmp r8, rdi
jne 0x140021524
test r8, r8
je 0x1400214b4
sub r9, rdx
nop
movzx ecx, word [r9 + rdx]
cmp cx, word [rdx]
jne 0x140021524
add rdx, 2
sub r8, 1
jne 0x1400214a0
mov r10, qword [r11]
cmp r11, rax
je 0x140021534
mov qword [rsp + 0x10], rbp
mov rbp, rbx
mov rbx, rdi
nop word [rax + rax]
cmp qword [r10 + 0x28], 7
lea rcx, [r10 + 0x10]
mov rdx, qword [rcx + 0x10]
mov rdi, r10
jbe 0x1400214e5
mov rcx, qword [rcx]
mov r9, rsi
cmp rbp, 7
jbe 0x1400214f1
mov r9, qword [rsi]
cmp rbx, rdx
jne 0x14002151d
mov r8, rbx
test rbx, rbx
je 0x140021515
sub r9, rcx
movzx edx, word [r9 + rcx]
cmp dx, word [rcx]
jne 0x14002151d
add rcx, 2
sub r8, 1
jne 0x140021501
mov r10, qword [r10]
cmp rdi, rax
jne 0x1400214d0
mov rbp, qword [rsp + 0x10]
jmp 0x140021534
cmp r11, rax
je 0x140021531
mov r11, qword [r11]
jmp 0x140021470
mov r11, r10
mov rbx, qword [rsp + 0x18]
mov rax, r14
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
mov qword [r14], r11
mov qword [r14 + 8], r10
pop r14
ret
Function at 0x140025e80
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push rbp
push rsi
push r14
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [0x1400b5200]
xor rax, rsp
mov qword [rbp + 0x350], rax
xor r14d, r14d
lea rcx, [rsp + 0x32]
xor edx, edx
mov word [rsp + 0x30], r14w
mov r8d, 0x206
call fcn.140087b80
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140026030
mov qword [rsp + 0x490], rbx
lea rcx, [rbp + 0x140]
mov qword [rsp + 0x498], rdi
xor edx, edx
mov qword [rsp + 0x4a0], r12
mov r8d, 0x208
mov qword [rsp + 0x468], r13
mov qword [rsp + 0x460], r15
call fcn.140087b80
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], r14d
mov r8d, 0x104
lea rdx, [rbp + 0x140]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
cmp dword [rsp + 0x20], 1
mov r13d, 0x43
jne 0x140025f80
movzx ebx, r13w
nop dword [rax]
lea rdx, [rsp + 0x30]
mov word [rsp + 0x28], bx
lea rcx, [rsp + 0x28]
mov dword [rsp + 0x2a], 0x5c003a
mov word [rsp + 0x2e], r14w
call qword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
test eax, eax
jne 0x140025f80
inc bx
cmp bx, 0x5a
jbe 0x140025f50
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
lea r9, [rsp + 0x20]
mov r8d, 0x104
lea rdx, [rbp + 0x140]
mov edi, eax
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x140026000
cmp dword [rsp + 0x20], 1
jne 0x140026000
movzx ebx, r13w
nop dword [rax]
nop word [rax + rax]
lea rdx, [rsp + 0x30]
mov word [rsp + 0x28], bx
lea rcx, [rsp + 0x28]
mov dword [rsp + 0x2a], 0x5c003a
mov word [rsp + 0x2e], r14w
call qword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
test eax, eax
jne 0x140026000
inc bx
cmp bx, 0x5a
jbe 0x140025fd0
test edi, edi
jne 0x140025f80
mov r15, qword [rsp + 0x460]
mov r13, qword [rsp + 0x468]
mov r12, qword [rsp + 0x4a0]
mov rdi, qword [rsp + 0x498]
mov rbx, qword [rsp + 0x490]
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.14005e480
add rsp, 0x470
pop r14
pop rsi
pop rbp
ret
Function at 0x1400266e0
Capabilities:
Get file size
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov rdi, rcx
call fcn.14002eae0
nop
lea rax, vtable.FileWrapperWin.0
mov qword [rdi], rax
mov qword [rdi + 0x38], 0xffffffffffffffff
xor eax, eax
mov qword [rdi + 0x40], rax
xor ebp, ebp
mov esi, ebp
nop
lea rcx, [rdi + 8]
cmp qword [rdi + 0x20], 7
jbe 0x14002672f
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x8000080
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x38], rax
cmp rax, 0xffffffffffffffff
jne 0x1400267fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 5
je 0x1400267b3
sub eax, 0x1b
je 0x140026778
cmp eax, 1
jne 0x1400267f5
mov dword [rdi + 0x28], 3
lea rcx, [rdi + 8]
cmp qword [rdi + 0x20], 7
jbe 0x14002678e
mov rcx, qword [rdi + 8]
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call fcn.1400234c0
jmp 0x1400267e8
lea rcx, [rdi + 8]
cmp qword [rdi + 0x20], 7
jbe 0x1400267c2
mov rcx, qword [rdi + 8]
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rdi + 8]
cmp qword [rdi + 0x20], 7
jbe 0x1400267dc
mov rcx, qword [rdi + 8]
call fcn.14002ed70
mov dword [rdi + 0x28], 2
inc esi
cmp esi, 2
jle 0x140026720
jmp 0x140026801
mov dword [rdi + 0x28], 1
jmp 0x140026801
mov dword [rdi + 0x28], ebp
cmp dword [rdi + 0x28], ebp
jne 0x14002681c
lea rdx, [rdi + 0x40]
mov rcx, qword [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rax, qword [rdi + 0x40]
mov qword [rdi + 0x30], rax
mov rax, rdi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400268c0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [rcx + 0x38]
lea rdx, [rsp + 0x30]
xor ebx, ebx
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, qword [rsp + 0x30]
test eax, eax
cmove rcx, rbx
mov rax, rcx
add rsp, 0x20
pop rbx
ret
Function at 0x140026940
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rbp, r8
mov rbx, rdx
mov r14, rcx
xor esi, esi
cmp qword [rcx + 0x38], 0xffffffffffffffff
je 0x140026a26
lea rax, [r8 - 1]
mov ecx, 0xfffffffd
cmp rax, rcx
ja 0x140026a26
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov edi, esi
mov qword [rsp + 0x48], rsi
test r8, r8
je 0x1400269a6
lea r8, [rsp + 0x70]
mov rdx, rbp
lea rcx, [rsp + 0x38]
call fcn.140016d00
mov rdi, qword [rsp + 0x48]
mov dword [rsp + 0x70], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x70]
mov r8d, ebp
mov rsi, qword [rsp + 0x38]
mov rdx, rsi
mov rcx, qword [r14 + 0x38]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400269ec
mov eax, dword [rsp + 0x70]
cmp rax, rbp
jl 0x1400269ec
mov qword [rbx], rsi
mov rax, qword [rsp + 0x40]
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rdi
mov byte [rbx + 0x18], 1
jmp 0x140026a2a
mov byte [rbx + 0x18], 0
test rsi, rsi
je 0x140026a2a
sub rdi, rsi
mov rax, rsi
cmp rdi, 0x1000
jb 0x140026a19
add rdi, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140026a43
mov rdx, rdi
mov rcx, rsi
call fcn.14005e4dc
jmp 0x140026a2a
mov byte [rdx + 0x18], sil
mov rax, rbx
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
call fcn.1400645e4
int3

Function at 0x140026a50
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx + 0x38]
mov rbx, r9
cmp rcx, 0xffffffffffffffff
je 0x140026a90
test r8, r8
jle 0x140026a90
xor eax, eax
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x40]
test eax, eax
mov qword [rbx], rcx
setne al
add rsp, 0x30
pop rbx
ret
xor al, al
add rsp, 0x30
pop rbx
ret

Function at 0x140026aa0
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
js 0x140026b16
mov rcx, qword [rcx + 0x38]
lea r8, [rsp + 0x38]
mov r9d, 1
mov qword [rsp + 0x38], 0
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140026b16
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call fcn.140026b30
test al, al
je 0x140026b16
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x140026b16
mov rdx, qword [rsp + 0x38]
xor r8d, r8d
mov rcx, rbx
call fcn.140026b30
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor al, al
add rsp, 0x20
pop rdi
ret
Function at 0x140026b90
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rdx]
mov rbx, r8
mov r8, qword [rdx + 8]
movabs rdx, 0x7fffffffffffffff
sub r8, rax
cmp r8, rdx
ja 0x140026bec
mov rcx, qword [rcx + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x140026bec
test r8, r8
je 0x140026bec
xor edx, edx
lea r9, [rsp + 0x48]
mov dword [rsp + 0x48], edx
mov qword [rsp + 0x20], rdx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x48]
test eax, eax
mov qword [rbx], rcx
setne al
add rsp, 0x30
pop rbx
ret
xor al, al
add rsp, 0x30
pop rbx
ret

Function at 0x140026c00
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx + 0x38]
mov rbx, r9
cmp rcx, 0xffffffffffffffff
je 0x140026c40
test r8, r8
je 0x140026c40
xor eax, eax
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x40]
test eax, eax
mov qword [rbx], rcx
setne al
add rsp, 0x30
pop rbx
ret
xor al, al
add rsp, 0x30
pop rbx
ret

Function at 0x140026ca0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r8d, ecx
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
xor eax, eax
cmp rbx, 0xffffffffffffffff
cmove rbx, rax
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140026cfa
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
mov rcx, rbx
setne dil
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, dil
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
test rbx, rbx
je 0x140026d20
xor dil, dil
cmp rbx, 0xffffffffffffffff
je 0x140026d20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, dil
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor al, al
add rsp, 0x20
pop rdi
ret