joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14011d570
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
mov r11d, edx
mov r10, rcx
mov r8d, 0x80000000
test rcx, rcx
je 0x14011d5df
mov qword [rsp], rbx
lea rbx, [0x140203420]
test r10b, 1
je 0x14011d5d3
mov ecx, r11d
mov eax, r8d
mov edx, 0x80000000
and ecx, 0x1f
xor r8d, r8d
mov r9d, dword [rbx + rcx*4]
nop dword [rax + rax]
test r9d, edx
je 0x14011d5c0
lea ecx, [rdx - 1]
xor r8d, eax
test r9d, ecx
je 0x14011d5d3
shr edx, 1
test al, 1
je 0x14011d5cf
shr eax, 1
xor eax, 0xedb88320
jmp 0x14011d5b0
shr eax, 1
jmp 0x14011d5b0
inc r11d
sar r10, 1
jne 0x14011d590
mov rbx, qword [rsp]
mov eax, r8d
add rsp, 8
ret

Function at 0x140120110
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x40
mov rdi, qword [rcx + 0xf8]
mov rbp, rcx
call fcn.1401344d0
mov rbx, rax
test rax, rax
jne 0x14012014d
lea r8, str.Encryption_needs_passphrase
or rdx, 0xffffffffffffffff
mov rcx, rbp
call fcn.14012d240
lea eax, [rbx - 0x19]
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
lea rcx, [rsp + 0x20]
mov edx, VariantTimeToDosDateTime
call fcn.140134420
test eax, eax
je 0x140120180
lea r8, str.Cant_generate_random_number_for_encryption
or rdx, 0xffffffffffffffff
mov rcx, rbp
call fcn.14012d240
mov eax, 0xffffffe2
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
mov qword [rsp + 0x70], rsi
or rax, 0xffffffffffffffff
mov qword [rsp + 0x78], r14
nop
inc rax
cmp byte [rbx + rax], 0
jne 0x140120190
lea rcx, [rdi + 0x50]
mov r8, rax
mov rdx, rbx
call fcn.1401206d0
movzx eax, byte [rdi + 0x5d]
xor ebx, ebx
mov byte [rsp + 0x2b], al
lea r14d, [rbx + 0xc]
nop word [rax + rax]
movzx edx, byte [rsp + rbx + 0x20]
mov eax, dword [rdi + 0x58]
mov r8d, 1
or eax, 2
mov byte [rsp + 0x60], dl
mov ecx, eax
xor ecx, 1
imul ecx, eax
shr ecx, 8
xor cl, dl
lea rdx, [rsp + 0x60]
mov byte [rsp + rbx + 0x30], cl
mov ecx, dword [rdi + 0x50]
not ecx
call fcn.14011ced0
lea rdx, [rsp + 0x68]
mov r8d, 1
not eax
mov dword [rdi + 0x50], eax
movzx eax, al
add eax, dword [rdi + 0x54]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rdi + 0x54], ecx
mov ecx, dword [rdi + 0x58]
movzx eax, byte [rdi + 0x57]
not ecx
mov byte [rsp + 0x68], al
call fcn.14011ced0
lea rbx, [rbx + 1]
not eax
mov dword [rdi + 0x58], eax
dec r14
jne 0x1401201c0
lea r8d, [r14 + 0xc]
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.140128f80
mov r14, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
test eax, eax
jne 0x140120262
add qword [rdi + 0xb0], 0xc
add qword [rdi + 0x18], 0xc
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
Function at 0x140120600
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rax, qword [rsp + 0x60]
mov rdi, r9
mov rsi, rdx
cmp r8, rax
mov rbx, rcx
cmovb eax, r8d
test eax, eax
je 0x1401206c6
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], r14
sub rsi, r9
mov r14d, eax
mov ebp, eax
nop word [rax + rax]
movzx edx, byte [rsi + rdi]
mov eax, dword [rbx + 8]
mov r8d, 1
or eax, 2
mov byte [rsp + 0x60], dl
mov ecx, eax
xor ecx, 1
imul ecx, eax
shr ecx, 8
xor cl, dl
lea rdx, [rsp + 0x60]
mov byte [rdi], cl
mov ecx, dword [rbx]
not ecx
call fcn.14011ced0
lea rdx, [rsp + 0x50]
mov r8d, 1
not eax
mov dword [rbx], eax
movzx eax, al
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 4], ecx
mov ecx, dword [rbx + 8]
movzx eax, byte [rbx + 7]
not ecx
mov byte [rsp + 0x50], al
call fcn.14011ced0
lea rdi, [rdi + 1]
not eax
mov dword [rbx + 8], eax
dec rbp
jne 0x140120640
mov rbp, qword [rsp + 0x40]
mov eax, r14d
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret

Function at 0x1401206d0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov dword [rcx], 0x12345678
mov dword [rcx + 4], 0x23456789
mov dword [rcx + 8], 0x34567890
test r8, r8
je 0x14012075c
mov ecx, dword [rbx]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x30]
not ecx
mov r8d, 1
mov byte [rsp + 0x30], al
call fcn.14011ced0
lea rdx, [rsp + 0x40]
mov r8d, 1
not eax
mov dword [rbx], eax
movzx eax, al
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 4], ecx
mov ecx, dword [rbx + 8]
movzx eax, byte [rbx + 7]
not ecx
mov byte [rsp + 0x40], al
call fcn.14011ced0
lea rsi, [rsi + 1]
not eax
mov dword [rbx + 8], eax
dec rdi
jne 0x140120701
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x140123d70
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rsp + 0x50]
mov rdi, r9
mov rsi, rdx
cmp r8, rax
mov rbx, rcx
cmovb eax, r8d
test eax, eax
je 0x140123e15
mov qword [rsp + 0x30], rbp
sub rsi, r9
mov ebp, eax
mov eax, dword [rbx + 8]
lea rdx, [rsp + 0x50]
mov r8d, 1
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
shr ecx, 8
xor cl, byte [rsi + rdi]
mov byte [rdi], cl
mov byte [rsp + 0x50], cl
mov ecx, dword [rbx]
not ecx
call fcn.14011ced0
lea rdx, [rsp + 0x40]
mov r8d, 1
not eax
mov dword [rbx], eax
movzx eax, al
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 4], ecx
mov ecx, dword [rbx + 8]
movzx eax, byte [rbx + 7]
not ecx
mov byte [rsp + 0x40], al
call fcn.14011ced0
lea rdi, [rdi + 1]
not eax
mov dword [rbx + 8], eax
dec rbp
jne 0x140123da2
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140123e30
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [rsp + 0x70], 0xc
mov rbp, r9
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
jae 0x140123e68
mov rax, qword [rsp + 0x78]
mov byte [rax], 0xff
or eax, 0xffffffff
jmp 0x140123f6c
mov dword [rcx], 0x12345678
mov dword [rcx + 4], 0x23456789
mov dword [rcx + 8], 0x34567890
test r8, r8
je 0x140123edc
mov ecx, dword [rbx]
movzx eax, byte [rdi]
lea rdx, [rsp + 0x70]
not ecx
mov r8d, 1
mov byte [rsp + 0x70], al
call fcn.14011ced0
lea rdx, [rsp + 0x20]
mov r8d, 1
not eax
mov dword [rbx], eax
movzx eax, al
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 4], ecx
mov ecx, dword [rbx + 8]
movzx eax, byte [rbx + 7]
not ecx
mov byte [rsp + 0x20], al
call fcn.14011ced0
lea rdi, [rdi + 1]
not eax
mov dword [rbx + 8], eax
dec rsi
jne 0x140123e81
lea rax, [rsp + 0x28]
lea rdi, [rsp + 0x28]
mov esi, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
sub rbp, rax
nop
mov eax, dword [rbx + 8]
lea rdx, [rsp + 0x70]
mov r8d, 1
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
shr ecx, 8
xor cl, byte [rdi + rbp]
mov byte [rdi], cl
mov byte [rsp + 0x70], cl
mov ecx, dword [rbx]
not ecx
call fcn.14011ced0
lea rdx, [rsp + 0x20]
mov r8d, 1
not eax
mov dword [rbx], eax
movzx eax, al
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 4], ecx
mov ecx, dword [rbx + 8]
movzx eax, byte [rbx + 7]
not ecx
mov byte [rsp + 0x20], al
call fcn.14011ced0
lea rdi, [rdi + 1]
not eax
mov dword [rbx + 8], eax
dec rsi
jne 0x140123ef0
movzx eax, byte [rsp + 0x33]
mov rcx, qword [rsp + 0x78]
mov byte [rcx], al
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14012cd80
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r8d, 0x24
mov rbx, rdx
mov edi, ecx
lea ecx, [r8 - 0x22]
lea rdx, str.Fatal_Internal_Error_in_libarchive:
call fcn.140133ee0
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rbx + r8], 0
jne 0x14012cdb0
mov rdx, rbx
mov ecx, 2
call fcn.140133ee0
mov r8d, 1
lea rdx, [0x140205864]
lea ecx, [r8 + 1]
call fcn.140133ee0
mov ecx, edi
call qword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x14012e740
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov r8, qword [rdx + 8]
mov rdx, qword [rdx]
call fcn.14012e240
test rax, rax
jne 0x14012e768
lea rdx, [0x1401fb5f0]
lea ecx, [rax + 1]
add rsp, 0x28
jmp fcn.14012cd80
add rsp, 0x28
ret
Function at 0x1401337e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov eax, 0xffffffff
mov rbx, r8
mov rdi, rdx
cmp r8, rax
cmova rbx, rax
test ecx, ecx
jns 0x14013381b
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 9
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
test rbx, rbx
jne 0x14013382d
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.msvcrt.dll__get_osfhandle]
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1401338b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
jne 0x14013387c
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], recv
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp eax, 0x6d
je 0x140133820
cmp eax, 5
jne 0x1401338a1
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 9
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, eax
call fcn.140133420
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140133ee0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov eax, 0xffffffff
mov rbx, r8
mov rdi, rdx
cmp r8, rax
cmova rbx, rax
test ecx, ecx
jns 0x140133f1b
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 9
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.msvcrt.dll__get_osfhandle]
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140133f7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140133f68
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 9
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, eax
call fcn.140133420
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140134420
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
lea rcx, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140134481
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1401344b1
lea rcx, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 8
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1401344b1
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x50]
xor edx, edx
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test ebx, ebx
je 0x1401344b1
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov eax, 0xffffffe7
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14014fc10
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
test byte [rcx + 0xd8], 1
mov rdi, rdx
mov rbx, rcx
je 0x14014fc86
mov r9, qword [rcx + 0xe0]
test r9, r9
je 0x14014fc7b
mov r8d, dword [rcx + 0xdc]
lea rdx, [0x14020e620]
nop dword [rax]
nop word [rax + rax]
mov ecx, r8d
movzx eax, r9b
shr r9, 8
shr rcx, 0x18
xor rcx, rax
mov eax, r8d
mov r8d, dword [rdx + rcx*4]
shl eax, 8
xor r8d, eax
test r9, r9
jne 0x14014fc50
mov dword [rbx + 0xdc], r8d
mov eax, dword [rbx + 0xdc]
not eax
mov dword [rdi + 4], eax
test dword [rbx + 0xd8], 0x100
je 0x14014fca3
lea rdx, [rdi + 8]
lea rcx, [rbx + 0xe8]
call qword [0x1402100e0]
test dword [rbx + 0xd8], 0x4000
je 0x14014fcc0
lea rdx, [rdi + 0x2c]
lea rcx, [rbx + 0x100]
call qword [0x140210110]
mov eax, dword [rbx + 0xd8]
mov rbx, qword [rsp + 0x30]
mov dword [rdi], eax
add rsp, 0x20
pop rdi
ret

Function at 0x14014fd80
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov r10d, dword [rcx + 0xd8]
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
test r10b, 1
je 0x14014fdee
mov r9, rdx
test r8, r8
je 0x14014fde7
mov edx, dword [rcx + 0xdc]
lea r11, [0x14020e620]
nop word [rax + rax]
movzx eax, byte [r9]
mov ecx, edx
lea r9, [r9 + 1]
shr rcx, 0x18
xor rcx, rax
mov eax, edx
mov edx, dword [r11 + rcx*4]
shl eax, 8
xor edx, eax
mov dword [rbx + 0xdc], edx
dec r8
jne 0x14014fdc0
add qword [rbx + 0xe0], rdi
bt r10d, 8
jae 0x14014fe08
lea rcx, [rbx + 0xe8]
mov r8, rdi
mov rdx, rsi
call qword [0x1402100d8]
test dword [rbx + 0xd8], 0x4000
je 0x14014fe27
lea rcx, [rbx + 0x100]
mov r8, rdi
mov rdx, rsi
call qword [0x140210108]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14015ffc0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push r12
push r13
push r14
push r15
mov esi, dword [rcx + 0x4804]
mov ebp, edx
lea r9, [0x1402107e0]
mov dword [rcx + rbp*4 + 0x4808], esi
movzx edx, word [rcx]
mov r11, rcx
movzx ecx, word [rcx + 2]
mov eax, edx
xor rdx, 0x7f0
shr rax, 4
shr rdx, 4
lea r12, [r11 + 0x404]
movzx r14d, byte [rax + r9]
movzx r8d, byte [rdx + r9]
mov eax, ecx
shr rax, 4
xor rcx, 0x7f0
mov dword [rsp + 0x38], r14d
movzx r15d, byte [rax + r9]
shr rcx, 4
movzx r13d, byte [rcx + r9]
add r15d, r8d
xor r9d, r9d
imul rax, rbp, 0x440
add r12, rax
add r13d, r8d
test esi, esi
je 0x1401601ba
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rdi
mov rdi, r12
cmp r9d, 8
jae 0x1401600d0
xor r10d, r10d
lea r8d, [r9 + 8]
lea rbx, [rbp*8]
lea r14, [0x1402107e0]
nop dword [rax]
nop dword [rax + rax]
mov ecx, r8d
shr r8d, 1
and ecx, 1
mov eax, r8d
add rax, rbx
movzx edx, word [r11 + rax*2 + 4]
mov eax, ecx
neg eax
shr rdx, 4
shr rax, 4
and eax, 0x7f
xor rdx, rax
movzx eax, byte [rdx + r14]
add r10d, eax
cmp r8d, 1
jne 0x140160080
mov eax, dword [rsp + 0x38]
inc r9d
add rdi, 4
add eax, r10d
mov dword [rdi - 4], eax
cmp r9d, esi
jb 0x140160058
jmp 0x1401601b0
cmp r9d, esi
jae 0x1401601b0
lea rdi, [r12 + r9*4]
lea r14, [0x1402107e0]
cmp r9d, 0x10
jae 0x14016014d
xor r10d, r10d
mov r8d, r9d
lea rbx, [rbp*8]
nop dword [rax + rax]
mov ecx, r8d
shr r8d, 1
and ecx, 1
mov eax, r8d
add rax, rbx
movzx edx, word [r11 + rax*2 + 0x104]
mov eax, ecx
neg eax
shr rdx, 4
shr rax, 4
and eax, 0x7f
xor rdx, rax
movzx eax, byte [rdx + r14]
add r10d, eax
cmp r8d, 1
jne 0x140160100
lea eax, [r10 + r15]
inc r9d
add rdi, 4
mov dword [rdi - 4], eax
cmp r9d, esi
jb 0x1401600e4
jmp 0x1401601b0
cmp r9d, esi
jae 0x1401601b0
lea rbx, [r12 + r9*4]
nop word [rax + rax]
xor r10d, r10d
lea eax, [r9 + 0xf0]
nop word [rax + rax]
mov ecx, eax
shr eax, 1
movzx r8d, word [r11 + rax*2 + 0x204]
and ecx, 1
neg ecx
shr r8, 4
shr rcx, 4
and ecx, 0x7f
xor r8, rcx
movzx ecx, byte [r8 + r14]
add r10d, ecx
cmp eax, 1
jne 0x140160170
lea eax, [r10 + r13]
inc r9d
add rbx, 4
mov dword [rbx - 4], eax
cmp r9d, esi
jb 0x140160160
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x1401601d0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov rsi, qword [rdx]
mov r11d, dword [rdx + 0x18]
mov ebp, dword [rdx + 0x1c]
mov rax, rcx
mov r10d, r8d
mov ecx, r11d
mov edx, dword [rax + 0xb98]
sub ecx, ebp
mov r9d, 8
movzx edi, byte [rcx + rsi]
dec ecx
and edx, r10d
movzx r8d, byte [rcx + rsi]
mov ecx, r9d
lea rbx, [rax + 0xb9c]
sub cl, byte [rax + 0xb94]
shr r8d, cl
mov ecx, dword [rax + 0xb94]
shl edx, cl
add r8d, edx
lea rdx, [r8 + r8*2]
shl rdx, 9
add rbx, rdx
cmp dword [rax + 0x2e0], 7
jge 0x14016028c
lea r10d, [r9 - 7]
movzx r11d, dil
nop dword [rax]
dec r9d
mov r8d, r11d
movzx ecx, r9b
shr r8d, cl
mov rcx, qword [rax + 0x18]
and r8d, 1
mov dword [rax + rcx*4 + 0x28], r8d
mov ecx, r10d
lea rdx, [rbx + rcx*2]
mov rcx, qword [rax + 0x18]
lea r10d, [r8 + r10*2]
mov qword [rax + rcx*8 + 0x110], rdx
inc qword [rax + 0x18]
test r9d, r9d
jne 0x140160250
jmp 0x140160300
sub r11d, dword [rax + 0x2e4]
mov r9d, 0x100
movzx r8d, dil
sub r11d, ebp
dec r11d
add r8d, r9d
movzx r10d, byte [r11 + rsi]
nop dword [rax + rax]
mov rcx, qword [rax + 0x18]
mov edx, r8d
add r10d, r10d
shr edx, 7
and edx, 1
mov dword [rax + rcx*4 + 0x28], edx
mov ecx, r9d
mov edx, r8d
and ecx, r10d
shr edx, 8
add r8d, r8d
add ecx, r9d
add edx, ecx
mov rcx, qword [rax + 0x18]
lea rdx, [rbx + rdx*2]
mov qword [rax + rcx*8 + 0x110], rdx
inc qword [rax + 0x18]
mov ecx, r10d
xor ecx, r8d
not ecx
and r9d, ecx
cmp r8d, 0x10000
jb 0x1401602b0
mov ecx, dword [rax + 0x2e0]
cmp ecx, 3
jg 0x140160317
mov dword [rax + 0x2e0], 0
jmp 0x14016032a
cmp ecx, 9
jg 0x140160321
add ecx, 0xfffffffd
jmp 0x140160324
add ecx, 0xfffffffa
mov dword [rax + 0x2e0], ecx
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret

Function at 0x140163290
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
call fcn.1401632f0
not ebx
test rsi, rsi
je 0x1401632dc
lea rcx, [0x14027b720]
nop dword [rax + rax]
movzx eax, byte [rdi]
movzx edx, bl
lea rdi, [rdi + 1]
xor rdx, rax
mov eax, ebx
mov ebx, dword [rcx + rdx*4]
shr eax, 8
xor ebx, eax
dec rsi
jne 0x1401632c0
mov rsi, qword [rsp + 0x38]
not ebx
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140164af0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [0x140279f60], 0
mov r10, rcx
lea r11, [0x140279f70]
jne 0x140164bac
mov byte [0x140279f60], 1
xor r9d, r9d
movabs rcx, 0xc96c5795d7870f42
nop dword [rax + rax]
mov rax, r9
shr rax, 1
test r9b, 1
je 0x140164b2f
xor rax, rcx
test al, 1
je 0x140164b3b
shr rax, 1
xor rax, rcx
jmp 0x140164b3e
shr rax, 1
test al, 1
je 0x140164b4a
shr rax, 1
xor rax, rcx
jmp 0x140164b4d
shr rax, 1
test al, 1
je 0x140164b59
shr rax, 1
xor rax, rcx
jmp 0x140164b5c
shr rax, 1
test al, 1
je 0x140164b68
shr rax, 1
xor rax, rcx
jmp 0x140164b6b
shr rax, 1
test al, 1
je 0x140164b77
shr rax, 1
xor rax, rcx
jmp 0x140164b7a
shr rax, 1
test al, 1
je 0x140164b86
shr rax, 1
xor rax, rcx
jmp 0x140164b89
shr rax, 1
test al, 1
je 0x140164b95
shr rax, 1
xor rax, rcx
jmp 0x140164b98
shr rax, 1
mov qword [r11 + r9*8], rax
inc r9
cmp r9, 0x100
jb 0x140164b20
not r8
test rdx, rdx
je 0x140164be2
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r10]
movzx ecx, r8b
lea r10, [r10 + 1]
xor rcx, rax
mov rax, r8
mov r8, qword [r11 + rcx*8]
shr rax, 8
xor r8, rax
dec rdx
jne 0x140164bc0
not r8
mov rax, r8
ret

Function at 0x140165930
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov rsi, rcx
xor r9d, r9d
lea rdi, [rcx + 0x10e98]
lea rbp, [0x1402107e0]
nop dword [rax + rax]
mov r10d, r9d
mov ebx, 4
xor eax, eax
mov r11d, 1
mov ecx, r11d
mov r8d, r10d
shr r10d, 1
movzx edx, word [rsi + rcx*2 + 0x71e0]
and r8d, 1
mov ecx, r8d
shr rdx, 4
lea r11d, [r8 + r11*2]
neg ecx
shr rcx, 4
and ecx, 0x7f
xor rdx, rcx
movzx ecx, byte [rdx + rbp]
add eax, ecx
dec ebx
jne 0x140165970
inc r9d
mov dword [rdi], eax
add rdi, 4
cmp r9d, 0x10
jb 0x140165960
mov rbp, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x20]
mov dword [rsi + 0x10ed8], ebx
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x18]
ret
Function at 0x1401659d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
mov r14d, 4
mov r10, rcx
xor edi, edi
lea rbx, [rcx + 0x10290]
lea rsi, [rcx + 0x10694]
lea r15, [0x1402107e0]
mov ebp, r14d
nop dword [rax + rax]
xor r11d, r11d
cmp dword [r10 + 0x10e90], r11d
jbe 0x140165a74
nop dword [rax]
xor r9d, r9d
lea eax, [r11 + 0x40]
nop word [rax + rax]
mov edx, eax
shr eax, 1
and edx, 1
mov ecx, eax
add rcx, rdi
movzx r8d, word [r10 + rcx*2 + 0x6efc]
mov ecx, edx
neg ecx
shr r8, 4
shr rcx, 4
and ecx, 0x7f
xor r8, rcx
movzx ecx, byte [r8 + r15]
add r9d, ecx
cmp eax, 1
jne 0x140165a30
mov dword [rbx + r11*4], r9d
inc r11d
cmp r11d, dword [r10 + 0x10e90]
jb 0x140165a20
mov edx, reloc.WS2_32.dll_ntohl
cmp dword [r10 + 0x10e90], edx
jbe 0x140165a9f
mov eax, edx
lea rcx, [rbx + rax*4]
mov eax, edx
inc edx
shr eax, 1
sub eax, 5
shl eax, 4
add dword [rcx], eax
cmp edx, dword [r10 + 0x10e90]
jb 0x140165a82
mov eax, dword [rbx]
add rsi, 0x200
add rbx, 0x100
mov dword [rsi - 0x204], eax
mov eax, dword [rbx - 0xfc]
add rdi, 0x40
mov dword [rsi - 0x200], eax
mov eax, dword [rbx - 0xf8]
mov dword [rsi - 0x1fc], eax
mov eax, dword [rbx - 0xf4]
mov dword [rsi - 0x1f8], eax
dec rbp
jne 0x140165a10
lea rdi, [r10 + 0x108a0]
nop dword [rax]
cmp r14d, 4
ja 0x140165afb
mov edx, r14d
jmp 0x140165b0d
bsr edx, r14d
mov eax, r14d
lea ecx, [rdx - 1]
shr eax, cl
and eax, 1
lea edx, [rax + rdx*2]
mov r9d, edx
mov eax, edx
mov ebx, r14d
and eax, 1
shr r9d, 1
mov r11d, edx
dec r9d
or eax, 2
mov ecx, r9d
shl eax, cl
sub ebx, eax
xor r8d, r8d
mov ebp, eax
lea esi, [r8 + 1]
mov eax, esi
mov edx, ebx
shr ebx, 1
sub rax, r11
and edx, 1
add rax, rbp
lea esi, [rdx + rsi*2]
movzx ecx, word [r10 + rax*2 + 0x70fa]
mov eax, edx
neg eax
shr rcx, 4
shr rax, 4
and eax, 0x7f
xor rcx, rax
movzx eax, byte [rcx + r15]
add r8d, eax
dec r9d
jne 0x140165b34
mov ecx, dword [r10 + r11*4 + 0x10290]
inc r14d
add rdi, 4
add ecx, r8d
mov dword [rdi - 0x204], ecx
mov ecx, dword [r10 + r11*4 + 0x10390]
add ecx, r8d
mov dword [rdi - 4], ecx
mov ecx, dword [r10 + r11*4 + 0x10490]
add ecx, r8d
mov dword [rdi + 0x1fc], ecx
mov ecx, dword [r10 + r11*4 + 0x10590]
add ecx, r8d
mov dword [rdi + 0x3fc], ecx
cmp r14d, 0x80
jb 0x140165af0
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov dword [r10 + 0x10e94], r9d
pop r15
pop r14
ret
Function at 0x140165cd0
Capabilities:
Encode data using xor

Disassembly:
push rdi
mov r10d, dword [rcx + 0xb94]
mov r11, rcx
mov ecx, 8
mov eax, dword [r11 + 0xb98]
sub ecx, r10d
shr r8d, cl
and eax, edx
mov ecx, r10d
shl eax, cl
xor r10d, r10d
add r8d, eax
lea rdi, [r8 + r8*2]
shl rdi, 9
add rdi, r11
lea r11, [0x1402107e0]
test r9b, r9b
jne 0x140165d56
mov ecx, dword [rsp + 0x38]
add ecx, 0x100
nop dword [rax]
mov r8d, ecx
shr ecx, 1
movzx r9d, word [rdi + rcx*2 + 0xb9c]
and r8d, 1
neg r8d
shr r9, 4
shr r8, 4
and r8d, 0x7f
xor r9, r8
movzx edx, byte [r9 + r11]
add r10d, edx
cmp ecx, 1
jne 0x140165d20
mov eax, r10d
pop rdi
ret
mov r8d, dword [rsp + 0x38]
mov r9d, 0x100
mov qword [rsp + 0x10], rbx
mov ebx, dword [rsp + 0x30]
add r8d, r9d
nop dword [rax]
mov ecx, r8d
add ebx, ebx
mov eax, r9d
shr ecx, 8
and eax, ebx
add eax, r9d
add ecx, eax
movzx edx, word [rdi + rcx*2 + 0xb9c]
mov ecx, r8d
add r8d, r8d
shr ecx, 7
shr rdx, 4
and ecx, 1
neg ecx
shr rcx, 4
and ecx, 0x7f
xor rdx, rcx
movzx eax, byte [rdx + r11]
add r10d, eax
mov eax, ebx
xor eax, r8d
not eax
and r9d, eax
cmp r8d, 0x10000
jb 0x140165d70
mov rbx, qword [rsp + 0x10]
mov eax, r10d
pop rdi
ret