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

Disassembly:
push 0xffffffffffffffff
push 0x471d70
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x490d68]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
xor ebp, ebp
push 0x5c
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], ebp
call fcn.00422e60
push 0x4813b0
push 0x4813b0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea ecx, [esp + 0x30]
call fcn.0041a790
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx - 8]
cmp eax, ebp
jle 0x428e3d
movzx eax, word [ecx + ebp*2]
cmp ax, 0x5c
jne 0x428e2f
push ebp
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x30]
call fcn.004234c0
mov ecx, dword [esp + 0x14]
push ecx
mov byte [esp + 0x24], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x428dfd
mov edx, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
jne 0x428e81
mov esi, dword [ebx + 0x14]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push ecx
push esi
mov ecx, ebx
call fcn.00428b20
push 1
mov ecx, ebx
mov edi, eax
call fcn.00428bc0
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
mov eax, dword [esp + 0x14]
lea edx, [eax - 0xc]
mov byte [esp + 0x20], 0
cmp edx, dword [0x48f010]
je 0x428e2f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x428e2f
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.00457d84
add esp, 4
mov ecx, dword [esp + 0x28]
inc ebp
cmp ebp, dword [ecx - 8]
jl 0x428d91
lea eax, [ecx - 0xc]
cmp eax, dword [0x48f010]
je 0x428e66
lea eax, [ecx - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x428e66
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffff4
push ecx
call fcn.00457d84
add esp, 4
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 4
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x48f010]
je 0x428eae
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x428eae
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00457d84
add esp, 4
mov eax, dword [esp + 0x28]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x48f010]
je 0x428edb
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x428edb
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.00457d84
add esp, 4
xor eax, eax
jmp 0x428e6b
Function at 0x428ee0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x471f10
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x490d68]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov edi, ecx
call fcn.004392d0
mov ebp, eax
test ebp, ebp
jne 0x428f1e
mov eax, 8
jmp 0x4290b9
mov ecx, edi
call fcn.004392b0
mov esi, eax
test esi, esi
je 0x428f14
mov eax, dword [esp + 0x44]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jl 0x428f47
mov dword [esp + 0x14], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x428f5b
mov ecx, dword [0x48f014]
mov dword [esp + 0x14], ecx
push eax
lea ecx, [esp + 0x18]
call fcn.0041c500
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0
call fcn.00422d90
lea ecx, [esp + 0x14]
call fcn.00422df0
mov ebx, dword [esp + 0x14]
cmp dword [ebx - 8], 0
jne 0x428f92
lea ecx, [esp + 0x14]
call fcn.0041a630
mov eax, 1
jmp 0x4290b9
mov edx, dword [esp + 0x44]
mov eax, dword [edx]
cmp dword [eax - 8], 0x80
jle 0x428fb4
lea ecx, [esp + 0x14]
call fcn.0041a630
mov eax, 9
jmp 0x4290b9
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x428fd2
lea ecx, [esp + 0x14]
call fcn.0041a630
mov eax, 3
jmp 0x4290b9
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x428ffb
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x428ffb
lea ecx, [esp + 0x14]
call fcn.0041a630
mov eax, 2
jmp 0x4290b9
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.00427ad0
test eax, eax
je 0x42901e
lea ecx, [esp + 0x14]
call fcn.0041a630
mov eax, 5
jmp 0x4290b9
movzx eax, word [ebx]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x4c]
push esi
call eax
mov ecx, dword [ebp]
mov esi, edx
mov edx, dword [ecx + 0x30]
mov edi, eax
shrd edi, esi, 0x14
push ebp
shr esi, 0x14
call edx
cdq
cmp esi, edx
ja 0x429059
jb 0x429049
cmp edi, eax
jae 0x429059
lea ecx, [esp + 0x14]
call fcn.0041a630
mov eax, 6
jmp 0x4290b9
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4290ae
lea ecx, [esp + 0x18]
call fcn.00428ab0
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
mov byte [esp + 0x44], 1
call fcn.0041e390
lea ecx, [esp + 0x1c]
call fcn.00428d30
lea ecx, [esp + 0x18]
test eax, eax
jne 0x4290a9
call fcn.00428c60
lea ecx, [esp + 0x14]
call fcn.0041a630
mov eax, 7
jmp 0x4290b9
call fcn.00428c60
lea ecx, [esp + 0x14]
call fcn.0041a630
xor eax, eax
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 0x42a150
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
test ecx, ecx
je 0x42a15b
lea edi, [ecx - 0x2c]
jmp 0x42a15d
xor edi, edi
cmp byte [ecx + 0x1c], 0
mov esi, dword [esp + 0x10]
je 0x42a195
mov eax, dword [edi + 4]
push 0xe801
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp esi, 2
jne 0x42a186
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x42a19a
test esi, esi
jne 0x42a195
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x42a19a
cmp esi, 1
je 0x42a1b1
mov eax, dword [esp + 0x14]
mov ecx, eax
shr ecx, 0x10
movsx edx, cx
cwde
push edx
push eax
lea ecx, [edi + 0x2c]
call fcn.00429b40
pop edi
xor eax, eax
pop esi
ret 0x10

Function at 0x42a350
Capabilities:
Check if file exists
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x471e88
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x490d68]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00439270
mov ecx, esi
mov ebx, eax
call fcn.00439350
mov edi, eax
test edi, edi
je 0x42a3bb
test ebx, ebx
je 0x42a3bb
mov eax, dword [0x48f014]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
mov dword [esp + 0x2c], 0
call fcn.0041de10
test eax, eax
jne 0x42a3d1
lea ecx, [esp + 0x14]
call fcn.0041a630
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42a3b2
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
mov ebp, eax
test ebp, ebp
je 0x42a3b2
mov ecx, esi
call fcn.004392b0
mov esi, eax
test esi, esi
je 0x42a4b9
mov eax, dword [0x48f014]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
mov byte [esp + 0x2c], 2
call fcn.0041da70
mov edx, dword [esp + 0x18]
cmp dword [edx - 8], 0
jne 0x42a437
push 0x2711
lea ecx, [esp + 0x1c]
call fcn.0041c9b0
mov ecx, ebx
call fcn.0043bec0
mov ecx, eax
call fcn.004267a0
cmp dword [eax], 0
jne 0x42a4db
mov ecx, ebx
call fcn.0043bec0
mov ecx, eax
call fcn.004267c0
test eax, eax
jne 0x42a4db
mov edx, dword [esp + 0x18]
push edx
push str._PARTENER_s
lea eax, [esp + 0x24]
xor edi, edi
push eax
call fcn.0041e4d0
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
add esp, 0xc
push 0
push ebp
call ebx
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x24]
push 0
push 1
push 1
push 5
push edx
push eax
push esi
call ecx
test edi, edi
jne 0x42a4a7
push 5
push ebp
call ebx
lea ecx, [esp + 0x18]
call fcn.0041a630
lea ecx, [esp + 0x1c]
call fcn.0041a630
lea ecx, [esp + 0x14]
call fcn.0041a630
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x18]
push eax
push 0x47a204
lea ecx, [esp + 0x24]
mov edi, 1
push ecx
jmp 0x42a471
Function at 0x42a840
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebp
push esi
push 0
push 2
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x42a8a8
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x42a8a1
mov ebp, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
push str.360tray.exe
lea ecx, [esp + 0x30]
push ecx
call ebp
test eax, eax
je 0x42a8c1
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x42a882
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0045715c
add esp, 0x230
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov dword [edi], eax
push esi
mov dword [ebx], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x234]
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.0045715c
add esp, 0x230
ret
Function at 0x42a8f0
Capabilities:
Get session user name
Move file

Disassembly:
push 0xffffffffffffffff
push 0x471fcb
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x490d68]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x244]
mov ebp, dword [esp + 0x240]
mov ebx, dword [esp + 0x23c]
push eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x42aa17
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x42aa3d
lea ecx, [esp + 0x14]
call fcn.00425700
push 0x1a
lea ecx, [esp + 0x18]
mov dword [esp + 0x238], 0
call fcn.00425aa0
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, eax
test esi, esi
je 0x42a9a7
push 0xf003f
push esi
push 0x47a3e8
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x24]
call fcn.00425b40
push esi
call edi
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x20], 0x105
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call fcn.00425720
mov esi, eax
test esi, esi
je 0x42a9ef
push 0xf003f
push esi
push 0x47a3e8
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x24]
call fcn.00425b40
push esi
call edi
mov ecx, dword [esp + 0x244]
push ecx
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x42aa1e
lea ecx, [esp + 0x14]
mov dword [esp + 0x234], 0xffffffff
call fcn.00425710
mov eax, 1
jmp 0x42aa92
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x14]
cmp eax, 5
je 0x42aa41
mov dword [esp + 0x234], 0xffffffff
call fcn.00425710
xor eax, eax
jmp 0x42aa92
push 1
call fcn.00425aa0
mov esi, eax
test esi, esi
je 0x42aa6a
push 0xf003f
push esi
push 0x47a3e8
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x24]
call fcn.00425b40
push esi
call edi
mov edx, dword [esp + 0x244]
push edx
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esp + 0x14]
mov esi, eax
mov dword [esp + 0x234], 0xffffffff
call fcn.00425710
mov eax, esi
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0045715c
add esp, 0x224
ret
Function at 0x42ae30
Capabilities:
Set registry value

Disassembly:
mov eax, 0x1994
call fcn.004580a0
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x1990], eax
push edi
mov edi, ecx
mov ecx, dword [0x492c58]
test ecx, ecx
jne 0x42ae6d
xor eax, eax
pop edi
mov ecx, dword [esp + 0x1990]
xor ecx, esp
call fcn.0045715c
add esp, 0x1994
ret
push esi
call fcn.0043bd30
mov esi, eax
test esi, esi
jne 0x42ae90
pop esi
pop edi
mov ecx, dword [esp + 0x1990]
xor ecx, esp
call fcn.0045715c
add esp, 0x1994
ret
mov eax, dword [esi]
mov ecx, dword [eax + 0x44]
push ebx
push esi
call ecx
push 0x800
lea edx, [esp + 0x1a0]
push 0
push edx
mov ebx, eax
call fcn.00457170
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
add esp, 0xc
push 0x400
lea ecx, [esp + 0x1a0]
push ecx
push esi
call edx
cmp word [esp + 0x19c], 0
jne 0x42aeec
pop ebx
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x1990]
xor ecx, esp
call fcn.0045715c
add esp, 0x1994
ret
push ebp
push 0x800
lea eax, [esp + 0x11a4]
push 0
push eax
call fcn.00457170
mov ecx, dword [esi]
mov eax, dword [ecx + 0x4c]
add esp, 0xc
push 0x400
lea edx, [esp + 0x11a4]
push edx
push esi
call eax
mov eax, dword [edi + 0x14]
mov ecx, dword [eax - 8]
mov ebp, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
add ecx, ecx
push ecx
push eax
push 1
lea edx, [esp + 0x11ac]
push edx
lea eax, [esp + 0x1b0]
push eax
push ebx
call ebp
push 0x190
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.00457170
mov edx, dword [esi]
mov ecx, dword [edx + 0x3c]
add esp, 0xc
push 0xc8
lea eax, [esp + 0x14]
push eax
push esi
call ecx
push 0x800
lea edx, [esp + 0x9a4]
push 0
push edx
call fcn.00457170
mov ecx, dword [edi + 0x14]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x9a8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x9a0]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42afa0
sub eax, edx
sar eax, 1
add eax, eax
push eax
lea ecx, [esp + 0x9a4]
push ecx
push 1
push 0
lea edx, [esp + 0x1b0]
push edx
push ebx
call ebp
mov ecx, dword [esp + 0x19a0]
pop ebp
pop ebx
pop esi
pop edi
xor ecx, esp
mov eax, 1
call fcn.0045715c
add esp, 0x1994
ret
Function at 0x42be90
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x908
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x904], eax
push ebx
mov ebx, dword [esp + 0x910]
push esi
mov esi, dword [esp + 0x918]
mov dword [esp + 8], 0
test esi, esi
jne 0x42bed1
push 0x481090
mov ecx, ebx
call fcn.0041e3d0
jmp 0x42bf8d
push edi
xor eax, eax
push 0xfe
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.00457170
xor edx, edx
push 0x7fe
push edx
lea eax, [esp + 0x126]
push eax
mov word [esp + 0x128], dx
call fcn.00457170
push esi
lea ecx, [esp + 0x12c]
push 0x400
push ecx
call fcn.004577ba
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x24
xor esi, esi
call fcn.00403500
mov edx, dword [eax]
mov edx, dword [edx + 0x30]
push 0x80
lea ecx, [esp + 0x14]
push ecx
push eax
call edx
push 0x47a49c
lea eax, [esp + 0x114]
push 0x400
push eax
call fcn.004577ba
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x120]
push 0x400
push edx
call fcn.004577ba
add esp, 0x18
lea eax, [esp + 0x110]
push eax
call edi
test eax, eax
je 0x42bfa8
inc esi
cmp esi, 0xa
jl 0x42bf24
push 0x481090
mov ecx, ebx
call fcn.0041e3d0
pop edi
mov ecx, dword [esp + 0x90c]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0045715c
add esp, 0x908
ret 8
lea ecx, [esp + 0x110]
push ecx
jmp 0x42bf85
Function at 0x42ce50
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path
Move file

Disassembly:
push 0xffffffffffffffff
push 0x47227b
mov eax, dword fs:[0]
push eax
mov eax, 0x1008
call fcn.004580a0
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x1004], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x490d68]
xor eax, esp
push eax
lea eax, [esp + 0x101c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x102c]
mov esi, dword [esp + 0x1030]
mov edi, dword [esp + 0x1034]
test ebp, ebp
je 0x42d07c
test esi, esi
je 0x42d07c
push 0x800
xor ebx, ebx
lea eax, [esp + 0x81c]
push ebx
push eax
call fcn.00457170
push 0x800
lea ecx, [esp + 0x28]
push ebx
push ecx
call fcn.00457170
push 0x400
lea edx, [esp + 0x834]
push esi
push edx
call fcn.0045810b
add esp, 0x24
lea eax, [esp + 0x818]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0x818]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov edx, dword [0x48f014]
mov dword [esp + 0x14], edx
mov ecx, dword [0x492c58]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1028], ebx
call fcn.0043ce50
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42cfdc
push esi
push str.File__s_exist
call fcn.00419ac0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42cfdc
push esi
push str.Delete_File__s_failed
call fcn.00419ac0
add esp, 8
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x47923c
lea edx, [esp + 0x824]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x14]
push ecx
push esi
call fcn.0042c260
add esp, 8
test al, al
jne 0x42d02b
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x42d02b
push esi
push str.Move_File__s_to_temp_dir
call fcn.00419ac0
add esp, 8
push 4
push ebx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test edi, edi
je 0x42cfd7
mov dword [edi], 4
mov ebx, 1
push 0
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test ebx, ebx
je 0x42cff7
mov ecx, dword [0x492c58]
push 1
call fcn.0043c7a0
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x48f010]
je 0x42d024
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42d024
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00457d84
add esp, 4
mov eax, 1
jmp 0x42d07e
push esi
push str.Move_File__s_failed__replace_until_reboot
call fcn.00419ac0
add esp, 8
push 0
lea ecx, [esp + 0x1c]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 5
push esi
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test edi, edi
je 0x42d05f
mov dword [edi], 5
mov ecx, dword [0x492c58]
push 1
call fcn.0043c7a0
lea ecx, [esp + 0x14]
call fcn.0041a630
mov eax, 1
jmp 0x42d07e
xor eax, eax
mov ecx, dword [esp + 0x101c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1004]
xor ecx, esp
call fcn.0045715c
add esp, 0x1014
ret
Function at 0x42d3f0
Capabilities:
Check if file exists
Create directory
Move file

Disassembly:
push 0xffffffffffffffff
push 0x472331
mov eax, dword fs:[0]
push eax
sub esp, 0xa88
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0xa84], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x490d68]
xor eax, esp
push eax
lea eax, [esp + 0xa9c]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0xaac]
mov ebp, dword [esp + 0xab0]
xor ebx, ebx
cmp esi, ebx
je 0x42d63a
cmp ebp, ebx
je 0x42d63a
cmp word [esi], bx
je 0x42d63a
cmp word [ebp], bx
je 0x42d63a
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x42d465
sub eax, edx
sar eax, 1
cmp eax, 0x104
jge 0x42d63a
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x42d484
sub eax, edx
sar eax, 1
cmp eax, 0x104
jge 0x42d63a
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42d4b3
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x42d4e2
push ebp
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x42d4e2
push ebp
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.0042be90
mov ecx, dword [esp + 0x14]
push 3
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esp + 0x14]
call fcn.0041a630
push 0x410
lea edx, [esp + 0x68c]
push ebx
push edx
call fcn.00457170
push 0x206
lea ecx, [esp + 0x492]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x498], ax
call fcn.00457170
add esp, 0x18
push 0x480f24
push esi
lea edx, [esp + 0x690]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, 0x5c
mov word [esp + 0x474], ax
mov dword [esp + 0x478], ebx
mov dword [esp + 0x47c], ebx
lea ecx, [esp + 0x688]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xaa8], ebx
call fcn.0042ad10
cmp eax, ebx
je 0x42d628
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ebx, [ebx]
lea ecx, [esp + 0x1c]
call fcn.0042acd0
lea ecx, [esp + 0x1c]
test eax, eax
je 0x42d58d
call fcn.0042ab00
mov esi, eax
jmp 0x42d620
lea edx, [esp + 0x14]
push edx
call fcn.0042baf0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0xaa8], 1
call fcn.0042ba80
mov byte [esp + 0xaa4], 2
cmp dword [esp + 0x47c], ebx
je 0x42d5cc
mov eax, dword [esp + 0x1c]
shr eax, 4
and eax, 1
cmp eax, ebx
jne 0x42d5fc
push ebp
lea ecx, [esp + 0x484]
push ecx
call edi
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x484]
push eax
call edi
mov edx, dword [esp + 0x14]
push ebx
lea ecx, [esp + 0x484]
push ecx
push edx
call fcn.0042ce50
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.0042ab00
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.0041a630
lea ecx, [esp + 0x14]
mov byte [esp + 0xaa4], bl
call fcn.0041a630
cmp esi, ebx
jne 0x42d570
lea ecx, [esp + 0x1c]
call fcn.0042ab30
lea ecx, [esp + 0x1c]
call fcn.0042ab30
mov ecx, dword [esp + 0xa9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa84]
xor ecx, esp
call fcn.0045715c
add esp, 0xa94
ret 8
Function at 0x42eda0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4725bb
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x490d68]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28c]
mov edi, dword [esp + 0x288]
mov ebx, dword [esp + 0x290]
mov esi, ecx
test ebp, ebp
je 0x42eede
test edi, edi
je 0x42eede
lea eax, [esi + 0x238]
push eax
lea ecx, [esp + 0x18]
call fcn.0041e3d0
mov eax, dword [ebx]
mov ebx, dword [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x288], 0
call fcn.0042be40
add esp, 8
test eax, eax
jge 0x42ee4d
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push edi
mov dword [esp + 0x224], 2
call ebp
push eax
push str._s_is_older_file_to_dest_and_check_local_sign_ok.
jmp 0x42ee69
jne 0x42eeb3
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push edi
mov dword [esp + 0x224], 2
call ebp
push eax
push str._s_version_is_same_file_to_dest.
call fcn.00419ac0
add esp, 8
push edi
call ebp
push eax
push 0x208
lea ecx, [esp + 0x20]
push ecx
call fcn.0040f1c0
lea edx, [esi + 0x258]
push edx
push 0x50
lea eax, [esp + 0x22c]
push eax
call fcn.0040f1c0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esi + 0x2c0]
call fcn.0042e2b0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x42eebc
push ebp
push edi
mov ecx, esi
call fcn.0042ec20
lea edx, [ebx - 0xc]
cmp edx, dword [0x48f010]
je 0x42eede
lea esi, [ebx - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42eede
push esi
call fcn.00457d84
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.0045715c
add esp, 0x270
ret 0xc