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

Disassembly:
push 0xffffffffffffffff
push 0x47f223
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4a30f8]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebp
push esi
push edi
mov eax, dword [0x4a30f8]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
mov edi, ecx
push 0x5c
lea ecx, [esp + 0x234]
mov dword [esp + 0x22c], 0
call fcn.00423b40
push 0x4915c8
push 0x4915c8
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea ecx, [esp + 0x238]
call fcn.0041bff0
mov eax, dword [esp + 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
mov eax, dword [esp + 0x230]
je 0x42978e
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4a1010]
je 0x429787
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x429787
mov edx, dword [esp + 0x230]
add edx, 0xfffffff4
push edx
call fcn.00461ef0
add esp, 4
xor eax, eax
jmp 0x4298ed
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
mov eax, dword [esp + 0x230]
jne 0x42975b
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsNetworkPathW]
test eax, eax
jne 0x42991f
mov ecx, dword [esp + 0x230]
mov eax, dword [ecx - 8]
xor esi, esi
test eax, eax
jle 0x4298bc
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea esp, [esp]
movzx eax, word [ecx + esi*2]
cmp ax, 0x5c
jne 0x4298ab
push esi
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x238]
call fcn.00428a20
mov edx, dword [esp + 0x10]
push edx
mov byte [esp + 0x22c], 1
call ebp
test eax, eax
jne 0x429876
mov eax, dword [esp + 0x10]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
jne 0x429916
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0042bbd0
add esp, 4
lea edx, [esp + 0x10]
push edx
mov ecx, edi
call fcn.00429690
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e]
push ecx
mov word [esp + 0x20], ax
call fcn.00461880
mov edx, dword [esp + 0x1c]
push 0x104
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00462e65
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.00462130
add esp, 0x20
test eax, eax
jne 0x429916
mov eax, dword [esp + 0x10]
lea ecx, [eax - 0xc]
mov byte [esp + 0x228], 0
cmp ecx, dword [0x4a1010]
je 0x4298ab
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4298ab
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00461ef0
add esp, 4
mov ecx, dword [esp + 0x230]
inc esi
cmp esi, dword [ecx - 8]
jl 0x4297d0
lea eax, [ecx - 0xc]
cmp eax, dword [0x4a1010]
je 0x4298e8
lea eax, [ecx - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4298e8
mov ecx, dword [esp + 0x230]
add ecx, 0xfffffff4
push ecx
call fcn.00461ef0
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00461862
add esp, 0x21c
ret 4
lea ecx, [esp + 0x10]
call fcn.0041c130
lea ecx, [esp + 0x230]
call fcn.0041c130
xor eax, eax
jmp 0x4298ed
Function at 0x429930
Capabilities:
Delete file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x47f270
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4a30f8]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
xor ebx, ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], ebx
call fcn.004294e0
mov eax, dword [esp + 0x44]
cmp dword [eax - 0xc], ebx
push ecx
mov byte [esp + 0x40], 1
mov dword [esp + 0x18], esp
mov ecx, esp
jl 0x42998c
mov dword [ecx], eax
mov eax, dword [esp + 0x48]
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x42999e
mov edx, dword [0x4a1014]
mov dword [ecx], edx
mov eax, dword [esp + 0x48]
push eax
call fcn.0041ca80
lea ecx, [esp + 0x1c]
call fcn.004296d0
cmp eax, ebx
jne 0x4299f6
lea ecx, [esp + 0x18]
call fcn.004036c0
mov eax, dword [esp + 0x44]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4a1010]
je 0x4299e1
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4299e1
mov edx, dword [esp + 0x44]
add edx, 0xfffffff4
push edx
call fcn.00461ef0
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x30
ret
push str.wftest.tf
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0041dfe0
mov edx, dword [esp + 0x10]
push ebx
push 0x80
push 2
push ebx
push 2
push 0x120116
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x429a77
mov eax, str.wftest
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x429a34
sub eax, edx
push ebx
mov esi, eax
lea eax, [esp + 0x18]
push eax
push esi
push str.wftest
push edi
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x429a65
cmp esi, dword [esp + 0x14]
jne 0x429a65
mov ebx, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, dword [0x4a1010]
je 0x429aa6
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x429aa6
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00461ef0
add esp, 4
lea ecx, [esp + 0x18]
call fcn.004036c0
mov eax, dword [esp + 0x44]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4a1010]
je 0x429ad8
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x429ad8
mov edx, dword [esp + 0x44]
add edx, 0xfffffff4
push edx
call fcn.00461ef0
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x42add0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x47f398
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4a30f8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov ecx, dword [sym.imp.USER32.dll_DefWindowProcW]
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ecx
lea ecx, [esi + 0x48]
mov dword [esp + 0x14], eax
mov dword [esi], vtable.CFadeInOutAnnimationPlayer.0
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
call fcn.0044d550
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x42bbd0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x4a30f8]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
mov esi, dword [esp + 0x128]
push 0x11c
lea eax, [esp + 8]
push 0
push eax
call fcn.00461880
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 8], 6
jb 0x42bc23
push esi
call fcn.0042bad0
add esp, 4
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
mov eax, 1
call fcn.00461862
add esp, 0x120
ret

Function at 0x42bdd0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x4a30f8]
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 0x42be38
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x42be31
mov ebp, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
push str.360tray.exe
lea ecx, [esp + 0x30]
push ecx
call ebp
test eax, eax
je 0x42be51
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x42be12
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.00461862
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.00461862
add esp, 0x230
ret
Function at 0x42be80
Capabilities:
Get session user name
Move file

Disassembly:
push 0xffffffffffffffff
push 0x47f42b
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4a30f8]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a30f8]
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 0x42bfa7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x42bfcd
lea ecx, [esp + 0x14]
call fcn.00424440
push 0x1a
lea ecx, [esp + 0x18]
mov dword [esp + 0x238], 0
call fcn.004247e0
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, eax
test esi, esi
je 0x42bf37
push 0xf003f
push esi
push 0x4880f0
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x24]
call fcn.00424880
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.00424460
mov esi, eax
test esi, esi
je 0x42bf7f
push 0xf003f
push esi
push 0x4880f0
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x24]
call fcn.00424880
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 0x42bfae
lea ecx, [esp + 0x14]
mov dword [esp + 0x234], 0xffffffff
call fcn.00424450
mov eax, 1
jmp 0x42c022
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x14]
cmp eax, 5
je 0x42bfd1
mov dword [esp + 0x234], 0xffffffff
call fcn.00424450
xor eax, eax
jmp 0x42c022
push 1
call fcn.004247e0
mov esi, eax
test esi, esi
je 0x42bffa
push 0xf003f
push esi
push 0x4880f0
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x24]
call fcn.00424880
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.00424450
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.00461862
add esp, 0x224
ret
Function at 0x42c120
Capabilities:
Check if file exists
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4a30f8]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
xor edi, edi
mov word [esp + 0x14], ax
call fcn.00461880
mov edx, dword [esi]
add esp, 0xc
push str.ACS.ini
push edx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42c1a8
lea edx, [esp + 8]
push edx
push edi
push 0x488168
push 0x488154
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00461862
add esp, 0x20c
ret
mov ecx, dword [esp + 0x210]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00461862
add esp, 0x20c
ret

Function at 0x42c4d0
Capabilities:
Set registry value

Disassembly:
mov eax, 0x1994
call fcn.00462620
mov eax, dword [0x4a30f8]
xor eax, esp
mov dword [esp + 0x1990], eax
push edi
mov edi, ecx
mov ecx, dword [0x4a4cf8]
test ecx, ecx
jne 0x42c50d
xor eax, eax
pop edi
mov ecx, dword [esp + 0x1990]
xor ecx, esp
call fcn.00461862
add esp, 0x1994
ret
push esi
call fcn.004485d0
mov esi, eax
test esi, esi
jne 0x42c530
pop esi
pop edi
mov ecx, dword [esp + 0x1990]
xor ecx, esp
call fcn.00461862
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.00461880
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 0x42c58c
pop ebx
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x1990]
xor ecx, esp
call fcn.00461862
add esp, 0x1994
ret
push ebp
push 0x800
lea eax, [esp + 0x11a4]
push 0
push eax
call fcn.00461880
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.00461880
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.00461880
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 0x42c640
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.00461862
add esp, 0x1994
ret
Function at 0x42d380
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x908
mov eax, dword [0x4a30f8]
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 0x42d3c1
push 0x491898
mov ecx, ebx
call fcn.0041deb0
jmp 0x42d47d
push edi
xor eax, eax
push 0xfe
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.00461880
xor edx, edx
push 0x7fe
push edx
lea eax, [esp + 0x126]
push eax
mov word [esp + 0x128], dx
call fcn.00461880
push esi
lea ecx, [esp + 0x12c]
push 0x400
push ecx
call fcn.00463bf9
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x24
xor esi, esi
call fcn.00401340
mov edx, dword [eax]
mov edx, dword [edx + 0x2c]
push 0x80
lea ecx, [esp + 0x14]
push ecx
push eax
call edx
push 0x4881b0
lea eax, [esp + 0x114]
push 0x400
push eax
call fcn.00463bf9
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x120]
push 0x400
push edx
call fcn.00463bf9
add esp, 0x18
lea eax, [esp + 0x110]
push eax
call edi
test eax, eax
je 0x42d498
inc esi
cmp esi, 0xa
jl 0x42d414
push 0x491898
mov ecx, ebx
call fcn.0041deb0
pop edi
mov ecx, dword [esp + 0x90c]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00461862
add esp, 0x908
ret 8
lea ecx, [esp + 0x110]
push ecx
jmp 0x42d475
Function at 0x42e140
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path
Move file

Disassembly:
push 0xffffffffffffffff
push 0x47f6bb
mov eax, dword fs:[0]
push eax
mov eax, 0x100c
call fcn.00462620
mov eax, dword [0x4a30f8]
xor eax, esp
mov dword [esp + 0x1008], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a30f8]
xor eax, esp
push eax
lea eax, [esp + 0x1020]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x1030]
mov esi, dword [esp + 0x1034]
mov edi, dword [esp + 0x1038]
test ebx, ebx
je 0x42e373
test esi, esi
je 0x42e373
push 0x800
lea eax, [esp + 0x820]
push 0
push eax
mov dword [esp + 0x24], 0
call fcn.00461880
push 0x800
lea ecx, [esp + 0x2c]
push 0
push ecx
call fcn.00461880
push 0x400
lea edx, [esp + 0x838]
push esi
push edx
call fcn.004625ca
add esp, 0x24
lea eax, [esp + 0x81c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0x81c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea edx, [esp + 0x81c]
push edx
call fcn.0042bbd0
add esp, 4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42e2c6
push esi
push str.File__s_exist
call fcn.0041b730
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 8
push esi
call ebp
test eax, eax
jne 0x42e2c6
push esi
push str.Delete_File__s_failed
call fcn.0041b730
add esp, 8
lea eax, [esp + 0x1c]
push eax
push 0
push 0x487a6c
lea ecx, [esp + 0x828]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea edx, [esp + 0x1c]
push edx
call ebp
push esi
call fcn.0042d7a0
add esp, 4
test al, al
jne 0x42e32b
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x42e32b
push esi
push str.Move_File__s_to_temp_dir
call fcn.0041b730
add esp, 8
push 4
push 0
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test edi, edi
je 0x42e2be
mov dword [edi], 4
mov dword [esp + 0x18], 1
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x42e322
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a1014]
mov dword [esp + 0x14], ecx
push eax
push esi
push ebx
lea edx, [esp + 0x20]
push str.Copy_From__s_to__s_Failed_Error_Code___d
push edx
mov dword [esp + 0x103c], 0
call fcn.0041dfb0
mov eax, dword [esp + 0x28]
push eax
call fcn.0041b730
add esp, 0x18
lea ecx, [esp + 0x14]
mov dword [esp + 0x1028], 0xffffffff
call fcn.0041c130
cmp dword [esp + 0x18], 0
je 0x42e36c
jmp 0x42e35f
push esi
push str.Move_File__s_failed__replace_until_reboot
call fcn.0041b730
add esp, 8
push 0
lea edx, [esp + 0x20]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 5
push esi
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test edi, edi
je 0x42e35f
mov dword [edi], 5
mov ecx, dword [0x4a4cf8]
push 1
call fcn.0043fa50
mov eax, 1
jmp 0x42e375
xor eax, eax
mov ecx, dword [esp + 0x1020]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.00461862
add esp, 0x1018
ret
Function at 0x42e4c0
Capabilities:
Check if file exists
Create directory
Move file

Disassembly:
push 0xffffffffffffffff
push 0x47f741
mov eax, dword fs:[0]
push eax
sub esp, 0xa88
mov eax, dword [0x4a30f8]
xor eax, esp
mov dword [esp + 0xa84], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a30f8]
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 0x42e718
cmp ebp, ebx
je 0x42e718
cmp word [esi], bx
je 0x42e718
cmp word [ebp], bx
je 0x42e718
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x42e535
sub eax, edx
sar eax, 1
cmp eax, 0x104
jge 0x42e718
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x42e554
sub eax, edx
sar eax, 1
cmp eax, 0x104
jge 0x42e718
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42e633
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebp
call fcn.0042bbd0
add esp, 4
push 0x410
lea edx, [esp + 0x68c]
push ebx
push edx
call fcn.00461880
push 0x206
lea ecx, [esp + 0x492]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x498], ax
call fcn.00461880
add esp, 0x18
push 0x488570
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.0042c3b0
cmp eax, ebx
je 0x42e70f
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [esp + 0x1c]
call fcn.0042c370
lea ecx, [esp + 0x1c]
test eax, eax
je 0x42e66b
call fcn.0042c0f0
mov esi, eax
jmp 0x42e6fe
push ebp
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x42e585
push ebp
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.0042d380
mov ecx, dword [esp + 0x14]
push 3
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esp + 0x14]
call fcn.0041c130
jmp 0x42e58e
lea edx, [esp + 0x14]
push edx
call fcn.0042cfe0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0xaa8], 1
call fcn.0042cf70
mov byte [esp + 0xaa4], 2
cmp dword [esp + 0x47c], ebx
je 0x42e6aa
mov eax, dword [esp + 0x1c]
shr eax, 4
and eax, 1
cmp eax, ebx
jne 0x42e6da
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.0042e140
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.0042c0f0
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.0041c130
lea ecx, [esp + 0x14]
mov byte [esp + 0xaa4], bl
call fcn.0041c130
cmp esi, ebx
jne 0x42e616
lea ecx, [esp + 0x1c]
call fcn.0042c340
lea ecx, [esp + 0x1c]
call fcn.0042c340
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.00461862
add esp, 0xa94
ret 8
Function at 0x42ea50
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x47f7f6
mov eax, dword fs:[0]
push eax
sub esp, 0x540
mov eax, dword [0x4a30f8]
xor eax, esp
mov dword [esp + 0x53c], eax
push esi
push edi
mov eax, dword [0x4a30f8]
xor eax, esp
push eax
lea eax, [esp + 0x54c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x55c]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x142]
push ecx
xor edi, edi
mov word [esp + 0x144], ax
call fcn.00461880
add esp, 0xc
lea edx, [esp + 0x138]
push edx
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.360Desktop
lea eax, [esp + 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
lea ecx, [esp + 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x4885d4
lea edx, [esp + 0x13c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x138]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42ec17
push esi
call fcn.0042c120
add esp, 4
cmp eax, 1
jne 0x42eb23
jmp 0x42ec19
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x34a]
push edx
mov word [esp + 0x34c], cx
call fcn.00461880
mov eax, dword [esi]
add esp, 0xc
push str.ACS.ini
push eax
lea eax, [esp + 0x348]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x2c]
call fcn.0042b0c0
push 0x4885d0
push str.main_switch
push str.ACS_INIT
lea ecx, [esp + 0x38]
mov dword [esp + 0x560], 0
call fcn.0042b950
sub esp, 0x1c
lea edx, [esp + 0x35c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.0040db70
lea eax, [esp + 0x2c]
push eax
call fcn.004451f0
add esp, 0x20
mov eax, dword [esp + 0x14]
mov esi, 0x10
mov byte [esp + 0x554], 1
cmp dword [esp + 0x28], esi
jae 0x42ebc3
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x30]
call fcn.0042b6a0
lea ecx, [esp + 0x2c]
call fcn.0042b920
mov edi, 1
cmp dword [esp + 0x28], esi
jb 0x42ebee
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0044d6f0
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
mov dword [esp + 0x554], 0xffffffff
call fcn.0042b920
mov eax, edi
mov ecx, dword [esp + 0x54c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x53c]
xor ecx, esp
call fcn.00461862
add esp, 0x54c
ret