joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180046830
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1800468fc
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x1800468fc
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x180046915
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x1800468ec
cmp byte [rax], 0x5c
jne 0x1800468e6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x1800468e6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x1800468d2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x1800468e3
test r8b, 0x10
jne 0x1800468e6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x1800468e6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.180042970
test edi, edi
jne 0x180046850
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.180042960
int3

Function at 0x180049090
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1800490c4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1800490b0
ret
Function at 0x1800497a0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0xb0
mov rax, qword [0x180121040]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rsi, rcx
mov qword [rsp + 0x80], rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], r14
mov qword [rcx + 8], r14
mov qword [rcx + 0x10], r14
mov dword [rsp + 0x20], 1
mov rcx, qword [0x180122be8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
mov rcx, qword [0x180122be8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movsxd rcx, dword [rax + 0x3c]
movzx ebp, word [rcx + rbx + 6]
mov rcx, qword [0x180122be8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
mov rcx, qword [0x180122be8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movsxd rdi, dword [rax + 0x3c]
add rdi, rbx
mov rcx, qword [0x180122be8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
mov rcx, qword [0x180122be8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movsxd rcx, dword [rax + 0x3c]
movzx eax, word [rcx + rbx + 0x14]
lea rbx, [rdi + 0x18]
add rbx, rax
cmp r14w, bp
jae 0x180049961
mov edi, ebp
nop word [rax + rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x88], xmm0
mov qword [rsp + 0x98], r14
mov qword [rsp + 0xa0], r14
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], 0
jne 0x1800498a2
mov rdx, rbx
lea rcx, [rsp + 0x88]
call fcn.18001ae00
nop
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x30]
call fcn.18001be10
movups xmm2, xmmword [rbx]
movaps xmmword [rsp + 0x50], xmm2
movups xmm3, xmmword [rbx + 0x10]
movaps xmmword [rsp + 0x60], xmm3
movsd xmm4, qword [rbx + 0x20]
movsd qword [rsp + 0x70], xmm4
mov rdx, qword [rsi + 8]
cmp rdx, qword [rsi + 0x10]
je 0x18004992d
movaps xmm0, xmmword [rsp + 0x30]
movups xmmword [rdx], xmm0
movaps xmm1, xmmword [rsp + 0x40]
movups xmmword [rdx + 0x10], xmm1
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], socket
mov byte [rsp + 0x30], 0
movups xmmword [rdx + 0x20], xmm2
movups xmmword [rdx + 0x30], xmm3
movsd qword [rdx + 0x40], xmm4
add qword [rsi + 8], 0x48
jmp 0x18004993b
lea r8, [rsp + 0x30]
mov rcx, rsi
call fcn.1800493f0
nop
lea rcx, [rsp + 0x30]
call fcn.18001ce20
nop
lea rcx, [rsp + 0x88]
call fcn.18001ce20
add rbx, 0x28
sub rdi, 1
jne 0x180049880
mov rax, rsi
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1800cc550
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180049a50
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x180121040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x30], rdx
xor r13d, r13d
lea rcx, [rsp + 0x40]
call fcn.1800497a0
nop
mov rdi, qword [rsp + 0x40]
mov rbx, rdi
mov rbp, qword [rsp + 0x48]
cmp rdi, rbp
je 0x180049ae8
mov r15, qword [rsi + 0x18]
mov r12, qword [rsi + 0x10]
nop dword [rax + rax]
mov rdx, rsi
cmp r15, 0xf
jbe 0x180049abc
mov rdx, qword [rsi]
mov r8, qword [rbx + 0x10]
mov rcx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x180049acd
mov rcx, qword [rbx]
cmp r8, r12
jne 0x180049adf
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x180049b67
add rbx, 0x48
cmp rbx, rbp
jne 0x180049ab0
test rdi, rdi
je 0x180049c2d
cmp rdi, rbp
je 0x180049b0c
mov rcx, rdi
call fcn.18001ce20
add rdi, 0x48
cmp rdi, rbp
jne 0x180049af6
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
sub rcx, rdi
movabs rax, 0xe38e38e38e38e39
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*8]
shl rdx, 3
mov rax, rdi
cmp rdx, 0x1000
jb 0x180049c25
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180049c25
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rdx, rbx
mov rcx, r14
call fcn.18001be10
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [r14 + 0x20], xmm0
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [r14 + 0x30], xmm1
movsd xmm0, qword [rbx + 0x40]
movsd qword [r14 + 0x40], xmm0
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x180049c7e
mov rdi, qword [rsp + 0x48]
cmp rbx, rdi
je 0x180049bbd
mov rcx, rbx
call fcn.18001ce20
add rbx, 0x48
cmp rbx, rdi
jne 0x180049ba7
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
sub rcx, rbx
movabs rax, 0xe38e38e38e38e39
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*8]
shl rdx, 3
mov rax, rbx
cmp rdx, 0x1000
jb 0x180049c0d
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180049b60
mov rcx, rbx
call fcn.1800cc948
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
jmp 0x180049c7e
mov rcx, rdi
call fcn.1800cc948
mov r9d, 0x10
lea r8, str.Memcury::PE::Section::GetSection
lea rdx, str.Section_not_found
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [r14 + 0x20], xmm0
movups xmmword [r14 + 0x30], xmm0
mov qword [r14 + 0x40], rax
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], r13
mov qword [r14 + 0x18], 0xf
mov byte [r14], al
mov rcx, rsi
call fcn.18001ce20
mov rax, r14
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800cc550
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180050020
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x18005007d
lea rbx, [0x1800f9f60]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180050064
cmp r10, 2
jb 0x180050064
cmp byte [r9], r8b
jne 0x180050064
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x180050040
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1800500bf
lea rbx, [0x1800f9f60]
cmp r8b, 0x23
jne 0x1800500a3
cmp byte [r9], r8b
jne 0x1800500a3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x180050090
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180050200
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x18005021a
mov qword [r8], 0
lea rdx, [0x180100d64]
call fcn.1800500d0
mov rbx, rax
test rax, rax
jne 0x18005023a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x180050311
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180050311
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180050311
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180050311
cmp rdi, 0xffffffffffffffff
je 0x180050311
mov rax, qword [0x180122e20]
test rax, rax
je 0x1800502ae
inc dword [rax + 0xec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x180050311
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x1800502fe
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x180122e20]
test rax, rax
je 0x1800502f3
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18005031a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x18005030c
mov qword [r14], rdi
mov rax, rsi
jmp 0x18005031c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x180052d00
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xd0]
mov rax, qword [rcx + 0xd8]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x1800f9f60]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [0x180122e20]
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rcx + 0x3ebc], ebx
jne 0x180052d96
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.180064770
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x180057980
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x1800579d0
lea r11, [0x1800f9f60]
nop dword [rax]
cmp r9b, 0x23
jne 0x1800579b3
cmp byte [r8], r9b
jne 0x1800579b3
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1800579a0
mov rcx, qword [0x180122e20]
not eax
movsxd rdx, dword [rcx + 0x3e68]
mov r9, qword [rcx + 0x3e70]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x180057a31
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x180057a29
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x180057a2c
mov rdx, r8
test rdx, rdx
jne 0x180057a00
cmp r9, r10
je 0x180057a40
cmp dword [r9], eax
jne 0x180057a40
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret

Function at 0x180063320
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x53c8], 0
lea rbx, [rcx + 0x53d0]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x1800633c7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x18006337a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.180065300
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.180050740
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x53c8]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x53d8]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x180122e11]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x1800633cf
mov rcx, rbx
call fcn.180050740
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x180063940
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x180122e20]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x1800639a3
mov qword [rsp], rbx
lea rbx, [0x1800f9f60]
nop dword [rax]
cmp r9b, 0x23
jne 0x180063983
cmp byte [r8], r9b
jne 0x180063983
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x180063970
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5378]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x1800639d7
mov r10, qword [r10 + 0x5380]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x1800639de
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x1800639c4
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x180086bd0
Capabilities:
Hash data with crc32

Disassembly:
push rdi
sub rsp, 0x20
test dword [rcx + 0x10], 0x100000
mov rdi, rdx
je 0x180086c5c
movzx r9d, byte [rdx]
lea r8, [rdx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x180086c30
lea r11, [0x1800f9f60]
nop
cmp r9b, 0x23
jne 0x180086c13
cmp byte [r8], r9b
jne 0x180086c13
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x180086c00
mov rcx, qword [0x180122e20]
not eax
cmp dword [rcx + 0x3ed4], eax
jne 0x180086c47
mov dword [rcx + 0x3ed8], eax
cmp dword [rcx + 0x3f00], eax
jne 0x180086cb6
mov byte [rcx + 0x3f04], 1
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbx
xor edx, edx
mov rbx, qword [0x180122e20]
mov rcx, rdi
mov qword [rsp + 0x38], rsi
mov r8, qword [rbx + 0x3e88]
movsxd rax, dword [r8 + 0xd0]
mov r8, qword [r8 + 0xd8]
mov r8d, dword [r8 + rax*4 - 4]
call fcn.180050020
cmp dword [rbx + 0x3ebc], eax
mov esi, eax
mov rbx, qword [rsp + 0x30]
jne 0x180086caf
mov r8, rdi
mov edx, reloc.WS2_32.dll_inet_addr
mov ecx, eax
call fcn.180064770
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1800935f0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
sub rsp, 0xa8
cmp dword [0x180122c98], 0x1d
jl 0x180093823
movups xmm0, xmmword [0x180102590]
xor ecx, ecx
cmp dword [0x180121018], 2
movups xmm1, xmmword [0x1801025a0]
mov eax, dword [0x1801025e0]
movups xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [0x1801025b0]
movups xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [str.tfspirl_togerlt]
movups xmmword [rsp + 0x40], xmm1
movups xmm1, xmmword [0x1801025c0]
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x60], xmm1
mov dword [r11 - 0x28], eax
movzx eax, word [0x1801025e4]
mov word [r11 - 0x24], ax
jl 0x1800937ac
movdqa xmm0, xmmword [str.7777777777777777]
lea rdx, [r11 - 0x74]
movdqa xmm5, xmmword [0x18010ac80]
movdqa xmm4, xmmword [0x18010ae60]
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, dword [rsp + 0x20]
movaps xmmword [r11 - 0x18], xmm6
movdqa xmm6, xmmword [0x18010aca0]
nop dword [rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x18010ad80]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x18010ad80]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x50
jl 0x1800936a0
movaps xmm6, xmmword [rsp + 0x90]
cmp ecx, 0x56
jge 0x1800937ed
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop word [rax + rax]
mov eax, 0x51eb851f
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x32
movzx eax, cl
inc ecx
sub al, dl
add al, 0x37
xor byte [r8 - 1], al
cmp ecx, 0x56
jl 0x1800937c0
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xb0]
call fcn.18001c7b0
cmp dword [0x180122c98], 0x1d
mov rcx, qword [rax]
mov qword [0x180123638], rcx
jl 0x180093823
test rcx, rcx
setne al
add rsp, 0xa8
ret
mov al, 1
add rsp, 0xa8
ret
Function at 0x180093de0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
sub rsp, 0x88
movsd xmm0, qword [0x180122c90]
ucomisd xmm0, qword [0x18010a870]
jp 0x180094074
jne 0x180094074
movups xmm0, xmmword [0x1801024c8]
mov qword [rax - 8], rbx
xor ebx, ebx
cmp dword [0x180121018], 2
mov r8d, ebx
movups xmm1, xmmword [0x1801024d8]
movups xmmword [rax - 0x48], xmm0
movsd xmm0, qword [0x1801024e8]
movsd qword [rax - 0x28], xmm0
movups xmmword [rax - 0x38], xmm1
movzx eax, byte [0x1801024f0]
mov byte [rsp + 0x68], al
jl 0x180093f8c
movdqa xmm0, xmmword [str.7777777777777777]
lea rcx, [rsp + 0x44]
movdqa xmm5, xmmword [0x18010ac80]
movdqa xmm4, xmmword [0x18010ae60]
movdqa xmmword [rsp + 0x20], xmm0
mov edx, dword [rsp + 0x20]
movaps xmmword [rsp + 0x70], xmm7
movdqa xmm7, xmmword [0x18010aca0]
nop
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add r8d, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x18010ad80]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x18010ad80]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x28
jl 0x180093e80
movaps xmm7, xmmword [rsp + 0x70]
cmp r8d, 0x29
jge 0x180093fd1
movsxd rax, r8d
lea r9, [rsp + 0x40]
add r9, rax
nop word [rax + rax]
mov eax, 0x51eb851f
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x37
xor byte [r9 - 1], al
cmp r8d, 0x29
jl 0x180093fa0
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x90]
call fcn.18001c7b0
movsd xmm0, qword [0x180122c90]
ucomisd xmm0, qword [0x18010a870]
mov rcx, qword [rax]
mov qword [0x180124460], rcx
jp 0x18009406c
jne 0x18009406c
xorps xmm0, xmm0
mov qword [rsp + 0x30], rbx
test rcx, rcx
mov qword [rsp + 0x38], rbx
movups xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
jne 0x180094050
mov r8d, 0x1b
lea rdx, str.Couldnt_find_AbilityPatch_
call fcn.18001ae00
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.18008f2f0
mov rbx, qword [rsp + 0x80]
mov al, 1
add rsp, 0x88
ret
mov r8d, socket
lea rdx, str.Found_AbilityPatch_
call fcn.18001ae00
lea rcx, [rsp + 0x20]
call fcn.18008eff0
mov rbx, qword [rsp + 0x80]
mov al, 1
add rsp, 0x88
ret
Function at 0x180094080
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
sub rsp, 0xb8
cmp dword [0x180122c98], 5
jge 0x180094315
movups xmm0, xmmword [0x180102470]
movups xmm1, xmmword [0x180102480]
mov eax, dword [0x1801024c0]
movups xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [0x180102490]
movups xmmword [rsp + 0x50], xmm1
movups xmm1, xmmword [0x1801024a0]
movups xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [0x1801024b0]
movups xmmword [rsp + 0x70], xmm1
mov qword [r11 - 8], rbx
xor ebx, ebx
cmp dword [0x180121018], 2
mov ecx, ebx
movups xmmword [r11 - 0x38], xmm0
mov dword [r11 - 0x28], eax
jl 0x18009423c
movdqa xmm0, xmmword [str.7777777777777777]
lea rdx, [r11 - 0x74]
movdqa xmm5, xmmword [0x18010ac80]
movdqa xmm4, xmmword [0x18010ae60]
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, dword [rsp + 0x20]
movaps xmmword [r11 - 0x18], xmm6
movdqa xmm6, xmmword [0x18010aca0]
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x18010ad80]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x18010ad80]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x50
jl 0x180094130
movaps xmm6, xmmword [rsp + 0xa0]
cmp ecx, 0x54
jge 0x18009427d
movsxd rax, ecx
lea r8, [rsp + 0x40]
add r8, rax
nop word [rax + rax]
mov eax, 0x51eb851f
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x32
movzx eax, cl
inc ecx
sub al, dl
add al, 0x37
xor byte [r8 - 1], al
cmp ecx, 0x54
jl 0x180094250
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xc0]
call fcn.18001c7b0
cmp dword [0x180122c98], 5
mov rcx, qword [rax]
mov qword [0x180123620], rcx
jge 0x18009430d
xorps xmm0, xmm0
mov qword [rsp + 0x30], rbx
test rcx, rcx
mov qword [rsp + 0x38], rbx
movups xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
jne 0x1800942f1
mov r8d, 0x1a
lea rdx, str.Couldnt_find_GiveAbility_
call fcn.18001ae00
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.18008f2f0
mov rbx, qword [rsp + 0xb0]
mov al, 1
add rsp, 0xb8
ret
mov r8d, socket
lea rdx, str.Found_GiveAbility_
call fcn.18001ae00
lea rcx, [rsp + 0x20]
call fcn.18008eff0
mov rbx, qword [rsp + 0xb0]
mov al, 1
add rsp, 0xb8
ret