joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012ea0
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x338]
mov eax, 0x430
call fcn.14024eae0
sub rsp, rax
mov rax, qword [0x14035d028]
xor rax, rsp
mov qword [rbp + 0x320], rax
xor ebx, ebx
mov qword [rsp + 0x70], rbx
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], 7
lea rdx, str.SoftwareMicrosoftOfficeC2RSvcMgr
lea rcx, [rsp + 0x70]
call fcn.14000ae4c
mov rax, qword [rbp - 0x80]
test rax, rax
je 0x1400130c6
cmp rax, 0xff
ja 0x140013074
mov dword [rsp + 0x38], ebx
lea rdi, vtable.ORegistryKey.0
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x40], rbx
movdqa xmm0, xmmword [0x14031bbe0]
movdqa xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rbx
mov byte [rsp + 0x68], 1
mov dword [rsp + 0x6c], 0x85
mov dword [rsp + 0x20], ebx
xor r9d, r9d
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x30]
lea rcx, [0x14037e490]
call fcn.140010c58
mov esi, 0x1000
test al, al
jne 0x140013018
mov rcx, qword [rsp + 0x60]
test rcx, rcx
mov qword [rsp + 0x30], rdi
je 0x140012f91
cmp byte [rsp + 0x68], bl
je 0x140012f91
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
mov qword [rsp + 0x50], rbx
cmovae rax, qword [rsp + 0x40]
mov word [rax], bx
mov rax, qword [rsp + 0x58]
cmp rax, 8
jb 0x140012fe1
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x40]
cmp rax, rsi
mov rdx, rcx
jb 0x140012fdb
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
ja 0x14001303e
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rbp - 0x78]
cmp rax, 8
jb 0x14001304c
mov rcx, qword [rsp + 0x70]
mov rdx, rcx
lea rax, [rax*2 + 2]
cmp rax, rsi
jb 0x140013045
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x140013045
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rdx, qword [rsp + 0x70]
mov rcx, qword [0x14037e4c0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
jne 0x140013093
jmp 0x140012f71
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbp + 0x320]
xor rcx, rsp
call fcn.14024c6d0
lea r11, [rsp + 0x430]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
lea r9, [rsp + 0x70]
lea rcx, [rbp - 0x70]
call fcn.140190e4c
lea rdx, [0x140325060]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x28], rcx
lea rcx, [0x14037e4a0]
mov qword [rsp + 0x20], rcx
mov r8d, eax
lea rcx, [rbp - 0x70]
call fcn.140190f14
lea rdx, [0x140325060]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rbp - 0x70]
call fcn.140190dac
lea rdx, [0x140325060]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140025ff0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x2f0]
mov eax, 0x3f0
call fcn.14024eae0
sub rsp, rax
mov rax, qword [0x14035d028]
xor rax, rsp
mov qword [rbp + 0x2e0], rax
and dword [rsp + 0x40], 0
mov rdi, rcx
mov rcx, qword [rcx + 0x30]
mov rbx, r8
cmp rcx, 0xffffffffffffffff
je 0x1400260c1
mov eax, 0xffffffff
cmp rbx, rax
ja 0x1400260e9
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400260ef
mov eax, dword [rsp + 0x40]
cmp rax, rbx
jne 0x140026081
mov eax, dword [rsp + 0x40]
mov rcx, qword [rbp + 0x2e0]
xor rcx, rsp
call fcn.14024c6d0
add rsp, 0x3f0
pop rdi
pop rbx
pop rbp
ret
mov rcx, rbx
call fcn.140011a90
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x28], rcx
lea rax, [rdi + 0x10]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
call fcn.140025f10
lea rdx, [0x140325060]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea r8, str.trying_to_read_from_a_file_thats_not_open
mov edx, 0x15
lea rcx, [rsp + 0x50]
call fcn.14000feec
lea rdx, [0x140325060]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.140009574
int3
mov rcx, rbx
call fcn.140011a90
mov dword [rsp + 0x44], eax
lea rbx, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rcx, [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call fcn.140025bf0
lea rdx, [0x140325060]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x14002bc98
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
mov eax, 0x3f0
call fcn.14024eae0
sub rsp, rax
mov rax, qword [0x14035d028]
xor rax, rsp
mov qword [rsp + 0x3e0], rax
mov rdi, rcx
mov dword [rsp + 0x40], r8d
mov rcx, qword [rcx + 0x30]
mov rbx, rdx
test rcx, rcx
je 0x14002bd67
cmp qword [rdx + 0x10], 0x3fff
ja 0x14002bd8a
cmp qword [rdx + 0x18], 8
jb 0x14002bced
mov rdx, qword [rdx]
mov r9d, 4
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14002bd30
mov rcx, qword [rsp + 0x3e0]
xor rcx, rsp
call fcn.14024c6d0
mov rbx, qword [rsp + 0x418]
add rsp, 0x3f0
pop rdi
ret
lea rcx, [rdi + 0x10]
mov r8d, eax
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rbx
call fcn.14002bba4
lea rdx, [0x140325060]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea r8, str.ORegistryKey.SetValue_failure:_Cannot_set_DWORD_value._The_registry_key_is_closed_or_not_set
lea rcx, [rsp + 0x50]
call fcn.140012410
lea rdx, [0x140325060]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rsp + 0x50]
call fcn.14002b728
lea rdx, [0x140325060]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400397bc
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x3e8
call fcn.14024eae0
sub rsp, rax
mov rax, qword [0x14035d028]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
mov r10, qword [rcx + 0x30]
cmp r10, 0xffffffffffffffff
je 0x14003986c
and dword [rsp + 0x30], 0
mov rax, rdx
cmp qword [rdx + 0x18], 8
jb 0x1400397fb
mov rax, qword [rdx]
mov rcx, qword [rdx + 0x10]
mov edx, 0xffffffff
cmp rcx, rdx
ja 0x140039888
and qword [rsp + 0x20], 0
lea r8d, [rcx + rcx]
mov rcx, r10
lea r9, [rsp + 0x30]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140039840
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.14024c6d0
add rsp, 0x3e8
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r9, str.write_to_file_failed
lea rcx, [rsp + 0x40]
call fcn.1400259c0
lea rdx, [0x140325060]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rsp + 0x40]
call fcn.14003971c
lea rdx, [0x140325060]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.140009574
int3

Function at 0x1400403f0
Capabilities:
Set file attributes

Disassembly:
push rbx
mov eax, 0x3e0
call fcn.14024eae0
sub rsp, rax
mov rax, qword [0x14035d028]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
cmp qword [rcx + 0x18], 8
mov edx, 0x80
mov dword [rsp + 0x30], edx
mov rbx, rcx
jb 0x140040427
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x14004044a
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.14024c6d0
add rsp, 0x3e0
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rcx, [rsp + 0x40]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call fcn.140040308
lea rdx, [0x140325060]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140040480
Capabilities:
Check if file exists
Delete file

Disassembly:
push rbx
mov eax, 0x3d0
call fcn.14024eae0
sub rsp, rax
mov rax, qword [0x14035d028]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x1400404ae
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400404f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400404f1
cmp eax, 5
jne 0x1400404ed
mov rcx, rbx
call fcn.1400403f0
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x1400404dd
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400404f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14004050c
mov al, 1
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.14024c6d0
add rsp, 0x3d0
pop rbx
ret
lea r9, str.failed_to_delete_file__s
mov qword [rsp + 0x20], rbx
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.140026454
lea rdx, [0x140325060]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140040624
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x3d0
call fcn.14024eae0
sub rsp, rax
mov rax, qword [0x14035d028]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
cmp qword [rcx + 0x18], 8
mov dil, dl
mov rbx, rcx
jb 0x140040659
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14004067b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14004067b
test dil, dil
jne 0x14004069e
xor al, al
jmp 0x14004067d
mov al, 1
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.14024c6d0
mov rbx, qword [rsp + 0x3e8]
add rsp, 0x3d0
pop rdi
ret
mov r8d, eax
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x30]
call fcn.140040554
lea rdx, [0x140325060]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x1400406c4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x3c0
call fcn.14024eae0
sub rsp, rax
mov rax, qword [0x14035d028]
xor rax, rsp
mov qword [rsp + 0x3b0], rax
lea rsi, [rcx + 0x10]
xor ebp, ebp
mov edx, 0x104
lea rdi, [rcx + 0x18]
mov rbx, rcx
cmp qword [rsi], rdx
jb 0x140040722
cmp qword [rdi], 8
mov rax, rcx
jb 0x140040716
mov rax, qword [rcx]
mov qword [rsi], rdx
mov word [rax + 0x208], bp
jmp 0x14004072d
sub rdx, qword [rsi]
xor r8d, r8d
call fcn.14000aabc
cmp qword [rdi], 8
mov rdx, rbx
jb 0x140040739
mov rdx, qword [rbx]
mov eax, 0xffffffff
cmp qword [rdi], rax
ja 0x1400407cf
mov ecx, dword [rdi]
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, eax
test eax, eax
je 0x1400407a3
cmp rdx, qword [rsi]
ja 0x14004076c
cmp qword [rdi], 8
jb 0x140040763
mov rbx, qword [rbx]
mov qword [rsi], rdx
mov word [rbx + rdx*2], bp
jmp 0x14004077a
sub rdx, qword [rsi]
xor r8d, r8d
mov rcx, rbx
call fcn.14000aabc
mov rcx, qword [rsp + 0x3b0]
xor rcx, rsp
call fcn.14024c6d0
lea r11, [rsp + 0x3c0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r9, str.Cannot_get_temp_path
lea rcx, [rsp + 0x20]
call fcn.1400259c0
lea rdx, [0x140325060]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.140009574
int3
Function at 0x140052760
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x20
call fcn.14024eae0
sub rsp, rax
mov rbx, r8
call fcn.1400521d4
xor r10d, r10d
test eax, eax
js 0x140052992
mov eax, dword [rbx + 0xf0]
shl eax, 2
movsxd r9, eax
test eax, eax
jle 0x1400527eb
lea rdx, [rbx + 8]
lea rdx, [rdx + r9*4]
lea r8, [rbx + 8]
mov ecx, dword [r8 - 8]
add r10, 4
mov eax, dword [rdx - 8]
sub r9, 4
mov dword [r8 - 8], eax
mov eax, dword [rdx - 4]
mov dword [rdx - 8], ecx
mov ecx, dword [r8 - 4]
mov dword [r8 - 4], eax
mov eax, dword [rdx]
mov dword [rdx - 4], ecx
mov ecx, dword [r8]
mov dword [r8], eax
lea r8, [r8 + 0x10]
mov eax, dword [rdx + 4]
mov dword [rdx], ecx
lea rdx, [rdx - 0x10]
mov ecx, dword [r8 - 0xc]
mov dword [r8 - 0xc], eax
mov dword [rdx + 0x14], ecx
cmp r10, r9
jl 0x1400527a2
mov r11d, 1
cmp dword [rbx + 0xf0], r11d
jle 0x140052990
lea r10, [rbx + 2]
lea rdi, [0x140000000]
lea r10, [r10 + 0x10]
inc r11d
mov r9d, dword [r10 - 2]
mov eax, r9d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x28faf0]
movzx eax, byte [r10 - 1]
mov r8d, dword [rdi + rdx*4 + 0x28e5c0]
movzx ecx, byte [rdi + rax*4 + 0x28faf0]
movzx eax, byte [r10]
xor r8d, dword [rdi + rcx*4 + 0x28eec0]
movzx ecx, byte [rdi + rax*4 + 0x28faf0]
movzx eax, r9b
mov r9d, dword [r10 + 2]
xor r8d, dword [rdi + rcx*4 + 0x28eac0]
movzx ecx, byte [rdi + rax*4 + 0x28faf0]
mov eax, r9d
shr rax, 0x18
xor r8d, dword [rdi + rcx*4 + 0x28fef0]
movzx edx, byte [rdi + rax*4 + 0x28faf0]
movzx eax, byte [r10 + 3]
mov dword [r10 - 2], r8d
mov r8d, dword [rdi + rdx*4 + 0x28e5c0]
movzx ecx, byte [rdi + rax*4 + 0x28faf0]
movzx eax, byte [r10 + 4]
xor r8d, dword [rdi + rcx*4 + 0x28eec0]
movzx ecx, byte [rdi + rax*4 + 0x28faf0]
movzx eax, r9b
mov r9d, dword [r10 + 6]
xor r8d, dword [rdi + rcx*4 + 0x28eac0]
movzx ecx, byte [rdi + rax*4 + 0x28faf0]
mov eax, r9d
shr rax, 0x18
xor r8d, dword [rdi + rcx*4 + 0x28fef0]
movzx edx, byte [rdi + rax*4 + 0x28faf0]
movzx eax, byte [r10 + 7]
mov dword [r10 + 2], r8d
mov r8d, dword [rdi + rdx*4 + 0x28e5c0]
movzx ecx, byte [rdi + rax*4 + 0x28faf0]
movzx eax, byte [r10 + 8]
xor r8d, dword [rdi + rcx*4 + 0x28eec0]
movzx ecx, byte [rdi + rax*4 + 0x28faf0]
movzx eax, r9b
mov r9d, dword [r10 + 0xa]
xor r8d, dword [rdi + rcx*4 + 0x28eac0]
movzx ecx, byte [rdi + rax*4 + 0x28faf0]
mov eax, r9d
shr rax, 0x18
xor r8d, dword [rdi + rcx*4 + 0x28fef0]
movzx edx, byte [rdi + rax*4 + 0x28faf0]
movzx eax, byte [r10 + 0xb]
mov dword [r10 + 6], r8d
mov r8d, dword [rdi + rdx*4 + 0x28e5c0]
movzx ecx, byte [rdi + rax*4 + 0x28faf0]
movzx eax, byte [r10 + 0xc]
xor r8d, dword [rdi + rcx*4 + 0x28eec0]
movzx ecx, byte [rdi + rax*4 + 0x28faf0]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x28eac0]
movzx ecx, byte [rdi + rax*4 + 0x28faf0]
xor r8d, dword [rdi + rcx*4 + 0x28fef0]
mov dword [r10 + 0xa], r8d
cmp r11d, dword [rbx + 0xf0]
jl 0x140052809
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140059fbc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
mov eax, 0x50
call fcn.14024eae0
sub rsp, rax
mov rax, qword [0x14035d028]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, qword [rbp + 0x60]
mov r15, rdx
mov r13, qword [rbp + 0x68]
mov rsi, rcx
mov qword [rbp - 0x28], r9
xor r12d, r12d
mov r14d, r8d
mov qword [rbp - 0x20], r13
movzx r9d, byte [rbx]
movzx eax, byte [rbx + 1]
movzx edx, byte [rbx + 4]
movzx ecx, byte [rbx + 6]
mov edi, dword [r13]
shl eax, 0x10
shl r9d, 0x18
or r9d, eax
shl edx, 0x18
movzx eax, byte [rbx + 2]
shl eax, 8
or r9d, eax
shl ecx, 8
movzx eax, byte [rbx + 3]
or r9d, eax
movzx eax, byte [rbx + 5]
shl eax, 0x10
or edx, eax
mov dword [rbp - 0x30], r9d
movzx eax, byte [rbx + 7]
or ecx, eax
mov byte [rbp - 0x15], r9b
or edx, ecx
mov eax, r9d
shr eax, 0x18
mov byte [rbp - 0x18], al
mov eax, r9d
shr eax, 0x10
mov byte [rbp - 0x17], al
mov eax, r9d
shr eax, 8
mov byte [rbp - 0x16], al
mov eax, edx
shr eax, 0x18
mov byte [rbp - 0x14], al
mov eax, edx
shr eax, 0x10
mov byte [rbp - 0x13], al
mov eax, edx
shr eax, 8
mov dword [rbp - 0x2c], edx
mov byte [rbp - 0x12], al
mov byte [rbp - 0x11], dl
test r8d, r8d
je 0x14005a15a
mov r13, qword [rbp - 0x28]
sub r15, rsi
mov r10b, dl
mov r8b, r9b
dec r14d
test edi, edi
jne 0x14005a100
mov rdx, r13
lea rcx, [rbp - 0x30]
call fcn.140058fb8
mov edx, dword [rbp - 0x2c]
mov r10d, edx
mov r9d, dword [rbp - 0x30]
mov eax, r9d
shr eax, 0x18
mov r8d, r9d
mov byte [rbp - 0x18], al
mov eax, r9d
shr eax, 0x10
mov byte [rbp - 0x17], al
mov eax, r9d
shr eax, 8
mov byte [rbp - 0x16], al
mov eax, edx
shr eax, 0x18
mov byte [rbp - 0x14], al
mov eax, edx
shr eax, 0x10
mov byte [rbp - 0x13], al
mov eax, edx
shr eax, 8
mov byte [rbp - 0x12], al
inc r12d
mov byte [rbp - 0x15], r8b
mov byte [rbp - 0x11], dl
movsxd rax, edi
mov cl, byte [rbp + rax - 0x18]
xor cl, byte [rsi]
mov byte [r15 + rsi], cl
inc rsi
inc edi
and edi, 7
test r14d, r14d
jne 0x14005a0a3
mov r13, qword [rbp - 0x20]
test r12d, r12d
je 0x14005a15a
mov eax, r9d
mov byte [rbx + 3], r8b
shr eax, 0x18
mov byte [rbx], al
mov eax, r9d
shr eax, 0x10
mov byte [rbx + 1], al
mov eax, edx
shr eax, 0x18
mov byte [rbx + 4], al
mov eax, edx
shr eax, 0x10
shr r9d, 8
shr edx, 8
mov byte [rbx + 6], dl
mov byte [rbx + 2], r9b
mov byte [rbx + 5], al
mov byte [rbx + 7], r10b
mov dword [r13], edi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14024c6d0
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005de0c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
lea r11, [rcx - 1]
mov r10, r8
mov ecx, dword [rdx + 8]
mov rbx, rdx
xor ecx, dword [r8 + 8]
shr r11, 0x3f
dec r11
and ecx, r11d
xor dword [rdx + 8], ecx
xor dword [r8 + 8], ecx
cmp r9d, 6
jg 0x14005de76
je 0x14005df55
mov ecx, r9d
sub ecx, 1
je 0x14005dfff
sub ecx, 1
je 0x14005dfdd
sub ecx, 1
je 0x14005dfbb
sub ecx, 1
je 0x14005df99
cmp ecx, 1
je 0x14005df77
jmp 0x14005de95
mov ecx, r9d
sub ecx, 7
je 0x14005df33
sub ecx, 1
je 0x14005df11
sub ecx, 1
je 0x14005deef
cmp ecx, 1
je 0x14005decd
movsxd rdi, r9d
mov r9d, 0xa
cmp rdi, r9
jle 0x14005decd
mov rax, qword [r10]
mov r8, qword [rbx]
mov rcx, qword [r8 + r9*8]
mov rdx, rcx
xor rdx, qword [rax + r9*8]
and rdx, r11
xor rcx, rdx
mov qword [r8 + r9*8], rcx
mov rax, qword [r10]
xor qword [rax + r9*8], rdx
inc r9
cmp r9, rdi
jl 0x14005dea3
mov rax, qword [r10]
mov r8, qword [rbx]
mov rcx, qword [r8 + 0x48]
mov rdx, rcx
xor rdx, qword [rax + 0x48]
and rdx, r11
xor rcx, rdx
mov qword [r8 + 0x48], rcx
mov rax, qword [r10]
xor qword [rax + 0x48], rdx
mov rax, qword [r10]
mov r8, qword [rbx]
mov rcx, qword [r8 + 0x40]
mov rdx, rcx
xor rdx, qword [rax + 0x40]
and rdx, r11
xor rcx, rdx
mov qword [r8 + 0x40], rcx
mov rax, qword [r10]
xor qword [rax + 0x40], rdx
mov rax, qword [r10]
mov r8, qword [rbx]
mov rcx, qword [r8 + 0x38]
mov rdx, rcx
xor rdx, qword [rax + 0x38]
and rdx, r11
xor rcx, rdx
mov qword [r8 + 0x38], rcx
mov rax, qword [r10]
xor qword [rax + 0x38], rdx
mov rax, qword [r10]
mov r8, qword [rbx]
mov rcx, qword [r8 + 0x30]
mov rdx, rcx
xor rdx, qword [rax + 0x30]
and rdx, r11
xor rcx, rdx
mov qword [r8 + 0x30], rcx
mov rax, qword [r10]
xor qword [rax + 0x30], rdx
mov rax, qword [r10]
mov r8, qword [rbx]
mov rcx, qword [r8 + 0x28]
mov rdx, rcx
xor rdx, qword [rax + 0x28]
and rdx, r11
xor rcx, rdx
mov qword [r8 + 0x28], rcx
mov rax, qword [r10]
xor qword [rax + 0x28], rdx
mov rax, qword [r10]
mov r8, qword [rbx]
mov rcx, qword [r8 + 0x20]
mov rdx, rcx
xor rdx, qword [rax + 0x20]
and rdx, r11
xor rcx, rdx
mov qword [r8 + 0x20], rcx
mov rax, qword [r10]
xor qword [rax + 0x20], rdx
mov rax, qword [r10]
mov r8, qword [rbx]
mov rcx, qword [r8 + 0x18]
mov rdx, rcx
xor rdx, qword [rax + 0x18]
and rdx, r11
xor rcx, rdx
mov qword [r8 + 0x18], rcx
mov rax, qword [r10]
xor qword [rax + 0x18], rdx
mov rax, qword [r10]
mov r8, qword [rbx]
mov rcx, qword [r8 + 0x10]
mov rdx, rcx
xor rdx, qword [rax + 0x10]
and rdx, r11
xor rcx, rdx
mov qword [r8 + 0x10], rcx
mov rax, qword [r10]
xor qword [rax + 0x10], rdx
mov rax, qword [r10]
mov r8, qword [rbx]
mov rcx, qword [r8 + 8]
mov rdx, rcx
xor rdx, qword [rax + 8]
and rdx, r11
xor rcx, rdx
mov qword [r8 + 8], rcx
mov rax, qword [r10]
xor qword [rax + 8], rdx
mov r8, qword [rbx]
mov rax, qword [r10]
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov rdx, qword [r8]
mov rcx, rdx
xor rcx, qword [rax]
and rcx, r11
xor rdx, rcx
mov qword [r8], rdx
mov rax, qword [r10]
xor qword [rax], rcx
ret
Function at 0x1400609b4
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
mov eax, 0x20
call fcn.14024eae0
sub rsp, rax
mov edi, dword [rdx + 8]
mov r14, rdx
mov rbx, rcx
test edi, edi
jne 0x1400609ef
xor edx, edx
call fcn.14005d85c
jmp 0x140060a82
mov r15, qword [rdx]
lea eax, [rdi - 1]
movsxd rsi, eax
xor eax, eax
cmp qword [r15 + rsi*8], 1
sete al
sub edi, eax
cmp r14, rbx
je 0x140060a26
cmp edi, dword [rcx + 0xc]
jg 0x140060a13
mov rax, rbx
jmp 0x140060a1a
mov edx, edi
call fcn.14005d6f4
test rax, rax
je 0x140060a87
mov eax, dword [r14 + 0x10]
mov dword [rbx + 0x10], eax
mov rcx, qword [r15 + rsi*8]
mov rax, qword [rbx]
mov rdx, rcx
xor rdx, 1
inc rdx
neg rdx
shl rdx, 0x3f
lea r8, [rax + rsi*8]
shr rcx, 1
je 0x140060a4a
mov qword [r8], rcx
test rsi, rsi
jle 0x140060a7f
sub r15, rax
lea r8, [r8 - 8]
dec rsi
mov rcx, qword [r15 + r8]
mov rax, rcx
shr rax, 1
or rax, rdx
mov rdx, rcx
xor rdx, 1
mov qword [r8], rax
inc rdx
neg rdx
shl rdx, 0x3f
test rsi, rsi
jg 0x140060a52
mov dword [rbx + 8], edi
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret

Function at 0x140069584
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x20
call fcn.14024eae0
sub rsp, rax
mov eax, dword [rdx + 8]
mov rsi, rdx
cmp eax, dword [r8 + 8]
mov rdi, r8
mov rbx, rcx
cmovge rdi, rdx
cmovge rsi, r8
mov edx, dword [rdi + 8]
cmp edx, dword [rcx + 0xc]
jg 0x1400695c1
mov rax, rcx
jmp 0x1400695c6
call fcn.14005d6f4
test rax, rax
je 0x140069667
xor r8d, r8d
lea r10d, [r8 + 1]
cmp dword [rsi + 8], r8d
jle 0x140069601
xor r9d, r9d
mov rax, qword [rsi]
add r8d, r10d
mov rcx, qword [rdi]
mov rdx, qword [r9 + rcx]
xor rdx, qword [rax + r9]
mov rax, qword [rbx]
mov qword [r9 + rax], rdx
lea r9, [r9 + 8]
cmp r8d, dword [rsi + 8]
jl 0x1400695df
mov edx, dword [rdi + 8]
cmp r8d, edx
jge 0x140069631
movsxd rax, r8d
lea r9, [rax*8]
mov rax, qword [rdi]
add r8d, r10d
mov rcx, qword [rbx]
mov rax, qword [r9 + rax]
mov qword [r9 + rcx], rax
lea r9, [r9 + 8]
mov edx, dword [rdi + 8]
cmp r8d, edx
jl 0x140069614
mov dword [rbx + 8], edx
test edx, edx
jle 0x14006965e
mov rax, qword [rbx]
sub rax, 8
movsxd r8, edx
lea r8, [rax + r8*8]
mov rax, qword [r8]
lea r8, [r8 - 8]
test rax, rax
jne 0x140069659
sub edx, r10d
test edx, edx
jg 0x140069646
mov dword [rbx + 8], edx
test edx, edx
jne 0x140069664
and dword [rbx + 0x10], 0
mov eax, r10d
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret