joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b17
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
lea eax, [ebp - 4]
push ebx
push eax
xor ebx, ebx
push 9
push ebx
push dword [ebp + 8]
push dword [ebp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402bac
push edi
push 0x40
pop ecx
lea edi, [ebp - 0x117]
mov byte [ebp - 0x118], bl
mov dword [ebp + 0x1c], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x103
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0x104
push eax
push ebx
push ebx
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 0x1c]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
jne 0x402b9d
inc dword [ebp + 0x1c]
cmp dword [ebp - 8], edi
jne 0x402b57
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], edi
pop edi
jne 0x402bb0
xor eax, eax
jmp 0x402bee
push dword [ebp + 0x10]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x21c]
push dword [ebp + 8]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x104
push 0x80000002
push dword [ebp + 0x18]
lea eax, [ebp - 0x21c]
push dword [ebp + 0x14]
push eax
call fcn.00402abc
add esp, 0x28
pop ebx
leave
ret

Function at 0x402ec5
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
je 0x402f21
mov ebx, dword [esp + 0x14]
cmp ebx, edi
je 0x402f21
push dword [esp + 0x10]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
cmp esi, edi
jne 0x402ef3
pop edi
pop esi
pop ebx
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x102
cmp eax, ecx
je 0x402f14
or edi, 0xffffffff
cmp eax, edi
je 0x402f16
mov dword [ebx], esi
xor eax, eax
jmp 0x402f24
mov edi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x402f24
push 0x57
pop eax
pop edi
pop esi
pop ebx
ret
Function at 0x402fb2
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x123]
mov byte [ebp - 0x124], bl
push str.GetDiskFreeSpaceExA
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.kernel32.dll
xor esi, esi
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x403007
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
mov edi, eax
jmp 0x403077
push ebx
push ebx
lea eax, [ebp - 0x124]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__splitpath]
add esp, 0x14
cmp byte [ebp - 0x124], bl
je 0x40303d
lea eax, [ebp - 0x124]
push 0x417064
push eax
lea esi, [ebp - 0x124]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov edi, eax
cmp edi, ebx
je 0x403077
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x403077
mov eax, dword [ebp - 8]
push ebx
mul dword [ebp - 4]
push dword [ebp - 0xc]
push edx
push eax
call fcn.00414060
mov dword [esi], eax
mov dword [esi + 4], edx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40307e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
push esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, esi
mov dword [ebp - 4], eax
je 0x4030a8
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
cmp edi, esi
mov dword [ebp - 0xc], edi
jne 0x4030af
xor eax, eax
jmp 0x403146
push edi
push dword [ebp - 4]
push esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40313b
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x417064
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40313b
mov eax, dword [ebp - 8]
mov ecx, 0xffff
push ebx
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
movzx edx, word [eax + 0xe]
movzx ebx, word [eax + 0xa]
and esi, ecx
and edi, ecx
cmp dword [ebp + 0xc], 0
mov dword [ebp + 8], edx
je 0x403113
push edi
push edx
push esi
push ebx
push str._d._d._d._d
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [ebp + 8]
add esp, 0x18
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40311c
mov dword [eax], ebx
mov eax, dword [ebp + 0x18]
pop ebx
test eax, eax
je 0x403126
mov dword [eax], esi
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x40312f
mov dword [eax], edx
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x403138
mov dword [eax], edi
xor esi, esi
inc esi
push dword [ebp - 0xc]
call fcn.00413f94
pop ecx
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x4032be
Capabilities:
Read .ini file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x4032ce
xor eax, eax
jmp 0x40333c
push str.wcmdmgr.exe
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4032f9
push eax
push esi
call fcn.004025e2
push esi
push str.backup
push esi
call fcn.00402c1d
add esp, 0x14
jmp 0x403339
push edi
push 0x104
push esi
push 0x41f7e4
push str.ApplicationPath
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x102
je 0x4032ca
test eax, eax
je 0x4032ca
push esi
push str.wtupdates
push esi
call fcn.00402c1d
push esi
push dword [esp + 0x1c]
push esi
call fcn.00402c1d
add esp, 0x18
xor eax, eax
inc eax
pop edi
pop esi
ret 8

Function at 0x4033a3
Capabilities:
Read .ini file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x4033b0
xor eax, eax
jmp 0x4033ca
push ecx
push 0x5dc
push str.UpdateIntervalInMinutes
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi], eax
xor eax, eax
inc eax
pop esi
ret 8

Function at 0x40340a
Capabilities:
Read .ini file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x40342a
push ecx
push 0xffffffffffffffff
push str.LogFileVerbosity
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 5
jbe 0x40342e
xor eax, eax
jmp 0x403433
mov dword [esi], eax
xor eax, eax
inc eax
pop esi
ret 8
Function at 0x406eb1
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0xb8
push ebp
mov ebp, dword [esp + 0xc0]
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406ecf
test al, 0x10
je 0x406ed3
xor eax, eax
jmp 0x406f30
test al, 1
je 0x406ee0
push 0xfffffffffffffffe
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x406f2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x406f2b
push 0x2d
mov esi, str._nThe_WildTangent_Winamp_Visualization_plugin_is_currently_in_use.__Please_close_the_plugin__then_press_n_n_t_Retry__to_continue_the_installation__or_n_t_Cancel__to_halt_the_installation
pop ecx
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
push eax
lea eax, [esp + 0x14]
push str.Installation_Error
push eax
push 0
movsb byte es:[edi], byte [esi]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x406ee3
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
add esp, 0xb8
ret

Function at 0x406f38
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
and byte [ebp - 0x208], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
and byte [ebp - 0x104], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
push str.Plugins
rep stosd dword es:[edi], eax
push dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x208]
pop ecx
push str.wtwav.dll
push eax
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x104]
push eax
call fcn.00406eb1
add esp, 0xc
test eax, eax
jne 0x40707a
lea eax, [ebp - 0x208]
push str.wtwtvis
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x208]
pop ecx
push 0x417af0
push eax
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x348]
pop ecx
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x407019
xor eax, eax
jmp 0x40707a
push esi
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x208]
push 0x417064
push eax
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x104]
push eax
call fcn.00406eb1
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x407070
lea eax, [ebp - 0x348]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40701a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
leave
ret
Function at 0x4078cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov eax, dword [ebx + 0xbc]
mov dword [ebp - 4], esi
cmp eax, esi
je 0x407a40
push str.MEDIAPLAYER
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x407a40
lea eax, [ebp - 4]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Pathswmplayer.exe
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x407a2a
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
lea eax, [ebp - 0x148]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call esi
test eax, eax
jne 0x407a2a
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x44]
push 0x40
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.0040307e
add esp, 0x1c
test eax, eax
je 0x407a2a
lea eax, [ebp - 0x44]
push str.7.0.0.0
push eax
call fcn.00402e32
pop ecx
test eax, eax
pop ecx
jge 0x407981
push 0xc
jmp 0x407a2c
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
lea eax, [ebp - 0x148]
push eax
push 0
push 0
push str.Path
push dword [ebp - 4]
call esi
test eax, eax
jne 0x407a2a
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x148]
push str.Visualizations
push eax
call fcn.00402c1d
lea eax, [ebp - 0x148]
push 0
push eax
call fcn.00402868
add esp, 0x14
test eax, eax
jne 0x4079da
push 8
jmp 0x407a2c
lea eax, [ebp - 0x148]
push eax
push 0x425318
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebx + 0x40], 0xffffffff
jle 0x407a26
call fcn.0040cd19
test eax, eax
jne 0x4079ff
push 6
jmp 0x407a2c
mov eax, dword [ebx + 0x40]
mov ebx, dword [ebx + eax*4 + 0xf0]
lea eax, [ebp - 0x148]
push eax
mov ecx, ebx
mov dword [ebx + 8], 1
call fcn.00401e00
test eax, eax
jne 0x407a26
push 5
jmp 0x407a2c
xor esi, esi
jmp 0x407a2d
push 0xb
pop esi
cmp dword [ebp - 4], 0
je 0x407a3c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x407a42
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x407a46
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov eax, dword [eax + 0xbc]
push edi
cmp eax, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 0xd
mov dword [ebp - 0x10], ebx
je 0x407c29
push str.REALPLAYER
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x407c29
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 4]
push eax
mov edi, 0x80000002
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_realplay.exe
push edi
call esi
test eax, eax
je 0x407abc
lea eax, [ebp - 4]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_realjbox.exe
push edi
call esi
test eax, eax
jne 0x407c15
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x104
push eax
lea eax, [ebp - 0x154]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call ebx
test eax, eax
jne 0x407c15
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x50]
push 0x40
push eax
lea eax, [ebp - 0x154]
push eax
call fcn.0040307e
add esp, 0x1c
test eax, eax
je 0x407c0e
cmp dword [ebp - 0x10], 0
je 0x407b1f
lea eax, [ebp - 0x50]
push str.1.0.2.0
push eax
call fcn.00402e32
pop ecx
test eax, eax
pop ecx
jl 0x407b33
lea eax, [ebp - 0x50]
push str.6.0.9.0
push eax
call fcn.00402e32
pop ecx
test eax, eax
pop ecx
jge 0x407b3f
mov dword [ebp - 8], 0xe
jmp 0x407c15
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push edi
call esi
test eax, eax
jne 0x407c0e
lea eax, [ebp - 0xc]
xor edi, edi
push eax
lea eax, [ebp - 0x154]
push eax
push edi
push edi
push str.CommonFilesDir
push dword [ebp - 4]
mov dword [ebp - 0xc], 0x104
call ebx
test eax, eax
jne 0x407c0e
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x154]
push str.real
push eax
call fcn.00402c1d
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0xc
lea eax, [ebp - 0x154]
push eax
call esi
cmp eax, 0xffffffff
je 0x407c0e
lea eax, [ebp - 0x154]
push eax
call esi
test al, 0x10
je 0x407c0e
lea eax, [ebp - 0x154]
push eax
push 0x425318
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [ebp + 8]
cmp dword [esi + 0x40], 0xffffffff
jle 0x407c09
call fcn.0040cd19
test eax, eax
je 0x407c29
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + eax*4 + 0xf0]
lea eax, [ebp - 0x154]
push eax
mov dword [ecx + 8], 1
call fcn.00401e00
test eax, eax
je 0x407c29
mov dword [ebp - 8], edi
jmp 0x407c15
mov dword [ebp - 8], 0xd
cmp dword [ebp - 4], 0
je 0x407c24
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
jmp 0x407c2b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407c30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
push ebx
push esi
mov ebx, 0x41fc10
push edi
push ebx
call sub.MSVCRT.dll_strlen
mov esi, dword [ebp + 8]
mov edi, eax
pop ecx
mov eax, dword [esi + 0xbc]
test eax, eax
je 0x407de9
push str.MUSICMATCH
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x407de9
test edi, edi
jne 0x407da9
mov esi, 0x20a
mov edi, 0x80000002
push esi
push edi
push ebx
push str.AppPath
push str.SOFTWAREMusicMatchMusicMatch_Jukebox4.0MainApp
call fcn.00402abc
add esp, 0x14
test eax, eax
jne 0x407cba
push esi
push edi
push ebx
push str.Path
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Pathsmmjb.exe
call fcn.00402abc
add esp, 0x14
test eax, eax
jne 0x407cba
push 0xf
jmp 0x407de6
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, eax
dec eax
test ecx, ecx
je 0x407cd6
lea eax, [eax + 0x41fc10]
cmp byte [eax], 0x5c
jne 0x407cd6
and byte [eax], 0
mov esi, str.mmjb.exe
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
and byte [ebp - 0x264], 0
mov ecx, 0x85
movsw word es:[edi], word [esi]
xor eax, eax
lea edi, [ebp - 0x263]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x264]
push ebx
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x264]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
push 0xf
je 0x407de6
and byte [ebp - 0x4c], 0
pop ecx
xor eax, eax
lea edi, [ebp - 0x4b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x4c]
push 0x40
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.0040307e
add esp, 0x1c
test eax, eax
je 0x407db6
lea eax, [ebp - 0x4c]
push str.6.0.0.0
push eax
call fcn.00402e32
pop ecx
test eax, eax
pop ecx
jl 0x407db6
mov esi, str.Plugins
push esi
call sub.MSVCRT.dll_strlen
push ebx
mov edi, eax
call sub.MSVCRT.dll_strlen
lea eax, [edi + eax + 1]
pop ecx
cmp eax, 0x20a
pop ecx
ja 0x407cb3
push esi
push ebx
call sub.MSVCRT.dll_strcat
push ebx
push 0x425318
call sub.MSVCRT.dll_strcpy
mov esi, dword [ebp + 8]
add esp, 0x10
call fcn.0040cd19
test eax, eax
jne 0x407dba
push 6
jmp 0x407de6
push 0x10
jmp 0x407de6
mov eax, dword [esi + 0x40]
cmp eax, 0xffffffff
jle 0x407de9
mov eax, dword [esi + eax*4 + 0xf0]
push ebx
mov dword [eax + 8], 1
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + eax*4 + 0xf0]
call fcn.00401e00
test eax, eax
jne 0x407de9
push 5
pop eax
jmp 0x407deb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407df0
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov eax, dword [edi + 0xbc]
cmp eax, esi
je 0x407f22
push str.APPLICATION
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x407f22
cmp dword [0x425040], esi
je 0x407e34
mov dword [edi + 0x64], 0x425420
jmp 0x407e40
mov eax, dword [0x42504c]
cmp eax, esi
je 0x407e40
mov dword [edi + 0x64], eax
cmp dword [edi + 0xc], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
je 0x407e66
mov esi, 0x425318
push esi
push dword [edi + 0x64]
call fcn.0040c020
pop ecx
test eax, eax
pop ecx
jne 0x407ecd
push 8
jmp 0x407f1f
mov eax, dword [edi + 0x64]
cmp eax, esi
jne 0x407ec0
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x104]
push str._temp
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x104]
push eax
call ebx
cmp eax, 0xffffffff
je 0x407eac
lea eax, [ebp - 0x104]
push eax
call ebx
test al, 0x10
jne 0x407eba
lea eax, [ebp - 0x104]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x104]
mov esi, 0x425318
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
call fcn.0040cd19
test eax, eax
jne 0x407eda
push 6
jmp 0x407f1f
push esi
call ebx
cmp eax, 0xffffffff
je 0x407ee9
push esi
call ebx
test al, 0x10
jne 0x407efb
push 0
push esi
call fcn.00402868
pop ecx
test eax, eax
pop ecx
je 0x407e5f
mov eax, dword [edi + 0x40]
cmp eax, 0xffffffff
jle 0x407f22
cmp dword [0x425310], 0
je 0x407f22
mov ecx, dword [edi + eax*4 + 0xf0]
push esi
call fcn.00401e00
test eax, eax
jne 0x407f22
push 5
pop eax
jmp 0x407f24
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407f29
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 0xbc]
test eax, eax
je 0x408016
push str.TEMP
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x408016
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x407fc3
mov esi, 0x425318
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x104]
push str.wtinst
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x407fc3
call fcn.0040cd19
test eax, eax
jne 0x407fa0
push 6
jmp 0x407fc5
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
call edi
cmp eax, 0xffffffff
je 0x407fb5
push esi
call edi
test al, 0x10
jne 0x407fc8
push 0
push esi
call fcn.00402868
pop ecx
test eax, eax
pop ecx
jne 0x407fc8
push 8
pop eax
jmp 0x408018
mov eax, dword [ebx + 0x40]
cmp eax, 0xffffffff
jle 0x407fe6
mov ecx, dword [ebx + eax*4 + 0xf0]
push esi
call fcn.00401e00
test eax, eax
jne 0x407fe6
push 5
pop edi
jmp 0x40800b
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call edi
push ebx
call fcn.0040ce32
and dword [ebx + 0xa8], 0
mov dword [ebp + 8], eax
mov dword [esp], 0x425420
call edi
mov edi, dword [ebp + 8]
push esi
call fcn.00402990
pop ecx
mov eax, edi
jmp 0x408018
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408079
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push edi
mov edi, dword [esp + 8]
push 0
push edi
call fcn.0040276b
pop ecx
test eax, eax
pop ecx
jne 0x408091
or eax, 0xffffffff
pop edi
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x417064
push edi
call esi
push str.wcmdmgr.exe
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
dec ecx
pop esi
mov eax, ecx
pop edi
ret

Function at 0x40813e
Capabilities:
Read file via mapping

Disassembly:
push esi
push str.WildTangentMemoryUpdater1.5
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov esi, eax
test esi, esi
jne 0x40815e
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xfd0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x408182
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 8]
mov dword [ecx], esi
mov ecx, dword [esp + 0xc]
pop esi
mov dword [ecx], eax
xor eax, eax
ret
Function at 0x4081bd
Capabilities:
Check mutex on windows

Disassembly:
push esi
push str.wtMutexCmdMgr1.5
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x4081da
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, eax
mov eax, 0x102
cmp ecx, eax
je 0x408212
cmp ecx, 0xffffffff
je 0x408214
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
mov eax, dword [eax]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x40821b
Capabilities:
Check mutex on windows

Disassembly:
push esi
push str.wtMutexCmdMgr1.5
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x408238
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, eax
mov eax, 0x102
cmp ecx, eax
je 0x408271
cmp ecx, 0xffffffff
je 0x408273
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]