joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400127f8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x140036010]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x60], rdi
xor edx, edx
lea r8d, [rdi + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14001287c
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14001287c
call fcn.140011ec8
mov ebx, eax
jmp 0x140012987
mov r8, r15
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14001289d
call fcn.140011ec8
jmp 0x140012976
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140012893
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x1400128d8
mov ebx, 0x8007000e
jmp 0x140012978
mov ecx, eax
test eax, eax
je 0x14001290a
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x1400129bf
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14001290a
lea rcx, [rsp + 0x60]
call fcn.140017434
jmp 0x140012914
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x140012926
cmp qword [rsp + 0x60], rdi
je 0x1400128ce
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140012893
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov word [rax + rcx*2], di
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.140013654
mov ebx, eax
test rsi, rsi
je 0x140012987
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x14001299e
lea rcx, [rsp + 0x60]
call fcn.140017428
nop
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14001fc80
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.140011e1c
int3
Function at 0x140014c3c
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x140036010]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rcx
lea rcx, [rsp + 0x48]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CFileName::constructor_void____ptr64]
nop
mov edx, 6
lea r8d, [rdx - 5]
lea rcx, [rsp + 0x48]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CFileName::GetSpecialDirectory_enum_Cmm::CFileName::SpecialFolder__int____ptr64]
lea rcx, [rsp + 0x48]
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____ptr64___cdecl_Cmm::CStringT_wchar_t_::operator_wchar_t_const____ptr64____ptr64]
lea rdx, [0x140026918]
mov rcx, rbx
call qword [reloc.Cmmlib.dll___Y__CStringT__W_Cmm__QEAAAEAV01_PEB_W_Z]
lea rdx, str.logs
mov rcx, rbx
call qword [reloc.Cmmlib.dll___Y__CStringT__W_Cmm__QEAAAEAV01_PEB_W_Z]
lea rdx, [0x140026918]
mov rcx, rbx
call qword [reloc.Cmmlib.dll___Y__CStringT__W_Cmm__QEAAAEAV01_PEB_W_Z]
mov rcx, rbx
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_void____ptr64]
nop
lea rcx, [rsp + 0x20]
call fcn.140014890
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____ptr64___cdecl_Cmm::CStringT_wchar_t_::operator_class_Cmm::CStringT_wchar_t__const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CFileName::destructor_void____ptr64]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14001fc80
add rsp, 0x80
pop rbx
ret
Function at 0x1400158a8
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x140036010]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rdx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rax
mov ebx, 0x208
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x180]
call sub.VCRUNTIME140.dll_memset
mov rcx, rdi
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov rdx, rax
mov ebx, 0x104
mov r8d, ebx
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
mov rcx, rsi
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov rdx, rax
mov r8d, ebx
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 2
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x180]
mov qword [rsp + 0x38], rax
mov eax, 0x210
mov word [rsp + 0x40], ax
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
mov rcx, rsi
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
mov eax, ebx
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.14001fc80
mov rbx, qword [rsp + 0x4d0]
add rsp, 0x4a0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140019560
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x4e70
call fcn.140021190
sub rsp, rax
mov rax, qword [0x140036010]
xor rax, rsp
mov qword [rsp + 0x4e60], rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x3e80
call sub.VCRUNTIME140.dll_memset
xor ebx, ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9, [rsp + 0x20]
mov r8d, 0x3e80
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x140019676
lea rax, [rsp + 0x3ec0]
mov dword [rsp + 0x2c], ebx
mov qword [rsp + 0x30], rax
mov edi, 0xfa0
mov eax, dword [rsp + 0x20]
mov word [rsp + 0x2a], di
test rax, 0xfffffffffffffff8
jbe 0x14001966f
nop
mov r8, rdi
lea rcx, [rsp + 0x3ec0]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + rbx*8 + 0x40]
lea rdx, [rsp + 0x3ec0]
mov r8d, 0x7cf
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x3ec0]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140019630
mov r8, qword [rsp + rbx*8 + 0x40]
lea rdx, [rsp + 0x28]
add ax, ax
lea rcx, [0x140036250]
xor r9d, r9d
mov word [rsp + 0x28], ax
call fcn.1400196a0
test eax, eax
je 0x140019676
mov eax, dword [rsp + 0x20]
inc rbx
shr rax, 3
cmp rbx, rax
jb 0x1400195f0
mov eax, 1
jmp 0x140019678
xor eax, eax
mov rcx, qword [rsp + 0x4e60]
xor rcx, rsp
call fcn.14001fc80
mov rbx, qword [rsp + 0x4e80]
add rsp, 0x4e70
pop rdi
ret
Function at 0x14001a350
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x14001a5ac
push rdi
sub rsp, 0x90
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x18
lea r8, [rsp + 0x30]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.PSAPI.DLL_GetModuleInformation]
test eax, eax
je 0x14001a5a4
mov eax, 0x5a4d
mov qword [rsp + 0x80], r15
mov r15d, dword [rsp + 0x38]
cmp word [rdi], ax
jne 0x14001a59c
movsxd rcx, dword [rdi + 0x3c]
lea rax, [rcx + 0x108]
cmp rax, r15
jae 0x14001a59c
cmp dword [rcx + rdi], 0x4550
mov qword [rsp + 0xb0], rbp
lea rbp, [rcx + rdi]
jne 0x14001a594
movzx eax, word [rbp + 4]
mov ecx, 0x14c
mov qword [rsp + 0xb8], rsi
xor esi, esi
mov qword [rsp + 0x88], r14
cmp cx, ax
jne 0x14001a405
xor r14d, r14d
jmp 0x14001a437
mov ecx, 0x200
mov r8d, 0xaa64
cmp cx, ax
je 0x14001a429
mov ecx, 0x8664
cmp cx, ax
je 0x14001a429
cmp r8w, ax
jne 0x14001a584
cmp r8w, ax
mov r14d, 1
sete sil
mov qword [rsp + 0xa8], rbx
mov ebx, dword [rbp + 0x28]
add rbx, rdi
je 0x14001a57c
cmp rbx, rdi
jbe 0x14001a57c
lea rax, [r15 + rdi]
cmp rbx, rax
jae 0x14001a57c
xorps xmm0, xmm0
lea rdx, [rsp + 0x48]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14001a57c
test dword [rsp + 0x68], 0x1000
je 0x14001a57c
test dword [rsp + 0x70], 0x1000000
je 0x14001a57c
mov eax, dword [rsp + 0x6c]
xor ecx, ecx
test al, 0x10
jne 0x14001a4c2
test al, 0x20
jne 0x14001a4c2
test al, 0x40
jne 0x14001a4c2
test al, al
jns 0x14001a4c7
mov ecx, 1
test ecx, ecx
je 0x14001a57c
mov r9d, r14d
mov dword [rsp + 0x20], esi
mov r8d, r15d
mov rdx, rdi
mov rcx, rbp
call fcn.14001ac00
mov edx, 0x14
mov dword [rsp + 0xa0], 0
lea r9, [rsp + 0xa0]
mov rcx, rbx
lea r8d, [rdx + 0x2c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14001a57c
test r14d, r14d
jne 0x14001a526
mov eax, dword [0x140036060]
mov dword [rbx], eax
movzx eax, byte [0x140036064]
mov byte [rbx + 4], al
jmp 0x14001a54a
test esi, esi
je 0x14001a536
mov rax, qword [0x140036058]
mov qword [rbx], rax
jmp 0x14001a54a
movzx eax, word [0x140036054]
mov word [rbx], ax
movzx eax, byte [0x140036056]
mov byte [rbx + 2], al
mov r8d, dword [rsp + 0xa0]
lea r9, [rsp + 0xa0]
mov edx, 0x14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov rbx, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0xb8]
mov r14, qword [rsp + 0x88]
mov rbp, qword [rsp + 0xb0]
mov r15, qword [rsp + 0x80]
add rsp, 0x90
pop rdi
ret
Function at 0x14001d3a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea eax, [rcx - 1]
xor esi, esi
mov rbx, rdx
mov edi, ecx
test eax, 0xfffffff7
jne 0x14001d4b1
test rdx, rdx
je 0x14001d4b1
mov r8, rdx
movzx eax, word [r8]
add r8, 2
test ax, ax
jne 0x14001d3d0
sub r8, rbx
lea rdx, str.http:
sar r8, 1
mov rcx, rdx
dec r8
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x14001d3f0
sub rcx, rdx
sar rcx, 1
lea rax, [rcx - 1]
cmp r8, rax
jb 0x14001d43e
mov rcx, rdx
nop
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x14001d410
sub rcx, rdx
sar rcx, 1
lea r8, [rcx - 1]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
mov ecx, esi
sete cl
test ecx, ecx
jne 0x14001d5dc
mov rcx, rbx
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x14001d441
sub rcx, rbx
lea r9, str.https:
sar rcx, 1
lea rdx, [rcx - 1]
mov rcx, r9
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x14001d461
sub rcx, r9
sar rcx, 1
lea rax, [rcx - 1]
cmp rdx, rax
jb 0x14001d4b1
mov rcx, r9
nop
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x14001d480
sub rcx, r9
mov rdx, r9
sar rcx, 1
lea r8, [rcx - 1]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
mov ecx, esi
sete cl
test ecx, ecx
jne 0x14001d5dc
cmp edi, 3
jne 0x14001d4f4
test rbx, rbx
je 0x14001d4e2
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x14001d5dc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001d4e2
test al, 0x10
je 0x14001d5dc
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp edi, 2
jne 0x14001d526
test rbx, rbx
je 0x14001d4e2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001d4e2
test al, 0x10
jne 0x14001d5dc
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp edi, 5
jne 0x14001d5ae
test rbx, rbx
je 0x14001d4e2
mov rcx, rbx
nop word [rax + rax]
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x14001d540
sub rcx, rbx
lea r9, str.mailto:
sar rcx, 1
lea rdx, [rcx - 1]
mov rcx, r9
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x14001d560
sub rcx, r9
sar rcx, 1
lea rax, [rcx - 1]
cmp rdx, rax
jb 0x14001d4e2
mov rcx, r9
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x14001d582
sub rcx, r9
mov rdx, r9
sar rcx, 1
lea r8, [rcx - 1]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
sete sil
test esi, esi
jmp 0x14001d5d6
lea eax, [rdi - 6]
cmp eax, 2
ja 0x14001d4e2
call fcn.14001d2c0
test eax, eax
jne 0x14001d5dc
lea r9d, [rax + 1]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.14001dd40
test eax, eax
je 0x14001d4e2
mov rbx, qword [rsp + 0x30]
mov eax, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14001d600
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x140036010]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ebx, ebx
mov word [rsp + 0x6c], 0x500
lea rax, [rsp + 0x60]
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x68], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14001d68f
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
cmp dword [rsp + 0x70], ebx
mov eax, 1
mov rcx, qword [rsp + 0x60]
cmovne ebx, eax
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, ebx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14001fc80
add rsp, 0x80
pop rbx
ret
Function at 0x14001d830
Capabilities:
Create process on windows
Find taskbar

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140036010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdx, r9
mov rdi, r9
mov rbp, r8
mov esi, ecx
call fcn.14001d3a0
test eax, eax
jne 0x14001d862
mov eax, 0xb
jmp 0x14001d8cb
mov qword [rsp + 0x78], rbx
call fcn.14001d2c0
test eax, eax
jne 0x14001d8a6
call fcn.14001d600
test eax, eax
je 0x14001d8a6
cmp esi, 7
je 0x14001d8e0
lea eax, [rsi - 1]
test eax, 0xfffffff7
jne 0x14001d8a6
mov rdx, rdi
mov rcx, rbp
call fcn.14001f480
mov ebx, eax
test eax, eax
jne 0x14001da02
cmp esi, 1
jne 0x14001da02
xor ebx, ebx
mov dword [rsp + 0x28], 1
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov r8, rdi
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001fc80
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
test rdi, rdi
jne 0x14001d8f1
xor ebx, ebx
neg ebx
sbb rax, rax
and eax, 0x21
jmp 0x14001d8c6
call fcn.14001d600
xor ebx, ebx
test eax, eax
jne 0x14001d92f
mov dword [rsp + 0x28], 1
lea rdx, str.open
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov r8, rdi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
seta bl
neg ebx
sbb rax, rax
and eax, 0x21
jmp 0x14001d8c6
xor edx, edx
mov dword [rsp + 0x30], ebx
lea rcx, str.Shell_TrayWnd
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x14001da02
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x30]
test r8d, r8d
je 0x14001da02
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x14001da02
lea r8, [rsp + 0x38]
mov edx, 2
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rcx, rsi
test eax, eax
je 0x14001d9fc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov r9d, 2
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov rcx, qword [rsp + 0x38]
test eax, eax
je 0x14001d9fc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x40]
test rsi, rsi
je 0x14001da02
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call fcn.14001d6b0
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
neg ebx
sbb rax, rax
and eax, 0x21
jmp 0x14001d8c6
Function at 0x14001e180
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x140036010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14003bce4], eax
jle 0x14001e2f0
lea rcx, [0x14003bce4]
call fcn.14001fe28
cmp dword [0x14003bce4], 0xffffffff
jne 0x14001e2f0
xor edi, edi
mov qword [0x14003bd10], rdi
mov qword [0x14003bd20], rdi
mov qword [0x14003bd28], rdi
mov qword [0x14003bd20], rdi
mov qword [0x14003bd28], 7
mov word [0x14003bd10], di
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140025320]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
lea rbx, [0x14003bd10]
test eax, eax
js 0x14001e253
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x14001e268
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14001e240
mov rcx, rbx
call fcn.14001b830
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14001e268
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsp + 0x20], rdi
mov rcx, qword [0x14003bd20]
test rcx, rcx
je 0x14001e2d3
mov rax, rbx
mov r9, qword [0x14003bd10]
mov rdx, qword [0x14003bd28]
cmp rdx, 8
cmovae rax, r9
movzx r8d, word [rax + rcx*2 - 2]
cmp r8w, 0x5c
je 0x14001e2d3
cmp r8w, 0x2f
je 0x14001e2d3
cmp rcx, rdx
jae 0x14001e2c5
lea rax, [rcx + 1]
mov qword [0x14003bd20], rax
mov rax, rbx
cmp rdx, 8
cmovae rax, r9
mov dword [rax + rcx*2], 0x5c
jmp 0x14001e2d3
mov r9d, 0x5c
mov rcx, rbx
call fcn.14001ef30
lea rcx, [0x140022f10]
call fcn.140020328
lea rcx, [0x14003bce4]
call fcn.14001fdc8
mov rax, rbx
jmp 0x14001e2f7
lea rax, [0x14003bd10]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14001fc80
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14001e310
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x140036010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14003bce0], eax
jle 0x14001e480
lea rcx, [0x14003bce0]
call fcn.14001fe28
cmp dword [0x14003bce0], 0xffffffff
jne 0x14001e480
xor edi, edi
mov qword [0x14003bcc0], rdi
mov qword [0x14003bcd0], rdi
mov qword [0x14003bcd8], rdi
mov qword [0x14003bcd0], rdi
mov qword [0x14003bcd8], 7
mov word [0x14003bcc0], di
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140025340]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
lea rbx, [0x14003bcc0]
test eax, eax
js 0x14001e3e3
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x14001e3f8
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14001e3d0
mov rcx, rbx
call fcn.14001b830
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14001e3f8
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsp + 0x20], rdi
mov rcx, qword [0x14003bcd0]
test rcx, rcx
je 0x14001e463
mov rax, rbx
mov r9, qword [0x14003bcc0]
mov rdx, qword [0x14003bcd8]
cmp rdx, 8
cmovae rax, r9
movzx r8d, word [rax + rcx*2 - 2]
cmp r8w, 0x5c
je 0x14001e463
cmp r8w, 0x2f
je 0x14001e463
cmp rcx, rdx
jae 0x14001e455
lea rax, [rcx + 1]
mov qword [0x14003bcd0], rax
mov rax, rbx
cmp rdx, 8
cmovae rax, r9
mov dword [rax + rcx*2], 0x5c
jmp 0x14001e463
mov r9d, 0x5c
mov rcx, rbx
call fcn.14001ef30
lea rcx, [0x140022f80]
call fcn.140020328
lea rcx, [0x14003bce0]
call fcn.14001fdc8
mov rax, rbx
jmp 0x14001e487
lea rax, [0x14003bcc0]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14001fc80
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140001794
Capabilities:
Parse pe header

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

Function at 0x140004e58
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 0x140004ec7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004ec7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004ec7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004ec7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004ec7
cmp dword [rcx + 0x84], 0xe
jbe 0x140004ec7
cmp dword [rcx + 0xf8], 0
je 0x140004ec7
mov ecx, ebx
call fcn.140004f78
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.140004d54
nop
cmp dword [rbp + 0x20], 0
je 0x140004f15
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140004f20
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140004e58

Function at 0x14000505c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140004e58
Function at 0x14000811c
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 0x14000814c
xor eax, eax
jmp 0x14000820f
mov rbp, rbx
cmp word [rax], si
je 0x140008171
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140008158
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140008154
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.14000803c
movsxd r14, eax
test eax, eax
jne 0x1400081af
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140008145
mov rcx, r14
call fcn.140008ff8
mov rdi, rax
test rax, rax
jne 0x1400081c8
xor ecx, ecx
call fcn.14000669c
jmp 0x1400081a4
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.14000803c
test eax, eax
jne 0x1400081f9
mov rcx, rdi
call fcn.14000669c
jmp 0x140008203
xor ecx, ecx
call fcn.14000669c
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