joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff7ed6646ec
Capabilities:
Hash data using sha512

Disassembly:
push rbx
sub rsp, 0x20
mov r8d, 0x40
lea rdx, [0x7ff7ed7daab0]
mov rbx, rcx
call fcn.7ff7ed6b67f0
xorps xmm0, xmm0
movups xmmword [rbx + 0x40], xmm0
and qword [rbx + 0xd0], 0
add rsp, 0x20
pop rbx
ret

Function at 0x7ff7ed664d58
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x7ff7ed868f18]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r12, qword [r9]
xor r14d, r14d
mov r13d, edx
mov rsi, r9
mov dword [rsp + 0x30], r8d
mov rbx, rcx
mov dword [rsp + 0x34], r13d
mov rbp, rcx
lea edi, [r14 + 4]
mov qword [rsp + 0x38], r12
mov ecx, dword [rsi + 0x24]
lea r8, [r14 + r13]
mov edx, dword [rsi + 0x20]
mov eax, dword [rsi + 0x1c]
add rdx, r8
imul rdx, rax
shr rdx, cl
mov rcx, rbp
imul edx, dword [rsi + 0x18]
sub r8d, edx
mov edx, r8d
mov r8d, 0x40
shl rdx, 6
add rdx, r12
call fcn.7ff7ed6b67f0
mov r9d, 0x40
mov dword [rsp + 0x28], 0x40
lea eax, [r14 + r13]
mov qword [rsp + 0x20], rbp
xor dword [rbp], eax
mov r8, rbp
mov ecx, 0x200
lea edx, [r9 - 0x3f]
call fcn.7ff7ed392168
inc r14
add rbp, 0x40
cmp r14, rdi
jb 0x7ff7ed664da0
xor r8d, r8d
cmp dword [rsp + 0x30], r8d
je 0x7ff7ed664f35
mov ebp, dword [rsi + 0x24]
lea r10, [rsp + 0x40]
mov r14d, dword [rsi + 0x20]
mov eax, r8d
mov r15d, dword [rsi + 0x1c]
xor r9d, r9d
mov r13d, dword [rsp + 0x34]
and eax, 0xf
mov r12, qword [rsp + 0x38]
lea r11, [rbx + rax*4]
lea eax, [r9 + r13]
xor eax, r8d
imul ecx, eax, 0x1000193
xor ecx, dword [r11]
mov edx, ecx
lea rax, [r14 + rcx]
mov rcx, rbp
imul rax, r15
shr rax, cl
imul eax, dword [rsi + 0x18]
sub edx, eax
mov ecx, edx
shl rcx, 6
add rcx, r12
mov qword [r10], rcx
prefetcht0 byte [rcx]
inc r9d
lea r11, [r11 + 0x40]
lea r10, [r10 + 8]
cmp r9d, edi
jb 0x7ff7ed664e42
mov rdx, qword [rsp + 0x40]
mov r10d, 0x10
mov r12d, dword [rsp + 0x30]
sub rdx, rbx
mov r9d, r10d
mov rcx, rbx
imul eax, dword [rcx], 0x1000193
xor eax, dword [rdx + rcx]
mov dword [rcx], eax
add rcx, rdi
sub r9, 1
jne 0x7ff7ed664ea0
mov rdx, qword [rsp + 0x48]
lea rcx, [rbx + 0x40]
sub rdx, rbx
mov r9, r10
imul eax, dword [rcx], 0x1000193
xor eax, dword [rdx + rcx - 0x40]
mov dword [rcx], eax
add rcx, rdi
sub r9, 1
jne 0x7ff7ed664ec3
mov rdx, qword [rsp + 0x50]
lea rcx, [rbx + 0x80]
sub rdx, rbx
mov r9, r10
imul eax, dword [rcx], 0x1000193
xor eax, dword [rdx + rcx - 0x80]
mov dword [rcx], eax
add rcx, rdi
sub r9, 1
jne 0x7ff7ed664eea
mov rdx, qword [rsp + 0x58]
lea rcx, [rbx + 0xc0]
sub rdx, rbx
mov r9, r10
imul eax, dword [rcx], 0x1000193
xor eax, dword [rdx + rcx - 0xc0]
mov dword [rcx], eax
add rcx, rdi
sub r9, 1
jne 0x7ff7ed664f11
inc r8d
cmp r8d, r12d
jne 0x7ff7ed664e1b
mov r9d, 0x40
mov dword [rsp + 0x28], 0x40
mov r8, rbx
mov qword [rsp + 0x20], rbx
mov ecx, 0x200
lea edx, [r9 - 0x3f]
call fcn.7ff7ed392168
add rbx, 0x40
sub rdi, 1
jne 0x7ff7ed664f35
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.7ff7ed6b54e0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x7ff7ed664f88
Capabilities:
Encode data using xor
Hash data using fnv

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, 0x30
mov r10d, dword [r9 + 0x20]
mov rbx, rcx
mov ecx, dword [r9 + 0x24]
mov ebp, r8d
mov eax, dword [r9 + 0x1c]
mov r12d, 0x40
mov r15, qword [r9]
mov r8d, r12d
mov r14d, edx
mov rsi, r9
add r10, r14
imul r10, rax
shr r10, cl
mov rcx, rbx
imul r10d, dword [r9 + 0x18]
sub edx, r10d
shl rdx, 6
add rdx, r15
call fcn.7ff7ed6b67f0
xor dword [rbx], r14d
lea edx, [r12 - 0x3f]
mov r9d, r12d
mov dword [rsp + 0x28], r12d
mov r8, rbx
mov qword [rsp + 0x20], rbx
mov ecx, 0x200
call fcn.7ff7ed392168
xor r10d, r10d
test ebp, ebp
je 0x7ff7ed665079
mov ecx, dword [rsi + 0x24]
mov edx, r10d
and edx, 0xf
mov eax, r10d
xor eax, r14d
mov edi, 0x10
imul r8d, eax, 0x1000193
mov eax, dword [rsi + 0x1c]
xor r8d, dword [rbx + rdx*4]
mov edx, dword [rsi + 0x20]
add rdx, r8
imul rdx, rax
shr rdx, cl
imul edx, dword [rsi + 0x18]
sub r8d, edx
mov r11d, r8d
mov r8, rbx
shl r11, 6
add r11, r15
sub r11, rbx
imul eax, dword [r8], 0x1000193
xor eax, dword [r11 + r8]
mov dword [r8], eax
lea r8, [r8 + 4]
sub rdi, 1
jne 0x7ff7ed665059
inc r10d
cmp r10d, ebp
jne 0x7ff7ed665013
mov dword [rsp + 0x28], r12d
mov r9d, r12d
mov r8, rbx
mov qword [rsp + 0x20], rbx
mov edx, 1
mov ecx, 0x200
call fcn.7ff7ed392168
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x7ff7ed6650b8
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0x80
mov rax, qword [0x7ff7ed868f18]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rdx
mov rsi, rcx
test dl, 0x3f
je 0x7ff7ed6650e7
xor al, al
jmp 0x7ff7ed665204
mov r15d, 0x40
shr rbx, 6
mov dword [rsp + 0x28], r15d
mov ecx, 0x200
mov qword [rsp + 0x20], rsi
lea edx, [r15 - 0x3f]
lea r9d, [r15 - 0x20]
call fcn.7ff7ed392168
lea edi, [r15 - 0x3f]
cmp ebx, edi
je 0x7ff7ed66514b
mov ecx, edi
lea r8d, [rdi - 1]
shl rcx, 6
mov r9d, r15d
add rcx, rsi
shl r8, 6
mov dword [rsp + 0x28], r15d
add r8, rsi
mov qword [rsp + 0x20], rcx
mov edx, 1
mov ecx, 0x200
call fcn.7ff7ed392168
inc edi
cmp edi, ebx
jne 0x7ff7ed665115
mov ebp, 3
xor edi, edi
test ebx, ebx
je 0x7ff7ed6651f8
xor edx, edx
mov r9d, edi
shl r9, 6
add r9, rsi
mov eax, dword [r9]
div ebx
lea eax, [rbx - 1]
mov r8d, edx
add eax, edi
xor edx, edx
shl r8, 6
div ebx
mov ecx, edx
lea rdx, [rsp + 0x30]
shl rcx, 6
sub r8, rdx
add r8, rsi
mov edx, 0x10
movups xmm0, xmmword [rcx + rsi]
movups xmm1, xmmword [rcx + rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rcx + rsi + 0x20]
movaps xmmword [rsp + 0x40], xmm1
movups xmm1, xmmword [rcx + rsi + 0x30]
lea rcx, [rsp + 0x30]
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x60], xmm1
mov eax, dword [r8 + rcx]
xor dword [rcx], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x7ff7ed6651bd
mov dword [rsp + 0x28], r15d
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r9
mov edx, 1
mov r9d, r15d
mov ecx, 0x200
call fcn.7ff7ed392168
inc edi
cmp edi, ebx
jne 0x7ff7ed66515a
sub rbp, 1
jne 0x7ff7ed665150
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.7ff7ed6b54e0
add rsp, 0x80
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x7ff7ed66859c
Capabilities:
Hash data using sha256

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rdx, [0x7ff7ed7e2cc8]
add rcx, 0x40
mov r8d, 0x20
call fcn.7ff7ed6b67f0
and qword [rbx + 0x60], 0
add rsp, 0x20
pop rbx
ret

Function at 0x7ff7ed66f794
Capabilities:
Hash data using sha512

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, r8
mov rdi, rcx
add rcx, 0x88
mov r8d, 0x40
call fcn.7ff7ed6b67f0
lea rcx, [rdi + 0xc8]
mov r8d, 0x20
mov rdx, rbx
call fcn.7ff7ed6b67f0
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov qword [rdi + 0xf0], rax
mov qword [rdi + 0xe8], rax
mov qword [rdi + 0x80], rax
add rsp, 0x20
pop rdi
ret
lea r8, [0x7ff7ed7e2eb0]
lea rdx, [0x7ff7ed7e2e60]
jmp 0x7ff7ed66f708
Function at 0x7ff7ed680a74
Capabilities:
Encode data using base64

Disassembly:
mov r9d, 0x48
jmp fcn.7ff7ed67dacc
Function at 0x7ff7ed6b46dc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x7ff7ed6b4760
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x7ff7ed8210e0]
cmp byte [rcx + rax], 0
je 0x7ff7ed6b4760
dec r8
sub rdx, 1
jne 0x7ff7ed6b4746
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.7ff7ed6b4778
mov ebx, eax
test eax, eax
jne 0x7ff7ed6b48ec
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x7ff7ed6b4948
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x7ff7ed6b493f
test al, 0x10
je 0x7ff7ed6b493f
bt eax, 0xa
jae 0x7ff7ed6b4938
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.7ff7ed6b4960
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x7ff7ed6b4934
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x7ff7ed6b4958
test edi, edi
jne 0x7ff7ed6b493f
and dword [rsp + 0x3c], 0
jmp 0x7ff7ed6b4944
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.7ff7ed6c2dfc
int3

Function at 0x7ff7ed6b6278
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x7ff7ed6b62c2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x7ff7ed6b62c2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x7ff7ed6b62c2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x7ff7ed6b62c2
cmp dword [rcx + 0x84], 0xe
jbe 0x7ff7ed6b62c2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x7ff7ed6b62c4
xor al, al
add rsp, 0x28
ret
Function at 0x7ff7ed6c6140
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x7ff7ed6c6177
call fcn.7ff7ed6bcb38
mov dword [rax], 0x16
call fcn.7ff7ed6bc774
xor eax, eax
jmp 0x7ff7ed6c6205
mov rdx, r9
mov rcx, r8
call fcn.7ff7ed6c60dc
mov rbx, rax
test rax, rax
je 0x7ff7ed6c6202
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x7ff7ed6c6008]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x7ff7ed6c61ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.7ff7ed6bcaac
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x7ff7ed6c61d6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x7ff7ed6c61e5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.7ff7ed6d8834
jmp 0x7ff7ed6c6202
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x7ff7ed6c61ff
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x7ff7ed6c7250
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x7ff7ed6c726f
call fcn.7ff7ed6d0c7c
jmp 0x7ff7ed6c7324
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x28], 0
xor edx, edx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
call fcn.7ff7ed6c34e0
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x7ff7ed6c72ba
cmp byte [rbp - 0x38], 0
je 0x7ff7ed6c72ef
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x7ff7ed6c72ef
call fcn.7ff7ed6d8c90
test eax, eax
jne 0x7ff7ed6c72db
cmp byte [rbp - 0x38], al
je 0x7ff7ed6c72d3
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x7ff7ed6c72ef
cmp byte [rbp - 0x38], 0
je 0x7ff7ed6c72ec
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
xor r9d, r9d
lea r8, [rbp + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call fcn.7ff7ed6c70d4
test eax, eax
je 0x7ff7ed6c7308
or ebx, 0xffffffff
jmp 0x7ff7ed6c7313
mov rcx, qword [rbp - 0x20]
call fcn.7ff7ed6d0c7c
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x7ff7ed6c7322
mov rcx, qword [rbp - 0x20]
call fcn.7ff7ed6d8834
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret
Function at 0x7ff7ed6c9200
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.7ff7ed6b5880
sub rsp, rax
mov rax, qword [0x7ff7ed868f18]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.7ff7ed6bcf98
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x7ff7ed6c924f
mov rax, rbp
jmp 0x7ff7ed6c9357
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x7ff7ed380000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x80e640]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.7ff7ed6d29d0
mov r13, rax
lea rax, [0x7ff7ed380000]
mov rcx, qword [rax + rbx*8 + 0x80e640]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x7ff7ed6c9353
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x7ff7ed6c9353
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.7ff7ed6d29d0
test rax, rax
js 0x7ff7ed6c9353
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x7ff7ed6c9353
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x7ff7ed6c9345
lea r8, [0x7ff7ed380000]
cmp rcx, rdx
jae 0x7ff7ed6c9345
cmp byte [rcx], 0xd
jne 0x7ff7ed6c932b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x7ff7ed6c933a
cmp byte [rcx + 1], 0xa
jne 0x7ff7ed6c933a
inc rcx
jmp 0x7ff7ed6c933a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4e9170]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x7ff7ed6c930d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x7ff7ed6c9357
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.7ff7ed6b54e0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x7ff7ed6c9e08
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x7ff7ed868f18]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x7ff7ed822888]
mov rbp, rcx
call fcn.7ff7ed6d2cd8
xor edi, edi
test rax, rax
je 0x7ff7ed6c9eee
mov ebx, edi
call fcn.7ff7ed6bcb38
mov r14d, dword [rax]
call fcn.7ff7ed6bcb38
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.7ff7ed6de3d4
mov rsi, rax
test rax, rax
je 0x7ff7ed6c9e7f
call fcn.7ff7ed6bcb38
mov dword [rax], r14d
jmp 0x7ff7ed6c9ea9
call fcn.7ff7ed6bcb38
cmp dword [rax], 0x22
jne 0x7ff7ed6c9ee6
call fcn.7ff7ed6bcb38
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.7ff7ed6de3d4
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x7ff7ed6c9ee6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x7ff7ed6c9ead
cmp rax, 3
je 0x7ff7ed6c9ec8
mov rcx, rsi
call fcn.7ff7ed6c9d64
test al, al
je 0x7ff7ed6c9ed9
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x7ff7ed6c9ed9
mov dil, 1
mov rcx, rbx
call fcn.7ff7ed6bca50
mov al, dil
jmp 0x7ff7ed6c9ef0
mov rcx, rbx
call fcn.7ff7ed6bca50
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.7ff7ed6b54e0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x7ff7ed6ca898
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x7ff7ed6ca694

Function at 0x7ff7ed6d0ca8
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x7ff7ed6d0cc8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.7ff7ed6bcaac
or eax, 0xffffffff
jmp 0x7ff7ed6d0cca
xor eax, eax
add rsp, 0x28
ret
Function at 0x7ff7ed6d10a8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x7ff7edb8e640]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x7ff7ed6d10ff
cmp word [rdx], r13w
jne 0x7ff7ed6d10ff
or byte [rax + rdi*8 + 0x38], cl
jmp 0x7ff7ed6d1104
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x7ff7ed6d1229
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x7ff7ed6d124a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x7ff7ed6d113d
mov rdx, r9
mov word [rbx], cx
jmp 0x7ff7ed6d1164
cmp r9, r8
jae 0x7ff7ed6d1174
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x7ff7ed6d111e
jmp 0x7ff7ed6d1229
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x7ff7ed6d121e
cmp dword [rsp + 0x80], esi
je 0x7ff7ed6d121e
lea r8, [0x7ff7edb8e640]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x7ff7ed6d11f6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x7ff7ed6d11c6
mov word [rbx], r13w
jmp 0x7ff7ed6d1226
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x7ff7ed6d11d3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x7ff7ed6d1226
cmp word [rsp + 0x70], r13w
jne 0x7ff7ed6d1203
cmp rbx, r14
je 0x7ff7ed6d11c0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.7ff7ed6d29d8
cmp word [rsp + 0x70], r13w
je 0x7ff7ed6d1229
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x7ff7edb8e640]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x7ff7ed6d1223
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x7ff7ed6d1229
Function at 0x7ff7ed6d9960
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x7ff7ed6d9976
mov al, 1
jmp 0x7ff7ed6d99d6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x7ff7ed6d9987
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x7ff7ed6d99d4
mov ecx, dword [rcx + 0x18]
nop
call fcn.7ff7ed6c3308
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x7ff7ed6d99d4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x7ff7ed6d99d4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x7ff7ed6d99d4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x7ff7ed6d99d6
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x7ff7ed6decc4
Capabilities:
Clear file content

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, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.7ff7ed6d29d8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.7ff7ed6d29d8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x7ff7ed6dee14
cmp rax, 0xffffffffffffffff
je 0x7ff7ed6dee14
xor edi, edi
test rbp, rbp
jle 0x7ff7ed6dedbf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.7ff7ed6d87bc
mov rbx, rax
test rax, rax
jne 0x7ff7ed6ded4c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x7ff7ed6dedb5
mov edx, 0x8000
mov ecx, r14d
call fcn.7ff7ed6c96a4
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.7ff7ed6d2460
cmp eax, 0xffffffff
je 0x7ff7ed6ded95
cdqe
sub rbp, rax
test rbp, rbp
jg 0x7ff7ed6ded5c
mov edx, r15d
mov ecx, r14d
call fcn.7ff7ed6c96a4
jmp 0x7ff7ed6dedb5
cmp byte [rsi + 0x38], dil
je 0x7ff7ed6dedac
cmp dword [rsi + 0x34], 5
jne 0x7ff7ed6dedac
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x7ff7ed6dedb5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.7ff7ed6d8834
jmp 0x7ff7ed6dee28
jns 0x7ff7ed6dee28
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.7ff7ed6d29d8
cmp rax, 0xffffffffffffffff
jne 0x7ff7ed6dede0
cmp byte [rsi + 0x30], dil
je 0x7ff7ed6dee28
mov edi, dword [rsi + 0x2c]
jmp 0x7ff7ed6dee28
mov ecx, r14d
call fcn.7ff7ed6c3308
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x7ff7ed6dee28
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x7ff7ed6dee28
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x7ff7ed6dee21
mov eax, dword [rsi + 0x2c]
jmp 0x7ff7ed6dee26
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.7ff7ed6d29d8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x7ff7ed6e0a40
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x7ff7ed6e0a70
xor eax, eax
jmp 0x7ff7ed6e0b33
mov rbp, rbx
cmp word [rax], si
je 0x7ff7ed6e0a95
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x7ff7ed6e0a7c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x7ff7ed6e0a78
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.7ff7ed6de8c8
movsxd r14, eax
test eax, eax
jne 0x7ff7ed6e0ad3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x7ff7ed6e0a69
mov rcx, r14
call fcn.7ff7ed6d9bfc
mov rdi, rax
test rax, rax
jne 0x7ff7ed6e0aec
xor ecx, ecx
call fcn.7ff7ed6d8834
jmp 0x7ff7ed6e0ac8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.7ff7ed6de8c8
test eax, eax
jne 0x7ff7ed6e0b1d
mov rcx, rdi
call fcn.7ff7ed6d8834
jmp 0x7ff7ed6e0b27
xor ecx, ecx
call fcn.7ff7ed6d8834
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x7ff7ed6e0b50
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x7ff7ed6e0bd7
mov rsi, rbx
cmp word [rax], bp
je 0x7ff7ed6e0b96
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x7ff7ed6e0b80
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x7ff7ed6e0b7c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.7ff7ed6d9bfc
mov rdi, rax
test rax, rax
je 0x7ff7ed6e0bc4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.7ff7ed6b67f0
mov rbp, rdi
xor ecx, ecx
call fcn.7ff7ed6d8834
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret