joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004600
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000465d
lea rbx, [0x1400af080]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140004644
cmp r10, 2
jb 0x140004644
cmp byte [r9], r8b
jne 0x140004644
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140004620
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000469f
lea rbx, [0x1400af080]
cmp r8b, 0x23
jne 0x140004683
cmp byte [r9], r8b
jne 0x140004683
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140004670
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140004800
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14000481a
mov qword [r8], 0
lea rdx, [0x1400aebe8]
call fcn.1400046b0
mov rbx, rax
test rax, rax
jne 0x14000483a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140004925
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140004925
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140004925
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140004925
cmp rdi, 0xffffffffffffffff
je 0x140004925
mov rax, qword [0x14015e318]
test rax, rax
je 0x1400048b6
inc dword [rax + 0xf4]
mov rdx, qword [0x14015e308]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rsi, rax
test rax, rax
je 0x140004925
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x140004912
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14015e318]
test rax, rax
je 0x140004901
dec dword [rax + 0xf4]
mov rdx, qword [0x14015e308]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x14000492e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x140004920
mov qword [r14], rdi
mov rax, rsi
jmp 0x140004930
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140007a70
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xe8]
mov rax, qword [rcx + 0xf0]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x1400af080]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [0x14015e318]
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rcx + 0x3f00], ebx
jne 0x140007b06
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.14001b3c0
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x140007b10
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
mov rax, qword [rcx + 0xf0]
lea r9, [0x1400af080]
movss xmm2, dword [rcx + 0x108]
movss xmm3, dword [rcx + 0x10c]
movsxd rcx, dword [rcx + 0xe8]
movss xmm0, dword [rdx]
movss xmm1, dword [rdx + 4]
subss xmm0, xmm2
subss xmm1, xmm3
mov r8d, dword [rax + rcx*4 - 4]
not r8d
movzx ecx, r8b
shr r8d, 8
movss dword [rsp], xmm0
movzx eax, byte [rsp]
xor rcx, rax
movss xmm0, dword [rdx + 8]
movzx eax, byte [rsp + 1]
subss xmm0, xmm2
movss dword [rsp + 4], xmm1
movss xmm1, dword [rdx + 0xc]
xor r8d, dword [r9 + rcx*4]
subss xmm1, xmm3
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 2]
movss dword [rsp + 8], xmm0
movss dword [rsp + 0xc], xmm1
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 3]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 4]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 5]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 6]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 7]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 8]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 9]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xa]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xb]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xc]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xd]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xe]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [r9 + rcx*4]
movzx ecx, byte [rsp + 0xf]
movzx edx, r8b
shr r8d, 8
xor rdx, rcx
xor r8d, dword [r9 + rdx*4]
not r8d
mov eax, r8d
add rsp, 0x18
ret
Function at 0x1400147a0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140154f00]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x14015e318]
mov edi, ecx
cmp byte [rbx + 0x4a45], 0
jne 0x140014801
cmp byte [rbx + 0x4a46], 0
jne 0x140014801
movsx r9d, word [rbx + 0x5b52]
lea r8, str.Tooltip__02d
mov edx, sendto
lea rcx, [rsp + 0x20]
call fcn.140004450
test dil, 1
je 0x140014928
jmp 0x14001488a
movss xmm1, dword [rbx + 0x38ac]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5b52]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x14011d9d0]
mulss xmm1, dword [0x14011d9b8]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xdfc]
addss xmm1, dword [rbx + 0xe00]
mov qword [rbx + 0x47a8], rax
mov dword [rbx + 0x4794], 1
movss dword [rbx + 0x47a0], xmm0
movss dword [rbx + 0x47a4], xmm1
movss xmm0, dword [rbx + 0x3908]
mulss xmm0, dword [0x14011d8b0]
or dword [rbx + 0x4790], 0x41
movss dword [rbx + 0x47f0], xmm0
call fcn.140004450
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x1400148e0
lea r11, [0x1400af080]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x1400148c3
cmp byte [r8], r9b
jne 0x1400148c3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1400148b0
not ecx
call fcn.14000bb50
test rax, rax
je 0x140014928
cmp byte [rax + 0xae], 0
je 0x140014928
mov byte [rax + 0xb5], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xd0], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x5b52]
mov edx, sendto
movsx r9d, word [rbx + 0x5b52]
call fcn.140004450
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14000e300
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14008da00
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140019cc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c38], 0
lea rbx, [rcx + 0x5c40]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140019d67
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x140019d1a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14001c0a0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140005030
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c38]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5c48]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x14015e310]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x140019d6f
mov rcx, rbx
call fcn.140005030
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14001a210
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x14015e318]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x14001a273
mov qword [rsp], rbx
lea rbx, [0x1400af080]
nop dword [rax]
cmp r9b, 0x23
jne 0x14001a253
cmp byte [r8], r9b
jne 0x14001a253
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x14001a240
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5bb0]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x14001a2a7
mov r10, qword [r10 + 0x5bb8]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x14001a2ae
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x14001a294
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x1400433e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rbx, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x1400433fc
mov rcx, qword [rcx]
mov qword [rsp + 0x20], 2
lea r9, [0x14011cd54]
xor r8d, r8d
mov rdx, qword [rbx + 0x10]
call fcn.140057e00
cmp rax, 0xffffffffffffffff
je 0x140043578
xor edi, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x40], rdi
mov esi, 0xf
mov qword [rsp + 0x48], rsi
lea r8, [rax + 2]
cmp qword [rbx + 0x10], r8
cmovb r8, qword [rbx + 0x10]
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140043452
mov rdx, qword [rbx]
lea rcx, [rsp + 0x30]
call fcn.140056260
lea rax, [rsp + 0x30]
cmp rbx, rax
je 0x1400434b4
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14004349c
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140043497
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400434e9
mov rcx, r8
call fcn.14008da28
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rbx + 0x10], xmm1
mov byte [rsp + 0x30], 0
jmp 0x1400434b9
mov rsi, qword [rsp + 0x48]
cmp rsi, 0x10
jb 0x1400434f5
lea rdx, [rsi + 1]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400434f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400434f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008da28
mov rdx, qword [rbx + 0x10]
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140043506
mov rcx, qword [rbx]
movabs r9, 0xcbf29ce484222325
test rdx, rdx
je 0x140043533
movabs r8, 0x100000001b3
nop
movzx eax, byte [rdi + rcx]
xor r9, rax
imul r9, r8
inc rdi
cmp rdi, rdx
jb 0x140043520
mov r8, rbx
lea rdx, [rsp + 0x30]
lea rcx, [0x14015e760]
call fcn.140059250
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140043578
cmp rdx, qword [0x14015e768]
je 0x140043578
add rdx, 0x30
cmp rbx, rdx
je 0x140043578
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x140043570
mov rdx, qword [rdx]
mov rcx, rbx
call fcn.140056260
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140043590
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rbx, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x1400435ac
mov rcx, qword [rcx]
mov qword [rsp + 0x20], 2
lea r9, [0x14011cd54]
xor r8d, r8d
mov rdx, qword [rbx + 0x10]
call fcn.140057e00
cmp rax, 0xffffffffffffffff
je 0x140043728
xor edi, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x40], rdi
mov esi, 0xf
mov qword [rsp + 0x48], rsi
lea r8, [rax + 2]
cmp qword [rbx + 0x10], r8
cmovb r8, qword [rbx + 0x10]
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140043602
mov rdx, qword [rbx]
lea rcx, [rsp + 0x30]
call fcn.140056260
lea rax, [rsp + 0x30]
cmp rbx, rax
je 0x140043664
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14004364c
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140043647
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140043699
mov rcx, r8
call fcn.14008da28
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rbx + 0x10], xmm1
mov byte [rsp + 0x30], 0
jmp 0x140043669
mov rsi, qword [rsp + 0x48]
cmp rsi, 0x10
jb 0x1400436a5
lea rdx, [rsi + 1]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400436a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400436a0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008da28
mov rdx, qword [rbx + 0x10]
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400436b6
mov rcx, qword [rbx]
movabs r9, 0xcbf29ce484222325
test rdx, rdx
je 0x1400436e3
movabs r8, 0x100000001b3
nop
movzx eax, byte [rdi + rcx]
xor r9, rax
imul r9, r8
inc rdi
cmp rdi, rdx
jb 0x1400436d0
mov r8, rbx
lea rdx, [rsp + 0x30]
lea rcx, [0x14015e720]
call fcn.140059250
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140043728
cmp rdx, qword [0x14015e728]
je 0x140043728
add rdx, 0x30
cmp rbx, rdx
je 0x140043728
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x140043720
mov rdx, qword [rdx]
mov rcx, rbx
call fcn.140056260
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140047ab0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
mov eax, 0x1080
call fcn.14008fa00
sub rsp, rax
mov rax, qword [0x140154f00]
xor rax, rsp
mov qword [rsp + 0x1070], rax
mov ebx, edx
mov rdi, rcx
mov qword [rsp + 0x848], rcx
mov eax, edx
sar eax, 0x10
lea ecx, [rax*8 + 0x10]
mov rax, qword [0x14015e628]
add rax, 0xa0fa540
add rcx, rax
call fcn.140056f00
mov rcx, rax
movzx eax, bx
lea rbx, [rcx + rax*4]
movabs rax, 0xffffffff00000000
mov rcx, rbx
and rcx, rax
movabs rdx, 0xffffff8000000000
lea rax, [rcx + rdx]
movabs r8, 0xffffff7fffffffff
test r8, rax
jne 0x140047b7e
add rcx, rdx
mov rax, rbx
and eax, 0xffffff
add rax, qword [0x14015e550]
test r8, rcx
cmove rbx, rax
xor edx, edx
mov r8d, 0x808
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov eax, 0x80000131
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x850]
mov edx, 4
jmp 0x140047ba7
xor edx, edx
mov r8d, 0x808
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x30], 0x131
lea rax, [rsp + 0x848]
mov edx, dword [0x14015e508]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x808
lea r9, [rsp + 0x40]
mov r8, rbx
mov rcx, qword [0x14015e548]
call qword [sym.imp.VMM.dll_VMMDLL_MemReadEx]
lea rcx, [rsp + 0x860]
lea rdx, [rsp + 0x40]
mov r8d, 0x808
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [0x14015e518]
call fcn.140056fd0
mov qword [rsp + 0x848], rax
xor r9d, r9d
movzx r8d, r9w
movzx eax, word [rsp + 0x44]
shr ax, 1
cmp r9w, ax
jae 0x140047c40
nop word [rax + rax]
movzx edx, r8w
lea rcx, [rsp + 0x866]
add rcx, rdx
and edx, 3
xor al, byte [rsp + rdx + 0x848]
xor byte [rcx], al
inc r8w
movzx eax, word [rsp + 0x864]
shr ax, 1
cmp r8w, ax
jb 0x140047c10
mov qword [rdi], r9
mov qword [rdi + 0x10], r9
mov qword [rdi + 0x18], sendto
mov byte [rdi], 0
lea rax, [rsp + 0x866]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140047c61
lea rdx, [rsp + 0x866]
mov rcx, rdi
call fcn.140056260
mov rax, rdi
mov rcx, qword [rsp + 0x1070]
xor rcx, rsp
call fcn.14008da00
mov rbx, qword [rsp + 0x10a0]
add rsp, 0x1080
pop rdi
ret
Function at 0x140050a20
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140154f00]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x20], rcx
mov rcx, rdx
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [rax + 1]
xor ebp, ebp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], bp
movsxd rdx, ebx
lea rcx, [rsp + 0x28]
call fcn.140055d90
nop
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x40]
mov rax, qword [rsp + 0x38]
cmp r8, 8
jb 0x140050aba
mov rsi, rcx
lea rbx, [rcx + rax*2]
jmp 0x140050ac3
lea rbx, [rdx + rax*2]
lea rsi, [rsp + 0x28]
mov qword [rdi], rbp
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], sendto
mov byte [rdi], 0
mov rdx, rbx
sub rdx, rsi
sar rdx, 1
cmp rdx, 0xf
jbe 0x140050afa
mov rcx, rdi
call fcn.140059350
mov qword [rdi + 0x10], rbp
mov r8, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x20], rdi
cmp rsi, rbx
je 0x140050b5b
nop dword [rax]
nop dword [rax + rax]
movzx r9d, byte [rsi]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140050b40
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x140050b35
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140050b48
mov rcx, rdi
call fcn.1400580f0
add rsi, 2
cmp rsi, rbx
jne 0x140050b10
mov r8, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
cmp r8, 8
jb 0x140050b96
lea rdx, [r8*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050b91
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050b91
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008da28
mov rax, rdi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14008da00
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140050bc0
Capabilities:
Check for foreground window switch

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140154f00]
xor rax, rsp
mov qword [rsp + 0x60], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rdi, rax
lea rdx, str.Moonlight
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
mov rbx, rax
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140050a20
nop
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140050a20
xor esi, esi
cmp rdi, rbx
je 0x140050cf7
nop
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x140050c68
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050c63
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140050d36
call fcn.14008da28
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], sendto
mov byte [rsp + 0x20], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140050cb8
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050cb3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140050d89
call fcn.14008da28
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rdi, rax
lea rdx, str.Moonlight
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
mov rbx, rax
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140050a20
nop
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140050a20
cmp rdi, rbx
jne 0x140050c20
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x140050d42
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050d3d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050d3d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008da28
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], sendto
mov byte [rsp + 0x20], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140050d95
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050d90
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050d90
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008da28
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14008da00
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400549b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x1400549e7
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140054a08
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140054a0a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140054a63
test ecx, ecx
jle 0x140054a43
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140054a63
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140054a63
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140054a90
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140054ab2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140054ac8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140054ae4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140054ae6
xor ecx, ecx
mov qword [rsp + 0x20], rdi
movsxd rax, ecx
test ecx, ecx
je 0x140054b20
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
sub rbx, rdi
add r14, rdi
mov r8, rbx
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140054bc7
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x140054b5b
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140054ba1
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x140054be0
cmp rbx, rax
ja 0x140054b70
mov r8, rdi
test rdi, rdi
je 0x140054bc7
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rdi
sub r8, rax
sub rbp, r8
mov rdi, qword [rsp + 0x20]
mov rax, rbp
mov rbx, qword [rsp + 0x28]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rbx
jmp 0x140054bca