joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c198
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x40c1ab
push 0x80004005
call fcn.0040916d
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40c1b2
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x40c27c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x49c0b8]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea edx, [ebp - 0x214]
push edx
push 0x2001f
mov eax, ecx
mov ecx, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x220], eax
mov eax, dword [eax]
push ecx
push eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x40c399
xor eax, eax
cmp dword [ebp - 0x210], esi
je 0x40c2ea
push dword [ebp - 0x210]
call ebx
cmp eax, esi
mov ecx, dword [ebp - 0x214]
mov edi, eax
mov dword [ebp - 0x210], ecx
jne 0x40c399
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push ecx
jmp 0x40c35d
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
call fcn.0040c27c
cmp eax, esi
mov dword [ebp - 0x214], eax
jne 0x40c3bc
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 0x100
call edi
test eax, eax
je 0x40c322
cmp dword [ebp - 0x210], esi
je 0x40c383
push dword [ebp - 0x210]
call ebx
mov dword [ebp - 0x210], esi
push dword [ebp - 0x21c]
mov eax, dword [ebp - 0x220]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 0x210], esi
je 0x40c3a9
push dword [ebp - 0x210]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00446679
leave
ret 4
cmp dword [ebp - 0x210], esi
je 0x40c3cc
push dword [ebp - 0x210]
call ebx
mov eax, dword [ebp - 0x214]
jmp 0x40c3ab

Function at 0x40ce80
Capabilities:
Set registry value

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x40ceae
push dword [esp + 0xc]
call fcn.00446663
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push edi
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40ceae
inc edi
mov eax, edi
pop edi
ret 8
Function at 0x40cf35
Capabilities:
Get disk information

Disassembly:
push 0x2fc
mov eax, 0x47ad82
call fcn.0044ce70
xor esi, esi
push 0xd2
lea eax, [ebp - 0xe6]
push esi
push eax
mov word [ebp - 0xe8], si
call fcn.00445850
add esp, 0xc
lea eax, [ebp - 0xe8]
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, esi
jne 0x40cf7c
xor eax, eax
jmp 0x40d067
cdq
and edx, 3
add eax, edx
mov ebx, eax
push 0x208
lea eax, [ebp - 0x2f6]
push esi
push eax
sar ebx, 2
mov word [ebp - 0x2f8], si
call fcn.00445850
lea eax, [ebp - 0xe8]
mov word [ebp - 0xf0], si
mov edi, 0x49fc80
add esp, 0xc
mov esi, edi
mov dword [ebp - 0x2fc], eax
call fcn.00411987
xor esi, esi
inc esi
test ebx, ebx
jle 0x40d065
mov eax, dword [ebp - 0x2fc]
and word [eax + 4], 0
push 0x104
lea ecx, [ebp - 0x2f8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x40d057
lea eax, [ebp - 0x2f8]
push eax
lea eax, [ebp - 0x304]
push eax
call fcn.00409130
and dword [ebp - 4], 0
lea eax, [ebp - 0x304]
push eax
call fcn.0041192c
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x304]
add eax, 0xfffffff0
call fcn.00408f63
push dword [ebp - 0x2fc]
lea eax, [ebp - 0x300]
push eax
call fcn.00409130
lea eax, [ebp - 0x300]
push eax
mov dword [ebp - 4], esi
call fcn.0041192c
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x300]
add eax, 0xfffffff0
call fcn.00408f63
add dword [ebp - 0x2fc], 8
dec ebx
jne 0x40cfcd
mov eax, esi
call fcn.0044ceba
ret

Function at 0x40d467
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
push edi
mov edi, dword [esp + 0x10]
je 0x40d486
push eax
push edi
push 1
push dword [esp + 0x18]
call fcn.004478f8
add esp, 0x10
add dword [esi + 4], edi
pop edi
xor eax, eax
pop esi
ret 8

Function at 0x40d493
Capabilities:
Delete file

Disassembly:
push edi
mov edi, eax
mov eax, dword [edi + 8]
test eax, eax
je 0x40d4a8
push eax
call fcn.0044771d
and dword [edi + 8], 0
pop ecx
push dword [edi + 0xc]
and dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.0040d4bc
pop edi
ret
Function at 0x40d8a9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x40d944
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
mov ebx, str.cs3oddtime
push ebx
push eax
call edi
cmp dword [ebp - 8], 1
je 0x40d8eb
cmp dword [ebp - 8], 2
jne 0x40d942
push esi
mov esi, dword [ebp + 0xc]
call fcn.00409207
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.00408fe2
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push 0
push ebx
push dword [eax]
call edi
test eax, eax
jne 0x40d941
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x40d933
push eax
call fcn.00446663
pop ecx
mov edx, esi
call fcn.00408dbe
mov dword [ebp - 0xc], 1
pop esi
pop edi
pop ebx
mov eax, dword [ebp - 0xc]
leave
ret 8

Function at 0x40d94b
Capabilities:
Set registry value

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x40d97a
push dword [esp + 8]
call fcn.00446663
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0xc]
push 1
push edi
push str.cs3oddtime
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40d97a
inc edi
mov eax, edi
pop edi
ret 4
Function at 0x40dbe4
Capabilities:
Read file on windows

Disassembly:
push 0x18
push 0x4937a8
call fcn.0044c7fc
xor esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
push esi
push 0x80
push 3
push esi
push 1
push bind
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x40dc37
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x49c0b8
call fcn.004533d8
add esp, 0xc
jmp 0x40dcb5
mov edi, 0x25800
push edi
call fcn.0044607f
pop ecx
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], esi
je 0x40dc9e
push esi
lea eax, [ebp - 0x24]
push eax
push edi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
mov eax, dword [0x49fc4c]
cmp eax, esi
je 0x40dc6f
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp ebx, esi
je 0x40dc9e
cmp dword [ebp - 0x24], esi
je 0x40dc9e
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
push dword [ebp - 0x28]
call fcn.00416f8c
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [0x49fc4c]
cmp eax, esi
je 0x40dc46
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40dc46
mov dword [ebp - 4], 0xfffffffe
call fcn.0040dcbf
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
xor esi, esi
inc esi
mov eax, esi
call fcn.0044c841
ret
Function at 0x40dce8
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x479197
call fcn.0044ce3a
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], esi
je 0x40deaa
cmp dword [ebp + 0xc], esi
je 0x40deaa
push esi
push dword [ebp + 0xc]
call fcn.00446273
test eax, eax
pop ecx
pop ecx
jne 0x40dea5
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
push 0x80
push 3
push esi
push 1
push bind
push dword [ebp + 0xc]
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x40de7d
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x40de7d
mov eax, dword [0x49fc50]
cmp eax, esi
je 0x40dd6e
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call fcn.0044607f
cmp eax, esi
pop ecx
mov dword [ebp - 0x24], eax
je 0x40de7d
push esi
lea ecx, [ebp - 0x28]
push ecx
push edi
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x28], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x49fc50]
cmp eax, esi
je 0x40dda3
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x20], 0x100000
mov dword [ebp - 4], esi
cmp dword [ebp - 0x14], esi
je 0x40ddbb
push dword [ebp - 0x14]
call fcn.00445fa2
pop ecx
mov eax, dword [ebp - 0x20]
push eax
mov dword [ebp - 0x2c], eax
call fcn.0044607f
mov edx, eax
mov eax, dword [ebp - 0x24]
pop ecx
mov ecx, dword [ebp - 0x28]
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x14], edx
call fcn.00442610
cmp eax, esi
jne 0x40de2e
push esi
push 0x80
push 2
push esi
xor edi, edi
inc edi
push edi
push 0x40000000
push dword [ebp + 8]
mov dword [ebp - 0x30], esi
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x40de61
mov ebx, dword [ebp - 0x2c]
push esi
lea ecx, [ebp - 0x30]
push ecx
push ebx
push dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x30], ebx
jne 0x40de61
mov eax, dword [0x49fc50]
cmp eax, esi
je 0x40de29
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x34], edi
jmp 0x40de61
mov edi, dword [ebp - 0x20]
cmp edi, 0x3200000
ja 0x40de61
cmp eax, 0xfffffffb
jne 0x40de61
mov eax, dword [0x49fc50]
cmp eax, esi
je 0x40de4e
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [edi + edi]
mov dword [ebp - 0x20], eax
jmp 0x40ddad
cmp dword [ebp - 0x24], esi
je 0x40de6f
push dword [ebp - 0x24]
call fcn.00445fa2
pop ecx
cmp dword [ebp - 0x14], esi
je 0x40de7d
push dword [ebp - 0x14]
call fcn.00445fa2
pop ecx
cmp dword [ebp - 0x18], esi
je 0x40de91
cmp dword [ebp - 0x18], 0xffffffff
je 0x40de91
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], esi
je 0x40dea5
cmp dword [ebp - 0x1c], 0xffffffff
je 0x40dea5
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x34]
jmp 0x40deac
xor eax, eax
call fcn.0044cea6
ret
Function at 0x40e547
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0x48cc84
xor esi, esi
push 0x67
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, esi
je 0x40e5b3
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x40e5b3
cmp dword [edi], esi
jae 0x40e57c
mov dword [edi], esi
jmp 0x40e5ac
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40e5b3
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40e5b6
push esi
push eax
push dword [ebp + 8]
call fcn.00445450
add esp, 0xc
push ebx
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
Function at 0x40ef21
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
mov dword [esi], eax
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x40efaa
push ebx
call fcn.00445215
pop ecx
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40ef9b
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x48b114
push dword [ebp - 4]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40ef9b
cmp dword [ebp - 0xc], ebx
je 0x40ef9b
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov eax, dword [eax + 0xc]
mov dword [esi], eax
mov dword [ebp - 0x14], 1
cmp dword [ebp - 4], 0
je 0x40efaa
push dword [ebp - 4]
call fcn.00445a2a
pop ecx
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret

Function at 0x40efb0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push 4
mov eax, 0x47a415
call fcn.0044ce07
mov ebx, dword [ebp + 8]
push ebx
lea eax, [ebp - 0x10]
push eax
call fcn.00409130
xor esi, esi
push ebx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f003
test al, 0x10
je 0x40eff4
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00408f63
mov eax, esi
call fcn.0044cea6
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
call esi
test eax, eax
jne 0x40efde
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
je 0x40efde
lea ecx, [ebp - 0x10]
call fcn.0044134b
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x40f035
xor esi, esi
jmp 0x40efe1
push eax
call fcn.0040efb0
test eax, eax
pop ecx
je 0x40f031
push 0
push ebx
call esi
test eax, eax
jne 0x40efde
call edi
cmp eax, 0xb7
jne 0x40f031
jmp 0x40efde
Function at 0x40f054
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x49c0b8]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x1c
mov eax, 0x47a0b4
call fcn.0044ce07
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], eax
push 0x206
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
mov ebx, ecx
push eax
mov dword [ebp - 0x1c], ebx
call fcn.00445850
mov eax, dword [0x49ead4]
mov esi, 0x49ead4
add esp, 0xc
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
xor edi, edi
inc edi
mov dword [ebp - 4], edi
mov eax, dword [0x49ead4]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
mov eax, dword [0x49ead4]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 3
mov eax, dword [0x49ead4]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, esi
mov esi, ebx
mov byte [ebp - 4], 4
call fcn.00408f48
lea esi, [ebp - 0x18]
mov dword [ebp - 0x28], edi
call fcn.0041d4cc
mov byte [ebp - 4], 5
push dword [eax]
lea eax, [ebp - 0x14]
push 0x48b118
push eax
call fcn.00407d26
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x18]
add esp, 0xc
add eax, 0xfffffff0
call fcn.00408f63
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, 0x104
push ebx
lea eax, [ebp]
push eax
mov edi, 0x485898
push edi
push 0x48b144
push str.infos
call esi
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00409107
push dword [ebp - 0x14]
lea eax, [ebp]
push ebx
push eax
push edi
push str.Version
push str.DisplayVersions
call esi
lea eax, [ebp]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00409107
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
push 8
pop ecx
cmp eax, ecx
jle 0x40f1b7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
call fcn.004116d8
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.00407844
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00408f63
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x20]
push esi
push edi
push str._s._s
push dword [ebp - 0x1c]
call fcn.00407d26
mov eax, dword [ebp - 0x14]
add esp, 0x10
add eax, 0xfffffff0
call fcn.00408f63
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00408f63
lea eax, [esi - 0x10]
call fcn.00408f63
lea eax, [edi - 0x10]
call fcn.00408f63
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00446679
add ebp, 0x20c
leave
ret
Function at 0x40f218
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x49c0b8]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0xc
mov eax, 0x47a043
call fcn.0044ce07
xor edi, edi
push 0x206
lea eax, [ebp + 2]
push edi
push eax
mov word [ebp], di
call fcn.00445850
mov eax, dword [0x49ead4]
mov esi, 0x49ead4
add esp, 0xc
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], edi
mov eax, dword [0x49ead4]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0041d4cc
mov byte [ebp - 4], 2
push dword [eax]
lea eax, [ebp - 0x14]
push 0x48b118
push eax
call fcn.00407d26
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add esp, 0xc
add eax, 0xfffffff0
call fcn.00408f63
mov ebx, dword [ebp - 0x14]
push ebx
push 0x104
lea eax, [ebp]
push eax
push 0x485898
push 0x48b144
push str.infos
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00409107
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], edi
je 0x40f2ee
push esi
call fcn.004461d6
pop ecx
mov edi, eax
lea eax, [esi - 0x10]
call fcn.00408f63
lea eax, [ebx - 0x10]
call fcn.00408f63
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00446679
add ebp, 0x20c
leave
ret

Function at 0x40f68c
Capabilities:
Get file size

Disassembly:
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push bind
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40f6c7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x10]
push esi
mov dword [ecx], eax
inc edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x40f758
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x49c0b8]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
test byte [0x49fc94], 1
jne 0x40f7a2
mov eax, dword [0x49ead4]
or dword [0x49fc94], 1
mov ecx, 0x49ead4
call dword [eax + 0xc]
add eax, 0x10
push 0x47de92
mov dword [0x49fc90], eax
call fcn.00445a18
pop ecx
mov eax, dword [0x49fc90]
cmp dword [eax - 0xc], 0
jne 0x40f7ec
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40f7e7
push esi
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x49fc90
push esi
call fcn.00409107
call fcn.0040ec96
push str.drivers_
push esi
call fcn.004078e0
pop esi
mov eax, dword [0x49fc90]
add eax, 0xfffffff0
call fcn.00408ddf
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [edi], eax
xor ecx, ebp
mov eax, edi
call fcn.00446679
leave
ret
Function at 0x40f807
Capabilities:
Copy file
Delete file
Move file
Set file attributes

Disassembly:
push 0x10
mov eax, 0x47acd5
call fcn.0044ce07
mov eax, dword [0x49ead4]
mov ecx, 0x49ead4
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
xor esi, esi
push esi
push ebx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x40f84a
and dword [ebp - 0x10], 0
jmp 0x40f8ba
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push ebx
lea eax, [ebp - 0x18]
push str._s_del__x
push eax
call fcn.00407d26
mov edi, dword [ebp - 0x18]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push ebx
call fcn.0044797a
test eax, eax
pop ecx
pop ecx
je 0x40f885
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x40f8b4
push 0
push ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x40f8a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push edi
mov dword [ebp - 0x10], eax
call fcn.0044797a
pop ecx
pop ecx
jmp 0x40f8b4
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
and dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0
jne 0x40f8ee
push ebx
lea eax, [ebp - 0x14]
push eax
call fcn.00409130
push 0x48b2ec
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.004078e0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00408f63
push ebx
push dword [ebp + 8]
mov esi, 0x49f920
push dword [ebp - 0x10]
push str.RenameUpdate_return:_d__src:_ws__dst:_ws
call fcn.00415020
add esp, 0x10
lea eax, [edi - 0x10]
call fcn.00408f63
mov eax, dword [ebp - 0x10]
call fcn.0044cea6
ret
Function at 0x40f918
Capabilities:
Copy file
Move file
Set file attributes

Disassembly:
push 0xc
mov eax, 0x47c697
call fcn.0044ce07
mov eax, dword [0x49ead4]
or dword [ebp - 0x14], 0xffffffff
mov ecx, 0x49ead4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00409107
push 0x48b2ec
lea eax, [ebp - 0x10]
push eax
call fcn.004078e0
push ebx
push dword [ebp + 8]
call fcn.00446273
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
pop ecx
pop ecx
je 0x40f981
push str.RebootUpdate_src_file_is_Not_exsist_
mov esi, 0x49f920
call fcn.00415020
pop ecx
jmp 0x40f9e0
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push dword [ebp + 0xc]
call esi
push ebx
push dword [ebp - 0x10]
call esi
push ebx
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
mov esi, 0x49f920
jne 0x40f9cb
push dword [ebp - 0x10]
push dword [ebp + 8]
call edi
push eax
push str.RebootUpdate_CopyFile_fail__error:_d__src:_ws__dst:_ws
call fcn.00415020
add esp, 0x10
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00409107
push 5
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x40f9e0
mov dword [ebp - 0x14], ebx
call edi
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x14]
push str.RebootUpdate_return:_d__src:_ws__dst:_ws_errorcode:_d
call fcn.00415020
mov eax, dword [ebp - 0x10]
add esp, 0x14
add eax, 0xfffffff0
call fcn.00408f63
mov eax, dword [ebp - 0x14]
call fcn.0044cea6
ret