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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001dfe0
call sym._pthread_time_in_ms_from_timespec
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001e018
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400adee8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001e070
test esi, esi
je 0x14001dff6
call sym.pthread_testcancel
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001e050
mov edx, edi
call sym._pthread_wait_for_single_object
call sym.pthread_testcancel
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400adee8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001e060
call sym.pthread_testcancel
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call sym.pthread_testcancel
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400adee8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14001dfb5
call sym.__pthread_self_lite.part.0
mov rbx, rax
jmp 0x14001dfb5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001dfce
call sym.__pthread_self_lite.part.0
jmp 0x14001dff6
call sym.__pthread_self_lite.part.0
mov rbx, rax
jmp 0x14001dfb1

Function at 0x14001e080
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400adee8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001e0f0
test esi, esi
je 0x14001e0d0
call sym.pthread_testcancel
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001e100
mov edx, esi
call sym._pthread_wait_for_single_object
call sym.pthread_testcancel
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call sym.pthread_testcancel
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call sym.pthread_testcancel
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call sym.__pthread_self_lite.part.0
mov rbx, rax
jmp 0x14001e0a1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001e0ba
Function at 0x14001e110
Capabilities:
Get thread local storage value
Hijack thread execution

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x518
mov rdi, qword [0x1400bac90]
mov rax, qword [rdi]
mov qword [rsp + 0x508], rax
xor eax, eax
mov rsi, rcx
test rcx, rcx
je 0x14001e210
lea rbp, [0x1400aded8]
mov rcx, rbp
call sym.pthread_mutex_lock
mov rcx, rsi
call sym.__pthread_get_pointer
mov rcx, rbp
mov rbx, rax
call sym.pthread_mutex_unlock
test rbx, rbx
je 0x14001e210
mov rcx, qword [rbx + 0x28]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001e210
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x14001e210
lea rbp, [rbx + 0x38]
mov rcx, rbp
call sym.pthread_mutex_lock
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400adee8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001e340
movzx edx, byte [rbx + 0x40]
cmp rsi, qword [rax + 0x1d8]
je 0x14001e238
mov eax, dword [rbx + 0x44]
not eax
test al, 3
je 0x14001e290
test dl, 3
jne 0x14001e200
and edx, 0xfffffffc
or edx, 1
mov byte [rbx + 0x40], dl
lock add dword [0x1400c3c38], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001e1f0
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbp
call sym.pthread_mutex_unlock
xor eax, eax
jmp 0x14001e215
mov rcx, rbp
call sym.pthread_mutex_unlock
test byte [rbx + 0x40], 0xc
je 0x14001e1f8
nop
mov eax, 3
mov rdx, qword [rsp + 0x508]
sub rdx, qword [rdi]
jne 0x14001e357
add rsp, 0x518
pop rbx
pop rsi
pop rdi
pop rbp
ret
test dl, 3
jne 0x14001e200
and edx, 0xfffffffc
or edx, 1
mov byte [rbx + 0x40], dl
lock add dword [0x1400c3c38], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001e25d
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [rbx + 0x44]
mov edx, eax
not edx
and edx, 3
jne 0x14001e1f0
and eax, 0xfffffffe
mov rcx, rbp
mov dword [rbx + 0x44], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xfffffff3
or eax, 4
mov byte [rbx + 0x40], al
call sym.pthread_mutex_unlock
call sym._pthread_invoke_cancel
nop dword [rax]
test dl, 0xc
jne 0x14001e200
and edx, 0xf
jne 0x14001e210
mov rcx, qword [rbx + 0x28]
mov dword [rsp + 0x60], 0x100001
call qword [sym.imp.KERNEL32.dll_SuspendThread]
xor edx, edx
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14001e1f0
lea rsi, [rsp + 0x30]
mov rcx, qword [rbx + 0x28]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
lea rax, [sym._pthread_invoke_cancel]
mov rcx, qword [rbx + 0x28]
mov rdx, rsi
mov qword [rsp + 0x128], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
movzx eax, byte [rbx + 0x40]
and dword [rbx + 0x44], 0xfffffffe
and eax, 0xfffffff0
or eax, 5
mov byte [rbx + 0x40], al
lock add dword [0x1400c3c38], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001e321
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbp
call sym.pthread_mutex_unlock
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x14001e1f0
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x14001e1b1
movzx edx, byte [rbx + 0x40]
jmp 0x14001e1be
call dbg.__stack_chk_fail
nop
nop dword [rax]
Function at 0x14001e360
Capabilities:
Get thread local storage value
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1400aded8]
mov rbx, rcx
mov rcx, rdi
mov esi, edx
call sym.pthread_mutex_lock
mov rcx, rbx
call sym.__pthread_get_pointer
test rax, rax
je 0x14001e3d8
cmp qword [rax + 0x1d8], rbx
jne 0x14001e3d8
test byte [rax + 0x40], 0xc
jne 0x14001e3d8
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x14001e3d8
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x14001e3d8
mov rcx, rdi
call sym.pthread_mutex_unlock
test esi, esi
je 0x14001e3f0
lea edx, [rsi - 2]
cmp edx, 0x15
ja 0x14001e3f8
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp sym.pthread_cancel
mov rcx, rdi
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor eax, eax
jmp 0x14001e3e5
mov eax, 0x16
jmp 0x14001e3e5

