joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ca5a4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400a6e90
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400ca62e
cmp byte [rbp - 0x21], r15b
je 0x1400ca629
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400ca664
call fcn.1400c1254
test eax, eax
jne 0x1400ca650
cmp byte [rbp - 0x21], r15b
je 0x1400ca648
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400ca664
cmp byte [rbp - 0x21], r15b
je 0x1400ca661
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400ac49c
test eax, eax
jne 0x1400ca704
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400a6e90
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400ca6a3
cmp byte [rbp - 0x21], r15b
je 0x1400ca6d8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400ca6d8
call fcn.1400c1254
test eax, eax
jne 0x1400ca6c4
cmp byte [rbp - 0x21], r15b
je 0x1400ca6bd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400ca6d8
cmp byte [rbp - 0x21], r15b
je 0x1400ca6d5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400ac49c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400ca704
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400ca707
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400ca715
mov rcx, rdi
call fcn.140043f30
cmp byte [rbp + 0x3f], r15b
je 0x1400ca724
mov rcx, qword [rbp + 0x27]
call fcn.140043f30
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400cbc78
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400cbc8e
mov al, 1
jmp 0x1400cbcee
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400cbc9f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400cbcec
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400b0abc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400cbcec
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400cbcec
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400cbcec
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400cbcee
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400d8150
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x258
mov rax, qword [0x14019b038]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov sil, 1
cmp qword [0x1401ae038], 0
je 0x1400d8194
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14009e1b0
mov eax, esi
add rsp, 0x258
pop rdi
pop rsi
ret
mov rcx, qword [0x1401ae010]
test rcx, rcx
je 0x1400d8232
test byte [0x14019e6b8], 1
je 0x1400d8178
cmp byte [rcx + 0x17], 0
jns 0x1400d81b6
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1401ae038], rax
inc rax
cmp rax, 1
ja 0x1400d8178
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400a02f0
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x1400d8310
xor esi, esi
jmp 0x1400d8178
mov ecx, 0x18
call fcn.14009cb00
mov rsi, rax
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400a02f0
xor ecx, ecx
mov rdx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x14016b5d0]
movups xmmword [rsi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsi + 0x10], rax
mov rcx, rsi
mov rdx, rdi
call fcn.140056e20
movzx ecx, byte [rsi + 0x17]
test cl, cl
mov rax, qword [rsi]
mov r8, qword [rsi + 8]
mov r9, rcx
cmovs r9, r8
mov r10, rsi
cmovs r10, rax
test r9, r9
jne 0x1400d82cd
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rsi
call fcn.140033254
mov qword [0x1401ae010], 0
jmp 0x1400d822b
add r9, r9
test r9, r9
je 0x1400d82a8
lea rdx, [r9 - 2]
cmp word [r10 + r9 - 2], 0x5c
mov r9, rdx
jne 0x1400d82d0
cmp rdx, 0xfffffffffffffffe
je 0x1400d82a8
sar rdx, 1
lea r9, [rdx + 1]
test cl, cl
jns 0x1400d83e5
cmp r8, rdx
jbe 0x1400d840d
mov qword [rsi + 8], r9
mov word [rax + rdx*2 + 2], 0
jmp 0x1400d82a8
mov rcx, qword [0x1401ae010]
lea rdx, [rsp + 0x40]
call fcn.14005da5e
mov rcx, qword [0x1401ae010]
movzx eax, byte [rcx + 0x17]
test al, al
jns 0x1400d83d8
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400d83fa
mov rdx, qword [rcx]
cmp word [rdx + rax*2 - 2], 0x5c
je 0x1400d8365
lea rdx, [0x1401732cc]
mov r8d, 1
call fcn.140033254
mov rcx, qword [0x1401ae010]
lea rdx, str.debug.log
mov r8d, 9
call fcn.140033254
mov rcx, qword [0x1401ae010]
cmp byte [rcx + 0x17], 0
jns 0x1400d8387
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1401ae038], rax
inc rax
cmp rax, 1
ja 0x1400d8178
mov qword [0x1401ae038], 0
jmp 0x1400d822b
test rax, rax
je 0x1400d83fa
mov rdx, rcx
jmp 0x1400d8344
cmp rdx, rcx
jae 0x1400d840d
and r9b, 0x7f
mov byte [rsi + 0x17], r9b
mov rax, rsi
jmp 0x1400d8307
lea rcx, [0x14016ec29]
lea rdx, str....._third_partylibc_srcinclude_string:1339:_assertion__empty___failed:_string::back__:_string_is_empty_n
call fcn.1400e350c
mov rcx, rsi
call fcn.1400e0666
int3
Function at 0x1400d8940
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
lea rax, [0x14016da00]
mov qword [rcx], rax
call fcn.1400d8970
mov rcx, rsi
add rsp, 0x20
pop rsi
jmp fcn.14003f800

Function at 0x1400dba10
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rcx, rcx
je 0x1400dba87
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x14019e918], rax
jne 0x1400dba8a
mov rsi, rcx
call fcn.140050da0
mov edx, 0x568
mov rcx, rax
xor r8d, r8d
call fcn.1400185e0
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.140085160
mov ecx, dword [0x1401af7bc]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1401aace0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x168], rdi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
int3
int3
Function at 0x1400e35dd
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r9
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov ecx, 2
call sym.elevation_service.exe_OQS_CPU_has_extension
mov rcx, r14
mov rdx, rbx
mov r8, rdi
mov r9, rsi
test eax, eax
je 0x1400e361a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x1400eb35b
nop
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x1400e3bcd
sub rsp, 0x28
mov rax, r8
mov r8, rdx
mov rdx, rcx
shr r8, 4
mov dword [rsp + 0x20], 0xe
mov rcx, r9
mov r9, rax
call fcn.1400e3a9a
nop
add rsp, 0x28
ret
cmp rdx, 0x10
jb 0x1400eb3f1
shr rdx, 4
xor eax, eax
vmovdqa xmm0, xmmword [r8]
vpxor xmm0, xmm0, xmmword [rcx + rax]
vaesenc xmm0, xmm0, xmmword [r8 + 0x10]
vaesenc xmm0, xmm0, xmmword [r8 + 0x20]
vaesenc xmm0, xmm0, xmmword [r8 + 0x30]
vaesenc xmm0, xmm0, xmmword [r8 + 0x40]
vaesenc xmm0, xmm0, xmmword [r8 + 0x50]
vaesenc xmm0, xmm0, xmmword [r8 + 0x60]
vaesenc xmm0, xmm0, xmmword [r8 + 0x70]
vaesenc xmm0, xmm0, xmmword [r8 + 0x80]
vaesenc xmm0, xmm0, xmmword [r8 + 0x90]
vaesenc xmm0, xmm0, xmmword [r8 + 0xa0]
vaesenc xmm0, xmm0, xmmword [r8 + 0xb0]
vaesenc xmm0, xmm0, xmmword [r8 + 0xc0]
vaesenc xmm0, xmm0, xmmword [r8 + 0xd0]
vaesenclast xmm0, xmm0, xmmword [r8 + 0xe0]
vmovdqu xmmword [r9 + rax], xmm0
add rax, 0x10
dec rdx
jne 0x1400eb36b
ret
Function at 0x1400e4770
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x1400e479a
xor eax, eax
xor r9d, r9d
mov r10b, byte [rdx + rax]
xor r10b, byte [rcx + rax]
or r9b, r10b
inc rax
cmp r8, rax
jne 0x1400e477a
movzx eax, r9b
neg eax
shr eax, 8
and eax, 1
ret
xor eax, eax
jmp 0x1400e4791

Function at 0x1400e4990
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x58
mov rax, qword [0x14019b038]
xor rax, rsp
mov qword [rsp + 0x50], rax
vmovups ymm0, ymmword [rcx]
vmovups ymm1, ymmword [rcx + 0x10]
vmovups ymmword [rsp + 0x30], ymm1
vmovups ymmword [rsp + 0x20], ymm0
test rdx, rdx
jne 0x1400e49fb
vxorps xmm0, xmm0, xmm0
vmovups ymmword [0x1401ac3d0], ymm0
vmovups ymmword [0x1401ac3c0], ymm0
lea rcx, [rsp + 0x20]
vzeroupper
call fcn.1400e4a0f
mov dword [0x1401ac3f0], 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14009e1b0
nop
add rsp, 0x58
ret
xor eax, eax
mov cl, byte [rdx + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp rax, 0x30
jne 0x1400e49fd
jmp 0x1400e49bd

Function at 0x1400e4a0f
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
mov rsi, rcx
mov rax, qword [0x14019b038]
xor rax, rsp
mov qword [rsp + 0x60], rax
vpbroadcastb ymm0, byte [0x140170c99]
vmovdqu ymmword [rsp + 0x40], ymm0
vmovdqu ymmword [rsp + 0x30], ymm0
xor r12d, r12d
lea rdi, [0x1401ac3c0]
lea rbx, [rsp + 0x28]
lea r14, [0x1401ac3e0]
jmp 0x1400e4aad
inc cl
mov byte [rax + rdi + 0x20], cl
mov rax, r12
shl rax, 4
lea r15, [rsp + rax]
add r15, 0x30
mov qword [rsp + 0x28], 0
mov rcx, rdi
mov rdx, rbx
vzeroupper
call fcn.1400e350f
mov edx, 0x10
mov rcx, r14
mov r8, rdi
mov r9, r15
call fcn.1400e3574
mov rcx, qword [rsp + 0x28]
call fcn.1400e3546
inc r12
cmp r12, 3
je 0x1400e4ac9
mov eax, 0xf
mov eax, eax
mov cl, byte [rax + rdi + 0x20]
cmp cl, 0xff
jne 0x1400e4a5b
mov byte [rax + rdi + 0x20], 0
add eax, 0xffffffff
jb 0x1400e4ab2
jmp 0x1400e4a61
test rsi, rsi
je 0x1400e4ae0
xor eax, eax
mov cl, byte [rsi + rax]
xor byte [rsp + rax + 0x30], cl
inc rax
cmp rax, 0x30
jne 0x1400e4ad0
vmovups ymm0, ymmword [rsp + 0x30]
vmovups ymmword [0x1401ac3c0], ymm0
vmovaps xmm0, xmmword [rsp + 0x50]
vmovups xmmword [0x1401ac3e0], xmm0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
vzeroupper
call fcn.14009e1b0
nop
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x1400ec991
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x1400ec9b7
xor r9d, r9d
xor eax, eax
mov r10b, byte [rdx + rax]
xor r10b, byte [rcx + rax]
or r9b, r10b
inc rax
cmp r8, rax
jne 0x1400ec99b
xor eax, eax
test r9b, r9b
setne al
ret
xor eax, eax
ret

Function at 0x1400ec9ba
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x1400ec9e1
neg r9b
xor eax, eax
mov r10b, byte [rcx + rax]
mov r11b, byte [rdx + rax]
xor r11b, r10b
and r11b, r9b
xor r11b, r10b
mov byte [rcx + rax], r11b
inc rax
cmp r8, rax
jne 0x1400ec9c4
ret
Function at 0x14010fd30
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x14019b038]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x14010fda1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x14010fdab
mov dil, 1
test bl, bl
je 0x14010fd8a
cmp byte [rsi + 8], 0
je 0x14010fda6
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14009e1b0
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rsi]
jmp 0x14010fd5d
mov rcx, qword [rsi]
jmp 0x14010fd7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 0
je 0x14010fdd3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14010fdd8
xor edi, edi
jmp 0x14010fd8a
mov rcx, qword [rsi]
jmp 0x14010fdc0
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 0
je 0x14010fdff
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
jmp 0x14010fd8a
mov rcx, qword [rsi]
jmp 0x14010fdef
Function at 0x1401103f0
Capabilities:
Move file

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rsi, rcx
mov rax, qword [0x14019b038]
xor rax, rsp
mov qword [rsp + 0x80], rax
movaps xmm0, xmmword [0x14016b5d0]
lea rbx, [rsp + 0x40]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.DeleteFileAfterReboot
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x20]
mov rcx, r14
mov r9d, 0x234
call fcn.140040ab0
xor edi, edi
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.140044f80
mov al, byte [rsi + 0x17]
test al, al
jns 0x14011046e
cmp qword [rsi + 8], 0x103
ja 0x14011048c
test al, al
jns 0x140110475
mov rsi, qword [rsi]
mov rcx, rsi
xor edx, edx
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne dil
lea rcx, [rsp + 0x40]
call fcn.140044fe0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14009e1b0
mov eax, edi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140110c40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov ebp, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x14019b038]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x14016b5d0]
lea r14, [rsp + 0x60]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.PathHasAccess
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x2e7
call fcn.140040ab0
xor ebx, ebx
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140044f80
cmp byte [rdi + 0x17], 0
jns 0x140110cc2
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140110d4e
test al, 0x10
cmove esi, ebp
mov eax, 0x80
mov ecx, 0x2000000
cmove ecx, eax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x40]
mov qword [rbx], rax
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], 3
mov rcx, rdi
mov edx, esi
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], r14
mov rcx, rbx
mov rdx, rax
call fcn.140027432
mov rax, qword [rbx]
inc rax
test rax, 0xfffffffffffffffe
setne bl
cmp rax, 2
jb 0x140110d4e
call fcn.140040ad0
mov rcx, qword [rsp + 0x40]
call fcn.140035950
lea rcx, [rsp + 0x60]
call fcn.140044fe0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14009e1b0
mov eax, ebx
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14011c4c0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
movdqa xmmword [rsp + 0x50], xmm9
movdqa xmmword [rsp + 0x40], xmm8
movdqa xmmword [rsp + 0x30], xmm7
movdqa xmmword [rsp + 0x20], xmm6
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
xor eax, eax
movdqa xmm0, xmmword [rsi + rax]
pxor xmm0, xmmword [rdi + rax]
movdqa xmmword [rsi + rax], xmm0
add rax, 0x10
cmp rax, 0x80
jne 0x14011c4f0
cmp rbx, 2
jb 0x14011c5d8
lea r14, [rdi + 0x80]
mov r15d, 1
movdqa xmm6, xmmword [0x14017ed40]
movdqa xmm7, xmmword [0x14017ed50]
movdqa xmm8, xmmword [0x14017ed60]
movdqa xmm9, xmmword [0x14017ed70]
mov rcx, rsi
call fcn.14012d340
xor eax, eax
movdqa xmm0, xmmword [rsi + rax]
movdqa xmm1, xmm0
pand xmm1, xmm6
pshufd xmm2, xmm0, 0x39
pand xmm2, xmm7
por xmm2, xmm1
pshufd xmm1, xmm0, 0x4e
pand xmm0, xmm8
movdqa xmm3, xmm0
pslldq xmm3, 4
psrldq xmm0, 0xc
por xmm0, xmm3
pand xmm1, xmm9
por xmm1, xmm0
por xmm1, xmm2
movdqa xmmword [rsi + rax], xmm1
add rax, 0x10
cmp rax, 0x80
jne 0x14011c54e
mov rcx, rsi
call fcn.14012d820
xor eax, eax
movdqa xmm0, xmmword [rsi + rax]
pxor xmm0, xmmword [r14 + rax]
movdqa xmmword [rsi + rax], xmm0
add rax, 0x10
cmp rax, 0x80
jne 0x14011c5ac
inc r15
sub r14, 0xffffffffffffff80
cmp r15, rbx
jne 0x14011c544
mov rcx, rsi
call fcn.14012d340
xor eax, eax
movdqa xmm0, xmmword [0x14017ed40]
movdqa xmm1, xmmword [0x14017ed50]
movdqa xmm2, xmmword [0x14017ed60]
movdqa xmm3, xmmword [0x14017ed70]
movdqa xmm4, xmmword [rsi + rax]
movdqa xmm5, xmm4
pand xmm5, xmm0
pshufd xmm6, xmm4, 0x39
pand xmm6, xmm1
por xmm6, xmm5
pshufd xmm5, xmm4, 0x4e
pand xmm4, xmm2
movdqa xmm7, xmm4
pslldq xmm7, 4
psrldq xmm4, 0xc
por xmm4, xmm7
pand xmm5, xmm3
por xmm5, xmm4
por xmm5, xmm6
movdqa xmmword [rsi + rax], xmm5
add rax, 0x10
cmp rax, 0x80
jne 0x14011c602
shl rbx, 7
add rdi, rbx
xor eax, eax
movdqa xmm0, xmmword [rsi + rax]
pxor xmm0, xmmword [rdi + rax]
movdqa xmmword [rsi + rax], xmm0
add rax, 0x10
cmp rax, 0x80
jne 0x14011c65d
movaps xmm6, xmmword [rsp + 0x20]
movaps xmm7, xmmword [rsp + 0x30]
movaps xmm8, xmmword [rsp + 0x40]
movaps xmm9, xmmword [rsp + 0x50]
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1401293b0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov edx, dword [rsp + 0xe0]
mov rax, qword [0x14019b038]
xor rax, rsp
mov qword [rsp + 0x80], rax
movsxd r8, dword [rcx + 0x108]
lea ecx, [rdx + 4]
mov r11d, ecx
shr r11d, 6
xor eax, eax
mov r10d, 0
cmp r11, r8
jae 0x14012940f
mov r10, qword [r9 + r11*8]
shr r10, cl
shl r10d, 5
and r10d, 0x20
lea ecx, [rdx + 3]
mov r11d, ecx
shr r11d, 6
cmp r11, r8
jae 0x14012942b
mov rax, qword [r9 + r11*8]
shr rax, cl
shl eax, 4
and eax, 0x10
or eax, r10d
lea ecx, [rdx + 2]
mov r14d, ecx
shr r14d, 6
xor r10d, r10d
mov r11d, 0
cmp r14, r8
jae 0x140129455
mov r11, qword [r9 + r14*8]
shr r11, cl
shl r11d, 3
and r11d, 8
or eax, r11d
lea ecx, [rdx + 1]
mov r11d, ecx
shr r11d, 6
cmp r11, r8
jae 0x140129476
mov r10, qword [r9 + r11*8]
shr r10, cl
shl r10d, 2
and r10d, 4
or eax, r10d
mov r11d, edx
shr r11d, 6
xor r10d, r10d
cmp r11, r8
jae 0x140129498
mov ecx, edx
mov r10, qword [r9 + r11*8]
shr r10, cl
add r10d, r10d
and r10d, 2
or eax, r10d
test edx, edx
je 0x1401294be
dec edx
mov r10d, edx
shr r10d, 6
xor ecx, ecx
cmp r10, r8
jae 0x1401294bc
mov r8, qword [r9 + r10*8]
xor ecx, ecx
bt r8, rdx
setb cl
or eax, ecx
mov r14d, eax
shr r14d, 5
mov ecx, r14d
dec ecx
neg r14
and ecx, eax
xor eax, 0x3f
mov r15d, r14d
and r15d, eax
or r15d, ecx
mov eax, r15d
shr eax, 1
and r15d, 1
add r15, rax
xor r12d, r12d
mov r8d, 0xd8
mov rcx, rsi
xor edx, edx
call fcn.1400a02f0
mov r8, r12
xor r8, r15
dec r8
sar r8, 0x3f
mov qword [rsp + 0x20], rsi
mov rcx, rdi
mov rdx, rsi
mov r9, rbx
call fcn.140125e70
inc r12
add rbx, 0xd8
cmp r12, 0x11
jne 0x1401294fa
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x70], rax
movaps xmm0, xmmword [0x14016b5d0]
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
add rsi, 0x48
mov eax, dword [rdi + 0x148]
test eax, eax
jle 0x1401295cb
xor ecx, ecx
xor edx, edx
or rdx, qword [rsi + rcx*8]
inc rcx
cmp rax, rcx
jne 0x140129566
test rdx, rdx
sete dl
test rax, rax
je 0x14012961c
movsxd rcx, eax
mov rax, qword [rdi + 0x140]
xor r8d, r8d
lea r9, [rsp + 0x30]
sub r10, r10
jmp 0x1401295a0
mov r10, qword [rax + r8*8]
sbb r10, qword [rsi + r8*8]
mov qword [r9 + r8*8], r10
lea r8, [r8 + 1]
dec rcx
jne 0x1401295a0
sbb r10, r10
movsxd rax, dword [rdi + 0x148]
mov ecx, eax
test rax, rax
jle 0x1401295ea
xor r8d, r8d
jmp 0x1401295df
mov dl, 1
jmp 0x140129578
xor r9d, r9d
mov qword [rsp + r8*8 + 0x30], r9
inc r8
cmp rcx, r8
je 0x1401295ea
test dl, dl
jne 0x1401295cf
mov r9, qword [rsp + r8*8 + 0x30]
jmp 0x1401295d2
test rcx, rcx
je 0x14012961c
and r14d, 1
neg r14
mov rcx, r14
not rcx
xor edx, edx
mov r8, qword [rsp + rdx*8 + 0x30]
and r8, r14
mov r9, qword [rsi + rdx*8]
and r9, rcx
or r9, r8
mov qword [rsi + rdx*8], r9
inc rdx
cmp rax, rdx
jne 0x1401295fe
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14009e1b0
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14012a5f0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rsi, rcx
mov rax, qword [0x14019b038]
xor rax, rsp
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x14016b5d0]
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
test r9, r9
je 0x14012a658
xor edi, edi
cmp r9, 0x30
ja 0x14012a67a
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmm2, xmmword [rdx + 0x20]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx + 0x20], xmm2
movaps xmmword [rdx + 0x10], xmm1
movaps xmmword [rdx], xmm0
xor eax, eax
mov cl, byte [r8 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r9, rax
jne 0x14012a648
mov r8d, 0x30
mov rcx, rsi
call fcn.14007a870
test eax, eax
je 0x14012a690
mov qword [rsi + 0x118], 1
mov edi, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14009e1b0
mov eax, edi
add rsp, 0x58
pop rdi
pop rsi
ret
xor edi, edi
jmp 0x14012a67a

Function at 0x140130510
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x140130520
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
cmp byte [rdx + 0x17], 0
jns 0x140130541
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x140130561
cmp byte [r14 + 0x50], 0
je 0x140130625
or edi, 0x80000000
test dil, 8
je 0x140130578
cmp byte [r14 + 0x68], 0
je 0x140130630
or edi, 0x40000000
xor r15d, r15d
cmp byte [r14 + 0x60], 0
mov r12d, 0
je 0x14013058c
mov r12, qword [r14 + 0x58]
cmp byte [r14 + 0x48], 0
mov r13d, 0
je 0x14013059d
mov r13, qword [r14 + 0x40]
cmp byte [r14 + 0x38], 0
je 0x1401305b0
lea rcx, [r14 + 0x20]
call fcn.140062510
mov r15, rax
cmp byte [r14 + 0x18], 0
je 0x140130620
mov rcx, r14
call fcn.140062510
mov r9, rax
cmp ebx, 4
ja case.default.0x1401305db
mov eax, ebx
lea rcx, [0x1401810ac]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov edx, 7
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
test eax, eax
je 0x14013060b
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor r9d, r9d
jmp 0x1401305c2
or edi, 0x20000000
jmp 0x140130561
or edi, 0x10000000
jmp 0x140130578
mov edx, 6
jmp 0x1401305e2
mov edx, 1
jmp 0x1401305e2
mov edx, 4
jmp 0x1401305e2
xor edx, edx
jmp 0x1401305e2