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

Disassembly:
mov eax, 0x41dfa3
call fcn.004132a4
sub esp, 0x440
mov eax, dword [0x4290c8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x44], ebx
mov eax, dword [0x42a1ac]
push edi
mov ecx, 0x42a1ac
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
lea esi, [ebp - 0x38]
mov dword [ebp - 4], ebx
call fcn.00404faa
push ebx
push ebx
push 3
push ebx
push 1
push connect
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x40], eax
je 0x40a3fc
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push ebx
push ebx
push eax
call edi
cmp eax, 0x10
mov dword [ebp - 0x3c], eax
jbe 0x40a3f3
add eax, 4
push eax
mov dword [ebp - 0x44], ebx
call fcn.0040f9d2
mov esi, eax
mov eax, dword [ebp - 0x3c]
add eax, 4
push eax
push ebx
push esi
mov dword [ebp - 0x34], esi
call fcn.0040fb60
add esp, 0x10
push ebx
push ebx
push ebx
push dword [ebp - 0x40]
call edi
mov edi, dword [ebp - 0x3c]
push ebx
lea eax, [ebp - 0x44]
push eax
push edi
push esi
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a3f3
cmp dword [ebp - 0x44], edi
jne 0x40a3f3
cmp dword [esi], 0x4d454f4c
je 0x40a36f
mov eax, dword [0x42a1ac]
mov ecx, 0x42a1ac
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
push esi
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 1
call fcn.0040600c
mov edi, dword [ebp - 0x34]
push edi
lea eax, [ebp - 0x38]
call fcn.00405c8f
lea eax, [edi - 0x10]
mov byte [ebp - 4], bl
call fcn.00402528
jmp 0x40a3ec
push dword [esi + 4]
lea edi, [ebp - 0x30]
push str._2_db_L_
push 0x20
pop eax
call fcn.0040a1ac
pop ecx
pop ecx
mov eax, edi
push eax
push eax
call fcn.0040fc80
pop ecx
push eax
lea esi, [ebp - 0x44c]
call fcn.0040b06e
mov eax, dword [ebp - 0x3c]
add eax, 4
push eax
call fcn.0040f9d2
mov edi, dword [ebp - 0x3c]
mov esi, eax
mov dword [esi + edi], ebx
mov ebx, dword [ebp - 0x34]
lea eax, [edi - 8]
push eax
lea edx, [ebx + 8]
mov eax, esi
lea ecx, [ebp - 0x44c]
call fcn.0040b167
push ebx
call fcn.00411428
lea ebx, [esi + 4]
add esp, 0x14
lea edx, [edi - 0xc]
mov ecx, ebx
mov dword [ebp - 0x34], esi
call fcn.0040a208
cmp dword [esi], eax
jne 0x40a3f3
push ebx
lea eax, [ebp - 0x38]
push eax
call fcn.00404fea
push esi
call fcn.00411428
pop ecx
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x38]
add esi, 0xfffffff0
mov eax, esi
call fcn.00404cef
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.00402528
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00412aab
leave
ret
Function at 0x40a7ef
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x4290c8]
push esi
xor esi, esi
cmp dword [0x42b680], esi
mov dword [ebp - 4], eax
je 0x40a89c
cmp dword [0x42b470], esi
je 0x40a89c
push dword [ebp + 0x1c]
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str..dju
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x80
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push esi
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0xffffffffffffffff
push dword [ebp + 0x18]
push esi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [0x42b470]
mov edx, dword [eax]
push esi
push 0x42488c
lea ecx, [ebp - 0x310]
push ecx
mov ecx, 0x424d50
push ecx
push ecx
lea ecx, [ebp - 0x108]
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
call dword [edx + 0x3c]
xor eax, eax
jmp 0x40a89f
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
call fcn.00412aab
leave
ret
Function at 0x40ac3c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4290c8]
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.00410e35
pop ecx
pop ecx
push str.ppdownload.ini
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20c]
push eax
push 0
push str.MODE
push str.PPDOWNLOAD
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 4]
call fcn.00412aab
leave
ret

Function at 0x40adae
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor esi, esi
push esi
push esi
push dword [ebp + 8]
push 0x40acaf
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [ebp + 8]
call fcn.004036e9
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x40adee
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
call edi
test eax, eax
jne 0x40adda
pop edi
pop esi
leave
ret

Function at 0x40adff
Capabilities:
Persist via run registry key
Read .ini file
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x5a0]
sub esp, 0x620
mov eax, dword [0x4290c8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp + 0x59c], eax
mov esi, 0x104
push esi
lea eax, [ebp + 0x394]
push eax
xor ebx, ebx
push ebx
call edi
lea eax, [ebp + 0x394]
push 0x5c
push eax
call fcn.00410e35
pop ecx
pop ecx
push str.ppdownload.ini
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp + 0x394]
push eax
push esi
lea eax, [ebp - 0x7c]
push eax
push 0x424d50
push str.AutoRunKey
push str.PPDOWNLOAD
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x40aed2
push esi
lea eax, [ebp + 0x18c]
push eax
push ebx
call edi
push ebx
lea eax, [ebp - 0x80]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp + 0x18c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp + 0x18c]
push eax
push 1
push ebx
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x59c]
pop edi
pop esi
pop ebx
call fcn.00412aab
add ebp, 0x5a0
leave
ret
Function at 0x40aee8
Capabilities:
Copy file
Create directory
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x4290c8]
push ebx
push edi
mov dword [ebp + 0x398], eax
mov ebx, 0x104
push ebx
lea eax, [ebp + 0x190]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x190]
push 0x5c
push eax
call fcn.00410e35
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop ecx
pop ecx
add eax, 2
push str.ppdownload.ini
push eax
mov dword [ebp - 0x7c], eax
call edi
lea eax, [ebp + 0x190]
push eax
push ebx
lea eax, [ebp - 0x78]
push eax
push 0x424d50
push str.COPYDIR
push str.PPDOWNLOAD
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x40b059
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
call edi
push 0
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
lea ebx, [ebp + eax*2 + 0x190]
cmp word [ebx], 0x5c
je 0x40afa4
lea ebx, [ebp + eax*2 + 0x192]
mov word [ebx], 0x5c
and dword [ebp - 0x7c], 0
mov eax, esi
call fcn.00403089
test eax, eax
jbe 0x40b056
mov ecx, dword [ebp - 0x7c]
mov eax, dword [esi + 4]
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
push 0x5c
push eax
call fcn.00410e35
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x80], eax
mov eax, dword [esi + 4]
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
push dword [eax + 0x38]
push str.CopyAfterDownloaded:_src_s._n
call fcn.0040b9f0
mov eax, dword [ebp - 0x80]
add esp, 0x10
add eax, 2
push str.verinfo.dat
push eax
mov dword [ebp - 0x80], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40b043
push dword [ebp - 0x80]
lea eax, [ebx + 2]
push eax
call edi
lea eax, [ebp + 0x190]
push eax
push str.CopyAfterDownloaded:_des_s._n
call fcn.0040b9f0
mov eax, dword [esi + 4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x7c]
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
push 0
lea ecx, [ebp + 0x190]
push ecx
push dword [eax + 0x38]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
inc dword [ebp - 0x7c]
mov eax, esi
call fcn.00403089
cmp dword [ebp - 0x7c], eax
jb 0x40afb7
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x398]
pop edi
pop ebx
call fcn.00412aab
add ebp, 0x39c
leave
ret
Function at 0x40b95b
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
mov eax, dword [0x4290c8]
push esi
mov dword [ebp + 0x1ac], eax
push edi
lea eax, [ebp - 0x5c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x5c]
push eax
mov esi, 0x42b478
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.llsetup.log
push esi
call edi
lea eax, [ebp - 0x80]
push eax
push esi
call fcn.0041106c
cmp dword [ebp - 0x6c], 0x10000
pop ecx
pop ecx
jl 0x40b9d0
push str.llsetbak.log
lea eax, [ebp - 0x5c]
push eax
call edi
push 1
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push str._r_n_r_nCheckLogFile_r_n
call fcn.0040b9f0
pop ecx
mov ecx, dword [ebp + 0x1ac]
pop edi
pop esi
call fcn.00412aab
add ebp, 0x1b0
leave
ret

Function at 0x40bbed
Capabilities:
Check os version
Create process on windows
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x4290c8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
mov dword [ebp + 0x18c], eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x7c]
push eax
xor ebx, ebx
push ebx
call esi
push str..test
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x7c]
push eax
push str.CheckPrivilege__s_n
call fcn.0040b9f0
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x10000000
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x40bc71
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
jmp 0x40bccf
cmp dword [ebp + 0x198], ebx
je 0x40bc95
call dword [sym.imp.KERNEL32.dll_GetVersion]
push eax
push str.CheckPrivilege_dwVersion0x_x_n
mov dword [ebp - 0x80], eax
call fcn.0040b9f0
cmp byte [ebp - 0x80], 6
pop ecx
pop ecx
jae 0x40bc9a
or eax, 0xffffffff
jmp 0x40bccf
push edi
lea eax, [ebp - 0x7c]
push eax
push ebx
call esi
push 5
push ebx
push dword [ebp + 0x198]
lea eax, [ebp - 0x7c]
push eax
push str.runas
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x7c]
push ecx
push eax
push str.CheckPrivilege_hInst0x_x_:__s_n
call fcn.0040b9f0
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp + 0x18c]
pop edi
pop esi
pop ebx
call fcn.00412aab
add ebp, 0x190
leave
ret 4
Function at 0x40bd0a
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x41de5a
call fcn.004132a4
sub esp, 0x230
mov eax, dword [0x4290c8]
and dword [ebp - 0x23c], 0
push dword [0x42b460]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x30]
push str.MINI_d
push eax
call fcn.004114b3
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push dword [ebp + 8]
movzx eax, ax
cmp eax, 0x404
je 0x40bd6b
cmp eax, 0x804
lea eax, [ebp - 0x20]
je 0x40bd64
push 0x4259bc
jmp 0x40bd73
push 0x4259cc
jmp 0x40bd73
push 0x4259c4
lea eax, [ebp - 0x20]
push eax
call fcn.004114b3
mov eax, dword [0x42a1ac]
add esp, 0xc
push esi
mov ecx, 0x42a1ac
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x23c], eax
and dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x238]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x238]
push 0x5c
push eax
call fcn.00410e35
pop ecx
pop ecx
push str.llsetup.ini
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x238]
push eax
mov edx, 0xc8
push edx
lea esi, [ebp - 0x23c]
call fcn.0040240b
push eax
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [ebp - 0x23c]
test esi, esi
jne 0x40be01
xor eax, eax
jmp 0x40be08
push esi
call fcn.004108ad
pop ecx
lea edx, [ebp - 0x23c]
call fcn.00402429
add esi, 0xfffffff0
mov eax, esi
call fcn.00404cef
add eax, 0x10
mov dword [ebx], eax
mov eax, esi
call fcn.00402528
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, ebx
pop esi
call fcn.00412aab
leave
ret
Function at 0x40bf56
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x41df89
call fcn.004132a4
sub esp, 0x420
mov eax, dword [0x4290c8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.00410e35
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop ecx
mov edi, eax
pop ecx
inc edi
push str.appdataconflava.ini
inc edi
push edi
call esi
lea eax, [ebp - 0x218]
push eax
push ebx
lea eax, [ebp - 0x420]
push eax
push 0x424d50
push str.CLIENTUPDATESERVERCGIURL
push str.SERVER
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x420]
push eax
push str.GetDebugServerInfo_URL__s_n
call fcn.0040b9f0
cmp word [ebp - 0x420], 0
pop ecx
pop ecx
je 0x40c0c6
mov eax, dword [0x42a1ac]
mov edi, 0x42a1ac
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
and dword [ebp - 4], 0
mov eax, dword [0x42a1ac]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
mov byte [ebp - 4], 1
mov eax, dword [0x42a1ac]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x424]
push eax
mov byte [ebp - 4], 2
call fcn.00404fea
lea eax, [ebp - 0x42c]
push eax
push 0x429f98
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.00407926
push dword [ebp - 0x428]
mov ebx, 0x42ac28
push ebx
call esi
push dword [ebp - 0x42c]
mov edi, 0x42aa20
push edi
call esi
push edi
push dword [0x429f98]
push ebx
push str.GetDebugServerInfo_g_szServerDNS___s__g_uServerPort_u__cgi_s_n
call fcn.0040b9f0
mov eax, dword [ebp - 0x42c]
add esp, 0x10
add eax, 0xfffffff0
call fcn.00402528
mov eax, dword [ebp - 0x428]
add eax, 0xfffffff0
call fcn.00402528
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
call fcn.00402528
jmp 0x40c12e
push str.llsetup.ini
push edi
call esi
lea eax, [ebp - 0x218]
push eax
push ebx
mov ebx, 0x42ac28
push ebx
push str.cu.lava_lava.com
push str.server
mov edi, str.update
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
push 0x50
push str.port
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push str._cgi_bin_update
mov edi, 0x42aa20
push edi
mov dword [0x429f98], eax
call esi
push edi
push dword [0x429f98]
push ebx
push str.GetDebugServerInfo_llsetup.ini_g_szServerDNS___s__g_uServerPort_u__cgi_s_n
call fcn.0040b9f0
add esp, 0x10
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00412aab
leave
ret
Function at 0x40c99d
Capabilities:
Copy file

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x4290c8]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
mov dword [ebp + 0x398], eax
je 0x40ca56
cmp word [esi], bx
je 0x40ca56
push edi
push 0x104
lea eax, [ebp - 0x78]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x78]
push 0x5c
push eax
call fcn.00410e35
pop ecx
inc eax
inc eax
pop ecx
mov dword [ebp - 0x80], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp + 0x190]
push eax
call esi
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [ebp + eax*2 + 0x190]
cmp word [edi - 2], 0x5c
je 0x40ca22
mov word [edi], 0x5c
inc edi
inc edi
mov dword [ebp - 0x7c], ebx
mov ebx, dword [ebp - 0x7c]
lea ebx, [ebx + 0x42a010]
push dword [ebx]
push dword [ebp - 0x80]
call esi
push dword [ebx]
push edi
call esi
push 1
push edi
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
add dword [ebp - 0x7c], 4
cmp dword [ebp - 0x7c], 0x14
jb 0x40ca25
xor eax, eax
inc eax
pop edi
jmp 0x40ca58
xor eax, eax
mov ecx, dword [ebp + 0x398]
pop esi
pop ebx
call fcn.00412aab
add ebp, 0x39c
leave
ret
Function at 0x40caf3
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x41de14
call fcn.004132a4
sub esp, 0x220
mov eax, dword [0x4290c8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
push dword [0x42a028]
add eax, eax
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x218]
xor esi, esi
push eax
mov dword [ebp - 0x224], esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp word [0x42afd8], si
lea eax, [ebp - 0x218]
je 0x40cb60
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.LvOem
push eax
call edi
push 0x42afd8
lea eax, [ebp - 0x218]
push eax
call edi
jmp 0x40cb6d
push dword [0x429ffc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push ebx
push esi
lea eax, [ebp - 0x21c]
push eax
push esi
mov ebx, 0x20019
push ebx
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
push connect
call edi
cmp dword [ebp + 8], esi
jne 0x40cba7
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x220], eax
jmp 0x40cbf2
mov eax, dword [0x42a1ac]
mov ecx, 0x42a1ac
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x10], eax
push dword [ebp + 8]
lea eax, [ebp + 0x10]
push 0x42543c
push eax
mov dword [ebp - 4], esi
call fcn.004023ad
add esp, 0xc
push esi
lea eax, [ebp - 0x220]
push eax
push esi
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push esi
push esi
push ebx
push dword [ebp - 0x21c]
call edi
lea eax, [ebx - 0x10]
call fcn.00402528
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
push eax
push esi
push dword [0x42a02c]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
pop ebx
jne 0x40cc25
mov dword [ebp - 0x224], 1
push dword [ebp - 0x220]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
cmp dword [ebp + 8], esi
je 0x40cc40
push dword [ebp - 0x21c]
call edi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x224]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.00412aab
leave
ret 0xc

Function at 0x40ccae
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x41dea5
call fcn.004132a4
sub esp, 0x14
push esi
push edi
xor esi, esi
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00405485
pop ecx
pop ecx
mov dword [ebp - 4], esi
push dword [0x42a024]
lea eax, [ebp - 0x10]
push eax
call fcn.00404c65
push dword [ebp - 0x10]
push esi
push str.CheckDate
push str.LastUpdate
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx esi, word [ebp - 0x20]
movzx eax, word [ebp - 0x1e]
imul esi, esi, 0x64
add esi, eax
movzx eax, word [ebp - 0x1a]
imul esi, esi, 0x64
add esi, eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
sub esi, edi
call fcn.00402528
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40cf51
Capabilities:
Create process on windows

Disassembly:
push 0
push str.uninst.exe__s
call dword [sym.imp.KERNEL32.dll_WinExec]
push esi
call fcn.00407c3c
push esi
call fcn.0040cefc
push eax
push esi
push 0x425358
call fcn.0040b9f0
add esp, 0xc
ret
Function at 0x40d341
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x4290c8]
push ebx
push esi
push 0x3f3
push dword [ebp + 0x1a8]
mov dword [ebp + 0x19c], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x70], eax
push 0x104
lea eax, [ebp - 0x6c]
xor ebx, ebx
push eax
push ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x6c]
push 0x5c
push eax
call fcn.00410e35
mov esi, eax
pop ecx
inc esi
pop ecx
inc esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
cmp eax, 0x404
je 0x40d3c0
cmp eax, 0x804
je 0x40d3b8
push dword [0x42a038]
jmp 0x40d3c6
push dword [0x42a030]
jmp 0x40d3c6
push dword [0x42a034]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
push 0x80
push 3
push ebx
push ebx
push connect
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x74], eax
jne 0x40d3fd
push ebx
push dword [ebp - 0x70]
call dword [sym.imp.USER32.dll_ShowWindow]
or eax, 0xffffffff
jmp 0x40d450
push edi
lea ecx, [ebp - 0x78]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.0040f9d2
pop ecx
push ebx
mov edi, eax
lea eax, [ebp - 0x78]
push eax
push esi
push edi
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea eax, [ebp - 0x80]
push eax
push 0x461
push dword [ebp - 0x70]
mov byte [edi + esi], bl
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
call fcn.00411428
pop ecx
xor eax, eax
pop edi
mov ecx, dword [ebp + 0x19c]
pop esi
pop ebx
call fcn.00412aab
add ebp, 0x1a0
leave
ret

Function at 0x40d4ff
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3ac
mov eax, dword [0x4290c8]
push 0x83
push dword [0x42ae44]
mov dword [ebp - 4], eax
mov dword [ebp - 0x3ac], 0x3a8
mov dword [ebp - 0x3a8], esi
mov dword [ebp - 0x3a4], 1
mov dword [ebp - 0x3a0], 7
mov dword [ebp - 0x39c], 0x6fd
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0x398], eax
lea eax, [ebp - 0x394]
push eax
push 0x80
push 0xd
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x3ac]
push eax
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
cmp dword [ebp - 0x398], 0
je 0x40d58e
push dword [ebp - 0x398]
call dword [sym.imp.USER32.dll_DestroyIcon]
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
call fcn.00412aab
leave
ret