Function at 0x14001e590
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov rdi, rdx
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400adee8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001e600
cmp esi, 1
ja 0x14001e60d
lea rbp, [rbx + 0x38]
mov rcx, rbp
call sym.pthread_mutex_lock
test rdi, rdi
je 0x14001e5d4
mov eax, dword [rbx + 0x44]
and eax, 1
mov dword [rdi], eax
mov eax, dword [rbx + 0x44]
mov rcx, qword [rbx + 0x1d8]
and eax, 0xfffffffe
or eax, esi
mov dword [rbx + 0x44], eax
call sym.test_cancel_locked
mov rcx, rbp
call sym.pthread_mutex_unlock
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sym.__pthread_self_lite.part.0
mov rbx, rax
test rax, rax
jne 0x14001e5b6
mov eax, 0x16
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x14001e620
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
mov rdi, rdx
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400adee8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001e698
mov ebp, esi
and ebp, 0xfffffffd
jne 0x14001e6a5
lea r12, [rbx + 0x38]
mov rcx, r12
call sym.pthread_mutex_lock
test rdi, rdi
je 0x14001e668
mov eax, dword [rbx + 0x44]
and eax, 2
mov dword [rdi], eax
mov eax, dword [rbx + 0x44]
mov rcx, qword [rbx + 0x1d8]
and eax, 0xfffffffd
or eax, esi
mov dword [rbx + 0x44], eax
call sym.test_cancel_locked
mov rcx, r12
call sym.pthread_mutex_unlock
mov eax, ebp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call sym.__pthread_self_lite.part.0
mov rbx, rax
test rax, rax
jne 0x14001e648
mov ebp, 0x16
mov eax, ebp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x14001e950
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, qword [0x1400bac90]
mov rax, qword [rbp]
mov qword [rsp + 0x28], rax
xor eax, eax
mov rsi, rcx
mov rdi, rdx
test rcx, rcx
je 0x14001ea80
lea r12, [0x1400aded8]
mov rcx, r12
call sym.pthread_mutex_lock
mov rcx, rsi
call sym.__pthread_get_pointer
mov rcx, r12
mov rbx, rax
call sym.pthread_mutex_unlock
test rbx, rbx
je 0x14001ea80
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14001ea80
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x14001ea80
test byte [rbx + 0x44], 4
jne 0x14001eaa0
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400adee8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001eac0
cmp rsi, qword [rax + 0x1d8]
je 0x14001eaf0
mov eax, dword [rbx + 0xbc]
mov rcx, qword [rbx + 0x28]
test eax, eax
je 0x14001ea0f
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001ea1e
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x28]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001ea32
call rsi
mov qword [rbx + 0x30], 0
test rdi, rdi
je 0x14001ead8
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 0x14001eafc
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x14001eab0
xor eax, eax
jmp 0x14001ea85
mov eax, 3
mov rdx, qword [rsp + 0x28]
sub rdx, qword [rbp]
jne 0x14001eaf7
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, 0x16
jmp 0x14001ea85
mov rcx, rbx
call sym.push_pthread_mem.part.0
xor eax, eax
jmp 0x14001ea85
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x14001e9ea
jmp 0x14001e9f7
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
jmp 0x14001ea57
mov eax, 0x24
jmp 0x14001ea85
call dbg.__stack_chk_fail
call sym.replace_spin_keys.part.0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x14001eb10
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, qword [0x1400bac90]
lea r12, [0x1400aded8]
mov rax, qword [rbp]
mov qword [rsp + 0x28], rax
xor eax, eax
mov rsi, rcx
mov rcx, r12
mov rdi, rdx
call sym.pthread_mutex_lock
mov rcx, rsi
call sym.__pthread_get_pointer
mov rbx, rax
test rax, rax
je 0x14001ec50
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x14001ec50
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x14001ec50
test byte [rbx + 0x44], 4
jne 0x14001ec60
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400adee8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001ec90
mov rdx, qword [rax + 0x1d8]
cmp rsi, rdx
je 0x14001ecd0
mov edx, dword [rbx + 0xbc]
mov rcx, qword [rbx + 0x28]
test edx, edx
jne 0x14001ebcb
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14001ec70
mov rcx, qword [rbx + 0x28]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001ebdf
call rsi
mov qword [rbx + 0x30], 0
test rdi, rdi
je 0x14001eca8
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 0x14001ece7
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x14001ecc0
mov rcx, r12
call sym.pthread_mutex_unlock
xor eax, eax
mov rdx, qword [rsp + 0x28]
sub rdx, qword [rbp]
jne 0x14001ece2
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, r12
call sym.pthread_mutex_unlock
mov eax, 3
jmp 0x14001ec32
mov rcx, r12
call sym.pthread_mutex_unlock
mov eax, 0x16
jmp 0x14001ec32
mov eax, dword [rbx + 0xbc]
test eax, eax
jne 0x14001ebc7
mov rcx, r12
call sym.pthread_mutex_unlock
mov eax, 0x10
jmp 0x14001ec32
call sym.__pthread_self_lite.part.0
xor edx, edx
test rax, rax
jne 0x14001eb99
jmp 0x14001eba0
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
jmp 0x14001ec04
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x14001ec28
mov rcx, r12
call sym.pthread_mutex_unlock
mov eax, 0x24
jmp 0x14001ec32
call dbg.__stack_chk_fail
call sym.replace_spin_keys.part.0
nop
nop dword [rax]
Function at 0x140022a20
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x1400adfc0], 0
jne 0x140022b26
mov byte [0x1400adfc0], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x140022afc
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 [dbg.__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 sub.msvcrt.dll_fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x140022aed
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x1400b7e81]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x140022ae8
mov rcx, rdi
call sym.free
call sym.__cxa_rethrow
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x140022ab7
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sub.msvcrt.dll_fwrite
call sym.abort
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sub.msvcrt.dll_fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x140022bbb
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 sub.msvcrt.dll_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
jmp 0x140022b21
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x140022b21

