joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a500
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ae20
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x84]
push eax
mov ecx, esi
mov dword [ebp - 0x84], 0x2e
call fcn.00408640
mov edi, eax
test edi, edi
jle 0x47a6ae
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x48]
push ecx
mov ecx, esi
call fcn.00408400
push edi
push 0
lea edx, [ebp - 0x2c]
push edx
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00408400
cmp dword [ebp - 0x38], 5
mov byte [ebp - 4], 1
mov edi, 8
jbe 0x47a5bc
cmp dword [ebp - 0x18], edi
jb 0x47a596
mov eax, dword [ebp - 0x2c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x34], edi
jb 0x47a6ae
mov edx, dword [ebp - 0x48]
push edx
jmp 0x47a6a6
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x47a5c7
lea eax, [ebp - 0x48]
push eax
call fcn.0047a160
add esp, 4
test eax, eax
je 0x47a678
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.00408d40
add esp, 0xc
mov ecx, dword [ebp - 0x64]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x50], edi
jae 0x47a5f8
lea ecx, [ebp - 0x64]
cmp dword [esi + 0x14], edi
jb 0x47a601
mov eax, dword [esi]
jmp 0x47a603
mov eax, esi
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x47a667
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x80]
push edx
call fcn.0047c6d0
add esp, 8
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], edi
jb 0x47a62f
mov esi, dword [esi]
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0x6c], edi
jae 0x47a63a
lea eax, [ebp - 0x80]
push esi
push eax
push str._reason:_s__s
push str.failed_rename
push 0xb5
push str.hfgame::renameHfExt
push str.hfgame_fileutil.cpp
push 4
call fcn.0047d210
add esp, 0x20
lea ecx, [ebp - 0x80]
call fcn.004024d0
cmp dword [ebp - 0x50], edi
jb 0x47a678
mov eax, dword [ebp - 0x64]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp - 0x18], edi
jb 0x47a689
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x34], edi
jb 0x47a6ae
mov eax, dword [ebp - 0x48]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret
Function at 0x47a6d0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ae20
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x84]
push eax
mov ecx, esi
mov dword [ebp - 0x84], 0x2e
call fcn.00408640
mov edi, eax
test edi, edi
jle 0x47a87d
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x48]
push ecx
mov ecx, esi
call fcn.00408400
push edi
push 0
lea edx, [ebp - 0x2c]
push edx
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00408400
mov edi, 8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x38], edi
jbe 0x47a78b
cmp dword [ebp - 0x18], edi
jb 0x47a765
mov eax, dword [ebp - 0x2c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x34], edi
jb 0x47a87d
mov edx, dword [ebp - 0x48]
push edx
jmp 0x47a875
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x47a796
lea eax, [ebp - 0x48]
push eax
call fcn.0047a210
add esp, 4
test eax, eax
je 0x47a847
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.00408d40
add esp, 0xc
mov ecx, dword [ebp - 0x64]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x50], edi
jae 0x47a7c7
lea ecx, [ebp - 0x64]
cmp dword [esi + 0x14], edi
jb 0x47a7d0
mov eax, dword [esi]
jmp 0x47a7d2
mov eax, esi
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x47a836
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x80]
push edx
call fcn.0047c6d0
add esp, 8
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], edi
jb 0x47a7fe
mov esi, dword [esi]
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0x6c], edi
jae 0x47a809
lea eax, [ebp - 0x80]
push esi
push eax
push str._reason:_s__s
push str.failed_rename
push 0xce
push str.hfgame::renameDyExt
push str.hfgame_fileutil.cpp
push 4
call fcn.0047d210
add esp, 0x20
lea ecx, [ebp - 0x80]
call fcn.004024d0
cmp dword [ebp - 0x50], edi
jb 0x47a847
mov eax, dword [ebp - 0x64]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp - 0x18], edi
jb 0x47a858
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x34], edi
jb 0x47a87d
mov eax, dword [ebp - 0x48]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret
Function at 0x47a8a0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ae68
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x4cc99c]
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 eax, dword [ebp + 8]
push 0xffffffffffffffff
xor ebx, ebx
xor ecx, ecx
push ebx
mov word [ebp - 0x48], cx
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
call fcn.00402530
push 1
push 0x4adfcc
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], ebx
call fcn.004026a0
push 3
push 0x4ae910
lea ecx, [ebp - 0x48]
call fcn.004026a0
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
lea esi, [ebx + 1]
jae 0x47a925
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x298]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x47aa8d
cmp esi, ebx
je 0x47aa8d
test byte [ebp - 0x298], 0x10
je 0x47a9f6
lea eax, [ebp - 0x26c]
push eax
call fcn.0047b370
add esp, 4
test al, al
je 0x47a978
lea ecx, [ebp - 0x298]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
jmp 0x47a93e
mov eax, dword [ebp - 0x29c]
push 0xffffffffffffffff
push ebx
xor edx, edx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
call fcn.00402530
push 1
push 0x4adfcc
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.004026a0
lea eax, [ebp - 0x26c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x47a9b6
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004026a0
lea edx, [ebp - 0x2c]
push edx
call fcn.0047a8a0
add esp, 4
lea eax, [ebp - 0x298]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
jmp 0x47aa6f
mov eax, dword [ebp - 0x29c]
push 0xffffffffffffffff
push ebx
xor edx, edx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
call fcn.00402530
push 1
push 0x4adfcc
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004026a0
lea eax, [ebp - 0x26c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x47aa34
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004026a0
lea edx, [ebp - 0x298]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0047a3e0
add esp, 4
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], bl
jb 0x47a93e
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x47a93e
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x34], 8
jb 0x47aaa6
mov edx, dword [ebp - 0x48]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
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.00497792
mov esp, ebp
pop ebp
ret
Function at 0x47aad0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ae68
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x4cc99c]
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 eax, dword [ebp + 8]
push 0xffffffffffffffff
xor ebx, ebx
xor ecx, ecx
push ebx
mov word [ebp - 0x48], cx
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
call fcn.00402530
push 1
push 0x4adfcc
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], ebx
call fcn.004026a0
push 3
push 0x4ae910
lea ecx, [ebp - 0x48]
call fcn.004026a0
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
lea esi, [ebx + 1]
jae 0x47ab55
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x298]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x47acbd
cmp esi, ebx
je 0x47acbd
test byte [ebp - 0x298], 0x10
je 0x47ac26
lea eax, [ebp - 0x26c]
push eax
call fcn.0047b370
add esp, 4
test al, al
je 0x47aba8
lea ecx, [ebp - 0x298]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
jmp 0x47ab6e
mov eax, dword [ebp - 0x29c]
push 0xffffffffffffffff
push ebx
xor edx, edx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
call fcn.00402530
push 1
push 0x4adfcc
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.004026a0
lea eax, [ebp - 0x26c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x47abe6
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004026a0
lea edx, [ebp - 0x2c]
push edx
call fcn.0047aad0
add esp, 4
lea eax, [ebp - 0x298]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
jmp 0x47ac9f
mov eax, dword [ebp - 0x29c]
push 0xffffffffffffffff
push ebx
xor edx, edx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
call fcn.00402530
push 1
push 0x4adfcc
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004026a0
lea eax, [ebp - 0x26c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x47ac64
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004026a0
lea edx, [ebp - 0x298]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0047a500
add esp, 4
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], bl
jb 0x47ab6e
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x47ab6e
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x34], 8
jb 0x47acd6
mov edx, dword [ebp - 0x48]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
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.00497792
mov esp, ebp
pop ebp
ret
Function at 0x47ad00
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ae68
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x4cc99c]
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 eax, dword [ebp + 8]
push 0xffffffffffffffff
xor ebx, ebx
xor ecx, ecx
push ebx
mov word [ebp - 0x48], cx
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
call fcn.00402530
push 1
push 0x4adfcc
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], ebx
call fcn.004026a0
push 3
push 0x4ae910
lea ecx, [ebp - 0x48]
call fcn.004026a0
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
lea esi, [ebx + 1]
jae 0x47ad85
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x298]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x47aeed
cmp esi, ebx
je 0x47aeed
test byte [ebp - 0x298], 0x10
je 0x47ae56
lea eax, [ebp - 0x26c]
push eax
call fcn.0047b370
add esp, 4
test al, al
je 0x47add8
lea ecx, [ebp - 0x298]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
jmp 0x47ad9e
mov eax, dword [ebp - 0x29c]
push 0xffffffffffffffff
push ebx
xor edx, edx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
call fcn.00402530
push 1
push 0x4adfcc
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.004026a0
lea eax, [ebp - 0x26c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x47ae16
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004026a0
lea edx, [ebp - 0x2c]
push edx
call fcn.0047ad00
add esp, 4
lea eax, [ebp - 0x298]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
jmp 0x47aecf
mov eax, dword [ebp - 0x29c]
push 0xffffffffffffffff
push ebx
xor edx, edx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
call fcn.00402530
push 1
push 0x4adfcc
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004026a0
lea eax, [ebp - 0x26c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x47ae94
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004026a0
lea edx, [ebp - 0x298]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0047a6d0
add esp, 4
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], bl
jb 0x47ad9e
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x47ad9e
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x34], 8
jb 0x47af06
mov edx, dword [ebp - 0x48]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
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.00497792
mov esp, ebp
pop ebp
ret
Function at 0x47af30
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e7b8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4cc99c]
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 edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x34], ebx
jb 0x47af70
mov eax, dword [edi]
jmp 0x47af72
mov eax, edi
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x34], eax
cmp eax, ebx
ja 0x47af88
mov dword [esi + 0x10], ebx
jmp 0x47b079
push eax
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
cmp dword [edi + 0x14], 8
mov ebx, eax
jb 0x47af9e
mov eax, dword [edi]
jmp 0x47afa0
mov eax, edi
mov ecx, dword [ebp - 0x34]
push ebx
push ecx
xor edi, edi
push edi
push eax
call sub.VERSION.dll_GetFileVersionInfoW
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x30]
push eax
push str.StringFileInfo040904B0ProductVersion
push ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x38], edi
call sub.VERSION.dll_VerQueryValueW
mov edx, dword [ebp - 0x30]
cmp edx, edi
jne 0x47afec
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x30]
push edx
push str.StringFileInfo080404B0ProductVersion
push ebx
call sub.VERSION.dll_VerQueryValueW
mov edx, dword [ebp - 0x30]
cmp edx, edi
je 0x47b06c
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x34], ecx
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x47b004
sub eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x2c]
sar eax, 1
push eax
push edx
call fcn.004027c0
push ebx
mov dword [ebp - 4], edi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
cmp dword [ebp - 0x1c], edi
ja 0x47b050
push str.1.0.0.0
mov ecx, esi
call fcn.00402480
cmp dword [ebp - 0x18], 8
jb 0x47b093
mov edx, dword [ebp - 0x2c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x47b093
lea ecx, [ebp - 0x2c]
xor eax, eax
push ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov ecx, esi
mov word [esi], ax
call fcn.004085c0
jmp 0x47b03c
push ebx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov dword [esi + 0x10], edi
push 7
xor eax, eax
mov dword [esi + 0x14], 7
push str.1.0.0.0
mov ecx, esi
mov word [esi], ax
call fcn.004027c0
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.00497792
mov esp, ebp
pop ebp
ret
Function at 0x47b0c0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov word [ebp - 4], ax
mov eax, esi
push edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47b0f0
sub eax, edx
sar eax, 1
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00497652
mov ebx, eax
mov eax, esi
add esp, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47b122
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 4]
push eax
push 0
push ebx
call sub.MSVCR100.dll_memset
mov edx, ebx
add esp, 0xc
mov eax, esi
sub edx, esi
jmp 0x47b150
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x47b150
mov edi, dword [ebp + 0xc]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47b167
sub eax, edx
sar eax, 1
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00497652
mov esi, eax
mov eax, edi
add esp, 4
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47b1a0
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 4]
push eax
push 0
push esi
call sub.MSVCR100.dll_memset
mov edx, esi
add esp, 0xc
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x47b1c5
xor eax, eax
lea edx, [ebp - 0x20]
mov ecx, 0x614
push edx
mov word [ebp - 0x10], cx
mov dword [ebp - 0xa], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 6], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], 2
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push ebx
mov edi, eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 8
test edi, edi
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47b220
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [str.._]
mov ecx, dword [0x4a53a8]
mov dx, word [0x4a53ac]
push esi
mov esi, dword [ebp + 8]
push edi
push 0xbe
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0xc2]
push 0
push eax
mov dword [ebp - 0xc8], ecx
mov word [ebp - 0xc4], dx
call sub.MSVCR100.dll_memset
mov eax, esi
add esp, 0xc
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47b277
lea edi, [ebp - 0xcc]
sub eax, edx
add edi, 0xfffffffe
lea ecx, [ecx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x47b290
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0xcc]
pop edi
lea edx, [eax + 2]
pop esi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47b2b5
xor ecx, ecx
push ecx
push ecx
push 3
push ecx
push 3
sub eax, edx
push ecx
lea edx, [ebp - 0xcc]
sar eax, 1
push edx
mov word [ebp + eax*2 - 0xce], cx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x47b353
push 0
lea ecx, [ebp - 0x104]
push ecx
push 0x28
lea edx, [ebp - 0x100]
push edx
push 0xc
lea ecx, [ebp - 0xd8]
push ecx
push 0x2d1400
push eax
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xfc], 0x28
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x47b353
mov eax, dword [ebp - 0xe4]
cmp eax, 7
je 0x47b353
test eax, eax
je 0x47b353
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00497792
mov esp, ebp
pop ebp
ret

Function at 0x47b3a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x47b3ae
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47b3be
xor al, al
pop ebp
ret
shr al, 4
not al
and al, 1
pop ebp
ret

Function at 0x47b3d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x47b3de
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47b3ee
xor al, al
pop ebp
ret
shr al, 4
and al, 1
pop ebp
ret
Function at 0x47b480
Capabilities:
Create directory
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ae9e
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4cc99c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
mov dword [ebp - 0x10], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
call edi
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00497652
add esp, 4
mov ebx, eax
push ebx
push esi
call edi
mov eax, 1
mov esi, ebx
test byte [0x4cf83c], al
jne 0x47b534
or dword [0x4cf83c], eax
xor edi, edi
push edi
xor eax, eax
push 0x4ab248
mov ecx, 0x4cf820
mov dword [ebp - 4], edi
mov dword [0x4cf834], 7
mov dword [0x4cf830], edi
mov word [0x4cf820], ax
call fcn.004027c0
push 0x4a3030
call fcn.00497967
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x47b536
xor edi, edi
cmp word [ebx], di
je 0x47b5bd
nop
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x47b59e
push esi
call fcn.0047b220
add esp, 4
test eax, eax
je 0x47b59e
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x47b59e
xor eax, eax
cmp dword [ebp - 0x10], eax
jb 0x47b59e
ja 0x47b57e
cmp dword [ebp - 0x14], eax
jbe 0x47b59e
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x47b583
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, 0x4cf820
call fcn.004027c0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x47b5a3
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], di
lea esi, [esi + eax*2 + 2]
jne 0x47b540
push ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push 0x10
push str.hfgameworlddata_
mov ecx, 0x4cf820
call fcn.004026a0
cmp dword [0x4cf834], 8
mov eax, dword [0x4cf820]
jae 0x47b5ea
mov eax, 0x4cf820
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push edi
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
push 0x4cf820
mov ecx, esi
mov word [esi], ax
call fcn.00402530
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret