joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d5f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x850
mov rax, qword [0x1400bb4a8]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rdi, rdx
lea r9, [rsp + 0x30]
xor ebp, ebp
lea rdx, [rsp + 0x34]
mov rsi, rcx
mov qword [rsp + 0x20], rbp
mov rcx, rdi
lea r8d, [rbp + 2]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000d76f
cmp dword [rsp + 0x30], 2
jne 0x14000d76f
cmp word [rsp + 0x34], 1
je 0x14000d65e
lea eax, [rbp + 2]
jmp 0x14000d774
cmp eax, 1
jne 0x14000d74b
mov r14d, 0x3fe
nop dword [rax]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rbp
mov r8d, 4
lea rdx, [rsp + 0x34]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x14000d74b
test eax, eax
je 0x14000d76f
cmp ecx, 4
jne 0x14000d76f
movzx ecx, word [rsp + 0x36]
test cl, 1
jne 0x14000d768
movzx ebx, cx
shr bx, 1
lea eax, [rbx - 2]
cmp ax, r14w
ja 0x14000d768
mov r8d, ecx
mov qword [rsp + 0x20], rbp
mov rcx, rdi
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000d76f
movzx eax, word [rsp + 0x36]
cmp dword [rsp + 0x30], eax
jne 0x14000d76f
movzx eax, bx
cmp word [rsp + rax*2 + 0x3e], bp
jne 0x14000d76f
mov rcx, qword [rsi + 0x808]
lea rdx, [rsp + 0x40]
call fcn.14003ad48
test eax, eax
je 0x14000d75b
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rbp
mov r8d, 8
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000d76f
cmp dword [rsp + 0x30], 8
jne 0x14000d76f
cmp eax, 1
je 0x14000d670
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call fcn.14000aba0
jmp 0x14000d774
mov rdx, rdi
mov rcx, rsi
call fcn.14000d860
jmp 0x14000d774
mov eax, 0xb
jmp 0x14000d774
mov eax, 8
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.140028460
lea r11, [rsp + 0x850]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14000d860
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
lea rcx, [rsp + 0x68]
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [rsp + 0x68]
lea r9, [rsp + 0x60]
mov dword [rsp + 0x30], eax
lea rdx, [rsp + 0x30]
mov eax, dword [rsp + 0x6c]
mov edi, 8
xor esi, esi
mov dword [rsp + 0x34], eax
mov r8d, edi
mov qword [rsp + 0x20], rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000d8ba
cmp dword [rsp + 0x60], edi
cmove edi, esi
mov rbx, qword [rsp + 0x50]
mov eax, edi
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400135f0
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x840
mov rax, qword [0x1400bb4a8]
xor rax, rsp
mov qword [rsp + 0x830], rax
test byte [rcx + 0x50], 0x20
mov rbx, rcx
jne 0x14000b941
call fcn.14000b2c0
test eax, eax
jne 0x14000ba60
lea rax, str.nvdrssel.bin
add rbx, 0x58
mov r9, rbx
mov qword [rsp + 0x20], rax
lea r8, str._s_s
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.14000da20
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rax, str.nvdrswr.lk
mov r9, rbx
lea r8, str._s_s
mov qword [rsp + 0x20], rax
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.14000da20
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rax, str.update.bin
mov r9, rbx
lea r8, str._s_s
mov qword [rsp + 0x20], rax
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.14000da20
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r9, rbx
mov qword [rsp + 0x20], 0
lea r8, str._s_nvdrsdb_d.bin
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.14000da20
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r9, rbx
mov dword [rsp + 0x20], 1
lea r8, str._s_nvdrsdb_d.bin
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.14000da20
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rax, str.nvAppTimestamps
mov r9, rbx
lea r8, str._s_s
mov qword [rsp + 0x20], rax
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.14000da20
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov rcx, qword [rsp + 0x830]
xor rcx, rsp
call fcn.140028460
add rsp, 0x840
pop rbx
ret
add rcx, 0x838
jmp 0x14000b910
Function at 0x140015280
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov r12, rdx
mov rsi, rcx
mov edi, 0x32f54a96
mov eax, dword [rdx + 8]
test eax, eax
je 0x1400152e5
mov r9, qword [rdx]
mov r10d, eax
nop dword [rax]
nop word [rax + rax]
movzx eax, word [r9]
imul ecx, eax, 0xc5
imul eax, edi, 0x34c3
add ecx, eax
mov eax, edi
shr eax, 2
mov edi, ecx
xor edi, eax
lea r9, [r9 + 2]
sub r10, 1
jne 0x1400152c0
mov ecx, dword [rsi + 8]
mov r14d, 1
mov eax, r14d
shl eax, cl
dec eax
mov dword [rsp + 0xa0], eax
mov ebx, eax
and ebx, edi
and ebx, 0x3fffffff
mov dword [rsp + 0xb8], ebx
nop dword [rax]
mov rdx, r12
lea rcx, [rsp + 0x30]
call fcn.140027380
mov r13, rax
mov qword [rsp + 0x20], rax
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140027380
mov rbp, rax
mov qword [rsp + 0x28], rax
mov r15d, ebx
shl r15, 5
mov rdx, qword [rsi]
add rdx, r15
mov eax, dword [rdx]
test al, 1
jne 0x1400153ac
test al, 2
je 0x140015354
dec dword [rsi + 0x10]
or dword [rdx], 1
mov rax, qword [rsi]
and dword [r15 + rax], 0xfffffffd
mov rdx, qword [rsi]
lea eax, [rdi*4]
mov ecx, eax
xor ecx, dword [rdx + r15]
and ecx, 3
xor ecx, eax
mov dword [rdx + r15], ecx
mov rcx, qword [rsi]
add rcx, 8
add rcx, r15
mov rdx, rbp
call fcn.1400275b0
mov rcx, qword [rsi]
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax]
mov dword [r15 + rcx + 0x18], eax
inc dword [rsi + 0xc]
mov rcx, rbp
call fcn.140027e00
nop
xor ebp, ebp
jmp 0x1400153e9
add rdx, 8
mov rcx, rbp
call fcn.140027820
test al, al
je 0x1400153db
mov rcx, qword [rsi]
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax]
mov dword [r15 + rcx + 0x18], eax
mov rcx, rbp
call fcn.140027e00
nop
xor ebp, ebp
jmp 0x1400153e9
mov rcx, rbp
call fcn.140027e00
nop
mov ebp, 2
mov rcx, r13
call fcn.140027e00
nop
cmp ebp, 2
jne 0x14001544d
add ebx, r14d
and ebx, dword [rsp + 0xa0]
inc r14d
cmp ebx, dword [rsp + 0xb8]
jne 0x140015310
mov ecx, dword [rsi + 0x14]
lea eax, [rcx + 1]
mov dword [rsi + 0x14], eax
cmp ecx, 4
jbe 0x140015440
mov rcx, rsi
call fcn.140021e80
test al, al
jne 0x140015439
mov rcx, r12
call fcn.140027e00
nop
lea eax, [rbp - 3]
jmp 0x140015462
mov dword [rsi + 0x14], 0
mov rcx, r12
call fcn.140027e00
nop
xor eax, eax
jmp 0x140015462
mov edi, 0xffffffff
test ebp, ebp
cmove edi, ebx
mov rcx, r12
call fcn.140027e00
nop
mov eax, edi
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140015480
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov r15, rdx
mov r14, rcx
mov r9d, 0x32f54a96
mov eax, dword [rdx + 8]
test eax, eax
je 0x1400154dc
mov r10, qword [rdx]
mov r11d, eax
movzx eax, word [r10]
imul ecx, eax, 0xc5
imul eax, r9d, 0x34c3
add ecx, eax
mov eax, r9d
shr eax, 2
mov r9d, ecx
xor r9d, eax
lea r10, [r10 + 2]
sub r11, 1
jne 0x1400154b3
mov ecx, dword [r14 + 8]
mov r13d, 1
shl r13d, cl
dec r13d
mov ebx, r13d
and ebx, r9d
and ebx, 0x3fffffff
mov dword [rsp + 0xa0], ebx
mov esi, 1
nop dword [rax]
nop dword [rax + rax]
mov rdx, r15
lea rcx, [rsp + 0x28]
call fcn.140027380
mov rbp, rax
mov qword [rsp + 0xb8], rax
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140027380
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r12d, ebx
shl r12, 5
mov rcx, qword [r14]
test byte [r12 + rcx], 2
jne 0x140015597
lea rdx, [rcx + 8]
add rdx, r12
mov rcx, rax
call fcn.140027820
test al, al
je 0x140015597
mov rcx, qword [r14]
test byte [rcx + r12], 1
je 0x140015587
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax]
mov dword [rcx + r12 + 0x18], eax
mov rcx, rdi
call fcn.140027e00
nop
xor edi, edi
jmp 0x1400155a5
mov rcx, rdi
call fcn.140027e00
nop
mov edi, 1
jmp 0x1400155a5
mov rcx, rdi
call fcn.140027e00
nop
mov edi, 2
mov rcx, rbp
call fcn.140027e00
nop
cmp edi, 2
jne 0x140015606
add ebx, esi
and ebx, r13d
inc esi
cmp ebx, dword [rsp + 0xa0]
jne 0x140015510
mov ecx, dword [r14 + 0x14]
lea eax, [rcx + 1]
mov dword [r14 + 0x14], eax
cmp ecx, 4
jbe 0x1400155f9
mov rcx, r14
call fcn.140021e80
test al, al
jne 0x1400155f1
mov rcx, r15
call fcn.140027e00
nop
lea eax, [rdi - 3]
jmp 0x14001561b
mov dword [r14 + 0x14], 0
mov rcx, r15
call fcn.140027e00
nop
xor eax, eax
jmp 0x14001561b
mov esi, 0xffffffff
test edi, edi
cmove esi, ebx
mov rcx, r15
call fcn.140027e00
nop
mov eax, esi
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140015630
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r14, rdx
mov r15, rcx
mov r8d, 0x32f54a96
mov eax, dword [rdx + 8]
test eax, eax
je 0x14001568b
mov r9, qword [rdx]
mov r10d, eax
movzx eax, word [r9]
imul ecx, eax, 0xc5
imul eax, r8d, 0x34c3
add ecx, eax
mov eax, r8d
shr eax, 2
mov r8d, ecx
xor r8d, eax
lea r9, [r9 + 2]
sub r10, 1
jne 0x140015662
mov ecx, dword [r15 + 8]
mov r12d, 1
shl r12d, cl
dec r12d
mov ebx, r12d
and ebx, r8d
and ebx, 0x3fffffff
mov r13d, ebx
mov esi, 1
nop
mov rdx, r14
lea rcx, [rsp + 0x20]
call fcn.140027380
mov rbp, rax
mov qword [rsp + 0x80], rax
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140027380
mov rdi, rax
mov qword [rsp + 0x98], rax
mov edx, ebx
shl rdx, 5
add rdx, qword [r15]
mov eax, dword [rdx]
test al, 3
jne 0x1400156ff
mov rcx, rdi
call fcn.140027e00
nop
mov edi, 1
jmp 0x14001572e
test al, 1
je 0x140015720
add rdx, 8
mov rcx, rdi
call fcn.140027820
test al, al
je 0x140015720
mov rcx, rdi
call fcn.140027e00
nop
xor edi, edi
jmp 0x14001572e
mov rcx, rdi
call fcn.140027e00
nop
mov edi, 2
mov rcx, rbp
call fcn.140027e00
nop
cmp edi, 2
jne 0x14001578b
add ebx, esi
and ebx, r12d
inc esi
cmp ebx, r13d
jne 0x1400156b0
mov ecx, dword [r15 + 0x14]
lea eax, [rcx + 1]
mov dword [r15 + 0x14], eax
cmp ecx, 4
jbe 0x14001577e
mov rcx, r15
call fcn.140021e80
test al, al
jne 0x140015776
mov rcx, r14
call fcn.140027e00
nop
lea eax, [rdi - 3]
jmp 0x1400157a0
mov dword [r15 + 0x14], 0
mov rcx, r14
call fcn.140027e00
nop
xor eax, eax
jmp 0x1400157a0
mov esi, 0xffffffff
test edi, edi
cmove esi, ebx
mov rcx, r14
call fcn.140027e00
nop
mov eax, esi
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001d0f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov r11, qword [rcx + 8]
mov rdi, rdx
mov rsi, rcx
test r11, r11
je 0x14001d1c0
mov eax, dword [rdx + 8]
mov r9d, 0x811c9dc5
test eax, eax
je 0x14001d13d
mov r8, qword [rdx]
mov r10d, eax
movzx eax, word [r8]
lea r8, [r8 + 2]
xor rax, r9
imul r9, rax, 0x1000193
sub r10, 1
jne 0x14001d125
imul rax, r9, 0x2001
mov ebx, 1
mov rcx, rax
shr rcx, 7
xor rcx, rax
lea rdx, [rcx + rcx*8]
mov ecx, dword [rsi + 0x20]
shl rbx, cl
mov rax, rdx
shr rax, 0x11
dec rbx
xor rax, rdx
imul rax, rax, 0x21
and rbx, rax
mov rbx, qword [r11 + rbx*8]
test rbx, rbx
je 0x14001d1c0
mov rdx, rdi
mov rcx, rbx
call fcn.140027820
test al, al
jne 0x14001d1ad
nop dword [rax]
mov eax, dword [rbx + 0x18]
shr eax, 0x1f
test al, al
jne 0x14001d1c0
mov rbx, qword [rbx + 0x28]
mov rdx, rdi
mov rcx, rbx
call fcn.140027820
test al, al
je 0x14001d190
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
lea rax, [rsi + 0x18]
mov rsi, qword [rsp + 0x38]
or rax, 1
add rsp, 0x20
pop rdi
ret
Function at 0x1400299d4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140029a1e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140029a1e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140029a1e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140029a1e
cmp dword [rcx + 0x84], 0xe
jbe 0x140029a1e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140029a20
xor al, al
add rsp, 0x28
ret
Function at 0x140088324
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 0x140088354
xor eax, eax
jmp 0x140088417
mov rbp, rbx
cmp word [rax], si
je 0x140088379
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140088360
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14008835c
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.1400881a4
movsxd r14, eax
test eax, eax
jne 0x1400883b7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14008834d
mov rcx, r14
call fcn.14007a77c
mov rdi, rax
test rax, rax
jne 0x1400883d0
xor ecx, ecx
call fcn.14007a740
jmp 0x1400883ac
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.1400881a4
test eax, eax
jne 0x140088401
mov rcx, rdi
call fcn.14007a740
jmp 0x14008840b
xor ecx, ecx
call fcn.14007a740
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 0x140088434
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 0x1400884bb
mov rsi, rbx
cmp word [rax], bp
je 0x14008847a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140088464
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140088460
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14007a77c
mov rdi, rax
test rax, rax
je 0x1400884a8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002b970
mov rbp, rdi
xor ecx, ecx
call fcn.14007a740
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
Function at 0x14008f680
Capabilities:
Get file size

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

Function at 0x140093d30
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, [0x1400bd440]
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 0x140093d87
cmp word [rdx], r13w
jne 0x140093d87
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140093d8c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140093eb1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140093ed2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140093dc5
mov rdx, r9
mov word [rbx], cx
jmp 0x140093dec
cmp r9, r8
jae 0x140093dfc
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 0x140093da6
jmp 0x140093eb1
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 0x140093ea6
cmp dword [rsp + 0x80], esi
je 0x140093ea6
lea r8, [0x1400bd440]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140093e7e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140093e4e
mov word [rbx], r13w
jmp 0x140093eae
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 0x140093e5b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140093eae
cmp word [rsp + 0x70], r13w
jne 0x140093e8b
cmp rbx, r14
je 0x140093e48
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400939f4
cmp word [rsp + 0x70], r13w
je 0x140093eb1
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, [0x1400bd440]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140093eab
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140093eb1
Function at 0x140096bd8
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.1400939f4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400939f4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140096d28
cmp rax, 0xffffffffffffffff
je 0x140096d28
xor edi, edi
test rbp, rbp
jle 0x140096cd3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14007c38c
mov rbx, rax
test rax, rax
jne 0x140096c60
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140096cc9
mov edx, 0x8000
mov ecx, r14d
call fcn.140073de8
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.140082bd8
cmp eax, 0xffffffff
je 0x140096ca9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140096c70
mov edx, r15d
mov ecx, r14d
call fcn.140073de8
jmp 0x140096cc9
cmp byte [rsi + 0x38], dil
je 0x140096cc0
cmp dword [rsi + 0x34], 5
jne 0x140096cc0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140096cc9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14007a740
jmp 0x140096d3c
jns 0x140096d3c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400939f4
cmp rax, 0xffffffffffffffff
jne 0x140096cf4
cmp byte [rsi + 0x30], dil
je 0x140096d3c
mov edi, dword [rsi + 0x2c]
jmp 0x140096d3c
mov ecx, r14d
call fcn.1400897cc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140096d3c
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 0x140096d3c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140096d35
mov eax, dword [rsi + 0x2c]
jmp 0x140096d3a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400939f4
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 0x140006ba4
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
call qword [sym.imp.USER32.dll_OpenClipboard]
xor ebx, ebx
test eax, eax
je 0x140006c4f
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x140006c49
mov edi, dword [rsi + 8]
lea rcx, [rsp + 0x40]
mov rbp, qword [rsi]
inc edi
add rdi, rdi
mov qword [rsp + 0x40], rbx
mov r8, rdi
mov edx, 0x2002
call fcn.14000b2c4
test al, al
je 0x140006c3f
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140006c3f
mov r8, rdi
mov rdx, rbp
mov rcx, rax
call fcn.14006b630
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, qword [rsp + 0x40]
lea ecx, [rbx + 0xd]
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x140006c3f
mov qword [rsp + 0x40], rbx
mov bl, 1
lea rcx, [rsp + 0x40]
call fcn.14000b2ec
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbp, qword [rsp + 0x38]
mov al, bl
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14000735c
Capabilities:
Create directory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov rsi, rcx
call fcn.14000acc8
mov r14d, eax
xor edi, edi
lea ebx, [rdi + 1]
cmp eax, ebx
je 0x1400073bf
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1400073a5
mov al, bl
jmp 0x1400074a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140007457
test r14d, r14d
je 0x140007457
lea rcx, [rbp - 0x29]
call fcn.1400029b0
nop
cmp r14d, ebx
setne r8b
lea rdx, [rbp - 0x29]
mov rcx, rsi
call fcn.14000a7ec
test al, al
je 0x14000744e
xor edx, edx
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140007440
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140007402
mov bl, dil
jmp 0x140007440
lea rcx, [rbp - 0x19]
call fcn.140008084
lea rcx, [rbp + 0xf]
call fcn.1400029b0
nop
xor r8d, r8d
mov rdx, qword [rbp - 0x29]
lea rcx, [rbp - 0x19]
call fcn.140008360
test al, al
jne 0x14000742e
mov bl, dil
jmp 0x140007436
mov eax, dword [rbp + 7]
shr eax, 4
and bl, al
mov rcx, qword [rbp + 0xf]
call fcn.14005bd4c
nop
mov rcx, qword [rbp - 0x29]
call fcn.14005bd4c
jmp 0x14000739e
mov rcx, qword [rbp - 0x29]
call fcn.14005bd4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140007468
xor al, al
jmp 0x1400074a3
lea rcx, [rbp + 0x1f]
call fcn.140008084
lea rcx, [rbp + 0x47]
call fcn.1400029b0
nop
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp + 0x1f]
call fcn.140008360
test al, al
je 0x140007497
mov edi, dword [rbp + 0x3f]
shr edi, 4
and dil, bl
mov rcx, qword [rbp + 0x47]
call fcn.14005bd4c
mov al, dil
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret