joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007eecc
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rdx, 0xcbf29ce484222325
xor r8d, r8d
movzx eax, byte [r8 + rcx]
movabs r9, 0x100000001b3
xor rdx, rax
inc r8
imul rdx, r9
cmp r8, 4
jb 0x14007eed9
mov rax, rdx
ret

Function at 0x1400869e8
Capabilities:
Encode data using xor

Disassembly:
mov r11d, 1
lea rax, vtable.._AV___Ref_count_obj2_V__mersenne_twister_engine__K_0EA__0BDI__0JM__0BP__0_EKPNJAKFFGJJOGBH__0BN__0FFFFFFFFFFFFFFFF__0BB__0HBNGHPPPONKGAAAA__0CF__0_IBBCAAAAAAAAA__0CL__0FIFBPECNEMJFHPCN__std___std__.0
mov qword [rcx], rax
lea r9, [rcx + 0x20]
mov dword [rcx + 8], r11d
movabs rax, 0x5555555555555555
mov dword [rcx + 0xc], r11d
mov r10d, VarR8Pow
mov r8d, dword [rdx]
mov edx, r11d
mov qword [rcx + 0x1398], rax
mov qword [rcx + 0x18], r8
mov rax, r8
shr rax, 0x3e
xor rax, r8
movabs r8, 0x5851f42d4c957f2d
imul r8, rax
add r8, rdx
add rdx, r11
mov qword [r9], r8
lea r9, [r9 + 8]
cmp rdx, r10
jb 0x140086a25
mov dword [rcx + 0x10], r10d
mov rax, rcx
ret

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

Disassembly:
movabs rdx, 0xcbf29ce484222325
xor r8d, r8d
movzx eax, byte [r8 + rcx]
movabs r9, 0x100000001b3
xor rdx, rax
inc r8
imul rdx, r9
cmp r8, 2
jb 0x1400aa329
mov rax, rdx
ret

Function at 0x1400bd43c
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.1400c12a4
mov cl, al
mov rdx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400bd45c

Function at 0x1400bd45c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x140370028]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, rdx
mov bpl, cl
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
xor edi, edi
call fcn.140023610
mov al, bpl
lea rdx, [rsp + 0x20]
neg al
sbb r8d, r8d
xor r9d, r9d
and r8d, 0xa
xor ecx, ecx
add r8d, 0x1c
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rdx, [0x140318ee8]
mov rcx, rsi
mov ebx, eax
call fcn.14000ece4
test ebx, ebx
jne 0x1400bd4d3
mov edi, 0x80004005
jmp 0x1400bd520
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14000ece4
mov r8d, 1
lea rdx, [0x140318e70]
mov rcx, rsi
call fcn.14000e850
test bpl, bpl
lea rax, [0x1402c3dc8]
lea rdx, str.MicrosoftOneDrive
cmovne rdx, rax
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], di
jne 0x1400bd50e
mov rcx, rsi
call fcn.14000e850
mov eax, edi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140021280
mov rbx, qword [rsp + 0x270]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret
Function at 0x14015c950
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1a8]
sub rsp, 0x2a0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x140370028]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], setsockopt
mov byte [rcx], dil
lea rdx, [0x140318ed8]
call fcn.140019b20
mov dword [rsp + 0x20], 1
xor edx, edx
mov r8d, SHFlushSFCache
lea rcx, [rbp - 0x80]
call fcn.140023610
lea rdx, [rbp - 0x80]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14015ca7b
movdqa xmm0, xmmword [0x14031af70]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], di
lea rcx, [rbp - 0x80]
call fcn.14003f150
mov r8, rax
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x58]
call fcn.14000ec7c
nop
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x38]
call fcn.14017bab8
mov rdx, rax
mov rcx, rbx
call fcn.140018904
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x14015ca5e
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14015ca59
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14015caa2
call fcn.1400212a0
movdqa xmm0, xmmword [0x14031af80]
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x38], dil
lea rcx, [rsp + 0x58]
call fcn.140007f78
mov rax, rbx
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140021280
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.14002f70c
int3

Function at 0x14015cab0
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rdi, edx
mov rbx, rcx
cmp byte [rdi + rcx], 0
jne 0x14015cacd
mov eax, 0x1505
jmp 0x14015cadd
inc edx
call fcn.14015cab0
movsx ecx, byte [rdi + rbx]
imul eax, eax, 0x21
xor eax, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x181afa058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.181afa1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x181afa089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x181afa06f
add dl, dl
jne 0x181afa096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x181afa0f6
xor eax, eax
add dl, dl
jne 0x181afa0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x181afa1ad
add dl, dl
jne 0x181afa0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x181afa0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x181afa0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x181afa0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x181afa0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x181afa07e
mov eax, 1
add dl, dl
jne 0x181afa106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x181afa113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x181afa0fb
sub eax, ebx
mov ebx, 1
jne 0x181afa14c
mov ecx, 1
add dl, dl
jne 0x181afa12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x181afa13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x181afa123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x181afa07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x181afa168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x181afa175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x181afa15d
cmp eax, 0x7d00
jae 0x181afa19b
cmp eax, 0x500
jb 0x181afa196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x181afa07e
cmp eax, 0x7f
ja 0x181afa19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x181afa07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x181afa1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x181afa07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x41eaf7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x004ea660]
jne 0x40d49a
rol rcx, 0x10
test cx, 0xffff
jne 0x40d496
repz ret
ror rcx, 0x10
jmp 0x41ea50
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x004ec860]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x004ec958]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x41ead5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x004ec860]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x41eaf7
mov rax, qword [rsp + 0x88]
mov qword [0x004ec958], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x004ec8f8], rax
mov rax, qword [0x004ec958]
mov qword [0x004ec7d0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x004ec8e0], rax
mov dword [0x004ec7c0], 0xc0000409
mov dword [0x004ec7c4], 1
mov rax, qword [0x004ea660]
mov qword [rsp + 0x68], rax
mov rax, qword [0x004ea668]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x004ec858], eax
mov ecx, 1
call fcn.00410e50
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x0047bf20]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x004ec858], 0
jne 0x41eb7e
mov ecx, 1
call fcn.00410e50
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x172e1f4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x172e1fe
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x172e227
pop rbp
sub rbp, 0x33
sub rbp, 0x132e1f4
sub rsp, 0x20
jmp 0x172e246
mov rax, 0x132e1f4
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x5ccd612e
xor byte [rax], dl
inc rax
dec rcx
jne 0x172e265
jmp 0x172e27c
cmpsw word [rsi], word [rdi]
invalid
Function at 0x28e381860
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rbx, rcx
lea rax, [rbp + 0x28]
mov ecx, 2
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
mov qword [rbp - 8], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rbp - 8]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x28e3818d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
movsxd rsi, dword [0x28e387084]
mov rbx, rcx
test esi, esi
jle 0x28e381a00
mov rax, qword [0x28e387088]
xor r9d, r9d
add rax, 0x18
nop dword [rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x28e38191b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x28e3819a3
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x28e381900
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x28e381a22
mov rax, qword [0x28e387088]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x28e387088]
lea rdx, [rbp - 0x30]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x28e381a07
mov eax, dword [rbp - 0xc]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x28e38199c
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x28e3819b0
add dword [0x28e387084], 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 2
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x28e387088]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x28e38199c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop word [rax + rax]
xor esi, esi
jmp 0x28e381928
mov rax, qword [0x28e387088]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x28e381da0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
lea r13, [0x28e3870c0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x28e3870a0]
test rbx, rbx
je 0x28e381e05
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [rbx]
call r12
mov rsi, rax
call rdi
test rsi, rsi
je 0x28e381dfc
test eax, eax
jne 0x28e381dfc
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x28e381de0
mov rcx, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x28e382040
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x28e382058
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x28e382060
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x28e382070
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x28e3820bd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x28e3820b4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x28e3820bf
add rax, 0x28
cmp rax, r9
jne 0x28e3820a0
xor eax, eax
ret

