joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4020d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00408624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x402258
mov rax, qword [0x00408628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40211c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4021a5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x402100
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x40228d
mov rax, qword [0x00408628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00408628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x402270
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40219e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x402200
add dword [0x00408624], 1
cmp edi, 8
jae 0x4021d3
test dil, 4
jne 0x402244
test edi, edi
je 0x4021c8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40225f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x4021c8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x4021ec
jmp 0x4021c8
add rsi, qword [0x00408628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40219e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x4021c8
xor esi, esi
jmp 0x402127
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x4021c8
mov rax, qword [0x00408628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x4029e0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004088e0]
test rbx, rbx
je 0x402a34
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x402a2b
test rsi, rsi
je 0x402a2b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402a10
lea rcx, [0x00408900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402c70
Capabilities:
Parse pe header

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

Function at 0x402c90
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 0x402cd1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x402cc8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402cd3
add rax, 0x28
cmp rax, r9
jne 0x402cb4
xor eax, eax
ret

Function at 0x402d70
Capabilities:
Enumerate pe sections

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

Function at 0x402ee0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00405360]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x402f00
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402ef8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402f5d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402f54
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402f64
add rax, 0x28
cmp rax, r9
jne 0x402f40
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x402f80
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00405360]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x402fee
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402fee
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x402fee
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402fee
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x402fe5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x402ff5
add rcx, 0x28
cmp rcx, rax
jne 0x402fd0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x403008
jmp 0x402fee
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x403016
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x402fee
test r9d, r9d
jg 0x403000
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x4032c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400015a0
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x468
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor edx, edx
lea rcx, [rsp + 0x240]
mov r8d, 0x208
call fcn.140006860
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.140006860
xor r9d, r9d
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x25]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140001654
lea rax, str.SetNetworkLocation.dll
mov edx, 0x104
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea rcx, [rsp + 0x240]
call fcn.1400013d0
test eax, eax
js 0x140001654
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140005570
add rsp, 0x468
ret
xor eax, eax
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140005570
add rsp, 0x468
ret

Function at 0x140001670
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x1100
call fcn.1400145b0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x10f0], rax
xor edx, edx
lea rcx, [rsp + 0xf0]
mov r8d, 0x800
call fcn.140006860
xor edx, edx
lea rcx, [rsp + 0x8f0]
mov r8d, 0x800
call fcn.140006860
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0xc8
call fcn.140006860
lea rax, [rsp + 0xf0]
mov edi, 1
test rax, rax
je 0x140001790
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x140001790
mov r8d, 0x400
lea rdx, [rsp + 0xf0]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
jne 0x14000172b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140001790
lea rdx, str.Shell_CharmWindow
lea rcx, [rsp + 0xf0]
call qword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x140001790
lea rax, [rsp + 0x8f0]
test rax, rax
je 0x140001790
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x140001790
mov r8d, 0x400
lea rdx, [rsp + 0x8f0]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x14000178c
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140001790
mov esi, edi
jmp 0x140001792
xor esi, esi
call fcn.1400015a0
mov rbx, rax
test esi, esi
je 0x1400017d7
test rax, rax
je 0x1400017d7
mov r9d, 0x64
lea r8, [rsp + 0x20]
mov edx, 0x47e1
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1400017d7
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x8f0]
call qword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x1400017d9
xor edi, edi
test rbx, rbx
je 0x1400017e7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
mov rcx, qword [rsp + 0x10f0]
xor rcx, rsp
call fcn.140005570
lea r11, [rsp + 0x1100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140001810
Capabilities:
Check for foreground window switch
Check for time delay via gettickcount
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
mov eax, 0x1030
call fcn.1400145b0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1020], rax
xor ebx, ebx
lea rbp, str.Shell_CharmWindow
mov rdi, rdx
test rbp, rbp
jne 0x140001852
xor eax, eax
jmp 0x1400019a1
mov qword [rsp + 0x1040], rsi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x1388
jae 0x140001997
nop word [rax + rax]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x800
call fcn.140006860
lea rax, [rsp + 0x20]
test rax, rax
je 0x1400018ed
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x1400018ed
mov r8d, 0x400
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
jne 0x1400018d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400018ed
mov rdx, rbp
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x1400018ed
mov ebx, 1
jmp 0x1400018ef
xor ebx, ebx
test rdi, rdi
je 0x14000196e
xor edx, edx
lea rcx, [rsp + 0x820]
mov r8d, 0x800
call fcn.140006860
test ebx, ebx
je 0x14000196a
lea rax, [rsp + 0x820]
test rax, rax
je 0x14000196a
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x14000196a
mov r8d, 0x400
lea rdx, [rsp + 0x820]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x140001955
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000196a
mov rdx, rdi
lea rcx, [rsp + 0x820]
call qword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x140001992
xor ebx, ebx
jmp 0x140001972
test ebx, ebx
jne 0x140001997
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x1388
jb 0x140001880
jmp 0x140001997
mov ebx, 1
mov rsi, qword [rsp + 0x1040]
mov eax, ebx
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140005570
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400025b0
Capabilities:
Check for foreground window switch
Check for time delay via gettickcount
Get graphical window text

