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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1401fb3a0]
mov dword [rax], 1
mov rax, qword [0x1401fb3b0]
mov dword [rax], 1
mov rax, qword [0x1401fb3c0]
mov dword [rax], 1
mov rax, qword [0x1401fb320]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d8
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140001504
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000152a
cmp eax, 0x20b
je 0x140001551
jmp 0x140001580
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000153d
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000156c
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14014b0e0
Capabilities:
Query environment variable

Disassembly:
push r13
mov eax, 0x10078
push r12
call fcn.1401d62a0
sub rsp, rax
xor eax, eax
mov r8d, 0x28
mov rdx, rcx
lea r12, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea r13, [rsp + 0x70]
mov rcx, r12
call fcn.140168c80
mov rdx, r13
mov r8d, 0x10000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14014b141
mov rcx, r13
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop r12
pop r13
ret

Function at 0x14014b150
Capabilities:
Set environment variable

Disassembly:
push r13
push r12
sub rsp, 0x78
xor eax, eax
mov r8d, 0x28
lea r13, [rsp + 0x20]
mov r12, rdx
mov rdx, rcx
mov word [rsp + 0x20], ax
mov rcx, r13
call fcn.140168c80
mov rdx, r12
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x78
pop r12
pop r13
ret
Function at 0x14014b2a0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0x70
mov rbx, rdx
mov r14, r8
mov r15, rcx
call fcn.140164530
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python311.dll_PyObject_GetAttrString]
mov rcx, rbx
mov r12, rax
call qword [sym.imp.python311.dll_PyUnicode_FromString]
mov r13, rax
test r14, r14
je 0x14014b35a
mov rdx, r14
mov rcx, rbx
call fcn.14014b150
mov rcx, r14
mov rdx, 0xffffffffffffffff
call sub.python311.dll_PyUnicode_FromWideChar
mov rdx, r13
mov rcx, r12
mov r14, rax
mov r8, rax
call qword [sym.imp.python311.dll_PyObject_SetItem]
test eax, eax
jne 0x14014b39c
sub qword [r14], 1
jne 0x14014b321
mov rcx, r14
call fcn.14014b210
sub qword [r13], 1
jne 0x14014b330
mov rcx, r13
call fcn.14014b210
sub qword [r12], 1
jne 0x14014b34c
mov rcx, r12
add rsp, 0x70
pop rbx
pop r12
pop r13
pop r14
pop r15
jmp fcn.14014b210
add rsp, 0x70
pop rbx
pop r12
pop r13
pop r14
pop r15
ret
lea r14, [rsp + 0x20]
mov r8d, 0x28
mov rdx, rbx
mov word [rsp + 0x20], 0
mov rcx, r14
call fcn.140168c80
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r13
mov rcx, r12
call qword [sym.imp.python311.dll_PyObject_DelItem]
test eax, eax
je 0x14014b321
mov rcx, r15
call fcn.14014b220
jmp 0x14014b321
mov ecx, 1
call qword [sym.imp.python311.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python311.dll_Py_Exit]
nop
nop word cs:[rax + rax]
nop
Function at 0x1401cb280
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x14021a5a9], 0
mov r12, rcx
mov r13, rdx
mov rdi, r8
je 0x1401cb308
lea rdx, [0x1401f9762]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1401cb420
mov rsi, qword [0x14021a460]
jmp 0x1401cb2c5
lea rsi, [rdx + rax + 4]
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rsi
mov ebx, eax
call sub.msvcrt.dll_strlen
lea rdx, [rsi + rax + 1]
mov eax, dword [rdx]
test ebx, ebx
jne 0x1401cb2c0
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, r12
mov rdx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp fcn.1401b8c50
mov r8d, 0xa
mov edx, 3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x14021a460], rax
mov rdx, rax
mov r9d, dword [rax]
lea rax, [rax + 4]
mov qword [0x14021a460], rax
mov eax, dword [rdx + 4]
lea rcx, [rdx + 8]
mov qword [0x14021a460], rcx
test eax, eax
je 0x1401cb408
sub eax, 1
lea r8, [rdx + rax + 9]
mov eax, 0xffffffff
nop word [rax + rax]
movzx edx, byte [rcx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add rcx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
cmp r8, rcx
jne 0x1401cb370
not eax
cmp r9d, eax
jne 0x1401cb488
mov byte [0x14021a5a9], 1
jmp 0x1401cb29d
cmp byte [0x14021a5a8], 0
jne 0x1401cb2b4
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x14021af08], rax
call rbx
mov qword [0x14021af00], rax
call rbx
mov qword [0x14021aef8], rax
call rbx
mov qword [0x14021aef0], rax
call rbx
mov qword [0x14021aee8], rax
call rbx
mov qword [0x14021aee0], rax
call rbx
mov qword [0x14021aed8], rax
call rbx
mov byte [0x14021a5a8], 1
mov qword [0x14021aed0], rax
jmp 0x1401cb2b4
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1401d4fa0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1401e6300
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1401e6300
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x1401d5c52
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14021b3c8]
test eax, eax
je 0x1401d5cea
lea rax, [0x14021b3a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14021b3d0]
mov qword [rbp - 8], rax
jmp 0x1401d5cce
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1401d5cc2
cmp qword [rbp - 0x10], 0
je 0x1401d5cc2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1401d5c88
lea rax, [0x14021b3a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1401d5ceb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1401d5df0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1401d5e18
mov eax, 0
jmp 0x1401d5e66
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1401d5e41
mov eax, 0
jmp 0x1401d5e66
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1401d5e61
mov eax, 0
jmp 0x1401d5e66
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1401d5e6c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1401d5eea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1401d5ee1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1401d5ee1
mov rax, qword [rbp - 8]
jmp 0x1401d5eff
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1401d5eb4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000f7cc
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140090638], 2
mov edi, r8d
mov esi, edx
mov rbx, rcx
jl 0x14000f828
movaps xmm0, xmmword [0x140066000]
movaps xmm1, xmmword [0x140066010]
movdqa xmmword [0x1400744c0], xmm0
movaps xmm0, xmmword [0x140066020]
movdqa xmmword [0x1400744b0], xmm1
movaps xmm1, xmmword [0x140066030]
movdqa xmmword [0x1400744a0], xmm0
movdqa xmmword [0x140074490], xmm1
xor edx, edx
mov r8d, 0xf0
call fcn.140055c00
xor r11d, r11d
mov qword [rbx + 0x110], r11
mov byte [rbx + 0x118], r11b
mov rcx, qword [rbx + 0xf8]
lea rax, [0x140065f40]
mov eax, dword [r11 + rax]
mov dword [r11 + rcx], eax
add r11, 4
cmp r11, 0x20
jl 0x14000f846
mov rax, qword [rbx + 0xf8]
bts edi, 0xd
xor dword [rax], 0x2080020
mov rax, qword [rbx + 0xf8]
shl edi, 0x10
xor dword [rax + 8], esi
mov rax, qword [rbx + 0xf8]
mov rbx, qword [rsp + 0x38]
xor dword [rax + 0xc], edi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140015fec
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
xor r13d, r13d
mov sil, dl
mov rdi, rcx
mov word [rcx + 0x83da], r13w
mov byte [rcx + 0x83d1], r13b
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
mov bpl, 1
jmp 0x140016053
cmp bpl, r13b
jne 0x140016043
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
cmp sil, r13b
je 0x14001603e
call fcn.140015e80
jmp 0x140016043
call fcn.140015b68
mov rcx, qword [rsp + 0x40]
call fcn.140055470
mov bpl, r13b
mov rcx, r12
lea rdx, [rsp + 0x40]
call fcn.140013714
mov r12, rax
cmp rax, r13
jne 0x140016025
cmp sil, r13b
jne 0x140016072
mov rcx, rdi
call fcn.140013c14
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x140016088
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov rsi, rcx
lea rcx, [0x140066468]
call fcn.140056f6c
mov rbx, rax
test rax, rax
je 0x14001611c
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
and qword [rsp + 0x28], rax
and qword [rsp + 0x30], rax
and qword [rsp + 0x38], rax
and qword [rsp + 0x40], rax
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.140007624
nop
mov r8, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
mov rdx, rdi
mov rcx, rbx
call fcn.140047fd0
mov rdx, rdi
mov rcx, rsi
call fcn.140015f84
mov byte [rsi + 0x83d9], 0
test rdi, rdi
je 0x14001611c
mov rcx, rdi
call fcn.140055470
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1400168d4
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x850
mov rax, qword [0x140072fc0]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rax, rdx
mov rbx, r8
mov rdi, rcx
lea rdx, [rsp + 0x40]
mov r8d, 0x400
mov rcx, rax
call fcn.140045750
call fcn.140057288
add rax, 0x30
cmp rdi, rax
jne 0x140016924
cmp byte [0x140075af8], 0
jne 0x140016943
call fcn.140057288
add rax, 0x60
cmp rdi, rax
jne 0x1400169cf
cmp byte [0x140075af9], 0
je 0x1400169cf
mov qword [rsp + 0x20], rbx
lea rbx, [0x140077300]
mov esi, 0x1800
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rcx, rbx
mov rdx, rsi
call fcn.140055438
mov r8, rsi
lea rsi, [0x140075b00]
mov rdx, rsi
mov rcx, rbx
call fcn.140047f7c
mov rdx, rsi
mov rcx, rsi
call qword [sym.imp.USER32.dll_CharToOemA]
call fcn.140057288
add rax, 0x30
sub rdi, rax
neg rdi
sbb ecx, ecx
add ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
or rcx, 0xffffffffffffffff
mov rdi, rsi
mov r11, rax
xor eax, eax
lea r9, [rsp + 0x34]
and qword [rsp + 0x20], rax
repne scasb al, byte [rdi]
mov rdx, rsi
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140016a36
mov qword [rsp + 0x20], rbx
lea rbx, [0x140077300]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov edx, 0x1800
mov rcx, rbx
call fcn.140055438
call fcn.140057288
xor ecx, ecx
add rax, 0x60
cmp rdi, rax
setne cl
add ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
or rcx, 0xffffffffffffffff
mov rdi, rbx
mov r11, rax
xor eax, eax
lea r9, [rsp + 0x30]
and qword [rsp + 0x20], rax
repne scasw ax, word [rdi]
mov rdx, rbx
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.140054e00
add rsp, 0x850
pop rdi
pop rsi
pop rbx
ret

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

Disassembly:
cmp dword [rcx + 4], 0
mov r8, rcx
jne 0x14001761f
xor r9d, r9d
mov r10d, r9d
mov r11d, 8
mov edx, r10d
mov ecx, r10d
shr edx, 1
mov eax, edx
mov r10d, edx
xor eax, 0xedb88320
and cl, 1
cmovne r10d, eax
sub r11, 1
jne 0x1400175ed
inc r9d
mov dword [r8], r10d
add r8, 4
cmp r9d, 0x100
jb 0x1400175e4
repz ret
Function at 0x140017698
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov r10, r8
mov rbx, rdx
mov r11d, ecx
lea rsi, [0x140081b10]
test r8, r8
je 0x1400176e1
test bl, 7
je 0x1400176e1
movzx ecx, byte [rbx]
movzx eax, r11b
inc rbx
xor rcx, rax
mov eax, r11d
mov r11d, dword [rsi + rcx*4]
shr eax, 8
xor r11d, eax
sub r10, 1
jne 0x1400176bc
cmp r10, 8
jb 0x14001778e
mov rdi, r10
shr rdi, 3
mov rax, rdi
imul rax, rax, 0xfffffffffffffff8
add r10, rax
xor r11d, dword [rbx]
mov r9d, dword [rbx + 4]
add rbx, 8
mov eax, r9d
shr eax, 0x10
movzx edx, al
mov eax, r9d
mov r8d, dword [rsi + rdx*4 + 0x400]
shr eax, 0x18
movzx ecx, al
mov eax, r9d
xor r8d, dword [rsi + rcx*4]
shr eax, 8
movzx ecx, al
mov eax, r11d
xor r8d, dword [rsi + rcx*4 + 0x800]
shr eax, 0x18
movzx ecx, al
mov eax, r11d
xor r8d, dword [rsi + rcx*4 + 0x1000]
shr eax, 0x10
movzx ecx, al
mov eax, r11d
xor r8d, dword [rsi + rcx*4 + 0x1400]
shr eax, 8
movzx ecx, al
movzx eax, r9b
xor r8d, dword [rsi + rcx*4 + 0x1800]
xor r8d, dword [rsi + rax*4 + 0xc00]
movzx eax, r11b
mov r11d, r8d
xor r11d, dword [rsi + rax*4 + 0x1c00]
sub rdi, 1
jne 0x1400176fc
test r10, r10
je 0x1400177b3
movzx ecx, byte [rbx]
movzx eax, r11b
inc rbx
xor rcx, rax
mov eax, r11d
mov r11d, dword [rsi + rcx*4]
shr eax, 8
xor r11d, eax
sub r10, 1
jne 0x140017793
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov eax, r11d
ret

Function at 0x1400177e8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov r8, rcx
xor r9d, r9d
mov r10d, 0x100
mov r11, r9
mov ebx, 8
mov rdx, r11
mov cl, r11b
movabs r11, 0xc96c5795d7870f42
shr rdx, 1
mov rax, rdx
xor rax, r11
and cl, 1
mov r11, rdx
cmovne r11, rax
sub rbx, 1
jne 0x140017801
mov qword [r8], r11
inc r9
add r8, 8
sub r10, 1
jne 0x1400177f9
mov rbx, qword [rsp + 8]
ret
Function at 0x1400178b4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov r10, r8
mov r11, rdx
mov r9, rcx
lea rdi, [0x14007db10]
test r8, r8
je 0x1400178fb
test r11b, 7
je 0x1400178fb
movzx ecx, byte [r11]
movzx eax, r9b
inc r11
xor rcx, rax
mov rax, r9
mov r9, qword [rdi + rcx*8]
shr rax, 8
xor r9, rax
sub r10, 1
jne 0x1400178d3
mov rax, r10
shr rax, 3
lea rbx, [r11 + rax*8]
jmp 0x140017998
mov r8, qword [r11]
xor r8, r9
mov rax, r8
shr rax, 0x30
movzx edx, al
mov rax, r8
mov r9, qword [rdi + rdx*8 + 0x800]
shr rax, 0x38
xor r9, qword [rdi + rax*8]
mov rax, r8
shr rax, 0x28
movzx ecx, al
mov rax, r8
xor r9, qword [rdi + rcx*8 + 0x1000]
shr rax, 0x20
movzx ecx, al
mov rax, r8
xor r9, qword [rdi + rcx*8 + 0x1800]
shr rax, 0x18
movzx ecx, al
mov rax, r8
xor r9, qword [rdi + rcx*8 + 0x2000]
shr rax, 0x10
movzx ecx, al
mov rax, r8
xor r9, qword [rdi + rcx*8 + 0x2800]
shr rax, 8
movzx ecx, al
movzx eax, r8b
xor r9, qword [rdi + rcx*8 + 0x3000]
xor r9, qword [rdi + rax*8 + 0x3800]
add r11, 8
cmp r11, rbx
jb 0x14001790b
and r10d, 7
jbe 0x1400179c9
movzx ecx, byte [r11]
movzx eax, r9b
inc r11
xor rcx, rax
mov rax, r9
mov r9, qword [rdi + rcx*8]
shr rax, 8
xor r9, rax
sub r10, 1
jne 0x1400179a7
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov rax, r9
ret

Function at 0x140017b14
Capabilities:
Encode data using xor

Disassembly:
mov r10, rdx
mov r9, rcx
test r8, r8
je 0x140017bc6
mov eax, 0x1234
add word [r9 + 0x10b8], ax
mov dx, word [r9 + 0x10b8]
mov rax, rdx
shr rax, 1
movzx eax, al
movzx ecx, word [r9 + rax*4 + 0xba4]
mov rax, rdx
xor word [r9 + 0x10ba], cx
shr rax, 1
movzx eax, al
movzx ecx, word [r9 + rax*4 + 0xba6]
sub word [r9 + 0x10bc], cx
movzx eax, word [r9 + 0x10bc]
mov ecx, 1
xor ax, dx
mov word [r9 + 0x10b8], ax
movzx eax, word [r9 + 0x10be]
ror ax, cl
xor ax, word [r9 + 0x10ba]
ror ax, cl
xor word [r9 + 0x10b8], ax
mov word [r9 + 0x10be], ax
movzx eax, word [r9 + 0x10b8]
shr ax, 8
xor byte [r10], al
inc r10
sub r8, 1
jne 0x140017b23
repz ret

Function at 0x140017bc8
Capabilities:
Encode data using add xor sub operations

Disassembly:
mov r8, rcx
lea r9, [rdx + 1]
mov r10d, 4
movzx eax, byte [r9 - 1]
mov edx, dword [r8 + rax*4 + 0xba4]
xor dword [r8 + 0x10a4], edx
movzx eax, byte [r9]
add r9, 4
mov ecx, dword [r8 + rax*4 + 0xba4]
xor dword [r8 + 0x10a8], ecx
movzx eax, byte [r9 - 3]
mov ecx, dword [r8 + rax*4 + 0xba4]
xor dword [r8 + 0x10ac], ecx
movzx eax, byte [r9 - 2]
mov ecx, dword [r8 + rax*4 + 0xba4]
xor dword [r8 + 0x10b0], ecx
sub r10, 1
jne 0x140017bd5
repz ret
Function at 0x140017f50
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x200
mov rax, qword [0x140072fc0]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov rbp, qword [rsp + 0x260]
mov r14d, 0x40
mov r13, r9
mov r12, r8
mov rbx, rdx
mov rsi, rcx
cmp rdx, r14
jbe 0x140017fd4
lea rcx, [rsp + 0x100]
call fcn.140044aa8
lea rcx, [rsp + 0x100]
mov r8, rbx
mov rdx, rsi
call fcn.140044d34
lea rdx, [rsp + 0x1b0]
lea rcx, [rsp + 0x100]
call fcn.140044df8
lea rsi, [rsp + 0x1b0]
lea ebx, [r14 - 0x20]
xor edi, edi
mov dl, 0x36
mov r8, rdi
cmp rbx, rdi
jbe 0x140018006
lea rax, [rsp + 0x170]
mov r9, rsi
sub r9, rax
lea rcx, [rsp + r8 + 0x170]
inc r8
mov al, byte [r9 + rcx]
xor al, dl
mov byte [rcx], al
cmp r8, rbx
jb 0x140017fee
cmp rbx, r14
jae 0x14001801e
mov r8, r14
lea rcx, [rsp + rbx + 0x170]
sub r8, rbx
call fcn.140055c00
lea rcx, [rsp + 0x20]
call fcn.140044aa8
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x20]
mov r8, r14
call fcn.140044d34
lea rcx, [rsp + 0x20]
mov r8, r13
mov rdx, r12
call fcn.140044d34
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x20]
call fcn.140044df8
lea rcx, [rsp + 0x90]
call fcn.140044aa8
mov dl, 0x5c
cmp rbx, rdi
jbe 0x140018095
lea rax, [rsp + 0x170]
sub rsi, rax
lea rcx, [rsp + rdi + 0x170]
inc rdi
mov al, byte [rsi + rcx]
xor al, dl
mov byte [rcx], al
cmp rdi, rbx
jb 0x14001807e
cmp rbx, r14
jae 0x1400180ad
mov r8, r14
lea rcx, [rsp + rbx + 0x170]
sub r8, rbx
call fcn.140055c00
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x90]
mov r8, r14
call fcn.140044d34
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x90]
mov r8d, 0x20
call fcn.140044d34
lea rcx, [rsp + 0x90]
mov rdx, rbp
call fcn.140044df8
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.140054e00
add rsp, 0x200
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140018114
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x120
mov rax, qword [0x140072fc0]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rdi, qword [rsp + 0x180]
mov rsi, qword [rsp + 0x188]
mov rbp, qword [rsp + 0x190]
mov rax, r8
mov r8d, 0x40
mov r12, rcx
cmp r9, r8
mov r13, rdx
lea rcx, [rsp + 0xa0]
cmovb r8, r9
mov rdx, rax
mov rbx, r9
call fcn.140054fe0
lea rax, [rsp + 0x58]
lea r9, [rbx + 4]
lea r8, [rsp + 0xa0]
mov rdx, r13
mov rcx, r12
mov qword [rsp + 0x20], rax
mov byte [rsp + rbx + 0xa0], 0
mov byte [rsp + rbx + 0xa1], 0
mov byte [rsp + rbx + 0xa2], 0
mov byte [rsp + rbx + 0xa3], 1
call fcn.140017f50
mov r14d, 0x20
lea rcx, [rsp + 0x78]
lea rdx, [rsp + 0x58]
mov r8, r14
call fcn.140054fe0
mov r11d, dword [rsp + 0x198]
lea eax, [r14 - 0x10]
dec r11d
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rbp
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], r11d
lea rsi, [rsp + 0x40]
lea rdi, [rsp + 0x30]
lea ebp, [rax - 0xd]
cmp dword [rdi], 0
jbe 0x140018265
mov ebx, dword [rdi]
lea rax, [rsp + 0xf0]
lea r8, [rsp + 0x58]
mov r9, r14
mov rdx, r13
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.140017f50
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0xf0]
mov r8, r14
call fcn.140054fe0
xor r11d, r11d
mov rcx, r14
mov al, byte [rsp + r11 + 0x58]
inc r11
xor byte [rsp + r11 + 0x77], al
sub rcx, 1
jne 0x14001824c
sub rbx, 1
jne 0x140018211
mov rcx, qword [rsi]
lea rdx, [rsp + 0x78]
mov r8, r14
call fcn.140054fe0
add rdi, 4
add rsi, 8
sub rbp, 1
jne 0x14001820a
lea edx, [rbp + 0x44]
lea rcx, [rsp + 0xa0]
call fcn.140042b2c
lea rcx, [rsp + 0x78]
mov rdx, r14
call fcn.140042b2c
lea rcx, [rsp + 0x58]
mov rdx, r14
call fcn.140042b2c
lea rcx, [rsp + 0xf0]
mov rdx, r14
call fcn.140042b2c
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.140054e00
add rsp, 0x120
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret