joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001abf
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
lea rax, [rbp - 8]
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call rax
test eax, eax
sete al
test al, al
je 0x140001b12
mov eax, 0xffffffff
jmp 0x140001c3d
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0x800c
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
call rax
test eax, eax
sete al
test al, al
je 0x140001b4f
mov eax, 0xffffffff
jmp 0x140001c3d
mov rax, qword [rbp + 0x28]
mov ecx, eax
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp + 0x20]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptHashData]
call rax
test eax, eax
sete al
test al, al
je 0x140001b85
mov eax, 0xffffffff
jmp 0x140001c3d
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8, rcx
mov edx, 0x6610
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
call rax
test eax, eax
sete al
test al, al
je 0x140001bc0
mov eax, 0xffffffff
jmp 0x140001c3d
mov rax, qword [rbp - 0x18]
lea rdx, [rbp + 0x18]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp + 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
call rax
test eax, eax
sete al
test al, al
je 0x140001c03
mov eax, 0xffffffff
jmp 0x140001c3d
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
call rax
mov eax, 0
add rsp, 0x50
pop rbp
ret
Function at 0x14000b6e0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x14000b750
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1400e00c4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x14000b900
mov rax, qword [0x1400e00c8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000b79c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000b827
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x14000b780
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x14000b95d
mov rax, qword [0x1400e00c8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400e00c8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b942
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000b820
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000b8b0
add dword [0x1400e00c4], 1
cmp ebx, 8
jae 0x14000b858
test bl, 4
jne 0x14000b910
test ebx, ebx
je 0x14000b849
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x14000b930
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x14000b849
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x14000b88a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1400e00c8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000b820
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x14000b7a7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x14000b849
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x14000b849
mov rax, qword [0x1400e00c8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x14000be70
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1400e0120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400e0100]
test rbx, rbx
je 0x14000bec4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000bebb
test r12, r12
je 0x14000bebb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000bea0
lea rcx, [0x1400e0120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000c0f0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x14000c100
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x14000c110
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x14000c155
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x14000c14c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x14000c157
add rax, 0x28
cmp rax, r9
jne 0x14000c138
xor eax, eax
ret

Function at 0x14000c200
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x1400ba5f0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x14000c279
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14000c279
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x14000c276
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14000c26d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x14000c279
add r8, 0x28
cmp r8, r9
jne 0x14000c258
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x14000c360
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1400ba5f0]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14000c3cf
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14000c3cf
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x14000c3cd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000c3c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000c3d8
add rax, 0x28
cmp rax, r9
jne 0x14000c3b0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x14000c3f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x1400ba5f0]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x14000c468
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14000c468
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x14000c468
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x14000c468
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x14000c45c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x14000c470
add rdx, 0x28
cmp rdx, r10
jne 0x14000c448
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x14000c480
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x14000c48e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000c465
test r8d, r8d
jg 0x14000c478
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret

Function at 0x14000c570
Capabilities:
Allocate thread local storage

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x14000c5a0
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp dbg.__mingwthr_key_dtor
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x14000c5e0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12d, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, r12d
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret

Function at 0x14000c620
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14000c638
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x140017840
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
lea rcx, str.msvcrt.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.rand_s
mov rcx, rax
call rbx
test rax, rax
je 0x140017888
mov rcx, r12
mov qword [dbg.init_rand_s], rax
add rsp, 0x28
pop rbx
pop r12
jmp rax
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.SystemFunction036
mov rcx, rax
call rbx
mov qword [0x1400e0ba0], rax
lea rax, [dbg.mingw_rand_s]
jmp 0x14001786f

Function at 0x140019980
Capabilities:
Read file on windows

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

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x30
cmp byte [0x1400b4f40], 0
jne 0x14001a73a
mov byte [0x1400b4f40], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x14001a710
mov r12, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [r12], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add r12, rax
mov rcx, r12
call sym.__cxa_demangle
mov ecx, 2
mov rbx, qword [dbg.__acrt_iob_func]
mov r13, rax
call rbx
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 0x14001a701
call rbx
mov rcx, r12
mov rdx, rax
call sym.fputs
mov ecx, 2
call rbx
mov r8d, 2
mov edx, 1
lea rcx, [0x1400b50e1]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x14001a6fc
mov rcx, r13
call sym.free
call sym.__cxa_rethrow
call rbx
mov rcx, r13
mov rdx, rax
call sym.fputs
jmp 0x14001a6cb
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 0x14001a7cf
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov r12, rax
call rbx
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rbx
mov rdx, rax
mov rcx, r12
call sym.fputs
mov ecx, 2
call rbx
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x14001a735
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x14001a735

Function at 0x1400743b0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x1400743d7
call rbp
cmp dword [rax], 4
jne 0x1400743f4
mov rcx, rdi
call method.std::__basic_file_char_.fd__
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sym.read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x1400743d0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140088860
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 0x140088888
xor ecx, ecx
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 0x1400888d0
cdqe
add rsi, rax
sub rbx, rax
jne 0x1400888a0
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x1400888dc
call rbp
cmp dword [rax], 4
je 0x1400888a0
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 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1401666e0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1401666f0]
mov dword [rax], 1
mov rax, qword [0x140166700]
mov dword [rax], 1
mov rax, qword [0x140166690]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1401666d0]
mov dword [0x14018900c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1401667b0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140166790]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140166620]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x1400031a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rdi, rdx
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x140003336
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400031d6
mov rsi, rax
cmp qword [rax + 8], 0
jne 0x140003364
mov ecx, dword [rbx + 0x18]
test ecx, ecx
je 0x14000336a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140003383
mov rsi, rax
test rax, rax
jne 0x140003277
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
mov rax, qword [0x140166748]
movzx eax, byte [rax]
mov ecx, 0x60
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400033a2
mov rsi, rax
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rax + 0x50], xmm0
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rax + 0x40], xmm0
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
movups xmm2, xmmword [rsp + 0x40]
movups xmm3, xmmword [rsp + 0x50]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov ecx, dword [rbx + 0x18]
test ecx, ecx
je 0x140003393
dec ecx
mov rdx, rsi
call fcn.140126534
lea rcx, [rsi + 8]
test rdi, rdi
je 0x14000329c
lea rdx, [rdi + 8]
cmp qword [rdi], 0
mov qword [rdi], 0
lea rax, [0x14012a3d0]
cmovne rax, rdx
jmp 0x1400032a3
lea rax, [0x14012a3d0]
mov rdx, qword [rcx + 0x50]
mov qword [rsp + 0x70], rdx
movups xmm0, xmmword [rcx + 0x40]
movaps xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movups xmm2, xmmword [rcx + 0x20]
movups xmm3, xmmword [rcx + 0x30]
movaps xmmword [rsp + 0x50], xmm3
movaps xmmword [rsp + 0x40], xmm2
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 8], 1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rsi + 0x50], xmm0
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x20]
movups xmm3, xmmword [rax + 0x30]
movups xmmword [rsi + 0x40], xmm3
movups xmmword [rsi + 0x30], xmm2
movups xmmword [rsi + 0x20], xmm1
movups xmmword [rsi + 0x10], xmm0
cmp qword [rsp + 0x20], 0
je 0x140003364
mov rax, qword [rsp + 0x30]
cmp rax, 2
je 0x140003364
lea rcx, [rsp + 0x38]
test rax, rax
je 0x140003354
mov rax, qword [rsp + 0x38]
lock dec qword [rax]
jne 0x140003364
call sym.alloc::sync::Arc_T_A_::drop_slow::hc44d71c70ba0b7bd
jmp 0x140003364
mov rcx, rbx
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x1400031c8
jmp 0x1400031d6
mov rax, qword [rsp + 0x38]
lock dec qword [rax]
jne 0x140003364
call sym.alloc::sync::Arc_T_A_::drop_slow::h35da96c11cb38818
add rsi, 0x10
jmp 0x140003385
mov rcx, rbx
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400031f2
xor esi, esi
mov rax, rsi
add rsp, 0x80
pop rbx
pop rdi
pop rsi
ret
mov rcx, rbx
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
jmp 0x14000326f
mov ecx, 8
mov edx, 0x60
call dbg.handle_alloc_error
ud2
Function at 0x140005600
Capabilities:
Get graphical window text

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x440
mov rsi, rcx
call sub.USER32.dll_GetForegroundWindow
mov rbx, rax
mov dword [rsp + 0x24], 0
lea rdx, [rsp + 0x24]
mov rcx, rax
call sub.USER32.dll_GetWindowThreadProcessId
lea rdi, [rsp + 0x58]
mov r8d, 0x3e8
mov rcx, rdi
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, rbx
mov rdx, rdi
mov r8d, 0x1f4
call sub.USER32.dll_GetWindowTextW
movsxd rbx, eax
cmp ebx, 0x1f5
jae 0x1400056d8
mov qword [rsp + 0x28], 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov rax, rbx
shr rax, 1
mov r8d, ebx
and r8d, 1
add r8, rax
je 0x14000568a
lea rcx, [rsp + 0x28]
xor edx, edx
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::hc651a287f2f16b78
lea rax, [rsp + rbx*2]
add rax, 0x58
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rax
mov word [rsp + 0x50], 0
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x28]
call sym._ZN102__LT_core..iter..adapters..map..Map_LT_I_C_F_GT__u20_as_u20_core..iter..traits..iterator..Iterator_GT_4fold17hb6e6fbdd68
mov rax, qword [rsp + 0x38]
mov qword [rsi + 0x18], rax
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rsi + 8], xmm0
mov eax, dword [rsp + 0x24]
mov dword [rsi], eax
mov rax, rsi
add rsp, 0x440
pop rbx
pop rdi
pop rsi
ret
lea r8, str.src_mywindows.rs
mov edx, 0x1f4
mov rcx, rbx
call dbg.slice_end_index_len_fail
ud2
Function at 0x14001c8b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, qword [rcx]
mov rbx, qword [rsi]
test rbx, rbx
je 0x14001ca4d
mov r14, qword [rdx]
mov rcx, qword [0x140166640]
xor edi, edi
xor edx, edx
call sym.std::sys::common::thread_local::os_local::Key_T_::get::h8e604a1ee3b80f26
test rax, rax
je 0x14001c902
movzx ecx, byte [rax + 0x4d]
cmp byte [rax + 0x4c], 0
je 0x14001c8f4
test cl, cl
je 0x14001c9ee
dec cl
movzx edi, word [rax + 0x4c]
mov byte [rax + 0x4d], cl
mov eax, edi
shr eax, 8
jmp 0x14001c904
xor eax, eax
mov byte [rsp + 0x28], dil
mov byte [rsp + 0x29], al
mov rax, qword [rbx + 0x30]
test al, 2
jne 0x14001ca03
mov dil, 1
test al, 4
jne 0x14001ca0f
test al, 1
je 0x14001c98e
mov rax, qword [r14 + 8]
cmp rax, qword [rbx + 0x28]
jne 0x14001c96b
mov rax, qword [rbx + 0x20]
mov rcx, qword [r14]
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rcx]
pcmpeqd xmm1, xmm0
pshufd xmm0, xmm1, 0xb1
pand xmm0, xmm1
movmskpd edx, xmm0
cmp edx, 3
jne 0x14001c96b
mov rdx, qword [rax + 0x10]
cmp rdx, qword [rcx + 0x10]
jne 0x14001c96b
mov rax, qword [rax + 0x18]
cmp rax, qword [rcx + 0x18]
je 0x14001c9c3
mov rax, qword [rbx + 0x30]
nop
mov rcx, rax
and rcx, 0xfffffffffffffffe
lock cmpxchg qword [rbx + 0x30], rcx
jne 0x14001c970
test al, 2
jne 0x14001c9fd
mov rax, qword [rbx + 0x20]
mov rcx, qword [rbx + 0x28]
call qword [rax + 0x18]
mov rax, qword [r14]
mov rcx, qword [r14 + 8]
call qword [rax]
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], rdx
mov rax, qword [rbx + 0x30]
nop word cs:[rax + rax]
mov rcx, rax
or rcx, 1
lock cmpxchg qword [rbx + 0x30], rcx
jne 0x14001c9b0
test al, 2
jne 0x14001ca03
mov dil, 2
cmp byte [rsp + 0x28], 0
je 0x14001ca0f
movzx ebx, byte [rsp + 0x29]
mov rcx, qword [0x140166640]
xor edx, edx
call sym.std::sys::common::thread_local::os_local::Key_T_::get::h8e604a1ee3b80f26
test rax, rax
je 0x14001ca0f
mov byte [rax + 0x4c], 1
mov byte [rax + 0x4d], bl
jmp 0x14001ca0f
mov rax, qword [r14]
mov rcx, qword [r14 + 8]
call qword [rax + 0x10]
mov dil, 2
jmp 0x14001ca0f
lock or qword [rbx + 0x30], 1
movzx edi, byte [rbx + 0x38]
mov byte [rbx + 0x38], 0
xor dil, 1
test dil, dil
je 0x14001ca22
movzx eax, dil
cmp eax, 2
je 0x14001ca41
mov dil, 1
jmp 0x14001ca41
mov rax, qword [rsi]
test rax, rax
je 0x14001ca38
lock dec qword [rax]
jne 0x14001ca38
mov rcx, rsi
call sym.alloc::sync::Arc_T_A_::drop_slow::h9e430b5db729efc7
mov qword [rsi], 0
xor edi, edi
mov eax, edi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rax, str.called_after_complete
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 1
lea rax, str.there_is_no_such_thing_as_a_release_load
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
lea rdx, str._Users_joakim_.cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.34.0_src_sync_oneshot.rs
lea rcx, [rsp + 0x28]
call dbg.panic_fmt
ud2