joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c3b1f
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push edi
mov edi, eax
push str.cfgmgr32.dll
call fcn.0043144f
mov eax, dword [edi]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x4c3b3d
xor eax, eax
jmp 0x4c3b45
push str.CM_Get_Child
push eax
call esi
mov dword [edi + 8], eax
mov eax, dword [edi]
test eax, eax
je 0x4c3b56
push str.CM_Get_Device_IDW
push eax
call esi
mov dword [edi + 0xc], eax
mov eax, dword [edi]
test eax, eax
je 0x4c3b67
push str.CM_Get_Sibling
push eax
call esi
mov dword [edi + 0x10], eax
mov eax, dword [edi]
test eax, eax
je 0x4c3b78
push str.CM_Locate_DevNodeW
push eax
call esi
mov dword [edi + 0x14], eax
mov eax, dword [edi]
test eax, eax
je 0x4c3b89
push str.CM_Get_DevNode_Registry_PropertyW
push eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi]
test eax, eax
je 0x4c3b9a
push str.CM_Get_Parent
push eax
call esi
mov dword [edi + 0x1c], eax
mov eax, dword [edi]
test eax, eax
je 0x4c3bab
push 0x526708
push eax
call esi
mov dword [edi + 0x20], eax
pop edi
xor eax, eax
pop esi
ret

Function at 0x4c3bb3
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x5438cc]
push ebx
push esi
push edi
mov ecx, 0x5438cc
call dword [eax + 0xc]
mov edi, dword [ebp + 8]
and dword [ebp - 0xc], 0
add eax, 0x10
mov dword [ebp - 4], eax
call fcn.004c456b
mov dword [ebp - 8], 0x43
mov dword [ebp - 0x10], 0x18
push dword [ebp - 8]
lea eax, [ebp - 4]
push str._c:_
push eax
call fcn.0042a016
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x4c3c15
cmp eax, 3
je 0x4c3c15
cmp eax, 6
jne 0x4c3c6b
push dword [ebp - 8]
lea eax, [ebp - 4]
push str.._c:
push eax
call fcn.0042a016
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea esi, [ebp - 4]
call fcn.00407395
push eax
call fcn.004c4079
test eax, eax
pop ecx
pop ecx
je 0x4c3c6b
push dword [ebp - 8]
mov eax, esi
push 0x526730
push eax
call fcn.0042a016
add esp, 0xc
mov eax, esi
push eax
push ecx
push dword [ebp + 8]
lea ebx, [ebp - 0xc]
call fcn.004c44a3
pop ecx
mov edi, eax
call fcn.0043553a
inc dword [ebp - 8]
dec dword [ebp - 0x10]
jne 0x4c3be9
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401239
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4

Function at 0x4c4079
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push 3
mov dword [ebp - 0x10], esi
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
push 0xc0000000
push dword [ebp + 8]
mov dword [ebp - 4], esi
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4c40d9
push esi
lea eax, [ebp - 4]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push 0x2d1080
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4c40d2
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x4c4166
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor esi, esi
push edi
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call fcn.004c4204
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp dword [ebp - 0x14], 0
je 0x4c41f5
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x14]
sar eax, 2
cmp esi, eax
jae 0x4c41f5
lea edi, [ebp - 0x18]
call fcn.00438c92
push dword [eax]
call ebx
cmp eax, 5
je 0x4c41f2
call fcn.00438c92
mov eax, dword [eax]
and dword [ebp - 8], 0
push eax
call ebx
cmp eax, 2
jne 0x4c41c7
mov dword [ebp - 8], 1
lea edi, [ebp - 0x18]
call fcn.00438c92
push dword [eax]
call fcn.004c426e
cmp dword [ebp - 8], 0
jne 0x4c41e1
cmp eax, 7
jne 0x4c41f2
lea edi, [ebp - 0x18]
call fcn.00438c92
mov edi, dword [ebp + 8]
push eax
call fcn.0043553a
inc esi
jmp 0x4c4189
lea esi, [ebp - 0x18]
call fcn.0043566d
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4c4204
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x5438cc]
push ebx
push esi
push edi
mov ecx, 0x5438cc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push 2
mov ebx, eax
pop esi
xor eax, eax
inc eax
mov ecx, esi
shl eax, cl
test ebx, eax
je 0x4c4256
lea eax, [esi + 0x41]
push eax
lea eax, [ebp - 4]
push str._c:__
push eax
call fcn.0042a016
mov edi, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 4]
push eax
call fcn.0043553a
inc esi
cmp esi, 0x1a
jb 0x4c422a
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401239
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4c426e
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5438cc]
and dword [ebp - 8], 0
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
mov ecx, 0x5438cc
call dword [eax + 0xc]
mov ebx, eax
mov esi, 0x227
add ebx, 0x10
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCR80.dll_malloc]
mov edi, eax
test edi, edi
pop ecx
je 0x4c432b
push esi
push 0
push edi
call sub.MSVCR80.dll_memset
mov eax, dword [ebp + 8]
mov dword [edi + 4], esi
movzx eax, word [eax]
push eax
lea eax, [ebp - 4]
push str.._c:
push eax
call fcn.0042a016
mov ebx, dword [ebp - 4]
add esp, 0x18
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4c4323
push esi
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
push dword [edi + 4]
lea ecx, [ebp - 0x18]
push edi
push 0xc
push ecx
push 0x2d1400
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4c431a
mov eax, dword [edi + 0x1c]
mov dword [ebp - 8], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
lea eax, [ebx - 0x10]
call fcn.00401239
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4c433d
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
lea eax, [ebp - 0x38]
xor edi, edi
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
call fcn.004c3d52
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call fcn.004c4166
lea esi, [ebp - 0x18]
call fcn.0043fd42
xor esi, esi
cmp dword [ebp - 0x34], edi
je 0x4c43c5
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x34]
sar eax, 2
cmp esi, eax
jae 0x4c43c5
lea edi, [ebp - 0x38]
call fcn.00438c92
xor ecx, ecx
inc ecx
lea edx, [ebp + 8]
call fcn.0042a06a
lea eax, [ebp + 8]
call fcn.00407211
lea eax, [ebp + 8]
push eax
lea edi, [ebp - 0xc]
lea ebx, [ebp - 0x18]
call fcn.00467035
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00401239
inc esi
xor edi, edi
jmp 0x4c4379
xor esi, esi
cmp dword [ebp - 0x24], edi
je 0x4c4413
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
sar eax, 2
cmp esi, eax
jae 0x4c4413
lea edi, [ebp - 0x28]
call fcn.00438c92
xor ecx, ecx
inc ecx
lea edx, [ebp + 8]
call fcn.0042a06a
lea eax, [ebp + 8]
call fcn.00407211
lea eax, [ebp + 8]
push eax
lea edi, [ebp - 0xc]
lea ebx, [ebp - 0x18]
call fcn.00467035
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00401239
inc esi
xor edi, edi
jmp 0x4c43c7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], edi
mov esi, dword [ebp - 0x14]
je 0x4c4431
lea eax, [ebp - 0x18]
cmp dword [ebp - 8], eax
je 0x4c4437
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [ebp - 4], esi
je 0x4c4482
push 0x5108d8
lea esi, [ebp - 8]
call fcn.0045e294
lea ecx, [ebp + 8]
call fcn.0042a029
mov ebx, dword [ebp + 8]
pop ecx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c4470
call fcn.0045e294
mov edi, dword [ebp + 0xc]
push eax
call fcn.0043553a
xor edi, edi
lea eax, [ebx - 0x10]
call fcn.00401239
lea esi, [ebp - 8]
call fcn.0043fe4c
jmp 0x4c4421
lea esi, [ebp - 0x18]
call fcn.00467003
lea esi, [ebp - 0x28]
call fcn.0043566d
lea esi, [ebp - 0x38]
call fcn.0043566d
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 8
Function at 0x4c5c8e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x4c5d34
push edi
push 1
push esi
call dword [sym.imp.MSVCR80.dll_calloc]
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x4c5d31
push edi
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4c5d29
and dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x51c010
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4c5d29
cmp dword [ebp - 4], 0
je 0x4c5d29
push 0x10
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
test esi, esi
pop ecx
je 0x4c5d31
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
mov dword [esi + 8], ecx
lea ecx, [ebp - 0x10]
push ecx
mov dword [esi + 4], eax
lea eax, [esi + 0xc]
and dword [eax], 0
push eax
push 0x4da9e4
push edi
mov dword [esi], edi
call sub.VERSION.dll_VerQueryValueW
mov eax, esi
jmp 0x4c5d33
push edi
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x4c5d37
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov ax, word [esi + 4]
push ebx
mov word [ebp - 0x14], ax
mov ax, word [esi + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [ebp - 0x12], ax
call edi
mov word [ebp - 0x10], ax
mov ax, word [esi + 8]
mov word [ebp - 0xe], ax
mov ax, word [esi + 4]
mov word [ebp - 0xc], ax
mov word [ebp - 0xa], 0x4e4
call edi
mov word [ebp - 8], ax
mov word [ebp - 6], 0x4e4
xor edi, edi
mov ebx, 0x104
movzx eax, word [ebp + edi*2 - 0x14]
movzx ecx, word [ebp + edi*2 - 0x12]
push dword [ebp + 8]
inc edi
movzx ecx, cx
push ecx
movzx eax, ax
push eax
push str.StringFileInfo_04x_04x_ls
push ebx
lea eax, [ebp - 0x220]
push ebx
push eax
inc edi
call dword [sym.imp.MSVCR80.dll__snwprintf_s]
and dword [ebp - 4], 0
add esp, 0x1c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x220]
push eax
push dword [esi]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4c5dd9
cmp dword [ebp - 4], 0
jne 0x4c5de6
cmp edi, 8
jb 0x4c5d87
xor al, al
pop edi
pop ebx
leave
ret 8
push dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__]
mov al, 1
jmp 0x4c5de0
Function at 0x4c699f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
call fcn.0042978b
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push 0x52270c
push eax
call dword [sym.imp.MSVCR80.dll_fopen]
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x4c6a3a
mov esi, dword [sym.imp.MSVCR80.dll_fseek]
push edi
push 2
push 0
push ebx
call esi
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.MSVCR80.dll_fgetpos]
mov eax, dword [ebp - 8]
inc eax
push eax
call fcn.004ce6ea
mov edi, eax
add esp, 0x18
test edi, edi
je 0x4c6a31
mov eax, dword [ebp - 8]
inc eax
push eax
push 0
push edi
call sub.MSVCR80.dll_memset
push 0
push 0
push ebx
call esi
push ebx
push dword [ebp - 8]
push 1
push edi
call dword [sym.imp.MSVCR80.dll_fread]
mov ecx, dword [ebp - 8]
add esp, 0x28
xor edx, edx
cmp eax, ecx
jne 0x4c6a31
cmp edx, dword [ebp - 4]
jne 0x4c6a31
push edi
push dword [ebp + 8]
mov byte [ecx + edi], dl
call fcn.00415b64
push ebx
call dword [sym.imp.MSVCR80.dll_fclose]
pop ecx
pop edi
mov eax, dword [ebp + 8]
pop esi
pop ebx
leave
ret

Function at 0x4c6a41
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
xor esi, esi
push 0x206
lea eax, [ebp - 0x21a]
push esi
push eax
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov word [ebp - 0x21c], si
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp dword [ebp + 8], esi
je 0x4c6b4c
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, esi
mov dword [ebp - 4], eax
je 0x4c6b4c
push edi
push eax
call fcn.004ce6ea
push dword [ebp - 4]
mov edi, eax
push esi
push edi
call sub.MSVCR80.dll_memset
add esp, 0x10
cmp edi, esi
je 0x4c6b4b
push edi
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4c6b44
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x51c010
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4c6b44
test dword [ebp - 8], 0xfffffffc
jbe 0x4c6b44
mov eax, dword [ebp - 0x14]
lea eax, [eax + esi*4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x21c]
push str.StringFileInfo_04x_04xFileDescription
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x4c6b36
mov eax, dword [ebp - 8]
inc esi
shr eax, 2
cmp esi, eax
jb 0x4c6aec
jmp 0x4c6b44
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call fcn.0040127c
xor ebx, ebx
inc ebx
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4c72cb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0x10
push 0
push ebx
mov esi, eax
call dword [sym.imp.MSVCR80.dll_wcstol]
add esp, 0xc
mov ecx, 0x5438cc
mov dword [ebp + 8], eax
call fcn.0040121e
push 0x104
call fcn.004015aa
push eax
push 1
push 0
push dword [ebp + 8]
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov eax, dword [esi]
test eax, eax
je 0x4c7318
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
mov edx, esi
call fcn.00401354
lea eax, [ebx - 0x10]
call fcn.00401239
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4c732f
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov ecx, 0x5438cc
call fcn.0040121e
mov edi, dword [esp + 0x18]
push edi
push 0x104
push 0x105
call fcn.004015aa
mov ebx, dword [esp + 0x1c]
push eax
push 0x50edd8
push ebx
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi]
test eax, eax
je 0x4c7375
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
mov edx, esi
call fcn.00401354
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.00401239
lea eax, [ebx - 0x10]
call fcn.00401239
lea eax, [edi - 0x10]
call fcn.00401239
pop edi
mov eax, esi
pop esi
pop ebx
ret 0xc

Function at 0x4c7c54
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
call fcn.00456e48
mov esi, str.datagamesdb_dc_web.dat
push esi
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0042a029
pop ecx
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401239
test edi, edi
lea eax, [ebp - 4]
je 0x4c7c95
push esi
jmp 0x4c7c9a
push str.datagamesdb_dc.dat
push eax
call fcn.00407371
mov eax, dword [0x5438cc]
mov ecx, 0x5438cc
call dword [eax + 0xc]
mov esi, dword [ebp - 4]
add eax, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
call fcn.004c7cec
mov edi, dword [ebp - 8]
mov ebx, dword [ebp + 8]
push edi
call fcn.00494247
xor ebx, ebx
test eax, eax
je 0x4c7cd3
inc ebx
lea eax, [edi - 0x10]
call fcn.00401239
lea eax, [esi - 0x10]
call fcn.00401239
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x4c7cec
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
xor ebx, ebx
push edi
xor edi, edi
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
je 0x4c7e2e
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4c7e2e
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
inc eax
push eax
call fcn.004ce6ea
mov esi, eax
cmp esi, ebx
pop ecx
je 0x4c7e24
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c7e1d
mov edi, dword [ebp - 4]
push str.D2CB2E36_DFE1_4b37_9811_9B49C74DCC11
call sub.MSVCR80.dll_strlen
pop ecx
xor ecx, ecx
xor edx, edx
cmp edi, ebx
mov dword [ebp - 8], eax
jbe 0x4c7d93
mov al, byte [ecx + str.D2CB2E36_DFE1_4b37_9811_9B49C74DCC11]
xor byte [edx + esi], al
inc ecx
cmp ecx, dword [ebp - 8]
jb 0x4c7d8e
xor ecx, ecx
inc edx
cmp edx, edi
jb 0x4c7d7d
mov eax, dword [ebp - 4]
mov byte [esi + eax], bl
lea eax, [ebp - 0x108]
push 0xfde9
mov dword [ebp - 0x10c], eax
push esi
lea eax, [ebp - 0x10c]
push eax
call fcn.00429683
push dword [ebp - 0x10c]
push dword [ebp + 0xc]
call fcn.0040127c
lea eax, [ebp - 0x108]
cmp dword [ebp - 0x10c], eax
je 0x4c7de0
push dword [ebp - 0x10c]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
inc ecx
lea edx, [ebp - 8]
call fcn.0042a06a
push 0x526ba8
push eax
call fcn.004249a1
mov ebx, eax
mov eax, dword [ebp - 8]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.00401239
test bl, bl
je 0x4c7e1a
push dword [ebp + 0xc]
xor eax, eax
call fcn.0044a29f
xor edi, edi
inc edi
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret 8
Function at 0x4c7e36
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5438cc]
sub esp, 0x20
push ebx
push esi
push edi
mov ecx, 0x5438cc
call dword [eax + 0xc]
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov esi, str.search_file
push esi
add ebx, 0x10
call fcn.00493281
test eax, eax
je 0x4c7f60
mov ecx, dword [ebp + 0xc]
push esi
lea eax, [ebp - 0x1c]
call fcn.004932a9
call fcn.00493259
push eax
lea eax, [ebp - 0xc]
call fcn.004014ce
mov eax, dword [ebp - 0xc]
xor edi, edi
cmp dword [eax - 0xc], edi
je 0x4c7f55
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.004c78a4
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 0x1c], edi
je 0x4c7f4d
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
sar eax, 2
cmp esi, eax
jae 0x4c7f4d
lea edi, [ebp - 0x20]
call fcn.00438c92
mov eax, dword [eax]
sub eax, 0x10
call fcn.0042a0e1
add eax, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
call fcn.00497076
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
lea edi, [ebp - 0x10]
call fcn.004c67cb
mov edi, dword [ebp - 0x10]
pop ecx
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea eax, [edi - 0x10]
je 0x4c7f19
call fcn.00401239
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401239
inc esi
xor edi, edi
jmp 0x4c7ea9
call fcn.00401239
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401239
lea esi, [ebp - 0x20]
call fcn.0043566d
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401239
lea eax, [ebx - 0x10]
call fcn.00401239
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
lea esi, [ebp - 0x20]
call fcn.0043566d
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401239
mov eax, dword [ebp + 0xc]
mov edi, str.search_ext
push edi
call fcn.00493281
test eax, eax
je 0x4c801d
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x4c7f8e
push eax
mov eax, dword [ebp + 8]
add eax, 0x20
push eax
call fcn.0040127c
jmp 0x4c7f99
mov esi, dword [ebp + 8]
add esi, 0x20
call fcn.00401314
mov ecx, dword [ebp + 0xc]
push edi
lea eax, [ebp - 0x1c]
call fcn.004932a9
call fcn.00493259
push eax
lea eax, [ebp + 0xc]
call fcn.004014ce
push 0x50edd8
push 0x51b23c
lea eax, [ebp + 0xc]
push eax
call fcn.00407090
mov esi, dword [ebp + 0xc]
cmp dword [esi - 0xc], 0
je 0x4c8015
push esi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
add eax, 0x1d
push eax
call fcn.004c840a
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.MSVCR80.dll__wtoi]
test eax, eax
pop ecx
lea eax, [edi - 0x10]
jne 0x4c8010
call fcn.00401239
lea eax, [esi - 0x10]
call fcn.00401239
xor esi, esi
lea eax, [ebx - 0x10]
call fcn.00401239
mov eax, esi
jmp 0x4c7f46
call fcn.00401239
lea eax, [esi - 0x10]
call fcn.00401239
xor esi, esi
inc esi
jmp 0x4c8001
Function at 0x4c8022
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
and dword [ebp - 8], 0
push edi
mov edi, 0x5190a4
push edi
call fcn.00493281
test eax, eax
je 0x4c80fc
mov eax, dword [0x5438cc]
push ebx
push esi
mov ecx, 0x5438cc
call dword [eax + 0xc]
mov ecx, dword [ebp + 8]
and dword [ebp - 0xc], 0
mov esi, eax
add esi, 0x10
push edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], esi
call fcn.004932a9
call fcn.00493259
push eax
lea eax, [ebp + 8]
call fcn.004014ce
mov ebx, dword [ebp + 8]
cmp dword [ebx - 0xc], 0
je 0x4c80ea
push 0x50f508
lea eax, [ebp - 8]
push eax
lea edi, [ebp - 0xc]
lea eax, [ebp + 8]
call fcn.0041b843
lea edi, [ebp - 4]
call fcn.0042a0a0
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401239
mov eax, edi
call fcn.00497076
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
je 0x4c80dd
mov eax, edi
push eax
mov eax, dword [ebp + 0xc]
lea edi, [ebp - 0x10]
call fcn.004c67cb
mov edi, dword [ebp - 0x10]
pop ecx
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea eax, [edi - 0x10]
je 0x4c8104
call fcn.00401239
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4c8081
mov dword [ebp - 8], 1
lea eax, [ebx - 0x10]
call fcn.00401239
lea eax, [esi - 0x10]
call fcn.00401239
pop esi
pop ebx
mov eax, dword [ebp - 8]
pop edi
leave
ret 8
and dword [ebp - 8], 0
call fcn.00401239
jmp 0x4c80ea

Function at 0x4c8b00
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5438cc]
push ebx
push esi
mov esi, 0x5438cc
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [0x5438cc]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [0x5438cc]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea ebx, [ebp - 0xc]
call fcn.0049e41d
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 0x14]
call fcn.00496e16
pop ecx
lea ecx, [ebp - 0x10]
call fcn.004297a0
pop ecx
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401239
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401239
test esi, esi
je 0x4c8bbf
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 0x10]
call fcn.00496e16
pop ecx
lea ecx, [ebp - 0x14]
call fcn.004297a0
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401239
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401239
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401239
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401239
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401239
pop esi
pop ebx
leave
ret