joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140038330
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 8], rbx
mov r9d, 0x23456789
mov dword [rdx], 0x12345678
mov dword [rdx + 4], r9d
mov rbx, r8
mov dword [rdx + 8], 0x34567890
mov r10, rcx
movzx eax, byte [rcx]
test al, al
je 0x1400383c3
mov r8d, 0x12345678
mov r11d, 0x34567890
nop word [rax + rax]
mov rcx, r8
lea r10, [r10 + 1]
xor rcx, rax
movzx eax, cl
mov ecx, r8d
shr ecx, 8
xor ecx, dword [rbx + rax*4]
movzx eax, cl
mov r8d, ecx
add eax, r9d
mov dword [rdx], ecx
imul r9d, eax, 0x8088405
mov ecx, r11d
shr ecx, 8
inc r9d
mov dword [rdx + 4], r9d
mov eax, r9d
shr rax, 0x18
xor rax, r11
movzx eax, al
xor ecx, dword [rbx + rax*4]
mov dword [rdx + 8], ecx
mov r11d, ecx
movzx eax, byte [r10]
test al, al
jne 0x140038370
mov rbx, qword [rsp + 8]
ret

Function at 0x1400383f0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x10108], 0
mov rbx, rcx
je 0x1400384b6
xor r11d, r11d
cmp dword [rcx + 0xd4], r11d
jbe 0x1400384b6
nop word [rax + rax]
movzx eax, byte [r11 + rbx + 0x100]
mov edx, dword [rbx + 0x10128]
mov ecx, edx
mov r8, qword [rbx + 0x10138]
xor rcx, rax
mov r10d, dword [rbx + 0x10130]
movzx eax, cl
and r10d, 0xfffd
mov ecx, dword [rbx + 0x10130]
or r10d, 2
shr edx, 8
xor edx, dword [r8 + rax*4]
mov dword [rbx + 0x10128], edx
movzx eax, dl
add eax, dword [rbx + 0x1012c]
imul eax, eax, 0x8088405
inc eax
mov dword [rbx + 0x1012c], eax
shr rax, 0x18
xor rax, rcx
shr ecx, 8
movzx eax, al
xor ecx, dword [r8 + rax*4]
mov eax, r10d
xor eax, 1
mov dword [rbx + 0x10130], ecx
imul eax, r10d
shr eax, 8
xor byte [r11 + rbx + 0x100], al
inc r11d
cmp r11d, dword [rbx + 0xd4]
jb 0x140038420
mov r9d, dword [rbx + 0xd4]
lea r8, [rbx + 0x100]
mov rdx, qword [rbx + 0x58]
mov rcx, qword [rbx + 0x38]
mov edi, dword [rbx + 0xd4]
call qword [rbx + 0x10]
xor edx, edx
mov dword [rbx + 0xd4], 0
cmp eax, edi
mov ecx, 0xffffffff
cmovne edx, ecx
mov ecx, dword [rbx + 0x84]
add qword [rbx + 0x10118], rdi
mov eax, edx
add qword [rbx + 0x10120], rcx
mov dword [rbx + 0x84], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140005550
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140005512
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x1400059b4
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x140a10eb8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x140a10eb4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140005a02
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400059fa
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140005ae9
inc ebx
add rax, 0x28
jmp 0x1400059da
mov rcx, r12
call fcn.1400061e1
mov rbp, rax
test rax, rax
jne 0x140005a21
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140005950
movsxd rbx, ebx
mov rax, qword [0x140a10eb8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.14000628f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140a10eb8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140005a83
mov rax, qword [0x140a10eb8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140005950
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140005ae3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140005ae3
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140a10eb8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140005ae3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140005950
inc dword [0x140a10eb4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140005f10
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140a10f20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140a10f00]
test rbx, rbx
je 0x140005f5c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140005f56
test eax, eax
jne 0x140005f56
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140005f2e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140006110
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140006133
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140006133
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140006134
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x14000616e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140006165
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140006170
inc r8d
add rax, 0x28
jmp 0x14000614c
xor eax, eax
ret

Function at 0x1400061e1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140a08150]
mov r8, rcx
mov rcx, r9
call fcn.140006110
test eax, eax
je 0x14000620d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140006134
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001c60
Capabilities:
Write file on windows

Disassembly:
test rcx, rcx
je 0x140001ccc
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0xfffffff5
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
and dword [rsp + 0x40], 0
mov rsi, rax
call fcn.14000177c
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rbx
mov rcx, rsi
test al, al
jne 0x140001cb7
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
jmp 0x140001cbd
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140001cd0
Capabilities:
Write file on windows

Disassembly:
test rcx, rcx
je 0x140001de1
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 0xfffffff5
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
and dword [rsp + 0x60], 0
mov rbp, rax
call fcn.14000177c
test al, al
jne 0x140001d31
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov r8d, edi
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x140001dcf
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
and qword [rsp + 0x38], 0
or r9d, 0xffffffff
and qword [rsp + 0x30], 0
mov ecx, eax
and dword [rsp + 0x28], 0
mov r8, rbx
and qword [rsp + 0x20], 0
xor edx, edx
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea esi, [rax + 1]
cmp esi, 1
jle 0x140001dcf
lfence
movsxd rcx, esi
call fcn.140005c2c
mov rdi, rax
test rax, rax
je 0x140001dcf
and qword [rsp + 0x38], 0
or r9d, 0xffffffff
and qword [rsp + 0x30], 0
mov r8, rbx
mov dword [rsp + 0x28], esi
xor edx, edx
mov ecx, r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, 1
jle 0x140001dc7
lfence
and qword [rsp + 0x20], 0
lea r8d, [rax - 1]
lea r9, [rsp + 0x60]
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call fcn.140005bb8
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x1400022b4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r10, r8
mov r9, rdx
mov rax, rcx
test rcx, rcx
jne 0x1400022c3
ret
test rdx, rdx
je 0x1400022f2
movzx r8d, byte [rax]
inc rax
movzx ecx, byte [r10]
mov edx, dword [r10]
xor r8, rcx
shr edx, 8
lea rcx, [0x14002a010]
mov ecx, dword [rcx + r8*4]
xor ecx, edx
mov dword [r10], ecx
sub r9, 1
jne 0x1400022c8
mov al, 1
ret
Function at 0x1400050ac
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
and dword [rax + 0x18], 0
mov rsi, r9
xor r9d, r9d
mov rbp, rdx
mov rbx, rcx
lea edi, [r9 + 2]
mov edx, edi
test r8d, r8d
je 0x1400051ec
lea r8, str.Reading_source
call fcn.140005294
mov r14, qword [rsp + 0xa0]
lea rcx, [rsp + 0x40]
and dword [r14], 0
call fcn.140006f14
lea rdx, [rbx + 0x38]
or r8d, 0xffffffff
lea rcx, [rsp + 0x40]
call fcn.140006fb0
mov rax, qword [rbx + 8]
mov r9, r14
mov r8d, dword [rsp + 0x98]
mov rcx, rsi
mov rdx, qword [rsp + 0x90]
call qword [rax + 0x30]
lea r9, [rsp + 0x40]
mov rcx, rbx
mov edx, eax
lea r8, [rsp + 0x80]
call fcn.140003ef8
cmp byte [rbx + 0x11], 0
movzx esi, al
mov eax, dword [rsp + 0x80]
je 0x140005192
test esi, esi
je 0x140005196
cmp dword [r14], 0
jne 0x140005170
test eax, eax
je 0x140005170
cmp eax, dword [rsp + 0x98]
ja 0x140005170
mov dword [r14], eax
and qword [rsp + 0x28], 0
mov r9d, 1
mov ecx, dword [r14]
mov edx, edi
test ecx, ecx
je 0x1400051ca
mov dword [rsp + 0x20], ecx
lea r8, str.Retrieved__u_bytes_in_block
jmp 0x1400051d5
test esi, esi
jne 0x140005170
and qword [rsp + 0x38], 0
lea r8, str.DownloadFile__s__failed__code_u
mov eax, dword [rsp + 0x80]
mov r9d, edi
mov dword [rsp + 0x30], eax
xor edx, edx
mov dword [rsp + 0x28], 1
mov rcx, rbx
mov qword [rsp + 0x20], rbp
call fcn.140005294
jmp 0x1400051dd
mov dword [rsp + 0x20], eax
lea r8, str.No_more_data__code_u
mov rcx, rbx
call fcn.140005294
lea rcx, [rsp + 0x40]
call fcn.140006f5c
jmp 0x14000527f
lea r8, str.Reading_file
call fcn.140005294
mov r14, qword [rsp + 0xa0]
mov rcx, rsi
mov r8d, dword [rsp + 0x98]
mov r9, r14
mov rdx, qword [rsp + 0x90]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test eax, eax
jne 0x14000525b
call qword [sym.imp.KERNEL32.dll_GetLastError]
and qword [rsp + 0x38], 0
lea r8, str.ReadFile__s__failed__code_u
mov dword [rsp + 0x30], eax
mov r9d, edi
mov dword [rsp + 0x28], 1
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rbp
call fcn.140005294
jmp 0x14000527f
and qword [rsp + 0x28], 0
lea r8, str.Read__u_bytes
mov eax, dword [r14]
mov r9d, 1
mov edx, edi
mov dword [rsp + 0x20], eax
mov rcx, rbx
call fcn.140005294
mov rbx, qword [rsp + 0x70]
mov eax, esi
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x1400059e0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x50
and qword [rax - 0x30], 0
mov rbx, r9
mov r14d, dword [rsp + 0x80]
mov r9d, 1
mov rdi, r8
mov dword [rax - 0x38], r14d
mov rbp, rdx
lea r8, str.Writing_target_file__u_bytes
mov rsi, rcx
lea edx, [r9 + 1]
call fcn.140005294
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, r14d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
test eax, eax
je 0x140005a69
cmp dword [rsp + 0x40], r14d
je 0x140005a9d
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetLastError]
and qword [rsp + 0x38], rbx
lea r8, str.WriteFile__s__failed__no_data__code_u
jmp 0x140005a7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
and qword [rsp + 0x38], 0
lea r8, str.WriteFile__s__failed__code_u
mov dword [rsp + 0x30], eax
mov r9d, 2
mov dword [rsp + 0x28], 1
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rbp
call fcn.140005294
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret

Function at 0x140006e68
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebp, ebp
mov rdi, rcx
test rcx, rcx
je 0x140006efa
cmp word [rcx], bp
je 0x140006efa
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test eax, eax
jne 0x140006ea8
xor edx, edx
mov rcx, rdi
call fcn.140007108
jmp 0x140006efc
lea ecx, [rsi + 2]
add rcx, rcx
call fcn.140005c2c
mov rbx, rax
test rax, rax
je 0x140006efa
mov word [rax], bp
lea ecx, [rsi + 1]
mov eax, 0xffff
mov r8d, esi
mov word [rbx + rcx*2], ax
mov rdx, rbx
mov rcx, rdi
mov word [rbx + rsi*2], ax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x140006ef2
cmp eax, esi
ja 0x140006ef2
cmp word [rbx], bp
je 0x140006ef2
lfence
mov rax, rbx
jmp 0x140006efc
mov rcx, rbx
call fcn.140005bb8
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140006fb0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
xor ebx, ebx
mov ebp, r8d
mov rsi, rdx
mov rdi, rcx
cmp byte [rcx + 8], bl
je 0x140006fe3
cmp qword [rcx], rdx
je 0x140006fe3
call fcn.140007074
mov qword [rdi], rsi
test rsi, rsi
jne 0x140006fef
xor eax, eax
jmp 0x14000702e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r14d, eax
jmp 0x140007017
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r14d
cmp ebp, 0xffffffff
je 0x14000700c
cmp eax, ebp
jae 0x14000702c
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rsi
call fcn.14000704c
test al, al
je 0x140006ffa
mov byte [rdi + 8], 1
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400072c0
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x14002a428]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
xor r15d, r15d
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x140007415
cmp word [rcx], r15w
je 0x140007415
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x250
call fcn.140008350
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1400073d3
mov r14b, r15b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1400073ce
lea ebx, [rax - 4]
mov qword [rsp + 0x30], r15
mov r8d, ebx
mov dword [rsp + 0x28], r15d
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400073c5
xorps xmm0, xmm0
lea rdx, [rsp + 0x40]
xor eax, eax
mov rcx, rdi
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x70], eax
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x1400073c5
test byte [rsp + 0x40], 0x10
jne 0x1400073c5
mov r14b, bl
test rsi, rsi
je 0x1400073c5
mov ecx, dword [rsp + 0x64]
or edx, 0xffffffff
cmp dword [rsp + 0x60], r15d
cmovne ecx, edx
mov dword [rsi], ecx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, r14b
jmp 0x140007417
mov bl, r15b
test byte [rbp - 0x80], 0x10
je 0x1400073ef
lea rdx, [rbp - 0x80]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140007408
jmp 0x1400073d6
mov ebx, 1
test rsi, rsi
je 0x140007408
mov ecx, dword [rbp - 0x60]
or edx, 0xffffffff
cmp dword [rbp - 0x64], r15d
cmovne ecx, edx
mov dword [rsi], ecx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
jmp 0x140007417
xor al, al
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1400074d0
mov rbx, qword [rsp + 0x320]
add rsp, 0x2e0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000665c
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x14005a5e0], 2
mov edi, r8d
mov esi, edx
mov rbx, rcx
jl 0x1400066bc
movdqa xmm0, xmmword [0x14003fb20]
movdqa xmm1, xmmword [0x14003fb10]
movdqa xmmword [0x140051380], xmm0
movdqa xmm0, xmmword [0x14003faf0]
movdqa xmmword [0x140051390], xmm1
movdqa xmm1, xmmword [0x14003fb00]
movdqa xmmword [0x1400513a0], xmm0
movdqa xmmword [0x1400513b0], xmm1
xor edx, edx
mov r8d, 0xf0
call fcn.140025c40
xor edx, edx
mov qword [rbx + 0x110], rdx
mov byte [rbx + 0x118], dl
mov rcx, qword [rbx + 0xf8]
lea rax, [0x14003fad0]
mov eax, dword [rdx + rax]
mov dword [rdx + rcx], eax
add rdx, 4
cmp rdx, 0x20
jl 0x1400066d8
mov rax, qword [rbx + 0xf8]
bts edi, 0xd
shl edi, 0x10
xor dword [rax], 0x2080020
mov rax, qword [rbx + 0xf8]
xor dword [rax + 8], esi
mov rax, qword [rbx + 0xf8]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
xor dword [rax + 0xc], edi
add rsp, 0x20
pop rdi
ret

