joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a5e0
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 0x40a641
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 0x40a7a0
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.0040bec0
add esp, 8
test edi, edi
je 0x40a7f3
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a7e6
push edi
call fcn.00404580
add esp, 4
test eax, eax
jne 0x40a7e6
call fcn.0044e050
push eax
push edi
call fcn.0044e060
add esp, 8
jmp 0x40a7f3
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
jne 0x40a809
push edi
push str.Can_not_load__s__return.
call fcn.0040bec0
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 0x40a827
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.0040bec0
add esp, 8
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
ret 8

Function at 0x40a850
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
test esi, esi
je 0x40a881
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a885
push esi
call fcn.00404580
add esp, 4
test eax, eax
jne 0x40a885
call fcn.0044e050
push eax
push esi
call fcn.0044e060
add esp, 8
xor edi, edi
jmp 0x40a88e
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test esi, esi
jne 0x40a899
pop edi
xor eax, eax
pop esi
ret 8
push str.DllUnregisterServer
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a8ab
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, 1
pop esi
ret 8
Function at 0x40ad70
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x46bb48
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485b90]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x40aded
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x40aded
lea eax, [esp + 0x28]
push eax
call fcn.0040c290
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40ae05
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 0x40aded
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 0x40ae2d
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 0x40ade1
push 0x2a0
push 0
push ebx
call fcn.0044e2b0
push 0x100
push esi
push ebx
call fcn.0044f24b
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 0x40ae92
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.004144c0
jmp 0x40aebc
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x40aebc
mov ecx, dword [ebp + 8]
push ecx
push 0x10
lea edx, [ebx + 0x218]
push edx
push 0
push 0x47806c
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.004145d0
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 0x40af10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x40adef
Function at 0x40b370
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x68
mov eax, dword [0x485b90]
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 0x40b3f0
mov word [edi], ax
test esi, esi
jne 0x40b3aa
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0044e29c
add esp, 0x68
ret 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b395
push 0x64
lea ecx, [esp + 0xc]
push 0
push ecx
call fcn.0044e2b0
add esp, 0xc
lea eax, [esp + 8]
mov ecx, esi
call fcn.004143a0
test eax, eax
je 0x40b395
mov eax, dword [esp + 0x80]
push ebx
push edi
lea ebx, [esp + 0x10]
call fcn.00414460
add esp, 4
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
xor ecx, esp
call fcn.0044e29c
add esp, 0x68
ret 0x10

Function at 0x40b560
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 0x40b582
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 0x40b57a
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 0x40b900
Capabilities:
Get disk information
Get disk size

Disassembly:
sub esp, 0x14
mov eax, dword [0x485b90]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [0x47815c]
mov ecx, dword [0x478160]
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 0x40b950
xor eax, eax
xor edx, edx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0044e29c
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 0x40b93b
mov ecx, dword [esp + 0x10]
mov eax, dword [esp]
mov edx, dword [esp + 4]
xor ecx, esp
call fcn.0044e29c
add esp, 0x14
ret 8
Function at 0x40bb20
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x814
mov eax, dword [0x485b90]
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.0044e2b0
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.00451ca0
cmp word [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov ebx, edx
je 0x40bbbf
movzx eax, word [esi]
mov edx, dword [edi]
mov ecx, dword [edx + 0x48]
push eax
push edi
call ecx
cmp edx, ebx
ja 0x40bbd8
jb 0x40bba0
cmp eax, dword [esp + 0x10]
ja 0x40bbd8
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bba5
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], cx
lea esi, [esi + eax*2 + 2]
jne 0x40bb88
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x810]
xor ecx, esp
call fcn.0044e29c
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.0044e29c
mov esp, ebp
pop ebp
ret 8

