joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400040a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400040cd
xor eax, eax
jmp 0x140004239
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140004107
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140004107
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140004239
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000422c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000414a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140004175
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140004231
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400041e4
sub eax, 1
je 0x1400041e4
cmp eax, 2
jne 0x14000422c
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140004231
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140004212
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000422c
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140004231
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140008170
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140004360
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x50]
xor ebp, ebp
mov rax, qword [rsp + 0x58]
mov r13, r9
mov rbx, qword [rsp + 0x68]
mov r12, rdx
mov qword [r14], r8
mov qword [rbx], rax
mov rax, qword [r14]
cmp rax, r9
je 0x1400044f1
mov r15, qword [rsp + 0x60]
lea r8d, [rbp + 1]
mov rdi, qword [rbx]
mov r11d, 0x2800
mov r9d, 0x3ff
mov r10d, 0x2400
cmp rdi, r15
je 0x1400044f1
movzx edx, word [r12]
xor sil, sil
movzx ecx, word [rax]
cmp r8w, dx
jae 0x1400043fb
lea eax, [r10 + rcx]
cmp ax, r9w
ja 0x140004518
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x140004412
mov eax, ecx
add cx, r11w
cmp cx, r9w
ja 0x140004412
shl eax, 0xa
mov sil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x140004425
movzx r9d, al
mov r10d, ebp
mov r11d, ebp
jmp 0x140004472
mov r9d, eax
cmp eax, 0x800
jae 0x14000443f
shr r9d, 6
mov r10d, r8d
or r9b, 0xc0
mov r11d, r8d
jmp 0x140004472
cmp eax, 0x10000
jae 0x140004459
shr r9d, 0xc
mov r10d, 2
or r9b, 0xe0
mov r11d, r10d
jmp 0x140004472
shr r9d, 0x12
mov r10d, 3
movzx r11d, sil
or r9b, 0xf0
xor r11d, 1
add r11d, r11d
lea r8d, [r11 + 1]
mov rdx, r15
sub rdx, rdi
mov ecx, r8d
cmp rdx, rcx
jl 0x1400044f1
add qword [r14], 2
test sil, sil
jne 0x140004493
cmp r10d, 3
jae 0x14000449f
mov rcx, qword [rbx]
mov r8d, r11d
mov byte [rcx], r9b
inc qword [rbx]
mov r9, qword [rbx]
test r8d, r8d
jle 0x1400044ce
lea ecx, [r10 + r10*2]
add ecx, ecx
nop dword [rax]
sub ecx, 6
mov edx, eax
shr edx, cl
dec r8d
and dl, 0x3f
or dl, 0x80
mov byte [r9], dl
inc qword [rbx]
mov r9, qword [rbx]
test r8d, r8d
jg 0x1400044b0
shr eax, 0xa
mov r8d, 1
test sil, sil
mov ecx, r8d
cmovne ecx, eax
mov word [r12], cx
mov rax, qword [r14]
cmp rax, r13
jne 0x1400043af
mov rax, qword [rsp + 0x40]
cmp rax, qword [r14]
sete bpl
mov eax, ebp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, 2
jmp 0x1400044ff
Function at 0x140004e50
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004f23
cmp byte [rcx + 0x71], 0
je 0x140004f23
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140004f1f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140004ee4
sub eax, 1
je 0x140004ee8
cmp eax, 2
jne 0x140004f1f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140008170
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140004f16
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140004f1f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140004ecc
xor al, al
jmp 0x140004ecc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140008170
add rsp, 0x60
pop rbx
ret
Function at 0x140006500
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbp, rax
test rax, rax
je 0x140006695
cmp qword [rdi + 0x18], 7
jbe 0x14000655d
mov rdx, qword [rdi]
mov r9, rdx
mov rcx, qword [rdi + 0x10]
lea r8, [rdx + rcx*2]
jmp 0x140006568
mov r9, rdi
mov rax, qword [rdi + 0x10]
lea r8, [rdi + rax*2]
mov rdx, r9
lea rcx, [rsp + 0x38]
call fcn.140007320
nop
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0xf
cmova rdx, qword [rsp + 0x38]
mov r8d, 4
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
test rax, rax
jne 0x1400065ac
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140006655
xor ebx, ebx
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1400065ed
cmp dword [rsp + 0x5c], 4
je 0x1400065ed
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 3
jl 0x1400065b0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp ebx, 3
jl 0x140006655
call fcn.140006470
lea rdx, str._Servi
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140007450
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 7
jbe 0x14000662a
mov rdi, qword [rdi]
mov rdx, rdi
mov rcx, rax
call fcn.140007b80
lea rdx, str._possivelmente_est
mov rcx, rax
call fcn.140007450
lea rdx, [0x140007630]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x140006695
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006690
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006690
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008190
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140008170
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140008bbc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140008c06
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140008c06
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140008c06
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140008c06
cmp dword [rcx + 0x84], 0xe
jbe 0x140008c06
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140008c08
xor al, al
add rsp, 0x28
ret
Function at 0x1400011c0
Capabilities:
Hash data using fnv

Disassembly:
movsx eax, byte [rcx]
test al, al
jne 0x1400011ca
mov eax, edx
ret
xor eax, edx
imul edx, eax, 0x1000193
inc rcx
jmp fcn.1400011c0

Function at 0x140002554
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000259e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000259e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000259e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000259e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000259e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400025a0
xor al, al
add rsp, 0x28
ret
Function at 0x1800013d0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov rdi, rcx
lea rax, [0x180032570]
mov qword [rcx], rax
cmp byte [rcx + 0x678c], 0
je 0x18000141b
mov rbx, qword [rcx + 0x6790]
test rbx, rbx
je 0x18000141b
mov rcx, rbx
call fcn.180011020
mov rcx, rbx
call fcn.180025cf0
nop
mov rcx, qword [rdi + 0xad10]
test rcx, rcx
je 0x18000142d
call fcn.180025cf8
nop
mov rcx, qword [rdi + 0x89c0]
test rcx, rcx
je 0x18000143f
call fcn.180025cf8
nop
lea rcx, [rdi + 0x67b8]
call fcn.180011fa0
nop
lea rbx, [rdi + 0x20ec]
mov qword [rsp + 0x48], rbx
lea rcx, [rbx + 0x3a78]
call fcn.1800102a0
nop
lea rcx, [rbx + 0x2e54]
call fcn.1800102a0
nop
lea rcx, [rbx + 0x2230]
call fcn.1800102a0
nop
lea rcx, [rbx + 0x112c]
call fcn.180008bc0
nop
lea rcx, [rbx + 0x6c]
call fcn.180008bc0
nop
lea rcx, [rdi + 0x102c]
call fcn.180008bc0
nop
mov rcx, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp fcn.18000f250
Function at 0x180006970
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [0x180041f10], 2
mov edi, r8d
mov esi, edx
mov rbx, rcx
jl 0x1800069cc
movaps xmm0, xmmword [0x1800327b0]
movaps xmm1, xmmword [0x1800327c0]
movdqa xmmword [0x18003bc90], xmm0
movaps xmm0, xmmword [0x1800327d0]
movdqa xmmword [0x18003bc80], xmm1
movaps xmm1, xmmword [0x1800327e0]
movdqa xmmword [0x18003bc70], xmm0
movdqa xmmword [0x18003bc60], xmm1
xor edx, edx
mov r8d, pe_nt_image_headers64
call fcn.180025ee0
mov qword [rbx + 0x110], 0
mov byte [rbx + 0x118], 0
mov rax, qword [rbx + 0xf8]
bts edi, 0xd
mov dword [rax], 0x6a09e667
mov rax, qword [rbx + 0xf8]
shl edi, 0x10
mov dword [rax + 4], 0xbb67ae85
mov rax, qword [rbx + 0xf8]
mov dword [rax + 8], 0x3c6ef372
mov rax, qword [rbx + 0xf8]
mov dword [rax + 0xc], 0xa54ff53a
mov rax, qword [rbx + 0xf8]
mov dword [rax + 0x10], 0x510e527f
mov rax, qword [rbx + 0xf8]
mov dword [rax + 0x14], 0x9b05688c
mov rax, qword [rbx + 0xf8]
mov dword [rax + 0x18], 0x1f83d9ab
mov rax, qword [rbx + 0xf8]
mov dword [rax + 0x1c], 0x5be0cd19
mov rax, qword [rbx + 0xf8]
xor dword [rax], 0x2080020
mov rax, qword [rbx + 0xf8]
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 0x180007b70
Capabilities:
Hash data with crc32

Disassembly:
cmp dword [rcx + 4], 0
jne 0x180007baf
xor r8d, r8d
nop dword [rax]
mov eax, r8d
mov edx, 8
test al, 1
je 0x180007b95
shr eax, 1
xor eax, 0xedb88320
jmp 0x180007b97
shr eax, 1
sub rdx, 1
jne 0x180007b88
inc r8d
mov dword [rcx], eax
add rcx, 4
cmp r8d, 0x100
jb 0x180007b80
repz ret

Function at 0x180007cb0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
mov r11, r8
mov rbx, rdx
mov r10d, ecx
lea rsi, [0x18003ccb0]
test r8, r8
je 0x180007cf6
nop dword [rax + rax]
test bl, 7
je 0x180007cf6
movzx r8d, byte [rbx]
movzx eax, r10b
inc rbx
xor r8, rax
mov eax, r10d
mov r10d, dword [rsi + r8*4]
shr eax, 8
xor r10d, eax
sub r11, 1
jne 0x180007cd0
cmp r11, 8
jb 0x180007db7
mov qword [rsp + 0x10], rdi
mov rdi, r11
shr rdi, 3
mov rax, rdi
imul rax, rax, 0xfffffffffffffff8
add r11, rax
nop word [rax + rax]
xor r10d, 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, r10d
xor r8d, dword [rsi + rcx*4 + 0x800]
shr eax, 0x18
movzx ecx, al
mov eax, r10d
xor r8d, dword [rsi + rcx*4 + 0x1000]
shr eax, 0x10
movzx ecx, al
mov eax, r10d
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, r10b
mov r10d, r8d
xor r10d, dword [rsi + rax*4 + 0x1c00]
sub rdi, 1
jne 0x180007d20
mov rdi, qword [rsp + 0x10]
test r11, r11
je 0x180007de0
nop dword [rax]
movzx ecx, byte [rbx]
movzx eax, r10b
inc rbx
xor rcx, rax
mov eax, r10d
mov r10d, dword [rsi + rcx*4]
shr eax, 8
xor r10d, eax
sub r11, 1
jne 0x180007dc0
mov eax, r10d
mov rbx, qword [rsp + 0x18]
pop rsi
ret

Function at 0x180007e20
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
add rcx, 0xba4
mov rsi, rdx
call fcn.180007b70
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
mov rdx, rsi
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
or ecx, 0xffffffff
call fcn.180007cb0
mov word [rbx + 0x10b8], ax
shr eax, 0x10
mov word [rbx + 0x10ba], ax
xor eax, eax
mov word [rbx + 0x10be], ax
mov word [rbx + 0x10bc], ax
movzx eax, byte [rsi]
test al, al
je 0x180007ec0
movzx edx, al
movzx ecx, al
inc rsi
movzx eax, word [rbx + rdx*4 + 0xba4]
xor ax, word [rbx + 0x10bc]
xor ax, cx
mov word [rbx + 0x10bc], ax
movzx eax, word [rbx + rdx*4 + 0xba6]
add ax, cx
add word [rbx + 0x10be], ax
mov al, byte [rsi]
test al, al
jne 0x180007e86
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180007ef0
Capabilities:
Encode data using xor

Disassembly:
mov r10, rdx
mov r9, rcx
test r8, r8
je 0x180007fae
mov r11d, 0x1234
nop word [rax + rax]
add word [r9 + 0x10b8], r11w
mov dx, word [r9 + 0x10b8]
inc r10
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 - 1], al
sub r8, rcx
jne 0x180007f10
repz ret

Function at 0x180008330
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x208
mov rax, qword [0x18003a7d8]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov r13, qword [rsp + 0x260]
mov r12, r9
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
cmp rdx, 0x40
jbe 0x1800083ae
lea rcx, [rsp + 0x100]
call fcn.180016d80
lea rcx, [rsp + 0x100]
mov r8, rdi
mov rdx, rsi
call fcn.180017260
lea rdx, [rsp + 0x1b0]
lea rcx, [rsp + 0x100]
call fcn.180017340
lea rsi, [rsp + 0x1b0]
mov edi, 0x20
xor ebx, ebx
mov rdx, rbx
test rdi, rdi
je 0x1800083e9
lea rax, [rsp + 0x170]
mov r8, rsi
sub r8, rax
nop word [rax + rax]
lea rcx, [rsp + rdx + 0x170]
inc rdx
movzx eax, byte [r8 + rcx]
xor al, 0x36
mov byte [rcx], al
cmp rdx, rdi
jb 0x1800083d0
cmp rdi, 0x40
jae 0x180008407
mov r8d, 0x40
lea rcx, [rsp + rdi + 0x170]
mov dl, 0x36
sub r8, rdi
call fcn.180025ee0
lea rcx, [rsp + 0x20]
call fcn.180016d80
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x20]
mov r8d, 0x40
call fcn.180017260
lea rcx, [rsp + 0x20]
mov r8, r12
mov rdx, rbp
call fcn.180017260
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x20]
call fcn.180017340
lea rcx, [rsp + 0x90]
call fcn.180016d80
test rdi, rdi
je 0x180008488
lea rax, [rsp + 0x170]
sub rsi, rax
nop dword [rax + rax]
lea rcx, [rsp + rbx + 0x170]
inc rbx
movzx eax, byte [rsi + rcx]
xor al, 0x5c
mov byte [rcx], al
cmp rbx, rdi
jb 0x180008470
cmp rdi, 0x40
jae 0x1800084a6
mov r8d, 0x40
lea rcx, [rsp + rdi + 0x170]
mov dl, 0x5c
sub r8, rdi
call fcn.180025ee0
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x90]
mov r8d, 0x40
call fcn.180017260
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x90]
mov r8d, 0x20
call fcn.180017260
lea rcx, [rsp + 0x90]
mov rdx, r13
call fcn.180017340
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.180025eb0
add rsp, 0x208
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180008510
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x128
mov rax, qword [0x18003a7d8]
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.180026260
lea rax, [rsp + 0x78]
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.180008330
lea rcx, [rsp + 0x78]
lea r11, [rsp + 0x58]
mov qword [rsp + 0x40], rdi
mov rax, qword [rcx]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rbp
mov qword [r11], rax
mov rax, qword [rcx + 8]
mov dword [rsp + 0x34], 0x10
mov qword [r11 + 8], rax
mov rax, qword [rcx + 0x10]
mov dword [rsp + 0x38], 0x10
mov qword [r11 + 0x10], rax
mov rax, qword [rcx + 0x18]
lea rsi, [rsp + 0x40]
mov qword [r11 + 0x18], rax
mov eax, dword [rsp + 0x198]
lea rdi, [rsp + 0x30]
dec eax
mov ebp, 3
mov dword [rsp + 0x30], eax
nop word [rax + rax]
mov eax, dword [rdi]
test eax, eax
je 0x1800086bb
mov rbx, rax
nop dword [rax]
lea rax, [rsp + 0xf0]
lea r8, [rsp + 0x78]
mov r9d, 0x20
mov rdx, r13
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.180008330
lea rcx, [rsp + 0xf0]
lea r11, [rsp + 0x78]
mov rax, qword [rcx]
mov qword [r11], rax
mov rax, qword [rcx + 8]
mov qword [r11 + 8], rax
mov rax, qword [rcx + 0x10]
mov qword [r11 + 0x10], rax
mov rax, qword [rcx + 0x18]
xor ecx, ecx
mov qword [r11 + 0x18], rax
lea edx, [rcx + 8]
movzx eax, byte [rsp + rcx + 0x78]
add rcx, 4
xor byte [rsp + rcx + 0x54], al
movzx eax, byte [rsp + rcx + 0x75]
xor byte [rsp + rcx + 0x55], al
movzx eax, byte [rsp + rcx + 0x76]
xor byte [rsp + rcx + 0x56], al
movzx eax, byte [rsp + rcx + 0x77]
xor byte [rsp + rcx + 0x57], al
sub rdx, 1
jne 0x180008683
sub rbx, 1
jne 0x180008630
mov rcx, qword [rsi]
lea rdx, [rsp + 0x58]
add rdi, 4
mov rax, qword [rdx]
add rsi, 8
sub rbp, 1
mov qword [rcx], rax
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
mov rax, qword [rdx + 0x10]
mov qword [rcx + 0x10], rax
mov rax, qword [rdx + 0x18]
mov qword [rcx + 0x18], rax
jne 0x180008620
lea edx, [rbp + 0x44]
lea rcx, [rsp + 0xa0]
call fcn.1800152b0
lea edx, [rbp + 0x20]
lea rcx, [rsp + 0x58]
call fcn.1800152b0
lea edx, [rbp + 0x20]
lea rcx, [rsp + 0x78]
call fcn.1800152b0
lea edx, [rbp + 0x20]
lea rcx, [rsp + 0xf0]
call fcn.1800152b0
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.180025eb0
add rsp, 0x128
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800094c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x18003a7d8]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp dword [rcx], 2
mov rdi, rdx
mov rbx, rcx
jne 0x180009594
mov eax, dword [rcx + 4]
mov r9d, 4
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x38]
lea edx, [r9 + 0x1c]
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.180008330
mov dword [rbx + 4], 0
mov r8d, dword [rbx + 4]
mov r9d, 0xfffffffe
lea r10, [rsp + 0x39]
nop word [rax + rax]
movzx eax, byte [r10 - 1]
movzx edx, byte [r10 + 1]
lea ecx, [r9 - 2]
and ecx, 3
add r10, 4
shl ecx, 3
shl eax, cl
lea ecx, [r9 - 1]
xor r8d, eax
movzx eax, byte [r10 - 4]
and ecx, 3
shl ecx, 3
shl eax, cl
mov ecx, r9d
xor r8d, eax
movzx eax, byte [r10 - 2]
and ecx, 3
shl ecx, 3
shl edx, cl
lea ecx, [r9 + 1]
add r9d, 4
and ecx, 3
xor r8d, edx
shl ecx, 3
shl eax, cl
xor r8d, eax
lea eax, [r9 + 2]
cmp eax, 0x20
jb 0x180009530
mov dword [rbx + 4], r8d
cmp dword [rbx], 3
jne 0x1800095dc
lea rax, [rsp + 0x38]
mov r9d, 0x20
lea r8, [rbx + 4]
mov rdx, r9
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.180008330
lea rcx, [rsp + 0x38]
mov rax, qword [rcx]
mov qword [rbx + 4], rax
mov rax, qword [rcx + 8]
mov qword [rbx + 0xc], rax
mov rax, qword [rcx + 0x10]
mov qword [rbx + 0x14], rax
mov rax, qword [rcx + 0x18]
mov qword [rbx + 0x1c], rax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180025eb0
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x180009970
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1e0
mov rax, qword [0x18003a7d8]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
cmp byte [r9 + 0x100], 0
mov r12, qword [rsp + 0x240]
mov r13, qword [rsp + 0x248]
mov r14, qword [rsp + 0x258]
mov r15, qword [rsp + 0x260]
mov rsi, r9
mov edi, r8d
movzx ebp, dl
mov rbx, rcx
je 0x180009b2e
test r8d, r8d
je 0x180009b2e
mov dword [rcx + 0xa98], r8d
lea rdx, [rsp + 0xd0]
mov r8d, 0x80
mov rcx, r9
call fcn.1800152d0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xd0]
mov r8d, 0x80
call fcn.180018460
sub edi, 1
je 0x180009aa9
sub edi, 1
je 0x180009a9a
sub edi, 1
je 0x180009a8b
sub edi, 1
je 0x180009a6d
cmp edi, 1
jne 0x180009b09
mov eax, dword [rsp + 0x250]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], eax
lea r9, [rsp + 0xd0]
mov r8, rsi
movzx edx, bpl
mov rcx, rbx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r12
call fcn.180008750
jmp 0x180009b09
lea r9, [rsp + 0xd0]
mov r8, rsi
movzx edx, bpl
mov rcx, rbx
mov qword [rsp + 0x20], r12
call fcn.180007fb0
jmp 0x180009b09
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.1800097b0
jmp 0x180009b09
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.180007e20
jmp 0x180009b09
movzx ecx, byte [rsp + 0x50]
mov byte [rbx + 0x10b6], 0
mov byte [rbx + 0x10b5], 0
mov byte [rbx + 0x10b4], 0
test cl, cl
je 0x180009b09
xor eax, eax
xor r9d, r9d
lea r8, [rsp + 0x50]
xor r10d, r10d
nop word [rax + rax]
add r10b, cl
xor r9b, cl
add al, cl
mov cl, byte [r8 + 1]
inc r8
rol al, 1
test cl, cl
jne 0x180009ae0
mov byte [rbx + 0x10b6], al
mov byte [rbx + 0x10b5], r9b
mov byte [rbx + 0x10b4], r10b
lea rcx, [rsp + 0x50]
mov edx, 0x80
call fcn.1800152b0
lea rcx, [rsp + 0xd0]
mov edx, 0x100
call fcn.1800152b0
mov al, 1
jmp 0x180009b30
xor al, al
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.180025eb0
mov rbx, qword [rsp + 0x230]
add rsp, 0x1e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret