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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x518
mov rdi, qword [0x1400cbcf0]
mov rax, qword [rdi]
mov qword [rsp + 0x508], rax
xor eax, eax
mov rsi, rcx
test rcx, rcx
je 0x14001e200
lea rbp, [0x1400be7f8]
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 0x14001e200
mov rcx, qword [rbx + 0x28]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001e200
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x14001e200
lea rbp, [rbx + 0x38]
mov rcx, rbp
call sym.pthread_mutex_lock
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400be808]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001e330
movzx edx, byte [rbx + 0x40]
cmp rsi, qword [rax + 0x1d8]
je 0x14001e228
mov eax, dword [rbx + 0x44]
not eax
test al, 3
je 0x14001e280
test dl, 3
jne 0x14001e1f0
and edx, 0xfffffffc
or edx, 1
mov byte [rbx + 0x40], dl
lock add dword [0x1400d4c38], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001e1e0
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbp
call sym.pthread_mutex_unlock
xor eax, eax
jmp 0x14001e205
mov rcx, rbp
call sym.pthread_mutex_unlock
test byte [rbx + 0x40], 0xc
je 0x14001e1e8
nop
mov eax, 3
mov rdx, qword [rsp + 0x508]
sub rdx, qword [rdi]
jne 0x14001e347
add rsp, 0x518
pop rbx
pop rsi
pop rdi
pop rbp
ret
test dl, 3
jne 0x14001e1f0
and edx, 0xfffffffc
or edx, 1
mov byte [rbx + 0x40], dl
lock add dword [0x1400d4c38], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001e24d
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [rbx + 0x44]
mov edx, eax
not edx
and edx, 3
jne 0x14001e1e0
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 0x14001e1f0
and edx, 0xf
jne 0x14001e200
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 0x14001e1e0
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 [0x1400d4c38], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001e311
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 0x14001e1e0
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x14001e1a1
movzx edx, byte [rbx + 0x40]
jmp 0x14001e1ae
call dbg.__stack_chk_fail
nop
nop dword [rax]
Function at 0x14001e350
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, [0x1400be7f8]
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 0x14001e3c8
cmp qword [rax + 0x1d8], rbx
jne 0x14001e3c8
test byte [rax + 0x40], 0xc
jne 0x14001e3c8
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x14001e3c8
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x14001e3c8
mov rcx, rdi
call sym.pthread_mutex_unlock
test esi, esi
je 0x14001e3e0
lea edx, [rsi - 2]
cmp edx, 0x15
ja 0x14001e3e8
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 0x14001e3d5
mov eax, 0x16
jmp 0x14001e3d5