Function at 0x28e3820c0
Capabilities:
Parse pe header

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x28e382158
mov rdx, qword [0x28e384230]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x28e382146
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x28e382146
cmp word [rax + 0x18], 0x20b
jne 0x28e382146
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x28e382158
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x28e382131
add rbx, 0x28
cmp rbx, rdi
je 0x28e382158
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x28e382128
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x28e382170
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x28e384230]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x28e382190
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x28e382198
ret
cmp word [r8 + 0x18], 0x20b
jne 0x28e382190
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x28e3821ed
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x28e3821e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x28e382190
add rax, 0x28
cmp rax, r9
jne 0x28e3821d0
xor eax, eax
ret
Function at 0x28e3821f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x28e384230]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x28e38220f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x28e382218
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x28e38220f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x28e382230
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x28e384230]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x28e382250
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x28e382258
ret
cmp word [rdx + 0x18], 0x20b
jne 0x28e382250
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x28e3822a0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x28e382297
test rcx, rcx
je 0x28e382250
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x28e382288
xor eax, eax
ret

Function at 0x28e3822b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x28e384230]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x28e3822cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x28e3822d8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x28e3822f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x28e384230]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x28e382310
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x28e382318
ret
cmp word [r8 + 0x18], 0x20b
jne 0x28e382310
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x28e382310
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x28e382364
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x28e382370
add rdx, 0x28
cmp rdx, r9
jne 0x28e382350
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x28e382380
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x28e384230]
xor r8d, r8d
cmp word [r11], 0x5a4d
mov r10d, ecx
jne 0x28e3823a4
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
cmp dword [rcx], 0x4550
je 0x28e3823b0
mov rax, r8
ret
cmp word [rcx + 0x18], 0x20b
jne 0x28e3823a4
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x28e3823a4
movzx edx, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rdx, [rcx + rdx + 0x18]
test r9w, r9w
je 0x28e3823a4
lea ecx, [r9 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rdx + 0xc]
mov rcx, r8
cmp rax, r8
jb 0x28e3823fc
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x28e382410
add rdx, 0x28
cmp r9, rdx
jne 0x28e3823e8
xor r8d, r8d
mov rax, r8
ret
add rax, r11
jmp 0x28e382420
sub r10d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x28e38242e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x28e382405
test r10d, r10d
jg 0x28e382418
mov r8d, dword [rax + 0xc]
add r8, r11
mov rax, r8
ret
Function at 0x140004500
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x78
cmp dword [0x1400396f4], 0
jne 0x1400045e4
mov dword [0x1400396f4], 1
lea r8, [rsp + 0x38]
lea rdx, str.SOFTWARELogitech
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x14000458e
mov dword [rsp + 0x40], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.BsKhal
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140004583
cmp dword [rsp + 0x34], 4
jne 0x140004583
mov eax, dword [rsp + 0x30]
mov dword [0x140038010], eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x140038010]
and eax, 0x222
test eax, eax
je 0x1400045a7
mov dword [rsp + 0x44], 1
jmp 0x1400045af
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x44]
mov dword [0x140038014], eax
mov eax, dword [0x140038010]
and eax, 0x444
test eax, eax
je 0x1400045d2
mov dword [rsp + 0x48], 1
jmp 0x1400045da
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x48]
mov dword [0x140038018], eax
cmp qword [0x1400396f8], 0
jne 0x1400045fa
lea rcx, [0x140028730]
call fcn.140005af0
cmp qword [0x1400396f8], 0
je 0x140004759
cmp qword [0x140039708], 0
jne 0x140004759
cmp dword [0x140038018], 0
jne 0x140004629
mov dword [rsp + 0x4c], 0
jmp 0x140004671
lea rcx, [0x140028748]
call fcn.140005070
test eax, eax
je 0x140004661
mov r8, qword [0x140039708]
mov rdx, qword [0x1400396f8]
lea rcx, str.BsEvent_is_0x_x_and_Bsdata_is_0x_x
call fcn.140004d20
test eax, eax
je 0x140004661
mov dword [rsp + 0x50], 1
jmp 0x140004669
mov dword [rsp + 0x50], 0
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x4c], eax
lea rcx, [0x140028788]
call fcn.140006210
cmp qword [0x140039708], 0
je 0x14000473d
cmp qword [0x1400396f8], 0
jne 0x1400046e9
cmp dword [0x140038018], 0
jne 0x1400046a8
mov dword [rsp + 0x54], 0
jmp 0x1400046e2
lea rcx, [0x1400287a0]
call fcn.140005070
test eax, eax
je 0x1400046d2
lea rcx, str.Failed_to_save_PID_in_shared_memory
call fcn.140004d20
test eax, eax
je 0x1400046d2
mov dword [rsp + 0x58], 1
jmp 0x1400046da
mov dword [rsp + 0x58], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x54], eax
call fcn.140006590
jmp 0x14000473b
call fcn.140005bc0
cmp dword [0x140038018], 0
jne 0x140004701
mov dword [rsp + 0x5c], 0
jmp 0x14000473b
lea rcx, [0x1400287e0]
call fcn.140005070
test eax, eax
je 0x14000472b
lea rcx, str.Setting_BsPresent_to_TRUE
call fcn.140004d20
test eax, eax
je 0x14000472b
mov dword [rsp + 0x60], 1
jmp 0x140004733
mov dword [rsp + 0x60], 0
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x5c], eax
jmp 0x140004759
lea rcx, str.BsInitializeClient
call fcn.140005070
test eax, eax
je 0x140004759
lea rcx, str.failed_to_open_shared_memory
call fcn.140004c80
add rsp, 0x78
ret
Function at 0x140005280
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.1400050e0
mov r11, qword [rsp + 0x60]
mov qword [0x140038020], r11
mov dword [0x14003801c], 0xfffdecff
mov dword [0x1400396e4], 1
lea r8, [0x140028950]
mov edx, 0x104
lea rcx, [0x1400395e0]
call fcn.140012860
lea r8, [rsp + 0x38]
lea rdx, [0x140028960]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x14000539a
mov dword [rsp + 0x40], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14003801c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, [0x140028978]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rsp + 0x40], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400396e4]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, [0x140028988]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rsp + 0x40], 0x104
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400395e0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, [0x140028998]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x58
ret
Function at 0x1400057e0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x898
mov rax, qword [0x1400380d0]
xor rax, rsp
mov qword [rsp + 0x888], rax
mov dword [rsp + 0x300], 0
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x290]
call fcn.1400134d0
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x640]
call fcn.1400134d0
mov dword [rsp + 0x178], 0x104
mov dword [rsp + 0x50], 0
lea r8, [rsp + 0x170]
lea rdx, str.SoftwareLogitechKHAL
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x140005904
lea rax, [rsp + 0x178]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x530]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.Path
mov rcx, qword [rsp + 0x170]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140005904
lea r8, [rsp + 0x530]
mov edx, 0x104
lea rcx, [rsp + 0x310]
call fcn.140012860
lea r8, [0x140028ab0]
mov edx, 0x104
lea rcx, [rsp + 0x310]
call fcn.140012748
lea r8, [0x140028ab8]
mov edx, 0x104
lea rcx, [rsp + 0x310]
call fcn.140012748
mov rcx, qword [rsp + 0x170]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400059e5
mov qword [rsp + 0x880], 0
lea r8, [rsp + 0x880]
lea rdx, [fcn.1400057e0]
mov ecx, 6
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
mov r8d, 0x104
lea rdx, [rsp + 0x180]
mov rcx, qword [rsp + 0x880]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov qword [rsp + 0x40], 0x104
lea rax, [rsp + 0x420]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x104
xor byte [rcx + rax], al
add byte [rax], al