joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7fffb6d823c8
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x10
mov rax, qword gs:[0x60]
mov r14d, ecx
xor ebp, ebp
mov rdx, qword [rax + 0x18]
mov r11, qword [rdx + 0x10]
jmp 0x7fffb6d824ab
movups xmm0, xmmword [r11 + 0x58]
movsxd rax, dword [r9 + 0x3c]
mov r11, qword [r11]
movdqu xmmword [rsp], xmm0
mov r8d, dword [rax + r9 + 0x88]
test r8d, r8d
je 0x7fffb6d824ab
mov rax, qword [rsp]
xor r10d, r10d
shr rax, 0x10
movzx ecx, ax
test ecx, ecx
je 0x7fffb6d82453
mov rax, qword [rsp + 8]
mov edx, ecx
movsx ecx, byte [rax]
ror r10d, 0xd
cmp byte [rax], 0x61
jl 0x7fffb6d82447
add r10d, 0xffffffe0
add r10d, ecx
inc rax
sub rdx, 1
jne 0x7fffb6d82437
lea rbx, [r9 + r8]
xor esi, esi
mov edi, dword [rbx + 0x20]
add rdi, r9
cmp dword [rbx + 0x18], esi
jbe 0x7fffb6d824ab
mov r8d, dword [rdi]
lea rdi, [rdi + 4]
add r8, r9
xor edx, edx
movsx ecx, byte [r8]
inc r8
ror edx, 0xd
add edx, ecx
test cl, cl
jne 0x7fffb6d82470
lea eax, [rdx + r10]
cmp eax, r14d
jne 0x7fffb6d824a4
mov edx, dword [rbx + 0x24]
lea eax, [rsi + rsi]
mov ecx, dword [rbx + 0x1c]
add rax, r9
add rcx, r9
movzx r8d, word [rdx + rax]
mov ebp, dword [rcx + r8*4]
add rbp, r9
inc esi
cmp esi, dword [rbx + 0x18]
jb 0x7fffb6d82464
mov r9, qword [r11 + 0x30]
test r9, r9
jne 0x7fffb6d823fc
mov rbx, qword [rsp + 0x20]
mov rax, rbp
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x10
pop r14
ret

Function at 0x7fffb6d824d8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov r8, rcx
test rcx, rcx
je 0x7fffb6d82503
mov eax, dword [r8 + 8]
xor ecx, ecx
test eax, eax
je 0x7fffb6d82503
xor r9d, r9d
cmp eax, edx
je 0x7fffb6d8250a
inc r9
inc ecx
lea rax, [r9 + r9*2]
mov eax, dword [r8 + rax*8 + 8]
test eax, eax
jne 0x7fffb6d824ed
mov ecx, edx
jmp fcn.7fffb6d823c8
movsxd rax, ecx
lea rcx, [rax + rax*2]
lea rax, [r8 + 0xc]
lea rax, [rax + rcx*8]
ret
Function at 0x7fffb6d877c8
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
xor edi, edi
mov rcx, qword [rcx]
test rcx, rcx
je 0x7fffb6d877ef
xor edx, edx
call qword [sym.imp.cryptsp.dll_CryptReleaseContext]
and qword [rsi], rdi
cmp dword [rsi + 0x10], edi
je 0x7fffb6d87856
mov rdx, qword [rsi + 8]
lea r8, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
mov r9d, 0x18
mov dword [rsp + 0x20], 0x30
lea rcx, [rsp + 0x40]
call qword [sym.imp.cryptsp.dll_CryptAcquireContextW]
test eax, eax
jne 0x7fffb6d87842
call qword [sym.imp.KernelBase.dll_GetLastError]
test eax, eax
jne 0x7fffb6d8782d
mov edi, 0x80004005
jmp 0x7fffb6d8783b
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
call fcn.7fffb6d8b038
mov ecx, edi
call fcn.7fffb6d8b1d8
test edi, edi
jns 0x7fffb6d87856
mov ecx, edi
call fcn.7fffb6d8b038
jmp 0x7fffb6d87880
mov rbx, qword [rsi + 8]
test rbx, rbx
je 0x7fffb6d87880
call qword [sym.imp.KernelBase.dll_GetProcessHeap]
lea r8, [rbx - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor ecx, ecx
call fcn.7fffb6d8b1d8
and qword [rsi + 8], 0
mov ecx, edi
call fcn.7fffb6d8b1d8
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x7fffb6d8c9a8
Capabilities:
Create directory

Disassembly:
mov rax, rsp
mov byte [rax + 0x18], r8b
push rbx
push rsi
push r12
push r14
push r15
sub rsp, 0x60
mov qword [rax - 0x48], 0xfffffffffffffffe
mov r12, rdx
mov r14, rcx
and qword [rsp + 0x38], 0
and qword [rax + 0x20], 0
and qword [rax + 8], 0
mov rbx, qword [rcx + 0x58]
mov qword [rax - 0x58], rbx
mov rcx, rbx
call qword [sym.imp.kernel32.dll_EnterCriticalSection]
nop
mov eax, 2
lea r15d, [rax + 0x12]
mul r15
lea rcx, [r15 - 0x15]
cmovo rax, rcx
mov rcx, rax
call fcn.7fffb6d812a8
mov rsi, rax
mov qword [rsp + 0xa8], rax
mov r9d, dword [r14 + 0x40]
inc r9d
lea r8, str.Predecessor._d
mov edx, r15d
mov rcx, rax
call fcn.7fffb6d96b98
mov r15d, eax
test eax, eax
jns 0x7fffb6d8ca69
mov rcx, rbx
call qword [sym.imp.kernel32.dll_LeaveCriticalSection]
and qword [rsp + 0x30], 0
and qword [rsp + 0x90], 0
and qword [rsp + 0xa8], 0
test rsi, rsi
je 0x7fffb6d8ca61
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov eax, r15d
jmp 0x7fffb6d8cbc4
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [r14 + 0x38]
call fcn.7fffb6d976d4
mov r15, rax
mov qword [rsp + 0x90], rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.KernelBase.dll_CreateDirectoryW]
test eax, eax
jne 0x7fffb6d8caf2
call qword [sym.imp.KernelBase.dll_GetLastError]
movzx r14d, ax
or r14d, 0x80070000
test eax, eax
cmovle r14d, eax
mov rcx, rbx
call qword [sym.imp.kernel32.dll_LeaveCriticalSection]
and qword [rsp + 0x30], 0
and qword [rsp + 0x90], 0
test r15, r15
je 0x7fffb6d8cad3
mov rcx, r15
call qword [sym.imp.msvcrt.dll_free]
nop
and qword [rsp + 0xa8], 0
test rsi, rsi
je 0x7fffb6d8caea
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov eax, r14d
jmp 0x7fffb6d8cbc4
mov ecx, 0x180
call fcn.7fffb6d812a8
mov qword [rsp + 0x48], rax
test rax, rax
je 0x7fffb6d8cb29
mov ecx, dword [r14 + 0x40]
inc ecx
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], ecx
mov r9, qword [r14 + 0x38]
mov r8, r15
mov rdx, r14
mov rcx, rax
call fcn.7fffb6d8cbd8
nop
mov qword [rsp + 0x38], rax
lock inc dword [rax]
mov qword [r14 + 0x160], rax
mov qword [r12], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.kernel32.dll_LeaveCriticalSection]
and qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x90]
and qword [rsp + 0x90], 0
test rcx, rcx
je 0x7fffb6d8cb6a
call qword [sym.imp.msvcrt.dll_free]
nop
mov rcx, qword [rsp + 0xa8]
and qword [rsp + 0xa8], 0
test rcx, rcx
je 0x7fffb6d8cb86
call qword [sym.imp.msvcrt.dll_free]
xor eax, eax
jmp 0x7fffb6d8cbc4
add rsp, 0x60
pop r15
pop r14
pop r12
pop rsi
pop rbx
ret
Function at 0x7fffb6d9762c
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x58], rsi
mov rsi, rcx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KernelBase.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
je 0x7fffb6d976bc
mov eax, 2
mul rdi
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.7fffb6d812a8
mov rbx, rax
mov qword [rsp + 0x50], rax
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KernelBase.dll_GetEnvironmentVariableW]
cmp eax, edi
jb 0x7fffb6d976b7
mov r9d, 0x8007007a
mov r8d, 0x2071a
lea rcx, [rsp + 0x48]
call fcn.7fffb6d81278
lea rdx, [0x7fffb6df49d0]
lea rcx, [rsp + 0x48]
call sub.msvcrt.dll__CxxThrowException
nop
mov rax, rbx
jmp 0x7fffb6d976be
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x7fffb6d97b94
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ebx, 5
mov edx, 0x100
mov rcx, rdi
dec ebx
call qword [sym.imp.KernelBase.dll_SetFileAttributesW]
test eax, eax
jne 0x7fffb6d97be3
call qword [sym.imp.KernelBase.dll_GetLastError]
mov ecx, eax
cmp eax, 2
jb 0x7fffb6d97be3
cmp eax, 3
jbe 0x7fffb6d97c32
cmp eax, 5
je 0x7fffb6d97bd6
cmp eax, 0x20
jne 0x7fffb6d97be3
test ebx, ebx
jne 0x7fffb6d97c0b
test eax, eax
je 0x7fffb6d97c2b
movzx eax, cx
jmp 0x7fffb6d97c1f
mov rcx, rdi
call qword [sym.imp.KernelBase.dll_DeleteFileW]
test eax, eax
jne 0x7fffb6d97c32
call qword [sym.imp.KernelBase.dll_GetLastError]
mov ecx, eax
cmp eax, 2
jb 0x7fffb6d97c18
cmp eax, 3
jbe 0x7fffb6d97c32
cmp eax, 0x20
jne 0x7fffb6d97c18
test ebx, ebx
je 0x7fffb6d97bde
mov ecx, 0x1f4
call qword [sym.imp.KernelBase.dll_Sleep]
jmp 0x7fffb6d97ba6
test eax, eax
je 0x7fffb6d97c2b
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x7fffb6d97c34
mov eax, 0x8000ffff
jmp 0x7fffb6d97c34
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x7fffb6d97c48
Capabilities:
Check if file exists
Get file attributes
Move file

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 rsi, rdx
mov r15, rcx
mov ebx, 0x8000ffff
mov edi, 5
xor r14b, r14b
mov bpl, 1
dec edi
test bpl, bpl
je 0x7fffb6d97d0a
mov r8d, 1
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.KernelBase.dll_MoveFileExW]
test eax, eax
jne 0x7fffb6d97d3d
call qword [sym.imp.KernelBase.dll_GetLastError]
mov ebx, eax
cmp eax, 5
je 0x7fffb6d97d1d
cmp eax, 0x20
jne 0x7fffb6d97d34
test r14b, r14b
jne 0x7fffb6d97cf3
movzx eax, bx
lea r9, str.MoveFileExW_first_attempt_failed__source:__s__destination:__s__hr_0x_x
or eax, 0x80070000
lea r8, str.DpxMoveFileExW
test ebx, ebx
lea rcx, str.onecore_basecompressdpx_srcdpxutil.cpp
mov edx, 0x4a9
cmovle eax, ebx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r15
call fcn.7fffb6d96c18
mov r14b, 1
test edi, edi
je 0x7fffb6d97d0a
mov ecx, 0x1f4
call qword [sym.imp.KernelBase.dll_Sleep]
test edi, edi
jne 0x7fffb6d97c76
test ebx, ebx
je 0x7fffb6d97d41
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
jmp 0x7fffb6d97d46
mov rcx, rsi
call qword [sym.imp.KernelBase.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x7fffb6d97cb1
test al, 1
je 0x7fffb6d97cb1
xor bpl, bpl
jmp 0x7fffb6d97d02
test eax, eax
je 0x7fffb6d97d41
movzx eax, ax
jmp 0x7fffb6d97d11
xor eax, eax
jmp 0x7fffb6d97d46
mov eax, 0x8000ffff
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x7fffb6d97ff0
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x2a0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x7fffb6df6798]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov r14, rcx
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x7fffb6ddcff0]
call fcn.7fffb6d976d4
mov rbx, rax
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KernelBase.dll_FindFirstFileW]
mov rdi, rax
mov qword [rsp + 0x28], rax
cmp rax, 0xffffffffffffffff
jne 0x7fffb6d9806a
call qword [sym.imp.KernelBase.dll_GetLastError]
lea ecx, [rax - 2]
cmp ecx, 1
ja 0x7fffb6d980de
xor ebp, ebp
jmp 0x7fffb6d980ec
mov rcx, rbx
xor ebx, ebx
mov qword [rsp + 0x30], rbx
test rcx, rcx
je 0x7fffb6d9807f
call qword [sym.imp.msvcrt.dll_free]
xor ebp, ebp
test byte [rsp + 0x40], 0x10
jne 0x7fffb6d980bd
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x6c]
mov rcx, r14
call fcn.7fffb6d976d4
mov rsi, rax
mov rcx, rax
call fcn.7fffb6d97b94
test eax, eax
jns 0x7fffb6d980af
test ebp, ebp
cmove ebp, eax
test rsi, rsi
je 0x7fffb6d980bd
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KernelBase.dll_FindNextFileW]
test eax, eax
jne 0x7fffb6d98081
call qword [sym.imp.KernelBase.dll_GetLastError]
cmp eax, 0x12
je 0x7fffb6d980ec
test ebp, ebp
jne 0x7fffb6d980ec
movzx ebp, ax
or ebp, 0x80070000
test eax, eax
cmovle ebp, eax
cmp rdi, 0xffffffffffffffff
je 0x7fffb6d980fc
mov rcx, rdi
call qword [sym.imp.KernelBase.dll_FindClose]
nop
test rbx, rbx
je 0x7fffb6d9810a
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
mov eax, ebp
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.7fffb6dcff80
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x7fffb6d983bc
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov esi, edx
mov rbx, rcx
jne 0x7fffb6d98429
mov edi, 0x18
mov dword [rsp + 0x20], 0xf0000000
mov r9d, edi
xor r8d, r8d
xor edx, edx
call qword [sym.imp.cryptsp.dll_CryptAcquireContextA]
test eax, eax
jne 0x7fffb6d98426
call qword [sym.imp.KernelBase.dll_GetLastError]
mov ecx, eax
cmp eax, 0x80090017
jne 0x7fffb6d98460
mov edi, 1
mov dword [rsp + 0x20], 0xf0000000
mov r9d, edi
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.cryptsp.dll_CryptAcquireContextA]
test eax, eax
je 0x7fffb6d98459
mov dword [rbx + 0x10], edi
lea rdi, [rbx + 8]
mov rcx, qword [rdi]
test rcx, rcx
je 0x7fffb6d9843f
call qword [sym.imp.cryptsp.dll_CryptDestroyHash]
and qword [rdi], 0
mov rcx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov edx, esi
call qword [sym.imp.cryptsp.dll_CryptCreateHash]
test eax, eax
jne 0x7fffb6d9846f
call fcn.7fffb6d96f60
jmp 0x7fffb6d98471
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x7fffb6d98471
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x7fffb6d98488
Capabilities:
Hash data via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
xor edi, edi
mov rbx, r8
mov rbp, rdx
mov r14, rcx
test r8, r8
je 0x7fffb6d984de
mov rcx, qword [r14 + 8]
lea rdx, [rdi + rbp]
mov esi, 0x10000000
cmp rbx, rsi
cmovb esi, ebx
xor r9d, r9d
mov r8d, esi
call qword [sym.imp.cryptsp.dll_CryptHashData]
test eax, eax
je 0x7fffb6d984fb
mov eax, esi
add rdi, rax
sub rbx, rax
jne 0x7fffb6d984b1
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
call fcn.7fffb6d96f60
jmp 0x7fffb6d984e0

Function at 0x7fffb6d9855c
Capabilities:
Get file size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
or qword [r9], 0xffffffffffffffff
mov r14, r9
mov rdi, qword [rsp + 0x80]
mov r12d, edx
mov rbp, rcx
test rdi, rdi
je 0x7fffb6d98597
and qword [rdi], 0
mov r15d, 5
call fcn.7fffb6d97408
mov rbx, rax
mov rcx, rax
jmp 0x7fffb6d985d1
add r15d, 0xffffffff
je 0x7fffb6d98667
call qword [sym.imp.KernelBase.dll_GetLastError]
cmp eax, 0x20
jne 0x7fffb6d98667
mov ecx, 0x1f4
call qword [sym.imp.KernelBase.dll_Sleep]
mov rcx, rbx
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x8000000
mov r8d, r12d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KernelBase.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x7fffb6d985aa
test rdi, rdi
je 0x7fffb6d98633
and qword [rdi], 0
lea rdx, [rsp + 0x80]
and qword [rsp + 0x80], 0
mov rcx, rax
call qword [sym.imp.KernelBase.dll_GetFileSizeEx]
test eax, eax
je 0x7fffb6d98698
mov rax, qword [rsp + 0x80]
mov qword [rdi], rax
mov qword [r14], rsi
xor edi, edi
test rbx, rbx
je 0x7fffb6d98646
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
call fcn.7fffb6d96f60
mov dword [rsp + 0x28], eax
lea r9, str.CreateFileW_failed__FileName:_s__Error:0x_x
lea r8, str.DpxOpenFileForReadW
mov qword [rsp + 0x20], rbp
mov edx, 0x80a
lea rcx, str.onecore_basecompressdpx_srcdpxutil.cpp
mov edi, eax
call fcn.7fffb6d96d30
jmp 0x7fffb6d98638
call fcn.7fffb6d96f60
mov edi, eax
test eax, eax
jns 0x7fffb6d98633
mov dword [rsp + 0x28], eax
lea r9, str.CreateFileW_failed__FileName:_s__Error:0x_x
lea r8, str.DpxOpenFileForReadW
mov qword [rsp + 0x20], rbp
mov edx, 0x7e3
lea rcx, str.onecore_basecompressdpx_srcdpxutil.cpp
call fcn.7fffb6d96d30
mov rcx, rsi
call qword [sym.imp.KernelBase.dll_CloseHandle]
jmp 0x7fffb6d98638
Function at 0x7fffb6d986e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
xor ebx, ebx
mov rdi, r9
mov r12, r8
mov r14, rdx
mov r13, rcx
mov rbp, rdx
test rdx, rdx
je 0x7fffb6d98760
mov esi, 0x40000
lea rdx, [r15 + r12]
cmp rbp, rsi
lea r9, [rsp + 0x68]
mov rcx, r13
cmovb esi, ebp
and dword [rsp + 0x68], 0
and qword [rsp + 0x20], 0
mov r8d, esi
call qword [sym.imp.KernelBase.dll_ReadFile]
test eax, eax
je 0x7fffb6d98789
mov eax, dword [rsp + 0x68]
add rbx, rax
cmp rbx, r14
ja 0x7fffb6d98782
cmp dword [rsp + 0x68], esi
jne 0x7fffb6d98760
mov eax, esi
add r15, rax
sub rbp, rax
jne 0x7fffb6d98715
mov qword [rdi], rbx
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, 0x8000ffff
jmp 0x7fffb6d98765
mov qword [rdi], rbx
call fcn.7fffb6d96f60
jmp 0x7fffb6d98765

Function at 0x7fffb6d98800
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r15
sub rsp, 0x20
lea r9, [rax + 0x20]
lea r8, [rax + 0x18]
call fcn.7fffb6d976d4
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KernelBase.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x7fffb6d9885c
test al, 0x10
je 0x7fffb6d9885c
xor esi, esi
mov edi, esi
test rbx, rbx
je 0x7fffb6d98847
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
mov rdi, qword [rsp + 0x50]
xor esi, esi
mov rbp, qword [rsp + 0x58]
add rbp, rdi
cmp rdi, rbp
ja 0x7fffb6d98837
lea r15d, [rsi + 0x5c]
cmp word [rbx + rdi*2], r15w
je 0x7fffb6d98881
cmp word [rbx + rdi*2], si
jne 0x7fffb6d988cb
mov rcx, rbx
mov word [rbx + rdi*2], si
call qword [sym.imp.KernelBase.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x7fffb6d988bd
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KernelBase.dll_CreateDirectoryW]
test eax, eax
jne 0x7fffb6d988c1
call qword [sym.imp.KernelBase.dll_GetLastError]
cmp eax, 0xb7
jne 0x7fffb6d988d9
mov rcx, rbx
call qword [sym.imp.KernelBase.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x7fffb6d988e5
test al, 0x10
je 0x7fffb6d988e5
cmp rdi, rbp
jae 0x7fffb6d988cb
mov word [rbx + rdi*2], r15w
inc rdi
cmp rdi, rbp
ja 0x7fffb6d98837
jmp 0x7fffb6d98874
call fcn.7fffb6d96f60
mov edi, eax
jmp 0x7fffb6d98839
mov edi, 0x80070052
jmp 0x7fffb6d98839
Function at 0x7fffb6d98cb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x98
mov rax, qword [0x7fffb6df6798]
xor rax, rsp
mov qword [rbp + 0xf], rax
xor edi, edi
mov rsi, r9
mov dword [rbp - 0x51], edi
mov r15, r8
mov r14, rdx
cmp ecx, 0x20
jne 0x7fffb6d98d38
mov r8, qword [rbp + 0x7f]
or edx, 0xffffffff
test r8, r8
je 0x7fffb6d98d16
movzx ecx, byte [rsi]
lea r9, [0x7fffb6dddcd0]
movzx eax, dl
inc rsi
xor rcx, rax
mov eax, edx
shr eax, 8
mov edx, dword [r9 + rcx*4]
xor edx, eax
sub r8, 1
jne 0x7fffb6d98cf2
not edx
mov edi, 4
mov eax, edx
mov byte [rbp - 0x2e], dl
shr eax, 8
mov byte [rbp - 0x2f], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [rbp - 0x31], dl
mov byte [rbp - 0x30], al
jmp 0x7fffb6d98d9f
mov eax, ecx
and eax, 0xe000
cmp eax, 0x8000
jne 0x7fffb6d98d96
and qword [rbp - 0x49], rdi
mov edx, ecx
and qword [rbp - 0x41], rdi
lea rcx, [rbp - 0x49]
call fcn.7fffb6d983bc
mov ebx, eax
test eax, eax
js 0x7fffb6d98d8b
mov r8, qword [rbp + 0x7f]
lea rcx, [rbp - 0x49]
mov rdx, rsi
call fcn.7fffb6d98488
mov ebx, eax
test eax, eax
js 0x7fffb6d98d8b
lea r9, [rbp - 0x51]
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x49]
call fcn.7fffb6d98508
mov edi, dword [rbp - 0x51]
mov ebx, eax
lea rcx, [rbp - 0x49]
call fcn.7fffb6d9837c
jmp 0x7fffb6d98d9b
mov ebx, 0x80070057
test ebx, ebx
js 0x7fffb6d98dd3
mov ebx, edi
lea rcx, [rbp - 0x31]
cmp r15, rbx
mov rdx, r14
cmovb rbx, r15
mov r8, rbx
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x7fffb6d98dbf
xor ebx, ebx
jmp 0x7fffb6d98dd3
mov r8, rbx
lea rdx, [rbp - 0x31]
mov rcx, r14
call fcn.7fffb6d98e84
mov ebx, 0x80091007
mov eax, ebx
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.7fffb6dcff80
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x7fffb6da9d50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
cmp qword [rcx + 0x10], 0xffffffffffffffff
mov r14, r8
mov rbx, rdx
mov rbp, rcx
je 0x7fffb6da9dcc
xor esi, esi
test rdx, rdx
je 0x7fffb6da9db9
mov rcx, qword [rbp + 0x10]
lea rdx, [rsi + r14]
mov edi, 0x40000
lea r9, [rsp + 0x50]
cmp rbx, rdi
cmovb edi, ebx
and dword [rsp + 0x50], 0
and qword [rsp + 0x20], 0
mov r8d, edi
call qword [sym.imp.KernelBase.dll_WriteFile]
test eax, eax
je 0x7fffb6da9e1c
cmp dword [rsp + 0x50], edi
jne 0x7fffb6da9df4
mov eax, edi
add rsi, rax
sub rbx, rax
jne 0x7fffb6da9d79
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
mov r9d, 0x80070006
lea rcx, [rsp + 0x50]
mov r8d, 0x2060f
call fcn.7fffb6d81278
lea rdx, [0x7fffb6df49d0]
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll__CxxThrowException
int3
mov r9d, 0x8000ffff
lea rcx, [rsp + 0x68]
mov r8d, 0x2060d
call fcn.7fffb6d81278
lea rdx, [0x7fffb6df49d0]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll__CxxThrowException
int3
call fcn.7fffb6d96f60
mov r9d, eax
lea rcx, [rsp + 0x68]
mov r8d, 0x2060e
call fcn.7fffb6d81278
lea rdx, [0x7fffb6df49d0]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x7fffb6da9e50
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x7fffb6da9ea1
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KernelBase.dll_SetFilePointerEx]
test eax, eax
je 0x7fffb6da9ec9
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KernelBase.dll_SetEndOfFile]
test eax, eax
je 0x7fffb6da9ef3
mov rcx, qword [rbx + 0x10]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KernelBase.dll_SetFilePointerEx]
test eax, eax
je 0x7fffb6da9f1d
add rsp, 0x20
pop rbx
ret
mov r9d, 0x80070006
lea rcx, [rsp + 0x30]
mov r8d, 0x20609
call fcn.7fffb6d81278
lea rdx, [0x7fffb6df49d0]
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll__CxxThrowException
int3
call fcn.7fffb6d96f60
mov r9d, eax
lea rcx, [rsp + 0x30]
mov r8d, 0x2060b
call fcn.7fffb6d81278
lea rdx, [0x7fffb6df49d0]
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll__CxxThrowException
int3
call fcn.7fffb6d96f60
mov r9d, eax
lea rcx, [rsp + 0x30]
mov r8d, 0x2060a
call fcn.7fffb6d81278
lea rdx, [0x7fffb6df49d0]
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll__CxxThrowException
int3
call fcn.7fffb6d96f60
mov r9d, eax
lea rcx, [rsp + 0x30]
mov r8d, 0x2060b
call fcn.7fffb6d81278
lea rdx, [0x7fffb6df49d0]
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x7fffb6daa2b0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
cmp qword [rcx + 0x10], 0xffffffffffffffff
je 0x7fffb6daa322
xor edx, edx
call fcn.7fffb6da9e50
nop
jmp 0x7fffb6daa2dc
lea rax, [rbx + 0x20]
lea rcx, [rbx + 0x18]
cmp qword [rax], 0
cmovne rcx, rax
mov rcx, qword [rcx]
call qword [sym.imp.KernelBase.dll_DeleteFileW]
test eax, eax
jne 0x7fffb6daa30d
call fcn.7fffb6d96f60
mov r8d, eax
mov edx, 0x20608
mov cl, 4
call fcn.7fffb6dc60a0
mov rcx, qword [rbx + 0x10]
or qword [rbx + 0x10], 0xffffffffffffffff
cmp rcx, 0xffffffffffffffff
je 0x7fffb6daa322
call qword [sym.imp.KernelBase.dll_CloseHandle]
add rsp, 0x30
pop rbx
ret