joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400520c0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x238
mov ecx, 0x202
lea rdx, [rsp + 0x90]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400520e6
add rsp, 0x238
ret
lea rdx, str.Failed_to_initialize_network_subsystem
lea rcx, [rsp + 0x20]
call fcn.140009220
nop
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140052160
lea rdx, [0x140249a70]
lea rcx, [rsp + 0x40]
call fcn.14013f490
int3

Function at 0x140055510
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov edi, r8d
mov rax, rdx
mov rbx, rcx
cmp qword [rcx + 0x18], 0
je 0x1400555d6
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movdqa xmm1, xmmword [0x14022f270]
movdqu xmmword [rsp + 0x30], xmm1
xor ecx, ecx
mov word [rsp + 0x20], cx
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.140055170
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rdx, qword [rsp + 0x20]
lea rcx, [rbx + 0x28]
cmp qword [rcx + 0x18], 7
jbe 0x140055577
mov rcx, qword [rcx]
and edi, 1
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1400555f3
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x1400555c5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400555c0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400555d0
call fcn.14013cd40
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
call fcn.14014c4cc
int3
xor r9d, r9d
mov r8d, 0x128
lea rdx, str.D:JenkinsworkspaceN_Poco_VS2022poco_1.12.4Foundation_srcFile_WIN32U.cpp
lea rcx, str.__path.empty__
call fcn.140052560
nop
lea rcx, [rbx + 8]
call fcn.140055810
int3

Function at 0x1400556a0
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 0
mov rbx, rcx
je 0x1400556f9
call fcn.140055780
test al, al
je 0x1400556cd
mov rcx, rbx
call fcn.140055c10
test al, al
je 0x1400556cd
xor al, al
add rsp, 0x20
pop rbx
ret
cmp qword [rbx + 0x40], 7
lea rcx, [rbx + 0x28]
jbe 0x1400556db
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1400556ef
mov al, 1
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 8]
call fcn.140055810
int3
xor r9d, r9d
lea rdx, str.D:JenkinsworkspaceN_Poco_VS2022poco_1.12.4Foundation_srcFile_WIN32U.cpp
mov r8d, 0x183
lea rcx, str.__path.empty__
call fcn.140052560
int3

Function at 0x140055780
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 0
mov rbx, rcx
je 0x1400557dd
add rcx, 0x28
cmp qword [rcx + 0x18], 7
jbe 0x14005579e
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400557cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x1400557c3
sub eax, 1
je 0x1400557c3
sub eax, 0xc
je 0x1400557c3
cmp eax, 6
jne 0x1400557d3
xor al, al
add rsp, 0x20
pop rbx
ret
mov al, 1
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 8]
call fcn.140055810
int3
xor r9d, r9d
lea rdx, str.D:JenkinsworkspaceN_Poco_VS2022poco_1.12.4Foundation_srcFile_WIN32U.cpp
lea rcx, str.__path.empty__
lea r8d, [r9 + 0x5e]
call fcn.140052560
int3
Function at 0x140055c10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 0
mov rbx, rcx
je 0x140055c4e
add rcx, 0x28
cmp qword [rcx + 0x18], 7
jbe 0x140055c2e
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140055c44
shr eax, 4
and al, 1
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 8]
call fcn.140055810
int3
xor r9d, r9d
lea rdx, str.D:JenkinsworkspaceN_Poco_VS2022poco_1.12.4Foundation_srcFile_WIN32U.cpp
mov r8d, 0x9f
lea rcx, str.__path.empty__
call fcn.140052560
int3

Function at 0x140055c70
Capabilities:
Check if file exists

Disassembly:
jmp 0x140055c80
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 0
mov rbx, rcx
je 0x140055cc6
add rcx, 0x28
cmp qword [rcx + 0x18], 7
jbe 0x140055c9e
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140055cbc
and eax, 0x410
cmp eax, 0x400
sete al
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 8]
call fcn.140055810
int3
xor r9d, r9d
lea rdx, str.D:JenkinsworkspaceN_Poco_VS2022poco_1.12.4Foundation_srcFile_WIN32U.cpp
mov r8d, 0xaa
lea rcx, str.__path.empty__
call fcn.140052560
int3

Function at 0x140055c80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x140055c80
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 0
mov rbx, rcx
je 0x140055cc6
add rcx, 0x28
cmp qword [rcx + 0x18], 7
jbe 0x140055c9e
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140055cbc
and eax, 0x410
cmp eax, 0x400
sete al
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 8]
call fcn.140055810
int3
xor r9d, r9d
lea rdx, str.D:JenkinsworkspaceN_Poco_VS2022poco_1.12.4Foundation_srcFile_WIN32U.cpp
mov r8d, 0xaa
lea rcx, str.__path.empty__
call fcn.140052560
int3

Function at 0x140055f70
Capabilities:
Delete directory
Delete file

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x18], 0
mov rdi, rcx
je 0x140055fcd
mov qword [rsp + 0x30], rbx
lea rbx, [rcx + 0x28]
call fcn.140055c10
test al, al
je 0x140055fb4
cmp qword [rbx + 0x18], 7
jbe 0x140055f9c
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x140055fea
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp qword [rbx + 0x18], 7
jbe 0x140055fbe
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140055fea
jmp 0x140055fa9
xor r9d, r9d
lea rdx, str.D:JenkinsworkspaceN_Poco_VS2022poco_1.12.4Foundation_srcFile_WIN32U.cpp
mov r8d, 0x160
lea rcx, str.__path.empty__
call fcn.140052560
int3
lea rcx, [rdi + 8]
call fcn.140055810
int3
Function at 0x140066c30
Capabilities:
Encode data using xor

Disassembly:
push rbx
movsxd rbx, r9d
mov r10, r8
mov r11, rdx
cmp rdx, r8
je 0x140066d92
mov qword [rsp + 0x10], rsi
lea rsi, [rcx - 1]
not rcx
shr rsi, 0x3f
shr rcx, 0x3f
and rsi, rcx
mov ecx, dword [rdx + 8]
xor ecx, dword [r8 + 8]
dec rsi
and ecx, esi
xor dword [rdx + 8], ecx
xor dword [r8 + 8], ecx
mov ecx, dword [rdx + 0x10]
movq xmm4, rsi
xor ecx, dword [r8 + 0x10]
and ecx, esi
punpcklqdq xmm4, xmm4
xor dword [rdx + 0x10], ecx
xor dword [r8 + 0x10], ecx
mov edx, dword [rdx + 0x14]
mov ecx, dword [r8 + 0x14]
xor rcx, rdx
and ecx, 4
and rcx, rsi
mov eax, ecx
xor eax, edx
mov dword [r11 + 0x14], eax
xor dword [r8 + 0x14], ecx
xor ecx, ecx
mov edx, ecx
test r9d, r9d
jle 0x140066d4e
cmp ebx, 2
jb 0x140066d4e
mov r9, qword [r8]
lea rax, [rbx - 1]
mov r8, qword [r11]
mov qword [rsp + 0x18], rdi
lea rdi, [rbx - 1]
lea rdi, [r9 + rdi*8]
lea rax, [r8 + rax*8]
cmp r9, rax
ja 0x140066cde
cmp rdi, r8
jae 0x140066d49
cmp r9, r10
ja 0x140066ce8
cmp rdi, r10
jae 0x140066d49
cmp r9, r11
ja 0x140066cf2
cmp rdi, r11
jae 0x140066d49
cmp r8, r10
ja 0x140066cfc
cmp rax, r10
jae 0x140066d49
cmp r8, r11
ja 0x140066d06
cmp rax, r11
jae 0x140066d49
mov eax, ebx
and eax, 0xfffffffe
nop dword [rax + rax]
movdqu xmm2, xmmword [rcx + r9]
add edx, 2
movdqu xmm1, xmmword [rcx + r8]
lea rcx, [rcx + 0x10]
movdqa xmm3, xmm2
xorps xmm3, xmm1
andps xmm3, xmm4
movdqa xmm0, xmm3
xorps xmm3, xmm2
xorps xmm0, xmm1
movdqu xmmword [rcx + r8 - 0x10], xmm0
movdqu xmmword [rcx + r9 - 0x10], xmm3
cmp edx, eax
jl 0x140066d10
mov rdi, qword [rsp + 0x18]
movsxd rax, edx
cmp rax, rbx
jge 0x140066d8d
nop word [rax + rax]
mov rcx, qword [r11]
mov rdx, qword [rcx + rax*8]
lea r8, [rcx + rax*8]
mov rcx, qword [r10]
mov r9, rdx
xor r9, qword [rcx + rax*8]
and r9, rsi
xor rdx, r9
mov qword [r8], rdx
mov rcx, qword [r10]
xor qword [rcx + rax*8], r9
inc rax
cmp rax, rbx
jl 0x140066d60
mov rsi, qword [rsp + 0x10]
pop rbx
ret

Function at 0x140070e50
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.14013d720
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x1400713a0
Capabilities:
Encode data using xor

Disassembly:
xor r9b, r9b
mov r10, rdx
test r8, r8
je 0x1400713c7
sub r10, rcx
nop
movzx edx, byte [r10 + rcx]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
xor dl, al
or r9b, dl
sub r8, 1
jne 0x1400713b0
movzx eax, r9b
ret
Function at 0x140075e60
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x28
call fcn.14013d720
sub rsp, rax
lea rcx, [0x1402577f8]
add rsp, 0x28
jmp fcn.140070cb0

Function at 0x14008be60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x60
call fcn.14013d720
sub rsp, rax
mov rax, qword [0x14024f280]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r14, qword [rsp + 0xd0]
mov r13, r9
mov rax, qword [rsp + 0xc0]
mov rdi, rcx
mov rcx, qword [rsp + 0xc8]
mov esi, r8d
mov r12, qword [rsp + 0xd8]
mov r15, rdx
movzx r8d, byte [r14 + 3]
xor ebp, ebp
movzx edx, byte [r14 + 7]
movzx r9d, byte [r14]
movzx r10d, byte [r14 + 4]
mov ebx, dword [r12]
mov qword [rsp + 0x28], rax
movzx eax, byte [r14 + 1]
shl eax, 8
or r9d, eax
mov qword [rsp + 0x30], rcx
movzx eax, byte [r14 + 2]
mov ecx, edx
shl eax, 0x10
or r9d, eax
shl ecx, 8
mov eax, r8d
mov qword [rsp + 0x38], r14
shl eax, 0x18
or r9d, eax
mov qword [rsp + 0x40], r12
movzx eax, byte [r14 + 5]
shl eax, 8
or r10d, eax
mov dword [rsp + 0x20], r9d
movzx eax, byte [r14 + 6]
or ecx, eax
mov byte [rsp + 0x48], r9b
mov eax, ecx
mov byte [rsp + 0x4b], r8b
shl eax, 0x10
or r10d, eax
mov byte [rsp + 0x4e], cl
mov eax, r9d
mov dword [rsp + 0x24], r10d
shr eax, 8
mov byte [rsp + 0x49], al
mov eax, r9d
shr eax, 0x10
mov byte [rsp + 0x4a], al
mov eax, r10d
shr eax, 8
mov byte [rsp + 0x4c], r10b
mov byte [rsp + 0x4d], al
mov byte [rsp + 0x4f], dl
test esi, esi
je 0x14008c04d
mov r12, qword [rsp + 0x28]
sub r15, rdi
mov r14, qword [rsp + 0x30]
dec esi
test ebx, ebx
jne 0x14008bfe2
mov r9, r14
lea rcx, [rsp + 0x20]
mov r8, r12
mov rdx, r13
call fcn.14008ace0
mov r9d, dword [rsp + 0x20]
mov eax, r9d
mov r10d, dword [rsp + 0x24]
shr eax, 8
mov byte [rsp + 0x49], al
mov eax, r9d
shr eax, 0x10
mov byte [rsp + 0x4a], al
mov eax, r9d
shr eax, 0x18
mov byte [rsp + 0x4b], al
mov eax, r10d
shr eax, 8
mov byte [rsp + 0x4d], al
mov eax, r10d
shr eax, 0x10
mov byte [rsp + 0x4e], al
mov eax, r10d
shr eax, 0x18
mov byte [rsp + 0x4f], al
inc ebp
mov byte [rsp + 0x48], r9b
mov byte [rsp + 0x4c], r10b
movsxd rax, ebx
movzx ecx, byte [rsp + rax + 0x48]
xor cl, byte [rdi]
mov byte [r15 + rdi], cl
inc rdi
inc ebx
and ebx, 7
test esi, esi
jne 0x14008bf77
mov r14, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
test ebp, ebp
je 0x14008c04d
mov eax, r9d
mov byte [r14], r9b
shr eax, 8
mov byte [r14 + 1], al
mov eax, r9d
shr eax, 0x10
mov byte [r14 + 2], al
mov eax, r10d
shr eax, 8
mov byte [r14 + 5], al
mov eax, r10d
shr eax, 0x10
shr r9d, 0x18
mov byte [r14 + 4], r10b
shr r10d, 0x18
mov byte [r14 + 7], r10b
mov byte [r14 + 3], r9b
mov byte [r14 + 6], al
mov dword [r12], ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14013cd20
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14008cfe0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x38
call fcn.14013d720
sub rsp, rax
mov r10, rcx
test r9, r9
jne 0x14008d01c
mov edx, 0xe2
mov dword [rsp + 0x20], 0x9a
lea r9, str.crypto_asn1_a_int.c
lea ecx, [rax - 0x2b]
lea r8d, [rdx - 4]
call fcn.14006b890
xor eax, eax
add rsp, 0x38
ret
movzx r11d, byte [r8]
and r11d, 0x80
test rdx, rdx
je 0x14008d02f
mov dword [rdx], r11d
cmp r9, 1
jne 0x14008d051
test r10, r10
je 0x14008d047
movzx eax, byte [r8]
test r11d, r11d
je 0x14008d045
neg al
mov byte [rcx], al
mov eax, 1
add rsp, 0x38
ret
movzx ecx, byte [r8]
test cl, cl
jne 0x14008d063
mov eax, 1
jmp 0x14008d11a
xor eax, eax
cmp cl, 0xff
jne 0x14008d153
xor edx, edx
lea rcx, [r9 - 1]
mov eax, 1
cmp r9, rax
jbe 0x14008d10f
cmp rcx, 8
jb 0x14008d100
and ecx, 7
mov rdx, r9
sub rdx, rcx
xorps xmm3, xmm3
xorps xmm2, xmm2
nop word [rax + rax]
movd xmm1, dword [rax + r8]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
orps xmm3, xmm1
movd xmm1, dword [r8 + rax + 4]
punpcklbw xmm1, xmm0
add rax, 8
punpcklwd xmm1, xmm0
orps xmm2, xmm1
cmp rax, rdx
jb 0x14008d0a0
orps xmm2, xmm3
movdqa xmm0, xmm2
psrldq xmm0, 8
orps xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
orps xmm2, xmm0
movd edx, xmm2
cmp rax, r9
jae 0x14008d10f
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rax + r8]
inc rax
or edx, ecx
cmp rax, r9
jb 0x14008d100
xor eax, eax
test edx, edx
setne al
test edx, edx
je 0x14008d153
movzx ecx, byte [r8 + 1]
and ecx, 0x80
cmp r11d, ecx
jne 0x14008d153
mov edx, 0xe2
mov dword [rsp + 0x20], 0xbb
lea r9, str.crypto_asn1_a_int.c
mov ecx, recv
lea r8d, [rdx - 5]
call fcn.14006b890
xor eax, eax
add rsp, 0x38
ret
mov qword [rsp + 0x30], rbx
mov rbx, r9
sub rbx, rax
test r10, r10
je 0x14008d19d
neg r11d
sbb r11d, r11d
add r9, r8
movzx r11d, r11b
mov edx, r11d
and edx, 1
test rbx, rbx
je 0x14008d19d
mov r8, rbx
nop
movzx ecx, byte [r9 - 1]
lea r9, [r9 - 1]
dec r8
xor ecx, r11d
add edx, ecx
mov byte [r8 + r10], dl
shr edx, 8
test r8, r8
jne 0x14008d180
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
ret
Function at 0x14008d2b0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
mov r10, rdx
xor r11b, r11b
xor edx, edx
mov rsi, r9
mov rbx, rcx
test rcx, rcx
je 0x14008d3b1
test r10, r10
je 0x14008d3b1
movzx eax, byte [rcx]
test r8d, r8d
jne 0x14008d2f5
cmp al, 0x7f
jbe 0x14008d3aa
mov edx, 1
mov eax, edx
add rax, r10
jmp 0x14008d3b9
mov r11b, 0xff
cmp al, 0x80
jbe 0x14008d30b
mov edx, 1
mov eax, edx
add rax, r10
jmp 0x14008d3b9
jne 0x14008d3aa
mov eax, 1
lea rcx, [r10 - 1]
cmp r10, rax
jbe 0x14008d39f
cmp rcx, 8
jb 0x14008d391
and ecx, 7
mov rdx, r10
sub rdx, rcx
xorps xmm3, xmm3
xorps xmm2, xmm2
nop dword [rax + rax]
movd xmm1, dword [rax + rbx]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
orps xmm3, xmm1
movd xmm1, dword [rbx + rax + 4]
punpcklbw xmm1, xmm0
add rax, 8
punpcklwd xmm1, xmm0
orps xmm2, xmm1
cmp rax, rdx
jb 0x14008d340
orps xmm2, xmm3
movdqa xmm0, xmm2
psrldq xmm0, 8
orps xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
orps xmm2, xmm0
movd edx, xmm2
cmp rax, r10
jae 0x14008d39f
movzx ecx, byte [rax + rbx]
inc rax
or edx, ecx
cmp rax, r10
jb 0x14008d391
neg edx
sbb r11b, r11b
mov edx, r11d
and edx, 1
mov eax, edx
add rax, r10
jmp 0x14008d3b9
mov eax, 1
mov r10, rdx
mov qword [rsp + 0x18], rdi
test rsi, rsi
je 0x14008d415
mov rdi, qword [r9]
test rdi, rdi
je 0x14008d415
mov r8d, r11d
mov byte [rdi], r11b
and r8d, 1
lea r9, [rbx + r10]
test r10, r10
je 0x14008d412
mov ebx, edx
add rbx, rdi
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r9 - 1]
lea r9, [r9 - 1]
dec r10
movzx ecx, r11b
xor edx, ecx
add r8d, edx
mov byte [rbx + r10], r8b
shr r8d, 8
test r10, r10
jne 0x14008d3f0
add qword [rsi], rax
mov rdi, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
pop rsi
ret

Function at 0x1400990a0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor eax, eax
mov r10, rcx
test rcx, rcx
je 0x14009910c
movzx ecx, byte [rcx]
test cl, cl
je 0x14009910c
mov r11d, 0x100
nop word [rax + rax]
movsx r9d, cl
lea r10, [r10 + 1]
or r9d, r11d
mov r8d, eax
mov edx, r9d
mov ecx, 0x20
shr edx, 2
add r11d, 0x100
xor edx, r9d
imul r9d, r9d
and edx, 0xf
sub ecx, edx
shr r8, cl
mov ecx, edx
mov edx, eax
mov eax, r8d
shl edx, cl
movzx ecx, byte [r10]
or eax, edx
xor eax, r9d
test cl, cl
jne 0x1400990c0
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
ret
Function at 0x1400991c0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x20
call fcn.14013d720
sub rsp, rax
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x140099253
movzx eax, byte [rcx]
test al, al
je 0x140099253
mov qword [rsp + 0x30], rsi
mov esi, 0x100
nop
movsx ecx, al
call fcn.140099290
mov r9d, eax
mov edx, ebx
or r9d, esi
lea rdi, [rdi + 1]
mov eax, ebx
mov r8d, r9d
shr r8d, 2
mov ecx, 0x20
xor r8d, r9d
add esi, 0x100
and r8d, 0xf
imul r9d, r9d
sub ecx, r8d
shr rdx, cl
mov ecx, r8d
shl eax, cl
mov ebx, edx
or ebx, eax
movzx eax, byte [rdi]
xor ebx, r9d
test al, al
jne 0x1400991f0
mov rsi, qword [rsp + 0x30]
mov eax, ebx
shr eax, 0x10
xor eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x1400a6f00
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
mov eax, 0x30
call fcn.14013d720
sub rsp, rax
xor edi, edi
mov qword [rsp + 0x40], rbp
movsxd rbx, r9d
mov r11, r8
mov dword [rsp + 0x58], reloc.WS2_32.dll_recv
mov rbp, rcx
mov r10d, edi
test r9d, r9d
jle 0x1400a7024
cmp ebx, 8
jb 0x1400a7024
lea rax, [rbx - 1]
lea rcx, [rax + rdx]
add rax, r8
cmp rdx, rax
ja 0x1400a6f59
cmp rcx, r8
jae 0x1400a7024
sub r8, rdx
cmp ebx, 0x40
jb 0x1400a6fed
mov eax, ebx
mov qword [rsp + 0x48], rsi
and eax, 0xffffffc0
mov r9, 0xfffffffffffffff0
movsxd rsi, eax
sub r9, rdx
lea rcx, [rdx + 0x10]
movdqu xmm0, xmmword [rcx - 0x10]
add r10d, 0x40
movdqu xmm1, xmmword [r8 + rcx - 0x10]
movdqu xmm2, xmmword [r8 + rcx]
lea rcx, [rcx + 0x40]
xorps xmm1, xmm0
lea rax, [r9 + rcx]
movdqu xmmword [rcx - 0x50], xmm1
movdqu xmm0, xmmword [rcx - 0x40]
movdqu xmm1, xmmword [r8 + rcx - 0x30]
xorps xmm2, xmm0
movdqu xmmword [rcx - 0x40], xmm2
movdqu xmm0, xmmword [rcx - 0x30]
xorps xmm1, xmm0
movdqu xmmword [rcx - 0x30], xmm1
movdqu xmm0, xmmword [rcx - 0x20]
movdqu xmm1, xmmword [r8 + rcx - 0x20]
xorps xmm1, xmm0
movdqu xmmword [rcx - 0x20], xmm1
cmp rax, rsi
jl 0x1400a6f80
mov rsi, qword [rsp + 0x48]
mov eax, ebx
and al, 0x3f
cmp al, 8
jb 0x1400a7024
mov ecx, ebx
and ecx, 0xfffffff8
movsxd rax, r10d
movsxd r9, ecx
lea rcx, [rax + rdx]
nop dword [rax]
movq xmm0, qword [rcx]
add r10d, 8
movq xmm1, qword [r8 + rcx]
xorps xmm1, xmm0
movq qword [rcx], xmm1
add rcx, 8
mov rax, rcx
sub rax, rdx
cmp rax, r9
jl 0x1400a7000
movsxd rcx, r10d
mov r8, rbx
cmp rcx, rbx
jge 0x1400a7051
sub r11, rdx
lea rax, [rcx + rdx]
sub r8, rcx
nop dword [rax]
movzx ecx, byte [rax + r11]
xor byte [rax], cl
lea rax, [rax + 1]
sub r8, 1
jne 0x1400a7040
mov rcx, qword [rbp + 0x10]
lea r8, [rsp + 0x58]
mov r9, rdx
mov dword [rsp + 0x20], ebx
call fcn.14006ce40
mov rbp, qword [rsp + 0x40]
test eax, eax
je 0x1400a7084
cmp dword [rsp + 0x58], ebx
sete dil
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x1400a7230
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x1400a72b8
test r8, r8
je 0x1400a72b8
mov r9, qword [rcx + 0x28]
cmp r8, r9
cmovb r9, r8
test r9, r9
je 0x1400a7272
add rcx, 0x30
mov r11, rdx
sub r11, r10
nop dword [rax + rax]
movzx eax, byte [r11 + rcx - 0x30]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub r9, 1
jne 0x1400a7260
mov rax, qword [r10 + 0x28]
cmp r8, rax
jbe 0x1400a72b8
sub r8, rax
cmp r8, 0x10
jbe 0x1400a728c
mov r8d, reloc.WS2_32.dll_recv
jmp 0x1400a7291
test r8, r8
je 0x1400a72b8
xor ecx, ecx
nop dword [rax]
nop word [rax + rax]
mov rax, qword [r10 + 0x28]
add rax, rcx
movzx eax, byte [rax + rdx]
xor byte [r10 + rcx + 0x50], al
inc rcx
cmp rcx, r8
jb 0x1400a72a0
ret
Function at 0x1400aeb30
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push r13
push r14
mov eax, 0x40
call fcn.14013d720
sub rsp, rax
mov rsi, qword [rcx + 0x70]
mov rbx, r8
mov r8d, dword [rsi + 0x70]
lea r13, [rsi + 0x70]
mov qword [rsp + 0x38], r13
mov rbp, r9
mov r14, rdx
test r8d, r8d
je 0x1400aebb6
test r9, r9
je 0x1400aeb92
nop dword [rax]
cmp r8d, 0x40
jae 0x1400aeb92
mov eax, r8d
inc r8d
movzx ecx, byte [rax + rsi + 0x30]
xor cl, byte [rbx]
inc rbx
mov byte [r14], cl
inc r14
sub rbp, 1
jne 0x1400aeb70
mov dword [r13], r8d
test rbp, rbp
je 0x1400aece9
cmp r8d, 0x40
jne 0x1400aebb6
mov dword [r13], 0
add dword [rsi + 0x20], 1
jne 0x1400aebb6
inc dword [rsi + 0x24]
mov ecx, dword [rsi + 0x20]
lea rax, [rsi + 0x20]
mov qword [rsp + 0x80], r12
mov r12d, ebp
and r12d, 0x3f
mov qword [rsp + 0x88], r15
mov r15d, r12d
sub rbp, r15
mov dword [rsp + 0x30], r12d
cmp rbp, 0x40
jb 0x1400aec76
mov qword [rsp + 0x78], rdi
lea r13, [rsi + 0x20]
mov r12d, 0x10000000
mov r15d, ecx
nop dword [rax + rax]
mov rdx, rbp
mov qword [rsp + 0x20], r13
shr rdx, 6
mov r9, rsi
cmp rdx, r12
cmova rdx, r12
mov rdi, rdx
lea eax, [rdx + r15]
xor r15d, r15d
mov ecx, eax
cmp rcx, rdx
cmovae r15d, eax
sub rdi, rcx
cmp rcx, rdx
mov rcx, r14
cmovae rdi, rdx
mov rdx, rbx
shl rdi, 6
mov r8, rdi
call fcn.1400fe130
sub rbp, rdi
mov dword [r13], r15d
add rbx, rdi
add r14, rdi
test r15d, r15d
jne 0x1400aec5a
inc dword [rsi + 0x24]
cmp rbp, 0x40
jae 0x1400aec00
mov r12d, dword [rsp + 0x30]
lea rax, [rsi + 0x20]
mov rdi, qword [rsp + 0x78]
mov r15d, r12d
mov r13, qword [rsp + 0x38]
test r12d, r12d
je 0x1400aecd9
lea rcx, [rsi + 0x30]
mov qword [rsp + 0x20], rax
xorps xmm0, xmm0
mov r9, rsi
movups xmmword [rcx], xmm0
mov r8d, 0x40
mov rdx, rcx
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm0
call fcn.1400fe130
test r12d, r12d
je 0x1400aecd5
sub rsi, rbx
sub r14, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rsi + rbx + 0x30]
xor al, byte [rbx]
mov byte [r14 + rbx], al
lea rbx, [rbx + 1]
sub r15, 1
jne 0x1400aecc0
mov dword [r13], r12d
mov r12, qword [rsp + 0x80]
mov r15, qword [rsp + 0x88]
mov eax, 1
add rsp, 0x40
pop r14
pop r13
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400d3420
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
xor r10d, r10d
movsxd rbx, r8d
mov r11, rdx
mov rdi, rcx
test r8d, r8d
jle 0x1400d345f
mov r9, rdx
mov rdx, rcx
sub rdx, r9
movzx eax, byte [r9]
cmp byte [rdx + r9], al
jne 0x1400d345f
inc r9
inc r10d
mov rax, r9
sub rax, r11
cmp rax, rbx
jl 0x1400d3444
lea edx, [r8 - 1]
movsxd rax, edx
test edx, edx
js 0x1400d348a
mov r8, rdi
lea rcx, [rax + r11]
sub r8, r11
cmp byte [rcx + r8], 0
jne 0x1400d348a
cmp byte [rcx], 0xff
jne 0x1400d348a
dec edx
dec rcx
cmp rcx, r11
jns 0x1400d3474
cmp r10d, edx
jl case.0x1400d34e3.2
jle 0x1400d34a8
lea eax, [r10*8]
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
movsxd rax, r10d
movzx r8d, byte [rax + r11]
movzx r9d, byte [rax + rdi]
movzx edx, r8b
xor dl, r9b
movzx eax, dl
dec eax
cmp eax, 0x7e
ja case.0x1400d34e3.2
lea r11, [0x140000000]
cdqe
movzx eax, byte [r11 + rax + 0xd3558]
mov ecx, dword [r11 + rax*4 + 0xd3538]
add rcx, r11
jmp rcx
mov eax, 7
jmp 0x1400d3514
mov eax, 6
jmp 0x1400d3514
mov eax, 5
jmp 0x1400d3514
mov eax, 4
jmp 0x1400d3514
mov eax, 3
jmp 0x1400d3514
mov eax, 2
jmp 0x1400d3514
mov eax, 1
test dl, r9b
jne case.0x1400d34e3.2
and r8b, dl
lea eax, [rax + r10*8]
cmp r8b, dl
je 0x1400d352a
mov eax, 0xffffffff
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret