joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f6890
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
add ecx, 0x4c
mov word [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ecx + 0x14], 8
jb 0x4f68ae
mov ecx, dword [ecx]
push str.rb__ccsUTF_8
push ecx
lea eax, [ebp - 8]
push eax
call fcn.005a632d
mov eax, dword [ebp - 8]
add esp, 0xc
test eax, eax
je 0x4f6907
push eax
push 2
lea eax, [ebp - 4]
push 1
push eax
call fcn.005a89b0
push dword [ebp - 8]
call fcn.005a640c
mov cl, byte [ebp - 4]
add esp, 0x14
mov al, byte [ebp - 3]
cmp cl, 0xff
jne 0x4f68ef
cmp al, 0xfe
je 0x4f68f8
cmp al, 0xff
jne 0x4f6901
cmp cl, 0xfe
jne 0x4f6901
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x4f6910
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x8c], 1
jne 0x4f694a
call fcn.004f6890
test al, al
jne 0x4f694a
mov eax, dword [ebx]
test eax, eax
je 0x4f6943
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
mov ecx, edi
call fcn.004f7850
cmp dword [edi + 0x60], 8
lea esi, [edi + 0x4c]
jb 0x4f6957
mov eax, dword [esi]
jmp 0x4f6959
mov eax, esi
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x4f69f1
cmp dword [esi + 0x14], 8
jb 0x4f6981
mov esi, dword [esi]
push 0
push 0x80
push 1
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x4f69ac
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x8c], 1
lea ecx, [ebp - 8]
push 0
push ecx
jne 0x4f69da
push 2
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0xfeff
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
push 3
lea ecx, [ebp - 4]
mov word [ebp - 4], 0xbbef
push ecx
push eax
mov byte [ebp - 2], 0xbf
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4f6a00
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cbd16
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x64a070]
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 edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4f6ac4
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x260]
call fcn.00408810
xor bl, bl
lea eax, [ebp - 0x260]
cmp dword [ebp - 0x24c], 8
push 0
cmovae eax, dword [ebp - 0x260]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x4f6a99
cmp eax, 0xb7
je 0x4f6a99
cmp eax, 0x50
jne 0x4f6a9b
mov bl, 1
mov eax, dword [ebp - 0x24c]
cmp eax, 8
jb 0x4f6ab9
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00409510
test bl, bl
jne 0x4f6ac4
xor al, al
jmp 0x4f6be2
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
jne 0x4f6aee
xor ecx, ecx
jmp 0x4f6b06
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f6af7
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00408a10
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
cmp word [esi], ax
jne 0x4f6b46
xor ecx, ecx
jmp 0x4f6b5f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f6b50
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x248]
call fcn.00408a10
lea edx, [ebp - 0x248]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.00507110
mov byte [ebp - 4], 0
mov bl, al
mov ecx, dword [ebp - 0x234]
cmp ecx, 8
jb 0x4f6ba5
inc ecx
push ecx
push dword [ebp - 0x248]
lea ecx, [ebp - 0x248]
call fcn.00409510
test bl, bl
je 0x4f6bc2
lea ecx, [edi + 0x4c]
lea eax, [ebp - 0x230]
cmp ecx, eax
je 0x4f6bc0
push 0xffffffffffffffff
push 0
push eax
call fcn.00408f10
mov bl, 1
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x4f6be0
inc ecx
push ecx
push dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
call fcn.00409510
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.005765b2
mov esp, ebp
pop ebp
ret 4
Function at 0x4f6e00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4f6e10
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
sar esi, 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
add esi, esi
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x68]
call esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 4
push 0x614d84
push dword [ebx + 0x68]
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4f6e70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x4f6e80
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x68]
call esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 2
push 0x614d8c
push dword [ebx + 0x68]
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4f7850
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cbed0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x64a070]
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 edi, ecx
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
lea esi, [edi + 0x4c]
mov dword [ebp - 0x18], 0
push esi
lea ecx, [ebp - 0x28]
mov word [ebp - 0x28], ax
call fcn.00408f10
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.005071c0
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00506f60
lea eax, [ebp - 0x58]
mov edx, 0x5f8534
push eax
lea ecx, [ebp - 0x70]
call fcn.00422280
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040aa30
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x4f7909
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00409510
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.00507450
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00507250
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x4f7995
cmp dword [esi + 0x10], 0
je 0x4f7995
cmp dword [ebp - 0x18], 0
je 0x4f7995
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [esi + 0x14], 8
jb 0x4f796c
mov esi, dword [esi]
push eax
push esi
call fcn.005a8b58
add esp, 8
test eax, eax
jne 0x4f7995
lea ecx, [edi + 0x98]
lea eax, [ebp - 0x28]
cmp ecx, eax
je 0x4f7991
push 0xffffffffffffffff
push 0
push eax
call fcn.00408f10
mov bl, 1
jmp 0x4f7997
xor bl, bl
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4f79ac
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00409510
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x4f79d5
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00409510
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
cmp ecx, 8
jb 0x4f79fe
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00409510
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.005765b2
mov esp, ebp
pop ebp
ret
Function at 0x4f83b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc050
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x64a070]
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 esi, ecx
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 0x64], edi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], eax
call fcn.00507080
test al, al
je 0x4f85ae
xor ecx, ecx
mov dword [ebp - 0x48], 7
push 0xffffffffffffffff
push ecx
lea eax, [esi + 0x34]
mov word [ebp - 0x5c], cx
push eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x4c], 0
call fcn.00408f10
push str..trace
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00408810
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.00507300
mov byte [ebp - 4], 1
mov bl, al
mov ecx, dword [ebp - 0x30]
cmp ecx, 8
jb 0x4f8468
inc ecx
push ecx
push dword [ebp - 0x44]
lea ecx, [ebp - 0x44]
call fcn.00409510
test bl, bl
je 0x4f8585
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x2c]
call fcn.00507110
test al, al
je 0x4f8585
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x4f84a6
mov dword [esi + 0x64], 0xa
jmp 0x4f8585
push str..debug
lea ecx, [ebp - 0x44]
call fcn.00408810
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00507300
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
mov bl, al
call fcn.004087d0
test bl, bl
je 0x4f84e4
lea ecx, [ebp - 0x2c]
call fcn.00507060
test al, al
jne 0x4f8579
lea ecx, [ebp - 0x2c]
call fcn.005073b0
test al, al
je 0x4f8585
push str.asu.trace
lea ecx, [ebp - 0x44]
call fcn.00408810
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.00507110
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
mov bl, al
call fcn.004087d0
test bl, bl
je 0x4f8585
lea ecx, [ebp - 0x2c]
call fcn.00507060
test al, al
je 0x4f8537
mov dword [esi + 0x64], 0xa
jmp 0x4f8585
lea ecx, [ebp - 0x2c]
call fcn.005073b0
test al, al
je 0x4f8585
push str.asu.debug
lea ecx, [ebp - 0x44]
call fcn.00408810
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.00507110
lea ecx, [ebp - 0x44]
mov bl, al
call fcn.004087d0
test bl, bl
je 0x4f8585
lea ecx, [ebp - 0x2c]
call fcn.00507060
test al, al
je 0x4f8585
cmp edi, 0x14
jle 0x4f8585
mov dword [esi + 0x64], 0x14
mov eax, dword [ebp - 0x48]
cmp eax, 8
jb 0x4f859a
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00409510
xor eax, eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x4f85c3
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00409510
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.005765b2
mov esp, ebp
pop ebp
ret 4
Function at 0x4fc9e0
Capabilities:
Create directory

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x4fc9ed
mov eax, dword [esi]
jmp 0x4fc9ef
mov eax, esi
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x4fca36
cmp eax, 0xb7
je 0x4fca36
cmp eax, 0x50
je 0x4fca36
cmp dword [esi + 0x14], 8
jb 0x4fca12
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_create_directoryPath_...Error_Code_is:__d_._At_desired_location:_s
push str.Utilities
call fcn.00502880
push eax
call fcn.00503620
add esp, 0x14
xor al, al
pop esi
ret
mov al, 1
pop esi
ret

Function at 0x4fca40
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
mov bh, dl
cmp dword [esi + 0x14], 8
jb 0x4fca51
mov eax, dword [esi]
jmp 0x4fca53
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4fca89
cmp dword [esi + 0x14], 8
jb 0x4fca66
mov esi, dword [esi]
push esi
push str.File__s_does_not_exist
push str.Utilities
push ecx
call fcn.00502880
add esp, 4
push eax
call fcn.00503470
add esp, 0x10
mov al, 1
pop esi
pop ebx
pop ecx
ret
cmp dword [esi + 0x14], 8
jb 0x4fca93
mov eax, dword [esi]
jmp 0x4fca95
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete bl
test bl, bl
jne 0x4fcb5c
test bh, bh
je 0x4fcb34
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4fcb34
cmp dword [esi + 0x14], 8
jb 0x4fcac7
mov eax, dword [esi]
jmp 0x4fcac9
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
test cl, 1
je 0x4fcb0e
cmp dword [esi + 0x14], 8
jb 0x4fcae1
mov eax, dword [esi]
jmp 0x4fcae3
mov eax, esi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x4fcaf9
mov eax, dword [esi]
jmp 0x4fcafb
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete bl
test bl, bl
jne 0x4fcb5c
jmp 0x4fcb34
cmp dword [esi + 0x14], 8
jb 0x4fcb18
mov eax, dword [esi]
jmp 0x4fcb1a
mov eax, esi
push ecx
push eax
push str.File__s_is_not_read_only._Its_attribute_is:__d
push str.Utilities
call fcn.00502880
push eax
call fcn.00503590
add esp, 0x14
cmp dword [esi + 0x14], 8
jb 0x4fcb3c
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Failed_to_delete_file:__s_LastError:_d
push str.Utilities
call fcn.00502880
push eax
call fcn.005036b0
add esp, 0x14
pop esi
mov al, bl
pop ebx
pop ecx
ret

Function at 0x4fccf0
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x4fccfd
mov eax, dword [esi]
jmp 0x4fccff
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4fcd33
cmp dword [esi + 0x14], 8
jb 0x4fcd12
mov esi, dword [esi]
push esi
push str.File__s_does_not_exist
push str.Utilities
push ecx
call fcn.00502880
add esp, 4
push eax
call fcn.00503470
add esp, 0x10
xor al, al
pop esi
ret
mov al, 1
pop esi
ret
Function at 0x4fcd40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0x5f85b0
mov esi, ecx
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x4fcdb0
mov edx, dword [ebp - 4]
cmp word [edx], 0
jne 0x4fcd84
xor ecx, ecx
push ecx
push edx
mov ecx, esi
call fcn.00408a10
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4fcd90
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00408a10
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_retreive_Local_App_Data_Path_from_Win_library__error_occured__:__d
push str.Utilities
push ecx
call fcn.00502880
add esp, 4
push eax
call fcn.005036b0
add esp, 0x10
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4fcde0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0x5f85a0
mov esi, ecx
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x4fce50
mov edx, dword [ebp - 4]
cmp word [edx], 0
jne 0x4fce24
xor ecx, ecx
push ecx
push edx
mov ecx, esi
call fcn.00408a10
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4fce30
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00408a10
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_retreive_Local_App_Data_Path_from_Win_library__error_occured__:__d
push str.Utilities
push ecx
call fcn.00502880
add esp, 4
push eax
call fcn.005036b0
add esp, 0x10
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4fd160
Capabilities:
Check if file exists
Copy file
Set file attributes

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, edx
cmp dword [edi + 0x14], 8
jb 0x4fd170
mov eax, dword [edi]
jmp 0x4fd172
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4fd1bf
cmp dword [edi + 0x14], 8
jb 0x4fd185
mov edi, dword [edi]
push edi
push str.File__s_does_not_exist
push str.Utilities
push ecx
call fcn.00502880
add esp, 4
push eax
call fcn.00503470
add esp, 0x10
push str.Source_file_does_not_exist_in_utilCopySrcFileToDstFile
push str.Utilities
call fcn.00502880
push eax
call fcn.005036b0
add esp, 0xc
xor al, al
pop edi
pop esi
ret
mov dl, 1
mov ecx, esi
call fcn.004fca40
test al, al
je 0x4fd1ba
cmp dword [esi + 0x14], 8
jb 0x4fd1d6
mov eax, dword [esi]
jmp 0x4fd1d8
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x4fd1e0
mov edi, dword [edi]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne al
test al, al
jne 0x4fd220
cmp dword [esi + 0x14], 8
jb 0x4fd1fb
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Failed_to_copy_file_at_the_destination:_s._LastError:__d
push str.Utilities
call fcn.00502880
push eax
call fcn.005036b0
add esp, 0x14
xor al, al
pop edi
pop esi
ret
mov ecx, esi
call fcn.004fcf40
cmp dword [esi + 0x14], 8
jb 0x4fd22f
mov esi, dword [esi]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
mov al, 1
pop esi
ret
Function at 0x4fd240
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5be990
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x64a070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004fc7f0
test al, al
jne 0x4fd2c0
push str.Failed_to_convert_path_to_wide_char
push str.Utilities
call fcn.00502880
push eax
call fcn.00503590
add esp, 0xc
xor bl, bl
jmp 0x4fd39b
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.004fc7f0
test al, al
je 0x4fd2a1
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsFileSpecW]
test eax, eax
je 0x4fd311
mov dl, 1
lea ecx, [ebp - 0x28]
call fcn.004fca40
test al, al
jne 0x4fd311
push str.Failed_to_remove_remains_of_the_installation
push str.Utilities
call fcn.00502880
push eax
call fcn.005036b0
add esp, 0xc
xor bl, bl
jmp 0x4fd39b
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
push str.Backup_File__ls_Source_File_:_ls
push str.Utilities
call fcn.00502880
push eax
call fcn.00503590
add esp, 0x14
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.005a8b58
add esp, 8
test eax, eax
je 0x4fd381
push str.Failed_to_Restore_the_Backup_File
push str.Utilities
call fcn.00502880
push eax
call fcn.00503740
add esp, 0xc
xor bl, bl
jmp 0x4fd39b
push str.Backup_Folder_is_restored_to_original_File
push str.Utilities
call fcn.00502880
push eax
call fcn.00503590
add esp, 0xc
mov bl, 1
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4fd3b0
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409510
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x4fd3d9
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.00409510
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005765b2
mov esp, ebp
pop ebp
ret
Function at 0x4fe560
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc0b8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x64a070]
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], 0
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
jne 0x4fe5ba
push str.OPM_db_is_not_initialized_in_opd_getOpdSchemaVersion
push 0x613984
call fcn.00502880
push eax
call fcn.00503620
add esp, 0xc
mov eax, 1
jmp 0x4fe63c
push 0x35
push str.SELECT_value_FROM_opm_meta_WHERE_keyschema_version
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00408bb0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [esi]
cmovae edx, dword [ebp - 0x28]
push edi
call fcn.004fdcc0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4fe625
push 0x43
push str.SELECT_value_FROM_opm_meta_WHERE_keyschema_compatibility_version
lea ecx, [ebp - 0x28]
call fcn.00408bb0
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
mov ecx, dword [esi]
cmovae edx, dword [ebp - 0x28]
push ebx
call fcn.004fdcc0
add esp, 4
mov edi, eax
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4fe63a
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00408df0
mov eax, edi
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.005765b2
mov esp, ebp
pop ebp
ret 8