joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ab40
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
push esi
lea eax, [esp + 4]
push eax
push 0x28
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40aba1
lea ecx, [esp + 0xc]
push ecx
push str.SeDebugPrivilege
push esi
mov dword [esp + 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 4]
push esi
push esi
push 0x10
lea edx, [esp + 0x14]
push edx
push esi
push eax
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x14
ret 4

Function at 0x40ad00
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
push edi
push str.Registering_dll__s
call fcn.0040c5e0
add esp, 8
call fcn.00404550
test eax, eax
jne 0x40ad51
test edi, edi
je 0x40ad5e
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ad51
push edi
call fcn.004045d0
add esp, 4
test eax, eax
jne 0x40ad51
push 1
call fcn.0044dda0
push eax
push edi
call fcn.0044dfb0
add esp, 0xc
jmp 0x40ad5e
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
jne 0x40ad74
push edi
push str.Can_not_load__s__return.
call fcn.0040c5e0
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
push ebp
push str.DllRegisterServer
push ebx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ad92
call eax
xor ecx, ecx
test eax, eax
setge cl
mov ebp, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
push str.Register__s_done.
call fcn.0040c5e0
add esp, 8
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
ret 8
Function at 0x40b490
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x46bc48
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485d30]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x40b50d
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x40b50d
lea eax, [esp + 0x28]
push eax
call fcn.00408120
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b525
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b50d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
mov esi, dword [esp + 0x28]
mov eax, dword [esi - 0xc]
cmp eax, 0x100
jl 0x40b54d
lea eax, [esi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40b501
push 0x2a0
push 0
push ebx
call fcn.0044e220
push 0x100
push esi
push ebx
call fcn.0044f1bb
mov ebp, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov ecx, dword [ebp]
mov eax, dword [ecx + 0x34]
add esp, 0x18
push edx
push ebp
call eax
mov dword [ebx + 0x208], eax
test eax, eax
je 0x40b5b2
mov ecx, dword [ebp]
lea edx, [ebx + 0x28c]
push edx
mov edx, dword [esp + 0x2c]
lea eax, [ebx + 0x288]
push eax
mov eax, dword [ecx + 0x3c]
push edx
push ebp
call eax
mov edi, dword [esp + 0x28]
lea esi, [ebx + 0x218]
call fcn.00414990
jmp 0x40b5dc
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x40b5dc
mov ecx, dword [ebp + 8]
push ecx
push 0x10
lea edx, [ebx + 0x218]
push edx
push 0
push 0x4782dc
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edx, dword [esp + 0x28]
mov eax, dword [ebp]
mov eax, dword [eax + 0x38]
push 0x28
lea ecx, [ebx + 0x238]
push ecx
push edx
push ebp
call eax
lea ecx, [esp + 0x28]
call fcn.00414aa0
mov dword [ebx + 0x210], eax
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [ebx + 0x214], edx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b630
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x40b50f
Function at 0x40ba90
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x68
mov eax, dword [0x485d30]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
mov esi, dword [esp + 0x74]
push edi
mov edi, dword [esp + 0x7c]
xor eax, eax
test edi, edi
je 0x40bb10
mov word [edi], ax
test esi, esi
jne 0x40baca
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0044e20c
add esp, 0x68
ret 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40bab5
push 0x64
lea ecx, [esp + 0xc]
push 0
push ecx
call fcn.0044e220
add esp, 0xc
lea eax, [esp + 8]
mov ecx, esi
call fcn.00414870
test eax, eax
je 0x40bab5
mov eax, dword [esp + 0x80]
push ebx
push edi
lea ebx, [esp + 0x10]
call fcn.00414930
add esp, 4
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
xor ecx, esp
call fcn.0044e20c
add esp, 0x68
ret 0x10

Function at 0x40bc80
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40bca2
xor eax, eax
add esp, 0x14
ret 4
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp]
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40bc9a
push 0x80020003
push 0x12
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret 4

Function at 0x40c020
Capabilities:
Get disk information
Get disk size

Disassembly:
sub esp, 0x14
mov eax, dword [0x485d30]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [0x4783cc]
mov ecx, dword [0x4783d0]
mov dx, word [esp + 0x1c]
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0x10], ecx
mov word [esp + 0xc], dx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x40c070
xor eax, eax
xor edx, edx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0044e20c
add esp, 0x14
ret 8
xor eax, eax
lea ecx, [esp]
push ecx
push eax
push eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x40c05b
mov ecx, dword [esp + 0x10]
mov eax, dword [esp]
mov edx, dword [esp + 4]
xor ecx, esp
call fcn.0044e20c
add esp, 0x14
ret 8
Function at 0x40c240
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x814
mov eax, dword [0x485d30]
xor eax, esp
mov dword [esp + 0x810], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x800
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.0044e220
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov eax, dword [ebp + 0xc]
push 0
cdq
push 0x100000
push edx
push eax
lea esi, [esp + 0x28]
call fcn.00451e60
cmp word [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov ebx, edx
je 0x40c2df
movzx eax, word [esi]
mov edx, dword [edi]
mov ecx, dword [edx + 0x48]
push eax
push edi
call ecx
cmp edx, ebx
ja 0x40c2f8
jb 0x40c2c0
cmp eax, dword [esp + 0x10]
ja 0x40c2f8
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c2c5
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], cx
lea esi, [esi + eax*2 + 2]
jne 0x40c2a8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x810]
xor ecx, esp
call fcn.0044e20c
mov esp, ebp
pop ebp
ret 8
mov ax, word [esi]
mov ecx, dword [esp + 0x81c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044e20c
mov esp, ebp
pop ebp
ret 8

Function at 0x40c320
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x808
mov eax, dword [0x485d30]
xor eax, esp
mov dword [esp + 0x804], eax
push 0x800
lea eax, [esp + 4]
push 0
push eax
call fcn.0044e220
add esp, 0xc
push 0x400
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, dword [esp + 0x804]
mov ax, word [esp]
xor ecx, esp
call fcn.0044e20c
mov esp, ebp
pop ebp
ret 4
Function at 0x40c3d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46c006
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x485d30]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
mov eax, dword [0x485d30]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test esi, esi
je 0x40c5ae
mov eax, dword [0x487cf8]
mov edx, dword [eax + 0xc]
mov ecx, 0x487cf8
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x248], 0
cmp dword [edi + 0x10], 0
jne 0x40c4a3
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x40c4af
lea ecx, [esp + 0x1c]
push ecx
push 0x15
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40c495
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea edx, [esp + 0x2c]
lea edi, [esp + 0x14]
call fcn.00402ae0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x40c4af
lea eax, [edi + 4]
lea edi, [esp + 0x14]
call fcn.00402b40
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
mov ebx, 0x478448
je 0x40c4c3
mov ebx, str.360safe.setup.log
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0040c9c0
mov byte [esp + 0x250], 1
mov eax, dword [esp + 0x20]
push 0x478494
push eax
call fcn.0045015f
mov edi, eax
add esp, 0x10
test edi, edi
je 0x40c55b
push 2
push 0
push edi
call fcn.00451af4
add esp, 0xc
push 0
call fcn.004514b4
add esp, 4
push edx
push eax
lea eax, [esp + 0x28]
call fcn.0040a390
lea ebx, [esp + 0x10]
lea ecx, [esp + 0x20]
call fcn.0040a3f0
mov ecx, dword [esp + 0x10]
push esi
push ecx
push str._s__s_r_n
push edi
call fcn.00451b79
push edi
call fcn.0044fa63
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x14
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c55b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x248], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c583
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x248], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c5ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0044e20c
mov esp, ebp
pop ebp
ret 8
Function at 0x40c720
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x480de8
push 0x450240
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
push ebx
push esi
push edi
mov eax, dword [0x485d30]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
call edx
mov dword [ebp - 4], 0xfffffffe
jmp 0x40c78b
cmp dword [0x4894c4], 0
jne 0x40c805
call fcn.00404550
test eax, eax
jne 0x40c7d6
push str.ntdll
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c7d6
push str.ntdll
call fcn.004045d0
add esp, 4
test eax, eax
jne 0x40c7d6
push 1
call fcn.0044dda0
push eax
push str.ntdll
call fcn.0044dfb0
add esp, 0xc
xor edi, edi
jmp 0x40c7f8
push str.ntdll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x40c7f8
push str.NtQueryInformationProcess
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4894c4], eax
cmp dword [0x4894c4], 0
je 0x40c898
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40c898
push 0
push 0x18
lea ecx, [ebp - 0x3c]
push ecx
push 0
push esi
call dword [0x4894c4]
test eax, eax
jne 0x40c891
lea edx, [ebp - 0x1c]
push edx
push 0x1c
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call ebx
test eax, eax
je 0x40c891
lea edx, [ebp - 0x1c]
push edx
push 0x90
lea eax, [ebp - 0xe8]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
push esi
call ebx
test eax, eax
je 0x40c891
movzx eax, word [ebp - 0xa8]
cmp dword [ebp + 0x14], eax
jb 0x40c891
lea edx, [ebp - 0x1c]
push edx
push eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xa4]
push ecx
push esi
call ebx
test eax, eax
je 0x40c891
mov dword [ebp - 0x20], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x40c8a3
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40c8c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
xor eax, eax
push ebx
push esi
push edi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call fcn.00404550
test eax, eax
jne 0x40c93c
push str.ntdll
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c93c
push str.ntdll
call fcn.004045d0
add esp, 4
test eax, eax
jne 0x40c93c
push 1
call fcn.0044dda0
push eax
push str.ntdll
call fcn.0044dfb0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.ntdll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40c966
push str.NtQueryInformationProcess
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
jne 0x40c972
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40c95f
push 0
push 0x18
lea ecx, [esp + 0x18]
push ecx
push 0
push edi
call ebx
mov ebx, dword [esp + 0x24]
test eax, eax
je 0x40c9a3
mov ebx, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ce90
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x46b768
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x485d30]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
cmp dword [edi + 4], 0
je 0x40cf10
mov eax, dword [0x487cf8]
mov edx, dword [eax + 0xc]
mov ecx, 0x487cf8
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x18], 0
call fcn.0040cfa0
test eax, eax
jne 0x40cf27
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cf10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0xc
lea eax, [esp + 0x1c]
call fcn.0040d0f0
test eax, eax
je 0x40cee8
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
push ecx
push edx
push esi
call fcn.0043c250
add esp, 0xc
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cf78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0xc
Function at 0x40cfa0
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov eax, 0x1104
call fcn.0044f150
mov eax, dword [0x485d30]
xor eax, esp
mov dword [esp + 0x1100], eax
push ebx
push ebp
mov ebp, dword [esp + 0x1110]
push esi
push edi
push 0x800
lea eax, [esp + 0x914]
push 0
push eax
call fcn.0044e220
push 0x800
lea ecx, [esp + 0x120]
push 0
push ecx
call fcn.0044e220
push 0x100
lea edx, [esp + 0x2c]
push 0
push edx
call fcn.0044e220
add esp, 0x24
lea eax, [esp + 0x910]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor esi, esi
mov edx, dword [0x4891e8]
mov eax, dword [edx + 0x2c]
push 0x80
lea ecx, [esp + 0x14]
push ecx
push 0x4891e8
call eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x914]
push edx
lea eax, [esp + 0x118]
push eax
call edi
lea eax, [esp + 0x110]
add eax, 0xfffffffe
jmp 0x40d060
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40d060
mov ecx, dword [0x4785c0]
mov edx, dword [0x4785c4]
mov dword [eax], ecx
mov dword [eax + 4], edx
lea eax, [esp + 0x110]
push eax
call ebx
test eax, eax
je 0x40d0ae
inc esi
cmp esi, 0xa
jl 0x40d020
xor eax, eax
mov ecx, dword [esp + 0x1110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044e20c
add esp, 0x1104
ret 4
lea eax, [esp + 0x110]
lea edx, [eax + 2]
jmp 0x40d0c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d0c0
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x110]
mov ebx, eax
push ecx
mov eax, ebp
call fcn.00402ba0
mov eax, 1
jmp 0x40d093
Function at 0x40d320
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x46b738
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x485d30]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485d30]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [0x487cf8]
mov edx, dword [eax + 0xc]
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
mov ecx, 0x487cf8
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x38], 0
call fcn.0040cfa0
test eax, eax
jne 0x40d3b9
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d3b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xffffd8ef
jmp 0x40d432
lea edx, [esp + 0x14]
mov ecx, edi
call fcn.0040d480
test eax, eax
je 0x40d38a
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x18]
mov ecx, esi
call fcn.00414870
lea eax, [edi + 0xc]
lea edx, [esp + 0x18]
mov ecx, 0x10
sub edx, eax
mov edi, dword [edx + eax]
cmp edi, dword [eax]
jne 0x40d453
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x40d3e5
push ebp
push ebx
push esi
call fcn.0043c250
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d42d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044e20c
add esp, 0x24
ret 0xc
lea eax, [esi - 0x10]
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d477
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xffffd8ee
jmp 0x40d432
Function at 0x40d480
Capabilities:
Check if file exists
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.0044f150
mov eax, dword [0x485d30]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
cmp dword [eax - 0xc], 0
mov ebx, edx
jne 0x40d4c0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0044e20c
add esp, 0x1004
ret
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d4a7
mov eax, dword [esi + 0x1c]
push edi
push 0x4785ec
push eax
call fcn.0045015f
mov edi, eax
add esp, 8
test edi, edi
jne 0x40d4fb
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0044e20c
add esp, 0x1004
ret
mov eax, dword [esi + 4]
push 0
push eax
push edi
call fcn.00451af4
mov eax, dword [ebx]
push 0x4775a8
push eax
call fcn.0045015f
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x40d5b9
push 0x1000
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.0044e220
mov esi, dword [esi + 8]
mov eax, esi
cdq
and edx, 0xfff
add eax, edx
add esp, 0xc
sar eax, 0xc
and esi, 0x80000fff
jns 0x40d556
dec esi
or esi, 0xfffff000
inc esi
test eax, eax
jle 0x40d58d
push ebp
mov ebp, eax
lea ecx, [ecx]
push edi
push 1
lea edx, [esp + 0x18]
push 0x1000
push edx
call fcn.0044ff63
push ebx
push 1
lea eax, [esp + 0x28]
push 0x1000
push eax
call fcn.0044fc41
add esp, 0x20
sub ebp, 1
jne 0x40d560
pop ebp
test esi, esi
je 0x40d5b0
push edi
push 1
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.0044ff63
push ebx
push 1
lea edx, [esp + 0x24]
push esi
push edx
call fcn.0044fc41
add esp, 0x20
push ebx
call fcn.0044fa63
add esp, 4
push edi
call fcn.0044fa63
mov ecx, dword [esp + 0x1010]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0044e20c
add esp, 0x1004
ret

Function at 0x40d690
Capabilities:
Delete file

Disassembly:
push ecx
push esi
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d6c0
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
push eax
push esi
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.0040d6f0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
pop ecx
ret