joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140009850]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140009860]
mov dword [rax], 1
mov rax, qword [0x140009870]
mov dword [rax], 1
mov rax, qword [0x140009840]
mov dword [rax], 1
mov rax, qword [0x140009700]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x140009830]
mov dword [0x14000c00c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010c0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400097f0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400097d0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400096b0]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x140001a50
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140001ac0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x14000c0a4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140001c70
mov rax, qword [0x14000c0a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140001b0c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001b97
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140001af0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x140001ccd
mov rax, qword [0x14000c0a8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14000c0a8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001cb2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001b90
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001c20
add dword [0x14000c0a4], 1
cmp ebx, 8
jae 0x140001bc8
test bl, 4
jne 0x140001c80
test ebx, ebx
je 0x140001bb9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140001ca0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140001bb9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x140001bfa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x14000c0a8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001b90
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x140001b17
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140001bb9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140001bb9
mov rax, qword [0x14000c0a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x1400021e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14000c100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000c0e0]
test rbx, rbx
je 0x140002234
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000222b
test r12, r12
je 0x14000222b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002210
lea rcx, [0x14000c100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002460
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x140002470
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x140002480
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x1400024c5
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x1400024bc
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x1400024c7
add rax, 0x28
cmp rax, r9
jne 0x1400024a8
xor eax, eax
ret

Function at 0x140002570
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140009700]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1400025e9
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1400025e9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x1400025e6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x1400025dd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1400025e9
add r8, 0x28
cmp r8, r9
jne 0x1400025c8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x1400026d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140009700]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14000273f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14000273f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x14000273d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002734
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002748
add rax, 0x28
cmp rax, r9
jne 0x140002720
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x140002760
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x140009700]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x1400027d8
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1400027d8
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x1400027d8
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x1400027d8
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x1400027cc
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x1400027e0
add rdx, 0x28
cmp rdx, r10
jne 0x1400027b8
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x1400027f0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x1400027fe
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400027d5
test r8d, r8d
jg 0x1400027e8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x140006f20
Capabilities:
Get file system object information

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x320
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x1403eaa10]
xor rax, rsp
mov qword [rsp + 0x310], rax
mov r15, rdx
mov r14, rcx
mov ecx, 0x88
call fcn.14029806c
mov rsi, rax
xor ebp, ebp
test rax, rax
je 0x140006f90
lea rax, [0x140323de0]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rbp
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x20], rbp
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x30], rbp
jmp 0x140006f93
mov rsi, rbp
mov dword [rsp + 0x20], 0x101
mov r9d, 0x2b8
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, qword [r15 + 0x18]
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov r12, rbp
test rax, rax
cmovne r12, qword [rsp + 0x50]
mov edx, dword [r15 + 0x24]
lea rcx, [rsi + 0x18]
call fcn.1401e9030
movsxd r9, dword [r15 + 0x24]
mov eax, dword [rsi + 0x20]
inc eax
movsxd rdx, eax
mov r8, qword [r15 + 0x18]
mov rcx, qword [rsi + 0x18]
call fcn.14029b4d8
mov edx, dword [r15 + 0x24]
lea rcx, [rsi + 0x18]
call fcn.1401ea290
lea rdx, [r15 + 0x18]
lea rcx, [rsp + 0x30]
call fcn.1400074a0
mov rdi, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsi + 0x28]
call fcn.1401e9030
movsxd r9, dword [rdi + 0xc]
mov eax, dword [rsi + 0x30]
inc eax
movsxd rdx, eax
mov r8, qword [rdi]
mov rcx, qword [rsi + 0x28]
call fcn.14029b4d8
mov edx, dword [rdi + 0xc]
lea rcx, [rsi + 0x28]
call fcn.1401ea290
nop
cmp dword [rsp + 0x38], 0
jle 0x140007044
mov rcx, qword [rsp + 0x30]
call fcn.140298600
mov qword [rsi + 0x80], r12
mov dword [rsi], ebp
mov r8, rsi
lea rdx, [r15 + 0x18]
mov rcx, r14
call fcn.140007110
test al, al
je 0x1400070a1
mov rcx, qword [r14 + 0xa8]
mov rbx, qword [rcx + 0x4e0]
lea r8, [rsi + 0x3c]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14011acf0
mov rcx, qword [rbx]
cmp qword [rsp + 0x30], rcx
je 0x1400070e1
mov dword [rsi], 2
lea rcx, [rsi + 8]
lea rdx, [0x1402e9000]
call fcn.1401e7490
jmp 0x1400070e1
mov dword [rsi], 0xffffffff
mov edx, 2
lea rcx, [rsi + 8]
call fcn.1401e9030
mov eax, dword [rsi + 0x10]
inc eax
movsxd rdx, eax
mov r9d, 2
lea r8, [0x1402e9008]
mov rcx, qword [rsi + 8]
call fcn.14029b4d8
mov edx, 2
lea rcx, [rsi + 8]
call fcn.1401ea290
mov rax, rsi
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.140297ff0
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400074a0
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x68
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov r14, rdx
mov rdi, rcx
xor r13d, r13d
mov dword [rbp - 0x38], r13d
lea rax, [0x140323de0]
mov qword [rcx], rax
mov qword [rcx + 8], r13
mov dword [rbp - 0x38], 1
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], r13
mov qword [rbp + 0x60], r13
mov dword [rbp + 0x50], r13d
mov r15d, 0x409
mov r12d, 0x4e4
lea rdx, [rbp + 0x58]
mov rcx, qword [r14]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test eax, eax
je 0x14000761e
mov ecx, ebx
call fcn.140298640
mov rsi, rax
test rax, rax
je 0x14000761e
mov r9, rax
mov r8d, ebx
mov edx, dword [rbp + 0x58]
mov rcx, qword [r14]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x140007615
lea r9, [rbp + 0x50]
lea r8, [rbp + 0x60]
lea rdx, str.VarFileInfoTranslation
mov rcx, rsi
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140007576
mov rax, qword [rbp + 0x60]
test rax, rax
je 0x140007576
cmp dword [rbp + 0x50], r13d
je 0x140007576
movzx r15d, word [rax]
movzx r12d, word [rax + 2]
movzx r9d, r12w
movzx r8d, r15w
lea rax, [0x1402e9048]
mov qword [rsp + 0x20], rax
lea rdx, str.StringFileInfo_04x_04x_s
lea rcx, [rbp - 0x18]
call fcn.1401e94c0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rbp - 0x28]
call fcn.1401e9030
movsxd r9, dword [rbx + 0xc]
mov ecx, dword [rbp - 0x20]
inc ecx
movsxd rdx, ecx
mov r8, qword [rbx]
mov rcx, qword [rbp - 0x28]
call fcn.14029b4d8
mov edx, dword [rbx + 0xc]
lea rcx, [rbp - 0x28]
call fcn.1401ea290
nop
cmp dword [rbp - 0x10], 0
jle 0x1400075dd
mov rcx, qword [rbp - 0x18]
call fcn.140298600
mov qword [rbp + 0x60], r13
mov dword [rbp + 0x50], r13d
lea r9, [rbp + 0x50]
lea r8, [rbp + 0x60]
mov rdx, qword [rbp - 0x28]
mov rcx, rsi
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140007615
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x140007615
cmp dword [rbp + 0x50], 0
je 0x140007615
mov rcx, rdi
call fcn.1401e7490
mov rcx, rsi
call fcn.140298600
nop
cmp dword [rbp - 0x20], 0
jle 0x14000762d
mov rcx, qword [rbp - 0x28]
call fcn.140298600
mov rax, rdi
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000baf0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x28]
lea rax, vtable.HitmanPro35::AuthenticodeClassifier.0
xor edi, edi
mov rbx, rcx
mov qword [rcx], rax
test rdx, rdx
je 0x14000bb4c
mov rcx, qword [rcx + 0x18]
xor r9d, r9d
mov r8d, 0x3a98
call qword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
cmp eax, 0x102
jne 0x14000bb3e
mov rcx, qword [rbx + 0x28]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x28], rdi
lea rax, vtable.Core::Queue_class_HitmanPro35::File____ptr64_.0
mov qword [rbx + 0x80], rax
mov rax, qword [rbx + 0x90]
test rax, rax
je 0x14000bb9d
nop word [rax + rax]
mov rcx, qword [rax]
mov qword [rbx + 0x90], rcx
test rcx, rcx
je 0x14000bb83
mov qword [rcx + 8], rdi
mov rcx, rax
call fcn.1402012c0
mov rax, qword [rbx + 0x90]
dec dword [rbx + 0x88]
test rax, rax
jne 0x14000bb70
lea rax, vtable.Core::Mutex.0
mov qword [rbx + 0x90], rdi
mov qword [rbx + 0x98], rdi
lea rcx, [rbx + 0x58]
mov qword [rbx + 0x50], rax
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rbx + 0x48]
lea rsi, vtable.Core::EventWaitHandle.0
mov qword [rbx + 0x40], rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdi, vtable.Core::WaitHandle.0
mov qword [rbx + 0x40], rdi
mov rcx, qword [rbx + 0x38]
mov qword [rbx + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x30], rdi
mov rcx, qword [rbx + 0x18]
mov qword [rbx + 0x10], rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x38]
mov qword [rbx + 0x10], rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000bc20
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx + 0x28]
mov rbx, rcx
test rdx, rdx
je 0x14000bc6b
mov rcx, qword [rcx + 0x18]
xor r9d, r9d
mov r8d, 0x3a98
call qword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
cmp eax, 0x102
jne 0x14000bc59
mov rcx, qword [rbx + 0x28]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x28], 0
add rsp, 0x20
pop rbx
ret
Function at 0x14001ae10
Capabilities:
Encode data using xor

Disassembly:
cmp r8, 8
jb 0x14001ae44
mov r9, r8
shr r9, 3
imul rax, r9, 0xfffffffffffffff8
add r8, rax
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rdx]
add rcx, 8
add rdx, 8
xor qword [rcx - 8], rax
dec r9
jne 0x14001ae30
xor r9d, r9d
test r8, r8
je 0x14001aef0
cmp r8, 0x20
jb 0x14001aec5
lea rax, [rdx - 1]
lea r10, [rcx - 1]
add rax, r8
add r10, r8
cmp rcx, rax
ja 0x14001ae6e
cmp r10, rdx
jae 0x14001aec5
mov rax, r8
mov r11, r8
mov r10, rdx
and eax, 0x1f
sub r11, rax
mov rax, rcx
sub r10, rcx
nop dword [rax]
nop word [rax + rax]
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [r10 + rax]
add r9, 0x20
lea rax, [rax + 0x20]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
movdqu xmm1, xmmword [r10 + rax - 0x10]
movdqu xmm0, xmmword [rax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x10], xmm1
cmp r9, r11
jne 0x14001ae90
cmp r9, r8
je 0x14001aef0
sub rdx, rcx
lea rax, [r9 + rcx]
sub r8, r9
nop dword [rax]
nop dword [rax + rax]
movzx ecx, byte [rax + rdx]
lea rax, [rax + 1]
xor byte [rax - 1], cl
dec r8
jne 0x14001aee0
ret

Function at 0x14001af00
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r10, rcx
cmp r9, 8
jb 0x14001af3b
mov rcx, r9
shr rcx, 3
imul rax, rcx, 0xfffffffffffffff8
add r9, rax
nop dword [rax + rax]
mov rax, qword [rdx]
add r10, 8
add rdx, 8
xor rax, qword [r8]
add r8, 8
mov qword [r10 - 8], rax
dec rcx
jne 0x14001af20
xor ecx, ecx
test r9, r9
je 0x14001b015
cmp r9, 0x20
jb 0x14001afe1
lea rax, [r8 - 1]
lea r11, [r10 - 1]
add rax, r9
add r11, r9
cmp r10, rax
ja 0x14001af6c
cmp r11, r8
jae 0x14001afe1
lea rax, [rdx - 1]
add rax, r9
cmp r10, rax
ja 0x14001af7d
cmp r11, rdx
jae 0x14001afe1
mov rax, r9
mov qword [rsp + 0x10], rbx
mov qword [rsp], rdi
and eax, 0x1f
mov rdi, r9
mov r11, r10
sub rdi, rax
mov rbx, r8
sub r11, rdx
mov rax, rdx
sub rbx, rdx
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rbx + rax]
add rcx, 0x20
lea rax, [rax + 0x20]
pxor xmm1, xmm0
movdqu xmmword [r11 + rax - 0x20], xmm1
movdqu xmm1, xmmword [rbx + rax - 0x10]
movdqu xmm0, xmmword [rax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [r11 + rax - 0x10], xmm1
cmp rcx, rdi
jne 0x14001afa1
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp rcx, r9
je 0x14001b015
sub rdx, r8
sub r10, r8
lea rax, [rcx + r8]
sub r9, rcx
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rdx + rax]
lea rax, [rax + 1]
xor cl, byte [rax - 1]
mov byte [r10 + rax - 1], cl
dec r9
jne 0x14001b000
add rsp, 8
ret
Function at 0x140022460
Capabilities:
Encode data using xor

Disassembly:
test r9, r9
je 0x1400225d3
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
push r15
mov rdi, qword [rcx + 8]
mov r14, rdx
mov qword [rsp + 0x18], rbx
sub r14, r8
mov r15, r9
mov r11, r8
mov rbp, rcx
mov qword [rsp + 0x20], rsi
nop dword [rax]
nop dword [rax + rax]
mov ecx, dword [r14 + r11]
mov rsi, qword [rbp + 0x28]
mov eax, ecx
rol ecx, 8
and ecx, 0xff00ff
ror eax, 8
and eax, 0xff00ff00
or eax, ecx
mov ecx, dword [r14 + r11 + 4]
mov r10d, ecx
ror r10d, 8
and r10d, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or r10d, ecx
xor ebx, ebx
nop
xor eax, dword [rbx + rsi]
add rbx, 8
mov ecx, eax
shr ecx, 0x10
movzx r8d, cl
mov ecx, eax
mov r9d, dword [rdi + r8*4 + 0x400]
shr ecx, 0x18
movzx edx, cl
mov ecx, eax
add r9d, dword [rdi + rdx*4]
shr ecx, 8
movzx edx, cl
movzx ecx, al
xor r9d, dword [rdi + rdx*4 + 0x800]
add r9d, dword [rdi + rcx*4 + 0xc00]
xor r9d, dword [rbx + rsi - 4]
xor r10d, r9d
mov ecx, r10d
shr ecx, 0x10
movzx r8d, cl
mov ecx, r10d
mov r9d, dword [rdi + r8*4 + 0x400]
shr ecx, 0x18
movzx edx, cl
mov ecx, r10d
add r9d, dword [rdi + rdx*4]
shr ecx, 8
movzx edx, cl
movzx ecx, r10b
xor r9d, dword [rdi + rdx*4 + 0x800]
add r9d, dword [rdi + rcx*4 + 0xc00]
xor eax, r9d
cmp rbx, 0x40
jne 0x1400224e0
xor r10d, dword [rsi + 0x44]
xor eax, dword [rsi + 0x40]
add r11, 8
mov ecx, r10d
rol r10d, 8
and r10d, 0xff00ff
ror ecx, 8
and ecx, 0xff00ff00
or ecx, r10d
mov dword [r11 - 8], ecx
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
mov dword [r11 - 4], ecx
dec r15
jne 0x1400224a0
mov rsi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
pop r15
pop r14
ret
Function at 0x1400225e0
Capabilities:
Encode data using xor

Disassembly:
test r9, r9
je 0x140022762
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
push r15
mov rdi, qword [rcx + 8]
mov r14, rdx
mov qword [rsp + 0x18], rbx
sub r14, r8
mov r15, r9
mov r11, r8
mov rbp, rcx
mov qword [rsp + 0x20], rsi
nop dword [rax]
nop dword [rax + rax]
mov ecx, dword [r14 + r11]
mov rsi, qword [rbp + 0x28]
mov ebx, 0x44
mov eax, ecx
rol ecx, 8
and ecx, 0xff00ff
ror eax, 8
and eax, 0xff00ff00
or eax, ecx
mov ecx, dword [r14 + r11 + 4]
mov r10d, ecx
ror r10d, 8
and r10d, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or r10d, ecx
nop dword [rax]
nop word [rax + rax]
xor eax, dword [rbx + rsi]
sub rbx, 8
mov ecx, eax
shr ecx, 0x10
movzx r8d, cl
mov ecx, eax
mov r9d, dword [rdi + r8*4 + 0x400]
shr ecx, 0x18
movzx edx, cl
mov ecx, eax
add r9d, dword [rdi + rdx*4]
shr ecx, 8
movzx edx, cl
movzx ecx, al
xor r9d, dword [rdi + rdx*4 + 0x800]
add r9d, dword [rdi + rcx*4 + 0xc00]
xor r9d, dword [rbx + rsi + 4]
xor r10d, r9d
mov ecx, r10d
shr ecx, 0x10
movzx r8d, cl
mov ecx, r10d
mov r9d, dword [rdi + r8*4 + 0x400]
shr ecx, 0x18
movzx edx, cl
mov ecx, r10d
add r9d, dword [rdi + rdx*4]
shr ecx, 8
movzx edx, cl
movzx ecx, r10b
xor r9d, dword [rdi + rdx*4 + 0x800]
add r9d, dword [rdi + rcx*4 + 0xc00]
xor eax, r9d
cmp rbx, 4
jne 0x140022670
xor r10d, dword [rsi]
xor eax, dword [rsi + 4]
add r11, 8
mov ecx, r10d
rol r10d, 8
and r10d, 0xff00ff
ror ecx, 8
and ecx, 0xff00ff00
or ecx, r10d
mov dword [r11 - 8], ecx
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
mov dword [r11 - 4], ecx
dec r15
jne 0x140022620
mov rsi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
pop r15
pop r14
ret

Function at 0x1400227f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rbp, r9
xor r9d, r9d
mov rdi, rdx
mov rbx, rcx
mov r11d, 2
mov esi, r9d
nop word [rax + rax]
mov r10, qword [rbx + 0x28]
xor edx, edx
lea rax, [r11 - 2]
div r8
lea rax, [r11 - 1]
add rsi, 4
movzx ecx, byte [rdx + rdi]
xor edx, edx
div r8
shl ecx, 8
movzx eax, byte [rdx + rdi]
xor edx, edx
or ecx, eax
mov rax, r11
div r8
shl ecx, 8
movzx eax, byte [rdx + rdi]
xor edx, edx
or ecx, eax
lea rax, [r11 + 1]
add r11, 4
div r8
shl ecx, 8
movzx eax, byte [rdx + rdi]
or ecx, eax
xor dword [r10 + rsi - 4], ecx
cmp rsi, 0x48
jne 0x140022820
mov qword [rsp + 0x28], r9
mov dword [rsp + 0x30], r9d
mov dword [rsp + 0x60], r9d
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x30]
lea rdx, [rbx + 0x28]
mov rcx, rbx
mov qword [rsp + 0x20], rbp
call fcn.1400228e0
lea rdx, [rbx + 8]
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x30]
mov rcx, rbx
mov qword [rsp + 0x28], 2
mov qword [rsp + 0x20], rbp
call fcn.1400228e0
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret