joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59cdb0
Capabilities:
Create thread
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x744c3c
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
lea edx, [ebx + 0x4c]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x250], ecx
cmp edx, eax
je 0x59ce08
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x59cdfd
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, edx
call fcn.00426d40
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x21c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x59ce82
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x59ce82
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x59ce60
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.00426d40
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x59ceee
push 8
call fcn.006d0976
add esp, 4
mov esi, eax
mov dword [ebp - 0x254], esi
xorps xmm0, xmm0
push 0
push 0
push esi
push 0x670d70
push 0
movq qword [esi], xmm0
push 0
mov dword [esi], edi
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x59cffc
push 8
push esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.006d0bf7
add esp, 8
xor eax, eax
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x254], esp
push eax
push 0x799430
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 7
mov word [ecx], ax
call fcn.00426d40
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
xor eax, eax
push eax
push 0x799430
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
call fcn.00426d40
push 0
mov edx, 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24c]
call fcn.0057af90
add esp, 0x34
mov dword [ebp - 0x25c], 0
xor eax, eax
mov dword [ebp - 0x258], 7
lea ecx, [ebp - 0x26c]
mov word [ebp - 0x26c], ax
push 0x16
push str.thirdPartyInstallError
call fcn.00426d40
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 3
mov ecx, dword [ebx + 4]
push eax
lea eax, [ebp - 0x26c]
push eax
push 2
call fcn.0057f290
lea ecx, [ebp - 0x26c]
call fcn.00426ce0
lea ecx, [ebp - 0x24c]
call fcn.00426ce0
lea ecx, [ebp - 0x234]
call fcn.00426ce0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x250]
mov dword [ecx], eax
jmp 0x59cfd3
Function at 0x5ac7c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x857060]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
push edi
push str.InstallDir
push dword [ebp + 0xc]
push eax
call fcn.005acad0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x5ac84b
test edi, edi
je 0x5ac84b
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov word [esp + 0xc], cx
mov eax, 7
mov ecx, dword [edi]
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x5ac823
push esi
lea edx, [esp + 0x10]
call fcn.0064ac50
mov eax, dword [esp + 0x24]
add esp, 4
cmp eax, 8
lea ecx, [esp + 0xc]
cmovae ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ecx, 0xa
cmove esi, ecx
lea ecx, [esp + 0xc]
call fcn.00426ce0
mov eax, esi
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor ecx, esp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
Function at 0x5ace80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x746d00
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push ecx
lea edx, [ebp - 0x28]
mov dword [ebp - 4], eax
lea ecx, [eax + 0x2c]
call fcn.00650b50
add esp, 4
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 7
lea ecx, [ebp - 0x40]
mov word [ebp - 0x40], ax
push 5
push 0x78f3dc
call fcn.00426d40
push ecx
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00651b80
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00426ce0
push 4
xor eax, eax
mov dword [ebp - 0x30], 0
push str.caps
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00426d40
push ecx
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00651b80
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00426ce0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5acf78
push ecx
lea ecx, [ebp - 0x28]
call fcn.00652e10
add esp, 4
push 8
xor eax, eax
mov dword [ebp - 0x30], 0
push str.hdpim.db
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00426d40
push ecx
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00651b80
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00426ce0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea esi, [edi + 8]
cmovae ecx, dword [ebp - 0x28]
mov edx, esi
push 0
call fcn.0064aab0
lea ecx, [edi + 0x20]
add esp, 4
cmp dword [ecx], 0
jne 0x5ad003
cmp dword [esi + 0x14], 0x10
jb 0x5acfe4
mov esi, dword [esi]
xor eax, eax
cmp dword [ebp + 8], eax
setne al
push eax
push esi
call fcn.005ae660
test al, al
jne 0x5ad003
push dword [edi + 0x24]
call fcn.005acd40
mov esi, eax
jmp 0x5ad005
xor esi, esi
lea ecx, [ebp - 0x28]
call fcn.00426ce0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret 4
Function at 0x5ae660
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov byte [ebp - 9], 0
test edi, edi
jne 0x5ae6ad
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x5ae699
mov eax, dword [ecx]
push str.PIMSqlite::initWithDBPath_NULL_parameter
push 0x798f50
push ecx
call dword [eax + 0x20]
add esp, 0xc
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret 8
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5ae6b2
push ebx
sub ecx, edx
lea ebx, [esi + 0xc]
push ecx
push edi
mov ecx, ebx
call fcn.00426e90
cmp dword [ebx + 0x14], 0x10
jb 0x5ae6d0
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
mov ecx, 1
push 0
sete al
mov edx, esi
cmp dword [ebp + 0xc], 0
mov byte [esi + 8], al
mov eax, 6
cmove eax, ecx
mov ecx, edi
push eax
call fcn.00649210
mov edx, dword [esi + 0x24]
add esp, 8
mov dword [esi + 4], eax
test eax, eax
jne 0x5ae7e4
test edx, edx
je 0x5ae725
mov eax, dword [edx]
push edi
push str.Success_sqlite3_open_from_the_path:__s
push 0x798f50
push edx
call dword [eax + 0x20]
add esp, 0x10
mov edi, dword [esi]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x5ae73b
push eax
call dword [0x857d20]
mov eax, dword [edi + 0xc]
add esp, 4
mov dword [edi + 0x1a4], 0x647750
mov dword [edi + 0x1a8], edi
mov dword [edi + 0x1ac], 0
mov dword [edi + 0x1d8], 0
test eax, eax
je 0x5ae76d
push eax
call dword [0x857d28]
add esp, 4
lea eax, [ebp - 8]
mov dword [edi + 0x1d8], 0x3e8
push eax
push 0x5ae170
push str.select_count___from_sqlite_master
mov ecx, esi
mov dword [ebp - 8], 0xffffffff
call fcn.005b2170
test al, al
jne 0x5ae7b3
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x5ae7fc
mov eax, dword [ecx]
push str.Could_not_createOrUpdatePIMDbSchema.
push 0x798f50
push ecx
call dword [eax + 0x20]
add esp, 0xc
jmp 0x5ae7fc
cmp dword [ebp - 8], 0
mov ecx, esi
jne 0x5ae7c2
call fcn.005b1c70
jmp 0x5ae7c7
call fcn.005b1fe0
mov ecx, dword [esi + 0x24]
test al, al
je 0x5ae79a
mov bl, 1
test ecx, ecx
je 0x5ae7ff
mov eax, dword [ecx]
push str.PIM_Database_is_Up_To_Date
push ecx
call dword [eax + 0x14]
add esp, 8
jmp 0x5ae7ff
test edx, edx
je 0x5ae7fc
mov ecx, dword [edx]
push edi
push str.Error_unable_to_open_Sqlite_Data_base_from_the_path:__s
push 0x798f50
push edx
call dword [ecx + 0x20]
add esp, 0x10
mov bl, byte [ebp - 9]
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.006d0965
mov esp, ebp
pop ebp
ret 8
Function at 0x5e60a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
push 0
push 0x14
mov dword [ebx], 0
call fcn.005b5750
mov esi, eax
add esp, 8
test esi, esi
jne 0x5e60d0
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x857cd4], 0
mov edi, dword [ebp + 8]
je 0x5e611a
mov eax, dword [0x857dc4]
test eax, eax
je 0x5e60f3
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x5e611a
mov eax, dword [ebp - 4]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x5b88b0
push 0
push 0
mov dword [esi + 0xc], edi
call fcn.006f230d
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x5e6127
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x5e6140
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi + 4], eax
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x10], eax
pop edi
mov dword [ebx], esi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x650b50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 0
push 0
mov edi, ecx
mov esi, edx
push edi
push 0
xor bl, bl
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
lea eax, [ebp - 0x20c]
push eax
js 0x650bde
push dword [ebp - 0x210]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x650bd0
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x650bb0
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00426d40
mov bl, 1
push dword [ebp - 0x210]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x650c20
push 1
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x650c20
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x650c00
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00426d40
mov bl, 1
mov eax, dword [esi + 0x10]
test eax, eax
je 0x650c70
mov edx, dword [esi + 0x14]
mov ecx, esi
cmp edx, 8
jb 0x650c33
mov ecx, dword [esi]
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x650c70
lea ecx, [eax - 1]
cmp ecx, eax
ja 0x650c65
mov dword [esi + 0x10], ecx
cmp edx, 8
jb 0x650c4c
mov esi, dword [esi]
xor eax, eax
pop edi
mov word [esi + ecx*2], ax
mov al, bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.0053c990
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006d0965
mov esp, ebp
pop ebp
ret

Function at 0x650c90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
push 0
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
test edi, edi
je 0x650ce0
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.006f782c
mov esi, eax
add esp, 4
test esi, esi
je 0x650ce0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x650ce8
push esi
call fcn.006f6ded
add esp, 4
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x650cf0
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 4]
push esi
call fcn.00426d40
push esi
call fcn.006f6ded
add esp, 4
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x650ee0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea edx, [ebp - 0x214]
lea ecx, [ebp - 0x218]
call fcn.0065a6f0
cmp dword [ebp - 0x214], 2
jne 0x650f26
mov ecx, esi
call fcn.00650d20
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
push 0
push 0x2c
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x650f4e
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
push 0x7ea5d0
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00705f39
lea ecx, [ebp - 0x210]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x650f70
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00426d40
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.006d0965
mov esp, ebp
pop ebp
ret
Function at 0x652e10
Capabilities:
Check if file exists
Create directory

Disassembly:
push esi
mov esi, ecx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x652e1d
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esi + 0x14]
test eax, eax
je 0x652e40
cmp ecx, 8
jb 0x652e32
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
pop esi
setne al
ret
cmp ecx, 8
jb 0x652e47
mov esi, dword [esi]
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov esi, eax
test esi, esi
je 0x652eb0
mov eax, dword [0x87d0dc]
test eax, eax
je 0x652e89
push esi
push str.SHCreateDirectoryEx_failed._Error:__d
push 0x799430
push 0x799430
push str.FileUtils
push str.OOBEUtils
push 0x32
call eax
add esp, 0x1c
test esi, esi
sete al
pop esi
ret
mov ecx, dword [0x87d0e0]
test ecx, ecx
je 0x652eae
mov eax, dword [ecx]
push esi
push str.SHCreateDirectoryEx_failed._Error:__d
push str.FileUtils
push 0x799430
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x18
test esi, esi
sete al
pop esi
ret
Function at 0x653dc0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, ecx
mov bh, dl
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x653dd4
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x653f64
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x653ded
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x653dfe
mov eax, dword [edi]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
cmp eax, 1
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
sete bl
je 0x653ee0
test bh, bh
je 0x653ee0
call eax
cmp eax, 5
jne 0x653edb
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x653e36
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
test al, 1
je 0x653edb
mov ecx, dword [0x87d0dc]
test ecx, ecx
je 0x653e80
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x653e5c
mov edx, dword [edi]
push eax
push edx
push str.File__s_is_with_read_only._Its_attribute_is:__d._UnSetting_its_read_only_attr_and_retry_deleting
push 0x799430
push 0x799430
push str.FileUtils
push str.OOBEUtils
push 0x14
call ecx
add esp, 0x20
jmp 0x653eb2
mov ecx, dword [0x87d0e0]
test ecx, ecx
je 0x653eb2
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x653e94
mov edx, dword [edi]
push dword [ebp - 4]
mov eax, dword [ecx]
push edx
push str.File__s_is_with_read_only._Its_attribute_is:__d._UnSetting_its_read_only_attr_and_retry_deleting
push str.FileUtils
push 0x799430
push 0x14
push ecx
call dword [eax + 0x34]
add esp, 0x1c
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x653ebc
mov eax, dword [edi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x653ed2
mov eax, dword [edi]
push eax
call esi
cmp eax, 1
sete bl
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
test bl, bl
jne 0x653f5b
cmp dword [0x87d0dc], 0
je 0x653f26
cmp dword [edi + 0x14], 8
jb 0x653ef5
mov edi, dword [edi]
call eax
push eax
push edi
push str.Failed_to_delete_file:__s_LastError:_d
push 0x799430
push 0x799430
push str.FileUtils
push str.OOBEUtils
push 0x32
call dword [0x87d0dc]
add esp, 0x20
mov al, bl
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [0x87d0e0]
test esi, esi
je 0x653f5b
cmp dword [edi + 0x14], 8
jb 0x653f38
mov edi, dword [edi]
mov esi, dword [esi]
call eax
push eax
push edi
push str.Failed_to_delete_file:__s_LastError:_d
push str.FileUtils
push 0x799430
push 0x32
push dword [0x87d0e0]
call dword [esi + 0x34]
add esp, 0x1c
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x65a8b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x857060]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push esi
push edi
mov edi, ecx
mov esi, 4
mov dword [esp + 0xc], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push 0x110
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x11c
push 0
push eax
call fcn.006e9470
add esp, 0xc
xor eax, eax
mov word [esp + 0x126], ax
mov dword [esp + 0x128], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call ebx
push edx
push eax
call ebx
push edx
push eax
call ebx
push edx
push eax
movzx ecx, si
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], ecx
xor ecx, ecx
push 0x23
push eax
mov dword [esp + 0x28], 0
mov word [esp + 0x134], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x65a96b
inc esi
cmp esi, 0xf
jl 0x65a8f2
jmp 0x65a970
lea eax, [esi - 1]
mov dword [edi], eax
mov edi, 1
mov eax, dword [esp + 0xc]
push 0x110
push 0
mov dword [esp + 0x18], 0x11c
movzx esi, word [eax]
lea eax, [esp + 0x1c]
push eax
call fcn.006e9470
add esp, 0xc
xor eax, eax
mov word [esp + 0x126], ax
mov dword [esp + 0x128], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call ebx
push edx
push eax
call ebx
push edx
push eax
call ebx
push edx
mov ecx, esi
mov dword [esp + 0x18], ecx
push eax
movzx ecx, di
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
xor ecx, ecx
push 0x23
push eax
mov word [esp + 0x134], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x65a9f7
inc edi
cmp edi, 0xa
jl 0x65a975
mov ecx, dword [esp + 0xc]
jmp 0x65aa01
mov ecx, dword [esp + 0xc]
lea eax, [edi - 1]
mov dword [ecx + 4], eax
mov ebx, 1
nop word [eax + eax]
movzx edi, word [ecx + 4]
lea eax, [esp + 0x14]
movzx esi, word [ecx]
push 0x110
push 0
push eax
mov dword [esp + 0x1c], 0x11c
call fcn.006e9470
add esp, 0xc
xor eax, eax
mov word [esp + 0x126], ax
mov dword [esp + 0x128], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
mov ecx, esi
mov word [esp + 0x12c], bx
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x18]
push 0x23
mov ecx, edi
push eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov ecx, dword [esp + 0xc]
test eax, eax
je 0x65aab4
inc ebx
cmp ebx, 0xa
jl 0x65aa10
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
lea eax, [ebx - 1]
pop edi
mov dword [ecx + 8], eax
mov al, 1
mov ecx, dword [esp + 0x130]
pop esi
pop ebx
xor ecx, esp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
Function at 0x65b7b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x748610
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x857060]
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 esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x65b7e7
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x65b804
test eax, 0x400
je 0x65b804
mov eax, 1
jmp 0x65b883
push esi
lea ecx, [ebp - 0x28]
call fcn.00449230
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.00449230
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00651ab0
test al, al
je 0x65b871
nop dword [eax]
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ebx, dword [ebp - 0x28]
lea esi, [ebp - 0x40]
mov edx, dword [ebp - 0x30]
cmp edi, 8
cmovae eax, ebx
cmp dword [ebp - 0x2c], 8
cmovae esi, dword [ebp - 0x40]
cmp edx, dword [ebp - 0x18]
jne 0x65b89f
test edx, edx
je 0x65b871
sub esi, eax
nop dword [eax + eax]
mov cx, word [esi + eax]
cmp cx, word [eax]
jne 0x65b89f
add eax, 2
sub edx, 1
jne 0x65b860
lea ecx, [ebp - 0x40]
call fcn.00426ce0
lea ecx, [ebp - 0x28]
call fcn.00426ce0
xor eax, eax
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.006d0965
mov esp, ebp
pop ebp
ret
cmp edi, 8
lea eax, [ebp - 0x28]
cmovae eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x65b8bb
test eax, 0x400
jne 0x65b8e4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
call fcn.00426d40
lea ecx, [ebp - 0x28]
call fcn.00651ab0
test al, al
jne 0x65b830
jmp 0x65b871
lea ecx, [ebp - 0x40]
call fcn.00426ce0
lea ecx, [ebp - 0x28]
call fcn.00426ce0
mov eax, 2
jmp 0x65b883