joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18004a3f0
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 [0x18011f040]
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 [0x180120bd8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
mov rcx, qword [0x180120bd8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movsxd rcx, dword [rax + 0x3c]
movzx ebp, word [rcx + rbx + 6]
mov rcx, qword [0x180120bd8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
mov rcx, qword [0x180120bd8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movsxd rdi, dword [rax + 0x3c]
add rdi, rbx
mov rcx, qword [0x180120bd8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
mov rcx, qword [0x180120bd8]
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 0x18004a5b1
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 0x18004a4f2
mov rdx, rbx
lea rcx, [rsp + 0x88]
call fcn.18001d0a0
nop
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x30]
call fcn.18001e7f0
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 0x18004a57d
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 0x18004a58b
lea r8, [rsp + 0x30]
mov rcx, rsi
call fcn.18004a040
nop
lea rcx, [rsp + 0x30]
call fcn.18001f2b0
nop
lea rcx, [rsp + 0x88]
call fcn.18001f2b0
add rbx, 0x28
sub rdi, 1
jne 0x18004a4d0
mov rax, rsi
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1800cac90
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 0x18004a6a0
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.18004a3f0
nop
mov rdi, qword [rsp + 0x40]
mov rbx, rdi
mov rbp, qword [rsp + 0x48]
cmp rdi, rbp
je 0x18004a738
mov r15, qword [rsi + 0x18]
mov r12, qword [rsi + 0x10]
nop dword [rax + rax]
mov rdx, rsi
cmp r15, 0xf
jbe 0x18004a70c
mov rdx, qword [rsi]
mov r8, qword [rbx + 0x10]
mov rcx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x18004a71d
mov rcx, qword [rbx]
cmp r8, r12
jne 0x18004a72f
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18004a7b7
add rbx, 0x48
cmp rbx, rbp
jne 0x18004a700
test rdi, rdi
je 0x18004a87d
cmp rdi, rbp
je 0x18004a75c
mov rcx, rdi
call fcn.18001f2b0
add rdi, 0x48
cmp rdi, rbp
jne 0x18004a746
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 0x18004a875
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004a875
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 0x18004a8ce
mov rdi, qword [rsp + 0x48]
cmp rbx, rdi
je 0x18004a80d
mov rcx, rbx
call fcn.18001f2b0
add rbx, 0x48
cmp rbx, rdi
jne 0x18004a7f7
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 0x18004a85d
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004a7b0
mov rcx, rbx
call fcn.1800cb088
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
jmp 0x18004a8ce
mov rcx, rdi
call fcn.1800cb088
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.1800cac90
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 0x180050140
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 0x18005019d
lea rbx, [0x1800f82b0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180050184
cmp r10, 2
jb 0x180050184
cmp byte [r9], r8b
jne 0x180050184
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 0x180050160
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1800501df
lea rbx, [0x1800f82b0]
cmp r8b, 0x23
jne 0x1800501c3
cmp byte [r9], r8b
jne 0x1800501c3
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 0x1800501b0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180050320
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x18005033a
mov qword [r8], 0
lea rdx, [0x1800ff074]
call fcn.1800501f0
mov rbx, rax
test rax, rax
jne 0x18005035a
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 0x180050431
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 0x180050431
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180050431
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 0x180050431
cmp rdi, 0xffffffffffffffff
je 0x180050431
mov rax, qword [0x180120ea8]
test rax, rax
je 0x1800503ce
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 0x180050431
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 0x18005041e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x180120ea8]
test rax, rax
je 0x180050413
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18005043a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x18005042c
mov qword [r14], rdi
mov rax, rsi
jmp 0x18005043c
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 0x180052e20
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 0x180052eb6
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.180064890
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x180057aa0
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x180057af0
lea r11, [0x1800f82b0]
nop dword [rax]
cmp r9b, 0x23
jne 0x180057ad3
cmp byte [r8], r9b
jne 0x180057ad3
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 0x180057ac0
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 0x180057b51
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x180057b49
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x180057b4c
mov rdx, r8
test rdx, rdx
jne 0x180057b20
cmp r9, r10
je 0x180057b60
cmp dword [r9], eax
jne 0x180057b60
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret

Function at 0x180063440
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 0x1800634e7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x18006349a
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.180065420
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.180050860
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 0x1800634ef
mov rcx, rbx
call fcn.180050860
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x180063a60
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 0x180063ac3
mov qword [rsp], rbx
lea rbx, [0x1800f82b0]
nop dword [rax]
cmp r9b, 0x23
jne 0x180063aa3
cmp byte [r8], r9b
jne 0x180063aa3
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 0x180063a90
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5378]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x180063af7
mov r10, qword [r10 + 0x5380]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x180063afe
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x180063ae4
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 0x180086cf0
Capabilities:
Hash data with crc32

Disassembly:
push rdi
sub rsp, 0x20
test dword [rcx + 0x10], 0x100000
mov rdi, rdx
je 0x180086d7c
movzx r9d, byte [rdx]
lea r8, [rdx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x180086d50
lea r11, [0x1800f82b0]
nop
cmp r9b, 0x23
jne 0x180086d33
cmp byte [r8], r9b
jne 0x180086d33
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 0x180086d20
mov rcx, qword [0x180120ea8]
not eax
cmp dword [rcx + 0x3ed4], eax
jne 0x180086d67
mov dword [rcx + 0x3ed8], eax
cmp dword [rcx + 0x3f00], eax
jne 0x180086dd6
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.180050140
cmp dword [rbx + 0x3ebc], eax
mov esi, eax
mov rbx, qword [rsp + 0x30]
jne 0x180086dcf
mov r8, rdi
mov edx, reloc.WS2_32.dll_inet_addr
mov ecx, eax
call fcn.180064890
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180093710
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
sub rsp, 0xa8
cmp dword [0x180120d50], 0x1d
jl 0x180093943
movups xmm0, xmmword [0x1801008a0]
xor ecx, ecx
cmp dword [0x18011f018], 2
movups xmm1, xmmword [0x1801008b0]
mov eax, dword [0x1801008f0]
movups xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [0x1801008c0]
movups xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [0x1801008e0]
movups xmmword [rsp + 0x40], xmm1
movups xmm1, xmmword [str.TYB_Evp]
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x60], xmm1
mov dword [r11 - 0x28], eax
movzx eax, word [0x1801008f4]
mov word [r11 - 0x24], ax
jl 0x1800938cc
movdqa xmm0, xmmword [0x180108f60]
lea rdx, [r11 - 0x74]
movdqa xmm5, xmmword [0x180108e60]
movdqa xmm4, xmmword [0x180109000]
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, dword [rsp + 0x20]
movaps xmmword [r11 - 0x18], xmm6
movdqa xmm6, xmmword [0x180108e90]
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 [0x180108f40]
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 [0x180108f40]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x50
jl 0x1800937c0
movaps xmm6, xmmword [rsp + 0x90]
cmp ecx, 0x56
jge 0x18009390d
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop word [rax + rax]
mov eax, 0x4bda12f7
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x36
movzx eax, cl
inc ecx
sub al, dl
add al, 0x30
xor byte [r8 - 1], al
cmp ecx, 0x56
jl 0x1800938e0
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 0x180093943
test rcx, rcx
setne al
add rsp, 0xa8
ret
mov al, 1
add rsp, 0xa8
ret
Function at 0x180093f00
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
sub rsp, 0x88
movsd xmm0, qword [0x180120d48]
ucomisd xmm0, qword [0x180108920]
jp 0x180094194
jne 0x180094194
movups xmm0, xmmword [0x1801007d8]
mov qword [rax - 8], rbx
xor ebx, ebx
cmp dword [0x18011f018], 2
mov r8d, ebx
movups xmm1, xmmword [0x1801007e8]
movups xmmword [rax - 0x48], xmm0
movsd xmm0, qword [0x1801007f8]
movsd qword [rax - 0x28], xmm0
movups xmmword [rax - 0x38], xmm1
movzx eax, byte [0x180100800]
mov byte [rsp + 0x68], al
jl 0x1800940ac
movdqa xmm0, xmmword [0x180108f60]
lea rcx, [rsp + 0x44]
movdqa xmm5, xmmword [0x180108e60]
movdqa xmm4, xmmword [0x180109000]
movdqa xmmword [rsp + 0x20], xmm0
mov edx, dword [rsp + 0x20]
movaps xmmword [rsp + 0x70], xmm7
movdqa xmm7, xmmword [0x180108e90]
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 [0x180108f40]
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 [0x180108f40]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x28
jl 0x180093fa0
movaps xmm7, xmmword [rsp + 0x70]
cmp r8d, 0x29
jge 0x1800940f1
movsxd rax, r8d
lea r9, [rsp + 0x40]
add r9, rax
nop word [rax + rax]
mov eax, 0x4bda12f7
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x30
xor byte [r9 - 1], al
cmp r8d, 0x29
jl 0x1800940c0
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x90]
call fcn.18001e430
movsd xmm0, qword [0x180120d48]
ucomisd xmm0, qword [0x180108920]
mov rcx, qword [rax]
mov qword [0x180121fc0], rcx
jp 0x18009418c
jne 0x18009418c
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 0x180094170
mov r8d, 0x1b
lea rdx, str.Couldnt_find_AbilityPatch_
call fcn.18001d0a0
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.18008f410
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.18008f110
mov rbx, qword [rsp + 0x80]
mov al, 1
add rsp, 0x88
ret
Function at 0x1800941a0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
sub rsp, 0xb8
cmp dword [0x180120d50], 5
jge 0x180094435
movups xmm0, xmmword [0x180100780]
movups xmm1, xmmword [0x180100790]
mov eax, dword [0x1801007d0]
movups xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [0x1801007a0]
movups xmmword [rsp + 0x50], xmm1
movups xmm1, xmmword [0x1801007b0]
movups xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [0x1801007c0]
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 0x18009435c
movdqa xmm0, xmmword [0x180108f60]
lea rdx, [r11 - 0x74]
movdqa xmm5, xmmword [0x180108e60]
movdqa xmm4, xmmword [0x180109000]
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, dword [rsp + 0x20]
movaps xmmword [r11 - 0x18], xmm6
movdqa xmm6, xmmword [0x180108e90]
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 [0x180108f40]
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 [0x180108f40]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x50
jl 0x180094250
movaps xmm6, xmmword [rsp + 0xa0]
cmp ecx, 0x54
jge 0x18009439d
movsxd rax, ecx
lea r8, [rsp + 0x40]
add r8, rax
nop word [rax + rax]
mov eax, 0x4bda12f7
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x36
movzx eax, cl
inc ecx
sub al, dl
add al, 0x30
xor byte [r8 - 1], al
cmp ecx, 0x54
jl 0x180094370
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 0x18009442d
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 0x180094411
mov r8d, 0x1a
lea rdx, str.Couldnt_find_GiveAbility_
call fcn.18001d0a0
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.18008f410
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.18008f110
mov rbx, qword [rsp + 0xb0]
mov al, 1
add rsp, 0xb8
ret
Function at 0x1800acd80
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 0x1800acde1
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 0x1800acda0
mov ecx, dword [r9]
jmp 0x1800acec8
cmp ecx, 0x4e0
jb 0x1800acec8
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 0x1800ace00
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 0x1800ace50
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