joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001130
Capabilities:
Enumerate process modules
Find taskbar
Get process image filename

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r14
mov eax, 0x2280
call fcn.1400279c0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2270], rax
mov r14, rcx
xor edx, edx
lea rcx, str.Shell_TrayWnd
call qword [sym.imp.USER32.dll_FindWindowW]
xor ebx, ebx
lea rdx, [rsp + 0x30]
mov rcx, rax
mov dword [rsp + 0x30], ebx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea r8, [rsp + 0x34]
mov dword [r14], ebx
mov edx, 0x2000
mov qword [r14 + 4], 0xffffffffffffffff
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
mov ebp, dword [rsp + 0x34]
shr rbp, 2
test rbp, rbp
je 0x140001250
mov qword [rsp + 0x2298], rdi
mov qword [rsp + 0x2290], rsi
mov edi, dword [rsp + rbx*4 + 0x60]
cmp edi, dword [rsp + 0x30]
jne 0x140001238
mov r8d, edi
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x140001238
mov r8d, 0x104
lea rdx, [rsp + 0x2060]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
lea rax, [rsp + 0x40]
mov rcx, rsi
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcessTimes]
mov rax, qword [rsp + 0x38]
cmp eax, dword [r14 + 4]
jae 0x14000122f
mov dword [r14], edi
mov qword [r14 + 4], rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc rbx
cmp rbx, rbp
jl 0x1400011c2
mov rdi, qword [rsp + 0x2298]
mov rsi, qword [rsp + 0x2290]
mov rax, r14
mov rcx, qword [rsp + 0x2270]
xor rcx, rsp
call fcn.140009350
lea r11, [rsp + 0x2280]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x140001280
Capabilities:
Create restart manager session
Enumerate processes that use resource

Disassembly:
mov eax, 0x2a48
call fcn.1400279c0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2a30], rax
lea r8, [0x14003cde0]
xor edx, edx
lea rcx, [0x14003ba80]
call qword [sym.imp.RstrtMgr.DLL_RmStartSession]
test eax, eax
jne 0x14000134c
lea rcx, [rsp + 0x40]
call fcn.140001130
mov ecx, dword [0x14003ba80]
mov r9d, 1
xor r8d, r8d
xor edx, edx
movsd xmm0, qword [rax]
movsd qword [rsp + 0x60], xmm0
mov eax, dword [rax + 8]
mov dword [rsp + 0x68], eax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
mov ecx, dword [0x14003ba80]
lea rax, [rsp + 0x54]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], 0x10
lea rdx, [rsp + 0x58]
call qword [sym.imp.RstrtMgr.DLL_RmGetList]
cmp dword [rsp + 0x54], 0
jne 0x14000134c
mov ecx, dword [0x14003ba80]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.RstrtMgr.DLL_RmShutdown]
xor eax, eax
mov rcx, qword [rsp + 0x2a30]
xor rcx, rsp
call fcn.140009350
add rsp, 0x2a48
ret
Function at 0x140001660
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
sub rsp, 0x308
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edx, 0x105
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, [0x140033c60]
mov edx, 0x105
lea rcx, [rsp + 0xe0]
call fcn.140017cd0
xorps xmm0, xmm0
mov dword [rsp + 0x50], 0x68
lea rax, [rsp + 0xc0]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0xe0]
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x20], 1
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rsp + 0x88], xmm0
movups xmmword [rsp + 0x98], xmm0
movups xmmword [rsp + 0xa8], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
call qword [sym.imp.KERNEL32.dll_FreeConsole]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 1
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.140009350
add rsp, 0x308
ret
Function at 0x140001d90
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001e8c
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140001e8c
mov rcx, rbx
mov dword [rbx], 0x114
call rax
test eax, eax
jne 0x140001e8c
mov ebx, 0x5c
mov dword [rsp + 0x38], eax
mov edx, ebx
mov dword [rsp + 0x3c], 4
lea rcx, str.RegistryMachineSoftwareMicrosoftWindows_NTCurrentVersion
call fcn.14000d0d8
movzx edx, bx
lea rcx, [rax + 2]
call fcn.14000d0d8
movzx edx, bx
lea rcx, [rax + 2]
call fcn.14000d0d8
lea rcx, [rsp + 0x30]
mov r9d, 0x20019
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, 0xffffffff80000002
lea rdx, [rax + 2]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001e75
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rdx, [0x140035c60]
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140009350
add rsp, 0x50
pop rbx
ret
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140009350
add rsp, 0x50
pop rbx
ret
Function at 0x140004090
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push rbx
sub rsp, 0x450
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rdx
mov r8, rcx
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.140017c68
lea r8, [0x140033c20]
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.140017cd0
mov r8, rbx
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.140017cd0
lea r8, [rsp + 0x20]
mov edx, 0x104
lea rcx, [rsp + 0x230]
call fcn.140017c68
lea rcx, [rsp + 0x230]
call qword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea r8, str..prev
mov edx, 0x104
lea rcx, [rsp + 0x230]
call fcn.140017cd0
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea rcx, [rsp + 0x230]
mov ebx, eax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test ebx, ebx
jne 0x140004167
test eax, eax
jne 0x14000416b
mov eax, 1
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140009350
add rsp, 0x450
pop rbx
ret
test eax, eax
je 0x14000418c
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140004188
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400041b2
test ebx, ebx
je 0x140004149
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140004149
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x140004149
xor eax, eax
jmp 0x14000414e
Function at 0x140009d5c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140009da6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140009da6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140009da6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140009da6
cmp dword [rcx + 0x84], 0xe
jbe 0x140009da6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140009da8
xor al, al
add rsp, 0x28
ret
Function at 0x14000f9d4
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 0x14000fa43
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000fa43
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000fa43
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000fa43
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000fa43
cmp dword [rcx + 0x84], 0xe
jbe 0x14000fa43
cmp dword [rcx + 0xf8], 0
je 0x14000fa43
mov ecx, ebx
call fcn.14000faf4
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.14000f8d0
nop
cmp dword [rbp + 0x20], 0
je 0x14000fa91
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000fa9c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f9d4

Function at 0x14000fbd8
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 0x14000fa43
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000fa43
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000fa43
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000fa43
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000fa43
cmp dword [rcx + 0x84], 0xe
jbe 0x14000fa43
cmp dword [rcx + 0xf8], 0
je 0x14000fa43
mov ecx, ebx
call fcn.14000faf4
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.14000f8d0
nop
cmp dword [rbp + 0x20], 0
je 0x14000fa91
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000fa9c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f9d4
Function at 0x1400190e8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400279c0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001c360
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140019137
mov rax, rbp
jmp 0x14001923f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x3c770]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001f6c8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3c770]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001923b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001923b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001f6c8
test rax, rax
js 0x14001923b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001923b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001922d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001922d
cmp byte [rcx], 0xd
jne 0x140019213
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140019222
cmp byte [rcx + 1], 0xa
jne 0x140019222
inc rcx
jmp 0x140019222
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3b370]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400191f5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001923f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140009350
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001eee0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001eef6
mov al, 1
jmp 0x14001ef56
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001ef07
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001ef54
mov ecx, dword [rcx + 0x18]
nop
call fcn.140021b68
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001ef54
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001ef54
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001ef54
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001ef56
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001f774
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14003c770]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001f7cb
cmp word [rdx], r13w
jne 0x14001f7cb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001f7d0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001f8f5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001f916
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001f809
mov rdx, r9
mov word [rbx], cx
jmp 0x14001f830
cmp r9, r8
jae 0x14001f840
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001f7ea
jmp 0x14001f8f5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001f8ea
cmp dword [rsp + 0x80], esi
je 0x14001f8ea
lea r8, [0x14003c770]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001f8c2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001f892
mov word [rbx], r13w
jmp 0x14001f8f2
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001f89f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001f8f2
cmp word [rsp + 0x70], r13w
jne 0x14001f8cf
cmp rbx, r14
je 0x14001f88c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001f6d0
cmp word [rsp + 0x70], r13w
je 0x14001f8f5
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14003c770]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001f8ef
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001f8f5
Function at 0x140021620
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400216a7
mov rsi, rbx
cmp word [rax], bp
je 0x140021666
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140021650
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14002164c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001addc
mov rdi, rax
test rax, rax
je 0x140021694
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140028060
mov rbp, rdi
xor ecx, ecx
call fcn.14001ada0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140026a14
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001f6d0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001f6d0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140026b64
cmp rax, 0xffffffffffffffff
je 0x140026b64
xor edi, edi
test rbp, rbp
jle 0x140026b0f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001ad28
mov rbx, rax
test rax, rax
jne 0x140026a9c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140026b05
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a310
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001e9e4
cmp eax, 0xffffffff
je 0x140026ae5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140026aac
mov edx, r15d
mov ecx, r14d
call fcn.14001a310
jmp 0x140026b05
cmp byte [rsi + 0x38], dil
je 0x140026afc
cmp dword [rsi + 0x34], 5
jne 0x140026afc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140026b05
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001ada0
jmp 0x140026b78
jns 0x140026b78
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001f6d0
cmp rax, 0xffffffffffffffff
jne 0x140026b30
cmp byte [rsi + 0x30], dil
je 0x140026b78
mov edi, dword [rsi + 0x2c]
jmp 0x140026b78
mov ecx, r14d
call fcn.140021b68
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140026b78
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140026b78
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140026b71
mov eax, dword [rsi + 0x2c]
jmp 0x140026b76
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001f6d0
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140027950
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140027978
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140027978
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000c3b0
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 0x14000c440
cmp r11, r10
ja 0x14000c4ae
cmp r10, rdx
ja 0x14000c4c0
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14000c442
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14000c420
jmp 0x14000c49c
ja 0x14000c44a
mov r11, r10
cmp rax, r8
jne 0x14000c3e4
add rsi, rdi
lea rdx, [rdi + 1]
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
movzx r8d, byte [rdi]
test r8b, r8b
jns 0x14000c480
cmp rdx, rsi
je 0x14000c4cf
movzx r9d, byte [rdx]
inc rdx
and r8d, 0x7f
shl r8d, 8
or r8d, r9d
mov rdi, rdx
sub ecx, r8d
js 0x14000c49e
xor al, 1
xor edx, edx
cmp rdi, rsi
setne dl
add rdx, rdi
cmp rdi, rsi
jne 0x14000c460
jmp 0x14000c49e
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.C:Userslucak.rustup_toolchains_nightly_x86_64_pc_windows_msvclib_rustlib_src_rustlibrarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140036740
lea r8, str.C:Userslucak.rustup_toolchains_nightly_x86_64_pc_windows_msvclib_rustlib_src_rustlibrarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140036730
lea rcx, str.C:Userslucak.rustup_toolchains_nightly_x86_64_pc_windows_msvclib_rustlib_src_rustlibrarycore_srcunicodeprintable.rs
call fcn.140036320
int3
Function at 0x140013130
Capabilities:
Encode data using xor

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rdi, [0x14003fd6b]
lea rsi, [rsp + 0x40]
movabs rbx, 0xe988a017beefdc44
movabs r14, 0xfba44b1d4ccde492
nop dword [rax]
mov qword [rsp + 0x40], rdi
mov rcx, qword [rsp + 0x40]
mov dword [rsp + 0x40], 0xe9619909
mov edx, dword [rsp + 0x40]
call fcn.140012f00
mov rcx, qword [rax]
xor rcx, rbx
mov rax, qword [rax + 8]
xor rax, r14
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rax
xor ecx, ecx
mov rdx, rsi
call sub.user32.dll_FindWindowA
mov qword [rsp + 0x70], rax
test rax, rax
je 0x140013160
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
mov rdx, 0xffffffffffffffff
xor r8d, r8d
xor r9d, r9d
call sub.user32.dll_SetWindowPos
lea rax, [rsp + 0x70]
mov qword [rsp + 0x78], rax
lea rax, [fcn.14000a080]
mov qword [rsp + 0x80], rax
lea rax, str.Found_FakeLogonScreen_
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 2
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
lea rcx, [rsp + 0x40]
call fcn.140024490
lea rax, str.Set_FakeLogonScreen_to_topmost_n
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x50], 8
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
lea rcx, [rsp + 0x40]
call fcn.140024490
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140016b90
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.14000c4e0
cmp rax, rcx
je 0x140016bb5
cmp rdx, 4
jae 0x140016bb8
xor eax, eax
xor r8d, r8d
jmp 0x140016c50
xor eax, eax
ret
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140038500]
movdqa xmm3, xmmword [0x140038510]
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 0x140016be0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140016c67
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140016c50
ret
Function at 0x14001c0f0
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0xa0
mov rsi, rcx
movups xmm0, xmmword [0x14004f038]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14001c15c
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14001c190
test eax, eax
js 0x14001c170
mov rdx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0xa0
pop rsi
ret
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa0
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x80], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x88], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x70]
call fcn.14001c870
mov rcx, rax
call fcn.14001df80
mov ecx, 7
int 0x29
ud2