joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18004a6b0
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 [0x18011f040]
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.18004a400
nop
mov rdi, qword [rsp + 0x40]
mov rbx, rdi
mov rbp, qword [rsp + 0x48]
cmp rdi, rbp
je 0x18004a748
mov r15, qword [rsi + 0x18]
mov r12, qword [rsi + 0x10]
nop dword [rax + rax]
mov rdx, rsi
cmp r15, 0xf
jbe 0x18004a71c
mov rdx, qword [rsi]
mov r8, qword [rbx + 0x10]
mov rcx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x18004a72d
mov rcx, qword [rbx]
cmp r8, r12
jne 0x18004a73f
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18004a7c7
add rbx, 0x48
cmp rbx, rbp
jne 0x18004a710
test rdi, rdi
je 0x18004a88d
cmp rdi, rbp
je 0x18004a76c
mov rcx, rdi
call fcn.18001f2b0
add rdi, 0x48
cmp rdi, rbp
jne 0x18004a756
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 0x18004a885
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004a885
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.18001e7f0
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 0x18004a8de
mov rdi, qword [rsp + 0x48]
cmp rbx, rdi
je 0x18004a81d
mov rcx, rbx
call fcn.18001f2b0
add rbx, 0x48
cmp rbx, rdi
jne 0x18004a807
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 0x18004a86d
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004a7c0
mov rcx, rbx
call fcn.1800cb4b8
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
jmp 0x18004a8de
mov rcx, rdi
call fcn.1800cb4b8
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.18001f2b0
mov rax, r14
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800cb0c0
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 0x180050150
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 0x1800501ad
lea rbx, [0x1800f82b0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180050194
cmp r10, 2
jb 0x180050194
cmp byte [r9], r8b
jne 0x180050194
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 0x180050170
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1800501ef
lea rbx, [0x1800f82b0]
cmp r8b, 0x23
jne 0x1800501d3
cmp byte [r9], r8b
jne 0x1800501d3
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 0x1800501c0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180050330
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x18005034a
mov qword [r8], 0
lea rdx, [0x1800ff074]
call fcn.180050200
mov rbx, rax
test rax, rax
jne 0x18005036a
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 0x180050441
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 0x180050441
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180050441
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 0x180050441
cmp rdi, 0xffffffffffffffff
je 0x180050441
mov rax, qword [0x180120ea8]
test rax, rax
je 0x1800503de
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 0x180050441
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 0x18005042e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x180120ea8]
test rax, rax
je 0x180050423
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18005044a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x18005043c
mov qword [r14], rdi
mov rax, rsi
jmp 0x18005044c
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 0x180052e30
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, [0x1800f82b0]
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 [0x180120ea8]
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rcx + 0x3ebc], ebx
jne 0x180052ec6
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.1800648a0
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x180057ab0
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x180057b00
lea r11, [0x1800f82b0]
nop dword [rax]
cmp r9b, 0x23
jne 0x180057ae3
cmp byte [r8], r9b
jne 0x180057ae3
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 0x180057ad0
mov rcx, qword [0x180120ea8]
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 0x180057b61
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x180057b59
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x180057b5c
mov rdx, r8
test rdx, rdx
jne 0x180057b30
cmp r9, r10
je 0x180057b70
cmp dword [r9], eax
jne 0x180057b70
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret

Function at 0x180063450
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 0x1800634f7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x1800634aa
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.180065430
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.180050870
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, [0x180120e99]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x1800634ff
mov rcx, rbx
call fcn.180050870
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x180063a70
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x180120ea8]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x180063ad3
mov qword [rsp], rbx
lea rbx, [0x1800f82b0]
nop dword [rax]
cmp r9b, 0x23
jne 0x180063ab3
cmp byte [r8], r9b
jne 0x180063ab3
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 0x180063aa0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5378]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x180063b07
mov r10, qword [r10 + 0x5380]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x180063b0e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x180063af4
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 0x180086d00
Capabilities:
Hash data with crc32

Disassembly:
push rdi
sub rsp, 0x20
test dword [rcx + 0x10], 0x100000
mov rdi, rdx
je 0x180086d8c
movzx r9d, byte [rdx]
lea r8, [rdx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x180086d60
lea r11, [0x1800f82b0]
nop
cmp r9b, 0x23
jne 0x180086d43
cmp byte [r8], r9b
jne 0x180086d43
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 0x180086d30
mov rcx, qword [0x180120ea8]
not eax
cmp dword [rcx + 0x3ed4], eax
jne 0x180086d77
mov dword [rcx + 0x3ed8], eax
cmp dword [rcx + 0x3f00], eax
jne 0x180086de6
mov byte [rcx + 0x3f04], 1
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbx
xor edx, edx
mov rbx, qword [0x180120ea8]
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.180050150
cmp dword [rbx + 0x3ebc], eax
mov esi, eax
mov rbx, qword [rsp + 0x30]
jne 0x180086ddf
mov r8, rdi
mov edx, reloc.WS2_32.dll_inet_addr
mov ecx, eax
call fcn.1800648a0
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180093820
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
sub rsp, 0xa8
cmp dword [0x180120d50], 0x1d
jl 0x180093a55
movups xmm0, xmmword [0x180100940]
xor ecx, ecx
cmp dword [0x18011f018], 2
movups xmm1, xmmword [0x180100950]
mov eax, dword [0x180100990]
movups xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [0x180100960]
movups xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [str.pbwerh_rxkynpp]
movups xmmword [rsp + 0x40], xmm1
movups xmm1, xmmword [0x180100970]
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x60], xmm1
mov dword [r11 - 0x28], eax
movzx eax, word [0x180100994]
mov word [r11 - 0x24], ax
jl 0x1800939e4
movdqa xmm0, xmmword [0x180108f50]
lea rdx, [r11 - 0x74]
movdqa xmm5, xmmword [0x180108e50]
movdqa xmm4, xmmword [0x180109040]
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, dword [rsp + 0x20]
movaps xmmword [r11 - 0x18], xmm6
movdqa xmm6, xmmword [0x180108e80]
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
paddd xmm1, xmm2
psrad xmm1, 5
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 [0x180108f30]
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
paddd xmm1, xmm3
psrad xmm1, 5
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 [0x180108f30]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x50
jl 0x1800938d0
movaps xmm6, xmmword [rsp + 0x90]
cmp ecx, 0x56
jge 0x180093a1f
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop
mov eax, 0x92492493
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x38
movzx eax, cl
inc ecx
sub al, dl
add al, 0x39
xor byte [r8 - 1], al
cmp ecx, 0x56
jl 0x1800939f0
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xb0]
call fcn.18001e430
cmp dword [0x180120d50], 0x1d
mov rcx, qword [rax]
mov qword [0x1801216d0], rcx
jl 0x180093a55
test rcx, rcx
setne al
add rsp, 0xa8
ret
mov al, 1
add rsp, 0xa8
ret
Function at 0x180094010
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
sub rsp, 0x88
movsd xmm0, qword [0x180120d48]
ucomisd xmm0, qword [0x180108910]
jp 0x1800942a7
jne 0x1800942a7
movups xmm0, xmmword [str.z_ne_f]
mov qword [rax - 8], rbx
xor ebx, ebx
cmp dword [0x18011f018], 2
mov r8d, ebx
movups xmm1, xmmword [0x180100888]
movups xmmword [rax - 0x48], xmm0
movsd xmm0, qword [0x180100898]
movsd qword [rax - 0x28], xmm0
movups xmmword [rax - 0x38], xmm1
movzx eax, byte [0x1801008a0]
mov byte [rsp + 0x68], al
jl 0x1800941c4
movdqa xmm0, xmmword [0x180108f50]
lea rcx, [rsp + 0x44]
movdqa xmm5, xmmword [0x180108e50]
movdqa xmm4, xmmword [0x180109040]
movdqa xmmword [rsp + 0x20], xmm0
mov edx, dword [rsp + 0x20]
movaps xmmword [rsp + 0x70], xmm7
movdqa xmm7, xmmword [0x180108e80]
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
paddd xmm1, xmm2
psrad xmm1, 5
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 [0x180108f30]
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
paddd xmm1, xmm3
psrad xmm1, 5
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 [0x180108f30]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x28
jl 0x1800940b0
movaps xmm7, xmmword [rsp + 0x70]
cmp r8d, 0x29
jge 0x180094204
movsxd rax, r8d
lea r9, [rsp + 0x40]
add r9, rax
nop
mov eax, 0x92492493
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x38
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x39
xor byte [r9 - 1], al
cmp r8d, 0x29
jl 0x1800941d0
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x90]
call fcn.18001e430
movsd xmm0, qword [0x180120d48]
ucomisd xmm0, qword [0x180108910]
mov rcx, qword [rax]
mov qword [0x180121fc0], rcx
jp 0x18009429f
jne 0x18009429f
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 0x180094283
mov r8d, 0x1b
lea rdx, str.Couldnt_find_AbilityPatch_
call fcn.18001d0a0
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.18008f420
mov rbx, qword [rsp + 0x80]
mov al, 1
add rsp, 0x88
ret
mov r8d, socket
lea rdx, str.Found_AbilityPatch_
call fcn.18001d0a0
lea rcx, [rsp + 0x20]
call fcn.18008f120
mov rbx, qword [rsp + 0x80]
mov al, 1
add rsp, 0x88
ret
Function at 0x1800942c0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
sub rsp, 0xb8
cmp dword [0x180120d50], 5
jge 0x180094557
movups xmm0, xmmword [0x180100820]
movups xmm1, xmmword [0x180100830]
mov eax, dword [0x180100870]
movups xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [0x180100840]
movups xmmword [rsp + 0x50], xmm1
movups xmm1, xmmword [0x180100850]
movups xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [0x180100860]
movups xmmword [rsp + 0x70], xmm1
mov qword [r11 - 8], rbx
xor ebx, ebx
cmp dword [0x18011f018], 2
mov ecx, ebx
movups xmmword [r11 - 0x38], xmm0
mov dword [r11 - 0x28], eax
jl 0x180094484
movdqa xmm0, xmmword [0x180108f50]
lea rdx, [r11 - 0x74]
movdqa xmm5, xmmword [0x180108e50]
movdqa xmm4, xmmword [0x180109040]
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, dword [rsp + 0x20]
movaps xmmword [r11 - 0x18], xmm6
movdqa xmm6, xmmword [0x180108e80]
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
paddd xmm1, xmm2
psrad xmm1, 5
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 [0x180108f30]
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
paddd xmm1, xmm3
psrad xmm1, 5
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 [0x180108f30]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x50
jl 0x180094370
movaps xmm6, xmmword [rsp + 0xa0]
cmp ecx, 0x54
jge 0x1800944bf
movsxd rax, ecx
lea r8, [rsp + 0x40]
add r8, rax
nop
mov eax, 0x92492493
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x38
movzx eax, cl
inc ecx
sub al, dl
add al, 0x39
xor byte [r8 - 1], al
cmp ecx, 0x54
jl 0x180094490
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xc0]
call fcn.18001e430
cmp dword [0x180120d50], 5
mov rcx, qword [rax]
mov qword [0x1801216b8], rcx
jge 0x18009454f
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 0x180094533
mov r8d, 0x1a
lea rdx, str.Couldnt_find_GiveAbility_
call fcn.18001d0a0
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.18008f420
mov rbx, qword [rsp + 0xb0]
mov al, 1
add rsp, 0xb8
ret
mov r8d, socket
lea rdx, str.Found_GiveAbility_
call fcn.18001d0a0
lea rcx, [rsp + 0x20]
call fcn.18008f120
mov rbx, qword [rsp + 0xb0]
mov al, 1
add rsp, 0xb8
ret
Function at 0x1800acf30
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x1800acf91
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x1800acf50
mov ecx, dword [r9]
jmp 0x1800ad078
cmp ecx, 0x4e0
jb 0x1800ad078
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x1800acfb0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x1800ad000
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret