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

Disassembly:
push 0xffffffffffffffff
push 0x4be8a0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e7d04]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
xor ebx, ebx
lea edi, [esp + 0x2c]
mov dword [esp + 0x20], ebx
call fcn.004091c0
push 1
push 0x4d0e64
mov ecx, edi
call fcn.004037b0
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx - 0xc]
cmp eax, 3
jl 0x408898
cmp eax, ebx
jge 0x4087f0
push 0x80070057
call fcn.004048a0
movzx edx, word [ecx]
cmp dx, 0x61
jb 0x4087ff
cmp dx, 0x7a
jbe 0x40880c
add edx, 0xffffffbf
cmp dx, 0x19
ja 0x408898
cmp eax, 1
jge 0x40881b
push 0x80070057
call fcn.004048a0
movzx edx, word [ecx + 2]
cmp dx, 0x3a
je 0x408850
mov dword [esp + 0x20], 0xffffffff
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408849
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x408962
cmp eax, 2
jge 0x40885f
push 0x80070057
call fcn.004048a0
movzx edx, word [ecx + 4]
movzx esi, dx
cmp si, 0x5c
je 0x408898
cmp eax, 2
jge 0x40887b
push 0x80070057
call fcn.004048a0
movzx edx, dx
mov esi, 0x2f2f
cmp dx, si
je 0x408898
lea ecx, [esp + 0x2c]
call fcn.00404680
xor eax, eax
jmp 0x408962
xor esi, esi
cmp eax, ebx
jle 0x408939
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp esi, ebx
jl 0x4087e6
cmp esi, eax
jg 0x4087e6
movzx eax, word [ecx + esi*2]
cmp ax, 0x5c
jne 0x40892d
push esi
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x34]
call fcn.00402c00
mov byte [esp + 0x20], 1
mov edi, dword [esp + 0x14]
push edi
call ebp
test eax, eax
jne 0x408909
push ebx
push edi
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp eax, ebx
je 0x4088fa
cmp eax, 0x50
je 0x4088fa
cmp eax, 0xb7
jne 0x408978
mov ebx, dword [esp + 0x28]
lea eax, [esp + 0x14]
call fcn.00409340
xor ebx, ebx
lea eax, [edi - 0x10]
mov byte [esp + 0x20], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408929
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx - 0xc]
inc esi
cmp esi, eax
jl 0x4088a8
lea eax, [ecx - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40895d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
lea eax, [edi - 0x10]
mov byte [esp + 0x20], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4089a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
jmp 0x408830
Function at 0x4089c0
Capabilities:
Get file version info

Disassembly:
mov eax, 0x4010
call fcn.00484d50
mov eax, dword [0x4e7d04]
xor eax, esp
mov dword [esp + 0x400c], eax
xor eax, eax
push 0x3ffe
push eax
lea ecx, [esp + 0x16]
push ecx
mov word [esp + 0x18], ax
call fcn.00482260
add esp, 0xc
mov dword [esp + 4], 0
test esi, esi
je 0x408aa9
test edi, edi
je 0x408aa9
lea edx, [esp + 4]
push edx
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x408aa9
cmp eax, 0x3fff
ja 0x408aa9
lea ecx, [esp + 0xc]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x408aa9
lea edx, [esp + 8]
push edx
lea eax, [esp + 4]
push eax
push 0x4d0e64
lea ecx, [esp + 0x18]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x408aa9
push 0x208
push 0
push edi
call fcn.00482260
mov eax, dword [esp + 0xc]
movzx edx, word [eax + 0xc]
movzx ecx, word [eax + 0xe]
push edx
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push edx
push eax
push str._d._d._d._d
push 0x103
push edi
call fcn.00488fd3
add esp, 0x28
mov eax, 1
mov ecx, dword [esp + 0x400c]
xor ecx, esp
call fcn.004820d9
add esp, 0x4010
ret
mov ecx, dword [esp + 0x400c]
xor ecx, esp
xor eax, eax
call fcn.004820d9
add esp, 0x4010
ret

Function at 0x40abe0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x110c
call fcn.00484d50
mov eax, dword [0x4e7d04]
xor eax, esp
mov dword [esp + 0x1108], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [eax]
cmp dword [esi - 0xc], 0x104
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0xc], ecx
jg 0x40acf7
push 0x800
lea edx, [esp + 0x914]
push 0
push edx
call fcn.00482260
add esp, 0xc
push 0x800
lea eax, [esp + 0x114]
push 0
push eax
call fcn.00482260
add esp, 0xc
push esi
lea ecx, [esp + 0x914]
push 0x400
push ecx
call fcn.004858fe
add esp, 0xc
test edi, edi
je 0x40ac7a
cmp word [edi], 0
je 0x40ac7a
push edi
lea edx, [esp + 0x914]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x100
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00482260
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
xor ebx, ebx
lea esp, [esp]
lea ecx, [esp + 0x10]
push 0x80
push ecx
call fcn.00407ef0
add esp, 8
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x914]
push eax
lea ecx, [esp + 0x118]
push ecx
call esi
push str..tmp
lea edx, [esp + 0x114]
push 0x400
push edx
call fcn.00485881
add esp, 0xc
lea eax, [esp + 0x110]
push eax
call edi
test eax, eax
je 0x40ad0e
inc ebx
cmp ebx, 0xa
jl 0x40aca0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1108]
xor ecx, esp
call fcn.004820d9
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x110]
lea edx, [eax + 2]
jmp 0x40ad20
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ad20
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x114]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.00404340
mov ecx, dword [esp + 0x1114]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004820d9
mov esp, ebp
pop ebp
ret
Function at 0x40ae60
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4bdf3c
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4e7d04]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CFileManager.0
mov dword [esi + 4], vtable.CFileManager.1.0
mov dword [esp + 0x18], 3
mov eax, dword [esi + 0x5c]
xor edi, edi
mov dword [esi + 0x74], 1
cmp eax, edi
je 0x40aec4
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x5c], edi
mov eax, dword [esi + 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40aede
mov eax, dword [esi + 0x40]
push eax
call fcn.00453ef0
add esp, 4
mov eax, dword [esi + 0x50]
cmp eax, edi
je 0x40af04
mov edx, dword [esp + 0xc]
mov ecx, dword [esi + 0x54]
push edx
lea edx, [esi + 0x4c]
push edx
push ecx
push eax
call fcn.0040c820
mov eax, dword [esi + 0x50]
push eax
call fcn.0047b130
add esp, 0x14
mov eax, dword [esi + 0x44]
push eax
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
call fcn.0047b130
mov byte [esp + 0x1c], 1
mov eax, dword [esi + 0x40]
sub eax, 0x10
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40af3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 0x28]
push ecx
mov dword [esi + 0x24], vtable._BaseModule::CCriticalSection.0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [esp + 0x18], 0xffffffff
mov esi, dword [esi + 0x20]
sub esi, 0x10
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40af75
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x40b140
Capabilities:
Check if file exists
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
mov eax, dword [0x4e7d04]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x20]
cmp dword [eax - 0xc], 0
push ebx
push esi
mov dword [esp + 0x18], ecx
jne 0x40b182
mov eax, 0xffffd8ee
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004820d9
mov esp, ebp
pop ebp
ret 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b16a
mov eax, dword [edi + 0x20]
push 0
push 1
push 3
push 0
push 7
push SysReAllocString
push eax
mov dword [esp + 0x28], 0xffffd8f0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x40b28c
cmp ebx, 0xffffffff
je 0x40b285
push 0
push 0
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 0x14], eax
test eax, eax
je 0x40b285
mov esi, dword [edi + 8]
call fcn.0040b2b0
mov edx, dword [esp + 0x14]
mov esi, dword [edi + 8]
push 0
push eax
push 0
push 4
push edx
sub esi, eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x40b27a
add esi, eax
je 0x40b26f
mov ecx, dword [edi + 0xc]
lea eax, [esp + 0x24]
push eax
push ecx
push esi
call fcn.00407ab0
lea eax, [edi + 0x10]
lea edx, [esp + 0x30]
add esp, 0xc
mov ecx, 0x10
sub edx, eax
lea ecx, [ecx]
mov ebx, dword [edx + eax]
cmp ebx, dword [eax]
jne 0x40b2a3
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x40b230
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov ecx, dword [edi + 0x20]
push edx
push eax
mov eax, dword [edi + 0xc]
cdq
push edx
push eax
push esi
push ecx
call fcn.0047c3a0
add esp, 0x18
test eax, eax
jl 0x40b26b
mov dword [esp + 0xc], 1
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0xc]
pop esi
pop ebx
xor ecx, esp
call fcn.004820d9
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0xc], 0xffffd8ee
jmp 0x40b26b

Function at 0x40b2b0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor edx, edx
mov eax, esi
div dword [esp + 0x1c]
mov eax, esi
sub eax, edx
add esp, 0x24
ret
Function at 0x40b5c0
Capabilities:
Check if file exists
Create directory
Create thread

Disassembly:
test edi, edi
je 0x40b632
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b5d8
push eax
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, edi
push ebx
lea ecx, [esi + 0x40]
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40b5e1
sub eax, ebx
sar eax, 1
push eax
push edi
call fcn.00404340
push 0
push 0
push esi
push 0x40b2d0
push 0
push 0
call fcn.00488f23
add esp, 0x18
push 0
push 0
push 1
push 0
mov dword [esi + 0x5c], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp dword [esi + 0x5c], 0
mov dword [esi + 0x70], eax
pop ebx
je 0x40b632
test eax, eax
je 0x40b632
mov eax, 1
ret
xor eax, eax
ret

Function at 0x40cec0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bf616
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4e7d04]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esi], edi
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00404130
add eax, 0x10
add esp, 4
mov dword [esi + 4], eax
mov dword [esp + 0x18], 0
mov edx, dword [0x4eab28]
mov eax, dword [edx + 0xc]
mov ecx, 0x4eab28
lea ebx, [esi + 8]
call eax
add eax, 0x10
mov dword [ebx], eax
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0x400
push edi
push 0
mov byte [esp + 0x30], 1
push 0x1300
mov dword [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov edx, dword [esp + 0x24]
test edx, edx
je 0x40cf83
mov eax, edx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cf60
sub eax, edi
sar eax, 1
push eax
push edx
mov ecx, ebx
call fcn.00404340
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
Function at 0x40d510
Capabilities:
Get session user name
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4bdedb
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4e7d04]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebp
push esi
push edi
mov eax, dword [0x4e7d04]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x240]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x40d563
xor eax, eax
jmp 0x40d611
mov dword [esp + 0x18], vtable.CAccessPermission.0
push 0x1a
mov dword [esp + 0x23c], 0
call fcn.004200c0
mov esi, eax
test esi, esi
je 0x40d590
push esi
call fcn.0041ff90
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x1c], 0x105
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea edi, [esp + 0x1c]
call fcn.0041fb60
mov esi, eax
test esi, esi
je 0x40d5c4
push esi
call fcn.0041ff90
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [esp + 0x244]
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x40d5df
mov eax, 1
jmp 0x40d611
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40d55c
push 1
call fcn.004200c0
mov esi, eax
test esi, esi
je 0x40d608
push esi
call fcn.0041ff90
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.004820d9
add esp, 0x22c
ret 8
Function at 0x40e640
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path
Move file

Disassembly:
mov eax, 0x1008
call fcn.00484d50
mov eax, dword [0x4e7d04]
xor eax, esp
mov dword [esp + 0x1004], eax
push ebp
mov ebp, dword [esp + 0x1010]
push edi
mov edi, ecx
test ebx, ebx
je 0x40e7d8
test esi, esi
je 0x40e7d8
push 0x800
lea eax, [esp + 0x80c]
push 0
push eax
call fcn.00482260
add esp, 0xc
push 0x800
lea ecx, [esp + 0xc]
push 0
push ecx
call fcn.00482260
add esp, 0xc
push 0x400
lea edx, [esp + 0x80c]
push esi
push edx
call fcn.004856e8
add esp, 0xc
lea eax, [esp + 0x808]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0x808]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e7b0
push esi
push str.Dest_File_Exist:__s
call fcn.0041aa00
push esi
call fcn.00454510
add esp, 0xc
test eax, eax
jne 0x40e7b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Delete_File__s_Failed__error___d
call fcn.0041aa00
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0
push 0x4d2a10
lea eax, [esp + 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esp + 8]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40e7f3
lea eax, [esp + 8]
push eax
push esi
push str.Rename_File__s_to__s_success
call fcn.0041aa00
add esp, 0xc
push 4
push 0
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea edx, [esp + 8]
push edx
push str.delete_by_pending_file:_s
call fcn.0041aa00
add esp, 8
test edi, edi
je 0x40e789
mov dword [edi], 4
cmp dword [ebp + 0x74], 0
jne 0x40e7b0
push esi
mov edi, ebp
call fcn.0040ea50
test eax, eax
je 0x40e7b0
push esi
push str.check_file__s___need_reboot_now
call fcn.0041aa00
add esp, 8
mov dword [ebp + 0x74], 1
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40e861
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push ebx
push str.Copy_From__s_to__s_Failed_Error_Code___d
call fcn.0041aa00
add esp, 0x10
xor eax, eax
mov ecx, dword [esp + 0x100c]
pop edi
pop ebp
xor ecx, esp
call fcn.004820d9
add esp, 0x1008
ret 4
push esi
push str.Rename_File__s_failed__replace_until_reboot
call fcn.0041aa00
add esp, 8
push 0
lea eax, [esp + 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 5
push esi
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea edx, [esp + 8]
push edx
push ebx
push str.copy__s_to__s__replace_until_reboot
call fcn.0041aa00
add esp, 0xc
test edi, edi
je 0x40e83a
mov dword [edi], 5
cmp dword [ebp + 0x74], 0
jne 0x40e861
push esi
mov edi, ebp
call fcn.0040ea50
test eax, eax
je 0x40e861
push esi
push str.check_file__s___need_reboot_now
call fcn.0041aa00
add esp, 8
mov dword [ebp + 0x74], 1
mov eax, 1
jmp 0x40e7da
Function at 0x411bf0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4be728
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e7d04]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebx, ecx
mov ebp, dword [esp + 0x44]
lea esi, [ebp + 4]
mov edi, esi
call fcn.00414d00
mov dword [esp + 0x44], eax
test eax, eax
jl 0x411d2d
lea edi, [ebp + 8]
call fcn.00417380
xor edi, edi
mov dword [ebp + 0x10], edi
mov eax, dword [esi]
cmp eax, edi
jne 0x411c50
push 0x80004003
call fcn.00480e40
mov ecx, dword [eax]
mov edx, dword [ecx + 0x120]
push 0xffffffffffffffff
push eax
call edx
mov eax, dword [esi]
cmp eax, edi
jne 0x411c6d
push 0x80004003
call fcn.00480e40
mov ecx, dword [eax]
mov edx, dword [ecx + 0xfc]
push edi
push eax
call edx
mov eax, dword [ebx]
mov dword [esp + 0x18], edi
cmp eax, edi
je 0x411c87
mov eax, dword [eax]
jmp 0x411c89
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411cf9
mov ecx, ebx
lea edi, [esp + 0x1c]
call fcn.00403ba0
mov dword [esp + 0x3c], 1
mov edx, dword [esi]
test edx, edx
jne 0x411cb7
push 0x80004003
call fcn.00480e40
mov ebx, dword [eax]
mov edi, dword [edx]
lea ecx, [esp + 0x18]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], ebx
mov ebx, dword [eax + 4]
mov dword [ecx + 4], ebx
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], eax
mov ecx, dword [edi + 0xe8]
push edx
call ecx
lea edx, [esp + 0x1c]
push edx
mov edi, eax
mov dword [esp + 0x40], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x411cfd
mov edi, dword [esp + 0x44]
cmp word [esp + 0x18], 0
jne 0x411d13
mov dword [esp + 0x44], 0x80004005
mov edi, dword [esp + 0x44]
jmp 0x411d17
test edi, edi
jge 0x411d2b
mov eax, dword [esi]
test eax, eax
je 0x411d2b
mov dword [esi], 0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4
Function at 0x412af0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c0391
mov eax, dword fs:[0]
push eax
sub esp, 0x828
mov eax, dword [0x4e7d04]
xor eax, esp
mov dword [esp + 0x820], eax
push edi
mov eax, dword [0x4e7d04]
xor eax, esp
push eax
lea eax, [esp + 0x830]
mov dword fs:[0], eax
test esi, esi
je 0x412c08
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x412c08
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412b50
sub eax, edx
sar eax, 1
cmp eax, 0x200
jae 0x412c08
push 0x800
lea eax, [esp + 0x28]
push 0
push eax
call fcn.00482260
add esp, 0xc
push 0x400
lea ecx, [esp + 0x28]
push esi
push ecx
call fcn.004856e8
add esp, 0xc
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 8]
push eax
mov edi, str.version1.0_encodingutf_16
call fcn.00403d80
lea ecx, [esp + 0xc]
push ecx
mov edi, esi
mov dword [esp + 0x83c], 0
call fcn.00403d80
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x844], 1
call fcn.004118e0
lea edi, [esp + 0xc]
call fcn.00403cf0
lea edi, [esp + 8]
mov byte [esp + 0x838], 4
call fcn.00403cf0
cmp dword [esp + 0x14], 0
lea ecx, [esp + 0x10]
jne 0x412c0c
call fcn.00411980
xor eax, eax
jmp 0x412c5c
lea edx, [esp + 0x24]
push edx
push ebx
call fcn.00412c80
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.00413300
lea ecx, [esp + 0x10]
push ecx
push ebx
call fcn.004135b0
push ebx
lea ecx, [esp + 0x14]
call fcn.00413800
lea edx, [esp + 0x10]
push edx
mov ecx, ebx
call fcn.00413ef0
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.00414810
lea ecx, [esp + 0x10]
call fcn.00411980
mov eax, 1
mov ecx, dword [esp + 0x830]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x820]
xor ecx, esp
call fcn.004820d9
mov esp, ebp
pop ebp
ret
Function at 0x4148d0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4c072b
mov eax, dword fs:[0]
push eax
sub esp, 0xed8
mov eax, dword [0x4e7d04]
xor eax, esp
mov dword [esp + 0xed0], eax
push ebp
push edi
mov eax, dword [0x4e7d04]
xor eax, esp
push eax
lea eax, [esp + 0xee4]
mov dword fs:[0], eax
test ebx, ebx
jne 0x414914
xor eax, eax
jmp 0x414b41
mov eax, dword [esi]
mov ecx, dword [eax + 0x34]
push esi
call ecx
xor edi, edi
mov dword [esp + 0x14], eax
test eax, eax
jle 0x414b3c
mov ebp, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xc38
lea edx, [esp + 0xa0]
push 0
push edx
call fcn.00482260
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
add esp, 0xc
lea ecx, [esp + 0x9c]
push ecx
push edi
push esi
call edx
push 0x104
lea eax, [esp + 0xcd8]
push 0
push eax
call fcn.00482260
mov ecx, dword [esp + 0xf00]
add esp, 0xc
push ecx
push ebx
lea edx, [esp + 0xcdc]
push 0x104
push edx
call fcn.00484ddc
add esp, 0x10
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0xcd8]
push ecx
call ebp
lea edx, [esp + 0xcd4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4149cb
lea eax, [esp + 0xcd4]
push eax
push str.file__s__is_not_exist
call fcn.0041aa00
add esp, 8
jmp 0x414b31
lea ecx, [esp + 0xac4]
test ecx, ecx
je 0x414a03
push 0x4d2188
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x414a03
lea eax, [esp + 0xac4]
push eax
lea ecx, [esp + 0xcd8]
call fcn.00406830
add esp, 4
test eax, eax
jmp 0x414a34
call fcn.00406030
test eax, eax
je 0x414a36
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0xcd8]
push edx
mov ecx, 0x4ecc18
mov dword [esp + 0x18], 0
call fcn.00405a50
test eax, eax
je 0x414a36
cmp dword [esp + 0x10], 3
jne 0x414a58
lea eax, [esp + 0xcd4]
push eax
lea ecx, [esp + 0xac8]
push ecx
push str.check_sign_fail__signType__s___filepath__s_
call fcn.0041aa00
add esp, 0xc
jmp 0x414b31
push 0x4d30b0
lea edx, [esp + 0x2a8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x414ab5
mov eax, dword [esp + 0xccc]
cmp eax, 0xc350
ja 0x414a81
test eax, eax
jne 0x414a8d
mov eax, 0xc350
mov dword [esp + 0xccc], eax
push eax
mov eax, dword [esp + 0xcd4]
push eax
push 0
lea ecx, [esp + 0x8c8]
push ecx
lea edx, [esp + 0xce4]
push edx
call fcn.004601e0
add esp, 0x14
jmp 0x414b31
push 0x4d30b8
lea eax, [esp + 0x2a8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x414b31
lea ecx, [esp + 0x1c]
push 3
lea edx, [esp + 0x4b0]
mov dword [esp + 0x1c], ecx
push edx
lea ecx, [esp + 0x20]
call fcn.004159d0
push 0
lea eax, [esp + 0x6b8]
mov dword [esp + 0xef0], 0
mov ecx, dword [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0xce0]
push edx
call fcn.00460130
mov dword [esp + 0xefc], 0xffffffff
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
add esp, 0x10
cmp eax, ecx
je 0x414b31
push eax
call fcn.004843be
add esp, 4
inc edi
cmp edi, dword [esp + 0x14]
jl 0x414930
mov eax, 1
mov ecx, dword [esp + 0xee4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
mov ecx, dword [esp + 0xed0]
xor ecx, esp
call fcn.004820d9
add esp, 0xee4
ret 4