Disassembly:
push rsi
push rdi
push r14
mov eax, 0x1040
call fcn.1400145b0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1030], rax
xor edi, edi
lea r14, str.Shell_CharmWindow
mov rsi, rdx
test r14, r14
jne 0x1400025ec
xor eax, eax
jmp 0x14000279f
mov qword [rsp + 0x1070], rbp
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebp
cmp eax, 0x1388
jae 0x140002795
mov qword [rsp + 0x1060], rbx
nop word [rax + rax]
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x800
call fcn.140006860
lea rax, [rsp + 0x30]
test rax, rax
je 0x14000268b
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x14000268b
mov r8d, 0x400
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
jne 0x140002674
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000268b
mov rdx, r14
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x14000268b
lea edi, [rax + 1]
jmp 0x14000268d
xor edi, edi
test rsi, rsi
je 0x14000270c
xor edx, edx
lea rcx, [rsp + 0x830]
mov r8d, 0x800
call fcn.140006860
test edi, edi
je 0x140002708
lea rax, [rsp + 0x830]
test rax, rax
je 0x140002708
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x140002708
mov r8d, 0x400
lea rdx, [rsp + 0x830]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x1400026f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140002708
mov rdx, rsi
lea rcx, [rsp + 0x830]
call qword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x140002730
xor edi, edi
jmp 0x140002710
test edi, edi
jne 0x140002735
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebp
cmp eax, 0x1388
jb 0x140002620
jmp 0x14000278d
mov edi, 1
mov dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test rbx, rbx
je 0x14000278d
mov r8d, dword [rsp + 0x20]
test r8d, r8d
je 0x14000278d
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14000278d
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.USER32.dll_WaitForInputIdle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x1060]
mov rbp, qword [rsp + 0x1070]
mov eax, edi
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.140005570
add rsp, 0x1040
pop r14
pop rdi
pop rsi
ret
Function at 0x1400027c0
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x6f0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x6e0], rax
xor edx, edx
lea rcx, [rsp + 0x2c0]
mov r8d, 0x208
call fcn.140006860
xor edx, edx
lea rcx, [rsp + 0xb0]
mov r8d, 0x208
call fcn.140006860
xor edx, edx
lea rcx, [rsp + 0x4d0]
mov r8d, 0x208
call fcn.140006860
lea r9, [rsp + 0x30]
mov qword [rsp + 0x30], 0
xor r8d, r8d
lea rcx, [0x14001d160]
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov ebx, 1
test eax, eax
js 0x1400028dc
mov r9, qword [rsp + 0x30]
lea rax, str.rundll32.exe
lea r8, str._s_s
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [rsp + 0x2c0]
call fcn.1400013d0
test eax, eax
js 0x1400028dc
mov r9, qword [rsp + 0x30]
lea rax, str.van.dll
lea r8, str._s_s
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [rsp + 0xb0]
call fcn.1400013d0
test eax, eax
js 0x1400028dc
lea rax, str.RunVAN
mov edx, 0x104
lea r9, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
lea r8, str._s__s
lea rcx, [rsp + 0x4d0]
call fcn.1400013d0
test eax, eax
js 0x1400028dc
mov edi, ebx
jmp 0x1400028de
xor edi, edi
xor edx, edx
mov dword [rsp + 0x40], 0x70
lea rcx, [rsp + 0x44]
lea r8d, [rdx + 0x6c]
call fcn.140006860
mov dword [rsp + 0x70], ebx
lea rax, [rsp + 0x2c0]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x4d0]
mov qword [rsp + 0x60], rax
test edi, edi
je 0x140002927
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x140002929
xor ebx, ebx
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140002939
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, ebx
mov rcx, qword [rsp + 0x6e0]
xor rcx, rsp
call fcn.140005570
mov rbx, qword [rsp + 0x700]
add rsp, 0x6f0
pop rdi
ret
Function at 0x1400030e0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x280
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor ebx, ebx
mov r14, rdx
mov esi, ecx
mov dword [rsp + 0x20], ebx
xor edx, edx
lea ecx, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r8d, 0x234
mov dword [rsp + 0x30], 0x238
cmp rax, 0xffffffffffffffff
lea rcx, [rsp + 0x34]
mov rdi, rax
setne bl
xor edx, edx
call fcn.140006860
test ebx, ebx
je 0x1400031ac
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400031ae
nop word [rax + rax]
mov ecx, dword [rsp + 0x38]
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov ebx, eax
test eax, eax
je 0x140003191
cmp dword [rsp + 0x20], esi
jne 0x140003191
lea rdx, str.ShellExperienceHost.exe
lea rcx, [rsp + 0x5c]
call qword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x1400031a5
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140003160
jmp 0x1400031ae
mov eax, dword [rsp + 0x38]
mov dword [r14], eax
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140005570
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x1400039f0
Capabilities:
Enumerate processes
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x6b0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
mov esi, edx
mov dword [rsp + 0x30], 0x238
xor ebx, ebx
lea rcx, [rsp + 0x34]
xor edx, edx
mov dword [rsp + 0x274], ebx
mov r8d, 0x234
call fcn.140006860
xor edx, edx
lea rcx, [rsp + 0x280]
mov r8d, 0x208
call fcn.140006860
xor edx, edx
lea rcx, [rsp + 0x490]
mov r8d, 0x208
call fcn.140006860
lea rax, [rsp + 0x280]
mov dword [rsp + 0x270], 0x104
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [rbx + 0x25]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140003bfb
lea r8, [0x1400243f8]
lea rcx, [rsp + 0x280]
call fcn.140001340
test eax, eax
js 0x140003bfb
lea r8, str.OpenWith.exe
lea rcx, [rsp + 0x280]
call fcn.140001340
test eax, eax
js 0x140003bfb
xor edx, edx
mov qword [rsp + 0x6c0], rdi
lea ecx, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140003bcf
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140003bc6
nop dword [rax]
mov ecx, dword [rsp + 0x38]
lea rdx, [rsp + 0x274]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x140003b95
cmp dword [rsp + 0x274], esi
jne 0x140003b95
lea rdx, [rsp + 0x5c]
lea rcx, str.OpenWith.exe
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x140003b95
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x100400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140003b95
lea r9, [rsp + 0x270]
mov dword [rsp + 0x270], 0x104
lea r8, [rsp + 0x490]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
je 0x140003ba0
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x490]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x140003bc6
jmp 0x140003ba0
mov dword [rsp + 0x270], 0x104
test rbx, rbx
je 0x140003bb0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140003b00
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x6c0]
mov rax, rbx
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.140005570
mov rbx, qword [rsp + 0x6c8]
add rsp, 0x6b0
pop rsi
ret
mov rax, rbx
jmp 0x140003bda
Function at 0x140003c80
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x470
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x250]
mov r8d, 0x208
call fcn.140006860
xor edx, edx
mov dword [rsp + 0x30], 0x104
mov r8d, 0x208
lea rcx, [rsp + 0x40]
call fcn.140006860
xor r9d, r9d
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x25]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140003d7f
lea r8, [0x1400243f8]
lea rcx, [rsp + 0x40]
call fcn.140001340
test eax, eax
js 0x140003d7f
lea r8, str.OpenWith.exe
lea rcx, [rsp + 0x40]
call fcn.140001340
test eax, eax
js 0x140003d7f
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test rax, rax
je 0x140003d78
cmp word [rax], 0
je 0x140003d78
lea rcx, [rsp + 0x30]
mov r8, rax
mov qword [rsp + 0x28], rcx
lea r9, str.open
lea rcx, [rsp + 0x250]
mov edx, 2
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
test eax, eax
js 0x140003d7f
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x250]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x140003d7f
mov eax, 1
jmp 0x140003d81
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140005570
add rsp, 0x470
pop rbx
ret