Function at 0x40bc00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x808
mov eax, dword [0x485b90]
xor eax, esp
mov dword [esp + 0x804], eax
push 0x800
lea eax, [esp + 4]
push 0
push eax
call fcn.0044e2b0
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.0044e29c
mov esp, ebp
pop ebp
ret 4
Function at 0x40bcb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46bd36
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x485b90]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
mov eax, dword [0x485b90]
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 0x40be8e
mov eax, dword [0x487b58]
mov edx, dword [eax + 0xc]
mov ecx, 0x487b58
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x248], 0
cmp dword [edi + 0x10], 0
jne 0x40bd83
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x40bd8f
lea ecx, [esp + 0x1c]
push ecx
push 0x15
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40bd75
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.00402b30
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 0x40bd8f
lea eax, [edi + 4]
lea edi, [esp + 0x14]
call fcn.00402b70
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
mov ebx, 0x4781d8
je 0x40bda3
mov ebx, str.360safe.setup.log
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0040c340
mov byte [esp + 0x250], 1
mov eax, dword [esp + 0x20]
push 0x478224
push eax
call fcn.004501ef
mov edi, eax
add esp, 0x10
test edi, edi
je 0x40be3b
push 2
push 0
push edi
call fcn.00451938
add esp, 0xc
push 0
call fcn.004512f8
add esp, 4
push edx
push eax
lea eax, [esp + 0x28]
call fcn.00409e30
lea ebx, [esp + 0x10]
lea ecx, [esp + 0x20]
call fcn.00409e90
mov ecx, dword [esp + 0x10]
push esi
push ecx
push str._s__s_r_n
push edi
call fcn.004519bd
push edi
call fcn.0044faf3
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 0x40be3b
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 0x40be63
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 0x40be8e
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.0044e29c
mov esp, ebp
pop ebp
ret 8
Function at 0x40c000
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x480d10
push 0x4502d0
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
push ebx
push esi
push edi
mov eax, dword [0x485b90]
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 0x40c06b
cmp dword [0x48931c], 0
jne 0x40c0da
push str.ntdll
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c0ab
push str.ntdll
call fcn.00404580
add esp, 4
test eax, eax
jne 0x40c0ab
call fcn.0044e050
push eax
push str.ntdll
call fcn.0044e060
add esp, 8
xor edi, edi
jmp 0x40c0cd
push str.ntdll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x40c0cd
push str.NtQueryInformationProcess
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x48931c], eax
cmp dword [0x48931c], 0
je 0x40c16d
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 0x40c16d
push 0
push 0x18
lea ecx, [ebp - 0x3c]
push ecx
push 0
push esi
call dword [0x48931c]
test eax, eax
jne 0x40c166
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 0x40c166
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 0x40c166
movzx eax, word [ebp - 0xa8]
cmp dword [ebp + 0x14], eax
jb 0x40c166
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 0x40c166
mov dword [ebp - 0x20], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x40c178
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 0x40c190
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
xor eax, eax
push edi
push str.ntdll
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c201
push str.ntdll
call fcn.00404580
add esp, 4
test eax, eax
jne 0x40c201
call fcn.0044e050
push eax
push str.ntdll
call fcn.0044e060
add esp, 8
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 0x40c22b
push str.NtQueryInformationProcess
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
jne 0x40c237
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 0x40c224
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 0x40c268
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 0x40c7e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40c7f7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40c828
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x40c824
cmp esi, eax
jae 0x40c828
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x40c814
cmp esi, eax
jb 0x40c82e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x40c9a0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x46b848
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x485b90]
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 0x40ca20
mov eax, dword [0x487b58]
mov edx, dword [eax + 0xc]
mov ecx, 0x487b58
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x18], 0
call fcn.0040ce50
test eax, eax
jne 0x40ca37
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 0x40ca20
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.0040caa0
test eax, eax
je 0x40c9f8
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
push ecx
push edx
push esi
call fcn.0043b2e0
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 0x40ca88
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 0x40ccf0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x46b818
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x485b90]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485b90]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [0x487b58]
mov edx, dword [eax + 0xc]
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
mov ecx, 0x487b58
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x38], 0
call fcn.0040ce50
test eax, eax
jne 0x40cd89
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 0x40cd82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xffffd8ef
jmp 0x40ce02
lea edx, [esp + 0x14]
mov ecx, edi
call fcn.0040cfa0
test eax, eax
je 0x40cd5a
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x18]
mov ecx, esi
call fcn.004143a0
lea eax, [edi + 0xc]
lea edx, [esp + 0x18]
mov ecx, 0x10
sub edx, eax
mov edi, dword [edx + eax]
cmp edi, dword [eax]
jne 0x40ce23
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x40cdb5
push ebp
push ebx
push esi
call fcn.0043b2e0
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 0x40cdfd
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.0044e29c
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 0x40ce47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xffffd8ee
jmp 0x40ce02
Function at 0x40ce50
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov eax, 0x1104
call fcn.0044f1e0
mov eax, dword [0x485b90]
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.0044e2b0
push 0x800
lea ecx, [esp + 0x120]
push 0
push ecx
call fcn.0044e2b0
push 0x100
lea edx, [esp + 0x2c]
push 0
push edx
call fcn.0044e2b0
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 [0x489040]
mov eax, dword [edx + 0x2c]
push 0x80
lea ecx, [esp + 0x14]
push ecx
push 0x489040
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 0x40cf10
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40cf10
mov ecx, dword [0x47834c]
mov edx, dword [0x478350]
mov dword [eax], ecx
mov dword [eax + 4], edx
lea eax, [esp + 0x110]
push eax
call ebx
test eax, eax
je 0x40cf5e
inc esi
cmp esi, 0xa
jl 0x40ced0
xor eax, eax
mov ecx, dword [esp + 0x1110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044e29c
add esp, 0x1104
ret 4
lea eax, [esp + 0x110]
lea edx, [eax + 2]
jmp 0x40cf70
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cf70
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x110]
mov ebx, eax
push ecx
mov eax, ebp
call fcn.00402bd0
mov eax, 1
jmp 0x40cf43
Function at 0x40cfa0
Capabilities:
Check if file exists
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.0044f1e0
mov eax, dword [0x485b90]
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 0x40cfe0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0044e29c
add esp, 0x1004
ret
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40cfc7
mov eax, dword [esi + 0x1c]
push edi
push 0x478378
push eax
call fcn.004501ef
mov edi, eax
add esp, 8
test edi, edi
jne 0x40d01b
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0044e29c
add esp, 0x1004
ret
mov eax, dword [esi + 4]
push 0
push eax
push edi
call fcn.00451938
mov eax, dword [ebx]
push 0x4773a0
push eax
call fcn.004501ef
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x40d0d9
push 0x1000
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.0044e2b0
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 0x40d076
dec esi
or esi, 0xfffff000
inc esi
test eax, eax
jle 0x40d0ad
push ebp
mov ebp, eax
lea ecx, [ecx]
push edi
push 1
lea edx, [esp + 0x18]
push 0x1000
push edx
call fcn.0044fff3
push ebx
push 1
lea eax, [esp + 0x28]
push 0x1000
push eax
call fcn.0044fcd1
add esp, 0x20
sub ebp, 1
jne 0x40d080
pop ebp
test esi, esi
je 0x40d0d0
push edi
push 1
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.0044fff3
push ebx
push 1
lea edx, [esp + 0x24]
push esi
push edx
call fcn.0044fcd1
add esp, 0x20
push ebx
call fcn.0044faf3
add esp, 4
push edi
call fcn.0044faf3
mov ecx, dword [esp + 0x1010]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0044e29c
add esp, 0x1004
ret

Function at 0x40d1b0
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 0x40d1e0
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.0040d210
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
pop ecx
ret