joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001d790
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [0x1400bd168]
mov rsi, rcx
mov rcx, rbp
mov rdi, rdx
call sym.pthread_mutex_lock
mov rcx, rsi
call sym.__pthread_get_pointer
mov rbx, rax
test rax, rax
je 0x14001d8b0
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x14001d8b0
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x14001d8b0
test byte [rbx + 0x44], 4
jne 0x14001d8d0
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400bd178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001d910
mov rdx, qword [rax + 0x1d8]
cmp rsi, rdx
je 0x14001d950
mov edx, dword [rbx + 0xbc]
mov rcx, qword [rbx + 0x28]
test edx, edx
jne 0x14001d837
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14001d8f0
mov rcx, qword [rbx + 0x28]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001d84b
call rsi
mov qword [rbx + 0x30], 0
test rdi, rdi
je 0x14001d928
mov rax, qword [rbx + 8]
lea rcx, [rbx + 0x38]
mov qword [rdi], rax
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x14001d962
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x14001d940
mov rcx, rbp
call sym.pthread_mutex_unlock
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 0x16
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, dword [rbx + 0xbc]
test eax, eax
jne 0x14001d833
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 0x10
jmp 0x14001d89e
call sym.__pthread_self_lite.part.0
xor edx, edx
test rax, rax
jne 0x14001d805
jmp 0x14001d80c
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
jmp 0x14001d870
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x14001d894
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 0x24
jmp 0x14001d89e
call sym.replace_spin_keys.part.0
nop
nop dword [rax + rax]

Function at 0x1400209e0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x140020a0c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x140021630
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x1400bfef0], 0
jne 0x140021733
mov byte [0x1400bfef0], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x140021708
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call sym.__cxa_demangle
mov ecx, 2
mov rsi, qword [sym.__acrt_iob_func]
mov rdi, rax
call rsi
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x1400216f9
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x1400c03f1]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x1400ba5d7
jmp 0x1400ba5cf
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x1400216c7
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
nop
jmp 0x1400ba5ca
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
nop
nop
nop

Function at 0x140080260
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sym.fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sym.read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x1400802a8
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14008027a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140092bd0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x140092bf8
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x140092c40
cdqe
add rsi, rax
sub rbx, rax
jne 0x140092c10
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x140092c4c
call rbp
cmp dword [rax], 4
je 0x140092c10
lea rcx, str.random_device_could_not_be_read
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x14009ec10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
movups xmmword [rsp], xmm6
movups xmmword [rsp + 0x10], xmm7
movdqu xmm3, xmmword [0x1400c0320]
pxor xmm7, xmm7
movdqu xmm4, xmmword [0x1400c0330]
movdqu xmm5, xmmword [0x1400c0340]
movdqu xmm6, xmmword [0x1400c0350]
mov rdx, rcx
lea rcx, [rcx + 0x380]
mov rax, rdx
nop
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rax + 4]
add rax, 0x10
movdqu xmm2, xmmword [rax + 0x624]
pand xmm1, xmm4
pand xmm0, xmm3
por xmm0, xmm1
movdqa xmm1, xmm0
pand xmm0, xmm5
psrld xmm1, 1
pxor xmm1, xmm2
movdqa xmm2, xmm7
psubd xmm2, xmm0
pand xmm2, xmm6
movdqa xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp rcx, rax
jne 0x14009ec50
movq xmm0, qword [rdx + 0x380]
mov eax, dword [rdx + 0x388]
movq xmm1, qword [0x1400c0320]
mov ecx, dword [rdx + 0x38c]
movq xmm2, qword [0x1400c0330]
and eax, 0x80000000
pand xmm0, xmm1
and ecx, 0x7fffffff
movq xmm1, qword [rdx + 0x384]
or eax, ecx
pand xmm1, xmm2
mov ecx, eax
and eax, 1
por xmm0, xmm1
neg eax
shr ecx, 1
xor ecx, dword [rdx + 0x9bc]
movdqa xmm2, xmm0
and eax, 0x9908b0df
movq xmm1, qword [rdx + 0x9b4]
psrld xmm2, 1
xor eax, ecx
lea rcx, [rdx + 0x9bc]
pxor xmm1, xmm2
mov dword [rdx + 0x388], eax
movq xmm2, qword [0x1400c0340]
lea rax, [rdx + 0x38c]
pand xmm0, xmm2
pxor xmm2, xmm2
psubd xmm2, xmm0
movq xmm0, qword [0x1400c0350]
pand xmm0, xmm2
pxor xmm2, xmm2
pxor xmm1, xmm0
movq qword [rdx + 0x380], xmm1
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rax + 4]
add rax, 0x10
movdqu xmm7, xmmword [rax - 0x39c]
pand xmm1, xmm4
pand xmm0, xmm3
por xmm0, xmm1
movdqa xmm1, xmm0
pand xmm0, xmm5
psrld xmm1, 1
pxor xmm1, xmm7
movdqa xmm7, xmm2
psubd xmm7, xmm0
pand xmm7, xmm6
movdqa xmm0, xmm7
pxor xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp rcx, rax
jne 0x14009ed53
mov eax, dword [rdx + 0x9bc]
mov ecx, dword [rdx]
mov qword [rdx + 0x9c0], 0
movups xmm6, xmmword [rsp]
movups xmm7, xmmword [rsp + 0x10]
and ecx, 0x7fffffff
and eax, 0x80000000
or eax, ecx
mov ecx, eax
and eax, 1
neg eax
shr ecx, 1
xor ecx, dword [rdx + 0x630]
and eax, 0x9908b0df
xor eax, ecx
mov dword [rdx + 0x9bc], eax
add rsp, 0x28
ret
Function at 0x1400ba560
Capabilities:
Write file on windows

Disassembly:
nop
mov rcx, rax
mov rax, rdx
sub rax, 1
jne 0x1400ba5dc
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sym.fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
call sym.abort
mov rcx, rdi
call sym.free
call sym.__cxa_rethrow
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x1400ba5ca

Function at 0x1400bbe50
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
xor edx, edx
lea rcx, [0x1400bd7a0]
movabs rdi, 0x2e78786362696c67
movabs r12, 0x6c6f6f705f68652e
call sym.pthread_mutex_init
pxor xmm0, xmm0
lea rcx, str.GLIBCXX_TUNABLES
mov qword [0x1400bd7b8], 0
movups xmmword [0x1400bd7a8], xmm0
call sym.getenv
mov dword [rsp + 0x40], 0
mov rbx, rax
lea rax, str.obj_size
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], rax
lea rax, str.obj_count
mov qword [rsp + 0x48], 9
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x100
test rbx, rbx
jne 0x1400bbf05
jmp 0x1400bbfaf
mov rcx, rbx
mov edx, 0x3a
call sym.strchr
mov rbx, rax
test rax, rax
je 0x1400bbf60
xor eax, eax
cmp byte [rbx], 0x3a
sete al
add rbx, rax
cmp qword [rbx], rdi
jne 0x1400bbef0
cmp qword [rbx + 7], r12
jne 0x1400bbef0
cmp byte [rbx + 0xf], 0x2e
jne 0x1400bbef0
add rbx, 0x10
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x60]
mov rsi, qword [rbp]
mov rcx, qword [rbp + 8]
test rsi, rsi
je 0x1400bbf4b
mov r8, rsi
mov rdx, rbx
call sym.memcmp
test eax, eax
jne 0x1400bbf55
cmp byte [rbx + rsi], 0x3d
je 0x1400bbfe5
add rbp, 0x18
cmp rbp, r13
jne 0x1400bbf2f
jmp 0x1400bbef0
mov eax, dword [rsp + 0x58]
mov edx, 0x1000
mov ecx, 6
cmp eax, edx
cmovle edx, eax
mov eax, dword [rsp + 0x40]
test eax, eax
cmove eax, ecx
movsxd rbx, eax
movsxd rax, edx
add rbx, 0x26
imul rbx, rax
shl rbx, 3
mov qword [0x1400bd7b8], rbx
jne 0x1400bbfbf
lea rcx, [sym.__tcf_0_3]
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.atexit
mov qword [0x1400bd7b8], 0x16000
mov ebx, 0x16000
mov rcx, rbx
call sym.malloc
mov qword [0x1400bd7b0], rax
test rax, rax
je 0x1400bc01c
xor edx, edx
mov qword [0x1400bd7a8], rax
mov qword [rax], rbx
mov qword [rax + 8], rdx
jmp 0x1400bbf97
lea rdx, [rsp + 0x28]
lea rcx, [rbx + rsi + 1]
xor r8d, r8d
call sym.strtoul
mov rbx, qword [rsp + 0x28]
movzx edx, byte [rbx]
cmp dl, 0x3a
je 0x1400bc00c
test dl, dl
jne 0x1400bbef0
test eax, eax
js 0x1400bbef0
mov dword [rbp + 0x10], eax
jmp 0x1400bbef0
xor ecx, ecx
mov qword [0x1400bd7b8], rcx
jmp 0x1400bbf97
Function at 0x140001414
Capabilities:
Encode data using xor

Disassembly:
mov r8, rcx
xor r9d, r9d
xor r10d, r10d
lea eax, [r9 + r10*4]
inc r10d
mov al, byte [rax + rdx]
xor byte [r8], al
inc r8
cmp r10d, 4
jb 0x14000141d
inc r9d
cmp r9d, 4
jb 0x14000141a
ret

Function at 0x140001e64
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x20]
mov rbx, rcx
sub rcx, rax
lea r12, [0x140000000]
xor edx, edx
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea r15d, [rdx + 4]
mov r10d, r15d
lea r8, [r12 + 0x21460]
mov r9, rcx
add r8, rdx
lea r14, [rsp + 0x20]
add r14, rdx
mov rdi, r15
movzx esi, byte [r8]
mov r11, r14
shl rsi, 8
mov rbp, r15
movzx eax, byte [r9 + r11]
add rax, rsi
mov al, byte [rax + r12 + 0x20550]
xor byte [r11], al
inc r11
sub rbp, 1
jne 0x140001ed3
inc r8
add r9, r15
sub rdi, 1
jne 0x140001ec5
add rdx, r15
sub rcx, r15
sub r10, 1
jne 0x140001eac
lea rdi, [rsp + 0x20]
mov rsi, r15
sub rdi, rbx
lea rdx, [rdi + rbx]
mov r8, r15
mov rcx, rbx
call fcn.14001e170
add rbx, r15
sub rsi, 1
jne 0x140001f12
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14000e8f0
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x14000241c
Capabilities:
Encode data using xor

Disassembly:
test r9d, r9d
je 0x14000243e
sub rdx, r8
mov r10d, r9d
sub rcx, r8
mov al, byte [rdx + r8]
xor al, byte [r8]
mov byte [rcx + r8], al
inc r8
sub r10, 1
jne 0x14000242a
ret

Function at 0x140002440
Capabilities:
Encode data using xor

Disassembly:
sub rdx, r8
mov r9d, 4
sub rcx, r8
mov al, byte [rdx + r8]
xor al, byte [r8]
mov byte [rcx + r8], al
inc r8
sub r9, 1
jne 0x14000244c
ret
Function at 0x14000254c
Capabilities:
Hash data using sha256

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, rdx
mov rbx, rcx
mov qword [rbp - 0x39], rcx
and dword [rbp - 0x49], 0
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
and qword [rcx + 0x10], 0
and qword [rcx + 0x10], 0
mov qword [rcx + 0x18], 0xf
mov byte [rcx], 0
mov dword [rbp - 0x49], 1
mov r15, qword [rdx + 8]
test r15, r15
je 0x1400026a1
mov dword [rbp - 0x31], 0x6a09e667
mov dword [rbp - 0x2d], 0xbb67ae85
mov dword [rbp - 0x29], 0x3c6ef372
mov dword [rbp - 0x25], 0xa54ff53a
mov dword [rbp - 0x21], 0x510e527f
mov dword [rbp - 0x1d], 0x9b05688c
mov dword [rbp - 0x19], 0x1f83d9ab
mov dword [rbp - 0x15], 0x5be0cd19
xor edx, edx
lea r8d, [rdx + 0x40]
lea rcx, [rbp - 9]
call fcn.14001e810
xor edi, edi
xor r14d, r14d
mov qword [rbp - 0x41], r14
mov rsi, qword [rsi]
add r15, rsi
lea ecx, [rdi + 0xf]
cmp rsi, r15
je 0x140002647
mov al, byte [rsi]
mov byte [rbp + rdi - 9], al
inc edi
cmp edi, 0x40
jne 0x140002637
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x31]
call fcn.1400028a8
add r14, 0x200
xor edi, edi
inc rsi
cmp rsi, r15
jne 0x140002614
mov qword [rbp - 0x41], r14
mov rcx, qword [rbx + 0x18]
mov edx, 0x20
cmp qword [rbx + 0x10], rdx
jb 0x140002668
mov qword [rbx + 0x10], rdx
mov rax, rbx
cmp rcx, 0xf
jbe 0x140002662
mov rax, qword [rbx]
mov byte [rax + 0x20], 0
jmp 0x140002677
sub rdx, qword [rbx + 0x10]
xor r8d, r8d
mov rcx, rbx
call fcn.1400024bc
lea r9, [rbp - 0x41]
mov r8d, edi
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x31]
call fcn.1400026ec
mov rcx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140002698
mov rcx, qword [rbx]
lea rdx, [rbp - 0x31]
call fcn.1400027c8
mov rax, rbx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14000e8f0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400028a8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rbx, rdx
mov qword [rsp + 0x20], rcx
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, pe_nt_image_headers64
call fcn.14001e810
xor r12d, r12d
lea r9, [rsp + 0x50]
mov r8b, r12b
lea r14d, [r12 + 0x10]
mov r10d, r14d
movzx edx, r8b
movzx eax, r8b
add r8b, 4
movzx ecx, byte [rax + rbx + 1]
movzx eax, byte [rdx + rbx]
shl eax, 8
or ecx, eax
movzx eax, byte [rdx + rbx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + rbx + 3]
shl ecx, 8
or ecx, eax
or dword [r9], ecx
lea r9, [r9 + 4]
sub r10, 1
jne 0x14000290a
lea rdi, [rsp + 0x50]
lea r15d, [r10 + 0x40]
movzx ecx, r14b
mov ecx, dword [rsp + rcx*4 + 0x14]
call fcn.140002838
mov ecx, dword [rdi + 0x38]
mov ebx, eax
call fcn.140002870
add ebx, eax
inc r14b
add ebx, dword [rdi + 0x24]
add ebx, dword [rdi]
mov dword [rdi + 0x40], ebx
lea rdi, [rdi + 4]
cmp r14b, r15b
jb 0x14000294e
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rsp + 0x28], xmm0
mov r13d, dword [rsp + 0x28]
movups xmmword [rsp + 0x38], xmm1
mov ebx, dword [rsp + 0x44]
mov r14d, dword [rsp + 0x38]
mov esi, dword [rsp + 0x40]
mov edx, 0x19
mov ecx, r14d
call fcn.140002830
mov edx, 0xb
mov ecx, r14d
mov edi, eax
call fcn.140002830
mov edx, 6
mov ecx, r14d
xor edi, eax
call fcn.140002830
mov edx, dword [rsp + 0x3c]
mov r8d, esi
mov ecx, r14d
xor edi, eax
call fcn.1400026d0
add edi, eax
mov edx, 0x16
lea rax, [0x140021520]
mov ecx, r13d
add edi, dword [r12 + rax]
add edi, dword [rsp + r12 + 0x50]
add edi, ebx
call fcn.140002830
mov edx, 0xd
mov ecx, r13d
mov ebx, eax
call fcn.140002830
mov edx, 2
mov ecx, r13d
xor ebx, eax
call fcn.140002830
mov r8d, dword [rsp + 0x30]
mov ecx, r13d
mov edx, dword [rsp + 0x2c]
xor ebx, eax
call fcn.1400026dc
lea ecx, [rdi + rbx]
mov ebx, esi
mov esi, dword [rsp + 0x3c]
lea r12, [r12 + 4]
add eax, ecx
mov dword [rsp + 0x3c], r14d
mov ecx, dword [rsp + 0x30]
mov r14d, dword [rsp + 0x34]
add r14d, edi
mov dword [rsp + 0x34], ecx
mov ecx, dword [rsp + 0x2c]
mov dword [rsp + 0x2c], r13d
mov r13d, eax
mov dword [rsp + 0x30], ecx
sub r15, 1
jne 0x14000299e
mov dword [rsp + 0x40], esi
lea rcx, [rsp + 0x28]
mov rsi, qword [rsp + 0x20]
lea edx, [r15 + 8]
sub rcx, rsi
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x44], ebx
mov eax, dword [rsi + rcx]
add dword [rsi], eax
lea rsi, [rsi + 4]
sub rdx, 1
jne 0x140002a8d
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.14000e8f0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140002e48
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r15
push rbp
lea rbp, [rax - 0x58]
sub rsp, 0x150
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x30], rax
lea rcx, [rsp + 0x50]
call fcn.1400095c0
call fcn.14000adec
test al, al
je 0x140002fda
mov ecx, dword [0x14002dd70]
mov rax, qword gs:[0x58]
movdqa xmm6, xmmword [0x140021620]
mov ebx, 0x10
mov r15d, 0x24
mov rdi, qword [rax + rcx*8]
add rbx, rdi
lea rsi, [rbx + 0x11]
mov eax, dword [r15 + rdi]
mov word [rsp + 0x48], 0x8bde
test al, 1
jne 0x140002f11
or eax, 1
mov byte [rbx + 0x12], 1
mov dword [r15 + rdi], eax
lea rax, [rsp + 0x49]
cmp rbx, rax
ja 0x140002ef9
lea rax, [rsp + 0x38]
cmp rsi, rax
jb 0x140002ef9
movzx eax, word [rsp + 0x48]
movups xmmword [rbx], xmm6
mov word [rbx + 0x10], ax
jmp 0x140002f05
movzx eax, word [rsp + 0x48]
movups xmmword [rbx], xmm6
mov word [rbx + 0x10], ax
lea rcx, [0x14001f9c0]
call fcn.14000e9e4
cmp byte [rbx + 0x12], 0
je 0x140002f41
xor r8d, r8d
mov cl, r8b
movabs rdx, 0x9bd595af851d8be7
and cl, 7
shl cl, 3
shr rdx, cl
xor byte [rbx + r8], dl
inc r8
cmp r8, 0x12
jb 0x140002f1a
mov byte [rbx + 0x12], 0
mov qword [rsp + 0x20], rbx
or rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], 0
jne 0x140002f4a
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x70]
call fcn.1400034b4
cmp qword [rbp - 0x58], 0xffffffffffffffff
je 0x140002fb8
xor r8d, r8d
lea rcx, [rsp + 0x70]
lea edx, [r8 + 1]
call fcn.140003eec
lea rcx, [rsp + 0x70]
call fcn.140003d24
test al, al
je 0x140002fb8
mov qword [rsp + 0x30], 0x78
lea rcx, [rsp + 0x70]
call fcn.1400040b8
lea rcx, [rsp + 0x30]
call fcn.140002b44
lea rcx, [rsp + 0x70]
call fcn.140003d24
test al, al
jne 0x140002f96
lea rcx, [rsp + 0x70]
call fcn.140002bf8
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 0xa
call fcn.140002b44
jmp 0x140002ebd
call fcn.14000ad80
test al, al
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x50]
je 0x14000301a
cmp qword [rsp + 0x68], 7
cmova rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
call fcn.14000b6b8
jmp 0x140003045
cmp qword [rsp + 0x68], 7
cmova rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
call fcn.14000b340
lea rcx, [rsp + 0x50]
call fcn.140002d24
xor eax, eax
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14000e8f0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r15, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
ret
Function at 0x140006578
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
mov r9d, 0x270
mov rbx, rcx
cmp dword [rcx], r9d
jne 0x1400065cb
lea r8, [rcx + 8]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x140006590
jmp 0x1400065d8
cmp dword [rcx], 0x4e0
jb 0x1400065d8
call fcn.140006b08
mov eax, dword [rbx]
mov edx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov ecx, edx
mov eax, dword [rbx + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 0x20
pop rbx
ret

Function at 0x140006b08
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
lea r10, [rcx + 0x9c4]
mov r9, rcx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov edx, eax
add r10, 4
mov r11d, dword [r10]
xor edx, r11d
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140006b1f
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
mov eax, r11d
mov r8, r10
mov edx, eax
add r10, 4
mov r11d, dword [r10]
xor edx, r11d
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140006b6c
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and dword [r9], ebx
mov rbx, qword [rsp + 8]
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
shr edx, 1
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
ret
Function at 0x140007e28
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
and dword [rsp + 0x20], 0
lea r9, [rsp + 0x20]
mov r8d, 1
mov rsi, rcx
mov dl, r8b
call fcn.14000c5e0
mov rbx, rax
test rax, rax
je 0x140007f63
cmp dword [rax + 0xc], 0
je 0x140007f63
mov edi, dword [rbx + 0xc]
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x208
add rdi, rsi
call fcn.14001e810
xor ecx, ecx
lea rdx, [rsp + 0x30]
cmp byte [rdi], 0
je 0x140007ebb
movsx eax, byte [rdi]
inc ecx
mov word [rdx], ax
inc rdi
add rdx, 2
cmp ecx, 0x103
jb 0x140007e9f
lea rcx, [rsp + 0x30]
call fcn.14000c070
mov rbp, rax
test rax, rax
je 0x140007f8d
mov ecx, dword [rbx + 0x10]
mov eax, dword [rbx]
test eax, eax
lea r14, [rcx + rsi]
cmovne ecx, eax
lea rdi, [rcx + rsi]
jmp 0x140007f4e
jns 0x140007eef
movzx edx, word [rdi]
mov r8b, 1
jmp 0x140007f36
mov r10, qword [rdi]
add r10, rsi
or r8, 0xffffffffffffffff
inc r8
cmp byte [r10 + r8 + 2], 0
jne 0x140007ef9
xor r9d, r9d
mov edx, 0x35330d
test r8, r8
je 0x140007f2f
movsx ecx, byte [r10 + r9 + 2]
mov eax, edx
shl eax, 5
inc r9
add ecx, eax
mov eax, edx
shr eax, 2
add ecx, eax
xor edx, ecx
cmp r9, r8
jb 0x140007f11
btr edx, 0x1f
xor r8b, r8b
mov rcx, rbp
call fcn.14000be08
mov qword [r14], rax
test rax, rax
je 0x140007f8d
add rdi, 8
add r14, 8
mov rcx, qword [rdi]
test rcx, rcx
jne 0x140007ee5
add rbx, 0x14
cmp dword [rbx + 0xc], ecx
jne 0x140007e80
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000e8f0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
xor al, al
jmp 0x140007f65