joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140117680
Capabilities:
Copy file

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
mov edi, r8d
mov rbp, rdx
mov rsi, rcx
cmp qword [rcx + 0x18], 0
jne 0x1401176ca
xor r9d, r9d
mov r8d, 0x128
lea rdx, str.d:jenkinsworkspace_n_poco_vc120poco_1.11.1_foundation_src_file_win32u.cpp
lea rcx, str.__path.empty__
call fcn.1401124b0
movdqa xmm0, xmmword [0x1403e1a30]
movdqu xmmword [rsp + 0x38], xmm0
xor eax, eax
mov word [rsp + 0x28], ax
lea rdx, [rsp + 0x28]
mov rcx, rbp
call fcn.1401172a0
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
lea rcx, [rsi + 0x28]
cmp qword [rcx + 0x18], 8
jb 0x14011770b
mov rcx, qword [rcx]
and edi, 1
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x140117774
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x140117759
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140117754
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14011776e
call fcn.140282c34
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.14028ea2c
nop
lea rcx, [rsi + 8]
call fcn.1401179e0
int3

Function at 0x140117840
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 0
mov rbx, rcx
jne 0x14011786c
xor r9d, r9d
lea rdx, str.d:jenkinsworkspace_n_poco_vc120poco_1.11.1_foundation_src_file_win32u.cpp
mov r8d, 0x183
lea rcx, str.__path.empty__
call fcn.1401124b0
mov rcx, rbx
call fcn.1401178d0
test al, al
je 0x14011788c
mov rcx, rbx
call fcn.140117de0
test al, al
je 0x14011788c
xor al, al
add rsp, 0x20
pop rbx
ret
cmp qword [rbx + 0x40], 8
lea rcx, [rbx + 0x28]
jb 0x14011789a
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1401178ae
mov al, 1
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 8]
call fcn.1401179e0
int3

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

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 0
mov rbx, rcx
jne 0x1401178fa
xor r9d, r9d
lea rdx, str.d:jenkinsworkspace_n_poco_vc120poco_1.11.1_foundation_src_file_win32u.cpp
lea rcx, str.__path.empty__
lea r8d, [r9 + 0x5e]
call fcn.1401124b0
cmp qword [rbx + 0x40], 8
lea rcx, [rbx + 0x28]
jb 0x140117908
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140117930
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
ja 0x140117938
mov ecx, 0x20800c
bt ecx, eax
jae 0x140117938
xor al, al
add rsp, 0x20
pop rbx
ret
mov al, 1
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 8]
call fcn.1401179e0
int3
Function at 0x140117de0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 0
mov rbx, rcx
jne 0x140117e0c
xor r9d, r9d
lea rdx, str.d:jenkinsworkspace_n_poco_vc120poco_1.11.1_foundation_src_file_win32u.cpp
mov r8d, 0x9f
lea rcx, str.__path.empty__
call fcn.1401124b0
cmp qword [rbx + 0x40], 8
lea rcx, [rbx + 0x28]
jb 0x140117e1a
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140117e30
shr eax, 4
and al, 1
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 8]
call fcn.1401179e0
int3

Function at 0x140117e40
Capabilities:
Check if file exists

Disassembly:
jmp 0x140117e50
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 0
mov rbx, rcx
jne 0x140117e7c
xor r9d, r9d
lea rdx, str.d:jenkinsworkspace_n_poco_vc120poco_1.11.1_foundation_src_file_win32u.cpp
mov r8d, 0xaa
lea rcx, str.__path.empty__
call fcn.1401124b0
cmp qword [rbx + 0x40], 8
lea rcx, [rbx + 0x28]
jb 0x140117e8a
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140117ea8
and eax, 0x410
cmp eax, 0x400
sete al
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 8]
call fcn.1401179e0
int3

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

Disassembly:
jmp 0x140117e50
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 0
mov rbx, rcx
jne 0x140117e7c
xor r9d, r9d
lea rdx, str.d:jenkinsworkspace_n_poco_vc120poco_1.11.1_foundation_src_file_win32u.cpp
mov r8d, 0xaa
lea rcx, str.__path.empty__
call fcn.1401124b0
cmp qword [rbx + 0x40], 8
lea rcx, [rbx + 0x28]
jb 0x140117e8a
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140117ea8
and eax, 0x410
cmp eax, 0x400
sete al
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 8]
call fcn.1401179e0
int3

Function at 0x140118160
Capabilities:
Delete directory
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x18], 0
mov rdi, rcx
jne 0x140118190
xor r9d, r9d
lea rdx, str.d:jenkinsworkspace_n_poco_vc120poco_1.11.1_foundation_src_file_win32u.cpp
mov r8d, 0x160
lea rcx, str.__path.empty__
call fcn.1401124b0
mov rcx, rdi
lea rbx, [rdi + 0x28]
call fcn.140117de0
test al, al
je 0x1401181b5
cmp qword [rbx + 0x18], 8
jb 0x1401181aa
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1401181c8
cmp qword [rbx + 0x18], 8
jb 0x1401181bf
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1401181d7
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rcx, [rdi + 8]
call fcn.1401179e0
int3
Function at 0x140118220
Capabilities:
Move file

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
cmp qword [rcx + 0x18], 0
jne 0x14011826a
xor r9d, r9d
mov r8d, 0x133
lea rdx, str.d:jenkinsworkspace_n_poco_vc120poco_1.11.1_foundation_src_file_win32u.cpp
lea rcx, str.__path.empty__
call fcn.1401124b0
movdqa xmm0, xmmword [0x1403e1a30]
movdqu xmmword [rsp + 0x38], xmm0
xor eax, eax
mov word [rsp + 0x28], ax
lea rdx, [rsp + 0x28]
mov rcx, rbp
call fcn.1401172a0
lea rdx, [rsp + 0x28]
lea rcx, [rdi + 0x28]
test sil, 1
je 0x1401182c4
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
cmp qword [rcx + 0x18], 8
jb 0x1401182b1
mov rcx, qword [rcx]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x140118343
jmp 0x1401182ea
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
cmp qword [rcx + 0x18], 8
jb 0x1401182da
mov rcx, qword [rcx]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x14011834d
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x140118328
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140118323
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14011833d
call fcn.140282c34
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.14028ea2c
nop
lea rcx, [rdi + 8]
call fcn.1401179e0
int3
lea rcx, [rdi + 8]
call fcn.1401179e0
int3

Function at 0x1401215e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, r8
mov rcx, qword [rcx + 0xa8]
mov rsi, rdx
cmp rcx, 0xffffffffffffffff
je 0x14012166a
mov eax, dword [rbx + 0x80]
test al, 1
je 0x14012166a
test al, 2
je 0x140121623
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x68]
mov rcx, qword [rbx + 0xa8]
xor eax, eax
lea r9, [rsp + 0x40]
mov r8d, edi
mov dword [rsp + 0x40], eax
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14012164f
lea rcx, [rbx + 0x88]
call fcn.1401179d0
mov eax, dword [rsp + 0x40]
add qword [rbx + 0xb0], rax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1401219c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, r8
mov rcx, qword [rcx + 0xa8]
mov rsi, rdx
cmp rcx, 0xffffffffffffffff
je 0x140121a96
mov eax, dword [rbx + 0x80]
test al, 2
je 0x140121a96
test al, 8
je 0x140121a49
mov r9d, 2
mov qword [rsp + 0x58], 0
lea r8, [rsp + 0x5c]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x58], eax
cmp eax, 0xffffffff
jne 0x140121a36
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140121a36
lea rcx, [rbx + 0x88]
call fcn.1401179d0
mov rax, qword [rsp + 0x58]
mov rcx, qword [rbx + 0xa8]
mov qword [rbx + 0xb0], rax
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 0
mov r8d, edi
mov qword [rsp + 0x20], 0
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140121a7b
lea rcx, [rbx + 0x88]
call fcn.1401179d0
mov eax, dword [rsp + 0x40]
add qword [rbx + 0xb0], rax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140121ca0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0xa0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbx, rcx
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rcx
mov r8, rdx
mov edx, dword [rcx + 0x20]
xor ecx, ecx
call fcn.1402a36dc
mov qword [rbx + 0x10], rax
mov edx, dword [rsp + 0xb0]
mov dword [rbx + 0x18], edx
test rax, rax
je 0x140121d40
mov edx, dword [rbx + 0x1c]
test edx, edx
je 0x140121d01
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x140121d0a
add rsp, 0xa0
pop rbx
ret
lea rdx, str.cannot_set_thread_priority
lea rcx, [rsp + 0x38]
call fcn.14000b8e0
nop
xor r8d, r8d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.140113c50
lea rdx, [0x14045cce8]
lea rcx, [rsp + 0x58]
call fcn.1402852c0
nop
lea rdx, str.cannot_create_thread
lea rcx, [rsp + 0x38]
call fcn.14000b8e0
nop
xor r8d, r8d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.140113c50
lea rdx, [0x14045cce8]
lea rcx, [rsp + 0x58]
call fcn.1402852c0
int3

Function at 0x140127c90
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x38], rax
mov qword [rcx + 0x40], rax
mov qword [rcx + 0x48], rax
mov qword [rcx + 0x50], rax
mov qword [rcx + 0x58], rax
mov qword [rcx + 0x18], rax
mov dword [rcx + 8], 0x67452301
mov dword [rcx + 0xc], 0xefcdab89
mov dword [rcx + 0x10], 0x98badcfe
mov dword [rcx + 0x14], 0x10325476
ret
Function at 0x140133690
Capabilities:
Get mac address on windows

Disassembly:
jmp 0x1401336a0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor eax, eax
mov dword [rsp + 0x38], 0x2c0
mov dword [rcx], eax
mov rbx, rcx
mov word [rcx + 4], ax
mov ecx, 0x2c0
call fcn.140283380
lea rdx, [rsp + 0x38]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x1401336f3
mov rcx, rdi
call fcn.140282c34
mov ecx, dword [rsp + 0x38]
call fcn.140283380
mov rdi, rax
jmp 0x1401336f7
test eax, eax
jne 0x14013374e
lea rdx, [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x140133746
xor dl, dl
mov rax, rdi
test rdi, rdi
je 0x140133746
test dl, dl
jne 0x140133746
cmp dword [rax + 0x1a4], 6
jne 0x14013373e
cmp dword [rax + 0x194], 6
jne 0x14013373e
mov ecx, dword [rax + 0x198]
mov dl, 1
mov dword [rbx], ecx
movzx ecx, word [rax + 0x19c]
mov word [rbx + 4], cx
mov rax, qword [rax]
test rax, rax
jne 0x140133713
mov rcx, rdi
call fcn.140282c34
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1401336a0
Capabilities:
Get mac address on windows

Disassembly:
jmp 0x1401336a0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor eax, eax
mov dword [rsp + 0x38], 0x2c0
mov dword [rcx], eax
mov rbx, rcx
mov word [rcx + 4], ax
mov ecx, 0x2c0
call fcn.140283380
lea rdx, [rsp + 0x38]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x1401336f3
mov rcx, rdi
call fcn.140282c34
mov ecx, dword [rsp + 0x38]
call fcn.140283380
mov rdi, rax
jmp 0x1401336f7
test eax, eax
jne 0x14013374e
lea rdx, [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x140133746
xor dl, dl
mov rax, rdi
test rdi, rdi
je 0x140133746
test dl, dl
jne 0x140133746
cmp dword [rax + 0x1a4], 6
jne 0x14013373e
cmp dword [rax + 0x194], 6
jne 0x14013373e
mov ecx, dword [rax + 0x198]
mov dl, 1
mov dword [rbx], ecx
movzx ecx, word [rax + 0x19c]
mov word [rbx + 4], cx
mov rax, qword [rax]
test rax, rax
jne 0x140133713
mov rcx, rdi
call fcn.140282c34
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140133ba0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, r8
mov qword [rsp + 0x50], 0
mov rbx, rdx
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov rcx, qword [rsp + 0x50]
mov r8, rbx
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x140187af0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r15
mov eax, 0xd8
call fcn.140283930
sub rsp, rax
mov rax, qword [0x1404680d8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov r12, qword [rdx + 8]
xor esi, esi
mov r15, qword [rdx + 0x10]
mov rax, r12
sub rax, r8
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov rdi, r8
mov r13, rdx
mov ebp, esi
cmp r15, r8
jb 0x140187cd6
cmp r8, 0x40
ja 0x140187cd6
lea rax, [rsp + 0x40]
mov qword [rsp + 0x118], rbx
neg rax
mov qword [rsp + 0xd0], r14
and eax, 0x3f
lea r14, [rsp + 0x40]
add r14, rax
lea rax, [r8 + 0x100]
cmp r15, rax
jbe 0x140187b8a
mov rbp, r15
sub rbp, r8
sub rbp, 0x100
xor edx, edx
mov qword [rsp + 0x20], rsi
mov rcx, r14
mov rbx, rsi
call fcn.140286140
mov r9, rsi
cmp rbp, r15
jae 0x140187c47
mov r11, qword [r13 + 0x20]
mov r10, qword [rsp + 0x28]
lea r13, [r11 + r12]
nop word [rax + rax]
lea rdx, [r11 + rbp]
mov rax, rbp
xor rax, r10
mov rcx, rdx
sub rcx, r13
xor rcx, r12
lea r8, [rax - 1]
not rax
shr rax, 0x3f
shr r8, 0x3f
and r8, rax
mov rax, rbp
xor rax, r12
neg r8
or rcx, rax
mov rax, r8
xor rcx, rbp
or rax, rsi
shr rcx, 0x3f
and r8, r9
neg rcx
or rbx, r8
mov rsi, rcx
inc rbp
and rsi, rax
movzx eax, byte [rdx]
and al, sil
or byte [r9 + r14], al
inc r9
mov rcx, r9
mov rax, rdi
sub rcx, rdi
xor rax, r9
xor rcx, rdi
or rcx, rax
xor rcx, r9
shr rcx, 0x3f
neg rcx
and r9, rcx
cmp rbp, r15
jb 0x140187bc0
xor esi, esi
test rdi, rdi
je 0x140187cbf
mov r9, qword [rsp + 0x30]
mov rax, rbx
and rax, 0xffffffffffffffdf
movzx r8d, byte [rax + r14]
mov rax, rbx
or rax, 0x20
movzx edx, byte [rax + r14]
mov eax, ebx
and eax, 0x20
inc rbx
dec eax
shr eax, 0x1f
neg al
movzx eax, al
mov dword [rsp + 0x28], eax
not eax
mov dword [rsp + 0x20], eax
mov ecx, dword [rsp + 0x20]
mov eax, dword [rsp + 0x28]
and cl, dl
and al, r8b
or al, cl
mov rcx, rbx
sub rcx, rdi
mov byte [r9 + rsi], al
xor rcx, rdi
mov rax, rdi
xor rax, rbx
inc rsi
or rcx, rax
xor rcx, rbx
shr rcx, 0x3f
neg rcx
and rbx, rcx
cmp rsi, rdi
jb 0x140187c51
mov r14, qword [rsp + 0xd0]
mov eax, 1
mov rbx, qword [rsp + 0x118]
jmp 0x140187cd8
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140282c10
add rsp, 0xd8
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401be7f0
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.140283930
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 0x1401c06b0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor eax, eax
mov r10, rcx
test rcx, rcx
je 0x1401c071c
movzx ecx, byte [rcx]
test cl, cl
je 0x1401c071c
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 0x1401c06d0
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
ret

Function at 0x1401c07e0
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.140283930
sub rsp, rax
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x1401c0873
movzx eax, byte [rcx]
test al, al
je 0x1401c0873
mov qword [rsp + 0x30], rsi
mov esi, 0x100
nop
movsx ecx, al
call fcn.1401eb1b0
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 0x1401c0810
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 0x1401c3a80
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x28
call fcn.140283930
sub rsp, rax
lea rcx, [0x140477b28]
add rsp, 0x28
jmp fcn.1401be650
Function at 0x1401d2470
Capabilities:
Encode data using xor

Disassembly:
xor r9b, r9b
mov r10, rdx
test r8, r8
je 0x1401d2497
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 0x1401d2480
movzx eax, r9b
ret

Function at 0x1401eaaa0
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 0x1401eaadf
mov r9, rdx
mov rdx, rcx
sub rdx, r9
movzx eax, byte [r9]
cmp byte [rdx + r9], al
jne 0x1401eaadf
inc r9
inc r10d
mov rax, r9
sub rax, r11
cmp rax, rbx
jl 0x1401eaac4
lea edx, [r8 - 1]
movsxd rax, edx
test edx, edx
js 0x1401eab0a
mov r8, rdi
lea rcx, [rax + r11]
sub r8, r11
cmp byte [rcx + r8], 0
jne 0x1401eab0a
cmp byte [rcx], 0xff
jne 0x1401eab0a
dec edx
dec rcx
cmp rcx, r11
jns 0x1401eaaf4
cmp r10d, edx
jl case.0x1401eab63.2
jle 0x1401eab28
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.0x1401eab63.2
lea r11, [0x140000000]
cdqe
movzx eax, byte [r11 + rax + 0x1eabd8]
mov ecx, dword [r11 + rax*4 + 0x1eabb8]
add rcx, r11
jmp rcx
mov eax, 7
jmp 0x1401eab94
mov eax, 6
jmp 0x1401eab94
mov eax, 5
jmp 0x1401eab94
mov eax, 4
jmp 0x1401eab94
mov eax, 3
jmp 0x1401eab94
mov eax, 2
jmp 0x1401eab94
mov eax, 1
test dl, r9b
jne case.0x1401eab63.2
and r8b, dl
lea eax, [rax + r10*8]
cmp r8b, dl
je 0x1401eabaa
mov eax, 0xffffffff
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
Function at 0x14020aa20
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x30
call fcn.140283930
sub rsp, rax
mov r10, r9
mov rbx, r8
mov r9, qword [rsp + 0xa0]
mov r14, rdx
mov rbp, rcx
mov edi, dword [r9]
mov dword [rsp + 0x80], edi
test edi, edi
je 0x14020aa98
mov rdx, qword [rsp + 0x98]
nop dword [rax]
test rbx, rbx
je 0x14020aa91
mov eax, edi
dec rbx
movzx ecx, byte [rax + rdx]
xor cl, byte [rbp]
inc rbp
mov byte [r14], cl
inc r14
inc edi
and edi, 0xf
jne 0x14020aa70
mov dword [rsp + 0x80], edi
mov r8, qword [rsp + 0x90]
mov esi, 1
movzx r12d, byte [r8 + 0xc]
lea r15, [r8 + 0xc]
mov r11, qword [rsp + 0xa8]
shl r12d, 8
movzx eax, byte [r8 + 0xd]
lea r13d, [rsi + 0xb]
or r12d, eax
movzx eax, byte [r8 + 0xe]
shl r12d, 8
or r12d, eax
movzx eax, byte [r8 + 0xf]
shl r12d, 8
or r12d, eax
cmp rbx, 0x10
jb 0x14020abce
mov eax, 0x10000000
mov edi, r13d
mov qword [rsp + 0x20], r8
mov rdx, rbx
shr rdx, 4
mov r9, r10
cmp rdx, rax
cmova rdx, rax
add r12d, edx
mov r13, rdx
mov eax, r12d
mov ecx, r12d
sub r13, rax
cmp rax, rdx
cmovae r13, rdx
xor r12d, r12d
cmp rax, rdx
mov r8, r13
mov rdx, r14
cmovae r12d, ecx
mov rcx, rbp
call r11
mov r8, qword [rsp + 0x90]
mov eax, r12d
shr eax, 0x18
mov byte [r15], al
mov eax, r12d
shr eax, 0x10
mov byte [r8 + 0xd], al
mov eax, r12d
shr eax, 8
mov byte [r8 + 0xe], al
mov byte [r8 + 0xf], r12b
test r12d, r12d
jne 0x14020ab8d
mov r8d, edi
mov eax, esi
mov rdx, r15
nop dword [rax + rax]
movzx ecx, byte [rdx - 1]
lea rdx, [rdx - 1]
add eax, ecx
mov byte [rdx], al
shr eax, 8
add r8d, 0xffffffff
jne 0x14020ab70
mov r8, qword [rsp + 0x90]
mov r10, qword [rsp + 0x88]
mov eax, 0x10000000
mov r11, qword [rsp + 0xa8]
shl r13, 4
sub rbx, r13
add r14, r13
add rbp, r13
cmp rbx, 0x10
jae 0x14020aaf0
mov edi, dword [rsp + 0x80]
mov r13d, ntohl
mov r9, qword [rsp + 0xa0]
test rbx, rbx
je 0x14020ac71
mov rax, qword [rsp + 0x98]
xor ecx, ecx
mov qword [rsp + 0x20], r8
mov r9, r10
mov r8, rsi
mov rdx, rax
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov rcx, rax
call r11
mov rcx, qword [rsp + 0x90]
inc r12d
mov eax, r12d
shr eax, 0x18
mov byte [r15], al
mov eax, r12d
shr eax, 0x10
mov byte [rcx + 0xd], al
mov eax, r12d
shr eax, 8
mov byte [rcx + 0xe], al
mov byte [rcx + 0xf], r12b
test r12d, r12d
jne 0x14020ac47
nop dword [rax + rax]
movzx eax, byte [r15 - 1]
lea r15, [r15 - 1]
add esi, eax
mov byte [r15], sil
shr esi, 8
add r13d, 0xffffffff
jne 0x14020ac30
mov rdx, qword [rsp + 0x98]
nop
mov ecx, edi
inc edi
movzx eax, byte [rcx + rbp]
xor al, byte [rcx + rdx]
mov byte [rcx + r14], al
sub rbx, 1
jne 0x14020ac50
mov rax, qword [rsp + 0xa0]
mov dword [rax], edi
jmp 0x14020ac74
mov dword [r9], edi
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14020b700
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push r14
mov eax, 0x20
call fcn.140283930
sub rsp, rax
cmp qword [rcx + 0x38], 0
mov rdi, r8
mov r14, rdx
mov rbp, rcx
je 0x14020b730
mov eax, 0xfffffffe
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
mov rcx, qword [rcx + 0x30]
movabs rax, 0x2000000000000000
add rcx, r8
cmp rcx, rax
ja 0x14020b832
cmp rcx, r8
jb 0x14020b832
mov qword [rsp + 0x40], rbx
lea rbx, [rbp + 0x40]
mov qword [rsp + 0x48], rsi
mov esi, dword [rbp + 0x174]
mov qword [rsp + 0x50], r12
mov qword [rbp + 0x30], rcx
test esi, esi
je 0x14020b7b9
test rdi, rdi
je 0x14020b7a4
movzx eax, byte [r14]
lea rbx, [rbp + 0x40]
mov ecx, esi
inc r14
dec rdi
xor byte [rcx + rbx], al
inc esi
and esi, 0xf
jne 0x14020b774
lea r12, [rbp + 0x60]
mov rcx, rbx
mov rdx, r12
call fcn.14020ce80
jmp 0x14020b7bd
test esi, esi
jne 0x14020b812
lea r12, [rbp + 0x60]
mov rcx, rbx
mov rdx, r12
call fcn.14020ce80
jmp 0x14020b7bd
lea r12, [rbp + 0x60]
mov qword [rsp + 0x58], r15
mov r15, rdi
and r15, 0xfffffffffffffff0
je 0x14020b7e2
mov r9, r15
mov r8, r14
mov rdx, r12
mov rcx, rbx
call fcn.14020cca0
add r14, r15
sub rdi, r15
mov r15, qword [rsp + 0x58]
test rdi, rdi
je 0x14020b812
mov esi, edi
sub r14, rbp
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r14 + rbx - 0x40]
xor byte [rbx], al
lea rbx, [rbx + 1]
sub rdi, 1
jne 0x14020b800
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov r12, qword [rsp + 0x50]
mov dword [rbp + 0x174], esi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
mov eax, 0xffffffff
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret