joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53b89c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 1
push dword [ebp + 8]
lea eax, [ebp - 0x18]
mov esi, ecx
push 7
push eax
call fcn.004ca5a0
add esp, 0x10
lea eax, [ebp - 0x18]
cmp dword [ebp - 4], 8
cmovae eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x53b954
sub esp, 0x18
xor ebx, ebx
mov ecx, esp
push dword [ebp + 0x10]
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00407eca
push dword [ebp + 0xc]
sub esp, 0x18
mov ecx, esp
push dword [ebp + 8]
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00407eca
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push 7
push dword [eax]
call fcn.0053ba3c
mov edi, 0x605890
lea ecx, [ebp - 0x48]
push edi
call fcn.00408981
push edi
lea ecx, [ebp - 0x30]
call fcn.00408981
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
push ebx
push ebx
push 0x65
push 0x7d6
call fcn.0053d2cd
lea ecx, [ebp - 0x30]
call fcn.00403730
lea ecx, [ebp - 0x48]
call fcn.00403730
lea ecx, [ebp - 0x18]
call fcn.00403730
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x53b9b9
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
lea ecx, [ebp - 0x18]
push esi
push dword [ebp + 0x14]
call fcn.00408981
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push 1
push eax
push dword [ebp + 0x10]
push esi
call fcn.004ca5a0
add esp, 0x10
lea ecx, [ebp - 0x18]
call fcn.00403730
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x53b9f2
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x53ba35
push dword [ebp + 0x14]
lea ecx, [ebp - 0x18]
call fcn.00408981
push 1
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x30]
push eax
call fcn.004ca5a0
add esp, 0x10
mov ecx, esi
push eax
call fcn.004443e3
lea ecx, [ebp - 0x30]
call fcn.00403730
lea ecx, [ebp - 0x18]
call fcn.00403730
mov eax, esi
pop esi
leave
ret 0x10
Function at 0x53c061
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.004ec1a0
lea ecx, [ebp - 0x18]
mov dword [esp], str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlags
call fcn.00408981
push str.Compatibility_AssistantPersisted
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0044c79e
push 0x5e3b88
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0044c79e
push 0x20006
push SysReAllocString
push 1
lea eax, [ebp - 0x30]
push esi
push eax
call fcn.004c6720
add esp, 0x2c
call fcn.004db670
cmp eax, 0x40
jne 0x53c111
and dword [ebp + 8], 0
lea ecx, [ebp + 8]
cmp dword [ebp - 4], 8
lea eax, [ebp - 0x18]
push ecx
cmovae eax, dword [ebp - 0x18]
push 0x2011f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x53c111
cmp dword [esi + 0x14], 8
jb 0x53c0f9
mov esi, dword [esi]
push esi
push str.Layers
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x48]
call fcn.00403730
lea ecx, [ebp - 0x30]
call fcn.00403730
lea ecx, [ebp - 0x18]
call fcn.00403730
pop esi
leave
ret 4

Function at 0x53c40c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov esi, ecx
call fcn.0054bc62
test al, al
je 0x53c486
lea ecx, [esi + 0xd4]
call fcn.00536701
test al, al
je 0x53c486
push str.User_DataDefaultpreferences
lea ecx, [ebp - 0x30]
call fcn.00408981
push 1
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push 9
push eax
call fcn.004ca5a0
add esp, 0x10
lea ecx, [ebp - 0x30]
call fcn.00403730
mov esi, 0x5e39b0
push esi
call fcn.0057bbea
pop ecx
push eax
push esi
lea ecx, [ebp - 0x18]
call fcn.004092f8
cmp dword [ebp - 4], 8
lea eax, [ebp - 0x18]
cmovae eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea ecx, [ebp - 0x18]
call fcn.00403730
pop esi
leave
ret
Function at 0x53c489
Capabilities:
Check if file exists
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push str.User_DataDefaultUserTyped
lea ecx, [ebp - 0x28]
call fcn.00408981
push 1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push 9
push eax
call fcn.004ca5a0
add esp, 0x10
lea ecx, [ebp - 0x28]
call fcn.00403730
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x53c5c7
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push ebx
cmovae eax, dword [ebp - 0x40]
xor ebx, ebx
push esi
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x53c5c5
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 8], eax
test eax, eax
je 0x53c5be
lea ecx, [ebp - 1]
mov dword [ebp - 0x1c], ebx
push ecx
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 1], bl
call fcn.004c9a60
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [ebp - 0x1c]
cmp byte [eax], bl
je 0x53c580
push str.InputUrls
lea ecx, [ebp - 0x58]
call fcn.00408981
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x58]
push eax
push 0xf
call fcn.004c9070
add esp, 0xc
lea ecx, [ebp - 0x58]
call fcn.00403730
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x53c5be
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
cmp ecx, 0x1000
jb 0x53c5ac
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040379f
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
push ecx
push eax
call fcn.0056d0c8
pop ecx
pop ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
pop ebx
call fcn.0054c287
lea ecx, [ebp - 0x40]
call fcn.00403730
leave
ret

Function at 0x53c5d6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp esi, 0xb
ja 0x53c610
mov edx, dword [edi + esi*4 + 0x54]
test edx, edx
jne 0x53c607
xor eax, eax
push eax
push eax
push esi
push 0x545a89
push eax
push eax
call fcn.00592655
mov edx, eax
add esp, 0x18
mov dword [edi + esi*4 + 0x54], edx
xor eax, eax
test edx, edx
setne al
jmp 0x53c612
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x53cb19
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x798], ebx
je 0x53cb3e
mov dword [edi + 0x758], 5
xor eax, eax
jmp 0x53cc1c
push esi
push str.mutex_qqbrowser_uninstall
lea ecx, [ebp - 0x20]
call fcn.00408981
lea eax, [ebp - 0x20]
push eax
call fcn.0053cc20
pop ecx
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.00403730
test esi, esi
je 0x53cb73
mov dword [edi + 0x758], 6
jmp 0x53cc14
call fcn.004eb260
test eax, eax
jne 0x53cb8b
mov dword [edi + 0x758], 2
jmp 0x53cc14
lea ecx, [edi + 0xd4]
call fcn.0053680b
test al, al
jne 0x53cbb0
call fcn.004dc3c0
cmp eax, 5
jg 0x53cbb0
mov dword [edi + 0x758], 0xb
jmp 0x53cc14
push ebx
lea eax, [ebp - 0x38]
mov dword [ebp - 8], ebx
push 4
push eax
mov dword [ebp - 4], ebx
call fcn.004ca580
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0053def0
add esp, 0x14
cmp dword [eax + 0x14], 8
jb 0x53cbd7
mov eax, dword [eax]
lea ecx, [ebp - 8]
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExW]
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.00403730
lea ecx, [ebp - 0x38]
call fcn.00403730
test esi, esi
je 0x53cc18
cmp dword [ebp - 4], ebx
ja 0x53cc18
jb 0x53cc0a
cmp dword [ebp - 8], 0x12c00000
jae 0x53cc18
mov dword [edi + 0x758], 4
xor eax, eax
jmp 0x53cc1b
xor eax, eax
inc eax
pop esi
pop edi
pop ebx
leave
ret
Function at 0x53cc54
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
push ebx
push esi
push edi
push str.chrome.dll
lea ecx, [ebp - 0xd4]
call fcn.00408981
push str.chrome_elf.dll
lea ecx, [ebp - 0xbc]
call fcn.00408981
push str.F1Assistant.dll
lea ecx, [ebp - 0xa4]
call fcn.00408981
push str.F1Frame.dll
lea ecx, [ebp - 0x8c]
call fcn.00408981
push str.FrameLoader.dll
lea ecx, [ebp - 0x74]
call fcn.00408981
push str.QQBrowser.exe
lea ecx, [ebp - 0x5c]
call fcn.00408981
push dword [ebp - 4]
lea eax, [ebp - 0x44]
xor ebx, ebx
push eax
lea eax, [ebp - 0xd4]
mov dword [ebp - 0x14], ebx
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.0053aec6
push 6
pop esi
push 0x18
lea edi, [ebp - 0x44]
pop eax
sub edi, eax
mov ecx, edi
call fcn.00403730
push 0x18
pop eax
sub esi, 1
jne 0x53cce4
mov eax, dword [ebp - 0x10]
xor edi, edi
mov esi, dword [ebp - 0x14]
sub eax, esi
push 0x18
cdq
pop ecx
idiv ecx
mov dword [ebp - 8], eax
test eax, eax
jle 0x53cd79
push 1
sub esp, 0x18
xor eax, eax
mov ecx, esp
push esi
mov dword [ecx], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
call fcn.00407eca
lea eax, [ebp - 0x44]
push eax
call fcn.00538737
mov ecx, eax
call fcn.00538767
push eax
lea eax, [ebp - 0x2c]
push 1
push eax
call fcn.004ca5a0
add esp, 0x10
lea ecx, [ebp - 0x44]
call fcn.00403730
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x53cd63
bts ebx, edi
lea ecx, [ebp - 0x2c]
call fcn.00403730
push 0x18
pop ecx
inc edi
add esi, ecx
cmp edi, dword [ebp - 8]
jl 0x53cd0c
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x53cdc8
mov edi, esi
jmp 0x53cd8d
mov ecx, edi
call fcn.00403730
push 0x18
pop ecx
add edi, ecx
cmp edi, dword [ebp - 0x10]
jne 0x53cd81
mov eax, dword [ebp - 0xc]
sub eax, esi
mov dword [ebp - 4], esi
cdq
idiv ecx
imul eax, eax, 0x18
mov dword [ebp - 8], eax
cmp eax, 0x1000
jb 0x53cdbf
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0040379f
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 4]
pop ecx
pop ecx
push eax
push esi
call fcn.0056d0c8
pop ecx
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x53d0c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push edi
xor ebx, ebx
lea eax, [ebp - 0x68]
push ebx
push 2
push eax
call fcn.004cc510
mov ecx, eax
call fcn.004cc6b0
push 7
pop edi
push ebx
mov byte [ebp - 8], bl
lea ecx, [ebp - 0x20]
push dword [ebp - 8]
mov dword [ebp - 0x20], ebx
push 0x105
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edi
call fcn.00529636
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
push 0x104
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x53d1de
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
push esi
cmovae eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x38]
push eax
call fcn.00408981
mov esi, str.icacls.exe
push esi
call fcn.0057bbea
pop ecx
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.004092f8
push 0x60a05c
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x80]
push 0x60b624
push eax
call fcn.00459df8
add esp, 0xc
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0044c782
add esp, 0xc
lea ecx, [ebp - 0x80]
call fcn.00403730
push str.__inheritance:d__Q
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0044c79e
push eax
lea eax, [ebp - 0x38]
push 0x1388
push eax
call fcn.004e7490
add esp, 0x18
lea ecx, [ebp - 0x80]
call fcn.00403730
push str.__remove:g__Authenticated_Users___Q
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0044c79e
push eax
lea eax, [ebp - 0x38]
push ebx
push eax
call fcn.004e7490
add esp, 0x18
lea ecx, [ebp - 0x80]
call fcn.00403730
lea ecx, [ebp - 0x50]
call fcn.00403730
lea ecx, [ebp - 0x38]
call fcn.00403730
pop esi
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x53d21b
mov ecx, dword [ebp - 0x20]
lea eax, [eax*2 + 2]
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
cmp eax, 0x1000
jb 0x53d212
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040379f
mov eax, dword [ebp - 4]
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
push eax
push ecx
call fcn.0056d0c8
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x68]
mov dword [ebp - 0xc], edi
mov word [ebp - 0x20], ax
call fcn.00403730
pop edi
pop ebx
leave
ret

Function at 0x53d233
Capabilities:
Check if file exists
Delete file
Move file
Set registry value

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x53d28e
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x53d28e
cmp dword [ebp + 0xc], 0
je 0x53d281
push dword [ebp + 0xc]
call fcn.0057bbea
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0xc]
push 1
push str.CC_FLASH_VER
push str.SoftwareTencentQQBrowserPrivateCfg
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
pop ebp
ret
Function at 0x53d290
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x84]
test eax, eax
je 0x53d2cb
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x53d2cb
push 0
push dword [esi + 0x84]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0x465
push dword [esi + 0x84]
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
ret

Function at 0x53d5a6
Capabilities:
Encode data using xor
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x53d660
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x53d5e3
test esi, esi
jne 0x53d5ee
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, bl
jmp 0x53d662
push ebx
push ebx
push ebx
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
test eax, eax
je 0x53d660
push ebx
push ebx
push ebx
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov edi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test edi, edi
je 0x53d660
mov dl, 0xca
cmp byte [ebp + 0xc], bl
je 0x53d647
mov ebx, edi
mov al, byte [ebx]
mov cl, al
xor cl, dl
mov byte [ebx], cl
inc ebx
lea edx, [eax + 1]
sub esi, 1
jne 0x53d634
jmp 0x53d655
mov eax, edi
xor byte [eax], dl
mov dl, byte [eax]
inc dl
inc eax
sub esi, 1
jne 0x53d649
push edi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov al, 1
jmp 0x53d662
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x53df6f
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
push esi
cmp dword [ebp + 0x1c], ebx
je 0x53dfea
push 1
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.004ca5a0
mov esi, eax
add esp, 0x10
lea eax, [ebp + 0xc]
cmp eax, esi
je 0x53dfaa
mov ecx, eax
call fcn.00403730
push esi
lea ecx, [ebp + 0xc]
call fcn.00444b1d
lea ecx, [ebp - 0x18]
call fcn.00403730
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x53dfea
mov esi, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
mov dword [esi], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call fcn.00444b1d
lea ecx, [ebp + 0xc]
call fcn.00403730
mov eax, esi
jmp 0x53e051
mov eax, dword [ebp + 0x24]
cmp dword [eax + 0x10], ebx
je 0x53e039
push 1
push eax
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.004ca5a0
mov esi, eax
add esp, 0x10
lea eax, [ebp + 0xc]
cmp eax, esi
je 0x53e01b
mov ecx, eax
call fcn.00403730
push esi
lea ecx, [ebp + 0xc]
call fcn.00444b1d
lea ecx, [ebp - 0x18]
call fcn.00403730
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x53dfc8
mov ecx, dword [ebp + 8]
push 0x605890
call fcn.00408981
lea ecx, [ebp + 0xc]
call fcn.00403730
mov eax, dword [ebp + 8]
pop esi
pop ebx
leave
ret
Function at 0x53e5dd
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
push 2
pop edi
mov eax, dword [esi + 0x754]
test eax, eax
jne 0x53e746
cmp dword [esi + 0x7e0], ebx
je 0x53e623
lea eax, [esi + 0x7d0]
mov dword [ebp - 0x38], ebx
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.00407eca
xor edi, edi
lea eax, [ebp - 0x38]
inc edi
jmp 0x53e632
lea eax, [ebp - 0x68]
push eax
call fcn.004dc850
pop ecx
push 2
mov edi, ebx
pop ebx
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0x20]
push eax
call fcn.00444b1d
test ebx, ebx
je 0x53e652
lea ecx, [ebp - 0x68]
call fcn.00403730
test edi, edi
je 0x53e693
mov eax, dword [ebp - 0x24]
cmp eax, 8
jb 0x53e693
mov ecx, dword [ebp - 0x38]
lea eax, [eax*2 + 2]
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
cmp eax, 0x1000
jb 0x53e68a
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040379f
mov eax, dword [ebp - 4]
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
push eax
push ecx
call fcn.0056d0c8
pop ecx
pop ecx
lea eax, [ebp - 0x50]
push eax
call fcn.004dcbb0
cmp dword [ebp - 0x10], 0
pop ecx
je 0x53e6ec
cmp dword [ebp - 0x40], 0
je 0x53e6ec
lea eax, [ebp - 0x50]
push eax
lea ecx, [esi + 0x7e8]
call fcn.00405d53
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00458ccd
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x53e6d9
mov dword [esi + 0x754], 3
jmp 0x53e6f6
push 4
pop eax
push 2
test ecx, ecx
pop edi
cmovs eax, edi
mov dword [esi + 0x754], eax
jmp 0x53e6f9
mov dword [esi + 0x754], 1
push 2
pop edi
lea ecx, [ebp - 0x50]
call fcn.00403730
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x53e73e
mov ecx, dword [ebp - 0x20]
lea eax, [eax*2 + 2]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
cmp eax, 0x1000
jb 0x53e735
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0040379f
mov eax, dword [ebp - 8]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
push eax
push ecx
call fcn.0056d0c8
pop ecx
pop ecx
mov eax, dword [esi + 0x754]
xor ebx, ebx
cmp eax, 1
je 0x53e7f4
push 0x6096b8
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 7
call fcn.00408981
sub esp, 0x18
mov ecx, esp
push 0x605890
call fcn.00408981
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x50]
push eax
push edi
call fcn.004c7d70
add esp, 0x24
lea ecx, [ebp - 0x50]
call fcn.00403730
cmp dword [ebp - 0x10], 0
je 0x53e7ad
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x53e7b7
mov dword [esi + 0x754], 1
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x53e7f4
mov ecx, dword [ebp - 0x20]
lea eax, [eax*2 + 2]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
cmp eax, 0x1000
jb 0x53e7eb
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0040379f
mov eax, dword [ebp - 8]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
push eax
push ecx
call fcn.0056d0c8
pop ecx
pop ecx
mov eax, dword [esi + 0x754]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x53f4cc
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x53f5cf
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x53f50f
test edi, edi
jne 0x53f51d
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, bl
jmp 0x53f5d1
push ebx
push ebx
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [ebp - 4]
test esi, esi
je 0x53f5cf
push ebx
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test ebx, ebx
je 0x53f5cf
lea eax, [ebp - 0x84]
push eax
call fcn.0054232e
push edi
lea eax, [ebp - 0x84]
push ebx
push eax
call fcn.005429cf
mov esi, dword [ebp + 0x10]
add esp, 0x10
test esi, esi
je 0x53f593
push esi
call fcn.0057db80
push eax
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.005429cf
add esp, 0x10
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00542284
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00542219
mov ecx, dword [ebp + 0xc]
add esp, 0x10
push eax
call fcn.0043e45b
lea ecx, [ebp - 0x2c]
call fcn.00403812
push ebx
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov al, 1
jmp 0x53f5d1
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x540036
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov esi, ecx
lea ecx, [ebp - 0x30]
push str.User_DataDefaultPreferences
call fcn.00408981
push 1
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push 9
push eax
call fcn.004ca5a0
add esp, 0x10
lea ecx, [ebp - 0x30]
call fcn.00403730
cmp dword [ebp - 4], 8
lea eax, [ebp - 0x18]
cmovae eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0x18]
mov byte [esi + 0x7b5], 0
call fcn.00403730
pop esi
leave
ret