joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4181f3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x438e28]
jne 0x4181fd
repz ret
jmp fcn.0041a8d1

Function at 0x425a9c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x438e28]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041c968
and dword [ebp - 0x14], 0
cmp dword [0x43b690], 0
mov dword [ebp - 0x18], eax
jne 0x425b4f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x425bf7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x425bf7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x43b690], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x43b694], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x43b698], eax
call edi
push eax
call esi
mov dword [0x43b6a0], eax
test eax, eax
je 0x425b4f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x43b69c], eax
mov eax, dword [0x43b69c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x425ba8
cmp dword [0x43b6a0], ecx
je 0x425ba8
push eax
call esi
push dword [0x43b6a0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x425ba8
test ebx, ebx
je 0x425ba8
call edi
test eax, eax
je 0x425b9f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x425b9f
test byte [ebp - 8], 1
jne 0x425ba8
or dword [ebp + 0x10], 0x200000
jmp 0x425bdb
mov eax, dword [0x43b694]
cmp eax, dword [ebp - 0x18]
je 0x425bdb
push eax
call esi
test eax, eax
je 0x425bdb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x425bdb
mov eax, dword [0x43b698]
cmp eax, dword [ebp - 0x18]
je 0x425bdb
push eax
call esi
test eax, eax
je 0x425bdb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43b690]
call esi
test eax, eax
je 0x425bf7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x425bf9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004181f3
leave
ret
Function at 0x401ae0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x467060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 1
lea eax, [ebp - 0x18]
push eax
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
xorps xmm0, xmm0
movq qword [ebp - 0x24], xmm0
lea eax, [ebp - 0x18]
push esi
mov dword [ebp - 0x20], eax
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], 0
push eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0xc
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
call esi
cmp eax, 0xb7
jne 0x401b5c
push 0
call dword [sym.imp.MSVCR110.dll_exit]
call esi
cmp eax, 0xb7
jne 0x401b6d
push 0
call dword [sym.imp.MSVCR110.dll_exit]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004413e6
mov esp, ebp
pop ebp
ret 4
Function at 0x4024e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443467
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x467060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x264], 7
mov dword [ebp - 0x268], 0
mov word [ebp - 0x278], ax
lea edx, [ebp - 0x278]
lea ecx, [ebp - 0x27c]
mov dword [ebp - 4], eax
call fcn.0041c280
test al, al
je 0x4026de
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402590
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x4025db
cmp dword [ebp - 0x268], ecx
jb 0x4025db
cmp dword [ebp - 0x264], 8
lea eax, [ebp - 0x278]
cmovae eax, dword [ebp - 0x278]
push ecx
push eax
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
jne 0x4025db
mov bl, 1
jmp 0x4026e0
cmp dword [ebp - 0x264], 8
lea eax, [ebp - 0x278]
cmovae eax, dword [ebp - 0x278]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 0x27c], eax
push 0xc
xor eax, eax
push str.explorer.exe
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
call fcn.00405570
mov byte [ebp - 4], 1
push 0xa
xor eax, eax
push str.devenv.exe
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
call fcn.00405570
mov byte [ebp - 4], 2
push 7
xor eax, eax
push str.cmd.exe
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.00405570
xor edi, edi
lea esi, [ebp - 0x260]
lea esp, [esp]
cmp dword [esi + 0x14], 8
jb 0x4026aa
mov eax, dword [esi]
jmp 0x4026ac
mov eax, esi
push dword [esi + 0x10]
push dword [ebp - 0x27c]
push eax
call ebx
test eax, eax
je 0x402716
inc edi
add esi, 0x18
cmp edi, 3
jl 0x4026a0
push fcn.00401270
push 3
push 0x18
lea eax, [ebp - 0x260]
push eax
mov byte [ebp - 4], 0
call fcn.0044153c
xor bl, bl
cmp dword [ebp - 0x264], 8
jb 0x4026f8
push dword [ebp - 0x278]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004413e6
mov esp, ebp
pop ebp
ret
push fcn.00401270
push 3
push 0x18
lea eax, [ebp - 0x260]
push eax
mov byte [ebp - 4], 0
call fcn.0044153c
mov bl, 1
jmp 0x4026e0
Function at 0x402e80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4431d8
mov eax, dword fs:[0]
push eax
sub esp, 0x620
mov eax, dword [0x467060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0x206
mov dword [ebp - 4], 0
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
mov eax, dword [0x469f00]
add esp, 0xc
test al, 1
jne 0x402eee
or eax, 1
push 0x4486c0
mov dword [0x469f00], eax
call fcn.00441527
add esp, 4
sub esp, 8
lea eax, [ebp - 0x218]
push eax
call fcn.00433200
mov eax, dword [0x469f00]
test al, 1
jne 0x402f1b
or eax, 1
push 0x4486c0
mov dword [0x469f00], eax
call fcn.00441527
add esp, 4
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402f76
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x402f76
mov eax, dword [0x46a9cc]
test al, 1
jne 0x402f5d
or eax, 1
push 0x448830
mov dword [0x46a9cc], eax
call fcn.00441527
add esp, 4
lea eax, [ebp - 0x218]
push eax
push str.Failed_to_create_directory_:__s
push 0x46a9c8
call fcn.0043aff0
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push str.log_s.log
lea eax, [ebp - 0x420]
push 0x208
push eax
call fcn.00401b90
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call sub.MSVCR110.dll_memset
add esp, 0x1c
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x628]
push eax
push 0
push 0xffffffffffffffff
call dword [sym.imp.isafepxy.dll_ISAFE_InitProgramLogEx]
add esp, 0xc
cmp dword [ebp + 0x1c], 8
jb 0x403015
push dword [ebp + 8]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004413e6
mov esp, ebp
pop ebp
ret
Function at 0x405bb0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44357d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x467060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
mov dword [ebp - 4], eax
xor edx, edx
mov dword [ecx + 0x2c], 7
mov dword [ecx + 0x28], eax
mov word [ecx + 0x18], dx
mov dword [ecx + 0x44], 7
mov dword [ecx + 0x40], edx
mov word [ecx + 0x30], dx
mov dword [ecx + 0x5c], 7
mov dword [ecx + 0x58], edx
mov word [ecx + 0x48], dx
lea ebx, [ecx + 0x60]
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], edx
mov word [ebx], ax
lea edi, [ecx + 0x78]
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], edx
mov word [edi], ax
lea esi, [ecx + 0x90]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edx
mov word [esi], ax
push 0x10
push 0x449fac
mov byte [ebp - 4], 6
call fcn.00405570
mov ecx, dword [ebp - 0x10]
push 0x10
push 0x449fac
lea ecx, [ecx + 0x18]
call fcn.00405570
mov ecx, dword [ebp - 0x10]
push 0
push 0x44acac
lea ecx, [ecx + 0x30]
call fcn.00405570
mov ecx, dword [ebp - 0x10]
push 5
push 0x44b680
lea ecx, [ecx + 0x48]
call fcn.00405570
push 0x20
push 0x44b690
mov ecx, ebx
call fcn.00405570
push 0
push 0x44acac
mov ecx, edi
call fcn.00405570
push 0
push 0x44acac
mov ecx, esi
call fcn.00405570
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407800
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x467060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x38
lea eax, [ebp - 0x3c]
push 0
push eax
mov esi, edx
mov edi, ecx
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], str.open
jb 0x40784a
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x30], edi
jb 0x407855
mov esi, dword [esi]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
test eax, eax
je 0x407889
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.004413e6
mov esp, ebp
pop ebp
ret
Function at 0x4089a0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443fa8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x467060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
push ebx
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], edi
call fcn.0040d300
add esp, 4
mov dword [ebp - 4], edi
call fcn.0041ff50
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
test al, al
je 0x408a4d
push ebx
mov edx, str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x44]
call fcn.0040d300
mov edi, eax
lea eax, [ebp - 0x28]
add esp, 4
cmp eax, edi
je 0x408a3a
cmp dword [ebp - 0x14], 8
jb 0x408a1d
push dword [ebp - 0x28]
call esi
add esp, 4
xor eax, eax
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.004053a0
cmp dword [ebp - 0x30], 8
jb 0x408a48
push dword [ebp - 0x44]
call esi
add esp, 4
mov edi, 0x200
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x2c]
push ecx
or edi, 0xf003f
push edi
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408a8c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x408a9a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 8
jb 0x408aa8
push dword [ebp - 0x28]
call esi
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004413e6
mov esp, ebp
pop ebp
ret
Function at 0x40a770
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x443878
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x467060]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x467060]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edx, ecx
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
cmp word [edx], ax
jne 0x40a7c9
xor ecx, ecx
jmp 0x40a7df
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a7d0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x30]
call fcn.00405570
push 1
push ecx
push 0x44aca8
lea ecx, [esp + 0x34]
mov dword [esp + 0x5c], 0
call fcn.0040d0b0
push eax
push 0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
call fcn.00403de0
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov edi, eax
lea eax, [esp + 0x28]
cmp eax, edi
je 0x40a855
cmp dword [esp + 0x3c], 8
jb 0x40a834
push dword [esp + 0x28]
call esi
add esp, 4
xor eax, eax
push edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
call fcn.004053a0
cmp dword [esp + 0x24], 8
jb 0x40a865
push dword [esp + 0x10]
call esi
add esp, 4
cmp dword [esp + 0x3c], 8
lea eax, [esp + 0x28]
cmovae eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
sete bl
cmp dword [esp + 0x3c], 8
jb 0x40a890
push dword [esp + 0x28]
call esi
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004413e6
mov esp, ebp
pop ebp
ret
Function at 0x40abd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x467060]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR110.dll_memset
mov eax, dword [0x469f00]
add esp, 0xc
test al, 1
jne 0x40ac1f
or eax, 1
push 0x4486c0
mov dword [0x469f00], eax
call fcn.00441527
add esp, 4
sub esp, 8
lea eax, [ebp - 0x20c]
push eax
call fcn.00433200
test al, al
je 0x40acc2
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ac40
sub ecx, edx
sar ecx, 1
je 0x40acc2
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x44bd08
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40acc2
mov eax, dword [0x469f00]
test al, 1
jne 0x40acb7
or eax, 1
push 0x4486c0
mov dword [0x469f00], eax
call fcn.00441527
add esp, 4
lea ecx, [ebp - 0x414]
call fcn.004332f0
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.004413e6
mov esp, ebp
pop ebp
ret

Function at 0x40ace0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x467060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov esi, ecx
xor bl, bl
call sub.MSVCR110.dll_memset
add esp, 0xc
test esi, esi
je 0x40ade1
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ad24
sub ecx, edx
sar ecx, 1
je 0x40ade1
push 0x44bd10
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40adcf
mov eax, dword [0x469f00]
test al, 1
jne 0x40ad7b
or eax, 1
push 0x4486c0
mov dword [0x469f00], eax
call fcn.00441527
add esp, 4
lea ecx, [ebp - 0x20c]
call fcn.004332f0
mov bl, al
test bl, bl
je 0x40adb3
lea eax, [ebp - 0x20c]
push eax
push str.ClearLog__DeleteFolder_succeed:_path___s_
call dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLogNoMask]
add esp, 8
mov al, bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004413e6
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20c]
push eax
push str.ClearLog__DeleteFolder_failed:_path___s__err___d_
call dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLogNoMask]
add esp, 0xc
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004413e6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.004413e6
mov esp, ebp
pop ebp
ret
Function at 0x40ae00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x467060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov esi, ecx
call sub.MSVCR110.dll_memset
add esp, 0xc
test esi, esi
je 0x40af8d
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ae41
sub ecx, edx
sar ecx, 1
je 0x40af8d
push 0x44bd10
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x20c]
push eax
call esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call sub.MSVCR110.dll_memset
mov eax, dword [0x469f00]
add esp, 0xc
test al, 1
jne 0x40aea7
or eax, 1
push 0x4486c0
mov dword [0x469f00], eax
call fcn.00441527
add esp, 4
sub esp, 8
lea eax, [ebp - 0x61c]
push eax
call fcn.00433200
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x61c]
push str.log_bak
push eax
lea eax, [ebp - 0x414]
push eax
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x40af8d
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
je 0x40af1d
call fcn.00403fa0
lea ecx, [ebp - 0x414]
call fcn.004332f0
lea edx, [ebp - 0x414]
lea ecx, [ebp - 0x20c]
call fcn.0041cd20
mov esi, eax
lea eax, [ebp - 0x20c]
test esi, esi
jne 0x40af60
push eax
push eax
push str.BackupLog__CopyFolder_succeed:_src___s__dst___s_
call dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLogNoMask]
add esp, 0xc
xor eax, eax
test esi, esi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004413e6
mov esp, ebp
pop ebp
ret
push esi
push eax
lea eax, [ebp - 0x20c]
push eax
push str.BackupLog__CopyFolder_failed:_src___s__dst___s__err___d_
call dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLogNoMask]
add esp, 0x10
xor eax, eax
test esi, esi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004413e6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.004413e6
mov esp, ebp
pop ebp
ret
Function at 0x40b4c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443d69
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x467060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 5
xor eax, eax
push str._stop
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
call fcn.00405570
mov dword [ebp - 4], 0
call fcn.00408df0
mov esi, dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
test al, al
je 0x40b5ce
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x218]
call fcn.0040a8b0
mov eax, dword [0x469f34]
test eax, eax
jne 0x40b595
push 0xe4
call esi
add esp, 4
mov dword [ebp - 0x43c], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x40b58a
mov ecx, eax
call fcn.0040dc50
jmp 0x40b58c
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x469f34], eax
cmp word [ebp - 0x218], 0
lea edx, [eax + 0x78]
jne 0x40b5a6
xor ecx, ecx
jmp 0x40b5bf
lea ecx, [ebp - 0x218]
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b5b0
sub ecx, edi
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
mov ecx, edx
call fcn.00405570
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR110.dll_memset
mov eax, dword [0x469f34]
add esp, 0xc
test eax, eax
jne 0x40b61d
push 0xe4
call esi
add esp, 4
mov dword [ebp - 0x43c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x40b616
mov ecx, eax
call fcn.0040dc50
jmp 0x40b618
xor eax, eax
mov dword [0x469f34], eax
add eax, 0x78
cmp dword [eax + 0x14], 8
jb 0x40b628
mov eax, dword [eax]
push str.iSafeSvc.exe
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b694
cmp dword [ebp - 0x424], 8
mov eax, dword [0x469f0c]
lea esi, [ebp - 0x438]
cmovae esi, dword [ebp - 0x438]
test al, 1
jne 0x40b67e
or eax, 1
push 0x4486e0
mov dword [0x469f0c], eax
call fcn.00441527
add esp, 4
push ecx
push 0
push 1
push esi
lea eax, [ebp - 0x420]
push eax
call fcn.00432ee0
mov bl, 1
jmp 0x40b696
xor bl, bl
cmp dword [ebp - 0x424], 8
jb 0x40b6ae
push dword [ebp - 0x438]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004413e6
mov esp, ebp
pop ebp
ret