joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140039d24
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x218]
sub rsp, 0x310
mov rax, qword [0x1400bca20]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rsi, rcx
lea rdi, [rsp + 0x70]
xor eax, eax
lea edx, [rax + 0x68]
mov ecx, edx
rep stosb byte [rdi], al
mov dword [rsp + 0x70], edx
lea rcx, [rbp - 0x20]
call fcn.140028e84
nop
lea rcx, [rbp + 0xf0]
call fcn.140028e84
nop
lea rcx, [rbp - 0x20]
call fcn.140029a00
lea rdx, str.vcredist_x86.exe
lea rcx, [rbp - 0x20]
call fcn.1400293b4
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0xf0]
call fcn.140029220
lea rdx, [0x1400a5bc0]
lea rcx, [rbp + 0xf0]
call fcn.1400293b4
lea rcx, [rbp + 0xf0]
call fcn.140029050
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.140029050
mov rcx, rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140039e2c
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x58]
mov qword [rsi + 0x28a8], rax
mov ebx, 1
jmp 0x140039e7a
mov r9d, 0x7df
lea r8, str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerNoMSIInstallerInstallerManager.cpp
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.14000b3c8
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str._CInstallerManager::LaunchVS2008RedInstaller__Failed_created_a_process:
lea rcx, [0x1400bf0f0]
call fcn.14000475c
mov rcx, rax
mov edx, edi
call fcn.1400024b0
nop
lea rcx, [rsp + 0x50]
call fcn.14000b5f4
nop
lea rcx, [rbp + 0xf0]
call fcn.140028fd0
nop
lea rcx, [rbp - 0x20]
call fcn.140028fd0
mov eax, ebx
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.14007a950
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140039fc0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
test rdx, rdx
jne 0x140039fd2
xor eax, eax
jmp 0x14003a00b
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140039ff9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str._CInstallerManager::IsAppRunning__Return_FALSE
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x140039fce
lea rcx, str._CInstallerManager::IsAppRunning__Return_TRUE
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x14003df90
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x40
mov dword [rax - 0x18], 0x208
lea rax, [rax + 8]
mov rdi, r9
mov qword [rsp + 0x20], rax
mov rsi, r8
mov r9d, 0x101
xor r8d, r8d
or ebx, 0xffffffff
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003e00a
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov r9, rdi
mov rax, qword [rsp + 0x70]
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x50]
test eax, eax
cmove ebx, dword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14003e088
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x1400bca20]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rdx
mov rbx, rcx
call qword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call main
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x103
ja 0x14003e0f3
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140005584
mov al, 1
jmp 0x14003e0f5
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14007a950
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
ret
Function at 0x14003f09c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1400bca20]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rcx
xor edi, edi
cmp qword [rcx + 0x10], rdi
jne 0x14003f0ce
xor al, al
jmp 0x14003f26a
cmp qword [rcx + 0x18], 8
jb 0x14003f0d8
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathIsNetworkPathW]
test eax, eax
je 0x14003f12f
mov r9d, 0x20e
lea r8, str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerNoMSIInstallerPureCleanZoomEnumUserUtil.cpp
xor edx, edx
lea rcx, [rbp - 0x30]
call fcn.14000b3c8
nop
cmp qword [rbx + 0x18], 8
jb 0x14003f105
mov rbx, qword [rbx]
lea rdx, str.___HasZoomUnder__Return_false_as_its_a_network_driver:
lea rcx, [0x1400bf210]
call fcn.140009fc8
mov rcx, rax
mov rdx, rbx
call fcn.140009fc8
nop
lea rcx, [rbp - 0x30]
call fcn.14000b5f4
jmp 0x14003f0c7
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x10], rdi
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.14000931c
nop
lea rcx, [0x14009f290]
call fcn.14005fd94
mov r8, rax
lea rdx, [0x14009f290]
lea rcx, [rbp - 0x28]
call fcn.14000566c
lea rcx, [0x14009fd78]
call fcn.14005fd94
mov r8, rax
lea rdx, [0x14009fd78]
lea rcx, [rbp - 0x28]
call fcn.14000566c
lea rcx, [0x14009f290]
call fcn.14005fd94
mov r8, rax
lea rdx, [0x14009f290]
lea rcx, [rbp - 0x28]
call fcn.14000566c
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003f1c5
test al, 0x10
je 0x14003f1c5
mov dil, 1
mov r9d, 0x225
lea r8, str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerNoMSIInstallerPureCleanZoomEnumUserUtil.cpp
xor edx, edx
lea rcx, [rbp - 0x30]
call fcn.14000b3c8
nop
cmp qword [rbx + 0x18], 8
jb 0x14003f1e8
mov rbx, qword [rbx]
lea rdx, str.___HasZoomUnder__Has_Zoom:
lea rcx, [0x1400bf210]
call fcn.140009fc8
mov rcx, rax
mov dl, dil
call fcn.140008574
mov rcx, rax
lea rdx, str._for_path:
call fcn.140009fc8
mov rcx, rax
mov rdx, rbx
call fcn.140009fc8
nop
lea rcx, [rbp - 0x30]
call fcn.14000b5f4
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x14003f267
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003f262
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003f286
call fcn.140027b00
mov al, dil
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14007a950
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbp
ret
call fcn.14005fbcc
int3
Function at 0x14003fca8
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.zoom.us_Installer_Mutex_1.0.0.0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14003fcf3
test rbx, rbx
je 0x14003fd01
mov edx, 0x2710
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14003fcf8
mov eax, 1
jmp 0x14003fd03
test rbx, rbx
je 0x14003fd01
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1400413e8
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
and dword [rcx], 0
mov dword [rcx + 4], 1
lea rdi, [rcx + 8]
and qword [rdi], 0
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [rbx], eax
mov edx, 0x80000000
lea ecx, [rax + rdx]
test edx, ecx
jne 0x140041472
cmp eax, 0x80010106
je 0x140041472
mov r9d, 0x103
lea r8, str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerNoMSIInstallerWinFWUtil_Win7.cpp
mov edx, 2
lea rcx, [rsp + 0x40]
call fcn.14000b3c8
nop
lea rdx, str._CZoomFirewallUtil::CZoomFirewallUtil__CoCreateInstance_failed:
lea rcx, [0x1400bf0f0]
call fcn.14000475c
mov rcx, rax
mov edx, dword [rbx]
call fcn.14001eaec
nop
lea rcx, [rsp + 0x40]
call fcn.14000b5f4
and dword [rbx + 4], 0
cmp dword [rbx + 4], 0
je 0x1400414e6
mov qword [rsp + 0x20], rdi
lea r9, [0x1400a7ea0]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1400a7ee0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test eax, eax
jns 0x1400414e6
mov r9d, 0x114
lea r8, str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerNoMSIInstallerWinFWUtil_Win7.cpp
mov edx, 2
lea rcx, [rsp + 0x40]
call fcn.14000b3c8
nop
lea rdx, str._CZoomFirewallUtil::CZoomFirewallUtil__CoCreateInstance_failed:
lea rcx, [0x1400bf0f0]
call fcn.14000475c
mov rcx, rax
mov edx, edi
call fcn.14001eaec
nop
lea rcx, [rsp + 0x40]
call fcn.14000b5f4
and dword [rbx + 4], 0
mov rax, rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400470d4
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x280
mov rax, qword [0x1400bca20]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r14, rdx
mov rbp, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x250
call main
or rdi, 0xffffffffffffffff
test rbp, rbp
je 0x14004722a
mov rcx, rbp
call fcn.14005fd94
test rax, rax
je 0x14004722a
lea r8, [0x1400a46a8]
mov rcx, rbp
call fcn.140046ec4
mov rsi, rax
test rax, rax
jne 0x140047156
lea ecx, [rdi + 0xf]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14004721a
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140047212
test byte [rsp + 0x20], 0x10
je 0x1400471a2
lea rdx, [0x1400a46ac]
lea rcx, [rsp + 0x4c]
call fcn.140061e80
test eax, eax
je 0x1400471fc
lea rdx, [0x1400a2f8c]
lea rcx, [rsp + 0x4c]
call fcn.140061e80
test eax, eax
je 0x1400471fc
lea r8, [rsp + 0x4c]
mov rcx, rbp
call fcn.140046ec4
mov rbx, rax
test rax, rax
je 0x1400471fc
test byte [rsp + 0x20], 0x10
mov rcx, rax
je 0x1400471e3
call fcn.14003184c
test eax, eax
jne 0x1400471d8
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call fcn.1400470d4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400471f4
xor r8d, r8d
lea rdx, [rsp + 0x20]
mov rax, r14
call qword [case.0x14002b001.0]
mov rcx, rbx
call fcn.140030b28
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140047171
mov rcx, rsi
call fcn.140030b28
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x140047237
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14007a950
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140047260
Capabilities:
Check if file exists
Delete directory

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x14004727f
lea ecx, [rbx + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140047294
mov eax, 1
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
call fcn.14003184c
test eax, eax
jne 0x1400472b3
lea rdx, [0x140031890]
mov rcx, rbx
call fcn.1400470d4
test eax, eax
je 0x1400472bc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add rsp, 0x20
pop rbx
ret
Function at 0x14004738c
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x1400bca20]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x202
call main
and qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x100
call fcn.1400472c4
test eax, eax
je 0x140047424
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x140047424
mov rax, qword [0x1400c09c8]
lea r9, [rsp + 0x38]
mov r8d, 1
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [case.0x14002b001.0]
test eax, eax
jne 0x140047424
mov rcx, qword [rsp + 0x38]
mov rax, qword [0x1400c09b8]
cmp dword [rcx + 0x14], 2
sete bl
call qword [case.0x14002b001.0]
mov al, bl
jmp 0x140047426
xor al, al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14007a950
add rsp, 0x260
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x1400bca20]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.140028f2c
lea rdx, [0x14009f290]
lea rcx, [rsp + 0x20]
call fcn.1400293b4
mov rcx, rbx
call fcn.1400291d4
lea rcx, [rsp + 0x20]
test al, al
je 0x140047997
lea rdx, str.Zoom_Workplace.lnk
call fcn.1400293b4
jmp 0x14004799f
mov rdx, rbx
call fcn.14002938c
lea rcx, [rsp + 0x20]
call fcn.140029050
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
lea rcx, [rsp + 0x20]
setne bl
call fcn.140028fd0
mov al, bl
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14007a950
add rsp, 0x140
pop rbx
ret

Function at 0x140047d34
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push rbx
sub rsp, 0x440
mov rax, qword [0x1400bca20]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov rbx, rcx
test rcx, rcx
je 0x140047dfd
call fcn.14005fd94
test rax, rax
je 0x140047dfd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140047dfd
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x410
call main
lea rdx, [rsp + 0x20]
mov ecx, 0x207
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rsp + 0x20]
xor r8d, r8d
lea rdx, [0x1400a027c]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x140047de7
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140047dfd
lea rbx, [rsp + 0x20]
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne al
jmp 0x140047dff
mov al, 1
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.14007a950
add rsp, 0x440
pop rbx
ret
Function at 0x140047e18
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 [0x1400bca20]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
xor esi, esi
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x140047f99
test rdx, rdx
je 0x140047f99
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x140047e74
mov al, 1
jmp 0x140047f9b
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.1400605f0
mov rcx, rdi
call fcn.14005fd94
cdqe
lea rcx, [rax + rax]
cmp rcx, r14
jae 0x140047fc2
lea rax, [rax*2 + 2]
mov word [rsp + rcx + 0x60], si
cmp rax, r14
jae 0x140047fc2
mov r8, rbx
mov word [rsp + rax + 0x60], si
mov edx, 0x208
lea rcx, [rbp + 0x380]
call fcn.1400605f0
mov rcx, rbx
call fcn.14005fd94
cdqe
lea rcx, [rax + rax]
cmp rcx, r14
jae 0x140047fc2
lea rax, [rax*2 + 2]
mov word [rbp + rcx + 0x380], si
cmp rax, r14
jae 0x140047fc2
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 0x140047f99
test eax, eax
jne 0x140047f99
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x140047f99
mov rcx, rdi
call fcn.140047260
jmp 0x140047e6d
xor al, al
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.14007a950
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.14007ad44
int3
Function at 0x140047fc8
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 0x1400480e4
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 0x1400480e4
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 0x1400480db
cmp dword [rbp + 0x28], 2
jne 0x1400480db
mov eax, 0x5a4d
cmp word [rbp + 0x20], ax
jne 0x1400480db
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 0x1400480db
cmp dword [rbp + 0x28], 2
jne 0x1400480db
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 0x1400480db
cmp dword [rbp + 0x28], 4
jne 0x1400480db
cmp dword [rbp + 0x30], 0x4550
jne 0x1400480db
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [rdi + 1]
jmp 0x1400480e6
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 0x14004dda0
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 [0x1400bca20]
xor rax, rsp
mov qword [rbp + 0x260], rax
mov rbx, rcx
cmp dword [rcx + 0x448], 0
jne 0x14004de36
or ebx, 0xffffffff
mov r8d, ebx
lea rdx, [0x1400a027c]
lea rcx, [rbp + 0x40]
call fcn.140028ed4
nop
mov r8d, ebx
lea rdx, str.Operation_type_cannot_be_NONE
lea rcx, [rsp + 0x30]
call fcn.140028ed4
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.140046460
nop
lea rcx, [rsp + 0x30]
call fcn.140028fd0
nop
lea rcx, [rbp + 0x40]
jmp 0x14004df93
add rcx, 0x118
call fcn.1400291d4
test al, al
jne 0x14004df39
lea rcx, [rbx + 8]
call fcn.1400291d4
test al, al
jne 0x14004df39
lea rdx, [rbx + 0x228]
lea rcx, [rbp + 0x150]
call fcn.140028f2c
nop
lea rdx, [rbx + 8]
lea rcx, [rbp + 0x150]
call fcn.14002938c
mov ecx, dword [rbx + 0x448]
sub ecx, 1
jne 0x14004df30
lea rcx, [rbp + 0x150]
call fcn.140029050
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14004df30
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14004df30
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [case.0x14002b001.0]
test al, al
jne 0x14004df30
or ebx, 0xffffffff
mov r8d, ebx
lea rdx, [0x1400a027c]
lea rcx, [rsp + 0x30]
call fcn.140028ed4
nop
mov r8d, ebx
lea rdx, str.DeleteFile_Failed
lea rcx, [rbp + 0x40]
call fcn.140028ed4
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.140046460
nop
lea rcx, [rbp + 0x40]
call fcn.140028fd0
nop
lea rcx, [rsp + 0x30]
call fcn.140028fd0
nop
lea rcx, [rbp + 0x150]
jmp 0x14004df93
or ebx, 0xffffffff
mov r8d, ebx
lea rdx, [0x1400a027c]
lea rcx, [rsp + 0x30]
call fcn.140028ed4
nop
mov r8d, ebx
lea rdx, str.File_ops_src_and_name_cannot_be_empty
lea rcx, [rbp + 0x40]
call fcn.140028ed4
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.140046460
nop
lea rcx, [rbp + 0x40]
call fcn.140028fd0
nop
lea rcx, [rsp + 0x30]
call fcn.140028fd0
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.14007a950
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14004ecf0
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 [0x1400bca20]
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.140028f2c
nop
mov rdx, qword [rbx]
add rdx, 8
lea rcx, [rbp + 0x150]
call fcn.14002938c
lea rcx, [rbp + 0x150]
call fcn.140029050
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or r8d, 0xffffffff
lea rcx, [rsp + 0x30]
cmp eax, 0xffffffff
jne 0x14004edd1
lea rdx, [0x1400a027c]
call fcn.140028ed4
nop
or r8d, 0xffffffff
lea rdx, str.FileOpType_Unzip__Failed_to_pass_security_check__File_not_exist
lea rcx, [rbp + 0x40]
call fcn.140028ed4
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.140046460
nop
lea rcx, [rbp + 0x40]
call fcn.140028fd0
nop
lea rcx, [rsp + 0x30]
call fcn.140028fd0
jmp 0x14004ee64
mov rdx, r14
call fcn.140028ed4
nop
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0x150]
call fcn.14004ee98
mov bl, al
lea rcx, [rsp + 0x30]
call fcn.140028fd0
test bl, bl
jne 0x14004ee61
or r8d, 0xffffffff
lea rdx, [0x1400a027c]
lea rcx, [rbp + 0x40]
call fcn.140028ed4
nop
or r8d, 0xffffffff
lea rdx, str.FileOpType_Unzip__Failed_to_pass_security_check
lea rcx, [rsp + 0x30]
call fcn.140028ed4
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.140046460
nop
lea rcx, [rsp + 0x30]
call fcn.140028fd0
nop
lea rcx, [rbp + 0x40]
jmp 0x14004edc7
mov dil, 1
lea rcx, [rbp + 0x150]
call fcn.140028fd0
mov al, dil
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.14007a950
mov rbx, qword [rsp + 0x398]
add rsp, 0x370
pop r14
pop rdi
pop rbp
ret