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

Disassembly:
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 0x1400c4132
call fcn.1400aea48
mov dword [rax], SafeArrayUnaccessData
call fcn.1400ae580
jmp 0x1400c4251
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400c4251
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400c4251
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400c4161
lock or dword [rcx + 0x14], 0x10
jmp 0x1400c4251
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400c4175
call fcn.1400c5764
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400c1c54
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1400c4ee0
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400c423f
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400c420a
mov rcx, rsi
call fcn.1400c1c54
cmp eax, edi
je 0x1400c41f5
mov rcx, rsi
call fcn.1400c1c54
cmp eax, 0xfffffffe
je 0x1400c41f5
mov rcx, rsi
call fcn.1400c1c54
movsxd rbx, eax
lea r14, [0x14014f450]
mov rcx, rsi
sar rbx, 6
call fcn.1400c1c54
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400c41fc
lea rdx, [0x14013a930]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400c420a
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400c422e
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400c422e
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400c422e
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 0x1400c4254
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 0x1400c457c
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.1400a7a50
sub rsp, rax
mov rax, qword [0x14013a540]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400c1c54
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400c45cb
mov rax, rbp
jmp 0x1400c46d3
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x14f450]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400c56b8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x14f450]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400c46cf
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 0x1400c46cf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400c56b8
test rax, rax
js 0x1400c46cf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400c46cf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400c46c1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400c46c1
cmp byte [rcx], 0xd
jne 0x1400c46a7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400c46b6
cmp byte [rcx + 1], 0xa
jne 0x1400c46b6
inc rcx
jmp 0x1400c46b6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x13a980]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400c4689
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400c46d3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400a7a20
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 0x1400c4a34
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, [0x14014f450]
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 0x1400c4a92
cmp word [rdx], r12w
jne 0x1400c4a92
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400c4a98
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400c4bf3
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400c4bce
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400c4ad1
mov rcx, r9
jmp 0x1400c4af4
cmp r9, rdx
jae 0x1400c4b0b
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 0x1400c4ab5
jmp 0x1400c4bf3
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 0x1400c4bc8
cmp dword [rsp + 0x80], edi
je 0x1400c4bc8
mov rdx, r14
lea r11, [0x14014f450]
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 0x1400c4ba1
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400c4b74
mov word [rbx], r12w
jmp 0x1400c4bef
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 0x1400c4b7d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400c4bef
cmp word [rsp + 0x70], r12w
jne 0x1400c4bae
cmp rbx, rsi
je 0x1400c4b6e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400c56c0
cmp word [rsp + 0x70], r12w
je 0x1400c4bf3
mov word [rbx], r13w
jmp 0x1400c4bef
lea r11, [0x14014f450]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400c4beb
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400c4bf3
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 0x1400cb580
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 0x1400cb607
mov rsi, rbx
cmp word [rax], bp
je 0x1400cb5c6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400cb5b0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400cb5ac
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400c0ab4
mov rdi, rax
test rax, rax
je 0x1400cb5f4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400d0330
mov rbp, rdi
xor ecx, ecx
call fcn.1400c0874
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 0x1400cf7c0
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.1400c56c0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400c56c0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400cf910
cmp rax, 0xffffffffffffffff
je 0x1400cf910
xor edi, edi
test rbp, rbp
jle 0x1400cf8bb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400c2054
mov rbx, rax
test rax, rax
jne 0x1400cf848
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400cf8b1
mov edx, 0x8000
mov ecx, r14d
call fcn.1400bf988
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.1400c3df0
cmp eax, 0xffffffff
je 0x1400cf891
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400cf858
mov edx, r15d
mov ecx, r14d
call fcn.1400bf988
jmp 0x1400cf8b1
cmp byte [rsi + 0x38], dil
je 0x1400cf8a8
cmp dword [rsi + 0x34], 5
jne 0x1400cf8a8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
cmp byte [rsi + 0x30], dil
je 0x1400cf8b1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400c0874
jmp 0x1400cf924
jns 0x1400cf924
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400c56c0
cmp rax, 0xffffffffffffffff
jne 0x1400cf8dc
cmp byte [rsi + 0x30], dil
je 0x1400cf924
mov edi, dword [rsi + 0x2c]
jmp 0x1400cf924
mov ecx, r14d
call fcn.1400cbbcc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400cf924
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayDestroy
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
jmp 0x1400cf924
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400cf91d
mov eax, dword [rsi + 0x2c]
jmp 0x1400cf922
mov eax, SafeArrayUnaccessData
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400c56c0
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 0x1400cfe60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400cfe88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400cfe88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14002c560
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1400d3400]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rsi, rcx
mov rdx, qword [rcx]
xor r8d, r8d
mov edx, dword [rdx + 0x98]
lea rcx, [rsp + 0x20]
call fcn.140036080
nop
cmp byte [rsp + 0x40], 0
je 0x14002c6d4
mov rsi, qword [rsi + 8]
add rsi, 0x148
mov r8d, 0xfde9
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x58]
call fcn.1400468b0
mov r8, rax
mov r9, qword [rax + 0x10]
mov rdx, rax
cmp qword [rax + 0x18], 0xf
jbe 0x14002c5da
mov rdx, qword [rax]
movabs rbx, 0xcbf29ce484222325
xor ecx, ecx
test r9, r9
je 0x14002c613
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
xor rbx, rax
imul rbx, r10
inc rcx
cmp rcx, r9
jb 0x14002c600
mov r9, rbx
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.14001dce0
mov rdi, qword [rax + 8]
test rdi, rdi
je 0x14002c69a
mov rcx, qword [rsi + 0x30]
and rcx, rbx
shl rcx, 4
mov rdx, qword [rsi + 0x18]
add rdx, rcx
mov rax, qword [rdx]
cmp qword [rdx + 8], rdi
jne 0x14002c663
cmp rax, rdi
jne 0x14002c659
mov rax, qword [rsi + 8]
mov qword [rdx], rax
mov qword [rdx + 8], rax
jmp 0x14002c66e
mov rax, qword [rdi + 8]
mov qword [rdx + 8], rax
jmp 0x14002c66e
cmp rax, rdi
jne 0x14002c66e
mov rax, qword [rdi]
mov qword [rdx], rax
mov rdx, qword [rdi]
dec qword [rsi + 0x10]
mov rax, qword [rdi + 8]
mov qword [rax], rdx
mov rax, qword [rdi + 8]
mov qword [rdx + 8], rax
lea rcx, [rdi + 0x10]
call fcn.14000b9b0
mov edx, 0x40
mov rcx, rdi
call fcn.140076970
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x14002c6d4
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002c6ce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002c707
call fcn.140076970
nop
cmp byte [rsp + 0x40], 0
je 0x14002c6e5
lea rcx, [rsp + 0x20]
call fcn.14000d790
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140076a90
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14007d1b8
nop
int3
add rcx, 8
jmp 0x14002c560
Function at 0x140030390
Capabilities:
Hash data using fnv

Disassembly:
mov rcx, qword [rcx + 8]
mov rdx, qword [rcx + 0xa0]
mov ecx, dword [rcx + 0x98]
jmp 0x1400529a0
mov rax, rsp
mov qword [rax + 0x10], rbx
mov dword [rax + 8], ecx
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0x90
movaps xmmword [rax - 0x28], xmm6
mov rdi, rdx
mov ebx, ecx
lea r14, [0x1400da050]
mov qword [rbp + 0x17], r14
mov byte [rbp + 0x1f], 0
mov rcx, r14
call fcn.140057f00
test eax, eax
jne 0x140052b61
cmp dword [0x1400da09c], 0x7fffffff
je 0x140052b6c
mov byte [rbp + 0x1f], 1
lea r8, [0x1400da010]
mov qword [rbp + 0x27], r8
movzx edx, bl
movabs rax, 0xcbf29ce484222325
xor rdx, rax
movabs rcx, 0x100000001b3
imul rdx, rcx
movzx eax, byte [rbp + 0x68]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rbp + 0x69]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rbp + 0x6a]
xor rdx, rax
imul rdx, rcx
mov rcx, qword [0x1400da040]
and rcx, rdx
shl rcx, 4
add rcx, qword [0x1400da028]
mov rax, qword [rcx + 8]
mov rdx, qword [0x1400da018]
cmp rax, rdx
je 0x140052a80
mov rcx, qword [rcx]
cmp ebx, dword [rax + 0x10]
je 0x140052a82
nop dword [rax]
cmp rax, rcx
je 0x140052a80
mov rax, qword [rax + 8]
cmp ebx, dword [rax + 0x10]
jne 0x140052a70
jmp 0x140052a82
xor eax, eax
test rax, rax
cmove rax, rdx
cmp rax, rdx
je 0x140052b21
lea rdx, [rbp + 0x67]
mov rcx, r8
call fcn.140054b50
mov dword [rbp - 0x19], 1
mov qword [rbp - 0x11], rdi
mov qword [rbp - 9], rax
movups xmm6, xmmword [rbp - 0x19]
movups xmmword [rbp - 1], xmm6
mov ecx, 0x18
call fcn.140076934
test rax, rax
je 0x140052ad4
movups xmm0, xmmword [rbp - 9]
movups xmmword [rax], xmm0
unpckhpd xmm6, xmm6
movsd qword [rax + 0x10], xmm6
mov qword [rbp + 0x77], rax
lea rcx, [rbp - 0x11]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14004c4d0]
xor edx, edx
xor ecx, ecx
call fcn.140089b3c
mov qword [rbp - 0x19], rax
test rax, rax
je 0x140052b4f
cmp dword [rbp - 0x11], 0
je 0x140052b44
movaps xmm0, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 9], xmm0
lea rcx, [rbp - 9]
call fcn.140058444
test eax, eax
jne 0x140052b44
mov rcx, r14
mov rbx, qword [rsp + 0xb8]
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x90
pop r14
pop rdi
pop rbp
jmp fcn.140057f08
mov ecx, 1
call fcn.14005817c
nop
mov dword [rbp - 0x11], 0
mov ecx, 6
call fcn.14005817c
nop
mov ecx, 5
call fcn.14005817c
int3
mov dword [0x1400da09c], 0x7ffffffe
mov ecx, 6
call fcn.14005817c
int3
Function at 0x140030a50
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1400d3400]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rsi, rcx
mov rdx, qword [rcx]
xor r8d, r8d
mov edx, dword [rdx + 0x98]
lea rcx, [rsp + 0x20]
call fcn.140036080
nop
cmp byte [rsp + 0x40], 0
je 0x14002c6d4
mov rsi, qword [rsi + 8]
add rsi, 0x148
mov r8d, 0xfde9
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x58]
call fcn.1400468b0
mov r8, rax
mov r9, qword [rax + 0x10]
mov rdx, rax
cmp qword [rax + 0x18], 0xf
jbe 0x14002c5da
mov rdx, qword [rax]
movabs rbx, 0xcbf29ce484222325
xor ecx, ecx
test r9, r9
je 0x14002c613
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
xor rbx, rax
imul rbx, r10
inc rcx
cmp rcx, r9
jb 0x14002c600
mov r9, rbx
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.14001dce0
mov rdi, qword [rax + 8]
test rdi, rdi
je 0x14002c69a
mov rcx, qword [rsi + 0x30]
and rcx, rbx
shl rcx, 4
mov rdx, qword [rsi + 0x18]
add rdx, rcx
mov rax, qword [rdx]
cmp qword [rdx + 8], rdi
jne 0x14002c663
cmp rax, rdi
jne 0x14002c659
mov rax, qword [rsi + 8]
mov qword [rdx], rax
mov qword [rdx + 8], rax
jmp 0x14002c66e
mov rax, qword [rdi + 8]
mov qword [rdx + 8], rax
jmp 0x14002c66e
cmp rax, rdi
jne 0x14002c66e
mov rax, qword [rdi]
mov qword [rdx], rax
mov rdx, qword [rdi]
dec qword [rsi + 0x10]
mov rax, qword [rdi + 8]
mov qword [rax], rdx
mov rax, qword [rdi + 8]
mov qword [rdx + 8], rax
lea rcx, [rdi + 0x10]
call fcn.14000b9b0
mov edx, 0x40
mov rcx, rdi
call fcn.140076970
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x14002c6d4
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002c6ce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002c707
call fcn.140076970
nop
cmp byte [rsp + 0x40], 0
je 0x14002c6e5
lea rcx, [rsp + 0x20]
call fcn.14000d790
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140076a90
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14007d1b8
nop
int3
add rcx, 8
jmp 0x14002c560
Function at 0x14003a110
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
movabs rbp, 0x7fffffffffffffff
movabs r14, 0x7ffffffffd050f7f
nop
mov rcx, rsi
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x14003a188
lea rcx, [rsp + 0x58]
call fcn.140037400
mov rax, qword [rsp + 0x58]
cmp rax, r14
jge 0x14003a16e
add rax, 0x2faf080
mov qword [rsp + 0x50], rax
jmp 0x14003a173
mov qword [rsp + 0x50], rbp
lea rcx, [rsp + 0x50]
call fcn.140022160
inc ebx
cmp ebx, 0xa
jl 0x14003a140
xor al, al
jmp 0x14003a1f7
mov rdx, qword [rdi + 0x10]
lea rbx, [rdi + 0x10]
mov ecx, 2
lea rdx, [rdx*2 + 2]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp qword [rdi + 0x18], 7
mov rsi, rax
jbe 0x14003a1b0
mov rdi, qword [rdi]
mov rcx, qword [rbx]
lea rbx, [rcx*2 + 2]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r8, rbx
mov rdx, rdi
mov rcx, rax
call fcn.1400a05d0
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, rsi
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14003af20
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x20
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x14003af44
xor eax, eax
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
je 0x14003afd2
mov rdi, r15
mov qword [rsp + 0x40], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x14003afa0
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x14003afa0
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.1400a05d0
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14003afbd
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14003afc5
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x14003af61
mov rbp, qword [rsp + 0x40]
sub r15, rdi
jmp 0x14003b0b0
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x14003afe9
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14003afeb
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14003b01d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.1400a05d0
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14003b0ad
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14003b058
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x14003b08e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.1400825d4
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x14003b0ad
cmp rsi, rax
ja 0x14003b061
test rsi, rsi
je 0x14003b0ad
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400825d4
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x48]
mov rax, r15
mov rdi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
Function at 0x14003c0b0
Capabilities:
Get file system object information

Disassembly:
push rbx
sub rsp, 0x300
mov rax, qword [0x1400d3400]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
xor ebx, ebx
cmp qword [rcx + 0x18], 7
jbe 0x14003c0d7
mov rcx, qword [rcx]
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x100
lea r8, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
cmovne rbx, qword [rsp + 0x30]
mov rax, rbx
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.140076a90
add rsp, 0x300
pop rbx
ret

Function at 0x14003c5a0
Capabilities:
Get graphical window text

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 r14, rdx
mov r15, rcx
xor ebx, ebx
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
add eax, 1
movsxd rdi, eax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rbx
mov esi, ebx
je 0x14003c65c
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
ja 0x14003c6dd
add rdi, rdi
je 0x14003c637
cmp rdi, 0x1000
jb 0x14003c62c
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x14003c6d1
call fcn.140076934
test rax, rax
je 0x14003c6d7
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14003c637
mov rcx, rdi
call fcn.140076934
mov rbx, rax
mov rbp, rbx
mov qword [rsp + 0x28], rbx
lea rsi, [rdi + rbx]
mov qword [rsp + 0x38], rsi
mov r8, rdi
xor edx, edx
mov rcx, rbx
call fcn.1400a0c70
mov qword [rsp + 0x30], rsi
jmp 0x14003c661
mov rbp, qword [rsp + 0x28]
sub rsi, rbx
sar rsi, 1
mov r8d, esi
mov rdx, rbp
mov rcx, qword [r15 + 8]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rdx, rbp
mov rcx, r14
call fcn.140019570
nop
test rbx, rbx
je 0x14003c6b5
lea rdx, [rsi + rsi]
cmp rdx, 0x1000
jb 0x14003c6ad
add rdx, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x14003c6d7
mov rbx, rcx
mov rcx, rbx
call fcn.140076970
mov rax, r14
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
call fcn.14000d5f0
int3
call fcn.14007d1b8
int3
call fcn.14000d840
int3
Function at 0x14004fff0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xb0
mov rax, qword [0x1400d3400]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebx, eax
je 0x14005015c
lea r10, [rsp + 0x9a]
nop word [rax + rax]
sub r10, 2
mov eax, 0xcccccccd
mul ebx
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub bx, cx
add bx, 0x30
mov word [r10], bx
mov ebx, edx
test edx, edx
jne 0x140050030
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x9a]
mov rdx, r10
lea rcx, [rsp + 0x50]
call fcn.140014830
nop
lea r8, [rsp + 0x50]
lea rdx, str.LUNA_VNR_HOOKMAN_
lea rcx, [rsp + 0x30]
call fcn.14004be90
mov rdi, rax
cmp qword [rax + 0x10], 0
jne 0x14005009c
xor r8d, r8d
jmp 0x1400500a9
mov r8, rdi
cmp qword [rax + 0x18], 7
jbe 0x1400500a9
mov r8, qword [rax]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
mov rcx, rdi
call fcn.14000b700
nop
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400500d6
mov rcx, rbx
mov rax, qword [0x1400a9ba8]
call rax
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140050114
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005010f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140050183
call fcn.140076970
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140050160
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov r8d, 0x10
lea rdx, str.already_injected
lea rcx, [rsp + 0x50]
call fcn.140014990
lea rcx, [rsp + 0x50]
call fcn.14004fda0
xor al, al
jmp 0x140050162
mov al, 1
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140076a90
mov rbx, qword [rsp + 0xc0]
add rsp, 0xb0
pop rdi
ret
call fcn.14007d1b8
int3