joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407334
Capabilities:
Copy file
Create process on windows
Create process suspended
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x3ec]
sub esp, 0x46c
mov eax, dword [0x4220b8]
push ebx
push esi
mov dword [ebp + 0x3e8], eax
push 0x104
lea eax, [ebp - 0x28]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x28]
push 0x5c
push eax
call fcn.0040e33f
mov ebx, str.LVLV_221.EXE
add eax, 2
push ebx
push eax
call fcn.0040e41e
add esp, 0x10
test eax, eax
je 0x407489
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x1e0]
push eax
call edi
lea eax, [ebp + 0x1e0]
push 0x5c
push eax
call fcn.0040e33f
pop ecx
pop ecx
push ebx
add eax, 2
push eax
call edi
push esi
lea eax, [ebp + 0x1e0]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x44
pop edi
push edi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0040cae0
push 0x10
lea eax, [ebp - 0x3c]
push esi
push eax
mov dword [ebp - 0x80], edi
call fcn.0040cae0
add esp, 0x18
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp + 0x1e0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
jne 0x407451
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
lea eax, [ebp + 0x1e0]
jne 0x407434
push eax
push str.RunCloneUpdate_CreateProcess_failed:_s___n
jmp 0x40746d
push esi
push dword [ebp - 0x2c]
push eax
push str.RunCloneUpdate_CreateProcess_failed:_s___n_tError:__s_n
call fcn.00409014
add esp, 0x10
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x407474
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
lea eax, [ebp + 0x1e0]
push eax
push str.RunCloneUpdate_CreateProcess_OK:_s___n
call fcn.00409014
pop ecx
pop ecx
push str.__RunCloneUpdate_exit__221___n_n
call fcn.00409014
pop ecx
push 0xffffff23
call fcn.0040e8de
mov ecx, dword [ebp + 0x3e8]
pop esi
pop ebx
call fcn.0040f65e
add ebp, 0x3ec
leave
ret
Function at 0x407e63
Capabilities:
Create process on windows
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x328
mov eax, dword [0x4220b8]
push ebx
push esi
push edi
push 0x31
mov dword [ebp + 0x6c], eax
mov ebx, ecx
pop ecx
push dword [ebp + 0x78]
xor eax, eax
mov dword [ebp - 0x5c], 0x20
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x264]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x41df1c
lea eax, [ebp - 0x264]
push eax
call esi
push 0x4239a0
lea eax, [ebp - 0x264]
push eax
call esi
push 0x73
xor ecx, ecx
call fcn.00406f86
xor esi, esi
test eax, eax
pop ecx
je 0x407eda
push 0x41df14
lea eax, [ebp - 0x5c]
jmp 0x407ee2
cmp ebx, esi
je 0x407ee5
push ebx
lea eax, [ebp - 0x5a]
push eax
call edi
lea eax, [ebp - 0x5c]
push eax
push str.TryRun_szCmd_s___n
call fcn.00409014
push 0x44
pop edi
push edi
lea eax, [ebp - 0x2b8]
push esi
push eax
call fcn.0040cae0
push 0x10
lea eax, [ebp - 0x274]
push esi
push eax
mov dword [ebp - 0x2b8], edi
call fcn.0040cae0
add esp, 0x20
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x2b8]
push eax
push dword [ebp + 0x78]
lea eax, [ebp - 0x5c]
push esi
push esi
push esi
push esi
push esi
push eax
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x407f5c
lea eax, [ebp - 0x264]
push eax
push str.TryRun_CreateProcess_failed:_s___n
call fcn.00409014
pop ecx
pop ecx
jmp 0x407fd5
push dword [ebp + 0x7c]
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
mov edi, 0x80
jne 0x407f8d
mov dword [ebp - 0x28c], edi
push dword [ebp - 0x274]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x270]
call esi
mov eax, dword [ebp - 0x28c]
cmp eax, 2
je 0x407fd9
cmp eax, edi
je 0x407fc0
cmp eax, 0x103
je 0x407fd9
cmp eax, 0xc0000135
jne 0x407fe2
push eax
lea eax, [ebp - 0x264]
push eax
push str.TryRun_GetExitCodeProcess_failed:_s__Flags0x_x__n
call fcn.00409014
add esp, 0xc
xor eax, eax
jmp 0x407fff
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push dword [ebp - 0x28c]
lea eax, [ebp - 0x264]
push eax
push str.TryRun_CreateProcess_OK:_s_Flags0x_x__n
call fcn.00409014
xor eax, eax
add esp, 0xc
inc eax
mov ecx, dword [ebp + 0x6c]
pop edi
pop esi
pop ebx
call fcn.0040f65e
add ebp, 0x70
leave
ret
Function at 0x4081aa
Capabilities:
Copy file
Create directory
Create process on windows
Get common file path
Get program files directory

Disassembly:
dec eax
push esi
push edi
je 0x40827b
dec eax
je 0x408261
dec eax
je 0x40820f
dec eax
je 0x408203
dec eax
je 0x4081ca
xor eax, eax
jmp 0x4082e4
call fcn.0040b9fd
mov esi, 0x424340
call fcn.0040a193
push str.QuietInstall__SetRegister_n
call fcn.00409014
pop ecx
push 1
mov ecx, 0x423ef0
call fcn.00404115
push 0
push dword [0x422cd4]
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x4082e1
pop edi
mov ecx, 0x424340
pop esi
jmp fcn.00409cce
test edx, edx
jl 0x4081c3
mov eax, dword [0x423ef4]
test eax, eax
je 0x4081c3
mov ecx, dword [0x423ef8]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x4081c3
mov edi, edx
shl edi, 2
add eax, edi
mov eax, dword [eax]
mov esi, 0x424340
push esi
push dword [eax + 0x38]
push str.QuietInstall__RunSfxSetup__s_at__s._n
call fcn.00409014
mov eax, dword [0x423ef4]
add esp, 0xc
add eax, edi
mov eax, dword [eax]
push esi
push dword [eax + 0x38]
call fcn.0040b1dc
jmp 0x4082e1
push 0x424340
xor eax, eax
push eax
push eax
push eax
call fcn.0040b4fa
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
jmp 0x4082e4
push ebx
xor ebx, ebx
push ebx
push 0x26
mov esi, 0x424340
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.Dianji
push esi
call edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call ebx
push 0x41df1c
push esi
call edi
push dword [0x422ccc]
push esi
call edi
push 0
push esi
call ebx
push esi
push str.QuietInstall:_szInstallDir_s_n
call fcn.00409014
pop ecx
pop ecx
push 0
mov ecx, 0x423ef0
call fcn.00404115
push str.QuietInstall__SaveInstallReadyStatus_n
call fcn.00409014
pop ecx
pop ebx
xor eax, eax
inc eax
pop edi
pop esi
ret

Function at 0x40870a
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
test edx, edx
jbe 0x40872c
push esi
push edi
movzx edi, byte [ecx]
mov esi, eax
shl eax, 8
shr esi, 0x18
or eax, edi
xor eax, dword [esi*4 + 0x41c500]
inc ecx
dec edx
jne 0x408712
pop edi
pop esi
mov ecx, eax
shr ecx, 0x18
shl eax, 8
xor eax, dword [ecx*4 + 0x41c500]
mov ecx, eax
shr ecx, 0x18
shl eax, 8
xor eax, dword [ecx*4 + 0x41c500]
mov ecx, eax
shr ecx, 0x18
shl eax, 8
xor eax, dword [ecx*4 + 0x41c500]
mov ecx, eax
shr ecx, 0x18
shl eax, 8
xor eax, dword [ecx*4 + 0x41c500]
ret
Function at 0x408769
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4193ee
call fcn.0040fe54
sub esp, 0x440
mov eax, dword [0x4220b8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x44], ebx
mov eax, dword [0x422e4c]
push edi
mov ecx, 0x422e4c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
lea esi, [ebp - 0x38]
mov dword [ebp - 4], ebx
call fcn.00404a7d
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 0x4088fe
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 0x4088f5
add eax, 4
push eax
mov dword [ebp - 0x44], ebx
call fcn.0040c94c
mov esi, eax
mov eax, dword [ebp - 0x3c]
add eax, 4
push eax
push ebx
push esi
mov dword [ebp - 0x34], esi
call fcn.0040cae0
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 0x4088f5
cmp dword [ebp - 0x44], edi
jne 0x4088f5
cmp dword [esi], 0x4d454f4c
je 0x408871
mov eax, dword [0x422e4c]
mov ecx, 0x422e4c
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.00408933
mov edi, dword [ebp - 0x34]
push edi
lea eax, [ebp - 0x38]
call fcn.004051e8
lea eax, [edi - 0x10]
mov byte [ebp - 4], bl
call fcn.0040252e
jmp 0x4088ee
push dword [esi + 4]
lea edi, [ebp - 0x30]
push str._2_db_L_
push 0x20
pop eax
call fcn.004086ae
pop ecx
pop ecx
mov eax, edi
push eax
push eax
call fcn.0040cc00
pop ecx
push eax
lea esi, [ebp - 0x44c]
call fcn.004089b9
mov eax, dword [ebp - 0x3c]
add eax, 4
push eax
call fcn.0040c94c
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.00408ab2
push ebx
call fcn.0040e3de
lea ebx, [esi + 4]
add esp, 0x14
lea edx, [edi - 0xc]
mov ecx, ebx
mov dword [ebp - 0x34], esi
call fcn.0040870a
cmp dword [esi], eax
jne 0x4088f5
push ebx
lea eax, [ebp - 0x38]
push eax
call fcn.00404abd
push esi
call fcn.0040e3de
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.0040494a
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.0040252e
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.0040f65e
leave
ret
Function at 0x408fe2
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
lea eax, [ebp - 0x24]
push eax
mov esi, 0x41c920
push esi
call fcn.0040dfbc
cmp dword [ebp - 0x10], 0x10000
pop ecx
pop ecx
jl 0x409011
push 1
push str.c:_templlsetupbak.log
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
leave
ret

Function at 0x4092e7
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x419493
call fcn.0040fe54
sub esp, 0x420
mov eax, dword [0x4220b8]
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.0040e33f
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 0x41ca78
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.00409014
cmp word [ebp - 0x420], 0
pop ecx
pop ecx
je 0x409457
mov eax, dword [0x422e4c]
mov edi, 0x422e4c
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
and dword [ebp - 4], 0
mov eax, dword [0x422e4c]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
mov byte [ebp - 4], 1
mov eax, dword [0x422e4c]
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.00404abd
lea eax, [ebp - 0x42c]
push eax
push 0x422c6c
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.00406b78
push dword [ebp - 0x428]
mov ebx, 0x4236b8
push ebx
call esi
push dword [ebp - 0x42c]
mov edi, 0x4234b0
push edi
call esi
push edi
push dword [0x422c6c]
push ebx
push str.GetDebugServerInfo_g_szServerDNS___s__g_uServerPort_u__cgi_s_n
call fcn.00409014
mov eax, dword [ebp - 0x42c]
add esp, 0x10
add eax, 0xfffffff0
call fcn.0040252e
mov eax, dword [ebp - 0x428]
add eax, 0xfffffff0
call fcn.0040252e
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
call fcn.0040252e
jmp 0x4094bf
push str.llsetup.ini
push edi
call esi
lea eax, [ebp - 0x218]
push eax
push ebx
mov ebx, 0x4236b8
push ebx
push str.www.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, 0x4234b0
push edi
mov dword [0x422c6c], eax
call esi
push edi
push dword [0x422c6c]
push ebx
push str.GetDebugServerInfo_llsetup.ini_g_szServerDNS___s__g_uServerPort_u__cgi_s_n
call fcn.00409014
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.0040f65e
leave
ret
Function at 0x409a89
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x419468
call fcn.0040fe54
sub esp, 0x224
mov eax, dword [0x4220b8]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x230], ebx
mov esi, str._build_info
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.00409d9e
test eax, eax
lea eax, [ebp - 0x224]
je 0x409ae0
push eax
push str.GetLavaVersion_GetRegInstallDir___s_n
call fcn.00409014
jmp 0x409afb
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x224]
push 0x5c
push eax
call fcn.0040e33f
mov word [eax + 2], bx
pop ecx
pop ecx
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x226], 0x5c
lea eax, [ebp - 0x224]
je 0x409b22
push str._verinfo.dat
jmp 0x409b27
push str.verinfo.dat
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x224]
push eax
push str.GetLavaVersion_szVerFile___s_n
call fcn.00409014
pop ecx
pop ecx
push ebx
push 0x80
push 3
push ebx
push 1
push connect
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x409b7a
push 0x41e71c
push dword [ebp + 8]
call fcn.0040a1e4
mov eax, dword [ebp + 8]
jmp 0x409c8c
lea eax, [ebp - 0x224]
push eax
push str.GetLavaVersion_OpenFile_OK.___s_n
call fcn.00409014
pop ecx
pop ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x228], eax
inc eax
push eax
call fcn.0040c94c
pop ecx
push ebx
mov esi, eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x228]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x228]
push 0x208
mov byte [esi + eax], bl
lea eax, [ebp - 0x224]
push ebx
push eax
call fcn.0040cae0
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x228]
push esi
call fcn.00408f32
push esi
call fcn.0040e3de
pop ecx
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0040a1e4
lea eax, [ebp - 0x224]
push eax
push str._build_real
push eax
lea edi, [ebp - 0x230]
mov dword [ebp - 4], ebx
call fcn.0040c49f
mov byte [ebp - 4], 1
push dword [ebp - 0x22c]
mov esi, dword [ebp - 0x230]
push esi
call fcn.0040ea88
test eax, eax
pop ecx
pop ecx
je 0x409c5a
add esi, 0xfffffff0
mov eax, esi
call fcn.00406582
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, esi
jmp 0x409c77
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.0040c49f
lea eax, [esi - 0x10]
call fcn.0040252e
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
call fcn.0040252e
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0040f65e
leave
ret
Function at 0x409cce
Capabilities:
Copy file

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x4220b8]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
mov dword [ebp + 0x398], eax
je 0x409d87
cmp word [esi], bx
je 0x409d87
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.0040e33f
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 0x409d53
mov word [edi], 0x5c
inc edi
inc edi
mov dword [ebp - 0x7c], ebx
mov ebx, dword [ebp - 0x7c]
lea ebx, [ebx + 0x422cd8]
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 0x409d56
xor eax, eax
inc eax
pop edi
jmp 0x409d89
xor eax, eax
mov ecx, dword [ebp + 0x398]
pop esi
pop ebx
call fcn.0040f65e
add ebp, 0x39c
leave
ret

Function at 0x409d9e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x4220b8]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
push dword [0x422cf0]
add eax, eax
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x20c]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
xor ebx, ebx
cmp word [0x423a68], bx
lea eax, [ebp - 0x20c]
je 0x409dfb
push str.LvOem
push eax
call edi
push 0x423a68
lea eax, [ebp - 0x20c]
jmp 0x409e01
push dword [0x422ccc]
push eax
call edi
push ebx
lea eax, [ebp - 0x460]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x464]
push eax
push ebx
push dword [0x422cf4]
push dword [ebp - 0x460]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push dword [ebp - 0x460]
jne 0x409ed9
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x20e], 0x5c
mov dword [ebp + 0xc], eax
je 0x409e91
push 0x41df1c
lea eax, [ebp - 0x20c]
push eax
call edi
push 0x4239a0
lea eax, [ebp - 0x20c]
push eax
call edi
xor eax, eax
mov dword [ebp - 0x45c], ebx
mov ecx, 0x93
lea edi, [ebp - 0x458]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x409edf
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
jmp 0x409ee1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0040f65e
leave
ret 8
Function at 0x409ef0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4193c2
call fcn.0040fe54
sub esp, 0x14
push esi
push edi
xor esi, esi
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00404c1f
pop ecx
pop ecx
mov dword [ebp - 4], esi
push dword [0x422cec]
lea eax, [ebp - 0x10]
push eax
call fcn.004048c0
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.0040252e
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40a193
Capabilities:
Create process on windows

Disassembly:
push 0
push str.uninst.exe__s
call dword [sym.imp.KERNEL32.dll_WinExec]
push esi
call fcn.00406e8e
push esi
call fcn.0040a13e
push eax
push esi
push 0x41e838
call fcn.00409014
add esp, 0xc
ret

Function at 0x40a684
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x4220b8]
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.0040e33f
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 0x40a703
cmp eax, 0x804
je 0x40a6fb
push dword [0x422d00]
jmp 0x40a709
push dword [0x422cf8]
jmp 0x40a709
push dword [0x422cfc]
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 0x40a740
push ebx
push dword [ebp - 0x70]
call dword [sym.imp.USER32.dll_ShowWindow]
or eax, 0xffffffff
jmp 0x40a793
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.0040c94c
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.0040e3de
pop ecx
xor eax, eax
pop edi
mov ecx, dword [ebp + 0x19c]
pop esi
pop ebx
call fcn.0040f65e
add ebp, 0x1a0
leave
ret
Function at 0x40a842
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3ac
mov eax, dword [0x4220b8]
push 0x83
push dword [0x4238d0]
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 0x40a8d1
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.0040f65e
leave
ret