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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400260d0
call sym._pthread_time_in_ms_from_timespec
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140026108
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x14002a4e8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140026160
test esi, esi
je 0x1400260e6
call sym.pthread_testcancel
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140026140
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 [0x14002a4e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140026150
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 [0x14002a4e8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1400260a5
call sym.__pthread_self_lite.part.0
mov rbx, rax
jmp 0x1400260a5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400260be
call sym.__pthread_self_lite.part.0
jmp 0x1400260e6
call sym.__pthread_self_lite.part.0
mov rbx, rax
jmp 0x1400260a1

Function at 0x140026170
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 [0x14002a4e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400261e0
test esi, esi
je 0x1400261c0
call sym.pthread_testcancel
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400261f0
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 0x140026191
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400261aa
Function at 0x140026200
Capabilities:
Get thread local storage value
Hijack thread execution

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x4f8
mov rsi, rcx
test rcx, rcx
je 0x1400262f0
lea rdi, [0x14002a4d8]
mov rcx, rdi
call sym.pthread_mutex_lock
mov rcx, rsi
call sym.__pthread_get_pointer
mov rcx, rdi
mov rbx, rax
call sym.pthread_mutex_unlock
test rbx, rbx
je 0x1400262f0
mov rcx, qword [rbx + 0x28]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400262f0
lea rdi, [rsp + 0x20]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x1400262f0
lea rbp, [rbx + 0x38]
mov rcx, rbp
call sym.pthread_mutex_lock
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x14002a4e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140026400
movzx edx, byte [rbx + 0x40]
cmp rsi, qword [rax + 0x1d8]
je 0x140026308
mov eax, dword [rbx + 0x44]
and eax, 3
cmp eax, 3
je 0x140026360
test dl, 3
jne 0x1400262e0
and edx, 0xfffffffc
or edx, 1
mov byte [rbx + 0x40], dl
lock add dword [0x140034e08], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400262d1
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbp
call sym.pthread_mutex_unlock
xor eax, eax
jmp 0x1400262f5
mov rcx, rbp
call sym.pthread_mutex_unlock
test byte [rbx + 0x40], 0xc
je 0x1400262d9
nop
mov eax, 3
add rsp, 0x4f8
pop rbx
pop rsi
pop rdi
pop rbp
ret
test dl, 3
jne 0x1400262e0
and edx, 0xfffffffc
or edx, 1
mov byte [rbx + 0x40], dl
lock add dword [0x140034e08], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14002632d
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [rbx + 0x44]
mov edx, eax
and edx, 3
cmp edx, 3
jne 0x1400262d1
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 word [rax + rax]
test dl, 0xc
jne 0x1400262e0
and edx, 0xf
jne 0x1400262f0
mov rcx, qword [rbx + 0x28]
mov dword [rsp + 0x50], 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 0x1400262d1
mov rcx, qword [rbx + 0x28]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
lea rax, [sym._pthread_invoke_cancel]
mov rcx, qword [rbx + 0x28]
mov rdx, rdi
mov qword [rsp + 0x118], 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 [0x140034e08], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400263e8
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 0x1400262d1
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x140026290
movzx edx, byte [rbx + 0x40]
jmp 0x14002629d
Function at 0x140026420
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, [0x14002a4d8]
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 0x140026498
cmp qword [rax + 0x1d8], rbx
jne 0x140026498
test byte [rax + 0x40], 0xc
jne 0x140026498
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x140026498
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x140026498
mov rcx, rdi
call sym.pthread_mutex_unlock
test esi, esi
je 0x1400264b0
lea edx, [rsi - 2]
cmp edx, 0x15
ja 0x1400264b8
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 0x1400264a5
mov eax, 0x16
jmp 0x1400264a5

Function at 0x140026650
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 [0x14002a4e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400266c0
cmp esi, 1
ja 0x1400266cd
lea rbp, [rbx + 0x38]
mov rcx, rbp
call sym.pthread_mutex_lock
test rdi, rdi
je 0x140026694
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 0x140026676
mov eax, 0x16
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x1400266e0
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 [0x14002a4e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140026758
mov ebp, esi
and ebp, 0xfffffffd
jne 0x140026765
lea r12, [rbx + 0x38]
mov rcx, r12
call sym.pthread_mutex_lock
test rdi, rdi
je 0x140026728
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 0x140026708
mov ebp, 0x16
mov eax, ebp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140026a10
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov rbp, rdx
test rcx, rcx
je 0x140026b30
lea rdi, [0x14002a4d8]
mov rcx, rdi
call sym.pthread_mutex_lock
mov rcx, rsi
call sym.__pthread_get_pointer
mov rcx, rdi
mov rbx, rax
call sym.pthread_mutex_unlock
test rbx, rbx
je 0x140026b30
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x140026b30
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x140026b30
test byte [rbx + 0x44], 4
jne 0x140026b40
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x14002a4e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140026b60
cmp rsi, qword [rax + 0x1d8]
je 0x140026b88
mov eax, dword [rbx + 0xbc]
mov rcx, qword [rbx + 0x28]
test eax, eax
je 0x140026abb
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140026aca
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 0x140026ade
call rsi
mov qword [rbx + 0x30], 0
lea rcx, [rbx + 0x38]
test rbp, rbp
je 0x140026b78
mov rax, qword [rbx + 8]
mov qword [rbp], rax
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x140026b8f
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x140026b50
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, 3
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, 0x16
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbx
call sym.push_pthread_mem.part.0
xor eax, eax
jmp 0x140026b26
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x140026a96
jmp 0x140026aa3
call sym.pthread_mutex_destroy
jmp 0x140026b00
mov eax, 0x24
jmp 0x140026b35
call sym.replace_spin_keys.part.0
nop
nop word cs:[rax + rax]
Function at 0x140026ba0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [0x14002a4d8]
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 0x140026cc0
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x140026cc0
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x140026cc0
test byte [rbx + 0x44], 4
jne 0x140026ce0
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x14002a4e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140026d20
mov rdx, qword [rax + 0x1d8]
cmp rsi, rdx
je 0x140026d58
mov edx, dword [rbx + 0xbc]
mov rcx, qword [rbx + 0x28]
test edx, edx
jne 0x140026c47
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140026d00
mov rcx, qword [rbx + 0x28]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140026c5b
call rsi
mov qword [rbx + 0x30], 0
lea rcx, [rbx + 0x38]
test rdi, rdi
je 0x140026d38
mov rax, qword [rbx + 8]
mov qword [rdi], rax
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x140026d6a
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x140026d48
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 0x140026c43
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 0x10
jmp 0x140026cae
call sym.__pthread_self_lite.part.0
xor edx, edx
test rax, rax
jne 0x140026c15
jmp 0x140026c1c
call sym.pthread_mutex_destroy
jmp 0x140026c7c
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x140026ca4
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 0x24
jmp 0x140026cae
call sym.replace_spin_keys.part.0
nop
Function at 0x140001e9c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001ee6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001ee6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001ee6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001ee6
cmp dword [rcx + 0x84], 0xe
jbe 0x140001ee6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001ee8
xor al, al
add rsp, 0x28
ret
Function at 0x140c41058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140c411df
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 0x140c41089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c4106f
add dl, dl
jne 0x140c41096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c410f6
xor eax, eax
add dl, dl
jne 0x140c410a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c411ad
add dl, dl
jne 0x140c410b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c410c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c410d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c410dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140c410ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140c4107e
mov eax, 1
add dl, dl
jne 0x140c41106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c41113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c410fb
sub eax, ebx
mov ebx, 1
jne 0x140c4114c
mov ecx, 1
add dl, dl
jne 0x140c4112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c4113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c41123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c4107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140c41168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c41175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c4115d
cmp eax, 0x7d00
jae 0x140c4119b
cmp eax, 0x500
jb 0x140c41196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c4107e
cmp eax, 0x7f
ja 0x140c4119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c4107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140c411d2
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 0x140c4107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14001e890
Capabilities:
Get common file path

Disassembly:
push rbp
sub rsp, 0x130
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xa8], 0xfffffffffffffffe
mov qword [rbp - 0x50], rdx
mov rax, rcx
mov rcx, qword [rbp - 0x50]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp + 0x40], rcx
mov byte [rbp + 0x3f], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x90], 0
mov qword [rbp + 0xa0], 0
mov rax, qword [rbp + 0xa0]
mov qword [rbp + 0x98], rax
mov rax, qword [rbp + 0x98]
mov qword [rbp - 0x38], rax
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x80], 0
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x78], rax
mov r8, qword [rbp + 0x78]
xor edx, edx
lea r9, [rbp - 0x38]
call sub.SHELL32.dll_SHGetKnownFolderPath
mov dword [rbp + 0x4c], eax
cmp eax, 0
je 0x14001e947
mov rax, qword [rbp - 0x48]
mov byte [rax + 0x18], 2
jmp 0x14001e98b
mov rcx, qword [rbp - 0x38]
call sub.KERNEL32.dll_lstrlenW
movsxd rdx, eax
mov qword [rbp + 0x50], rdx
mov rcx, qword [rbp - 0x38]
call fcn.14001e5e0
mov qword [rbp - 0x58], rax
mov r8, rdx
mov rdx, qword [rbp - 0x58]
mov qword [rbp + 0x58], rdx
mov qword [rbp + 0x60], r8
mov byte [rbp + 0x3f], 1
lea rcx, [rbp - 0x30]
call fcn.140025710
mov rcx, qword [rbp - 0x38]
call sub.ole32.dll_CoTaskMemFree
jmp 0x14001e998
mov rax, qword [rbp - 0x40]
add rsp, 0x130
pop rbp
ret
mov byte [rbp + 0x3f], 0
movups xmm0, xmmword [rbp - 0x30]
movups xmm1, xmmword [rbp - 0x20]
movaps xmmword [rbp + 0x20], xmm1
movaps xmmword [rbp + 0x10], xmm0
lea rcx, [rbp - 0x10]
lea rdx, [rbp + 0x10]
call fcn.14001e860
jmp 0x14001e9bb
mov rax, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x10]
mov qword [rax], rcx
mov rcx, qword [rbp - 8]
mov qword [rax + 8], rcx
mov rcx, qword [rbp]
mov qword [rax + 0x10], rcx
mov rcx, qword [rbp + 8]
mov qword [rax + 0x18], rcx
mov byte [rbp + 0x3f], 0
jmp 0x14001e98b
Function at 0x140021fb0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x140022040
jmp 0x14002202f
jae 0x140022100
cmp r8, 0x201
jae 0x140022040
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140022098
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14002206f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14003d630
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x1400220c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140022168
mov r8d, r14d
cmp r15, r8
jne 0x140022020
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14002218b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14002202f
jmp 0x140022040
cmp rsi, r8
jb 0x1400221a5
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140025710
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x140022151
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140002580
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x140022139
jmp 0x140022151
lea rcx, str.internal_error:_entered_unreachable_code_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14003e2a0
jmp 0x1400221ba
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14003e790
ud2
Function at 0x14002c5d0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x1400474c0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14002c614
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14002c673
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14002c682
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14002c6ba
cmp eax, 0x103
je 0x14002c6c4
test eax, eax
js 0x14002c69f
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14002c6ba
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rsi, [rsp + 0x78]
lea r9, [rsp + 0x50]
mov r8d, 1
mov rcx, rsi
call fcn.14001f600
lea rcx, [rsp + 0x58]
mov rdx, rsi
call fcn.1400253c0
mov rcx, rax
call fcn.14001fc40
mov ecx, 7
int 0x29
ud2

Function at 0x14002c720
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x1400474c0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14002c764
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14002c7ca
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14002c801
test eax, eax
js 0x14002c7db
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14002c7f4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rsi, [rsp + 0x78]
lea r9, [rsp + 0x50]
mov r8d, 1
mov rcx, rsi
call fcn.14001f600
lea rcx, [rsp + 0x58]
mov rdx, rsi
call fcn.1400253c0
mov rcx, rax
call fcn.14001fc40
mov ecx, 7
int 0x29
ud2
Function at 0x14003b330
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14003b3aa
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14003b3a0
cmp r11, r10
ja 0x14003b443
cmp r10, rdx
ja 0x14003b457
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14003b3a2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14003b380
jmp 0x14003b417
ja 0x14003b3aa
mov r11, r10
cmp rax, r8
jne 0x14003b352
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14003b41b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14003b3f0
mov r8, r10
sub ecx, r9d
jns 0x14003b40e
jmp 0x14003b41d
cmp r10, rdx
je 0x14003b429
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14003b41d
xor al, 1
cmp r8, rdx
jne 0x14003b3d0
jmp 0x14003b41d
xor eax, eax
jmp 0x14003b41d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuelibrarycore_src_nummod.rsfrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14003e2a0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14003e800
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14003e790
ud2

Function at 0x14003cfcc
Capabilities:
Parse pe header

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