Function at 0x140029540
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 0x140029568
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 0x1400295b0
cdqe
add rsi, rax
sub rbx, rax
jne 0x140029580
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x1400295bc
call rbp
cmp dword [rax], 4
je 0x140029580
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 0x14002f060
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, [0x1400adf80]
movabs rdi, 0x2e78786362696c67
movabs r12, 0x6c6f6f705f68652e
call sym.pthread_mutex_init
pxor xmm0, xmm0
lea rcx, str.GLIBCXX_TUNABLES
mov qword [0x1400adf98], 0
movups xmmword [0x1400adf88], 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 0x14002f115
jmp 0x14002f1bf
mov rcx, rbx
mov edx, 0x3a
call sym.strchr
mov rbx, rax
test rax, rax
je 0x14002f170
xor eax, eax
cmp byte [rbx], 0x3a
sete al
add rbx, rax
cmp qword [rbx], rdi
jne 0x14002f100
cmp qword [rbx + 7], r12
jne 0x14002f100
cmp byte [rbx + 0xf], 0x2e
jne 0x14002f100
add rbx, 0x10
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x60]
mov rsi, qword [rbp]
mov rcx, qword [rbp + 8]
test rsi, rsi
je 0x14002f15b
mov r8, rsi
mov rdx, rbx
call sym.memcmp
test eax, eax
jne 0x14002f165
cmp byte [rbx + rsi], 0x3d
je 0x14002f1f5
add rbp, 0x18
cmp rbp, r13
jne 0x14002f13f
jmp 0x14002f100
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 [0x1400adf98], rbx
jne 0x14002f1cf
lea rcx, [sym.__tcf_0]
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp dbg.atexit
mov qword [0x1400adf98], 0x16000
mov ebx, 0x16000
mov rcx, rbx
call sym.malloc
mov qword [0x1400adf90], rax
test rax, rax
je 0x14002f22c
xor edx, edx
mov qword [0x1400adf88], rax
mov qword [rax], rbx
mov qword [rax + 8], rdx
jmp 0x14002f1a7
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 0x14002f21c
test dl, dl
jne 0x14002f100
test eax, eax
js 0x14002f100
mov dword [rbp + 0x10], eax
jmp 0x14002f100
xor ecx, ecx
mov qword [0x1400adf98], rcx
jmp 0x14002f1a7
Function at 0x1800db694
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov esi, ecx
mov ecx, dword [0x18057768c]
cmp ecx, 0xffffffff
jne 0x1800db6b3
call sub.KERNEL32.dll_TlsAlloc
mov ecx, eax
mov dword [0x18057768c], eax
movsxd rdx, esi
add rsp, 0x20
pop rsi
jmp fcn.1803e0445
Function at 0x180111fa4
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbp
push rbx
mov r10d, dword [rsp + 0x50]
mov ebp, dword [rsp + 0x48]
mov r11d, r10d
neg r11d
mov esi, ebp
neg esi
cmp r8, 0xc
jb 0x180112072
add esi, r11d
add esi, r9d
mov eax, r10d
shr eax, 0xd
xor eax, esi
add ebp, r11d
sub ebp, eax
mov esi, eax
shl esi, 8
xor esi, ebp
sub r10d, eax
sub r10d, esi
mov edi, esi
shr edi, 0xd
xor edi, r10d
sub eax, esi
sub eax, edi
mov r9d, edi
shr r9d, 0xc
xor r9d, eax
sub esi, edi
sub esi, r9d
mov eax, r9d
shl eax, 0x10
xor eax, esi
sub edi, r9d
sub edi, eax
mov esi, eax
shr esi, 5
xor esi, edi
sub r9d, eax
sub r9d, esi
mov ebx, esi
shr ebx, 3
xor ebx, r9d
sub eax, esi
sub eax, ebx
mov edi, ebx
shl edi, 0xa
xor edi, eax
sub esi, ebx
sub esi, edi
mov eax, edi
shr eax, 0xf
xor eax, esi
mov r9d, dword [rdx]
mov ebp, dword [rdx + 4]
mov r10d, dword [rdx + 8]
xor ebx, r9d
xor edi, ebp
xor eax, r10d
mov dword [rcx], ebx
mov dword [rcx + 4], edi
mov dword [rcx + 8], eax
add rdx, 0xc
add rcx, 0xc
add r8, 0xfffffffffffffff4
mov r11d, r10d
neg r11d
mov esi, ebp
neg esi
cmp r8, 0xb
ja 0x180111fc5
test r8, r8
je case.default.0x180112109
dec r8
cmp r8, 0xa
ja case.default.0x180112109
add esi, r11d
add esi, r9d
mov eax, r10d
shr eax, 0xd
xor eax, esi
add ebp, r11d
sub ebp, eax
mov ebx, eax
shl ebx, 8
xor ebx, ebp
sub r10d, eax
sub r10d, ebx
mov ebp, ebx
shr ebp, 0xd
xor ebp, r10d
sub eax, ebx
sub eax, ebp
mov edi, ebp
shr edi, 0xc
xor edi, eax
sub ebx, ebp
sub ebx, edi
mov esi, edi
shl esi, 0x10
xor esi, ebx
sub ebp, edi
sub ebp, esi
mov eax, esi
shr eax, 5
xor eax, ebp
sub edi, esi
sub edi, eax
mov r9d, eax
shr r9d, 3
xor r9d, edi
sub esi, eax
sub esi, r9d
mov ebp, r9d
shl ebp, 0xa
xor ebp, esi
sub eax, r9d
sub eax, ebp
mov r10d, ebp
shr r10d, 0xf
xor r10d, eax
lea rax, [0x180112184]
movsxd rbx, dword [rax + r8*4]
add rbx, rax
jmp rbx
mov eax, r10d
shr eax, 0x10
xor al, byte [rdx + 0xa]
mov byte [rcx + 0xa], al
mov eax, r10d
shr eax, 8
xor al, byte [rdx + 9]
mov byte [rcx + 9], al
xor r10b, byte [rdx + 8]
mov byte [rcx + 8], r10b
mov eax, ebp
shr eax, 0x18
xor al, byte [rdx + 7]
mov byte [rcx + 7], al
mov eax, ebp
shr eax, 0x10
xor al, byte [rdx + 6]
mov byte [rcx + 6], al
shr ebp, 8
xor bpl, byte [rdx + 5]
mov byte [rcx + 5], bpl
xor sil, byte [rdx + 4]
mov byte [rcx + 4], sil
mov eax, r9d
shr eax, 0x18
xor al, byte [rdx + 3]
mov byte [rcx + 3], al
mov eax, r9d
shr eax, 0x10
xor al, byte [rdx + 2]
mov byte [rcx + 2], al
mov eax, r9d
shr eax, 8
xor al, byte [rdx + 1]
mov byte [rcx + 1], al
xor r9b, byte [rdx]
mov byte [rcx], r9b
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x180113054
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r12, r8
mov r14, rdx
mov r13, rcx
xor eax, eax
xor ecx, ecx
or ecx, dword [r13 + rax*4]
inc rax
cmp rax, 5
jne 0x180113070
test ecx, ecx
jne 0x1801130a9
mov rcx, r14
mov rdx, r12
call fcn.18026fb57
mov rcx, r12
call fcn.18026fb17
lea rdx, [r12 + 0x14]
mov rcx, r12
call fcn.18026fb57
xor eax, eax
jmp 0x1801131f6
lea rbx, [rsp + 0x58]
mov rcx, r13
mov rdx, rbx
call fcn.180270158
mov rcx, rbx
call fcn.18026fae4
lea r15, [rsp + 0x40]
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.18026fe84
mov rcx, r15
call fcn.18026fb17
xor ecx, ecx
xor eax, eax
xor eax, dword [rsp + rcx*4 + 0x40]
inc rcx
cmp rcx, 5
jne 0x1801130e0
mov ecx, 0x10
mov edx, 0xffffffff
shr edx, cl
mov ebx, edx
and ebx, eax
shr eax, cl
xor eax, ebx
shr ecx, 1
jne 0x1801130f7
test eax, eax
je 0x180113127
mov rcx, r12
call fcn.18026fb49
add r12, 0x14
mov rcx, r12
call fcn.18026fb49
mov eax, 1
jmp 0x1801131f6
lea rcx, [rsp + 0x28]
call fcn.18026fb49
mov r8d, 1
xor eax, eax
mov ecx, eax
sar cx, 5
mov ebx, 4
sub ebx, ecx
inc rax
mov rdx, rax
shr rdx, 5
movsx rbx, bx
mov edi, dword [rsp + rbx*4 + 0x28]
mov esi, dword [rsp + rbx*4 + 0x40]
xor esi, edi
and esi, r8d
cmp dx, cx
jne 0x180113173
add esi, esi
or edi, esi
mov dword [rsp + rbx*4 + 0x28], edi
add r8d, r8d
jmp 0x180113190
mov r8d, 1
test esi, esi
je 0x180113190
mov ecx, 4
sub ecx, edx
movsx rcx, cx
mov dword [rsp + rcx*4 + 0x28], 1
cmp rax, 0x9e
jne 0x180113139
mov eax, dword [rsp + 0x28]
xor eax, dword [rsp + 0x40]
bt eax, 0x1d
jae 0x1801131c1
mov rcx, r12
call fcn.18026fb49
add r12, 0x14
mov rcx, r12
call fcn.18026fb49
mov eax, 2
jmp 0x1801131f6
lea rdx, [rsp + 0x28]
mov rcx, r13
mov r8, r12
call fcn.18026fe84
lea rcx, [r12 + 0x14]
call fcn.18026fb49
xor eax, eax
xor ecx, ecx
mov edx, dword [r13 + rcx*4]
xor edx, dword [r12 + rcx*4]
mov dword [r12 + rcx*4 + 0x14], edx
inc rcx
cmp rcx, 5
jne 0x1801131df
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x180113206
Capabilities:
Encode data using xor

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
lea r14, [rsp + 0x40]
mov rdx, r14
call fcn.18026fb57
mov rcx, r14
call fcn.18026fae4
lea r8, [rsp + 0x28]
mov rcx, rbx
mov rdx, r14
call fcn.18026fe84
cmp word [rdi], 0
je 0x180113256
lea rdx, [rdi + 2]
lea rcx, [rsp + 0x40]
mov r8, rsi
call fcn.18026fe84
jmp 0x18011325e
mov rcx, rsi
call fcn.18026fb49
xor eax, eax
mov ecx, dword [rdi + rax*4 + 0x16]
xor ecx, dword [rsp + rax*4 + 0x28]
xor dword [rsi + rax*4], ecx
inc rax
cmp rax, 5
jne 0x180113260
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret