joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474250
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x56f790]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x474387
test edi, edi
je 0x474387
push 4
push esi
call fcn.004d66ad
add esp, 8
test eax, eax
jne 0x4742a2
push esi
call fcn.0048b530
add esp, 4
test eax, eax
jne 0x4742b4
push str.Service_check_360_sign_fail.__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004b17e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
call fcn.00473830
test eax, eax
mov edx, str.System32_rundll32.exe
mov ecx, str.SysWOW64_rundll32.exe
lea eax, [ebp - 0x20c]
cmove ecx, edx
push ecx
push 0x104
push eax
call fcn.004d096d
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004b17e0
push edi
push esi
push str.__s____s
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00405640
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
push str.UnRegisterGameCenterSvc:__s__s
call fcn.00441ac0
add esp, 0x38
mov dword [ebp - 0x418], 0
lea eax, [ebp - 0x418]
push 0x1388
push eax
push 1
push 0
push 0
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00474060
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret

Function at 0x474400
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.004ac5b0
mov eax, dword [0x56f790]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x474430
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret
push 0x2000
xorps xmm0, xmm0
mov dword [ebp - 0x200c], 0
lea eax, [ebp - 0x2004]
movq qword [ebp - 0x2014], xmm0
push 0
movups xmmword [ebp - 0x2024], xmm0
push eax
mov word [ebp - 0x2008], 0
mov dword [ebp - 0x2020], 3
call fcn.004b17e0
push 0x1000
lea eax, [ebp - 0x2004]
push esi
push eax
call fcn.004d151e
lea eax, [ebp - 0x2004]
add esp, 0x18
mov dword [ebp - 0x201c], eax
mov eax, 0x614
mov word [ebp - 0x2014], ax
lea eax, [ebp - 0x2024]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret
Function at 0x4744c0
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x56f790]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4746d3
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4746d3
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4744f3
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x4746d3
push ebx
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, 1
push 0
push eax
call fcn.004b17e0
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004b17e0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
add esp, 0x18
push esi
push eax
call ebx
push 0x5336a4
lea eax, [ebp - 0x414]
push eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x474574
test al, 1
je 0x474574
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x668], eax
cmp eax, 0xffffffff
je 0x4746b9
lea ecx, [ebp - 0x664]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4746ad
nop dword [eax]
test byte [ebp - 0x664], 0x10
je 0x474628
cmp word [ebp - 0x638], 0x2e
jne 0x4745e7
mov ax, word [ebp - 0x636]
test ax, ax
je 0x474692
cmp ax, 0x2e
jne 0x4745e7
cmp word [ebp - 0x634], 0
je 0x474692
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004b17e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.004744c0
add esp, 4
jmp 0x474690
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004b17e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47467f
test al, 1
je 0x47467f
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
and edi, eax
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4745b0
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
and eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret
Function at 0x4746f0
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x47472d
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47472d
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x474728
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x47472d
xor eax, eax
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret
Function at 0x474b30
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520826
mov eax, dword fs:[0]
push eax
sub esp, 0x880
mov eax, dword [0x56f790]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test esi, esi
jne 0x474b6f
xor eax, eax
jmp 0x474d6b
cmp word [esi], 0
je 0x474b68
test ebx, ebx
je 0x474b68
cmp word [ebx], 0
je 0x474b68
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x474b84
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jge 0x474b68
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004b17e0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x539058
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, 0x5c
mov dword [ebp - 0x428], 0
mov word [ebp - 0x42c], ax
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x884]
call fcn.00474740
test eax, eax
je 0x474d50
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [eax + eax]
cmp dword [ebp - 0x424], 0
je 0x474c76
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x474c76
cmp word [ebp - 0x858], 0x2e
jne 0x474c76
mov ax, word [ebp - 0x856]
test ax, ax
je 0x474c4d
cmp ax, 0x2e
jne 0x474c76
cmp word [ebp - 0x854], 0
jne 0x474c76
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x474d50
lea ecx, [ebp - 0x884]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
mov dword [ebp - 0x424], edi
jmp 0x474d42
lea eax, [ebp - 0x888]
push eax
lea ecx, [ebp - 0x884]
call fcn.00474880
cmp dword [ebp - 0x424], 0
mov byte [ebp - 4], 1
je 0x474cb5
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x474cb5
mov esi, dword [ebp - 0x888]
push ebx
push esi
call fcn.00474b30
add esp, 8
jmp 0x474cf5
mov esi, dword [ebp - 0x888]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push ebx
push eax
call fcn.004ce4af
add esp, 8
test eax, eax
jne 0x474cf5
push esi
call edi
test eax, eax
jne 0x474cf5
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x474cf5
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x474cf5
push esi
call edi
mov eax, dword [ebp - 0x428]
test eax, eax
jne 0x474d03
xor edi, edi
jmp 0x474d26
cmp dword [ebp - 0x424], 0
jne 0x474d10
xor edi, edi
jmp 0x474d26
lea ecx, [ebp - 0x884]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
mov dword [ebp - 0x424], edi
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x474d42
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jne 0x474c10
lea ecx, [ebp - 0x884]
call fcn.004743d0
lea ecx, [ebp - 0x884]
call fcn.004743a0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret
Function at 0x4751a0
Capabilities:
Delete directory

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi]
cmp eax, dword [eax]
je 0x4751c5
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
lea esi, [eax + 4]
mov eax, dword [esi]
push dword [eax + 8]
call ebx
mov ecx, dword [edi]
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x4751b1
pop esi
pop ebx
mov ecx, edi
pop edi
jmp fcn.00475110

Function at 0x475210
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5208e6
mov eax, dword fs:[0]
push eax
sub esp, 0x810
mov eax, dword [0x56f790]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.004b17e0
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x814]
mov dword [ebp - 0x818], eax
call fcn.00408a30
mov ecx, eax
test ecx, ecx
je 0x475333
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
lea eax, [ebp - 0x810]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x814]
call fcn.00408690
test al, al
jne 0x4752bc
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x814]
call fcn.0041d380
lea eax, [ebp - 0x818]
mov dword [ebp - 4], 1
push eax
push ecx
lea eax, [ebp - 0x814]
mov dword [ebp - 0x818], 0
mov ecx, esp
push eax
call fcn.0041d580
call fcn.00475e40
mov edx, dword [ebp - 0x814]
add esp, 8
mov esi, eax
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x475312
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
test esi, esi
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404400
int3

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x56f790]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x539064]
mov dword [ebp - 0xc], eax
mov eax, dword [0x539068]
mov dword [ebp - 8], eax
mov ax, word [ebp + 8]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x475439
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push 0
push 0
lea eax, [ebp - 0xc]
movlpd qword [ebp - 0x14], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x475439
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
xor edx, edx
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret
Function at 0x475450
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.004ac5b0
mov eax, dword [0x56f790]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4004]
push edi
mov edi, dword [ebp + 0xc]
push 0x4000
push 0
push eax
call fcn.004b17e0
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x475546
test edi, edi
je 0x475546
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x475546
cmp eax, 0x3fff
ja 0x475546
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x475546
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x532d98
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x475546
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.004b17e0
mov ecx, dword [ebp - 0x400c]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
lea eax, [esi - 1]
push eax
push edi
call fcn.0043fd20
add esp, 0x28
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x56f790]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x800
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.004b17e0
add esp, 0xc
lea eax, [ebp - 0x80c]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x80c]
cdq
mov edi, eax
mov ebx, edx
mov ax, word [ebp - 0x80c]
shld ebx, edi, 0x14
shl edi, 0x14
test ax, ax
je 0x475650
movzx ecx, ax
nop word [eax + eax]
mov eax, dword [0x539064]
mov dword [ebp - 0xc], eax
mov eax, dword [0x539068]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xc], cx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x475629
lea eax, [ebp - 0x814]
xorps xmm0, xmm0
push eax
push 0
push 0
lea eax, [ebp - 0xc]
movlpd qword [ebp - 0x814], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x475629
cmp dword [ebp - 0x810], ebx
ja 0x475663
jb 0x475629
cmp dword [ebp - 0x814], edi
ja 0x475663
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x475630
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2]
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x4755d0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret
mov ax, word [esi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret
Function at 0x478dd0
Capabilities:
Get session user name
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520f4b
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x56f790]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x478e1e
mov eax, 1
jmp 0x478f53
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x478e30
xor eax, eax
jmp 0x478f53
lea ecx, [ebp - 0x220]
call fcn.00487d10
push 0x1a
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 0
call fcn.00487ee0
mov dword [ebp - 0x224], eax
test eax, eax
je 0x478e80
push 0xf003f
push eax
push 0x5391c0
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x220]
call fcn.00488020
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0x105
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.00487d80
mov dword [ebp - 0x224], eax
test eax, eax
je 0x478ee1
push 0xf003f
push eax
push 0x5391c0
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x220]
call fcn.00488020
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x478ef5
mov esi, 1
jmp 0x478f46
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x478f04
xor esi, esi
jmp 0x478f46
push 1
lea ecx, [ebp - 0x220]
call fcn.00487ee0
mov esi, eax
test esi, esi
je 0x478f39
push 0xf003f
push esi
push 0x5391c0
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x220]
call fcn.00488020
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp + 0x10]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
lea ecx, [ebp - 0x220]
call fcn.00487d20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x479500
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.004ac5b0
mov eax, dword [0x56f790]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1008], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test eax, eax
je 0x47969b
test esi, esi
je 0x47969b
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.004b17e0
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.004b17e0
push 0x400
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004d151e
add esp, 0x24
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x1004]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47966d
push esi
push str.Dest_File_Exist:__s
call fcn.00441ac0
push esi
call fcn.004746f0
add esp, 0xc
test eax, eax
jne 0x47966d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Delete_File__s_Failed__error___d
call fcn.00441ac0
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
push 0
push 0x53ae58
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x804]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4796b0
lea eax, [ebp - 0x804]
push eax
push esi
push str.Rename_File__s_to__s_success
call fcn.00441ac0
add esp, 0xc
lea eax, [ebp - 0x804]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test ebx, ebx
je 0x479640
mov dword [ebx], 4
cmp dword [edi + 0x13c], 0
jne 0x47966d
push esi
mov ecx, edi
call fcn.00478c90
test eax, eax
je 0x47966d
push esi
push str.check_file__s___need_reboot_now
call fcn.00441ac0
add esp, 8
mov dword [edi + 0x13c], 1
mov ebx, dword [ebp - 0x1008]
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x47971a
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.00441ac0
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret 0xc
push esi
push str.Rename_File__s_failed__replace_until_reboot
call fcn.00441ac0
add esp, 8
lea eax, [ebp - 0x804]
push 0
push eax
push dword [ebp - 0x1008]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 5
push esi
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test ebx, ebx
je 0x4796ed
mov dword [ebx], 5
cmp dword [edi + 0x13c], 0
jne 0x47971a
push esi
mov ecx, edi
call fcn.00478c90
test eax, eax
je 0x47971a
push esi
push str.check_file__s___need_reboot_now
call fcn.00441ac0
add esp, 8
mov dword [edi + 0x13c], 1
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47df20
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x521ab6
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x56f790]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x228], ecx
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
push 0x2001f
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 0
call fcn.00419020
mov edi, dword [ebp - 0x234]
test eax, eax
jne 0x47e0bf
call fcn.00408a30
mov ecx, eax
test ecx, ecx
je 0x47e0ec
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
push dword [esi + 8]
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 1
push dword [esi]
push str._s__s
push eax
call fcn.0040ecb0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004b17e0
add esp, 0x1c
mov dword [ebp - 0x21c], 0x208
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47e043
mov eax, dword [ebp - 0x224]
cmp eax, 1
je 0x47e031
cmp eax, 2
jne 0x47e043
cmp dword [ebp - 0x21c], 0
jne 0x47e043
xor eax, eax
mov word [ebp - 0x218], ax
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.004ce4af
add esp, 8
test eax, eax
je 0x47e08a
test esi, esi
je 0x47e08a
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47e066
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x228]
push 0
push str.LDS_GAMECENTER
call fcn.0047f180
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x47e0b8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x47e0c1
xor esi, esi
test edi, edi
je 0x47e0cc
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00404400
int3