joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400210b0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov rax, qword [0x140065050]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0x20], 0
call fcn.140021080
test eax, eax
jne 0x140021114
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x30]
call fcn.140007370
lea rcx, [rsp + 0x30]
call fcn.14000c660
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x30]
call fcn.14000c630
jmp 0x140021126
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x14002115a
mov r8d, 0x18
lea rdx, str...CommonLibStdHelp.cpp
lea rcx, [0x140051f70]
call fcn.140020ca0
mov rdx, qword [rsp + 0xe0]
lea rcx, str.Cant_find_the_FilePath:_s_n
call fcn.140020ac0
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400317b0
add rsp, 0xd8
ret

Function at 0x140021610
Capabilities:
Set file attributes

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov rax, qword [0x140065050]
xor rax, rsp
mov qword [rsp + 0xc8], rax
call fcn.140021080
test eax, eax
jne 0x140021681
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x30]
call fcn.140007370
lea rcx, [rsp + 0x30]
call fcn.14000c660
mov edx, dword [rsp + 0xe8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [rsp + 0xc0], eax
lea rcx, [rsp + 0x30]
call fcn.14000c630
mov eax, dword [rsp + 0xc0]
jmp 0x140021696
mov edx, dword [rsp + 0xe8]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1400317b0
add rsp, 0xd8
ret

Function at 0x1400216c0
Capabilities:
Copy file

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x170
mov qword [rsp + 0x158], 0xfffffffffffffffe
mov rax, qword [0x140065050]
xor rax, rsp
mov qword [rsp + 0x160], rax
call fcn.140021080
test eax, eax
jne 0x14002177c
mov rdx, qword [rsp + 0x180]
lea rcx, [rsp + 0xc0]
call fcn.140007370
nop
mov rdx, qword [rsp + 0x188]
lea rcx, [rsp + 0x30]
call fcn.140007370
lea rcx, [rsp + 0x30]
call fcn.14000c660
mov rbx, rax
lea rcx, [rsp + 0xc0]
call fcn.14000c660
mov r8d, dword [rsp + 0x190]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [rsp + 0x150], eax
lea rcx, [rsp + 0x30]
call fcn.14000c630
nop
lea rcx, [rsp + 0xc0]
call fcn.14000c630
mov eax, dword [rsp + 0x150]
jmp 0x14002179a
mov r8d, dword [rsp + 0x190]
mov rdx, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400317b0
add rsp, 0x170
pop rbx
ret
Function at 0x140021a90
Capabilities:
Get geographical location

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
mov rax, qword [0x140065050]
xor rax, rbp
mov qword [rbp + 0x150], rax
call fcn.140021080
test eax, eax
jne 0x140021bbb
movzx eax, byte [0x140051f1b]
mov byte [rbp + 0x30], al
lea rdi, [rbp + 0x31]
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
mov r9d, dword [rbp + 0x198]
lea r8, [rbp + 0x30]
mov edx, dword [rbp + 0x188]
mov ecx, dword [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [rbp + 0x14], eax
call fcn.140006e80
mov dword [rbp + 0x10], eax
lea rax, [rbp + 0x30]
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x18], 0
jne 0x140021b29
mov qword [rbp + 0x140], 0
jmp 0x140021ba3
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [rbp], eax
cmp dword [rbp], 0x3fffffff
jle 0x140021b4f
mov qword [rbp + 0x148], 0
jmp 0x140021b95
movsxd rcx, dword [rbp]
shl rcx, 1
mov rax, rcx
add rax, 0xf
cmp rax, rcx
ja 0x140021b6c
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.140047d40
sub rsp, rax
lea rcx, [rsp + 0x20]
mov r9d, dword [rbp + 0x10]
mov r8d, dword [rbp]
mov rdx, qword [rbp + 0x18]
call fcn.140006e90
mov qword [rbp + 0x148], rax
mov rax, qword [rbp + 0x148]
mov qword [rbp + 0x140], rax
mov rdx, qword [rbp + 0x140]
mov rcx, qword [rbp + 0x190]
call fcn.140022310
mov eax, dword [rbp + 0x14]
jmp 0x140021bdb
mov r9d, dword [rbp + 0x198]
mov r8, qword [rbp + 0x190]
mov edx, dword [rbp + 0x188]
mov ecx, dword [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rcx, qword [rbp + 0x150]
xor rcx, rbp
call fcn.1400317b0
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret

Function at 0x140021d90
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov rax, qword [0x140065050]
xor rax, rsp
mov qword [rsp + 0xc8], rax
call fcn.140021080
test eax, eax
jne 0x140021e10
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0x30]
call fcn.140007370
lea rcx, [rsp + 0x30]
call fcn.14000c660
mov r8, qword [rsp + 0xf0]
mov rdx, rax
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov dword [rsp + 0xc0], eax
lea rcx, [rsp + 0x30]
call fcn.14000c630
mov eax, dword [rsp + 0xc0]
jmp 0x140021e2e
mov r8, qword [rsp + 0xf0]
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1400317b0
add rsp, 0xd8
ret
Function at 0x140029528
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.140027698
mov rsi, rax
test rax, rax
je 0x1400295a4
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x14002959f
cmp dword [rbx], 0x40
jb 0x14002959f
mov rcx, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
mov qword [rbx + 8], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x14002959f
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x1400295a8
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140033f8c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.14003e1bc
nop
cmp dword [0x14006af08], 1
je 0x140033f38
mov dword [0x14006af04], 1
mov byte [0x14006af00], r12b
test ebx, ebx
jne 0x140033f24
mov rcx, qword [0x14006d110]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140033f11
mov rcx, qword [0x14006d108]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x140033eb0
call fcn.1400364f4
cmp qword [rdi], rax
jne 0x140033eb0
jmp 0x140033e96
cmp rdi, rsi
jb 0x140033f11
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.1400364f4
mov qword [rdi], rax
call rbx
mov rcx, qword [0x14006d110]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x14006d108]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x140033eef
cmp r13, rax
je 0x140033f0f
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x140033e96
lea rdx, [0x14004ca60]
lea rcx, [0x14004ca48]
call fcn.140033ce0
lea rdx, [0x14004ca70]
lea rcx, [0x14004ca68]
call fcn.140033ce0
nop
test r12d, r12d
je 0x140033f47
mov ecx, 8
call fcn.14003e0bc
test r12d, r12d
jne 0x140033f72
mov dword [0x14006af08], 1
lea ecx, [r12 + 8]
call fcn.14003e0bc
mov ecx, r15d
call fcn.140033c74
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x140033e00

Function at 0x140033f98
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x140033e00
Function at 0x1400349f4
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140034a0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140034a0e
xor eax, eax
test eax, eax
je 0x140034a1e
mov ecx, eax
call fcn.1400352bc
or eax, 0xffffffff
jmp 0x140034a20
xor eax, eax
add rsp, 0x28
ret

Function at 0x140034a28
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x140034a40
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140034a42
xor eax, eax
test eax, eax
je 0x140034a52
mov ecx, eax
call fcn.1400352bc
or eax, 0xffffffff
jmp 0x140034a54
xor eax, eax
add rsp, 0x28
ret

Function at 0x140034a5c
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x140034a72
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140034a74
xor eax, eax
test eax, eax
je 0x140034a84
mov ecx, eax
call fcn.1400352bc
or eax, 0xffffffff
jmp 0x140034a86
xor eax, eax
add rsp, 0x28
ret

Function at 0x140034a8c
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x140034aa2
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140034aa4
xor eax, eax
test eax, eax
je 0x140034ab4
mov ecx, eax
call fcn.1400352bc
or eax, 0xffffffff
jmp 0x140034ab6
xor eax, eax
add rsp, 0x28
ret
Function at 0x140037887
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140065050]
jne 0x1400317ca
rol rcx, 0x10
test cx, 0xffff
jne 0x1400317c6
repz ret
ror rcx, 0x10
jmp 0x1400377e0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14006b500]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x14006b5f8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140037865
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14006b500]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140037887
mov rax, qword [rsp + 0x88]
mov qword [0x14006b5f8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14006b598], rax
mov rax, qword [0x14006b5f8]
mov qword [0x14006b470], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14006b580], rax
mov dword [0x14006b460], 0xc0000409
mov dword [0x14006b464], 1
mov rax, qword [0x140065050]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140065058]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14006b4f8], eax
mov ecx, 1
call fcn.14003bbd0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140055a80]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14006b4f8], 0
jne 0x14003790e
mov ecx, 1
call fcn.14003bbd0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14003f4cc
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.1400364f4
xor ebx, ebx
mov rdi, rax
cmp qword [0x14006bd90], rbx
jne 0x14003f5d2
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14003f6a7
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003f6a7
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14006bd90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140056020]
mov rcx, rsi
mov qword [0x14006bd98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x14006bda0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x14006bdb0], rax
test rax, rax
je 0x14003f5c9
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14006bda8], rax
jmp 0x14003f5d9
mov rax, qword [0x14006bda8]
jmp 0x14003f5e0
mov rax, qword [0x14006bda8]
mov r11, qword [0x14006bdb0]
cmp rax, rdi
je 0x14003f648
cmp r11, rdi
je 0x14003f648
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x14006bdb0]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14003f648
test rax, rax
je 0x14003f648
call rsi
test rax, rax
je 0x14003f642
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14003f642
test byte [rsp + 0x38], 1
jne 0x14003f648
bts ebp, 0x15
jmp 0x14003f686
mov rcx, qword [0x14006bd98]
cmp rcx, rdi
je 0x14003f686
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14003f686
call rax
mov rbx, rax
test rax, rax
je 0x14003f686
mov rcx, qword [0x14006bda0]
cmp rcx, rdi
je 0x14003f686
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14003f686
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14006bd90]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14003f6a7
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14003f6a9
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140004740
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, r9
call fcn.140003ff0
movzx ecx, byte [rsi + 0xf0]
test rcx, rcx
je 0x140004931
shl ecx, 2
xor eax, eax
nop dword [rax]
cmp rcx, 0x3b
ja 0x14000493e
mov edx, dword [rsi + rax*4]
mov r8d, dword [rsi + rcx*4]
mov dword [rsi + rax*4], r8d
mov dword [rsi + rcx*4], edx
mov edx, dword [rsi + rax*4 + 4]
mov r8d, dword [rsi + rcx*4 + 4]
mov dword [rsi + rax*4 + 4], r8d
mov dword [rsi + rcx*4 + 4], edx
mov edx, dword [rsi + rax*4 + 8]
mov r8d, dword [rsi + rcx*4 + 8]
mov dword [rsi + rax*4 + 8], r8d
mov dword [rsi + rcx*4 + 8], edx
mov edx, dword [rsi + rax*4 + 0xc]
mov r8d, dword [rsi + rcx*4 + 0xc]
mov dword [rsi + rax*4 + 0xc], r8d
mov dword [rsi + rcx*4 + 0xc], edx
add rax, 4
add rcx, 0xfffffffffffffffc
cmp rax, rcx
jb 0x140004770
movzx eax, byte [rsi + 0xf0]
cmp al, 2
jb 0x140004931
dec al
mov ecx, 7
lea rdx, [0x1401dc070]
lea r8, [0x1401dc538]
lea r9, [0x1401dc950]
lea r10, [0x1401dcd50]
lea r11, [0x1401dd150]
nop word cs:[rax + rax]
cmp rcx, 0x3f
je 0x14000494f
mov ebx, dword [rsi + rcx*4 - 0xc]
mov edi, ebx
mov r14d, ebx
shr r14d, 0x18
movzx r14d, byte [rdx + r14*4]
shr edi, 0xe
and edi, 0x3fc
movzx edi, byte [rdi + rdx]
mov edi, dword [r9 + rdi*4]
xor edi, dword [r8 + r14*4]
movzx ebp, bh
movzx r14d, byte [rdx + rbp*4]
xor edi, dword [r10 + r14*4]
movzx ebx, bl
movzx ebx, byte [rdx + rbx*4]
xor edi, dword [r11 + rbx*4]
mov ebx, dword [rsi + rcx*4 - 8]
mov r14d, ebx
movzx ebp, bh
mov r15d, ebx
shr r15d, 0x18
movzx r15d, byte [rdx + r15*4]
shr r14d, 0xe
and r14d, 0x3fc
movzx r14d, byte [r14 + rdx]
mov r14d, dword [r9 + r14*4]
xor r14d, dword [r8 + r15*4]
movzx ebx, bl
movzx r15d, byte [rdx + rbp*4]
xor r14d, dword [r10 + r15*4]
mov dword [rsi + rcx*4 - 0xc], edi
movzx edi, byte [rdx + rbx*4]
xor r14d, dword [r11 + rdi*4]
mov dword [rsi + rcx*4 - 8], r14d
mov ebx, dword [rsi + rcx*4 - 4]
mov edi, ebx
mov r14d, ebx
shr r14d, 0x18
movzx r14d, byte [rdx + r14*4]
shr edi, 0xe
and edi, 0x3fc
movzx edi, byte [rdi + rdx]
mov edi, dword [r9 + rdi*4]
xor edi, dword [r8 + r14*4]
movzx ebp, bh
movzx r14d, byte [rdx + rbp*4]
xor edi, dword [r10 + r14*4]
movzx ebx, bl
movzx ebx, byte [rdx + rbx*4]
xor edi, dword [r11 + rbx*4]
mov dword [rsi + rcx*4 - 4], edi
mov ebx, dword [rsi + rcx*4]
mov edi, ebx
mov r14d, ebx
shr r14d, 0x18
movzx r14d, byte [rdx + r14*4]
shr edi, 0xe
and edi, 0x3fc
movzx edi, byte [rdi + rdx]
mov edi, dword [r9 + rdi*4]
xor edi, dword [r8 + r14*4]
movzx ebp, bh
movzx r14d, byte [rdx + rbp*4]
xor edi, dword [r10 + r14*4]
movzx ebx, bl
movzx ebx, byte [rdx + rbx*4]
xor edi, dword [r11 + rbx*4]
mov dword [rsi + rcx*4], edi
add rcx, 4
dec al
jne 0x140004810
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea r8, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001flibaes_0.6.5_srclib.rs
mov edx, 0x3c
call fcn.14002bcb4
lea r8, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001flibaes_0.6.5_srclib.rs
xor ecx, ecx
xor edx, edx
call fcn.14002bcb4
int3
Function at 0x140004b40
Capabilities:
Parse pe header

Disassembly:
push rsi
push rdi
mov r8d, pe_nt_image_headers64
mov eax, 1
cmp rdx, 0x40
jb 0x140004c3a
test cl, 3
je 0x140004b67
mov r8d, 0x400
jmp 0x140004c3a
cmp word [rcx], 0x5a4d
jne 0x140004c34
mov r9d, dword [rcx + 0x3c]
test r9b, 3
jne 0x140004b5c
cmp r9d, 0x1000000
jbe 0x140004b90
mov r8d, 0x700
jmp 0x140004c3a
lea r11, [r9 + 0x88]
cmp r11, rdx
ja 0x140004c3a
cmp dword [rcx + r9], 0x4550
jne 0x140004c34
movzx esi, word [rcx + r9 + 0x18]
cmp esi, 0x20b
je 0x140004bc4
cmp esi, 0x10b
jne 0x140004c34
mov edi, dword [rcx + r9 + 0x54]
cmp rdi, rdx
ja 0x140004c3a
mov r10d, dword [rcx + r9 + 0x50]
cmp edi, r10d
ja 0x140004b85
movzx esi, si
cmp esi, 0x20b
jne 0x140004c40
mov esi, dword [rcx + r9 + 0x84]
cmp esi, 0x10
mov edi, 0x10
cmovb edi, esi
lea r11, [r11 + rdi*8]
cmp r11, rdx
ja 0x140004c3a
movzx r11d, word [rcx + r9 + 6]
cmp r11, 0x60
ja 0x140004b85
lea r11, [r11 + r11*4]
lea r11, [r9 + r11*8]
movzx ecx, word [rcx + r9 + 0x14]
add rcx, r11
add rcx, 0x18
cmp rcx, rdx
ja 0x140004c3a
shl r10, 0x20
xor eax, eax
mov r8, r10
jmp 0x140004c3a
mov r8d, 0x500
or rax, r8
pop rdi
pop rsi
ret
mov r8d, 0x600
jmp 0x140004c3a
Function at 0x1400077b0
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 + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x140007850
jmp 0x14000783f
jae 0x14000791e
cmp r8, 0x201
jae 0x140007850
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x1400078b6
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14000788e
mov qword [rsp + 0x20], 2
mov r9d, 2
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.14002afe0
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x1400078df
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14000798a
mov r8d, r13d
cmp r12, r8
jne 0x140007830
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400079be
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14000783f
jmp 0x140007850
cmp r14, r8
jb 0x1400079d8
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.140008b70
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x140007973
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140003640
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 + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x14000795e
jmp 0x140007973
lea rcx, str.internal_error:_entered_unreachable_code_rustc_705cfe0e966399e061d64dd3661bfbc57553ed87library_alloc_src_vecmod.rs
lea r8, str.std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.14002bc30
jmp 0x1400079ed
lea rax, str.std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.14002bf80
ud2
Function at 0x14000cb40
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [rbp + 0x70]
mov qword [rbp - 8], r9
lea rcx, [rbp]
mov qword [rbp], rax
movups xmm0, xmmword [0x1401df218]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xor r8d, r8d
test r9b, 1
cmove rcx, r8
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000cbd6
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0x103
je 0x14000cc03
test eax, eax
js 0x14000cbe2
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x14000cbf9
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb8
pop rsi
pop rbp
ret
mov dword [rbp + 0x28], 0
mov byte [rbp + 0x2c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x30]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x38]
call fcn.140008790
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.140006070
mov ecx, 7
int 0x29
ud2
Function at 0x14001cb04
Capabilities:
Parse pe header

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

Function at 0x140020280
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400202ef
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x1400202ef
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400202ef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400202ef
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400202ef
cmp dword [rcx + 0x84], 0xe
jbe 0x1400202ef
cmp dword [rcx + 0xf8], 0
je 0x1400202ef
mov ecx, ebx
call fcn.1400203a0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14002017c
nop
cmp dword [rbp + 0x20], 0
je 0x14002033d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140020348
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140020280

Function at 0x140020484
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140020280