joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004d5ac
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1400c4a20]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, r8
xor ebx, ebx
mov qword [r11 - 0x38], rbx
mov qword [r11 - 0x28], rbx
mov qword [r11 - 0x20], rbx
lea rcx, [r11 - 0x38]
call fcn.1400096ec
nop
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14004d5ef
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rsp + 0x20]
call fcn.140005684
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14004d658
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004d653
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004d672
call fcn.1400222c0
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140080bf0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
call fcn.140065e1c
int3

Function at 0x14004def0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rcx + 8]
mov rbx, rcx
mov qword [rsp + 0x28], rax
lea r8, [0x14004deb0]
and dword [rsp + 0x20], 0
mov r9, rdx
xor edx, edx
xor ecx, ecx
call fcn.14006ba5c
mov qword [rbx], rax
add rsp, 0x30
pop rbx
ret
Function at 0x14004e290
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
push r14
sub rsp, 0x50
test dword [rcx], 0x100
mov r14, rcx
je 0x14004e4c9
mov rax, qword [rcx + 0x10]
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x10], rdi
mov byte [rax], 0
xor dword [rcx], 0x100
je 0x14004e413
mov rbx, qword [rcx + 8]
mov qword [r11 + 0x20], rsi
mov rsi, rbx
cmp rbx, qword [rcx + 0x10]
jae 0x14004e40b
mov qword [r11 + 0x18], rbp
mov qword [r11 - 0x18], r12
xor r12d, r12d
mov qword [r11 - 0x20], r13
lea r13, str.quot
mov qword [r11 - 0x28], r15
lea r15, str.Suucess
nop dword [rax]
mov ecx, dword [r14]
test cl, 2
je 0x14004e343
movzx eax, byte [rbx]
cmp al, 0xd
jne 0x14004e327
cmp byte [rbx + 1], 0xa
mov rax, r12
mov byte [rsi], 0xa
sete al
inc rax
add rbx, rax
jmp 0x14004e3e5
cmp al, 0xa
jne 0x14004e343
cmp byte [rbx + 1], 0xd
mov rax, r12
mov byte [rsi], 0xa
sete al
inc rax
add rbx, rax
jmp 0x14004e3e5
test cl, 1
je 0x14004e3dd
cmp byte [rbx], 0x26
jne 0x14004e3dd
cmp byte [rbx + 1], 0x23
jne 0x14004e39d
xor eax, eax
mov dword [rsp + 0x60], r12d
lea r8, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
mov word [rsp + 0x28], ax
mov rcx, rbx
call fcn.14004e4e0
test rax, rax
je 0x14004e3dd
movsxd rdi, dword [rsp + 0x60]
lea rdx, [rsp + 0x20]
mov r8, rdi
mov rcx, rsi
mov rbx, rax
call fcn.140085820
jmp 0x14004e3ea
mov rdi, r13
movsxd r8, dword [rdi + 8]
lea rcx, [rbx + 1]
mov rdx, qword [rdi]
call fcn.140069d80
test eax, eax
jne 0x14004e3bf
movsxd rax, dword [rdi + 8]
cmp byte [rax + rbx + 1], 0x3b
je 0x14004e3ca
add rdi, 0x10
cmp rdi, r15
jl 0x14004e3a0
jmp 0x14004e3e2
movzx eax, byte [rdi + 0xc]
mov byte [rsi], al
mov eax, dword [rdi + 8]
add eax, 2
cdqe
add rbx, rax
jmp 0x14004e3e5
movzx eax, byte [rbx]
mov byte [rsi], al
inc rbx
mov edi, 1
add rsi, rdi
cmp rbx, qword [r14 + 0x10]
jb 0x14004e300
mov r15, qword [rsp + 0x30]
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x70]
mov byte [rsi], 0
mov rsi, qword [rsp + 0x78]
test byte [r14], 4
je 0x14004e4ad
mov rbx, qword [r14 + 8]
movzx ecx, byte [rbx]
movsx eax, cl
shr eax, 7
test al, 1
jne 0x14004e43c
call fcn.140066af0
test eax, eax
je 0x14004e43c
inc rbx
jmp 0x14004e421
mov qword [r14 + 8], rbx
movzx ecx, byte [rbx]
test cl, cl
je 0x14004e4ad
mov rdi, rbx
nop word [rax + rax]
movsx eax, cl
shr eax, 7
test al, 1
jne 0x14004e498
movzx ecx, cl
call fcn.140066af0
test eax, eax
je 0x14004e498
nop word [rax + rax]
movzx ecx, byte [rbx]
movsx eax, cl
shr eax, 7
test al, 1
jne 0x14004e48e
call fcn.140066af0
test eax, eax
je 0x14004e48b
inc rbx
jmp 0x14004e470
movzx ecx, byte [rbx]
test cl, cl
je 0x14004e4aa
mov byte [rdi], 0x20
inc rdi
movzx eax, byte [rbx]
inc rbx
mov byte [rdi], al
inc rdi
movzx ecx, byte [rbx]
test cl, cl
jne 0x14004e450
mov byte [rdi], 0
and dword [r14], 0x200
mov rax, qword [r14 + 8]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop r14
ret
mov rax, qword [rcx + 8]
add rsp, 0x50
pop r14
ret
Function at 0x1400508f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x140050925
lea r9, str.filename_null_
xor r8d, r8d
lea edx, [rsi + 4]
call fcn.140050a80
mov eax, dword [rbx + 0x6c]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
mov qword [rsp + 0x40], rdi
call fcn.1400507e0
lea r8, [0x1400b38dc]
mov qword [rsp + 0x48], 0
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.14006bcf8
test eax, eax
jne 0x140050a4e
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x140050a4e
mov rcx, rbx
call fcn.1400507e0
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.140067fb4
mov rcx, rdi
call fcn.1400672b8
cmp eax, 0xffffffff
jne 0x140050994
mov rcx, rdi
call fcn.14006bb3c
test eax, eax
jne 0x140050a20
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call fcn.140067fb4
mov rcx, rdi
call fcn.14006c220
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov rsi, rax
call fcn.140067fb4
cmp rsi, 0xffffffffffffffff
jae 0x140050a20
test rsi, rsi
jne 0x1400509ca
lea edx, [rsi + 0xd]
jmp 0x140050a25
lea rcx, [rsi + 1]
call fcn.140081178
mov r9, rdi
mov qword [rbx + 0x98], rax
mov r8, rsi
mov edx, 1
mov rcx, rax
call fcn.140067ce4
cmp rax, rsi
jne 0x140050a20
mov rax, qword [rbx + 0x98]
mov rcx, rbx
mov byte [rsi + rax], 0
call fcn.140050c20
mov rcx, rdi
call fcn.140066f38
mov eax, dword [rbx + 0x6c]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
mov edx, 5
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call fcn.140050a80
mov rcx, rdi
call fcn.140066f38
mov eax, dword [rbx + 0x6c]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea r9, str.filename_s
mov rcx, rbx
lea edx, [r8 + 3]
call fcn.140050a80
mov eax, dword [rbx + 0x6c]
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rsi
ret
Function at 0x140051890
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x240
mov rax, qword [0x1400c4a20]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbp, rcx
test rcx, rcx
je 0x140051a4e
xor ebx, ebx
xor eax, eax
lock cmpxchg dword [0x1400cbbb8], ebx
mov ecx, eax
jne 0x140051914
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140051907
lea rdx, str.RemoveDllDirectory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [rbx + 2]
test rax, rax
jne 0x14005190c
mov ecx, 1
mov eax, ecx
xchg dword [0x1400cbbb8], eax
cmp ecx, 1
jne 0x140051a3b
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call main
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140051a4e
cmp word [rsp + 0x20], bx
je 0x140051a4e
mov rsi, 0xffffffffffffffff
lea rax, [rsp + 0x20]
mov rdi, rsi
mov r12d, ebx
mov r15, rbx
inc rdi
cmp word [rax + rdi*2], bx
jne 0x140051967
mov r13d, 0x5c
test rdi, rdi
je 0x1400519a0
movzx eax, word [rsp + rdi*2 + 0x1e]
mov rbx, rdi
cmp r13w, ax
je 0x1400519a0
mov ecx, 0x2f
cmp cx, ax
je 0x1400519a0
lea r12d, [r13 - 0x5b]
lea rbx, [rdi + 1]
nop dword [rax + rax]
inc rsi
cmp word [rbp + rsi*2], r15w
jne 0x1400519a0
add rbx, rsi
je 0x140051a4e
lea rbx, [rbx*2 + 2]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x140051a4e
test rdi, rdi
je 0x1400519f4
lea r8, [rdi + rdi]
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.140085820
mov r15, rdi
test r12d, r12d
je 0x140051a01
mov word [r14 + r15*2], r13w
inc r15
test rsi, rsi
je 0x140051a16
lea r8, [rsi + rsi]
mov rdx, rbp
lea rcx, [r14 + r15*2]
call fcn.140085820
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, rbx
jmp 0x140051a50
xor edx, edx
mov r8d, 0x800
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x140051a50
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140080bf0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140051f10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov qword [rcx + 8], 0
lea rax, vtable.zoom_windows_util::AutoLockFile.0
mov qword [rcx], rax
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
je 0x140051f77
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140051f77
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rdi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400522a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
lea eax, [rcx - 1]
xor ebp, ebp
mov rsi, r8
mov rbx, rdx
mov edi, ecx
test eax, 0xfffffff7
jne 0x1400523c1
test rdx, rdx
je 0x1400523c1
mov r9, rdx
nop dword [rax + rax]
movzx eax, word [r9]
add r9, 2
test ax, ax
jne 0x1400522e0
sub r9, rbx
lea rdx, str.http:
sar r9, 1
mov rcx, rdx
dec r9
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x140052300
sub rcx, rdx
sar rcx, 1
lea rax, [rcx - 1]
cmp r9, rax
jb 0x14005234e
mov rcx, rdx
nop
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x140052320
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, ebp
sete cl
test ecx, ecx
jne 0x1400524f3
mov rcx, rbx
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x140052351
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 0x140052371
sub rcx, r9
sar rcx, 1
lea rax, [rcx - 1]
cmp rdx, rax
jb 0x1400523c1
mov rcx, r9
nop
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x140052390
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, ebp
sete cl
test ecx, ecx
jne 0x1400524f3
cmp edi, 3
jne 0x140052409
test rbx, rbx
je 0x1400523f2
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x1400524f3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400523f2
test al, 0x10
je 0x1400524f3
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
cmp edi, 2
jne 0x14005242b
test rbx, rbx
je 0x1400523f2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400523f2
test al, 0x10
jne 0x1400524f3
jmp 0x1400523f2
cmp edi, 4
jne 0x14005244b
test rsi, rsi
je 0x1400523f2
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x1400524f3
mov rcx, rsi
jmp 0x1400523df
cmp edi, 5
jne 0x1400524ce
test rbx, rbx
je 0x1400523f2
mov rcx, rbx
nop dword [rax + rax]
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x140052460
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 0x140052480
sub rcx, r9
sar rcx, 1
lea rax, [rcx - 1]
cmp rdx, rax
jb 0x1400523f2
mov rcx, r9
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x1400524a2
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 bpl
test ebp, ebp
jmp 0x1400524ed
lea eax, [rdi - 6]
cmp eax, 2
ja 0x1400523f2
call fcn.1400521c0
test eax, eax
jne 0x1400524f3
mov rcx, rbx
call fcn.140055b30
test eax, eax
je 0x1400523f2
mov eax, 1
jmp 0x1400523f4
Function at 0x140052500
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x1400c4a20]
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 0x14005258f
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.140080bf0
add rsp, 0x80
pop rbx
ret
Function at 0x140052810
Capabilities:
Create process on windows
Find taskbar

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1400c4a20]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, qword [rsp + 0xc0]
mov r12, r8
mov r14, qword [rsp + 0xc8]
mov r13, rdx
mov r15d, dword [rsp + 0xd0]
mov r8, rsi
mov rdx, r9
mov rdi, r9
mov ebp, ecx
call fcn.1400522a0
test eax, eax
jne 0x140052868
mov eax, VariantTimeToDosDateTime
jmp 0x1400528d8
mov qword [rsp + 0x58], rbx
call fcn.1400521c0
test eax, eax
jne 0x1400528b7
call fcn.140052500
test eax, eax
je 0x1400528b7
cmp ebp, 7
je 0x1400528f5
lea eax, [rbp - 1]
test eax, 0xfffffff7
jne 0x1400528b7
mov r9, r14
mov dword [rsp + 0x20], r15d
mov r8, rsi
mov rdx, rdi
mov rcx, r12
call fcn.1400596d0
mov ebx, eax
test eax, eax
jne 0x140052a24
cmp ebp, 1
jne 0x140052a24
mov dword [rsp + 0x28], r15d
mov r9, rsi
mov r8, rdi
mov qword [rsp + 0x20], r14
mov rdx, r12
mov rcx, r13
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rbx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140080bf0
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test rdi, rdi
jne 0x14005290b
test rsi, rsi
jne 0x14005290b
xor ebx, ebx
neg ebx
sbb rax, rax
and eax, 0x21
jmp 0x1400528d3
call fcn.140052500
test eax, eax
jne 0x140052946
mov dword [rsp + 0x28], r15d
lea rdx, str.open
mov r9, rsi
mov qword [rsp + 0x20], r14
mov r8, rdi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ebx, ebx
cmp rax, 0x20
seta bl
neg ebx
sbb rax, rax
and eax, 0x21
jmp 0x1400528d3
xor ebx, ebx
lea rcx, str.Shell_TrayWnd
xor edx, edx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x140052a24
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x30]
test r8d, r8d
je 0x140052a24
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbp, rax
test rax, rax
je 0x140052a24
lea r8, [rsp + 0x38]
mov rcx, rax
lea edx, [rbx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rcx, rbp
test eax, eax
je 0x140052a1e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9d, [rbx + 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 0x140052a1e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x40]
test rbp, rbp
je 0x140052a24
mov r9d, r15d
mov qword [rsp + 0x20], rbp
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call fcn.1400525b0
mov ebx, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
neg ebx
sbb rax, rax
and eax, 0x21
jmp 0x1400528d3
Function at 0x140052fc0
Capabilities:
Check if file exists
Create directory
Delete directory
Get file attributes
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x1400c4a20]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, r8
mov rdi, rdx
test rdx, rdx
je 0x140053189
test rbx, rbx
je 0x140053189
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor edx, edx
mov r8d, 0x105
lea rcx, [rsp + 0x40]
call main
mov r8, rdi
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.140066d00
mov r8, rbx
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.140066d00
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x14005305f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140053189
lea rcx, str._ProductPathHelper::RecursiveRemoveDirA__Path_is:
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [0x1400b3d68]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rsp + 0x40]
call fcn.140059400
mov rbx, rax
test rax, rax
je 0x140053189
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140008b00
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rbx, [rsp + 0x20]
xor esi, esi
cmp qword [rsp + 0x38], 8
jb 0x1400530e1
mov rbx, qword [rsp + 0x20]
test rbx, rbx
jne 0x1400530e1
lea ecx, [rsi + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, esi
jmp 0x14005312d
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400530f3
lea edi, [rax + 1]
jmp 0x14005312d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14005310d
and eax, 0x410
cmp eax, 0x410
je 0x140053122
lea rdx, [0x140052a40]
mov rcx, rbx
call fcn.140052c00
mov edi, eax
test eax, eax
je 0x14005312d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, eax
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14005316b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140053166
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400531b0
call fcn.1400222c0
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], si
test edi, edi
je 0x140053189
mov eax, 1
jmp 0x14005318b
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140080bf0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140065e1c
nop
int3
Function at 0x140053f10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x430
mov rax, qword [0x1400c4a20]
xor rax, rsp
mov qword [rsp + 0x420], rax
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x140053fa2
test rdx, rdx
je 0x140053fa2
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x400
call main
mov r8, rdi
lea rcx, [rsp + 0x20]
mov edx, 0x3ff
call fcn.140066bc8
lea r8, [0x1400a4fd4]
mov edx, 0x3ff
lea rcx, [rsp + 0x20]
call fcn.140066d00
mov r8, rbx
lea rcx, [rsp + 0x20]
mov edx, 0x3ff
call fcn.140066d00
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140053fa2
mov eax, 1
jmp 0x140053fa4
xor eax, eax
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.140080bf0
mov rbx, qword [rsp + 0x450]
add rsp, 0x430
pop rdi
ret

Function at 0x140053fd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x7a0]
sub rsp, 0x8a0
mov rax, qword [0x1400c4a20]
xor rax, rsp
mov qword [rbp + 0x790], rax
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x140054117
test rdx, rdx
je 0x140054117
xor edx, edx
lea rcx, [rbp - 0x70]
mov r8d, 0x800
call main
mov r8, rdi
lea rcx, [rbp - 0x70]
mov edx, 0x3ff
call fcn.140066840
lea r8, [0x1400a6488]
mov edx, 0x3ff
lea rcx, [rbp - 0x70]
call fcn.1400668a8
mov r8, rbx
lea rcx, [rbp - 0x70]
mov edx, 0x3ff
call fcn.1400668a8
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140054117
xor eax, eax
lea r9, [rsp + 0x44]
mov word [rsp + 0x4c], ax
lea r8, [rsp + 0x48]
mov word [rsp + 0x48], ax
lea rdx, [rsp + 0x4c]
mov word [rsp + 0x44], ax
lea rcx, [rbp - 0x70]
mov word [rsp + 0x40], ax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.140051a90
test al, al
je 0x140054117
movzx eax, word [rsp + 0x40]
lea r8, [0x1400abff0]
movzx ecx, word [rsp + 0x44]
xorps xmm0, xmm0
movzx edx, word [rsp + 0x48]
movzx r9d, word [rsp + 0x4c]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x20], edx
mov edx, 0x40
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
call fcn.140001378
lea rdx, str.6.2.0.46690
lea rcx, [rsp + 0x50]
call fcn.140066940
test eax, eax
jne 0x140054117
lea rcx, [rbp - 0x70]
call fcn.140055b30
jmp 0x140054119
xor eax, eax
mov rcx, qword [rbp + 0x790]
xor rcx, rsp
call fcn.140080bf0
lea r11, [rsp + 0x8a0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140054a20
Capabilities:
Check if file exists
Delete directory
Get file attributes
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x140054a36
xor eax, eax
add rsp, 0x20
pop rbx
ret
lea rcx, str._CZoomProductPathHelper::RecursiveRemoveDirA__Path_is:
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140054a64
mov eax, 1
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140054a7e
and eax, 0x410
cmp eax, 0x410
je 0x140054a91
lea rdx, [0x140052a40]
mov rcx, rbx
call fcn.140052c00
test eax, eax
je 0x140054aa0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add rsp, 0x20
pop rbx
ret

Function at 0x140055d90
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400c4a20]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x140055e30
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140055e30
xor edx, edx
mov dword [rsp + 0x20], 0x238
mov r8d, 0x234
lea rcx, [rsp + 0x24]
call main
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140055e20
nop
mov rdx, rsi
lea rcx, [rsp + 0x20]
call rdi
test eax, eax
jne 0x140055e20
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140055e00
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140055e32
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140080bf0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret