joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008ad20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov r12, r9
movzx r15d, r8b
mov r14, rdx
mov r10, rcx
mov r13, qword [rcx]
mov rsi, r13
mov rbx, qword [r13 + 8]
mov dil, 1
cmp byte [rbx + 0x19], 0
jne 0x14008adae
mov rsi, rbx
test r15b, r15b
je 0x14008ad83
lea rcx, [rbx + 0x20]
mov rdx, r12
call fcn.14008c0f0
mov edi, eax
shr edi, 0x1f
xor dil, 1
jmp 0x14008ad95
lea rdx, [rbx + 0x20]
mov rcx, r12
call fcn.14008c0f0
shr eax, 0x1f
movzx edi, al
test dil, dil
je 0x14008ad9f
mov rbx, qword [rbx]
jmp 0x14008ada3
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x19], 0
je 0x14008ad64
mov r10, qword [rsp + 0x70]
mov rbx, rsi
mov rcx, rsi
test dil, dil
je 0x14008ae70
cmp rsi, qword [r13]
jne 0x14008adfa
movzx eax, byte [rsp + 0x90]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], r12
mov r9, rsi
mov r8b, 1
lea rdx, [rsp + 0x70]
mov rcx, r10
call fcn.14008aa90
mov rax, qword [rax]
mov qword [r14], rax
mov byte [r14 + 8], 1
mov rax, r14
jmp 0x14008aec5
cmp byte [rsi + 0x19], 0
je 0x14008ae06
mov rbx, qword [rsi + 0x10]
jmp 0x14008ae6d
mov rax, qword [rsi]
cmp byte [rax + 0x19], 0
je 0x14008ae4f
mov rax, qword [rsi + 8]
cmp byte [rax + 0x19], 0
jne 0x14008ae41
mov rdx, rsi
nop dword [rax]
mov r8, rax
mov r9, rax
mov rcx, rdx
cmp rdx, qword [rax]
jne 0x14008ae41
mov rbx, rax
mov rax, qword [rax + 8]
mov rdx, rbx
mov rcx, rbx
cmp byte [rax + 0x19], 0
je 0x14008ae20
cmp byte [rbx + 0x19], 0
jne 0x14008ae70
mov rbx, rax
mov rcx, rax
jmp 0x14008ae70
mov rbx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
jne 0x14008ae6d
nop dword [rax]
mov rbx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
je 0x14008ae60
mov rcx, rbx
add rcx, 0x20
mov rdx, r12
call fcn.14008c0f0
shr eax, 0x1f
test al, al
je 0x14008aeba
movzx eax, byte [rsp + 0x90]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], r12
mov r9, rsi
movzx r8d, dil
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
call fcn.14008aa90
mov rax, qword [rax]
mov qword [r14], rax
mov byte [r14 + 8], 1
mov rax, r14
jmp 0x14008aec5
mov qword [r14], rbx
mov byte [r14 + 8], 0
mov rax, r14
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14009ef90
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 0x14009efda
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.14009d750
movdqa xmm0, xmmword [0x1402e5c30]
movdqu xmmword [rsp + 0x38], xmm0
xor eax, eax
mov word [rsp + 0x28], ax
lea rdx, [rsp + 0x28]
mov rcx, rbp
call fcn.14009ebb0
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
lea rcx, [rsi + 0x28]
cmp qword [rcx + 0x18], 8
jb 0x14009f01b
mov rcx, qword [rcx]
and edi, 1
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14009f084
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x14009f069
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009f064
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14009f07e
call fcn.1401d94a8
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.1401e4d9c
nop
lea rcx, [rsi + 8]
call fcn.14009f260
int3

Function at 0x14009f140
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 0
mov rbx, rcx
jne 0x14009f16c
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.14009d750
mov rcx, rbx
call fcn.14009f1d0
test al, al
je 0x14009f18c
mov rcx, rbx
call fcn.14009f660
test al, al
je 0x14009f18c
xor al, al
add rsp, 0x20
pop rbx
ret
cmp qword [rbx + 0x40], 8
lea rcx, [rbx + 0x28]
jb 0x14009f19a
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14009f1ae
mov al, 1
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 8]
call fcn.14009f260
int3

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

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 0
mov rbx, rcx
jne 0x14009f1fa
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.14009d750
cmp qword [rbx + 0x40], 8
lea rcx, [rbx + 0x28]
jb 0x14009f208
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14009f230
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
ja 0x14009f238
mov ecx, 0x20800c
bt ecx, eax
jae 0x14009f238
xor al, al
add rsp, 0x20
pop rbx
ret
mov al, 1
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 8]
call fcn.14009f260
int3
Function at 0x14009f660
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 0
mov rbx, rcx
jne 0x14009f68c
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.14009d750
cmp qword [rbx + 0x40], 8
lea rcx, [rbx + 0x28]
jb 0x14009f69a
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14009f6b0
shr eax, 4
and al, 1
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 8]
call fcn.14009f260
int3

Function at 0x14009f6c0
Capabilities:
Check if file exists

Disassembly:
jmp 0x14009f6d0
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 0
mov rbx, rcx
jne 0x14009f6fc
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.14009d750
cmp qword [rbx + 0x40], 8
lea rcx, [rbx + 0x28]
jb 0x14009f70a
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14009f728
and eax, 0x410
cmp eax, 0x400
sete al
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 8]
call fcn.14009f260
int3

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

Disassembly:
jmp 0x14009f6d0
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 0
mov rbx, rcx
jne 0x14009f6fc
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.14009d750
cmp qword [rbx + 0x40], 8
lea rcx, [rbx + 0x28]
jb 0x14009f70a
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14009f728
and eax, 0x410
cmp eax, 0x400
sete al
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 8]
call fcn.14009f260
int3

Function at 0x14009f9e0
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 0x14009fa10
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.14009d750
mov rcx, rdi
lea rbx, [rdi + 0x28]
call fcn.14009f660
test al, al
je 0x14009fa35
cmp qword [rbx + 0x18], 8
jb 0x14009fa2a
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14009fa48
cmp qword [rbx + 0x18], 8
jb 0x14009fa3f
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14009fa57
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rcx, [rdi + 8]
call fcn.14009f260
int3
Function at 0x14009faa0
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 0x14009faea
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.14009d750
movdqa xmm0, xmmword [0x1402e5c30]
movdqu xmmword [rsp + 0x38], xmm0
xor eax, eax
mov word [rsp + 0x28], ax
lea rdx, [rsp + 0x28]
mov rcx, rbp
call fcn.14009ebb0
lea rdx, [rsp + 0x28]
lea rcx, [rdi + 0x28]
test sil, 1
je 0x14009fb44
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
cmp qword [rcx + 0x18], 8
jb 0x14009fb31
mov rcx, qword [rcx]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x14009fbc3
jmp 0x14009fb6a
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
cmp qword [rcx + 0x18], 8
jb 0x14009fb5a
mov rcx, qword [rcx]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x14009fbcd
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x14009fba8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009fba3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14009fbbd
call fcn.1401d94a8
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.1401e4d9c
nop
lea rcx, [rdi + 8]
call fcn.14009f260
int3
lea rcx, [rdi + 8]
call fcn.14009f260
int3

Function at 0x1400a0080
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.1401f7080
mov qword [rbx + 0x10], rax
mov edx, dword [rsp + 0xb0]
mov dword [rbx + 0x18], edx
test rax, rax
je 0x1400a0120
mov edx, dword [rbx + 0x1c]
test edx, edx
je 0x1400a00e1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x1400a00ea
add rsp, 0xa0
pop rbx
ret
lea rdx, str.cannot_set_thread_priority
lea rcx, [rsp + 0x38]
call fcn.14000cd40
nop
xor r8d, r8d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.140094430
lea rdx, [0x14031bf40]
lea rcx, [rsp + 0x58]
call fcn.1401db0ac
nop
lea rdx, str.cannot_create_thread
lea rcx, [rsp + 0x38]
call fcn.14000cd40
nop
xor r8d, r8d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.140094430
lea rdx, [0x14031bf40]
lea rcx, [rsp + 0x58]
call fcn.1401db0ac
int3
Function at 0x1400ab970
Capabilities:
Get mac address on windows

Disassembly:
jmp 0x1400ab980
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.1401da1a0
lea rdx, [rsp + 0x38]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x1400ab9d3
mov rcx, rdi
call fcn.1401d94a8
mov ecx, dword [rsp + 0x38]
call fcn.1401da1a0
mov rdi, rax
jmp 0x1400ab9d7
test eax, eax
jne 0x1400aba2e
lea rdx, [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x1400aba26
xor dl, dl
mov rax, rdi
test rdi, rdi
je 0x1400aba26
test dl, dl
jne 0x1400aba26
cmp dword [rax + 0x1a4], 6
jne 0x1400aba1e
cmp dword [rax + 0x194], 6
jne 0x1400aba1e
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 0x1400ab9f3
mov rcx, rdi
call fcn.1401d94a8
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400ab980
Capabilities:
Get mac address on windows

Disassembly:
jmp 0x1400ab980
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.1401da1a0
lea rdx, [rsp + 0x38]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x1400ab9d3
mov rcx, rdi
call fcn.1401d94a8
mov ecx, dword [rsp + 0x38]
call fcn.1401da1a0
mov rdi, rax
jmp 0x1400ab9d7
test eax, eax
jne 0x1400aba2e
lea rdx, [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x1400aba26
xor dl, dl
mov rax, rdi
test rdi, rdi
je 0x1400aba26
test dl, dl
jne 0x1400aba26
cmp dword [rax + 0x1a4], 6
jne 0x1400aba1e
cmp dword [rax + 0x194], 6
jne 0x1400aba1e
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 0x1400ab9f3
mov rcx, rdi
call fcn.1401d94a8
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400ac020
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 0x1400cfb90
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r15
mov eax, 0xd8
call fcn.1401d9bc0
sub rsp, rax
mov rax, qword [0x140325af8]
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 0x1400cfd76
cmp r8, 0x40
ja 0x1400cfd76
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 0x1400cfc2a
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.1401dbcd0
mov r9, rsi
cmp rbp, r15
jae 0x1400cfce7
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 0x1400cfc60
xor esi, esi
test rdi, rdi
je 0x1400cfd5f
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 0x1400cfcf1
mov r14, qword [rsp + 0xd0]
mov eax, 1
mov rbx, qword [rsp + 0x118]
jmp 0x1400cfd78
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1401d9c30
add rsp, 0xd8
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140105930
Capabilities:
Set thread local storage value

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

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

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

Disassembly:
mov eax, 0x28
call fcn.1401d9bc0
sub rsp, rax
lea rcx, [0x14032eb08]
add rsp, 0x28
jmp fcn.140105790

Function at 0x1401245b0
Capabilities:
Encode data using xor

Disassembly:
xor r9b, r9b
mov r10, rdx
test r8, r8
je 0x1401245d7
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 0x1401245c0
movzx eax, r9b
ret
Function at 0x14014f5a0
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.1401d9bc0
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 0x14014f618
mov rdx, qword [rsp + 0x98]
nop dword [rax]
test rbx, rbx
je 0x14014f611
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 0x14014f5f0
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 0x14014f74e
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 0x14014f70d
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 0x14014f6f0
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 0x14014f670
mov edi, dword [rsp + 0x80]
mov r13d, 0xc
mov r9, qword [rsp + 0xa0]
test rbx, rbx
je 0x14014f7f1
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 0x14014f7c7
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 0x14014f7b0
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 0x14014f7d0
mov rax, qword [rsp + 0xa0]
mov dword [rax], edi
jmp 0x14014f7f4
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 0x140150280
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push r14
mov eax, 0x20
call fcn.1401d9bc0
sub rsp, rax
cmp qword [rcx + 0x38], 0
mov rdi, r8
mov r14, rdx
mov rbp, rcx
je 0x1401502b0
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 0x1401503b2
cmp rcx, r8
jb 0x1401503b2
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 0x140150339
test rdi, rdi
je 0x140150324
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 0x1401502f4
lea r12, [rbp + 0x60]
mov rcx, rbx
mov rdx, r12
call fcn.140151a00
jmp 0x14015033d
test esi, esi
jne 0x140150392
lea r12, [rbp + 0x60]
mov rcx, rbx
mov rdx, r12
call fcn.140151a00
jmp 0x14015033d
lea r12, [rbp + 0x60]
mov qword [rsp + 0x58], r15
mov r15, rdi
and r15, 0xfffffffffffffff0
je 0x140150362
mov r9, r15
mov r8, r14
mov rdx, r12
mov rcx, rbx
call fcn.140151820
add r14, r15
sub rdi, r15
mov r15, qword [rsp + 0x58]
test rdi, rdi
je 0x140150392
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 0x140150380
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