Function at 0x140006f70
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x140006f96
movzx r9d, byte [rdx]
inc rdx
movzx eax, cl
xor r9, rax
shr ecx, 8
lea rax, [0x1400513c0]
xor ecx, dword [rax + r9*4]
sub r8, 1
jne 0x140006f75
mov eax, ecx
ret

Function at 0x1400071f8
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x70
cmp dword [rcx], 2
lea rbx, [rcx + 4]
mov rsi, rdx
mov rdi, rcx
mov r14d, 0x20
jne 0x140007284
and qword [r11 - 0x38], 0
lea r9d, [r14 - 0x1c]
and qword [r11 - 0x40], 0
lea r8, [r11 + 8]
mov eax, dword [rbx]
mov edx, r14d
and qword [r11 - 0x48], 0
mov rcx, rsi
and qword [r11 - 0x50], 0
mov dword [r11 + 8], eax
lea rax, [r11 - 0x28]
mov qword [r11 - 0x58], rax
call fcn.140007b60
xor r9d, r9d
lea r10, [rsp + 0x50]
xor r8d, r8d
movzx edx, byte [r10]
mov ecx, r9d
and ecx, 3
inc r9d
shl ecx, 3
inc r10
shl edx, cl
xor edx, r8d
mov r8d, edx
cmp r9d, r14d
jb 0x140007262
mov dword [rbx], edx
cmp dword [rdi], 3
jne 0x1400072cc
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
and qword [rsp + 0x38], 0
mov r9, r14
and qword [rsp + 0x30], 0
mov r8, rbx
and qword [rsp + 0x28], 0
mov rdx, r14
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.140007b60
mov r8, r14
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140026fb0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x1400077c0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], r9
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rax - 0x7c8]
sub rsp, 0x8a0
mov r14d, dword [rbp + 0x800]
mov rdi, r8
mov r13b, dl
mov r15, rcx
cmp r14d, 0x18
ja 0x1400079fb
xor esi, esi
lea rbx, [rcx + 0x148]
mov rdx, rdi
mov rcx, rbx
call fcn.140012954
test al, al
je 0x14000783b
lea rcx, [rbx + 0x20]
cmp dword [rcx + 0x30], r14d
jne 0x14000783b
mov rdx, qword [rbp + 0x7f0]
mov r8d, 0x10
call fcn.140026eb0
test eax, eax
je 0x140007a17
inc esi
add rbx, 0x98
cmp esi, 4
jb 0x140007808
mov rcx, qword [rbp + 0x7e8]
lea rdx, [rbp - 0x60]
mov esi, 0x800
mov r8d, esi
call fcn.140015b08
mov ecx, r14d
mov ebx, 1
shl ebx, cl
lea rcx, [rbp - 0x60]
call fcn.14002fe70
mov r8, qword [rbp + 0x7f0]
lea rcx, [rbp - 0x60]
mov rdx, rax
mov dword [rsp + 0x38], ebx
lea rax, [rsp + 0x60]
mov ebx, 0x10
mov qword [rsp + 0x30], rax
mov r9d, ebx
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.140007e44
mov edx, esi
lea rcx, [rbp - 0x60]
call fcn.140012c50
mov ecx, dword [r15 + 0x3a8]
mov eax, ecx
and eax, 3
imul rsi, rax, 0x98
lea eax, [rcx + 1]
add rsi, 0x148
mov dword [r15 + 0x3a8], eax
add rsi, r15
mov dword [rsi + 0x50], r14d
cmp rsi, rdi
je 0x140007901
mov r9b, byte [rbp + 0x800]
mov rcx, rsi
mov r8, qword [rdi + 8]
mov rdx, qword [rdi]
call fcn.140006fe4
mov al, byte [rdi + 0x18]
lea rcx, [rsi + 0x20]
mov rdx, qword [rbp + 0x7f0]
mov r8, rbx
mov byte [rsi + 0x18], al
call fcn.140026fb0
mov edi, 0x20
lea rdx, [rsp + 0x40]
mov r8d, edi
lea rcx, [rsi + 0x30]
call fcn.140026fb0
lea rcx, [rsi + 0x54]
mov r8d, edi
lea rdx, [rsp + 0x60]
call fcn.140026fb0
lea rcx, [rsi + 0x74]
mov r8d, edi
lea rdx, [rbp - 0x80]
call fcn.140026fb0
xor r9d, r9d
lea rcx, [rsi + 0x30]
mov r8b, 1
mov edx, edi
call fcn.140012a94
mov rcx, qword [rbp + 0x808]
test rcx, rcx
je 0x14000797a
mov r8, rdi
lea rdx, [rbp - 0x80]
call fcn.140026fb0
mov rbx, qword [rbp + 0x810]
test rbx, rbx
je 0x1400079c3
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 8]
call fcn.140025c40
lea rdx, [rsp + 0x60]
xor r8d, r8d
mov r9, rdi
mov al, byte [rdx]
mov rcx, r8
and ecx, 7
inc r8
inc rdx
xor byte [rcx + rbx], al
sub r9, 1
jne 0x14000799f
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.140012c50
mov rax, qword [rbp + 0x7f8]
test rax, rax
je 0x1400079ee
lea rcx, [r15 + 0x3b0]
mov qword [rsp + 0x20], rax
mov r9d, 0x100
lea r8, [rsp + 0x40]
mov dl, r13b
call fcn.140011f64
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140012c50
lea r11, [rsp + 0x8a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
mov edi, 0x20
lea rdx, [rbx + 0x30]
mov r8d, edi
lea rcx, [rsp + 0x40]
call fcn.140026fb0
xor r9d, r9d
lea rcx, [rsp + 0x40]
xor r8d, r8d
mov edx, edi
call fcn.140012a94
lea rdx, [rbx + 0x54]
mov r8d, edi
lea rcx, [rsp + 0x60]
call fcn.140026fb0
lea rdx, [rbx + 0x74]
mov r8d, edi
lea rcx, [rbp - 0x80]
call fcn.140026fb0
jmp 0x140007962