joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4076ff
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x443ae4
call fcn.004361ac
sub esp, 0x10
mov eax, dword [0x4629dc]
mov dword [ebp - 0x1c], ecx
push ebx
push 0xffffffffffffffff
lea ecx, [eax + 0xa94]
call fcn.00406944
push eax
lea ecx, [ebp - 0x10]
call fcn.00406579
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040d353
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00406b42
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004065ed
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
lea ecx, [ebp - 0x10]
call fcn.00406944
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x4077c7
push esi
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.004373eb
mov edi, eax
pop ecx
cmp edi, ebx
je 0x4077bc
lea eax, [ebp - 0x18]
push ebx
push eax
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, dword [ebp - 0x18]
jne 0x4077b5
mov eax, dword [ebp - 0x1c]
push edi
mov byte [edi + esi], bl
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push edi
call fcn.004363b8
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004065ed
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x407cf9
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00436b30
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [ebp + 0x10], ebx
push edi
jle 0x407d69
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00437bbd
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x407d69
and byte [ebp - 0x1000], al
mov ecx, 0x3ff
lea edi, [ebp - 0xfff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1000]
push str._MassUP__Fail:_mass_file_open._errno_d
push eax
call fcn.00437b3a
add esp, 0xc
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
inc ebx
cmp ebx, dword [ebp + 0x10]
jl 0x407d12
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407f5b
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push 8
add eax, 0x1c
pop edx
xor dword [eax], ecx
mov ecx, dword [eax]
sub eax, 4
dec edx
jne 0x407f69
ret

Function at 0x407f74
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
push 8
add eax, 0x1c
pop edx
mov ecx, dword [eax]
mov esi, ecx
xor esi, dword [esp + 0xc]
mov dword [esp + 0xc], ecx
mov dword [eax], esi
sub eax, 4
dec edx
jne 0x407f7f
pop esi
ret
Function at 0x4082a3
Capabilities:
Check mutex on windows
Copy file
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3134
call fcn.00436b30
push ebx
push esi
mov esi, 0x3ff
push edi
xor ebx, ebx
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x2133]
mov byte [ebp - 0x2134], bl
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x2134]
push eax
call fcn.00407e25
pop ecx
lea eax, [ebp - 0x2134]
pop ecx
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x408309
push str._MassUP__Fail:_Cannot_Create_Mutex.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x40848c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x408320
push str._MassUP__Fail:_Mutex_Already_Exists.
jmp 0x408472
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x133]
mov byte [ebp - 0x134], bl
push str.mass2.dat
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x4629e4
lea eax, [ebp - 0x134]
push str._s_s
push eax
call fcn.00437b3a
add esp, 0x10
lea eax, [ebp - 0x134]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x1133]
mov byte [ebp - 0x1134], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x2f]
mov byte [ebp - 0x30], bl
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040822f
lea eax, [ebp - 0x30]
mov dword [esp], 0xfff
push eax
push 0x462ae8
call fcn.00437810
add esp, 0xc
lea eax, [ebp - 0x30]
push 0x44d620
push eax
push str._AhnLab_UpdateLog_
lea eax, [ebp - 0x1134]
push str._s_s_s
push eax
call fcn.00437b3a
lea eax, [ebp - 0x1134]
push eax
call fcn.00437370
mov dword [ebp - 8], eax
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x3133]
mov byte [ebp - 0x3134], bl
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x80b
mov byte [ebp - 1], bl
push dword [ebp - 8]
stosb byte es:[edi], al
lea eax, [ebp - 0x1134]
push eax
lea eax, [ebp - 0x3134]
push dword [ebp - 8]
push eax
call fcn.00407888
add esp, 0x30
test eax, eax
je 0x40841b
push str._MassUP__Fail:_Enc_Fail
jmp 0x408472
push 3
push 0x44d644
push dword [ebp + 8]
call fcn.00407cf9
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x40846d
push esi
push 1
pop edi
lea eax, [ebp - 8]
push edi
push 4
push eax
call fcn.00437e81
push esi
push edi
lea eax, [ebp - 1]
push edi
push eax
call fcn.00437e81
push esi
push edi
push dword [ebp - 8]
lea eax, [ebp - 0x3134]
push eax
call fcn.00437e81
push esi
call fcn.00437e04
add esp, 0x34
mov ebx, edi
jmp 0x408478
push str._MassUP__Fail:_File_open_Fail.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408491
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3014
call fcn.00436b30
push ebx
push edi
push 3
push 0x44d710
push dword [ebp + 0xc]
call fcn.00407cf9
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jne 0x408501
and byte [ebp - 0x2014], al
mov ecx, 0x3ff
lea edi, [ebp - 0x2013]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x2014]
push dword [ebp + 0xc]
push str._MassUp__Fail:_Open_File.__s__errorno_d
push eax
call fcn.00437b3a
add esp, 0x10
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x408624
and byte [ebp - 0x3014], 0
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x3013]
rep stosd dword es:[edi], eax
and byte [ebp - 0xc], 0
push 0x44d620
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00437370
mov ebx, str._AhnLab_UpdateLog_
mov edi, eax
push ebx
call fcn.00437370
push 1
lea eax, [edi + eax + 0x20]
pop edi
and dword [ebp - 0x14], 0
push dword [ebp - 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], edi
push 4
push edi
push eax
call fcn.00437fba
add esp, 0x18
cmp eax, 4
jne 0x408593
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push edi
push edi
push eax
call fcn.00437fba
add esp, 0x10
cmp eax, edi
jne 0x408593
push dword [ebp - 4]
lea eax, [ebp - 0x3014]
push dword [ebp - 8]
push edi
push eax
call fcn.00437fba
add esp, 0x10
cmp eax, dword [ebp - 8]
jne 0x408593
and dword [ebp - 0x10], 0
jmp 0x40859e
push str._MassUp__Fail:_Read_File.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 4]
call fcn.00437e04
and byte [ebp - 0x1014], 0
pop ecx
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x1013]
cmp dword [ebp - 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jne 0x4085fa
push dword [ebp - 0xc]
lea eax, [ebp - 0x3014]
push 0x80b
push dword [ebp - 8]
push eax
lea eax, [ebp - 0x1014]
push dword [ebp - 8]
push eax
call fcn.00407ac3
lea eax, [ebp - 0x1014]
push eax
call fcn.0040813d
add esp, 0x1c
test eax, eax
jne 0x408605
push dword [ebp + 0xc]
call fcn.004082a3
pop ecx
jmp 0x408624
push 0x20
push ebx
call fcn.00437370
pop ecx
lea eax, [ebp + eax - 0x1014]
push eax
push dword [ebp + 8]
call fcn.00437810
add esp, 0xc
push 1
pop eax
pop edi
pop ebx
leave
ret
Function at 0x408628
Capabilities:
Check for time delay via gettickcount
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
push dword [ebp + 8]
call fcn.00437370
pop ecx
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x408749
push dword [ebp + 8]
call fcn.00437370
push eax
push dword [ebp + 8]
push edi
call fcn.00437810
push edi
call fcn.00437370
add esp, 0x14
cmp eax, 0x104
jae 0x408742
push esi
push 0x103
mov esi, 0x4629e4
push edi
push esi
call fcn.00437810
push esi
call fcn.00437370
lea eax, [eax + 0x4629e3]
add esp, 0x10
cmp byte [eax], 0x5c
pop esi
jne 0x40869e
mov byte [eax], bl
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x20019
push str.SoftwareAhnLabDynaUpdate
push 0x80000002
lea ecx, [ebp - 4]
mov dword [ebp - 4], ebx
call fcn.00408b0a
test eax, eax
jne 0x408725
lea eax, [ebp - 8]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push str.SULogSize
mov dword [ebp - 0xc], ebx
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x4086fb
or dword [0x44d59c], eax
jmp 0x408725
cmp eax, 3
jae 0x40870c
mov dword [0x44d59c], 0x300000
jmp 0x408725
cmp eax, 0x1e
jbe 0x40871d
mov dword [0x44d59c], 0x1e00000
jmp 0x408725
shl eax, 0x14
mov dword [0x44d59c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00437d50
cmp dword [ebp - 4], ebx
pop ecx
je 0x408749
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x408749
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop ebx
leave
ret
Function at 0x4091fb
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jne 0x409210
xor eax, eax
jmp 0x4092e2
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x4092df
push esi
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x4092d4
cmp esi, 0xffffffff
je 0x4092d4
lea eax, [ebp - 8]
push eax
lea eax, [esi + 1]
push eax
call fcn.0040909f
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
mov dword [ebp - 0xc], edi
je 0x4092d4
lea eax, [ebp + 8]
push ebx
push eax
push esi
push edi
mov dword [ebp + 8], esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4092cd
cmp dword [ebp + 8], esi
jne 0x4092cd
cmp dword [ebp + 0x10], ebx
je 0x4092bf
push ebx
push dword [ebp - 8]
call fcn.0040909f
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
je 0x4092ba
push ebx
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call fcn.00409035
mov eax, dword [ebp + 0xc]
mov byte [edi + esi], bl
add esp, 0x10
mov dword [ebp - 4], 1
mov dword [eax], edi
push dword [ebp - 0xc]
jmp 0x4092ce
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 1
mov dword [eax], edi
jmp 0x4092d4
push edi
call fcn.004090f8
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
leave
ret
Function at 0x40b550
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
push edi
push esi
push esi
push 3
push esi
push esi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40b57a
xor ax, ax
jmp 0x40b5b0
lea eax, [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x10]
push 0xe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40b5a6
cmp dword [ebp + 8], 0xe
jne 0x40b5a6
xor eax, eax
xor byte [ebp + eax - 0x10], 0x32
inc eax
cmp eax, 0xe
jb 0x40b598
mov esi, dword [ebp - 6]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, si
pop edi
pop esi
leave
ret

Function at 0x40b608
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
lea ecx, [ebp + 0x18]
neg eax
sbb eax, eax
push ecx
and eax, 0x100
add eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b666
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [ebp + 8]
push eax
push 0
push 0
mov dword [ebp + 0xc], 4
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
test edi, edi
pop edi
je 0x40b669
mov eax, dword [ebp + 0x14]
pop ebp
ret

Function at 0x40bbd6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
push dword [ebp + 8]
call ebx
test eax, eax
je 0x40bc4b
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x40bc4b
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40bc1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CUpdateStatus__Fail_to_open_ahn.ui__d_.
jmp 0x40bc81
push 2
push edi
push 0xfffffffffffffff7
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40bc54
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CUpdateStatus__Fail_to_set_file_pointer__d_.
push 1
call fcn.00408aae
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
lea eax, [ebp - 4]
push edi
push eax
push 8
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call ebx
test eax, eax
jne 0x40bc8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CUpdateStatus__Fail_to_read_CRC_of_Ahn.ui___d_.
push 1
call fcn.00408aae
add esp, 0xc
jmp 0x40bc4b
push 1
pop eax
jmp 0x40bc4d
Function at 0x40bc92
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], ecx
je 0x40bd90
cmp word [ebp + 8], bx
je 0x40bd90
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x20b]
mov byte [ebp - 0x20c], bl
mov esi, 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x20c]
push esi
push eax
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
call fcn.00425dcc
add esp, 0x1c
test ax, ax
je 0x40bd66
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x107]
mov byte [ebp - 0x108], bl
push str.bldinfo.ini
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [ebp - 4]
stosb byte es:[edi], al
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.0040b905
push ebx
push ebx
push 3
push ebx
push 1
lea eax, [ebp - 0x108]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x40bd66
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x4629d8
push str.BuildNumber
push str.Build
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
pop edi
pop esi
test eax, eax
jne 0x40bd90
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
movzx eax, word [ebp + 8]
push eax
push str._CUpdateStatus___04x_:_BuildNumber_fail___d_
push 1
call fcn.00408aae
add esp, 0x10
pop ebx
leave
ret 0xc

Function at 0x40cf18
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
push str.Kernel32.DLL
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
call edi
push str.User32.DLL
mov dword [esi + 0x1c], eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x40cf97
push str.GetNativeSystemInfo
push eax
call edi
push str.IsWow64Process
mov dword [esi + 4], eax
push dword [esi + 0x1c]
call edi
push str.IsWow64Process2
mov dword [esi + 8], eax
push dword [esi + 0x1c]
call edi
push str.Wow64EnableWow64FsRedirection
mov dword [esi + 0xc], eax
push dword [esi + 0x1c]
call edi
push str.GetSystemWow64DirectoryA
mov dword [esi + 0x10], eax
push dword [esi + 0x1c]
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x40cfa9
push str.IsWow64Message
push eax
call edi
mov dword [esi + 0x18], eax
pop edi
pop esi
pop ebx
ret
Function at 0x40d175
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and byte [ebp - 0x104], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
and byte [ebp - 0x208], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x207]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
pop edi
jne 0x40d1c6
leave
ret
lea eax, [ebp - 0x104]
push str.Version.dll
push eax
lea eax, [ebp - 0x208]
push str._s_s
push eax
call fcn.00437b3a
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
leave
ret
Function at 0x415ecf
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x44438b
call fcn.004361ac
sub esp, 0x1f0
and dword [ebp - 0x1c], 0
push esi
mov esi, ecx
lea ecx, [ebp - 0x10]
call fcn.0040656d
cmp dword [esi + 4], 0
lea eax, [esi + 4]
mov dword [ebp - 4], 1
je 0x416082
push ebx
push edi
mov ebx, eax
mov dword [ebp - 0x18], eax
mov esi, 0x104
mov ecx, dword [0x4629dc]
call fcn.00404548
mov dl, byte [0x4629d8]
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x9b]
mov byte [ebp - 0x9c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x5b]
mov byte [ebp - 0x5c], dl
and byte [ebp - 0x3c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x3b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x14]
stosb byte es:[edi], al
call fcn.0040656d
mov eax, dword [ebx]
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
mov di, word [eax + 0xc]
call fcn.00406655
push esi
push eax
lea eax, [ebp - 0x5c]
push 0x20
push eax
lea eax, [ebp - 0x9c]
push 0x40
push eax
push edi
call fcn.00425dcc
add esp, 0x1c
lea ecx, [ebp - 0x14]
call fcn.004066ad
lea eax, [ebp - 0x3c]
push 0x20
push eax
push edi
call fcn.00425e49
mov eax, dword [ebp - 0x10]
xor edi, edi
add esp, 0xc
cmp dword [eax - 4], edi
je 0x415fb9
push 0x4504f8
lea ecx, [ebp - 0x10]
call fcn.00406b2b
lea eax, [ebp - 0x9c]
lea ecx, [ebp - 0x10]
push eax
call fcn.00406b2b
push 0x4504f4
lea ecx, [ebp - 0x10]
call fcn.00406b2b
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0x10]
push eax
call fcn.00406b2b
push 0x4504f0
lea ecx, [ebp - 0x10]
call fcn.00406b2b
cmp dword [ebp + 0xc], edi
je 0x416063
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x14]
push eax
call fcn.00406b97
mov eax, dword [0x4629dc]
push edi
lea ecx, [ebp - 0x14]
mov ebx, dword [eax + 0xa68]
call fcn.00406944
push eax
push ebx
call dword [sym.imp.SHELL32.dll_ExtractIconA]
cmp eax, edi
mov dword [ebp - 0x1fc], eax
jne 0x416046
push 0x111
lea eax, [ebp - 0x1fc]
push 0x160
push eax
push edi
lea ecx, [ebp - 0x14]
call fcn.00406944
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push dword [ebp - 0x1fc]
push 0xffffffffffffffff
push dword [ebp + 0xc]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push dword [ebp - 0x1fc]
call dword [sym.imp.USER32.dll_DestroyIcon]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004065ed
mov ebx, dword [ebp - 0x18]
add ebx, 4
mov dword [ebp - 0x18], ebx
cmp dword [ebx], edi
jne 0x415f0e
pop edi
pop ebx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004065ac
mov dword [ebp - 0x1c], 1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004065ed
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4168c2
Capabilities:
Copy file

Disassembly:
mov eax, 0x444430
call fcn.004361ac
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push edi
push eax
mov ecx, esi
call fcn.00407444
and dword [ebp - 4], 0
push 0
push dword [ebp + 0xc]
mov ecx, eax
call fcn.00406944
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
or ebx, 0xffffffff
lea ecx, [ebp + 8]
mov edi, eax
mov dword [ebp - 4], ebx
call fcn.004065ed
test edi, edi
je 0x41695a
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.00407444
push 1
mov ecx, eax
pop edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
call fcn.00406944
push eax
push str._Autoup__CPdList::Backup_Dest__Temp___success_Backup__s___s_
push edi
call fcn.00408aae
add esp, 0x10
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.004065ed
push dword [ebp + 0xc]
or dword [esi + 0x1cc], 4
lea ecx, [esi + 0x1d8]
call fcn.0040696a
jmp 0x416a69
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00407444
push dword [ebp + 8]
mov ecx, eax
mov dword [ebp - 4], 2
push dword [ebp + 0xc]
call fcn.00406944
push eax
push str._Autoup__CPdList::Backup_Dest__Temp___CopyFile__s___s___GetLastError___d_
push 1
pop edi
push edi
call fcn.00408aae
add esp, 0x14
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.004065ed
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00407444
push 0
mov ecx, eax
mov dword [ebp - 4], 3
call fcn.00406944
push eax
call fcn.00405a7b
pop ecx
mov dword [ebp - 0x14], eax
pop ecx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x10]
call fcn.004065ed
cmp dword [ebp - 0x14], 0
je 0x416a30
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.00407444
push dword [ebp + 8]
mov ecx, eax
mov dword [ebp - 4], 4
push dword [ebp + 0xc]
call fcn.00406944
push eax
push str._Autoup__CPdList::Backup_Dest__Temp___failed_Backup__s___s___GetLastError___d_
push edi
call fcn.00408aae
add esp, 0x14
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.004065ed
add esi, 0x94
mov ecx, dword [0x4629dc]
push 0
push esi
push dword [ebp + 8]
push 0x283f
push edi
call fcn.0040363e
xor eax, eax
jmp 0x416a6b
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.00407444
push dword [ebp + 8]
mov ecx, eax
mov dword [ebp - 4], 5
push dword [ebp + 0xc]
call fcn.00406944
push eax
push str._Autoup__CPdList::Backup_Dest__Temp___warning_Backup__s___s___GetLastError___d_
push edi
call fcn.00408aae
add esp, 0x14
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.004065ed
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8