joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400295c0
Capabilities:
Hash data using murmur3

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [rdx + 3]
test rdx, rdx
mov r13, rcx
mov rsi, rdx
cmovns rdi, rdx
and rdi, 0xfffffffffffffffc
jle 0x14002977b
test rdx, rdx
jle 0x14002963b
mov r14, qword [0x14010aef0]
mov ebx, dword [rcx]
mov rcx, r14
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x140029646
xor ebp, ebp
mov ecx, 4
imul eax, ebx, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, ebp
rol eax, 0xd
lea ebp, [rax + rax*4 - 0x19ab949c]
cmp rcx, rdi
jge 0x140029660
cmp rsi, rcx
jle 0x14002963d
mov ebx, dword [r13 + rcx]
add rcx, 4
jmp 0x14002960b
xor ecx, ecx
lea rdx, [rsi - 1]
call sym.raiseIndexError2
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rax, rsi
and eax, 3
je 0x1400297a2
sub rax, 1
mov r8, rcx
xor edx, edx
add r8, rax
js 0x1400297b9
cmp r8, rax
jb 0x1400297b9
test rdx, rdx
jne 0x140029771
cmp r8, rsi
jge 0x140029760
test r8, r8
js 0x140029760
movzx edx, byte [r13 + r8]
test rax, rax
je 0x140029709
sub rax, 1
mov r9, rcx
xor r10d, r10d
add r9, rax
js 0x1400297c3
cmp r9, rax
jb 0x1400297c3
mov r8, r9
test r10, r10
jne 0x140029771
cmp rsi, r9
jle 0x140029760
test r9, r9
js 0x140029760
movzx r8d, byte [r13 + r9]
shl edx, 8
or edx, r8d
test rax, rax
je 0x140029709
test rcx, rcx
js 0x14002975d
cmp rsi, rcx
jle 0x14002975d
movzx eax, byte [r13 + rcx]
shl edx, 8
or edx, eax
imul ebx, edx, 0xcc9e2d51
mov r14, qword [0x14010aef0]
rol ebx, 0xf
mov rcx, r14
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x140029646
imul ebx, ebx, 0x1b873593
xor ebp, esi
xor ebp, ebx
mov edx, ebp
shr edx, 0x10
xor edx, ebp
imul edx, edx, 0x85ebca6b
mov eax, edx
shr eax, 0xd
xor eax, edx
imul eax, eax, 0xc2b2ae35
mov r12d, eax
shr r12d, 0x10
xor r12d, eax
jmp 0x140029646
mov r8, rcx
lea rdx, [rsi - 1]
mov rcx, r8
call sym.raiseIndexError2
jmp 0x140029646
call sym.raiseOverflow
jmp 0x140029646
sar rdx, 0x3f
shr rdx, 0x3e
lea rax, [rsi + rdx]
and eax, 3
sub rax, rdx
test rax, rax
jle 0x1400297a9
sub rax, 1
xor ecx, ecx
xor ebp, ebp
mov r8, rax
jmp 0x140029690
xor ebx, ebx
jmp 0x140029719
mov r14, qword [0x14010aef0]
xor ebp, ebp
xor ebx, ebx
jmp 0x140029719
mov edx, 1
jmp 0x140029687
mov r10d, 1
jmp 0x1400296c9

Function at 0x1400297d0
Capabilities:
Hash data using murmur3

Disassembly:
sub rsp, 0x28
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
test rdx, rdx
js 0x1400297f8
lea rcx, [rax + 8]
test rax, rax
cmove rcx, rax
add rsp, 0x28
jmp sym.murmurHash__pureZhashes_u192
lea r9, [rdx - 1]
mov r8, rdx
xor ecx, ecx
mov rdx, r9
call sym.raiseIndexError4
xor eax, eax
add rsp, 0x28
ret
Function at 0x14002a690
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov rcx, r8
test rax, rax
je 0x14002a6b8
mov r8, qword [rax]
cmp word [r8 + 0x12], 1
jle 0x14002a6f0
mov r8, qword [r8 + 0x18]
cmp dword [r8 + 8], 0x2444a200
jne 0x14002a6f0
test rcx, rcx
js 0x14002a6d0
mov r9, qword [rax + 0x58]
mov r8, rcx
mov rcx, r9
add rsp, 0x28
jmp sym.readBuffer__stdZsyncio_u165
movabs r8, 0x7fffffffffffffff
xor edx, edx
call sym.raiseRangeErrorI
xor eax, eax
add rsp, 0x28
ret
call sym.raiseObjectConversionError
xor eax, eax
add rsp, 0x28
ret

Function at 0x14002a740
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov r9, qword [r8]
mov rax, rcx
mov rcx, qword [r8 + 8]
test rax, rax
je 0x14002a76c
mov r8, qword [rax]
cmp word [r8 + 0x12], 1
jle 0x14002a7c0
mov r8, qword [r8 + 0x18]
cmp dword [r8 + 8], 0x2444a200
jne 0x14002a7c0
mov r8, qword [rdx]
test r9, r9
js 0x14002a7a8
cmp r8, r9
jle 0x14002a7a8
add rcx, 1
jo 0x14002a7cc
sub rcx, r9
jo 0x14002a7cc
test rcx, rcx
js 0x14002a7e0
mov rdx, qword [rdx + 8]
mov r8, rcx
lea rdx, [rdx + r9 + 8]
mov r9, qword [rax + 0x58]
mov rcx, r9
add rsp, 0x28
jmp sym.readBuffer__stdZsyncio_u165
lea rdx, [r8 - 1]
mov rcx, r9
call sym.raiseIndexError2
xor eax, eax
add rsp, 0x28
ret
call sym.raiseObjectConversionError
xor eax, eax
add rsp, 0x28
ret
call sym.raiseOverflow
xor eax, eax
add rsp, 0x28
ret
movabs r8, 0x7fffffffffffffff
xor edx, edx
call sym.raiseRangeErrorI
jmp 0x14002a7b4
Function at 0x14005bc70
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
sub rsp, 0x28
movzx eax, byte [rcx + 8]
mov r12, rcx
mov r14, rdx
mov r13, r8
cmp al, 2
je 0x14005bd60
ja 0x14005bd10
xor r15d, r15d
test al, al
je 0x14005bcf7
mov rdx, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x28]
mov rax, rdx
sub rax, rcx
jo 0x14005bde8
cmp rax, r8
mov r15, r8
cmovle r15, rax
test r15, r15
jle 0x14005bcf7
cmp rdx, rcx
jle 0x14005bdb8
test rcx, rcx
js 0x14005bdb8
mov rax, qword [r12 + 0x20]
mov r8, r15
lea rdx, [rax + rcx + 8]
mov rcx, r14
call sym.memcpy
mov rax, r15
add rax, qword [r12 + 0x28]
jo 0x14005bde8
mov qword [r12 + 0x28], rax
mov rax, r15
add rsp, 0x28
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rcx + 0x50]
mov rcx, qword [rcx + 0x58]
test rax, rax
je 0x14005bd80
test rcx, rcx
je 0x14005bd90
call rax
mov rcx, qword [0x14010aef0]
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x14005bcf7
mov r9, qword [r12 + 0x48]
mov rax, qword [r12 + 0x40]
test r9, r9
je 0x14005bdd0
mov r8, r13
mov rdx, r14
mov rcx, r12
add rsp, 0x28
pop r12
pop r13
pop r14
pop r15
jmp rax
test r8, r8
js 0x14005bd98
mov rcx, qword [rcx + 0x10]
add rsp, 0x28
pop r12
pop r13
pop r14
pop r15
jmp sym.readBuffer__stdZsyncio_u165
test rcx, rcx
jne 0x14005bd22
jmp 0x14005bd35
call rax
jmp 0x14005bd24
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, r13
call sym.raiseRangeErrorI
jmp 0x14005bcf7
sub rdx, 1
call sym.raiseIndexError2
jmp 0x14005bcf7
mov r8, r13
mov rdx, r14
mov rcx, r12
add rsp, 0x28
pop r12
pop r13
pop r14
pop r15
jmp rax
call sym.raiseOverflow
jmp 0x14005bcf7
Function at 0x14009d930
Capabilities:
Link many functions at runtime

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r12, qword [rdx]
mov rsi, qword [rdx + 8]
mov rbp, qword [r8]
mov rdi, qword [r8 + 8]
mov r13, rcx
mov rcx, qword [0x14010aef0]
call sym.__emutls_get_address
mov rbx, rax
test r13, r13
je 0x14009d9b3
test r12, r12
lea rax, [0x140104920]
lea rdx, [rsi + 8]
mov rcx, r13
cmove rdx, rax
call sym.symAddr__pureZdynlib_u74
cmp byte [rbx], 0
jne 0x14009d985
test rax, rax
je 0x14009d998
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
test rbp, rbp
jle 0x14009d9b3
lea rdx, [rdi + 8]
mov rcx, r13
call sym.symAddr__pureZdynlib_u74
cmp byte [rbx], 0
jne 0x14009d985
test rax, rax
jne 0x14009d985
mov r13, qword [0x14011c5f8]
test r13, r13
je 0x14009da10
cmp byte [rbx], 1
je 0x14009da30
test r13, r13
je 0x14009da30
test r12, r12
lea rax, [0x140104920]
lea rdx, [rsi + 8]
mov rcx, r13
cmove rdx, rax
call sym.symAddr__pureZdynlib_u74
cmp byte [rbx], 0
jne 0x14009d985
test rax, rax
jne 0x14009d985
test rbp, rbp
jle 0x14009da30
lea rdx, [rdi + 8]
mov rcx, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.symAddr__pureZdynlib_u74
call sym.loadLib__pureZdynlib_u6
cmp byte [rbx], 0
mov r13, rax
jne 0x14009da30
mov qword [0x14011c5f8], rax
jmp 0x14009d9bf
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x1400d5ee0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x1400d6b12
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14011c788]
test eax, eax
je 0x1400d6baa
lea rax, [0x14011c760]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14011c790]
mov qword [rbp - 8], rax
jmp 0x1400d6b8e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400d6b82
cmp qword [rbp - 0x10], 0
je 0x1400d6b82
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400d6b48
lea rax, [0x14011c760]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400d6bab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400d6cb0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400d6cd8
mov eax, 0
jmp 0x1400d6d26
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400d6d01
mov eax, 0
jmp 0x1400d6d26
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400d6d21
mov eax, 0
jmp 0x1400d6d26
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400d6d2c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400d6daa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400d6da1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400d6da1
mov rax, qword [rbp - 8]
jmp 0x1400d6dbf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400d6d74
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400e2794
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x1400e28de
mov rcx, qword [rbp + 0x10]
call sym.pthread_spin_destroy
cmp eax, 1
jne 0x1400e28d1
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov word [rbp - 8], 0
mov byte [rbp - 6], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.msvcrt.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x1400e2887
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x1400e289d
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x1400e2883
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x1400e28bc
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sym.abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x1400e28df
nop
add rsp, 0x90
pop rbp
ret
Function at 0x1400e38fb
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [sym.imp.KERNEL32.dll_TlsAlloc]
call rax
mov dword [0x1400edd20], eax
mov eax, dword [0x1400edd20]
cmp eax, 0xffffffff
jne 0x1400e3922
call sym.abort
nop
add rsp, 0x20
pop rbp
ret

Function at 0x1400e3ad5
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x14011d210]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x1400edd20]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x1400e3b28
mov rax, qword [rbp - 0x10]
jmp 0x1400e3c88
call sym.pop_pthread_mem
mov qword [rbp - 0x10], rax
mov rax, qword [sym.__dyn_tls_pthread]
test rax, rax
je 0x1400e3b44
cmp qword [rbp - 0x10], 0
jne 0x1400e3b4e
mov eax, 0
jmp 0x1400e3c88
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call sym.replace_spin_keys
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x1400e3c29
call sym.abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x1400edd20]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x1400e3c84
call sym.abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x1400e3d82
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call sym.__pthread_self_lite
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x1400e3def
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_longjmp]
call rax
mov eax, dword [0x1400edd20]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x1400e3f33
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x1400e3e8c
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x1400e3e47
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 0x10], 0
mov eax, dword [0x1400edd20]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x1400e3f33
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x1400e3ec6
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x1400e3f33
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 0x10], 0
mov eax, dword [0x1400edd20]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x1400e4b75
Capabilities:
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x14], 0
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
call sym._fpreset
lea rax, [0x1400edd30]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x14011d210]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x1400edd20]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 8]
mov dword [rdx + 0x70], eax
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rdx, rbp
mov rax, qword [rbp - 8]
add rax, 0xd0
mov rcx, rax
call sym._setjmp
test eax, eax
jne 0x1400e4c8a
mov qword [rbp - 0x10], pe_nt_image_headers64
lea rax, [0x1400edd30]
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x1400e4c58
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov rcx, rax
call rdx
mov qword [rbp - 0x10], rax
nop
nop
lea rax, [0x1400edd30]
mov rcx, rax
call sym.pthread_mutex_lock
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
jmp 0x1400e4c99
lea rax, [0x1400edd30]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x1400e4cd5
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x1400e4d43
mov rax, qword [rbp - 8]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 8], 0
mov eax, dword [0x1400edd20]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x1400e4d8d
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 8]
mov dword [rax + 0xbc], 1
jmp 0x1400e4d8d
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, [0x1400edd30]
mov rcx, rax
call sym.pthread_mutex_unlock
test eax, eax
je 0x1400e4d7f
mov eax, dword [rbp - 0x14]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x140001aec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001b36
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001b36
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001b36
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b36
cmp dword [rcx + 0x84], 0xe
jbe 0x140001b36
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b38
xor al, al
add rsp, 0x28
ret

Function at 0x140686058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1406861df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140686089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14068606f
add dl, dl
jne 0x140686096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406860f6
xor eax, eax
add dl, dl
jne 0x1406860a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406861ad
add dl, dl
jne 0x1406860b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406860c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406860d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406860dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406860ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14068607e
mov eax, 1
add dl, dl
jne 0x140686106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140686113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406860fb
sub eax, ebx
mov ebx, 1
jne 0x14068614c
mov ecx, 1
add dl, dl
jne 0x14068612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14068613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140686123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14068607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140686168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140686175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14068615d
cmp eax, 0x7d00
jae 0x14068619b
cmp eax, 0x500
jb 0x140686196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14068607e
cmp eax, 0x7f
ja 0x14068619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14068607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406861d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14068607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20