joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400111f4
Capabilities:
Terminate process

Disassembly:
jmp 0x140014ff0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011271
Capabilities:
Parse pe header

Disassembly:
jmp 0x140012d00
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140012d20
xor al, al
jmp 0x140012da1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140012d33
xor al, al
jmp 0x140012da1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140012d5d
xor al, al
jmp 0x140012da1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140012d71
xor al, al
jmp 0x140012da1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140012d83
xor al, al
jmp 0x140012da1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140012d9f
xor al, al
jmp 0x140012da1
mov al, 1
add rsp, 0x38
ret
Function at 0x140047a8c
Capabilities:
Get memory capacity

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0xa0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1401620b0]
xor rax, rsp
mov qword [rsp + 0x90], rax
call fcn.140050c30
mov rdi, rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rax
xor r15d, r15d
test rax, rax
jne 0x140047add
jmp 0x140047c32
mov rax, qword [rax + 0x17]
cmp qword [rdi + 0xf], rax
jne 0x140047aef
mov rcx, rdi
jmp 0x140047c2d
mov ecx, 0x58
call fcn.140097464
mov rbx, rax
mov qword [rsp + 0x38], rax
lea rsi, [rax + 8]
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r15
mov qword [rsi + 0x10], r15
mov eax, 7
mov qword [rsi + 0x18], rax
mov word [rsi], r15w
mov qword [rbx + 0x40], r15
mov qword [rbx + 0x48], r15
mov qword [rbx + 0x40], r15
mov qword [rbx + 0x48], rax
mov word [rbx + 0x30], r15w
mov qword [rsp + 0x40], rbx
mov dword [rbx + 0x28], r15d
mov qword [rbx], r15
mov rax, qword [rdi + 0x17]
sub rax, qword [rdi + 0xf]
sar rax, 3
mov dword [rbx + 0x50], eax
xor r8d, r8d
lea rdx, [0x14011dd90]
mov rcx, rsi
call fcn.140005dd4
mov r14, r15
mov rcx, qword [rdi + 0xf]
mov rax, qword [rdi + 0x17]
sub rax, rcx
sar rax, 3
test rax, rax
je 0x140047be8
mov rcx, qword [rcx + r14*8]
cmp word [rcx + 0xc], r15w
je 0x140047bd1
movzx eax, word [rcx + 0xc]
add dword [rbx], eax
movzx eax, word [rcx + 0x15]
cmp dword [rbx + 0x28], eax
jae 0x140047b94
mov dword [rbx + 0x28], eax
cmp qword [rsi + 0x10], r15
jne 0x140047bd1
cmp byte [rcx + 0x12], 0x1f
jae 0x140047bbf
movzx eax, byte [rcx + 0x12]
lea rdx, [0x140123a10]
mov rdx, qword [rdx + rax*8]
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r15w
jne 0x140047bb3
jmp 0x140047bc9
xor r8d, r8d
lea rdx, [0x14011dd90]
mov rcx, rsi
call fcn.140005dd4
inc r14
mov rcx, qword [rdi + 0xf]
mov rax, qword [rdi + 0x17]
sub rax, rcx
sar rax, 3
cmp r14, rax
jb 0x140047b77
mov esi, 0x40
mov r8d, esi
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1400b6460
mov dword [rsp + 0x50], esi
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x140047c1b
mov rax, qword [rsp + 0x58]
shr rax, 0x14
mov dword [rbx + 4], eax
mov rcx, rdi
call fcn.140048668
mov rax, rbx
jmp 0x140047c34
call fcn.140048668
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140097440
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140058460
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x178]
sub rsp, 0x260
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r14, r9
mov r15, r8
mov rdi, rdx
mov esi, 1
lea rdx, [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebx, eax
test eax, eax
je 0x14005864f
mov rdx, rbx
lea r8, [rbp + 0x180]
lea rcx, [rsp + 0x20]
call fcn.14003f27c
nop
mov r9, qword [rsp + 0x20]
mov r8d, ebx
xor edx, edx
mov rcx, rdi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
jne 0x140058542
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.14008d174
mov r9d, esi
mov r8, qword [rax]
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.14000499c
nop
lea rbx, [rax + 0x10]
lea rdx, str.GetBasicFileVersion::GetFileVersionInfo_failedError_code_
mov rcx, rbx
call fcn.1400098d0
mov edx, edi
mov rcx, rbx
call fcn.14003fde0
nop
lea rcx, [rbp - 8]
call fcn.140004938
nop
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140002658
nop
jmp 0x1400585fd
lea r9, [rsp + 0x3c]
lea r8, [rsp + 0x40]
lea rdx, [0x14011b1e8]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140058595
mov rdx, qword [rsp + 0x40]
movzx eax, word [rdx + 0xa]
mov word [r15], ax
movzx eax, word [rdx + 8]
mov word [r14], ax
movzx ecx, word [rdx + 0xe]
mov rax, qword [rbp + 0x1a0]
mov word [rax], cx
movzx ecx, word [rdx + 0xc]
mov rax, qword [rbp + 0x1a8]
mov word [rax], cx
jmp 0x140058600
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.14008d174
mov r9d, esi
mov r8, qword [rax]
mov edx, 2
lea rcx, [rbp + 0x58]
call fcn.14000499c
nop
lea rbx, [rax + 0x10]
lea rdx, str.GetBasicFileVersion::VerQueryValue_failedError_code_
mov rcx, rbx
call fcn.1400098d0
mov edx, edi
mov rcx, rbx
call fcn.14003fde0
nop
lea rcx, [rbp + 0x100]
call fcn.140004938
nop
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0x100], rax
lea rcx, [rbp + 0x100]
call fcn.140002658
nop
xor sil, sil
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14005864c
mov rdx, qword [rsp + 0x30]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140058638
lfence
add rdx, 0x27
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005866c
call fcn.1400974a0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
and qword [rsp + 0x30], 0
mov al, sil
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.1400bd1c0
int3
Function at 0x14006b6d4
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x2f8]
sub rsp, 0x3e0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1401620b0]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
and dword [rsp + 0x34], 0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xc0]
call fcn.1400b6460
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x24]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
js 0x14006b806
lea rdx, [rbp + 0xc0]
lea rcx, [rbp + 0xa0]
call fcn.14008ef28
mov rbx, rax
lea rdx, [0x14012bb98]
lea rcx, [rbp + 0x60]
call fcn.14008ef28
nop
lea rdx, [rbp + 0x60]
mov rcx, rbx
call fcn.14008effc
mov rbx, rax
mov rdx, rsi
lea rcx, [rbp + 0x80]
call fcn.14008eef0
nop
lea rdx, [rbp + 0x80]
mov rcx, rbx
call fcn.14008effc
mov rdx, rax
mov rcx, rdi
call fcn.140004d88
mov dword [rsp + 0x34], 1
lea rcx, [rbp + 0x80]
call fcn.140002e10
nop
lea rcx, [rbp + 0x60]
call fcn.140002e10
nop
lea rcx, [rbp + 0xa0]
call fcn.140002e10
mov rax, rdi
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.140097440
mov rbx, qword [rsp + 0x410]
add rsp, 0x3e0
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rsp + 0x70]
call fcn.14003a6a8
nop
mov rcx, rax
call fcn.14006ebe4
lea rdx, [fcn.140010ab0]
mov rcx, rax
call fcn.14003ae58
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.140065264
lea rdx, [0x140010aa0]
mov rcx, rax
call fcn.14003ae58
lea rdx, str._at__
mov rcx, rax
call fcn.14003ae84
mov rcx, rax
call fcn.14006ec04
lea rdx, [0x14011b160]
mov rcx, rax
call fcn.14003ae84
mov dword [rsp + 0x30], 0x221
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.14003aebc
lea rdx, [0x14011b164]
mov rcx, rax
call fcn.14003ae84
lea rdx, [rbp + 0xa0]
mov rcx, rax
call fcn.14003a660
nop
call fcn.140001cd0
mov r8, rax
mov edx, ebx
lea rcx, [rbp + 0x80]
call fcn.1400014d4
movups xmm0, xmmword [rax]
movdqu xmmword [rbp + 0x60], xmm0
lea r8, [rbp + 0xa0]
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.14000192c
lea rdx, [0x1401600e0]
lea rcx, [rsp + 0x48]
call fcn.1400b6600
int3
Function at 0x14009167c
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x2a0]
sub rsp, 0x3a0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1401620b0]
xor rax, rsp
mov qword [rbp + 0x290], rax
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x78]
call fcn.140004d88
nop
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.14008eef0
nop
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x78]
call fcn.14008effc
nop
lea rcx, [rsp + 0x48]
call fcn.140002e10
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x78]
call fcn.14008f110
cmp qword [rax + 0x18], 8
jb 0x140091702
mov rax, qword [rax]
lea rdx, [rbp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
lea rcx, [rbp - 0x38]
call fcn.140005cfc
cmp rsi, 0xffffffffffffffff
jne 0x140091747
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
add eax, 0xfffffffe
cmp eax, 1
ja 0x1400918b4
xor ebx, ebx
mov qword [rdi], rbx
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], rbx
jmp 0x14009188b
mov qword [rsp + 0x38], rsi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
xor ebx, ebx
mov qword [rsp + 0x30], rbx
lea rdx, [0x14011d904]
lea rcx, [rbp + 0x6c]
call fcn.1400bf288
test eax, eax
je 0x140091834
lea rdx, [0x140100828]
lea rcx, [rbp + 0x6c]
call fcn.1400bf288
test eax, eax
je 0x140091834
mov rdx, r14
lea rcx, [rsp + 0x48]
call fcn.140004d88
nop
mov qword [rsp + 0x78], rbx
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], bx
lea rax, [rbp + 0x6c]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x1400917b4
lea rdx, [rbp + 0x6c]
lea rcx, [rsp + 0x68]
call fcn.140005dd4
nop
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x58]
call fcn.14008eef0
nop
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x48]
call fcn.14008effc
nop
lea rcx, [rbp - 0x58]
call fcn.140002e10
nop
lea rcx, [rsp + 0x68]
call fcn.140005cfc
lea r8, [rbp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x10]
call fcn.140091a70
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400915b4
nop
lea rcx, [rbp - 8]
call fcn.140002e10
nop
lea rcx, [rsp + 0x48]
call fcn.140002e10
lea rdx, [rbp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14009175c
mov rax, qword [rsp + 0x20]
mov qword [rdi], rax
mov rax, qword [rsp + 0x28]
mov qword [rdi + 8], rax
mov rax, qword [rsp + 0x30]
mov qword [rdi + 0x10], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x20]
call fcn.140065088
nop
test rsi, rsi
je 0x14009188b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rcx, [rbp - 0x78]
call fcn.140002e10
mov rax, rdi
mov rcx, qword [rbp + 0x290]
xor rcx, rsp
call fcn.140097440
add rsp, 0x3a0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
movzx ecx, dx
or ecx, 0x80070000
test edx, edx
cmovle ecx, edx
mov r8d, 0x22
lea rdx, str.C:dvsp4_build_sw_relgfclient_rel_03_27_backendcommonupdtlib_src_filesystem.cpp
call fcn.14000b32c
int3
Function at 0x140091b10
Capabilities:
Delete directory
Delete file

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 0x11], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1401620b0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rcx
xor r14d, r14d
cmp dword [rcx], r14d
setne cl
lea r9d, [r14 + 0x3e]
lea r8, str.C:dvsp4_build_sw_relgfclient_rel_03_27_backendcommonupdtlib_src_filesystem_object.cpp
lea rdx, str.Incorrect_state
call fcn.14008b8b8
mov ecx, dword [rdi]
sub ecx, 1
je 0x140091c3e
cmp ecx, 1
jne 0x140091c08
movdqa xmm0, xmmword [0x14012d4c0]
movdqu xmmword [rbp + 7], xmm0
mov word [rbp - 9], r14w
mov r8d, ecx
lea rdx, [0x14012b3d0]
lea rcx, [rbp - 9]
call fcn.140005dd4
nop
lea r8, [rbp - 9]
lea rdx, [rdi + 8]
lea rcx, [rbp - 0x29]
call fcn.14009167c
nop
lea rcx, [rbp - 9]
call fcn.140005cfc
mov rbx, qword [rbp - 0x29]
jmp 0x140091bca
mov rcx, rbx
call fcn.140091b10
add rbx, 0x50
cmp rbx, qword [rbp - 0x21]
jne 0x140091bbe
lea rdx, [rbp + 0x17]
lea rcx, [rdi + 8]
call fcn.14008f110
cmp qword [rax + 0x18], 8
jb 0x140091be7
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, eax
lea rcx, [rbp + 0x17]
call fcn.140005cfc
test ebx, ebx
je 0x140091c6f
lea rcx, [rbp - 0x29]
call fcn.140065088
mov dword [rdi], r14d
lea rcx, [rdi + 0x28]
xor edx, edx
lea r8d, [rdx + 0x24]
call fcn.1400b6460
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140097440
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
lea rcx, [rdi + 8]
lea rdx, [rbp + 0x17]
call fcn.14008f110
cmp qword [rax + 0x18], 8
jb 0x140091c55
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
lea rcx, [rbp + 0x17]
call fcn.140005cfc
test ebx, ebx
je 0x140091c97
jmp 0x140091c08
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov r8d, 0x54
lea rdx, str.C:dvsp4_build_sw_relgfclient_rel_03_27_backendcommonupdtlib_src_filesystem_object.cpp
call fcn.14000b32c
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea r8d, [rbx + 0x46]
lea rdx, str.C:dvsp4_build_sw_relgfclient_rel_03_27_backendcommonupdtlib_src_filesystem_object.cpp
call fcn.14000b32c
int3

Function at 0x1400933d8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x1400933e6
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400933f5
xor al, al
jmp 0x1400933fc
shr eax, 4
not al
and al, 1
add rsp, 0x28
ret
Function at 0x14009b0cc
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14009b0df
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.14009b6f8
lea rdx, [0x14015f950]
lea rcx, [rsp + 0x20]
call fcn.1400b6600
int3

Function at 0x1400a5b1c
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x140167ca0]
xor edx, edx
jmp fcn.14009b0cc

Function at 0x1400a64ec
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x140167ca0]
jmp fcn.14009b0cc

Function at 0x1400b2440
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x1400b2500]
mov r9, qword [r9 + 8]
jmp fcn.1400a3484

Function at 0x1400b24d4
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x1400b2510]
mov r9, qword [r9 + 8]
jmp fcn.1400a3484
Function at 0x1400e3090
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rax, qword [0x140168e60]
xor esi, esi
mov rbx, r8
mov r14, rdx
mov ebp, ecx
test rax, rax
jne 0x1400e30d9
xor edx, edx
lea rcx, str.Setupapi.dll
call fcn.1400e50b0
mov qword [0x140168e60], rax
test rax, rax
je 0x1400e31b6
cmp qword [0x140168e68], rsi
jne 0x1400e3109
lea rdx, [0x140115b00]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140168e68], rax
test rax, rax
je 0x1400e31b6
mov rax, qword [0x140168e60]
cmp qword [0x140168e70], rsi
jne 0x1400e3139
lea rdx, [0x140115b18]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140168e70], rax
test rax, rax
je 0x1400e31b6
mov rax, qword [0x140168e60]
cmp qword [0x140168e80], rsi
jne 0x1400e3165
lea rdx, [0x1401159d0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140168e80], rax
test rax, rax
je 0x1400e31b6
mov rax, qword [0x140168e60]
cmp qword [0x140168e78], rsi
jne 0x1400e3191
lea rdx, [0x140115b30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140168e78], rax
test rax, rax
je 0x1400e31b6
mov rax, qword [0x140168e60]
cmp qword [0x140168bd8], rsi
jne 0x1400e31bd
lea rdx, [0x1401159f8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140168bd8], rax
test rax, rax
jne 0x1400e31bd
xor eax, eax
jmp 0x1400e325d
mov r9d, 6
mov qword [rsp + 0x30], rdi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [0x140168e68]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400e3256
xor eax, eax
mov r8, rbx
mov qword [rbx], rax
xor edx, edx
mov qword [rbx + 8], rax
mov rcx, rdi
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov dword [rbx], 0x20
call qword [0x140168e70]
test eax, eax
je 0x1400e324d
nop word [rax + rax]
mov r8, rbx
mov rdx, rdi
mov ecx, ebp
call fcn.1400e3950
cmp eax, 1
je 0x1400e3273
xor eax, eax
inc esi
mov qword [rbx], rax
mov r8, rbx
mov qword [rbx + 8], rax
mov edx, esi
mov qword [rbx + 0x10], rax
mov rcx, rdi
mov qword [rbx + 0x18], rax
mov dword [rbx], 0x20
call qword [0x140168e70]
test eax, eax
jne 0x1400e3210
mov rcx, rdi
call qword [0x140168bd8]
xor eax, eax
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [r14], rdi
mov eax, 1
jmp 0x1400e3258
Function at 0x1400ebf28
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x1400ebf36
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400ebf48
shr eax, 4
and al, 1
jmp 0x1400ebf4a
xor al, al
add rsp, 0x28
ret

Function at 0x1400ebf50
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x1401620b0]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdx, qword [rcx + 0x10]
xor ebx, ebx
test rdx, rdx
jne 0x1400ebf8e
xor al, al
jmp 0x1400ec0fb
mov dword [rbp - 0x5c], 0x5c
mov eax, dword [0x140115c28]
mov dword [rbp - 0x10], eax
movzx eax, word [0x140115c2c]
mov word [rbp - 0xc], ax
mov rax, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400ebfb6
mov rax, qword [rcx]
lea r8, [rax + rdx*2]
jb 0x1400ebfbf
mov rcx, qword [rcx]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rbx
mov r9b, byte [rbp - 0x60]
mov rdx, rcx
lea rcx, [rbp - 0x50]
call fcn.1400ebc54
nop
mov word [rbp - 0x60], bx
mov rdx, qword [rbp - 0x48]
cmp qword [rbp - 0x40], rdx
je 0x1400ebff7
mov word [rdx], bx
add rdx, 2
mov qword [rbp - 0x48], rdx
jmp 0x1400ec004
lea r8, [rbp - 0x60]
lea rcx, [rbp - 0x50]
call fcn.1400ebb50
mov qword [rbp - 0x58], rbx
lea r8, [rbp - 0x58]
lea rdx, [rbp - 0x10]
mov rcx, qword [rbp - 0x50]
call fcn.1400ee3a0
mov rdi, rax
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], bx
xor r8d, r8d
lea rdx, [0x14011dd90]
lea rcx, [rbp - 0x30]
call fcn.140005dd4
nop
test rdi, rdi
je 0x1400ec0e4
test rdi, rdi
je 0x1400ec068
or r8, 0xffffffffffffffff
inc r8
cmp word [rdi + r8*2], bx
jne 0x1400ec052
mov rdx, rdi
lea rcx, [rbp - 0x30]
call fcn.140004c90
cmp qword [rbp - 0x20], rbx
jbe 0x1400ec0aa
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea rcx, [rbp - 0x30]
cmp eax, 0xffffffff
je 0x1400ec094
call fcn.1400ebf28
test al, al
jmp 0x1400ec0a8
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1400ec0e6
lea rax, [rbp - 0x5c]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x1400ec0b2
lea rdx, [rbp - 0x5c]
lea rcx, [rbp - 0x30]
call fcn.140004c90
lea r8, [rbp - 0x58]
lea rdx, [rbp - 0x10]
xor ecx, ecx
call fcn.1400ee3a0
mov rdi, rax
test rax, rax
jne 0x1400ec049
mov bl, 1
lea rcx, [rbp - 0x30]
call fcn.140005cfc
nop
lea rcx, [rbp - 0x50]
call fcn.140044fc8
mov al, bl
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140097440
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x1400ec11c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x407f20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x407fb0
cmp r11, r10
ja 0x408026
cmp r10, rdx
ja 0x40803a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x407fb2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x407f90
jmp 0x408014
ja 0x407fba
mov r11, r10
cmp rax, r8
jne 0x407f54
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x407ff0
mov rdi, r8
sub ecx, edx
jns 0x40800b
jmp 0x408016
cmp r8, rsi
je 0x40804b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x408016
xor al, 1
cmp rdi, rsi
jne 0x407fd0
jmp 0x408016
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.00405f20
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.004054c0
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_a28077b28a02b92985b3a3faecf92813155f1ea1library_alloc_srccollections_btree_navigate.rs
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.00405860
ud2

Function at 0x40e870
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.00405050
cmp rax, rcx
je 0x40e895
cmp rdx, 4
jae 0x40e898
xor eax, eax
xor r8d, r8d
jmp 0x40e930
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x0044a810]
movdqa xmm3, xmmword [0x0044a820]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x40e8c0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x40e947
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x40e930
ret