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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14016bb80], rbx
je 0x140031f93
cmp rax, rbx
jne 0x140031f86
mov ebx, 1
mov esi, ebx
jmp 0x140031f98
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140031f6b
mov ebx, 1
mov eax, dword [0x14016bb88]
cmp eax, ebx
jne 0x140031fb0
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14003201c
mov eax, dword [0x14016bb88]
test eax, eax
jne 0x140032011
mov dword [0x14016bb88], ebx
lea r15, [0x1400f9f90]
lea rdi, [0x1400f9f78]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140032003
test eax, eax
jne 0x140032007
cmp qword [rdi], r14
je 0x140031ff8
mov rax, qword [rdi]
mov rcx, qword [0x1400f9ec0]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x140031fda
test eax, eax
je 0x140032017
mov eax, 0xff
jmp 0x140032172
mov dword [0x14016b574], ebx
mov edi, 0x1f
mov eax, dword [0x14016bb88]
cmp eax, ebx
jne 0x140032043
lea rdx, [0x1400f9f70]
lea rcx, [0x1400f9ec8]
call sub.msvcrt.dll__initterm
mov dword [0x14016bb88], 2
test esi, esi
jne 0x140032051
mov rax, r14
xchg qword [0x14016bb80], rax
cmp qword [0x14016bba0], r14
je 0x140032084
lea rcx, [0x14016bba0]
call fcn.140032980
test eax, eax
je 0x140032084
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14016bba0]
mov r9, qword [0x1400f9ec0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14003209d
mov eax, 0xff
jmp 0x140032172
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140032123
test ax, ax
je 0x1400320b8
test edx, edx
jne 0x140032123
sub ax, bx
cmp ax, di
ja 0x1400320ce
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x1400320b8
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400315a8
mov dword [0x14016b570], eax
cmp dword [0x14016b590], r14d
jne 0x14003210c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14016b574], r14d
jne 0x140032121
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14016b570]
jmp 0x140032172
cmp ax, 0x22
jne 0x140032137
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400320a6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call 0x140209000
add rsp, 0x28
jmp 0x140031f2c
Function at 0x1400388d0
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ecx, 1
call fcn.14003837c
test al, al
je 0x140038837
xor sil, sil
mov byte [rsp + 0x20], sil
call fcn.140038210
mov bl, al
mov ecx, dword [0x1400aae90]
cmp ecx, 1
je 0x140038842
test ecx, ecx
jne 0x14003876d
mov dword [0x1400aae90], 1
lea rdx, [0x1400953e0]
lea rcx, [0x1400953a8]
call fcn.14004cc8c
test eax, eax
je 0x14003874e
mov eax, 0xff
jmp 0x140038827
lea rdx, [0x1400953a0]
lea rcx, [0x140095378]
call fcn.14004cc48
mov dword [0x1400aae90], 2
jmp 0x140038775
mov sil, 1
mov byte [rsp + 0x20], sil
mov cl, bl
call fcn.1400384dc
call fcn.1400395c8
mov rbx, rax
cmp qword [rax], 0
je 0x1400387a8
mov rcx, rax
call fcn.140038444
test al, al
je 0x1400387a8
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [rbx]
call qword [0x140095350]
call fcn.1400395d0
mov rbx, rax
cmp qword [rax], 0
je 0x1400387ca
mov rcx, rax
call fcn.140038444
test al, al
je 0x1400387ca
mov rcx, qword [rbx]
call fcn.14004a93c
call fcn.14004bfd0
mov rdi, rax
call fcn.14004cf80
mov rbx, qword [rax]
call fcn.14004cf78
mov r8, rdi
mov rdx, rbx
mov ecx, dword [rax]
call main
mov ebx, eax
call fcn.140039374
test al, al
je 0x14003884c
test sil, sil
jne 0x140038801
call fcn.14004a918
xor edx, edx
mov cl, 1
call fcn.140038500
mov eax, ebx
jmp 0x140038827
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 7
call fcn.1400391e4
nop
mov ecx, 7
call fcn.1400391e4
mov ecx, ebx
call fcn.14004a97c
nop
mov ecx, ebx
call fcn.14004a928
nop
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call fcn.14004bfd0
mov rdi, rax
call fcn.14004cf80
mov rbx, qword [rax]
call fcn.14004cf78
mov r8, rdi
mov rdx, rbx
mov ecx, dword [rax]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp main
sub rsp, 0x28
call fcn.1400394a4
add rsp, 0x28
jmp 0x1400386e0

Function at 0x140039374
Capabilities:
Parse pe header

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

Function at 0x14004a97c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14004a704
Function at 0x1400795b0
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400795e0
xor eax, eax
jmp 0x1400796a3
mov rbp, rbx
cmp word [rax], si
je 0x140079605
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400795ec
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400795e8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140079430
movsxd r14, eax
test eax, eax
jne 0x140079643
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400795d9
mov rcx, r14
call fcn.140075a8c
mov rdi, rax
test rax, rax
jne 0x14007965c
xor ecx, ecx
call fcn.140076040
jmp 0x140079638
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140079430
test eax, eax
jne 0x14007968d
mov rcx, rdi
call fcn.140076040
jmp 0x140079697
xor ecx, ecx
call fcn.140076040
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140085948
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140077304
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400859d2
cmp byte [rbp - 0x21], r15b
je 0x1400859cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140085a08
call fcn.14007b00c
test eax, eax
jne 0x1400859f4
cmp byte [rbp - 0x21], r15b
je 0x1400859ec
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140085a08
cmp byte [rbp - 0x21], r15b
je 0x140085a05
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400760a4
test eax, eax
jne 0x140085aa8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140077304
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140085a47
cmp byte [rbp - 0x21], r15b
je 0x140085a7c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140085a7c
call fcn.14007b00c
test eax, eax
jne 0x140085a68
cmp byte [rbp - 0x21], r15b
je 0x140085a61
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140085a7c
cmp byte [rbp - 0x21], r15b
je 0x140085a79
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400760a4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140085aa8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140085aab
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140085ab9
mov rcx, rdi
call fcn.140076040
cmp byte [rbp + 0x3f], r15b
je 0x140085ac8
mov rcx, qword [rbp + 0x27]
call fcn.140076040
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140092690
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400926b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400926b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400015a0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
lea rcx, [0x14013d120]
call sym.ProcessHacker.exe_PhAllocateFromFreeList
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
mov qword [rax], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 8], rcx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x30]
lea r8, [0x140001530]
mov rdx, qword [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14000161f
mov rax, qword [rsp + 0x38]
jmp 0x140001632
mov rdx, qword [rsp + 0x30]
lea rcx, [0x14013d120]
call sym.ProcessHacker.exe_PhFreeToFreeList
xor eax, eax
add rsp, 0x48
ret

Function at 0x1400071f0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x18
mov eax, dword [rsp + 0x20]
xor eax, 0xffffffff
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp], rax
mov rax, qword [rsp + 0x30]
dec rax
mov qword [rsp + 0x30], rax
cmp qword [rsp], 0
je 0x140007266
mov eax, dword [rsp + 0x20]
shr eax, 8
mov rcx, qword [rsp + 0x28]
movsx ecx, byte [rcx]
mov edx, dword [rsp + 0x20]
xor edx, ecx
mov ecx, edx
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x140139710]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
jmp 0x14000720d
mov eax, dword [rsp + 0x20]
xor eax, 0xffffffff
add rsp, 0x18
ret
Function at 0x140012970
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
sub rsp, 0x28
xor r9d, r9d
mov r8d, 0x40
lea rdx, [sym.ProcessHacker.exe_PhSystemBasicInformation]
xor ecx, ecx
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
add rsp, 0x28
ret

Function at 0x1400129a0
Capabilities:
Check os version

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov dword [rsp + 0x30], 0x11c
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlGetVersion]
test eax, eax
jge 0x1400129d0
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x7fffffff
jmp 0x140012b4d
lea rax, [sym.ProcessHacker.exe_PhOsVersion]
lea rcx, [rsp + 0x30]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x11c
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x20], 5
jne 0x140012a07
cmp dword [rsp + 0x24], 1
jb 0x140012a0e
cmp dword [rsp + 0x20], 5
jae 0x140012a1d
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0
jmp 0x140012ade
cmp dword [rsp + 0x20], 5
jne 0x140012a3a
cmp dword [rsp + 0x24], 1
jne 0x140012a3a
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x33
jmp 0x140012ade
cmp dword [rsp + 0x20], 5
jne 0x140012a57
cmp dword [rsp + 0x24], 2
jne 0x140012a57
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x34
jmp 0x140012ade
cmp dword [rsp + 0x20], 6
jne 0x140012a71
cmp dword [rsp + 0x24], 0
jne 0x140012a71
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x3c
jmp 0x140012ade
cmp dword [rsp + 0x20], 6
jne 0x140012a8b
cmp dword [rsp + 0x24], 1
jne 0x140012a8b
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x3d
jmp 0x140012ade
cmp dword [rsp + 0x20], 6
jne 0x140012aa5
cmp dword [rsp + 0x24], 2
jne 0x140012aa5
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x3e
jmp 0x140012ade
cmp dword [rsp + 0x20], 6
jne 0x140012abf
cmp dword [rsp + 0x24], 3
jne 0x140012abf
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x3f
jmp 0x140012ade
cmp dword [rsp + 0x20], 6
jne 0x140012acd
cmp dword [rsp + 0x24], 3
ja 0x140012ad4
cmp dword [rsp + 0x20], 6
jbe 0x140012ade
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x7fffffff
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3c
jb 0x140012b1b
mov dword [sym.ProcessHacker.exe_ProcessQueryAccess], 0x1000
mov dword [sym.ProcessHacker.exe_ProcessAllAccess], 0x1f1fff
mov dword [sym.ProcessHacker.exe_ThreadQueryAccess], 0x800
mov dword [sym.ProcessHacker.exe_ThreadSetAccess], 0x400
mov dword [sym.ProcessHacker.exe_ThreadAllAccess], 0x1f0fff
jmp 0x140012b4d
mov dword [sym.ProcessHacker.exe_ProcessQueryAccess], 0x400
mov dword [sym.ProcessHacker.exe_ProcessAllAccess], 0x1f0fff
mov dword [sym.ProcessHacker.exe_ThreadQueryAccess], 0x40
mov dword [sym.ProcessHacker.exe_ThreadSetAccess], 0x20
mov dword [sym.ProcessHacker.exe_ThreadAllAccess], 0x1f03ff
add rsp, 0x158
pop rdi
pop rsi
ret
Function at 0x140015f70
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
lea rcx, str.shell32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x28], rax
lea rcx, str.shlwapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x30], rax
lea rcx, str.uxtheme.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x20], rax
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3c
jb 0x140015fcd
lea rdx, str.ChangeWindowMessageFilter
lea rcx, [0x140110768]
call fcn.140015cc0
mov qword [0x140140f00], rax
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3e
jb 0x140015ff0
lea rdx, str.IsImmersiveProcess
lea rcx, [0x140110768]
call fcn.140015cc0
mov qword [0x140140ef0], rax
mov edx, 0x3d
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140140ea0], rax
lea rdx, str.SetWindowTheme
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140140ed0], rax
lea rdx, str.IsThemeActive
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140140ef8], rax
lea rdx, str.OpenThemeData
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140140ee0], rax
lea rdx, str.CloseThemeData
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140140eb8], rax
lea rdx, str.IsThemePartDefined
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140140eb0], rax
lea rdx, str.DrawThemeBackground
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140140ea8], rax
lea rdx, str.DrawThemeText
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140140ed8], rax
lea rdx, str.GetThemeInt
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140140e98], rax
lea rdx, str.SHAutoComplete
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140140f08], rax
lea rdx, str.SHCreateShellItem
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140140ec8], rax
lea rdx, str.SHOpenFolderAndSelectItems
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140140ec0], rax
lea rdx, str.SHParseDisplayName
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140140f10], rax
lea rdx, str.TaskDialogIndirect
lea rcx, str.comctl32.dll
call fcn.140015cc0
mov qword [0x140140ee8], rax
add rsp, 0x48
ret
Function at 0x1400168f0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x140016916
call sym.ProcessHacker.exe_PhReferenceEmptyString
jmp 0x14001696e
mov eax, dword [rsp + 0x20]
shl eax, 1
mov eax, eax
mov edx, eax
xor ecx, ecx
call sym.ProcessHacker.exe_PhCreateStringEx
mov qword [rsp + 0x28], rax
xor edx, edx
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
mov ecx, 2
div ecx
inc eax
mov r8d, eax
mov rax, qword [rsp + 0x28]
mov rdx, qword [rax + 8]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x140016962
mov rax, qword [rsp + 0x28]
jmp 0x14001696e
mov rcx, qword [rsp + 0x28]
call sym.ProcessHacker.exe_PhDereferenceObject
xor eax, eax
add rsp, 0x38
ret
Function at 0x140017260
Capabilities:
Get file system object information

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x328
cmp qword [rsp + 0x338], 0
je 0x14001739c
mov r8b, 1
lea rdx, str..exe
mov rcx, qword [rsp + 0x338]
call fcn.140015d90
movzx eax, al
test eax, eax
je 0x14001739c
mov qword [rsp + 0x30], 0
cmp qword [rsp + 0x330], 0
je 0x14001731f
movzx eax, byte [rsp + 0x340]
test eax, eax
jne 0x1400172d3
lea rax, [rsp + 0x30]
mov qword [rsp + 0x40], rax
jmp 0x1400172dc
mov qword [rsp + 0x40], 0
movzx eax, byte [rsp + 0x340]
test eax, eax
je 0x1400172f4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x58], rax
jmp 0x1400172fd
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x20], 1
mov r9, qword [rsp + 0x40]
mov r8, qword [rsp + 0x58]
xor edx, edx
mov rcx, qword [rsp + 0x330]
call qword [sym.imp.SHELL32.dll_ExtractIconExW]
cmp qword [rsp + 0x30], 0
jne 0x140017392
movzx eax, byte [rsp + 0x340]
test eax, eax
je 0x14001733f
lea rax, [rsp + 0x30]
mov qword [rsp + 0x48], rax
jmp 0x140017348
mov qword [rsp + 0x48], 0
movzx eax, byte [rsp + 0x340]
test eax, eax
jne 0x140017360
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
jmp 0x140017369
mov qword [rsp + 0x50], 0
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call sym.ProcessHacker.exe_PhGetStockApplicationIcon
cmp qword [rsp + 0x30], 0
je 0x140017392
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_DuplicateIcon]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
jmp 0x140017460
movzx eax, byte [rsp + 0x340]
test eax, eax
je 0x1400173b2
mov dword [rsp + 0x3c], 0
jmp 0x1400173ba
mov dword [rsp + 0x3c], 1
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], 0
cmp qword [rsp + 0x330], 0
je 0x14001740c
mov eax, dword [rsp + 0x38]
bts eax, 8
mov dword [rsp + 0x20], eax
mov r9d, 0x2b8
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x330]
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
je 0x14001740c
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14001745b
cmp qword [rsp + 0x338], 0
je 0x14001745b
mov eax, dword [rsp + 0x38]
bts eax, 8
or eax, 0x10
mov dword [rsp + 0x20], eax
mov r9d, 0x2b8
lea r8, [rsp + 0x60]
mov edx, 0x80
mov rcx, qword [rsp + 0x338]
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
je 0x14001745b
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
add rsp, 0x328
ret

Function at 0x140017470
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1400174bb
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x14001749d
jmp 0x1400174bb
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
jne 0x1400174b3
jmp 0x1400174bb
call qword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x1400174c6
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
add rsp, 0x28
ret
Function at 0x14001f760
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
lea rcx, [0x14013d180]
call fcn.1400011e0
cmp qword [0x14013b9d8], 0
jne 0x14001f7c0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x14001f9a0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x14013b9d8], rax
cmp qword [0x14013b9d8], 0
jne 0x14001f7c0
lea rcx, [0x14013d180]
call fcn.140001250
xor al, al
jmp 0x14001f83e
cmp qword [0x14013b1a0], 0
jne 0x14001f7fe
mov byte [rsp + 0x20], 0
mov r9d, 1
xor r8d, r8d
mov edx, 0x1f0003
lea rcx, [0x14013b1a0]
call qword [sym.imp.ntdll.dll_NtCreateEvent]
test eax, eax
jge 0x14001f7fe
lea rcx, [0x14013d180]
call fcn.140001250
xor al, al
jmp 0x14001f83e
cmp qword [0x14013b9d0], 0
jne 0x14001f83c
mov byte [rsp + 0x20], 0
mov r9d, 1
xor r8d, r8d
mov edx, 0x1f0003
lea rcx, [0x14013b9d0]
call qword [sym.imp.ntdll.dll_NtCreateEvent]
test eax, eax
jge 0x14001f83c
lea rcx, [0x14013d180]
call fcn.140001250
xor al, al
jmp 0x14001f83e
mov al, 1
add rsp, 0x38
ret

Function at 0x140020dd0
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 8]
and eax, 0xc
test eax, eax
jne 0x140020e3e
mov dword [rsp + 0x20], 0xe
mov r9d, 8
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x140020e23
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
je 0x140020e3e
mov ecx, 0xc00000e5
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
add rsp, 0x58
ret

Function at 0x140020e90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 8]
and eax, 8
test eax, eax
je 0x140020ed4
mov rax, qword [rsp + 0x80]
add rax, 0x10
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
call qword [sym.imp.ntdll.dll_NtReadFile]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0x103
jne 0x140020f59
xor r8d, r8d
xor edx, edx
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jl 0x140020f59
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jl 0x140020f96
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x10]
add rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x80]
mov qword [rcx + 0x10], rax
cmp qword [rsp + 0x98], 0
je 0x140020f96
mov rax, qword [rsp + 0x98]
mov ecx, dword [rsp + 0x68]
mov dword [rax], ecx
mov eax, dword [rsp + 0x50]
add rsp, 0x78
ret