Function at 0x14001e580
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 [0x1400be808]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001e5f0
cmp esi, 1
ja 0x14001e5fd
lea rbp, [rbx + 0x38]
mov rcx, rbp
call sym.pthread_mutex_lock
test rdi, rdi
je 0x14001e5c4
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 0x14001e5a6
mov eax, 0x16
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x14001e610
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 [0x1400be808]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001e688
mov ebp, esi
and ebp, 0xfffffffd
jne 0x14001e695
lea r12, [rbx + 0x38]
mov rcx, r12
call sym.pthread_mutex_lock
test rdi, rdi
je 0x14001e658
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 0x14001e638
mov ebp, 0x16
mov eax, ebp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x14001e940
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, qword [0x1400cbcf0]
mov rax, qword [rbp]
mov qword [rsp + 0x28], rax
xor eax, eax
mov rsi, rcx
mov rdi, rdx
test rcx, rcx
je 0x14001ea70
lea r12, [0x1400be7f8]
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 0x14001ea70
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14001ea70
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x14001ea70
test byte [rbx + 0x44], 4
jne 0x14001ea90
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400be808]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001eab0
cmp rsi, qword [rax + 0x1d8]
je 0x14001eae0
mov eax, dword [rbx + 0xbc]
mov rcx, qword [rbx + 0x28]
test eax, eax
je 0x14001e9ff
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001ea0e
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 0x14001ea22
call rsi
mov qword [rbx + 0x30], 0
test rdi, rdi
je 0x14001eac8
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 0x14001eaec
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x14001eaa0
xor eax, eax
jmp 0x14001ea75
mov eax, 3
mov rdx, qword [rsp + 0x28]
sub rdx, qword [rbp]
jne 0x14001eae7
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, 0x16
jmp 0x14001ea75
mov rcx, rbx
call sym.push_pthread_mem.part.0
xor eax, eax
jmp 0x14001ea75
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x14001e9da
jmp 0x14001e9e7
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
jmp 0x14001ea47
mov eax, 0x24
jmp 0x14001ea75
call dbg.__stack_chk_fail
call sym.replace_spin_keys.part.0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x14001eb00
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, qword [0x1400cbcf0]
lea r12, [0x1400be7f8]
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 0x14001ec40
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x14001ec40
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x14001ec40
test byte [rbx + 0x44], 4
jne 0x14001ec50
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400be808]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001ec80
mov rdx, qword [rax + 0x1d8]
cmp rsi, rdx
je 0x14001ecc0
mov edx, dword [rbx + 0xbc]
mov rcx, qword [rbx + 0x28]
test edx, edx
jne 0x14001ebbb
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14001ec60
mov rcx, qword [rbx + 0x28]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001ebcf
call rsi
mov qword [rbx + 0x30], 0
test rdi, rdi
je 0x14001ec98
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 0x14001ecd7
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x14001ecb0
mov rcx, r12
call sym.pthread_mutex_unlock
xor eax, eax
mov rdx, qword [rsp + 0x28]
sub rdx, qword [rbp]
jne 0x14001ecd2
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 0x14001ec22
mov rcx, r12
call sym.pthread_mutex_unlock
mov eax, 0x16
jmp 0x14001ec22
mov eax, dword [rbx + 0xbc]
test eax, eax
jne 0x14001ebb7
mov rcx, r12
call sym.pthread_mutex_unlock
mov eax, 0x10
jmp 0x14001ec22
call sym.__pthread_self_lite.part.0
xor edx, edx
test rax, rax
jne 0x14001eb89
jmp 0x14001eb90
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
jmp 0x14001ebf4
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x14001ec18
mov rcx, r12
call sym.pthread_mutex_unlock
mov eax, 0x24
jmp 0x14001ec22
call dbg.__stack_chk_fail
call sym.replace_spin_keys.part.0
nop
nop dword [rax]
Function at 0x140022950
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x1400be8e0], 0
jne 0x140022a56
mov byte [0x1400be8e0], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x140022a2c
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 sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x140022a1d
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x1400c8ef1]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x140022a18
mov rcx, rdi
call sym.free
call sym.__cxa_rethrow
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x1400229e7
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 sym.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 sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x140022aeb
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
jmp 0x140022a51
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x140022a51

Function at 0x140029450
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 0x140029478
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 0x1400294c0
cdqe
add rsi, rax
sub rbx, rax
jne 0x140029490
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x1400294cc
call rbp
cmp dword [rax], 4
je 0x140029490
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 0x14002eed0
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, [0x1400be8a0]
movabs rdi, 0x2e78786362696c67
movabs r12, 0x6c6f6f705f68652e
call sym.pthread_mutex_init
pxor xmm0, xmm0
lea rcx, str.GLIBCXX_TUNABLES
mov qword [0x1400be8b8], 0
movups xmmword [0x1400be8a8], 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 0x14002ef85
jmp 0x14002f02f
mov rcx, rbx
mov edx, 0x3a
call sym.strchr
mov rbx, rax
test rax, rax
je 0x14002efe0
xor eax, eax
cmp byte [rbx], 0x3a
sete al
add rbx, rax
cmp qword [rbx], rdi
jne 0x14002ef70
cmp qword [rbx + 7], r12
jne 0x14002ef70
cmp byte [rbx + 0xf], 0x2e
jne 0x14002ef70
add rbx, 0x10
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x60]
mov rsi, qword [rbp]
mov rcx, qword [rbp + 8]
test rsi, rsi
je 0x14002efcb
mov r8, rsi
mov rdx, rbx
call sym.memcmp
test eax, eax
jne 0x14002efd5
cmp byte [rbx + rsi], 0x3d
je 0x14002f065
add rbp, 0x18
cmp rbp, r13
jne 0x14002efaf
jmp 0x14002ef70
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 [0x1400be8b8], rbx
jne 0x14002f03f
lea rcx, [sym.__tcf_0_1]
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp dbg.atexit
mov qword [0x1400be8b8], 0x16000
mov ebx, 0x16000
mov rcx, rbx
call sym.malloc
mov qword [0x1400be8b0], rax
test rax, rax
je 0x14002f09c
xor edx, edx
mov qword [0x1400be8a8], rax
mov qword [rax], rbx
mov qword [rax + 8], rdx
jmp 0x14002f017
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 0x14002f08c
test dl, dl
jne 0x14002ef70
test eax, eax
js 0x14002ef70
mov dword [rbp + 0x10], eax
jmp 0x14002ef70
xor ecx, ecx
mov qword [0x1400be8b8], rcx
jmp 0x14002f017
Function at 0x140002280
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x140123218]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor esi, esi
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp - 0x50]
call fcn.1400cdb70
lea rdx, [rbp - 0x50]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x104
ja 0x140002340
lea rcx, [rbp - 0x50]
mov r8, 0xffffffffffffffff
mov rax, r8
lea rax, [rax + 1]
cmp word [rcx + rax*2], si
jne 0x1400022f1
cmp word [rbp + rax*2 - 0x52], 0x5c
jne 0x14000231c
lea rax, [rax*2 - 2]
cmp rax, 0x20a
jae 0x140002446
mov word [rbp + rax - 0x50], si
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], rsi
lea rax, [rbp - 0x50]
nop
inc r8
cmp word [rax + r8*2], si
jne 0x140002330
lea rdx, [rbp - 0x50]
jmp 0x140002359
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], rsi
xor r8d, r8d
lea rdx, [0x140102700]
lea rcx, [rbp - 0x70]
call fcn.14000c220
nop
mov rdi, qword [rbp - 0x60]
test rdi, rdi
jne 0x14000238e
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
xor r8d, r8d
lea rdx, [0x140102700]
mov rcx, rbx
call fcn.14000c220
jmp 0x14000240c
lea rcx, [rsp + 0x70]
call fcn.1400020f0
mov rsi, rax
movabs rcx, 0x7ffffffffffffffe
sub rcx, rdi
cmp rcx, 1
jb 0x140002440
lea r9, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae r9, qword [rbp - 0x70]
mov qword [rsp + 0x30], 1
lea rax, [0x140102704]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea rcx, [rsp + 0x50]
call fcn.14000cb10
nop
mov r9, rsi
lea r8, [rsp + 0x50]
mov rcx, rbx
call fcn.14000c8f0
nop
lea rcx, [rsp + 0x50]
call fcn.140009120
nop
lea rcx, [rsp + 0x70]
call fcn.140009120
nop
lea rcx, [rbp - 0x70]
call fcn.140009120
mov rax, rbx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1400cad70
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1400013a0
nop
call fcn.1400cb030
int3
Function at 0x140007000
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1030
call fcn.1400cba00
sub rsp, rax
mov rax, qword [0x140123218]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov r13, r9
mov r15, r8
mov rbp, rdx
test r8, r8
je 0x1400070c6
mov r9d, 0x1000
lea rdx, [rsp + 0x20]
call fcn.140004120
test al, al
je 0x1400070c6
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rbx + rbp], 0
jne 0x140007060
movsxd rax, dword [rsp + 0x5c]
lea rcx, [rsp + 0x20]
add rcx, rax
xor esi, esi
movzx eax, word [rcx + 0x14]
lea r12, [rcx + 0x18]
movzx r14d, word [rcx + 6]
add r12, rax
test r14d, r14d
je 0x1400070c6
nop dword [rax]
lea rcx, [rsi + rsi*4]
mov r8, rbx
lea rdi, [r12 + rcx*8]
mov rdx, rbp
mov rcx, rdi
call fcn.1400cdfb0
test eax, eax
jne 0x1400070bf
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], 0
jne 0x1400070b1
cmp rbx, rax
je 0x1400070f3
inc esi
cmp esi, r14d
jb 0x140007090
xor eax, eax
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400cad70
mov rbx, qword [rsp + 0x1078]
add rsp, 0x1030
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [rdi + 0xc]
test eax, eax
je 0x1400070c6
mov ecx, dword [rdi + 8]
lea rax, [rsp + rax + 0x20]
test rax, rax
je 0x1400070c6
test ecx, ecx
je 0x1400070c6
test r13, r13
je 0x140007114
mov dword [r13], ecx
lea rcx, [rsp + 0x20]
sub rax, rcx
add rax, r15
jmp 0x1400070c8
Function at 0x140008260
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140008282
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x1400082fc
mov rdi, r14
mov rcx, rbx
call fcn.140009b70
test rax, rax
jle 0x1400082d4
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.1400cd4d0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400082ec
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400082f4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140008296
sub r14, rdi
jmp 0x1400083df
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140008313
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140008315
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140008347
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400cd4d0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400083dc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140008382
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x1400083bd
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1400d30b0
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1400083dc
cmp rbp, rax
ja 0x140008390
test rbp, rbp
je 0x1400083dc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1400d30b0
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x14000ea40
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword gs:[0x60]
xor r15d, r15d
mov r14d, 0x96aa72c0
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax + rax]
mov rbx, qword [rax + 0x30]
test rbx, rbx
je 0x14000ec6c
cmp word [rax + 0x48], 0
je 0x14000ec6c
mov ecx, dword [rax + 0x58]
sub cx, 8
test r15d, r15d
je 0x14000eaf3
mov r9, qword [rax + 0x60]
mov r10d, 0x873d18b7
movzx ecx, cx
shr rcx, 1
lea r11, [r9 + rcx*2]
cmp r9, r11
je 0x14000eaea
nop dword [rax]
movsx ecx, byte [r9]
mov edx, ecx
sub cl, 0x41
mov r8d, edx
or r8d, 0x20
cmp cl, 0x19
cmova r8d, edx
add r9, 2
xor r8d, r10d
imul r10d, r8d, 0x1000193
cmp r9, r11
jne 0x14000eac0
cmp r10d, r15d
jne 0x14000ec6c
movsxd rcx, dword [rbx + 0x3c]
mov rdx, qword [rcx + rbx + 0x88]
mov r12, rdx
mov esi, edx
shr r12, 0x20
add rsi, rbx
cmp rsi, rbx
je 0x14000ec6c
mov edi, dword [rsi + 0x18]
test edi, edi
je 0x14000ec6c
mov r13d, dword [rsi + 0x24]
mov r9d, dword [rsi + 0x1c]
mov r10d, dword [rsi + 0x20]
nop dword [rax + rax]
dec edi
lea rcx, [rdi*2]
add rcx, r13
movzx edx, word [rcx + rbx]
lea rcx, [r9 + rdx*4]
mov edx, dword [rcx + rbx]
lea rcx, [r10 + rdi*4]
mov r10d, dword [rcx + rbx]
add rdx, rbx
add r10, rbx
cmp rdx, rsi
jbe 0x14000eb69
lea rcx, [r12 + rsi]
cmp rdx, rcx
jae 0x14000eb69
mov bpl, 1
jmp 0x14000eb6c
xor bpl, bpl
movzx r9d, byte [r10]
mov r11d, 0x873d18b7
inc r10
test r9b, r9b
je 0x14000ebaf
nop
movsx ecx, r9b
lea r10, [r10 + 1]
sub r9b, 0x41
mov r8d, ecx
or r8d, 0x20
cmp r9b, 0x19
movzx r9d, byte [r10 - 1]
cmova r8d, ecx
xor r8d, r11d
imul r11d, r8d, 0x1000193
test r9b, r9b
jne 0x14000eb80
cmp r11d, r14d
je 0x14000ebcc
mov r9d, dword [rsi + 0x1c]
mov r10d, dword [rsi + 0x20]
test edi, edi
jne 0x14000eb30
mov rax, qword [rax]
jmp 0x14000ea80
test bpl, bpl
je 0x14000ec74
movzx r8d, byte [rdx]
mov r15d, 0x873d18b7
mov r14d, r15d
cmp r8b, 0x2e
je 0x14000ec1c
nop dword [rax + rax]
movsx eax, r8b
sub r8b, 0x41
mov ecx, eax
or ecx, 0x20
cmp r8b, 0x19
movzx r8d, byte [rdx + 1]
cmova ecx, eax
inc rdx
xor ecx, r15d
imul r15d, ecx, 0x1000193
cmp r8b, 0x2e
jne 0x14000ebf0
movzx r8d, byte [rdx + 1]
inc rdx
test r8b, r8b
je 0x14000ec5b
nop dword [rax]
movsx eax, r8b
lea rdx, [rdx + 1]
sub r8b, 0x41
mov ecx, eax
or ecx, 0x20
cmp r8b, 0x19
movzx r8d, byte [rdx]
cmova ecx, eax
xor ecx, r14d
imul r14d, ecx, 0x1000193
test r8b, r8b
jne 0x14000ec30
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
jmp 0x14000ea80
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rbx]
call rdx
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov qword [rbx], 0
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret