joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4172d8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x425458]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408115
mov dword [ebp - 0x14], eax
cmp dword [0x462ee8], esi
jne 0x4173cb
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x417358
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4174ab
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4174ab
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4174ab
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x462ee8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x462eec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x462ef0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x462ef8], eax
test eax, eax
je 0x4173c8
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x462ef4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4173f0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4173e3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x417405
push 4
pop eax
jmp 0x4174ad
cmp dword [ebp - 0x14], esi
je 0x417405
push dword [0x462ee8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4173ea
mov eax, dword [0x462ef4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x417463
cmp dword [0x462ef8], edi
je 0x417463
push eax
call ebx
push dword [0x462ef8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x417463
test eax, eax
je 0x417463
call ecx
test eax, eax
je 0x417458
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x417458
test byte [ebp - 8], 1
jne 0x417463
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x417493
mov eax, dword [0x462eec]
cmp eax, edi
je 0x417490
push eax
call ebx
test eax, eax
je 0x417490
call eax
mov esi, eax
test esi, esi
je 0x417490
mov eax, dword [0x462ef0]
cmp eax, edi
je 0x417490
push eax
call ebx
test eax, eax
je 0x417490
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x462ee8]
call ebx
test eax, eax
je 0x4174ab
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4174ad
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004070bf
mov esp, ebp
pop ebp
ret
Function at 0x4010e7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x36c
push ebx
push esi
push edi
push 0x10
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x10], ebx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0xc]
push dword [ebp + 8]
stosd dword es:[edi], eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x36c]
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x15c]
push eax
call esi
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x15d], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x401154
lea eax, [ebp - 0x15c]
push 0x40cce4
push eax
call esi
lea eax, [ebp - 0x15c]
push str.TPIManagerConsole.exe
push eax
call esi
push 7
mov esi, str.TPIManagerConsole.exe__duck
pop ecx
lea edi, [ebp - 0x264]
rep movsd dword es:[edi], dword [esi]
push 0x3a
xor eax, eax
pop ecx
lea edi, [ebp - 0x248]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x36c]
push eax
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x264]
push ebx
push eax
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4011bf
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0xc], ebx
je 0x4011c9
push dword [ebp - 0xc]
call esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40129a
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
lea eax, [ebp - 0x68]
push 0x64
push eax
mov edi, 0x40416c
push 0x40cd30
push edi
call fcn.00403788
add esp, 0x10
test eax, eax
je 0x4013a6
xor ebx, ebx
cmp byte [ebp - 0x68], bl
je 0x4012ed
lea eax, [ebp - 0x25c]
push 0x63
push eax
lea eax, [ebp - 0x68]
push 0xffffffffffffffff
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x4013a6
mov esi, 0x12c
push ebx
lea eax, [ebp - 0x194]
push esi
push eax
push ebx
push str.Settings
push str.SettingsDir
push edi
call fcn.00403b15
add esp, 0x1c
test eax, eax
je 0x4013a6
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0xa
cmp eax, esi
jae 0x4013a6
lea eax, [ebp - 0x194]
push str.s_pid.dat
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push 0x80
push 2
push ebx
push ebx
lea eax, [ebp - 0x194]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4013a6
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [ebp - 4]
push ebx
push eax
shl esi, 1
lea eax, [ebp - 0x25c]
push esi
push eax
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], esi
jne 0x401399
push 1
pop eax
jmp 0x4013a8
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4013ad
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x370
push edi
push str.Rstrtmgr.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
mov dword [ebp - 8], eax
cmp eax, edi
je 0x401560
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RmStartSession
push eax
call esi
push str.RmRegisterResources
mov ebx, eax
push dword [ebp - 8]
call esi
push str.RmRestart
mov dword [ebp - 0x18], eax
push dword [ebp - 8]
call esi
push str.RmShutdown
mov dword [ebp - 0x1c], eax
push dword [ebp - 8]
call esi
push str.RmEndSession
mov dword [ebp - 0xc], eax
push dword [ebp - 8]
call esi
cmp ebx, edi
mov dword [ebp - 0x20], eax
je 0x401555
cmp dword [ebp - 0x18], edi
je 0x401555
cmp dword [ebp - 0x1c], edi
je 0x401555
cmp dword [ebp - 0xc], edi
je 0x401555
cmp eax, edi
je 0x401555
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 4]
push edi
push eax
call ebx
test eax, eax
jne 0x401555
lea eax, [ebp - 0x124]
push 0x104
push eax
push 0x40d5ac
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push SysStringLen
call fcn.004038f5
add esp, 0x14
test eax, eax
je 0x40154f
lea eax, [ebp - 0x124]
push 0x5c
push eax
call fcn.004033c8
pop ecx
cmp eax, edi
pop ecx
mov dword [ebp - 0x10], eax
jne 0x4014b7
lea eax, [ebp - 0x124]
push 0x2f
push eax
call fcn.004033c8
pop ecx
cmp eax, edi
pop ecx
mov dword [ebp - 0x10], eax
je 0x40154f
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call esi
push 0xc
pop ebx
sub ebx, eax
lea eax, [ebp - 0x124]
push eax
call esi
add ebx, eax
cmp ebx, 0x104
jae 0x40154f
mov eax, dword [ebp - 0x10]
push str.ieuser.exe
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x124]
push eax
call esi
mov esi, eax
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x370]
push eax
lea eax, [ebp - 0x124]
push esi
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp esi, eax
jne 0x40154f
lea eax, [ebp - 0x370]
push edi
mov dword [ebp - 0x14], eax
push edi
push edi
lea eax, [ebp - 0x14]
push edi
push eax
push 1
mov word [ebp + esi*2 - 0x370], di
push dword [ebp - 4]
mov dword [ebp - 0x10], edi
call dword [ebp - 0x18]
test eax, eax
jne 0x40154f
push edi
push 0x10
push dword [ebp - 4]
call dword [ebp - 0xc]
test eax, eax
jne 0x40154f
push edi
push edi
push dword [ebp - 4]
call dword [ebp - 0x1c]
push dword [ebp - 4]
call dword [ebp - 0x20]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret
Function at 0x40368b
Capabilities:
Create directory

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4036b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4036b3
xor eax, eax
ret
push 1
pop eax
ret

Function at 0x4038f5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 8]
push ebx
push eax
xor ebx, ebx
push 0x20019
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40391a
xor eax, eax
jmp 0x403977
push esi
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 4]
push ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
or edi, 0xffffffff
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x403965
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x18]
jge 0x403965
lea eax, [ebp + 0xc]
inc dword [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push dword [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, ebx
je 0x403965
mov eax, dword [ebp + 0x14]
mov byte [eax], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, ebx
pop edi
pop esi
sete al
pop ebx
leave
ret

Function at 0x403a5c
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x14], edi
jne 0x403aaf
lea eax, [ebp + 0xc]
push eax
push 0x2001f
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
je 0x403a91
xor ecx, ecx
cmp eax, 2
sete cl
mov eax, ecx
jmp 0x403b11
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, edi
je 0x403aaa
cmp eax, 2
je 0x403aaa
xor esi, esi
jmp 0x403af8
push 1
pop esi
jmp 0x403af8
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x403ad4
xor eax, eax
jmp 0x403b11
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x14]
push 1
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [ebp + 0x18], edi
je 0x403b06
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
ret
Function at 0x403d44
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
movsx eax, byte [esi]
push eax
call fcn.004032a7
test eax, eax
pop ecx
je 0x403da0
cmp byte [esi + 1], 0x3a
jne 0x403da0
cmp byte [esi + 2], 0x5c
jne 0x403da0
push 4
lea eax, [ebp - 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x403d88
cmp eax, 4
jne 0x403da0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x403da0
and eax, 0x10
cmp al, 0x10
je 0x403da0
push 1
pop eax
jmp 0x403da2
xor eax, eax
pop esi
leave
ret
Function at 0x411ffe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x20c
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, ecx
push esi
push edi
push str.FRAMEWORK
push 0x84
push dword [0x44239c]
call ebp
push eax
push dword [0x44239c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, eax
mov ecx, 0x44236c
call fcn.0040b3c0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [0x44236c]
xor edi, edi
test eax, eax
je 0x41205b
cmp word [eax], di
jne 0x41206a
mov edx, 0x438f30
mov ecx, 0x44236c
call fcn.0040b3c0
mov ecx, 0x442394
call fcn.0040b37e
lea edx, [esp + 0x10]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
lea eax, [eax + 2]
test cx, cx
jne 0x41207a
lea ecx, [esp + 0x10]
call fcn.0040755f
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
cmp ax, di
jne 0x412094
lea edi, [esp + 0x10]
sub ebx, esi
sub edi, 2
xor ecx, ecx
mov ax, word [edi + 2]
add edi, 2
cmp ax, cx
jne 0x4120aa
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00407388
push str.FRAMEWORK
test eax, eax
je 0x4120dd
push 0x85
jmp 0x4120e2
push 0x86
push dword [0x44239c]
call ebp
push eax
push dword [0x44239c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, 0x44238c
mov edx, eax
mov ecx, edi
call fcn.0040b3c0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [0x44238c]
test eax, eax
je 0x412125
xor ecx, ecx
cmp word [eax], cx
jne 0x412143
lea ecx, [esp + 0x10]
call fcn.00407388
mov ecx, edi
mov edx, 0x4390c0
test eax, eax
jne 0x41213e
mov edx, str.Cette_application_a_besoin_du_framework_WINDEV_pour_fonctionner._r_nIl_nest_pas_install
call fcn.0040b3c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
Function at 0x401f60
Capabilities:
Get disk size

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esi], 0
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x401f9d
pop esi
add esp, 8
ret
mov edx, dword [esp + 0x14]
mov dword [esi + 4], 0
mov eax, dword [esi + 4]
push eax
mov ecx, edx
push ecx
mov dword [esi], edx
mov edx, dword [esp + 0x18]
push 0
push edx
call fcn.004087f0
mov dword [esi], eax
mov ecx, dword [esi]
mov eax, edx
push eax
push ecx
mov dword [esi + 4], edx
mov edx, dword [esp + 0xc]
push 0
push edx
call fcn.004087f0
mov dword [esi], eax
mov dword [esi + 4], edx
mov eax, 1
pop esi
add esp, 8
ret

Function at 0x402090
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x11c]
test edi, edi
jne 0x4020b9
push 0x57
call fcn.0040bec0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret
cmp byte [edi], 0
mov esi, edi
je 0x40214c
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov al, byte [esi]
test al, al
je 0x4020e2
cmp al, 0x5c
je 0x4020e2
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4020d6
mov eax, esi
sub eax, edi
add eax, 2
cmp eax, 0x105
jb 0x4020f5
mov eax, 0x105
push eax
push edi
lea eax, [esp + 0x18]
push eax
call fcn.0040a2c0
cmp eax, 0x104
jae 0x4020ac
push 0
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40213f
call ebx
cmp eax, 0xb7
je 0x402127
cmp eax, 5
jne 0x4020ac
lea edx, [esp + 0x10]
push edx
call ebp
cmp eax, 0xffffffff
je 0x4020ac
test al, 0x10
je 0x4020ac
cmp byte [esi], 0
je 0x40214c
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4020d0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
Function at 0x402b90
Capabilities:
Delete file
Get file size
Move file

Disassembly:
push ecx
call fcn.00408250
mov eax, dword [0x42f880]
test eax, eax
je 0x402bbb
push 0
push 0
push eax
call fcn.004225a0
test eax, eax
jne 0x402bb1
mov dword [esp + 8], eax
mov dword [0x42f880], 0
mov eax, dword [0x430dbc]
xor ecx, ecx
test eax, eax
setle cl
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
dec ecx
and ecx, eax
mov esi, ecx
test esi, esi
jle 0x402c1b
test ebx, ebx
je 0x402be5
lea edx, [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test esi, esi
mov eax, esi
jne 0x402bf0
mov eax, 0x430db8
mov eax, dword [eax + 4]
xor ecx, ecx
test eax, eax
setle cl
dec ecx
and ecx, eax
mov edi, ecx
mov ecx, esi
call fcn.00417040
push 0
push 0xfffffffffffffffe
push str.._AUDELETENODE__
push esi
call fcn.00409b80
test edi, edi
mov esi, edi
jg 0x402bd7
mov eax, dword [0x42f994]
xor edx, edx
test eax, eax
setle dl
dec edx
and edx, eax
mov edi, edx
test edi, edi
jle 0x402d18
push ebp
test ebx, ebx
je 0x402ccf
lea esi, [edi + 0x10c]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x8000000
push 3
push 0
push 1
push 0x80000000
lea ebx, [edi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x402cd9
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebp
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x402d6d
cmp eax, 0xffffffff
je 0x402cd9
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x402cd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
mov ebp, eax
push ebp
push esi
push 0x7f
call fcn.00402630
push ebp
call fcn.00424790
push eax
push esi
push ebx
push str.ERROR:_unable_to_move_file__s_nto__s_n_s_n_n
call fcn.00424640
add esp, 0x24
mov dword [esp + 0x18], 0
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test edi, edi
mov eax, edi
jne 0x402ce4
mov eax, 0x42f990
mov eax, dword [eax + 4]
xor ecx, ecx
test eax, eax
setle cl
dec ecx
and ecx, eax
mov esi, ecx
mov ecx, edi
call fcn.00417040
push 0
push 0xfffffffffffffffe
push str.._AUMOVENODE__
push edi
call fcn.00409b80
test esi, esi
mov ebx, dword [esp + 0x18]
mov edi, esi
jg 0x402c35
pop ebp
mov eax, dword [0x42f778]
xor edx, edx
test eax, eax
setle dl
dec edx
and edx, eax
mov esi, edx
test esi, esi
jle 0x402d66
lea ecx, [ecx]
test esi, esi
mov eax, esi
jne 0x402d3b
mov eax, 0x42f774
mov eax, dword [eax + 4]
xor ecx, ecx
test eax, eax
setle cl
dec ecx
and ecx, eax
mov edi, ecx
mov ecx, esi
call fcn.00417040
push 0
push 0xfffffffffffffffe
push str.._AUCHECKNODE__
push esi
call fcn.00409b80
test edi, edi
mov esi, edi
jg 0x402d30
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push str.WARNING:_file__s_is_zero_length__ndid_not_move_it_n_n
call fcn.00424640
add esp, 8
jmp 0x402cd9
Function at 0x402d90
Capabilities:
Check if file exists
Copy file

Disassembly:
push esi
push edi
push 0x42f888
push 0x800
push 0x42ef70
call fcn.00407f10
add esp, 0xc
test eax, eax
jne 0x402db0
pop edi
pop esi
ret
push 0x42f888
call fcn.00402e70
push 0x42f888
mov esi, eax
call fcn.00402b40
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
test eax, eax
jne 0x402e18
push 0
push esi
push 0x42f888
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x402e18
call edi
cmp eax, 2
je 0x402e18
call edi
push 0
mov esi, eax
push esi
push str.temporary_archive_file
push 0x7f
call fcn.00402630
push esi
call fcn.00424790
push eax
push str.ERROR:_unable_to_create_temporary_patch_archive_n_s_n_n
call fcn.00424640
add esp, 0x1c
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [0x430df0]
push 0
push 1
push 0x4000
or eax, 0x20
push eax
push esi
call fcn.00420bd0
test eax, eax
mov dword [0x42f880], eax
jne 0x402e66
call edi
push 0
mov edi, eax
push edi
push str.temporary_archive_file
push 0x7e
call fcn.00402630
push edi
call fcn.00424790
push eax
push esi
push str.ERROR:_unable_to_create_archive__s_n_s_n_n
call fcn.00424640
add esp, 0x20
pop edi
xor eax, eax
pop esi
ret
pop edi
mov eax, 1
pop esi
ret

Function at 0x402e70
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x42f994]
sub esp, 0x104
xor ecx, ecx
test eax, eax
setle cl
push esi
push edi
mov edi, dword [esp + 0x110]
dec ecx
and ecx, eax
mov esi, ecx
test esi, esi
jle 0x402ebe
push 0x7fffffff
lea edx, [esi + 0x10c]
push edx
push edi
call fcn.0040a240
test eax, eax
je 0x402f42
test esi, esi
jne 0x402eb7
mov esi, 0x42f990
mov esi, dword [esi + 4]
test esi, esi
jg 0x402e94
push 0
push 0
push 2
mov ecx, 0x42f98c
call fcn.00403ec0
push 0x104
mov esi, eax
push edi
lea eax, [esi + 0x10c]
push eax
call fcn.0040a2c0
push 0x104
push edi
lea ecx, [esp + 0x10]
push ecx
call fcn.0040a2c0
lea edx, [esp + 8]
push edx
call fcn.00424d80
add esi, 8
push esi
push 0
push 0x42aa94
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x402f37
mov eax, dword [0x42a94c]
mov ecx, eax
push ecx
push str.PTC_d.TMP
inc eax
push 0x104
push esi
mov dword [0x42a94c], eax
call fcn.0040a6b0
add esp, 0x10
pop edi
mov eax, esi
pop esi
add esp, 0x104
ret
pop edi
lea eax, [esi + 8]
pop esi
add esp, 0x104
ret

Function at 0x403150
Capabilities:
Get common file path

Disassembly:
push 0x104
push 0x42faa0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x40317a
call fcn.00424820
push eax
push str.ERROR:_unable_to_get_Windows_Directory_n_s_n_n
call fcn.00424640
add esp, 8
xor eax, eax
ret
mov eax, 1
ret
Function at 0x403450
Capabilities:
Delete file
Delete registry key

Disassembly:
mov eax, dword [0x430dc0]
test eax, eax
push esi
jne 0x403483
mov al, byte [0x4303a8]
test al, al
mov esi, 0x4303a8
je 0x403483
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
push esi
call edi
push esi
call fcn.0040a460
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x403470
pop edi
pop esi
jmp 0x403490
sub esp, 0x204
push ebx
push ebp
push esi
push edi
push 0x200
lea eax, [esp + 0x18]
push eax
push 2
call fcn.00410c00
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
xor ebp, ebp
push ebp
lea edx, [esp + 0x20]
push edx
push 0x80000002
xor ebx, ebx
call edi
mov esi, eax
test esi, esi
jne 0x4034fb
mov eax, dword [str.Patch]
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov ebx, 1
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
test esi, esi
jne 0x4034f0
mov ebp, ebx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x80000001
call edi
mov edi, eax
test edi, edi
je 0x403556
push edi
call fcn.00424790
push eax
push str.WARNING:_couldnt_open_registry_key_for_deletion_n_s_n_n
call fcn.00424640
add esp, 0xc
test ebx, ebx
jne 0x40359f
test esi, esi
jne 0x403537
mov esi, edi
push esi
call fcn.00424790
push eax
push str.WARNING:_couldnt_open_registry_key_for_deletion_n_s_n_n
call fcn.00424640
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret
mov edx, dword [str.Patch]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edi, eax
test edi, edi
je 0x40358f
push edi
call fcn.00424790
push eax
push str.WARNING:_couldnt_delete_registry_key_n_s_n_n
call fcn.00424640
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40359f
mov ecx, dword [esp + 0x10]
push ecx
mov ebp, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
jne 0x4035bd
test esi, esi
jne 0x4035a9
mov esi, edi
push esi
call fcn.00424790
push eax
push str.WARNING:_couldnt_delete_registry_key_n_s_n_n
call fcn.00424640
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret