joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180018520
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1800b2020]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, rcx
mov qword [rsp + 0x20], rcx
lea rcx, [0x1800b5b30]
call fcn.1800183f0
mov qword [rdi + 0x18], rax
mov rcx, rax
call fcn.180036890
nop
lea rax, vtable.CAntimalwareProvider.1.0
mov qword [rdi], rax
lea rax, vtable.CAntimalwareProvider.0
mov qword [rdi + 8], rax
xor eax, eax
mov dword [rdi + 0x20], eax
mov qword [rdi + 0x28], rax
mov qword [rdi + 0x38], rax
mov qword [rdi + 0x40], 7
mov word [rdi + 0x28], ax
mov qword [rdi + 0x48], rax
mov qword [rdi + 0x58], rax
mov qword [rdi + 0x60], 7
mov word [rdi + 0x48], ax
mov qword [rdi + 0x68], rax
mov qword [rdi + 0x78], rax
mov qword [rdi + 0x80], 7
mov word [rdi + 0x68], ax
lea rcx, [rsp + 0x48]
call fcn.180030e60
nop
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x28]
call fcn.18002e720
lea rdx, [rsp + 0x28]
lea rcx, [rdi + 0x28]
call fcn.18002d3f0
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x180018625
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180018620
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800186d2
call fcn.18006080c
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
test rax, rax
je 0x180018638
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
jmp 0x18001863f
lea rax, [0x1800a5338]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x180018650
mov rdx, rax
lea rcx, [rdi + 0x48]
call fcn.180002a60
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1800186a7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800186a1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800186cc
call fcn.18006080c
nop
mov rax, rdi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800607b0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.18006e72c
nop
call fcn.18006e72c
int3
Function at 0x18002b900
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x2088
call fcn.180061590
sub rsp, rax
mov rax, qword [0x1800b2020]
xor rax, rsp
mov qword [rsp + 0x2070], rax
mov rsi, r8
lea rbx, [rsp + 0x70]
mov ebp, edx
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov r9d, edi
lea rdx, [0x1800a4fe0]
mov r8d, eax
lea rcx, [rsp + 0x40]
call fcn.18002b8a0
movzx eax, byte [rsp + 0x40]
test al, al
je 0x18002b98d
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x70]
sub rcx, rdx
nop dword [rax]
nop dword [rax + rax]
mov byte [rbx], al
inc rbx
movzx eax, byte [rcx + rbx]
test al, al
jne 0x18002b980
test rsi, rsi
je 0x18002b9ad
movzx eax, byte [rsi]
test al, al
je 0x18002b9ad
sub rsi, rbx
nop dword [rax]
mov byte [rbx], al
inc rbx
movzx eax, byte [rsi + rbx]
test al, al
jne 0x18002b9a0
mov rax, qword [rsp + 0x20d8]
lea rdi, [0x1800a5368]
test rax, rax
lea rsi, [rsp + 0x206e]
lea r15, [rsp + 0x20e0]
cmovne rdi, rax
sub rsi, rbx
mov qword [rsp + 0x20d8], rdi
call fcn.1800011a0
mov qword [rsp + 0x30], r15
mov r8, rsi
mov qword [rsp + 0x28], 0
mov rdx, rbx
mov qword [rsp + 0x20], rdi
mov rdi, 0xffffffffffffffff
mov rcx, qword [rax]
mov r9, rdi
call fcn.18006d510
test eax, eax
cmovs eax, edi
cdqe
cmp rax, rsi
cmovbe rsi, rax
mov word [rbx + rsi], 0xa
mov rax, qword [r14]
mov ebx, dword [rax]
cmp ebp, 8
jne 0x18002ba36
cmp dword [r14 + 0x10], 2
je 0x18002ba36
or ebx, 2
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.18002f5f0
mov edi, eax
test bl, 1
je 0x18002ba55
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test bl, 2
je 0x18002ba6a
mov r8d, edi
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.18002c0d0
mov rcx, qword [rsp + 0x2070]
xor rcx, rsp
call fcn.1800607b0
add rsp, 0x2088
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18002c390
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1800b2020]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rcx
mov edx, dword [0x1800b4d94]
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax + rdx*8]
mov edx, dword [rcx + rax]
cmp dword [0x1800b5c90], edx
jle 0x18002c401
lea rcx, [0x1800b5c90]
call fcn.1800609c8
cmp dword [0x1800b5c90], 0xffffffff
jne 0x18002c401
mov rax, qword [rbx + 0x20]
mov qword [0x1800b5c98], rax
lea rcx, [0x1800b5c90]
call fcn.180060968
mov rcx, qword [0x1800b5c98]
cmp rcx, 2
jl 0x18002c545
movsxd rax, dword [rbx + 0x30]
sub rax, rcx
sub rax, 1
js 0x18002c545
mov r8d, eax
lea rdx, [rsp + 0x40]
lea rcx, [rbx + 0x38]
call fcn.18002db80
mov rdi, rax
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x38]
call fcn.18002e820
nop
mov r9, rdi
mov r8, rax
lea rcx, [rsp + 0x60]
call fcn.18002d1e0
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x18002c499
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002c494
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002c56c
call fcn.18006080c
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], ax
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x18002c4f0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002c4eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002c572
call fcn.18006080c
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x18002c545
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002c540
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002c566
call fcn.18006080c
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1800607b0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rdi
ret
call fcn.18006e72c
nop
call fcn.18006e72c
nop
call fcn.18006e72c
int3
Function at 0x18002e4b0
Capabilities:
Create directory
Set file attributes

Disassembly:
test r8, r8
je 0x18002e5b7
push rbx
push rdi
sub rsp, 0x28
mov rcx, qword [rdx + 0x18]
mov rdi, r8
mov qword [rsp + 0x40], rbp
mov rbx, rdx
mov qword [rsp + 0x20], rsi
mov rax, rdx
cmp rcx, 8
jb 0x18002e4df
mov rax, qword [rdx]
mov rdx, qword [rdx + 0x10]
mov esi, 0x5c
cmp word [rax + rdx*2 - 2], si
je 0x18002e518
cmp rdx, rcx
jae 0x18002e50d
lea rax, [rdx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rcx, 8
jb 0x18002e508
mov rax, qword [rbx]
mov dword [rax + rdx*2], esi
jmp 0x18002e518
mov r9d, esi
mov rcx, rbx
call fcn.18002e310
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rdi + r8*2], 0
jne 0x18002e520
mov rdx, rdi
mov rcx, rbx
call fcn.18002e290
mov rdx, qword [rbx + 0x18]
mov rax, rbx
cmp rdx, 8
jb 0x18002e546
mov rax, qword [rbx]
mov rcx, qword [rbx + 0x10]
cmp word [rax + rcx*2 - 2], si
je 0x18002e57a
cmp rcx, rdx
jae 0x18002e56f
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 8
jb 0x18002e56a
mov rax, qword [rbx]
mov dword [rax + rcx*2], esi
jmp 0x18002e57a
mov r9d, esi
mov rcx, rbx
call fcn.18002e310
cmp qword [rbx + 0x18], 8
mov rcx, rbx
mov rsi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x40]
jb 0x18002e591
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp qword [rbx + 0x18], 8
jb 0x18002e5a3
mov rbx, qword [rbx]
mov edx, 0x2000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
add rsp, 0x28
pop rdi
pop rbx
ret
Function at 0x18002f5f0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rdx + 8]
mov rdi, rcx
test rbx, rbx
je 0x18002f69b
cmp dword [rbx], 0
je 0x18002f69b
mov edx, dword [0x1800b4d94]
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax + rdx*8]
mov edx, dword [rcx + rax]
cmp dword [0x1800b5d20], edx
jle 0x18002f669
lea rcx, [0x1800b5d20]
call fcn.1800609c8
cmp dword [0x1800b5d20], 0xffffffff
jne 0x18002f669
movzx eax, byte [rbx + 1]
lea rcx, [0x1800b5d20]
sub al, byte [rbx + 3]
sub al, byte [rbx + 2]
add al, byte [rbx]
mov byte [0x1800b5d24], al
call fcn.180060968
movzx ecx, byte [rdi]
mov rax, rdi
test cl, cl
je 0x18002f68e
movzx edx, byte [0x1800b5d24]
nop word [rax + rax]
xor cl, dl
mov byte [rax], cl
inc rax
movzx ecx, byte [rax]
test cl, cl
jne 0x18002f680
sub eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x180035caf
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x88]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x20]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x1c]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x24]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x38], rax
mov dword [rbp - 4], 0
jmp 0x180035d9d
mov eax, dword [rbp - 4]
lea rdx, [rax*4]
mov rax, qword [rbp - 0x28]
add rax, rdx
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x40]
mov rcx, rax
call fcn.180035c6e
cmp eax, dword [rbp + 0x18]
jne 0x180035d99
mov eax, dword [rbp - 4]
lea rdx, [rax + rax]
mov rax, qword [rbp - 0x38]
add rax, rdx
movzx eax, word [rax]
movzx eax, ax
lea rdx, [rax*4]
mov rax, qword [rbp - 0x30]
add rax, rdx
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
jmp 0x180035dae
add dword [rbp - 4], 1
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x18]
cmp eax, dword [rbp - 4]
ja 0x180035d37
mov eax, 0
add rsp, 0x60
pop rbp
ret

Function at 0x180035dc0
Capabilities:
Access peb ldr_data

Disassembly:
xor rax, rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
ret

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

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x1800408d6
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x1800408b9
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x1800408a4
Function at 0x180081e64
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x180081e41
call fcn.18006e304
mov dword [rax], 0x16
call fcn.18006e70c
or eax, 0xffffffff
jmp 0x180081e5e
sub dword [rcx + 0x10], 1
jns 0x180081e50
add rsp, 0x28
jmp 0x18008c744
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x180081e20
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x18008c776
call fcn.18006e304
mov dword [rax], 0x16
call fcn.18006e70c
jmp 0x18008c895
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x18008c895
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x18008c895
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x18008c7a5
lock or dword [rcx + 0x14], 0x10
jmp 0x18008c895
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x18008c7b9
call fcn.180086bfc
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.18006de08
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.18008b5c0
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x18008c883
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x18008c84e
mov rcx, rsi
call fcn.18006de08
cmp eax, edi
je 0x18008c839
mov rcx, rsi
call fcn.18006de08
cmp eax, 0xfffffffe
je 0x18008c839
mov rcx, rsi
call fcn.18006de08
movsxd rbx, eax
lea r14, [0x1800b5320]
mov rcx, rsi
sar rbx, 6
call fcn.18006de08
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x18008c840
lea rdx, [0x1800b23c0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18008c84e
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x18008c872
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x18008c872
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x18008c872
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x18008c898
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1800860e4
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 0x180086114
xor eax, eax
jmp 0x1800861d7
mov rbp, rbx
cmp word [rax], si
je 0x180086139
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180086120
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18008611c
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.1800840bc
movsxd r14, eax
test eax, eax
jne 0x180086177
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18008610d
mov rcx, r14
call fcn.18007edfc
mov rdi, rax
test rax, rax
jne 0x180086190
xor ecx, ecx
call fcn.18007e054
jmp 0x18008616c
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.1800840bc
test eax, eax
jne 0x1800861c1
mov rcx, rdi
call fcn.18007e054
jmp 0x1800861cb
xor ecx, ecx
call fcn.18007e054
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 0x1800861f4
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 0x18008627b
mov rsi, rbx
cmp word [rax], bp
je 0x18008623a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x180086224
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x180086220
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.18007edfc
mov rdi, rax
test rax, rax
je 0x180086268
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180062d30
mov rbp, rdi
xor ecx, ecx
call fcn.18007e054
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 0x18008b114
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1800b5320]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x18008b172
cmp word [rdx], r12w
jne 0x18008b172
or byte [rax + r8*8 + 0x38], cl
jmp 0x18008b178
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x18008b2d3
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x18008b2ae
lea r9, [rcx + 2]
cmp ax, r13w
je 0x18008b1b1
mov rcx, r9
jmp 0x18008b1d4
cmp r9, rdx
jae 0x18008b1eb
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x18008b195
jmp 0x18008b2d3
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18008b2a8
cmp dword [rsp + 0x80], edi
je 0x18008b2a8
mov rdx, r14
lea r11, [0x1800b5320]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x18008b281
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x18008b254
mov word [rbx], r12w
jmp 0x18008b2cf
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x18008b25d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x18008b2cf
cmp word [rsp + 0x70], r12w
jne 0x18008b28e
cmp rbx, rsi
je 0x18008b24e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.180086b58
cmp word [rsp + 0x70], r12w
je 0x18008b2d3
mov word [rbx], r13w
jmp 0x18008b2cf
lea r11, [0x1800b5320]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x18008b2cb
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x18008b2d3
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18008e8ac
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.180086b58
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180086b58
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18008e9fc
cmp rax, 0xffffffffffffffff
je 0x18008e9fc
xor edi, edi
test rbp, rbp
jle 0x18008e9a7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18007dfd4
mov rbx, rax
test rax, rax
jne 0x18008e934
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18008e99d
mov edx, 0x8000
mov ecx, r14d
call fcn.18008e734
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.180080d40
cmp eax, 0xffffffff
je 0x18008e97d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18008e944
mov edx, r15d
mov ecx, r14d
call fcn.18008e734
jmp 0x18008e99d
cmp byte [rsi + 0x38], dil
je 0x18008e994
cmp dword [rsi + 0x34], 5
jne 0x18008e994
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18008e99d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18007e054
jmp 0x18008ea10
jns 0x18008ea10
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180086b58
cmp rax, 0xffffffffffffffff
jne 0x18008e9c8
cmp byte [rsi + 0x30], dil
je 0x18008ea10
mov edi, dword [rsi + 0x2c]
jmp 0x18008ea10
mov ecx, r14d
call fcn.1800675bc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18008ea10
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 0x18008ea10
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18008ea09
mov eax, dword [rsi + 0x2c]
jmp 0x18008ea0e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180086b58
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 0x140006f20
Capabilities:
Write clipboard data

Disassembly:
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x2c], 0
mov rdi, rcx
jne 0x140006f4c
call fcn.1400072c0
test eax, eax
jne 0x140006f4c
lea rdx, [0x1400f1ab0]
mov rcx, rdi
add rsp, 0x20
pop rdi
jmp 0x140007070
mov qword [rsp + 0x38], rsi
call qword [sym.imp.USER32.DLL_EmptyClipboard]
test eax, eax
jne 0x140006f9a
cmp dword [rdi + 0x2c], eax
je 0x140006f81
xor esi, esi
cmp qword [rdi + 0x10], rsi
je 0x140006f75
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov qword [rdi + 0x10], rsi
call qword [sym.imp.USER32.DLL_CloseClipboard]
mov dword [rdi + 0x2c], esi
mov qword [rdi], rsi
lea rdx, [0x1400f1af8]
mov rcx, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140007070
mov rcx, qword [rdi + 8]
xor esi, esi
test rcx, rcx
je 0x140006fdd
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x140007011
cmp word [rax], si
mov qword [rsp + 0x30], rbx
sete bl
call qword [sym.imp.KERNEL32.DLL_GlobalUnlock]
test bl, bl
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 0x18], rsi
mov dword [rdi + 0x28], esi
je 0x140007011
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.DLL_GlobalFree]
mov qword [rdi + 8], rax
cmp dword [rdi + 0x2c], esi
je 0x140007001
cmp qword [rdi + 0x10], rsi
je 0x140006ff5
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov qword [rdi + 0x10], rsi
call qword [sym.imp.USER32.DLL_CloseClipboard]
mov dword [rdi + 0x2c], esi
mov qword [rdi], rsi
mov eax, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, qword [rdi + 8]
mov ecx, SafeArrayDestroy
call qword [sym.imp.USER32.DLL_SetClipboardData]
test rax, rax
je 0x14000702b
mov qword [rdi + 8], rsi
jmp 0x140006fdd
cmp dword [rdi + 0x2c], esi
je 0x14000704f
cmp qword [rdi + 0x10], rsi
je 0x140007043
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov qword [rdi + 0x10], rsi
call qword [sym.imp.USER32.DLL_CloseClipboard]
mov dword [rdi + 0x2c], esi
mov qword [rdi], rsi
lea rdx, [0x1400f1b18]
mov rcx, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140007070
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov rbx, rcx
cmp dword [rcx + 0x2c], esi
je 0x1400070ab
cmp qword [rcx + 0x10], rsi
je 0x14000709f
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.DLL_CloseClipboard]
mov dword [rbx + 0x2c], esi
mov qword [rbx], rsi
cmp qword [rbx + 0x18], rsi
je 0x1400070c2
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov qword [rbx + 0x18], rsi
mov dword [rbx + 0x28], esi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400070d5
call qword [sym.imp.KERNEL32.DLL_GlobalFree]
mov qword [rbx + 8], rax
cmp word [rdi], si
je 0x1400070ff
lea r8, [0x1400f1524]
lea rcx, [0x14012c5c0]
mov rdx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14004e590
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret