joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008bc10
Capabilities:
Delete file

Disassembly:
sub rsp, 0x48
lea rdx, [rcx + 0x48]
lea r8, str..syn
lea rcx, [rsp + 0x20]
call fcn.140036610
cmp qword [rax + 0x18], 8
jb 0x14008bc33
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp qword [rsp + 0x38], 8
jb 0x14008bc4e
mov rcx, qword [rsp + 0x20]
call fcn.1400fa318
add rsp, 0x48
ret

Function at 0x14008bc60
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], 7
xor eax, eax
mov qword [rsp + 0x38], rax
mov word [rsp + 0x28], ax
lea rdx, [rcx + 0x48]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x28]
call fcn.14000b870
nop
movzx eax, word [str..syn]
neg ax
sbb r8, r8
and r8d, 4
lea rdx, str..syn
lea rcx, [rsp + 0x28]
call fcn.14003d830
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
cmp qword [rsp + 0x40], 8
jb 0x14008bce9
mov rcx, qword [rsp + 0x28]
call fcn.1400fa318
mov eax, ebx
add rsp, 0x50
pop rbx
ret
Function at 0x14008d820
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
cmp dword [rcx + 4], 0
je 0x14008d8d0
cmp dword [rcx + 0xc], 0
je 0x14008d8d0
lea rbx, [rcx + 0x30]
cmp qword [rbx + 0x18], 8
jb 0x14008d853
mov rcx, qword [rbx]
jmp 0x14008d856
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14008d8d0
cmp qword [rbx + 0x18], 8
jb 0x14008d86a
mov rbx, qword [rbx]
mov qword [rsp + 0x40], 7
xor r8d, r8d
mov qword [rsp + 0x38], r8
mov word [rsp + 0x28], r8w
cmp word [rbx], r8w
je 0x14008d89b
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x14008d890
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.14000b9c0
nop
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.1400efb50
mov ebx, eax
cmp qword [rsp + 0x40], 8
jb 0x14008d8cc
mov rcx, qword [rsp + 0x28]
call fcn.1400fa318
mov eax, ebx
jmp 0x14008d8d5
mov eax, 1
add rsp, 0x50
pop rbx
ret
Function at 0x14008ee60
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1c8]
sub rsp, 0x2c0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rdi, rcx
mov qword [rsp + 0x58], 7
xor esi, esi
mov qword [rsp + 0x50], rsi
mov word [rsp + 0x40], si
lea rdx, [rcx + 0x30]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x40]
call fcn.14000b870
nop
mov r8d, esi
cmp word [0x14014a718], r8w
setne r8b
lea rdx, [0x14014a718]
lea rcx, [rsp + 0x40]
call fcn.14003d830
movzx eax, word [str..syn]
neg ax
sbb r8, r8
and r8d, 4
lea rdx, str..syn
lea rcx, [rsp + 0x40]
call fcn.14003d830
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14008f026
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], rsi
mov word [rsp + 0x20], si
cmp word [rbp - 0x64], si
jne 0x14008ef3e
mov r8d, esi
jmp 0x14008ef5b
lea rax, [rbp - 0x64]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14008ef50
lea rdx, [rbp - 0x64]
lea rcx, [rsp + 0x20]
call fcn.14000b9c0
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14008f6a0
nop
cmp qword [rsp + 0x38], 8
jb 0x14008ef8a
mov rcx, qword [rsp + 0x20]
call fcn.1400fa318
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14008f01c
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], rsi
mov word [rsp + 0x20], si
cmp word [rbp - 0x64], 0
jne 0x14008efbf
mov r8, rsi
jmp 0x14008efdb
lea rax, [rbp - 0x64]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14008efd0
lea rdx, [rbp - 0x64]
lea rcx, [rsp + 0x20]
call fcn.14000b9c0
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14008f6a0
nop
cmp qword [rsp + 0x38], 8
jb 0x14008f00a
mov rcx, qword [rsp + 0x20]
call fcn.1400fa318
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14008efa0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
cmp qword [rsp + 0x58], 8
jb 0x14008f038
mov rcx, qword [rsp + 0x40]
call fcn.1400fa318
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140096db0
Capabilities:
Get common file path
Set current directory

Disassembly:
push rbx
sub rsp, 0x440
lea rcx, [rsp + 0x22]
xor ebx, ebx
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], bx
call fcn.1400fa4e0
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [rsp + 0x230]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea edx, [rbx + 1]
lea rcx, str.control.exe_keyboard
xor r9d, r9d
xor r8d, r8d
call fcn.1400f4dc0
test eax, eax
jne 0x140096e2c
lea r8d, [rbx + 0x10]
lea ecx, [rbx + 6]
xor edx, edx
call fcn.1400973f0
mov ebx, eax
cmp word [rsp + 0x20], 0
je 0x140096e3f
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, ebx
add rsp, 0x440
pop rbx
ret

Function at 0x140096e50
Capabilities:
Get common file path
Set current directory

Disassembly:
push rbx
sub rsp, 0x440
lea rcx, [rsp + 0x22]
xor ebx, ebx
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], bx
call fcn.1400fa4e0
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [rsp + 0x230]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea edx, [rbx + 1]
lea rcx, [0x14014a720]
xor r9d, r9d
xor r8d, r8d
call fcn.1400f4dc0
test eax, eax
jne 0x140096ecc
lea r8d, [rbx + 0x10]
lea ecx, [rbx + 6]
xor edx, edx
call fcn.1400973f0
mov ebx, eax
cmp word [rsp + 0x20], 0
je 0x140096edf
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, ebx
add rsp, 0x440
pop rbx
ret
Function at 0x140097de0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x280
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rdi, rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov eax, dword [0x140296fd8]
lea rsi, str.NO_INIT
test al, 1
jne 0x140097eab
or eax, 1
mov dword [0x140296fd8], eax
call fcn.140004d50
mov rdx, rax
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
jne 0x140097e46
mov ecx, 0x80004005
call fcn.140004d00
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [0x140296fd0], rax
test rsi, 0xffffffffffff0000
jne 0x140097e88
movzx ebx, si
xor edx, edx
mov ecx, ebx
call fcn.14000f670
test rax, rax
je 0x140097e9e
mov r8d, ebx
mov rdx, rax
lea rcx, [0x140296fd0]
call fcn.14000fa20
jmp 0x140097e9e
mov r8d, 7
mov rdx, rsi
lea rcx, [0x140296fd0]
call fcn.14000fc20
nop
lea rcx, [0x14013cba0]
call fcn.1400fb570
nop
mov rdx, rbp
mov rax, qword [0x140296fd0]
nop word [rax + rax]
movzx ecx, word [rax + rdx*2]
inc rdx
cmp cx, word [rsi + rdx*2 - 2]
jne 0x140097ed8
cmp rdx, 8
jne 0x140097ec0
mov ecx, ebp
jmp 0x140097edd
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x140098000
xor r8d, r8d
lea rdx, [0x14013f6e0]
lea rcx, [0x140296fd0]
call fcn.14000fc20
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.1400ddab0
nop
mov dword [rsp + 0x298], 0x208
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.1400fa4e0
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
xor r9d, r9d
lea r8, str.SoftwareSynapticsSynTPInstall
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x40]
call fcn.1400ddc20
test eax, eax
je 0x140097fef
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x298]
lea r8, [rsp + 0x70]
lea rdx, str.ProgDir
lea rcx, [rsp + 0x48]
call fcn.1400f5ce0
test eax, eax
je 0x140097fef
lea rcx, [rsp + 0x70]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x140097f85
movups xmm0, xmmword [str.SynTPHelper.exe]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [0x1401545c0]
movups xmmword [rcx + 0x10], xmm1
movzx eax, word [0x1401545d0]
mov word [rcx + 0x20], ax
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140097fef
lea rdx, [rsp + 0x70]
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140097fd0
mov r8d, eax
lea rdx, [rsp + 0x70]
lea rcx, [0x140296fd0]
call fcn.14000fc20
nop
lea rcx, [rsp + 0x40]
call fcn.1400ddbc0
mov rax, qword [0x140296fd0]
lea rcx, [rax - 0x18]
call fcn.14000f720
add rax, 0x18
mov qword [rdi], rax
mov rax, rdi
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140098040
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x9e4], 0
mov rbx, rcx
je 0x14009809f
cmp dword [rcx + 0x9e8], 0
je 0x140098077
mov rcx, qword [rcx + 0x938]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140098077
mov eax, 1
add rsp, 0x30
pop rbx
ret
cmp dword [rbx + 0x1768], 0
jne 0x14009809f
xor eax, eax
lea r8, [0x14009e3c0]
mov r9, rbx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x140098cd0
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x240
cmp dword [rcx + 0x9ec], 0
mov edi, r8d
mov esi, edx
mov rbx, rcx
je 0x140098cfa
xor eax, eax
jmp 0x140098de9
call fcn.1400985a0
mov rcx, qword [rbx + 0x980]
test rcx, rcx
je 0x140098d37
test edi, edi
jns 0x140098d21
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x140098d37
mov edx, edi
call fcn.1400f39b0
test eax, eax
je 0x140098d37
mov qword [rbx + 0x980], 0
mov rcx, qword [rbx + 0x978]
test rcx, rcx
je 0x140098de4
test esi, esi
je 0x140098de4
test edi, edi
jns 0x140098dce
mov qword [rsp + 0x30], rcx
xor r8d, r8d
lea rcx, [rsp + 0x250]
xor r9d, r9d
mov edx, reloc.OLEAUT32.dll_VarDecFix
mov dword [rsp + 0x20], r8d
call fcn.1400c4700
lea rcx, [rsp + 0x38]
mov edx, 0x104
mov r8, qword [rax]
call fcn.1400fbc74
mov rdx, qword [rsp + 0x250]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140098da3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [rsp + 0x30]
lea rcx, [0x1400dcd40]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [rbx + 0x978]
xor r9d, r9d
lea edx, [r9 + 0x10]
xor r8d, r8d
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x140098de4
mov edx, edi
call fcn.1400f39b0
test eax, eax
je 0x140098de4
mov qword [rbx + 0x978], 0
mov eax, 1
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14009d6c0
Capabilities:
Swap mouse buttons

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x80
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0xa0], rbx
mov ebx, r8d
mov ebp, edx
mov rdi, rcx
mov ecx, 0x17
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, eax
test ebx, ebx
je 0x14009d83e
call fcn.140004d50
mov rcx, rax
xor r8d, r8d
test rax, rax
setne r8b
test r8d, r8d
jne 0x14009d71b
mov ecx, 0x80004005
call fcn.140004d00
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0xb8], rax
lea rcx, [rsp + 0xb8]
test ebp, ebp
jne 0x14009d74f
mov rbp, 0xffffffff80000003
mov r8d, 0x1c
lea rdx, str..DEFAULTControl_PanelMouse
jmp 0x14009d763
mov rbp, 0xffffffff80000001
mov r8d, 0x13
lea rdx, str.Control_PanelMouse
call fcn.14000fc20
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1400ddab0
nop
mov dword [rsp + 0xb0], 0x14
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov rbx, qword [rsp + 0xb8]
mov r8, rbx
mov rdx, rbp
lea rcx, [rsp + 0x50]
call fcn.1400ddc20
test eax, eax
je 0x14009d81f
mov qword [rsp + 0x28], 0
lea rax, [0x1401544fc]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0x38]
lea rdx, str.SwapMouseButtons
lea rcx, [rsp + 0x58]
call fcn.1400f5ce0
test eax, eax
je 0x14009d81f
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.1400fd93c
mov esi, eax
mov eax, dword [rdi + 0x1640]
sub eax, 0x237c
cmp eax, 1
ja 0x14009d81f
mov ecx, 0x17
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cmp esi, eax
je 0x14009d81f
mov ecx, esi
call qword [sym.imp.USER32.dll_SwapMouseButton]
nop
lea rcx, [rsp + 0x50]
call fcn.1400ddbc0
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14009d83e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [rdi + 0x1640]
sub eax, 0x237c
cmp eax, 1
jbe 0x14009d857
cmp dword [rdi + 0x9c8], 0
je 0x14009d861
mov edx, esi
mov rcx, rdi
call fcn.14009dc40
mov rcx, qword [rdi + 0x1668]
test rcx, rcx
jne 0x14009d874
lea rcx, [rdi + 0x1670]
mov rax, qword [rcx]
mov r8d, esi
mov edx, 0x1000097
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
jmp qword [rax + 0x40]
Function at 0x14009e430
Capabilities:
Enumerate gui resources

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x280
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rbx, rcx
dec edx
je 0x14009e505
dec edx
jne 0x14009e5e6
lea rcx, [rsp + 0x38]
call fcn.1400ddab0
nop
xor esi, esi
mov edi, esi
nop
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, [0x140154500]
mov rdx, 0xffffffff80000001
lea rcx, [rsp + 0x38]
call fcn.1400ddc20
test eax, eax
jne 0x14009e4a7
lea ecx, [rax + 0x64]
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x32
jl 0x14009e470
lea rcx, [rsp + 0x38]
call fcn.1400ddbc0
mov rcx, qword [rbx + 0x1668]
test rcx, rcx
jne 0x14009e4c4
lea rcx, [rbx + 0x1670]
mov rax, qword [rcx]
mov edx, 0x80002010
call qword [rax + 0x68]
mov edx, 1
mov rcx, rbx
call fcn.14009b1a0
test eax, eax
je 0x14009e4f1
lea rcx, [rbx + 0x1838]
mov edx, 1
call fcn.1400349c0
lea rcx, [rbx + 0x1838]
or edx, 0xffffffff
call fcn.140033f20
jmp 0x14009e5e6
cmp dword [rcx + 0x16f8], 0
je 0x14009e520
mov edx, 0xfffd
mov rcx, qword [0x140296048]
call qword [sym.imp.USER32.dll_KillTimer]
lea rcx, [rbx + 0x1838]
or edx, 0xffffffff
call fcn.140033e00
cmp dword [rbx + 0x9ec], 0
jne 0x14009e5e6
mov rcx, rbx
call fcn.1400985a0
mov rcx, qword [rbx + 0x980]
test rcx, rcx
je 0x14009e560
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_PostMessageW]
mov rax, qword [rbx + 0x978]
test rax, rax
je 0x14009e5e6
mov qword [rsp + 0x70], rax
xor r8d, r8d
xor esi, esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
mov edx, reloc.OLEAUT32.dll_VarDecFix
lea rcx, [rsp + 0x2a0]
call fcn.1400c4700
mov r8, qword [rax]
mov edx, 0x104
lea rcx, [rsp + 0x78]
call fcn.1400fbc74
mov rdx, qword [rsp + 0x2a0]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14009e5bd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [rsp + 0x70]
lea rcx, [0x1400dcd40]
call qword [sym.imp.USER32.dll_EnumWindows]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
mov rcx, qword [rbx + 0x978]
call qword [sym.imp.USER32.dll_PostMessageW]
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14009fb30
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x230
mov rsi, rcx
xor ecx, ecx
xor edi, edi
call fcn.1400f1590
cmp eax, 7
jl 0x14009fc05
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], di
call fcn.1400fa4e0
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rax, [rsp + 0x20]
sub rax, 2
nop word [rax + rax]
cmp word [rax + 2], di
lea rax, [rax + 2]
jne 0x14009fb90
mov ecx, dword [0x140153780]
movups xmm0, xmmword [str.WtsApi32.dll]
movsd xmm1, qword [0x140153778]
movups xmmword [rax], xmm0
movsd qword [rax + 0x10], xmm1
mov dword [rax + 0x18], ecx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x14009fbeb
lea rdx, str.WTSRegisterSessionNotification
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14009fbef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x14009fc07
mov rcx, qword [rsi + 0x9f8]
xor edx, edx
call rax
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14009fc30
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x230
mov rdi, rcx
xor ecx, ecx
call fcn.1400f1590
cmp eax, 7
jl 0x14009fd01
cmp qword [rdi + 0x9f8], 0
je 0x14009fd01
xor eax, eax
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x206
mov qword [rsp + 0x240], rbx
mov word [rsp + 0x20], ax
call fcn.1400fa4e0
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rax, [rsp + 0x20]
sub rax, 2
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x14009fc94
mov ecx, dword [0x140153780]
movups xmm0, xmmword [str.WtsApi32.dll]
movsd xmm1, qword [0x140153778]
movups xmmword [rax], xmm0
movsd qword [rax + 0x10], xmm1
mov dword [rax + 0x18], ecx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x14009fcf9
lea rdx, str.WTSUnRegisterSessionNotification
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14009fcf0
mov rcx, qword [rdi + 0x9f8]
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbx, qword [rsp + 0x240]
add rsp, 0x230
pop rdi
ret
Function at 0x1400a0b90
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
xor eax, eax
mov rsi, rdx
mov rdi, rcx
mov qword [rcx], rax
mov qword [rsp + 0x90], rax
or rbx, 0xffffffffffffffff
call fcn.14003a220
cmp word [rax], 0
je 0x1400a0c20
xor eax, eax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x40], 0x38
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
call fcn.14003a220
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400a0c20
lea rdx, [rsp + 0x90]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov eax, dword [0x140296fac]
test al, 1
jne 0x1400a0c41
or eax, 1
mov dword [0x140296fac], eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140296fa8], eax
jmp 0x1400a0c47
mov eax, dword [0x140296fa8]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x1400a0c6d
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov ecx, dword [0x140296fa8]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.ole32.dll_CLSIDFromProgID]
xor edx, edx
lea r9, str.c_a2A
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x15]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rdx, qword [rsp + 0x90]
test rdx, rdx
je 0x1400a0cad
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
cmp rbx, 0xffffffffffffffff
je 0x1400a0cbc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
lea r11, [rsp + 0x80]
mov rax, rdi
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400a4f50
Capabilities:
Accept command line arguments

Disassembly:
mov qword [0x140295628], rcx
mov qword [0x140295630], rdx
lea rcx, [0x1402955c0]
mov edx, r9d
mov qword [0x140295638], r8
mov dword [0x140295640], r9d
jmp 0x1400a4f50
push rbx
sub rsp, 0x30
cmp byte [0x1402955ab], 0
mov rbx, rcx
je 0x1400a4f6b
or eax, 0xffffffff
add rsp, 0x30
pop rbx
ret
xor ecx, ecx
mov qword [rsp + 0x40], rdi
call qword [sym.imp.ole32.dll_CoInitialize]
mov edi, eax
mov dword [rsp + 0x50], eax
test eax, eax
jns 0x1400a4fa8
cmp eax, 0x80010106
jne 0x1400a5004
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x1400a4fac
mov eax, edi
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
mov byte [rbx + 0x62], 1
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r8, [rsp + 0x50]
mov rcx, rbx
mov rdx, rax
call fcn.1400a3570
cmp al, 1
jne 0x1400a4ff4
mov eax, dword [rbx + 0x80]
mov r9, qword [rbx + 0x78]
mov r8, qword [rbx + 0x70]
mov rdx, qword [rbx + 0x68]
lea rcx, [0x140295650]
mov dword [rsp + 0x20], eax
call fcn.14009aa00
mov rcx, rbx
call fcn.1400a3a50
mov edi, eax
jmp 0x1400a4ff8
mov edi, dword [rsp + 0x50]
cmp byte [rbx + 0x62], 0
je 0x1400a5004
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret

Function at 0x1400ad620
Capabilities:
Find taskbar

Disassembly:
sub rsp, 0x28
lea rcx, str.Shell_TrayWnd
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x1400ad69b
lea r8, str.TrayNotifyWnd
xor r9d, r9d
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.USER32.dll_FindWindowExW]
mov rbx, rax
test rax, rax
je 0x1400ad696
lea r8, str.SysPager
xor r9d, r9d
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_FindWindowExW]
xor r9d, r9d
xor edx, edx
lea r8, str.ToolbarWindow32
mov rcx, rax
test rax, rax
jne 0x1400ad686
mov rcx, rbx
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
jmp qword [sym.imp.USER32.dll_FindWindowExW]
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret

Function at 0x1400ad9a0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov ecx, 2
mov edi, r8d
call qword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
test eax, eax
jne 0x1400ada21
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400ada21
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x5b4
je 0x1400ada21
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80004005
je 0x1400ada21
cmp dword [rbx + 0x868], 0
je 0x1400ada14
inc dword [rbx + 0x86c]
cmp dword [rbx + 0x86c], 0xa
jb 0x1400ada14
mov rcx, qword [0x140296048]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x47c
call qword [sym.imp.USER32.dll_PostMessageW]
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400b6f70
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x230
mov rbx, rcx
xor ecx, ecx
mov rsi, rdx
call fcn.1400f1590
cmp eax, 0xb
jl 0x1400b709b
mov qword [rsp + 0x240], rbp
lea rcx, [rsp + 0x22]
xor ebp, ebp
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], bp
call fcn.1400fa4e0
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [rsp + 0x20], bp
je 0x1400b7097
lea rdx, str.Charm_Bar
lea rcx, [rsp + 0x20]
call fcn.140100ddc
test eax, eax
jne 0x1400b7097
mov qword [rsp + 0x248], rdi
cmp qword [rbx + 0x448], rbp
je 0x1400b706f
mov rcx, qword [rbx + 0x458]
test rcx, rcx
je 0x1400b7058
mov dword [rsp + 0x250], ebp
mov r8, qword [rcx]
lea rdx, [rsp + 0x250]
call qword [r8 + 0x130]
cmp dword [rsp + 0x250], ebp
je 0x1400b706f
mov rcx, qword [rbx + 0x460]
test rcx, rcx
je 0x1400b7044
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbx + 0x460], rbp
mov rcx, qword [rbx + 0x458]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbx + 0x458], rbp
mov rcx, qword [rbx + 0x448]
lea r8, [rbx + 0x458]
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rax, qword [rbx + 0x458]
mov rdi, qword [rsp + 0x248]
mov rbp, qword [rsp + 0x240]
mov rbx, qword [rsp + 0x258]
add rsp, 0x230
pop rsi
ret
xor eax, eax
jmp 0x1400b707e
xor eax, eax
mov rbx, qword [rsp + 0x258]
add rsp, 0x230
pop rsi
ret