joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140047820
Capabilities:
Copy file
Get file attributes
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x7b0]
sub rsp, 0x8b0
mov rax, qword [0x1400bba20]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
xor esi, esi
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x1400479a1
test rdx, rdx
je 0x1400479a1
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x14004787c
mov al, 1
jmp 0x1400479a3
mov r14d, 0x412
lea rcx, [rsp + 0x60]
mov r8d, r14d
xor edx, edx
call main
mov r8d, r14d
lea rcx, [rbp + 0x380]
xor edx, edx
call main
mov r8, rdi
lea rcx, [rsp + 0x60]
mov edx, 0x208
call fcn.140063bf0
mov rcx, rdi
call fcn.14005e824
cdqe
lea rcx, [rax + rax]
cmp rcx, r14
jae 0x1400479ca
lea rax, [rax*2 + 2]
mov word [rsp + rcx + 0x60], si
cmp rax, r14
jae 0x1400479ca
mov r8, rbx
mov word [rsp + rax + 0x60], si
mov edx, 0x208
lea rcx, [rbp + 0x380]
call fcn.140063bf0
mov rcx, rbx
call fcn.14005e824
cdqe
lea rcx, [rax + rax]
cmp rcx, r14
jae 0x1400479ca
lea rax, [rax*2 + 2]
mov word [rbp + rcx + 0x380], si
cmp rax, r14
jae 0x1400479ca
mov word [rbp + rax + 0x380], si
lea rcx, [rsp + 0x20]
xor eax, eax
xorps xmm0, xmm0
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x60]
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x380]
mov qword [rsp + 0x38], rax
lea eax, [r14 + 2]
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x28], 2
movups xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x40], ax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [rsp + 0x44], esi
jne 0x1400479a1
test eax, eax
jne 0x1400479a1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x1400479a1
mov rcx, rdi
call fcn.140046c64
jmp 0x140047875
xor al, al
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.1400793d0
lea r11, [rsp + 0x8b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.1400797c4
int3
Function at 0x1400479d0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x40
xor edi, edi
test rcx, rcx
je 0x140047aec
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 1]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140047aec
lea r9, [rbp + 0x28]
mov word [rbp + 0x20], di
lea r8d, [rdi + 2]
mov dword [rbp + 0x28], edi
lea rdx, [rbp + 0x20]
mov qword [rsp + 0x20], rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140047ae3
cmp dword [rbp + 0x28], 2
jne 0x140047ae3
mov eax, 0x5a4d
cmp word [rbp + 0x20], ax
jne 0x140047ae3
xor r9d, r9d
lea edx, [rdi + 0x3c]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rbp + 0x28]
mov qword [rsp + 0x20], rdi
lea r8d, [rdi + 2]
mov rcx, rbx
lea rdx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140047ae3
cmp dword [rbp + 0x28], 2
jne 0x140047ae3
movzx edx, word [rbp + 0x20]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rbp + 0x28]
mov dword [rbp + 0x30], edi
lea r8d, [rdi + 4]
mov qword [rsp + 0x20], rdi
lea rdx, [rbp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140047ae3
cmp dword [rbp + 0x28], 4
jne 0x140047ae3
cmp dword [rbp + 0x30], 0x4550
jne 0x140047ae3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [rdi + 1]
jmp 0x140047aee
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret
Function at 0x14004d7a0
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x270]
sub rsp, 0x370
mov rax, qword [0x1400bba20]
xor rax, rsp
mov qword [rbp + 0x260], rax
mov rbx, rcx
cmp dword [rcx + 0x448], 0
jne 0x14004d836
or ebx, 0xffffffff
mov r8d, ebx
lea rdx, [0x14009f26c]
lea rcx, [rbp + 0x40]
call fcn.140029464
nop
mov r8d, ebx
lea rdx, str.Operation_type_cannot_be_NONE
lea rcx, [rsp + 0x30]
call fcn.140029464
nop
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x30]
lea edx, [rbx + 0xd]
mov ecx, 0x2712
call fcn.140045e64
nop
lea rcx, [rsp + 0x30]
call fcn.140029560
nop
lea rcx, [rbp + 0x40]
jmp 0x14004d993
add rcx, 0x118
call fcn.140029764
test al, al
jne 0x14004d939
lea rcx, [rbx + 8]
call fcn.140029764
test al, al
jne 0x14004d939
lea rdx, [rbx + 0x228]
lea rcx, [rbp + 0x150]
call fcn.1400294bc
nop
lea rdx, [rbx + 8]
lea rcx, [rbp + 0x150]
call fcn.14002991c
mov ecx, dword [rbx + 0x448]
sub ecx, 1
jne 0x14004d930
lea rcx, [rbp + 0x150]
call fcn.1400295e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14004d930
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14004d930
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [case.0x14002b591.0]
test al, al
jne 0x14004d930
or ebx, 0xffffffff
mov r8d, ebx
lea rdx, [0x14009f26c]
lea rcx, [rsp + 0x30]
call fcn.140029464
nop
mov r8d, ebx
lea rdx, str.DeleteFile_Failed
lea rcx, [rbp + 0x40]
call fcn.140029464
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x40]
lea edx, [rbx + 0xd]
mov ecx, 0x2717
call fcn.140045e64
nop
lea rcx, [rbp + 0x40]
call fcn.140029560
nop
lea rcx, [rsp + 0x30]
call fcn.140029560
nop
lea rcx, [rbp + 0x150]
jmp 0x14004d993
or ebx, 0xffffffff
mov r8d, ebx
lea rdx, [0x14009f26c]
lea rcx, [rsp + 0x30]
call fcn.140029464
nop
mov r8d, ebx
lea rdx, str.File_ops_src_and_name_cannot_be_empty
lea rcx, [rbp + 0x40]
call fcn.140029464
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp + 0x40]
lea edx, [rbx + 0xd]
mov ecx, 0x2712
call fcn.140045e64
nop
lea rcx, [rbp + 0x40]
call fcn.140029560
nop
lea rcx, [rsp + 0x30]
call fcn.140029560
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.1400793d0
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14004e688
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x270]
sub rsp, 0x370
mov rax, qword [0x1400bba20]
xor rax, rsp
mov qword [rbp + 0x260], rax
mov r14, r8
mov rbx, rcx
xor dil, dil
mov rdx, qword [rcx]
add rdx, 0x118
lea rcx, [rbp + 0x150]
call fcn.1400294bc
nop
mov rdx, qword [rbx]
add rdx, 8
lea rcx, [rbp + 0x150]
call fcn.14002991c
lea rcx, [rbp + 0x150]
call fcn.1400295e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or r8d, 0xffffffff
lea rcx, [rsp + 0x30]
cmp eax, 0xffffffff
jne 0x14004e769
lea rdx, [0x14009f26c]
call fcn.140029464
nop
or r8d, 0xffffffff
lea rdx, str.FileOpType_Unzip__Failed_to_pass_security_check__File_not_exist
lea rcx, [rbp + 0x40]
call fcn.140029464
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x40]
mov edx, 6
mov ecx, 0x2713
call fcn.140045e64
nop
lea rcx, [rbp + 0x40]
call fcn.140029560
nop
lea rcx, [rsp + 0x30]
call fcn.140029560
jmp 0x14004e7fc
mov rdx, r14
call fcn.140029464
nop
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0x150]
call fcn.14004e830
mov bl, al
lea rcx, [rsp + 0x30]
call fcn.140029560
test bl, bl
jne 0x14004e7f9
or r8d, 0xffffffff
lea rdx, [0x14009f26c]
lea rcx, [rbp + 0x40]
call fcn.140029464
nop
or r8d, 0xffffffff
lea rdx, str.FileOpType_Unzip__Failed_to_pass_security_check
lea rcx, [rsp + 0x30]
call fcn.140029464
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x30]
mov edx, 6
mov ecx, 0x2713
call fcn.140045e64
nop
lea rcx, [rsp + 0x30]
call fcn.140029560
nop
lea rcx, [rbp + 0x40]
jmp 0x14004e75f
mov dil, 1
lea rcx, [rbp + 0x150]
call fcn.140029560
mov al, dil
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.1400793d0
mov rbx, qword [rsp + 0x398]
add rsp, 0x370
pop r14
pop rdi
pop rbp
ret
Function at 0x140050fa8
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1360]
mov eax, 0x1460
call fcn.14007a310
sub rsp, rax
mov rax, qword [0x1400bba20]
xor rax, rsp
mov qword [rbp + 0x1350], rax
mov rdi, rcx
call fcn.140029770
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r8, [rsp + 0x20]
mov edx, 0x1000
lea rcx, [rsp + 0x30]
call qword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x14005105b
mov r9d, 0x1ba
lea r8, str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerNoMSIInstallerZoomProductUtil.cpp
lea edx, [rax + 1]
lea rcx, [rsp + 0x28]
call fcn.14000b3b8
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str._FindRunningInstance__failed_to_enum_processes__error_code:
lea rcx, [0x1400be0f0]
call fcn.14000475c
mov rcx, rax
mov edx, ebx
call fcn.1400024b0
nop
lea rcx, [rsp + 0x28]
call fcn.14000b5e4
xor eax, eax
jmp 0x1400511b8
mov esi, dword [rsp + 0x20]
shr esi, 2
xor r15d, r15d
test esi, esi
je 0x1400511aa
lea r12, [rsp + 0x30]
mov r8d, dword [r12]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
je 0x14005115e
movups xmm0, xmmword [str._unknown_]
movaps xmmword [rbp + 0xf30], xmm0
mov ebx, dword [0x1400aaec8]
mov dword [rbp + 0xf40], ebx
xor edx, edx
mov r8d, 0x1f4
lea rcx, [rbp + 0xf44]
call main
movups xmm0, xmmword [str._unknown_]
movaps xmmword [rbp + 0x1140], xmm0
mov dword [rbp + 0x1150], ebx
xor edx, edx
mov r8d, 0x1f4
lea rcx, [rbp + 0x1154]
call main
lea r9, [rsp + 0x20]
mov r8d, 8
lea rdx, [rsp + 0x28]
mov rcx, r14
call qword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x140051138
mov r9d, 0x104
lea r8, [rbp + 0xf30]
mov rdx, qword [rsp + 0x28]
mov rcx, r14
call qword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
mov r9d, 0x104
lea r8, [rbp + 0x1140]
mov rdx, qword [rsp + 0x28]
mov rcx, r14
call qword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, 8
lea rdx, [rbp + 0xf30]
lea rcx, str.Zoom.exe
call fcn.140064130
test eax, eax
je 0x14005116f
inc r15d
add r12, 4
cmp r15d, esi
jae 0x1400511aa
jmp 0x140051072
lea rdx, [rbp + 0x1140]
mov rcx, rdi
call fcn.1400297dc
mov edx, 0x5c
mov rcx, rdi
call fcn.140029c38
cmp eax, 0xffffffff
jne 0x1400511a0
lea edx, [rax + 0x30]
mov rcx, rdi
call fcn.140029c38
cmp eax, 0xffffffff
je 0x1400511aa
mov edx, eax
mov rcx, rdi
call fcn.1400299e0
mov rcx, rdi
call fcn.140029764
movzx eax, al
xor eax, 1
mov rcx, qword [rbp + 0x1350]
xor rcx, rsp
call fcn.1400793d0
lea r11, [rsp + 0x1460]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14005142c
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 [0x1400bba20]
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.14000930c
nop
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14005146f
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rsp + 0x20]
call fcn.14000568c
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 0x1400514d8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400514d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400514f2
call fcn.140028090
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400793d0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
call fcn.14005e65c
int3

Function at 0x140051cd0
Capabilities:
Create thread

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

Disassembly:
mov r11, rsp
push r14
sub rsp, 0x50
test dword [rcx], 0x100
mov r14, rcx
je 0x140052299
mov rax, qword [rcx + 0x10]
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x10], rdi
mov byte [rax], 0
xor dword [rcx], 0x100
je 0x1400521e3
mov rbx, qword [rcx + 8]
mov qword [r11 + 0x20], rsi
mov rsi, rbx
cmp rbx, qword [rcx + 0x10]
jae 0x1400521db
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.iostream_stream_error
nop dword [rax]
mov ecx, dword [r14]
test cl, 2
je 0x140052113
movzx eax, byte [rbx]
cmp al, 0xd
jne 0x1400520f7
cmp byte [rbx + 1], 0xa
mov rax, r12
mov byte [rsi], 0xa
sete al
inc rax
add rbx, rax
jmp 0x1400521b5
cmp al, 0xa
jne 0x140052113
cmp byte [rbx + 1], 0xd
mov rax, r12
mov byte [rsi], 0xa
sete al
inc rax
add rbx, rax
jmp 0x1400521b5
test cl, 1
je 0x1400521ad
cmp byte [rbx], 0x26
jne 0x1400521ad
cmp byte [rbx + 1], 0x23
jne 0x14005216d
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.1400522b0
test rax, rax
je 0x1400521ad
movsxd rdi, dword [rsp + 0x60]
lea rdx, [rsp + 0x20]
mov r8, rdi
mov rcx, rsi
mov rbx, rax
call fcn.14007dfd0
jmp 0x1400521ba
mov rdi, r13
movsxd r8, dword [rdi + 8]
lea rcx, [rbx + 1]
mov rdx, qword [rdi]
call fcn.140062550
test eax, eax
jne 0x14005218f
movsxd rax, dword [rdi + 8]
cmp byte [rax + rbx + 1], 0x3b
je 0x14005219a
add rdi, 0x10
cmp rdi, r15
jl 0x140052170
jmp 0x1400521b2
movzx eax, byte [rdi + 0xc]
mov byte [rsi], al
mov eax, dword [rdi + 8]
add eax, 2
cdqe
add rbx, rax
jmp 0x1400521b5
movzx eax, byte [rbx]
mov byte [rsi], al
inc rbx
mov edi, 1
add rsi, rdi
cmp rbx, qword [r14 + 0x10]
jb 0x1400520d0
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 0x14005227d
mov rbx, qword [r14 + 8]
movzx ecx, byte [rbx]
movsx eax, cl
shr eax, 7
test al, 1
jne 0x14005220c
call fcn.14005f2c0
test eax, eax
je 0x14005220c
inc rbx
jmp 0x1400521f1
mov qword [r14 + 8], rbx
movzx ecx, byte [rbx]
test cl, cl
je 0x14005227d
mov rdi, rbx
nop word [rax + rax]
movsx eax, cl
shr eax, 7
test al, 1
jne 0x140052268
movzx ecx, cl
call fcn.14005f2c0
test eax, eax
je 0x140052268
nop word [rax + rax]
movzx ecx, byte [rbx]
movsx eax, cl
shr eax, 7
test al, 1
jne 0x14005225e
call fcn.14005f2c0
test eax, eax
je 0x14005225b
inc rbx
jmp 0x140052240
movzx ecx, byte [rbx]
test cl, cl
je 0x14005227a
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 0x140052220
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 0x1400546c0
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 0x1400546f5
lea r9, str.filename_null_
xor r8d, r8d
lea edx, [rsi + 4]
call fcn.140054850
mov eax, dword [rbx + 0x6c]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
mov qword [rsp + 0x40], rdi
call fcn.1400545b0
lea r8, [0x1400ab55c]
mov qword [rsp + 0x48], 0
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.140064528
test eax, eax
jne 0x14005481e
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x14005481e
mov rcx, rbx
call fcn.1400545b0
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.140060784
mov rcx, rdi
call fcn.14005fa88
cmp eax, 0xffffffff
jne 0x140054764
mov rcx, rdi
call fcn.14006436c
test eax, eax
jne 0x1400547f0
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call fcn.140060784
mov rcx, rdi
call fcn.140064a50
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov rsi, rax
call fcn.140060784
cmp rsi, 0xffffffffffffffff
jae 0x1400547f0
test rsi, rsi
jne 0x14005479a
lea edx, [rsi + 0xd]
jmp 0x1400547f5
lea rcx, [rsi + 1]
call fcn.140079958
mov r9, rdi
mov qword [rbx + 0x98], rax
mov r8, rsi
mov edx, 1
mov rcx, rax
call fcn.1400604b4
cmp rax, rsi
jne 0x1400547f0
mov rax, qword [rbx + 0x98]
mov rcx, rbx
mov byte [rsi + rax], 0
call fcn.1400549f0
mov rcx, rdi
call fcn.14005f708
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.140054850
mov rcx, rdi
call fcn.14005f708
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.140054850
mov eax, dword [rbx + 0x6c]
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rsi
ret
Function at 0x140055c10
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 0x140055d31
test rdx, rdx
je 0x140055d31
mov r9, rdx
nop dword [rax + rax]
movzx eax, word [r9]
add r9, 2
test ax, ax
jne 0x140055c50
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 0x140055c70
sub rcx, rdx
sar rcx, 1
lea rax, [rcx - 1]
cmp r9, rax
jb 0x140055cbe
mov rcx, rdx
nop
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x140055c90
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 0x140055e63
mov rcx, rbx
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x140055cc1
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 0x140055ce1
sub rcx, r9
sar rcx, 1
lea rax, [rcx - 1]
cmp rdx, rax
jb 0x140055d31
mov rcx, r9
nop
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x140055d00
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 0x140055e63
cmp edi, 3
jne 0x140055d79
test rbx, rbx
je 0x140055d62
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x140055e63
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140055d62
test al, 0x10
je 0x140055e63
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 0x140055d9b
test rbx, rbx
je 0x140055d62
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140055d62
test al, 0x10
jne 0x140055e63
jmp 0x140055d62
cmp edi, 4
jne 0x140055dbb
test rsi, rsi
je 0x140055d62
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x140055e63
mov rcx, rsi
jmp 0x140055d4f
cmp edi, 5
jne 0x140055e3e
test rbx, rbx
je 0x140055d62
mov rcx, rbx
nop dword [rax + rax]
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x140055dd0
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 0x140055df0
sub rcx, r9
sar rcx, 1
lea rax, [rcx - 1]
cmp rdx, rax
jb 0x140055d62
mov rcx, r9
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x140055e12
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 0x140055e5d
lea eax, [rdi - 6]
cmp eax, 2
ja 0x140055d62
call fcn.140055b30
test eax, eax
jne 0x140055e63
mov rcx, rbx
call fcn.140055920
test eax, eax
je 0x140055d62
mov eax, 1
jmp 0x140055d64
Function at 0x140055e70
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x1400bba20]
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 0x140055eff
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.1400793d0
add rsp, 0x80
pop rbx
ret
Function at 0x140056180
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 [0x1400bba20]
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.140055c10
test eax, eax
jne 0x1400561d8
mov eax, VariantTimeToDosDateTime
jmp 0x140056248
mov qword [rsp + 0x58], rbx
call fcn.140055b30
test eax, eax
jne 0x140056227
call fcn.140055e70
test eax, eax
je 0x140056227
cmp ebp, 7
je 0x140056265
lea eax, [rbp - 1]
test eax, 0xfffffff7
jne 0x140056227
mov r9, r14
mov dword [rsp + 0x20], r15d
mov r8, rsi
mov rdx, rdi
mov rcx, r12
call fcn.140059680
mov ebx, eax
test eax, eax
jne 0x140056394
cmp ebp, 1
jne 0x140056394
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.1400793d0
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test rdi, rdi
jne 0x14005627b
test rsi, rsi
jne 0x14005627b
xor ebx, ebx
neg ebx
sbb rax, rax
and eax, 0x21
jmp 0x140056243
call fcn.140055e70
test eax, eax
jne 0x1400562b6
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 0x140056243
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 0x140056394
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x30]
test r8d, r8d
je 0x140056394
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbp, rax
test rax, rax
je 0x140056394
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 0x14005638e
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 0x14005638e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x40]
test rbp, rbp
je 0x140056394
mov r9d, r15d
mov qword [rsp + 0x20], rbp
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call fcn.140055f20
mov ebx, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
neg ebx
sbb rax, rax
and eax, 0x21
jmp 0x140056243