joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4073f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44e028
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47b018]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push 0x47bea0
mov dword [esp + 0x1c], 0x47bea0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x1c], 1
mov ebx, dword [esp + 0x38]
add ebx, 0x7c
mov dword [esp + 0x30], 0
mov edi, dword [ebx + 0xc]
cmp edi, dword [ebx + 0x10]
jbe 0x40744c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [ebx]
mov ebp, edi
mov edi, dword [ebx + 0x10]
cmp dword [ebx + 0xc], edi
jbe 0x40745e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebx]
test esi, esi
je 0x407468
cmp esi, eax
je 0x40746e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebp, edi
je 0x4074c0
mov eax, dword [esp + 0x3c]
mov edi, dword [eax]
test esi, esi
jne 0x4074b8
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x40748f
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
push edi
mov ecx, ebp
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CompareNoCase]
test eax, eax
je 0x4074c0
test esi, esi
jne 0x4074bc
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x4074b3
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
add ebp, 4
jmp 0x407450
mov eax, dword [esi]
jmp 0x407484
mov eax, dword [esi]
jmp 0x4074a8
mov edi, dword [ebx + 0x10]
cmp dword [ebx + 0xc], edi
jbe 0x4074ce
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebx]
test esi, esi
je 0x4074d8
cmp esi, eax
je 0x4074de
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebp, edi
je 0x4074ef
push ebp
push esi
lea ecx, [esp + 0x28]
push ecx
push ebx
call fcn.0040a840
push 0x47bea0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x4089d0
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4089ee
lea ecx, [esp + 4]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor al, al
ret 4
mov ecx, dword [esp + 4]
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4089df
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 4]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov al, 1
ret 4
Function at 0x40df20
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0
mov dword [esi], vtable.CDelayedNotificationThread.0
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x47be00
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x40df7d
push 0x47be08
push 0
push esi
push 0x40e120
push 0
push 0
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
mov dword [0x47be04], eax
test eax, eax
je 0x40df7d
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, esi
ret

Function at 0x40e0a0
Capabilities:
Create thread

Disassembly:
push 0x47bdfc
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [0x47be04], 0
jne 0x40e0f2
cmp dword [0x47be08], 0
jne 0x40e0f2
push 0x47be08
push 0
push 0x47bee8
push 0x40e120
push 0
push 0
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
mov dword [0x47be04], eax
test eax, eax
je 0x40e0f2
mov eax, dword [0x47beec]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x47bdfc]
ret
Function at 0x40f760
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x44ee9b
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47b018]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x24]
mov edi, ecx
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x40f958
cmp dword [esp + 0x2c], 0
je 0x40f958
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f7b3
test al, 0x10
jne 0x40f7c8
push 0xa1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0xa1
jmp 0x40f965
push ebp
mov esi, edi
call fcn.0040f6d0
test eax, eax
je 0x40f7da
push ebp
call fcn.0040fb20
call fcn.0040f290
mov eax, dword [ebp]
push 0
push 0x42000000
push 3
push 0
push 7
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40f815
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x40f965
push 0x1060
call sub.mfc90u.dll_new
add esp, 4
mov dword [esp + 0x24], eax
xor esi, esi
mov dword [esp + 0x1c], esi
cmp eax, esi
je 0x40f84d
mov ecx, dword [edi + 0x48]
movzx edx, byte [edi + 0x44]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push ecx
mov ecx, dword [esp + 0x34]
push ebx
push eax
mov edx, ebp
call fcn.004101b0
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
test esi, esi
jne 0x40f870
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esi + 0xe]
jmp 0x40f965
mov edx, dword [edi + 4]
push 0
push esi
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [edi + 4], eax
test eax, eax
jne 0x40f8aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.00410320
push esi
call sub.mfc90u.dll_delete
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
jmp 0x40f965
cmp dword [edi + 8], 0
jne 0x40f8ff
push 0
push 0
push 0
push 0
push edi
push 0x410540
call sub.mfc90u.dll_AfxBeginThread
test eax, eax
jne 0x40f8e6
push esi
call fcn.00410320
push esi
call sub.mfc90u.dll_delete
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 4
call esi
test eax, eax
je 0x40f951
call esi
jmp 0x40f965
mov ecx, dword [eax + 0x2c]
mov dword [edi + 8], ecx
mov edx, dword [eax + 0x30]
mov dword [edi + 0xc], edx
mov dword [eax + 0x28], 1
cmp dword [edi + 8], 0
je 0x40f946
mov eax, dword [edi + 4]
push eax
call fcn.00410480
mov ebx, eax
test ebx, ebx
je 0x40f928
push esi
call fcn.00410320
push esi
call sub.mfc90u.dll_delete
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
jmp 0x40f965
mov ecx, dword [esp + 0x2c]
call fcn.0040f470
mov ecx, esi
mov edx, edi
call fcn.0040fe50
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x40f965
push 0xa4
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0xa4
jmp 0x40f965
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0x57
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x410ab0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x47b018]
xor eax, esp
mov dword [esp + 0x114], eax
cmp byte [0x47bf40], 0
jne 0x410b08
lea eax, [esp]
push eax
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
mov byte [0x47bf40], 1
sbb eax, eax
inc eax
mov dword [0x47bf44], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0041d40a
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
mov eax, dword [0x47bf44]
xor ecx, esp
call fcn.0041d40a
add esp, 0x118
ret

Function at 0x4110f0
Capabilities:
Create thread
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x44f869
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x47b018]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push 0x4506a8
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x3c], 0
call fcn.00410f20
mov ecx, eax
call fcn.00441260
cmp al, 1
lea ecx, [esp + 0x14]
sete bl
mov dword [esp + 0x38], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push 0x46dbd0
push str.d:MyServicesmemstatus.txt
call dword [sym.imp.MSVCR90.dll__wfopen]
add esp, 8
mov esi, eax
test bl, bl
je 0x411178
test esi, esi
je 0x41117c
push str.open_DB_Success
jmp 0x41118e
test esi, esi
jne 0x411189
push str.Log_file_open_failed.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4111a7
push str.open_DB_Failed
push 0x46dc3c
push esi
call dword [sym.imp.MSVCR90.dll_fwprintf]
add esp, 0xc
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
call fcn.00411c60
call fcn.00411a30
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x47bef1
push 0x411ab0
push 0
push 0
mov dword [esp + 0x28], 0
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x4114d0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [ebp + 0x10]
sub esp, 0x44
push ebx
push esi
push edi
call fcn.00411410
test al, al
je 0x4115fc
push str.CORELMONITORRunOnlyOneInstance
xor edi, edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x4115fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4115fc
call fcn.004110f0
mov esi, dword [ebp + 8]
push 0x7f00
push edi
mov dword [esp + 0x30], 3
mov dword [esp + 0x34], 0x411840
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], edi
call dword [sym.imp.USER32.dll_LoadCursorW]
push edi
mov dword [esp + 0x44], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], str.COREL_MONITOR
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x41157e
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push edi
push esi
push edi
push edi
push SysReAllocStringLen
push SysReAllocStringLen
push SysReAllocStringLen
push SysReAllocStringLen
push 0xcf0000
push 0x46dcf4
push str.COREL_MONITOR
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push edi
push edi
push edi
lea ecx, [esp + 0x18]
push ecx
call esi
test eax, eax
je 0x4115ef
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea esp, [esp]
lea edx, [esp + 0xc]
push edx
call edi
lea eax, [esp + 0xc]
push eax
call ebx
push 0
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
call esi
test eax, eax
jne 0x4115d0
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x411c60
Capabilities:
Create thread
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x44f831
mov eax, dword fs:[0]
push eax
sub esp, 0x3bc
mov eax, dword [0x47b018]
xor eax, esp
mov dword [esp + 0x3b8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47b018]
xor eax, esp
push eax
lea eax, [esp + 0x3d0]
mov dword fs:[0], eax
call fcn.00410b30
push eax
call fcn.00401c20
lea ecx, [esp + 0x34]
call fcn.00439d70
lea ecx, [esp + 0x174]
mov dword [esp + 0x3d8], 0
call fcn.00445780
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x178]
mov byte [esp + 0x3dc], 1
call fcn.00446a60
lea ecx, [esp + 0x34]
call fcn.00439bf0
test eax, eax
jle 0x411e02
mov edi, dword [sym.imp.MSVCR90.dll__wfopen]
mov ebp, dword [sym.imp.MSVCR90.dll_fwprintf]
mov ebx, dword [sym.imp.MSVCR90.dll_fclose]
mov dword [esp + 0x18], eax
jmp 0x411d10
push 0x46dbd0
push str.d:MyServicesmemstatus.txt
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x411d32
push str.Log_file_open_failed.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x411d48
push str.have_EVENT
push 0x46dc3c
push esi
call ebp
add esp, 0xc
push esi
call ebx
add esp, 4
lea ecx, [esp + 0x21c]
call fcn.0043cca0
lea ecx, [esp + 0x21c]
push ecx
lea ecx, [esp + 0x38]
mov byte [esp + 0x3dc], 2
call fcn.00439ef0
lea ecx, [esp + 0x21c]
call fcn.0043b020
cmp eax, 1
je 0x411dda
lea ecx, [esp + 0x21c]
call fcn.0043b0c0
cmp dword [eax + 0x18], 8
jb 0x411d95
mov eax, dword [eax + 4]
jmp 0x411d98
add eax, 4
push 0
push eax
call dword [sym.imp.MSVCR90.dll__waccess]
add esp, 8
cmp eax, 0xffffffff
je 0x411dda
lea ecx, [esp + 0x21c]
call fcn.00441e00
mov esi, eax
call fcn.00410b30
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x2c]
push ecx
add eax, 0x94
push eax
mov dword [esp + 0x2c], esi
mov byte [esp + 0x30], 0
call fcn.0040a8c0
lea ecx, [esp + 0x34]
call fcn.00439c90
lea ecx, [esp + 0x21c]
mov byte [esp + 0x3d8], 1
call fcn.0043cd90
sub dword [esp + 0x18], 1
jne 0x411d10
call fcn.00410b30
mov ecx, eax
call fcn.00407510
lea edx, [esp + 0x1c]
push edx
push 0
push 0x47bef1
push 0x412640
push 0
push 0
mov dword [esp + 0x34], 0
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
lea ecx, [esp + 0x174]
mov byte [esp + 0x3d8], 0
call fcn.00445660
lea ecx, [esp + 0x34]
mov dword [esp + 0x3d8], 0xffffffff
call fcn.00439920
mov ecx, dword [esp + 0x3d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3b8]
xor ecx, esp
call fcn.0041d40a
add esp, 0x3c8
ret

Function at 0x41d40a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47b018]
jne 0x41d414
repz ret
jmp fcn.0041d91e
Function at 0x41e4f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x47b018]
xor eax, ebp
mov dword [ebp - 8], eax
push 0x11c
push 0
lea eax, [ebp - 0x128]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41e55b
mov dword [ebp - 0x128], 0x114
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x41e55b
xor eax, eax
jmp 0x41e5e6
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 1
je 0x41e5ab
cmp dword [ebp - 0x12c], 2
je 0x41e57b
jmp 0x41e5e4
cmp dword [ebp - 0x124], 4
ja 0x41e58b
mov eax, 4
jmp 0x41e5e6
cmp dword [ebp - 0x124], 5
jne 0x41e5a4
cmp dword [ebp - 0x120], 0
jne 0x41e5a4
mov eax, 5
jmp 0x41e5e6
mov eax, 6
jmp 0x41e5e6
cmp dword [ebp - 0x124], 4
jne 0x41e5c4
cmp dword [ebp - 0x120], 0
jne 0x41e5c4
mov eax, 1
jmp 0x41e5e6
cmp dword [ebp - 0x124], 4
jne 0x41e5dd
cmp dword [ebp - 0x120], 0xa
jne 0x41e5dd
mov eax, 2
jmp 0x41e5e6
mov eax, 3
jmp 0x41e5e6
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041d40a
mov esp, ebp
pop ebp
ret
Function at 0x41f400
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449073
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x47b018]
xor eax, ebp
mov dword [ebp - 0x24], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44c], ecx
mov eax, 0x47bf28
lea esi, [ebp - 0x1c]
call fcn.0040b400
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x44c]
push eax
push str._s_bck
lea ecx, [ebp - 0x434]
push ecx
call dword [sym.imp.MSVCR90.dll__swprintf]
add esp, 0xc
mov edx, dword [ebp - 0x44c]
mov eax, dword [ebp - 0x44c]
mov ecx, dword [edx + 0x218]
imul ecx, dword [eax + 0x21c]
mov dword [ebp - 0x14], ecx
push 1
mov edx, dword [ebp - 0x14]
push edx
call fcn.0041e950
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x434]
push ecx
mov ecx, dword [ebp - 0x44c]
call fcn.0041eba0
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x44c]
cmp dword [edx + 0x210], 0
je 0x41f515
mov eax, dword [ebp - 0x44c]
mov ecx, dword [eax + 0x210]
mov dword [ebp - 0x440], ecx
mov edx, dword [ebp - 0x440]
mov dword [ebp - 0x43c], edx
cmp dword [ebp - 0x43c], 0
je 0x41f4fb
push 1
mov eax, dword [ebp - 0x43c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x43c]
mov eax, dword [edx + 0x3c]
call eax
mov dword [ebp - 0x450], eax
jmp 0x41f505
mov dword [ebp - 0x450], 0
mov ecx, dword [ebp - 0x44c]
mov dword [ecx + 0x210], 0
mov edx, dword [ebp - 0x44c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
mov eax, dword [ebp - 0x44c]
push eax
lea ecx, [ebp - 0x434]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x438], eax
mov edx, dword [ebp - 0x44c]
push edx
call fcn.00420250
add esp, 4
push 8
call sub.mfc90u.dll_new
add esp, 4
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0
je 0x41f582
push 2
mov eax, dword [ebp - 0x44c]
push eax
mov ecx, dword [ebp - 0x448]
call fcn.0041e260
mov dword [ebp - 0x454], eax
jmp 0x41f58c
mov dword [ebp - 0x454], 0
mov ecx, dword [ebp - 0x454]
mov dword [ebp - 0x444], ecx
mov edx, dword [ebp - 0x44c]
mov eax, dword [ebp - 0x444]
mov dword [edx + 0x210], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x44c]
mov ecx, dword [eax + 0x234]
push ecx
call fcn.0041e760
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x41f5e0
mov edx, dword [ebp - 0x10]
push edx
call fcn.0041e8c0
add esp, 4
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x44c]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x220], ecx
mov edx, dword [ebp - 0x44c]
mov dword [edx + 0x224], 0
mov eax, dword [ebp - 0x44c]
mov dword [eax + 0x228], 0
mov ecx, dword [ebp - 0x44c]
mov dword [ecx + 0x22c], 0
mov edx, dword [ebp - 0x44c]
mov dword [edx + 0x214], 0xfffffffe
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1c]
call fcn.0040b420
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.0041d40a
mov esp, ebp
pop ebp
ret
Function at 0x420170
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x47b018]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.MSVCR90.dll_wcscpy]
add esp, 8
push 0x450790
lea edx, [ebp - 0x220]
push edx
call fcn.0041cfd0
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4201c2
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x420241
mov ecx, dword [ebp - 0xc]
add ecx, 4
mov dword [ebp - 0xc], ecx
push 0x450798
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041cfd0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x420232
mov eax, dword [ebp - 8]
mov cx, word [eax]
mov word [ebp - 4], cx
xor edx, edx
mov eax, dword [ebp - 8]
mov word [eax], dx
push 0
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
mov ax, word [ebp - 4]
mov word [edx], ax
mov ecx, dword [ebp - 8]
add ecx, 2
mov dword [ebp - 0xc], ecx
push 0x45079c
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041cfd0
add esp, 8
mov dword [ebp - 8], eax
jmp 0x4201df
push 0
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041d40a
mov esp, ebp
pop ebp
ret

Function at 0x420250
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
jne 0x42025e
xor eax, eax
jmp 0x420291
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
and ecx, 1
jne 0x42027a
mov eax, 1
jmp 0x420291
mov edx, dword [ebp - 4]
and edx, 0xfffffffe
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esp, ebp
pop ebp
ret

Function at 0x429520
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR90.dll__beginthread]
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x42954b
xor al, al
jmp 0x429555
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov dword [edx], eax
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x42f3e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xca8
mov eax, dword [0x47b018]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x82
push 0
lea eax, [ebp - 0x90]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x81
lea ecx, [ebp - 0x90]
push ecx
call fcn.0042f380
add esp, 8
xor edx, edx
mov word [ebp - 0x98], dx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xca8], eax
cmp dword [ebp - 0xca8], 1
je 0x42f44f
cmp dword [ebp - 0xca8], 2
je 0x42f47a
cmp dword [ebp - 0xca8], 3
je 0x42f4a5
jmp 0x42f4d0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x90]
push eax
push str._s_t_Error____s_:__s____s:__d__n
push 0x401
lea ecx, [ebp - 0x498]
push ecx
call dword [sym.imp.MSVCR90.dll__snwprintf]
add esp, 0x18
jmp 0x42f4d2
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x90]
push ecx
push str._s_t_Warning____s_:__s____s:__d__n
push 0x401
lea edx, [ebp - 0x498]
push edx
call dword [sym.imp.MSVCR90.dll__snwprintf]
add esp, 0x18
jmp 0x42f4d2
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x90]
push edx
push str._s_t_Info____s_:__s_n
push 0x401
lea eax, [ebp - 0x498]
push eax
call dword [sym.imp.MSVCR90.dll__snwprintf]
add esp, 0x18
jmp 0x42f4d2
jmp 0x42f52b
lea ecx, [ebp + 0x14]
mov dword [ebp - 0xca4], ecx
push 0x802
push 0
lea edx, [ebp - 0xca0]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0xca4]
push eax
lea ecx, [ebp - 0x498]
push ecx
push 0x801
lea edx, [ebp - 0xca0]
push edx
call dword [sym.imp.MSVCR90.dll__vsnwprintf]
add esp, 0x10
lea eax, [ebp - 0xca0]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0xca4], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d40a
mov esp, ebp
pop ebp
ret