joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a9b4
Capabilities:
Copy file
Create directory
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x4280c8]
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.00410545
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 0x420b70
push str.COPYDIR
push str.PPDOWNLOAD
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x40ab25
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 0x40aa70
lea ebx, [ebp + eax*2 + 0x192]
mov word [ebx], 0x5c
and dword [ebp - 0x7c], 0
mov eax, esi
call fcn.00404d22
test eax, eax
jbe 0x40ab22
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.00410545
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.0040b1f8
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 0x40ab0f
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.0040b1f8
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.00404d22
cmp dword [ebp - 0x7c], eax
jb 0x40aa83
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x398]
pop edi
pop ebx
call fcn.004120cb
add ebp, 0x39c
leave
ret
Function at 0x40b163
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
mov eax, dword [0x4280c8]
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, 0x42a468
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.0041077c
cmp dword [ebp - 0x6c], 0x10000
pop ecx
pop ecx
jl 0x40b1d8
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.0040b1f8
pop ecx
mov ecx, dword [ebp + 0x1ac]
pop edi
pop esi
call fcn.004120cb
add ebp, 0x1b0
leave
ret

Function at 0x40b418
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x41d44a
call fcn.004128c4
sub esp, 0x230
mov eax, dword [0x4280c8]
and dword [ebp - 0x23c], 0
push dword [0x42a460]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x30]
push str.MINI_d
push eax
call fcn.00410bc3
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push dword [ebp + 8]
movzx eax, ax
cmp eax, 0x404
je 0x40b479
cmp eax, 0x804
lea eax, [ebp - 0x20]
je 0x40b472
push 0x424644
jmp 0x40b481
push 0x424654
jmp 0x40b481
push 0x42464c
lea eax, [ebp - 0x20]
push eax
call fcn.00410bc3
mov eax, dword [0x4291ac]
add esp, 0xc
push esi
mov ecx, 0x4291ac
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.00410545
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 0x40b50f
xor eax, eax
jmp 0x40b516
push esi
call fcn.0040ffbd
pop ecx
lea edx, [ebp - 0x23c]
call fcn.00402429
add esi, 0xfffffff0
mov eax, esi
call fcn.00404f0d
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.004120cb
leave
ret
Function at 0x40b664
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x41d593
call fcn.004128c4
sub esp, 0x420
mov eax, dword [0x4280c8]
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.00410545
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 0x420b70
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.0040b1f8
cmp word [ebp - 0x420], 0
pop ecx
pop ecx
je 0x40b7d4
mov eax, dword [0x4291ac]
mov edi, 0x4291ac
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
and dword [ebp - 4], 0
mov eax, dword [0x4291ac]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
mov byte [ebp - 4], 1
mov eax, dword [0x4291ac]
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.00405080
lea eax, [ebp - 0x42c]
push eax
push 0x428f98
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.0040792f
push dword [ebp - 0x428]
mov ebx, 0x429c28
push ebx
call esi
push dword [ebp - 0x42c]
mov edi, 0x429a20
push edi
call esi
push edi
push dword [0x428f98]
push ebx
push str.GetDebugServerInfo_g_szServerDNS___s__g_uServerPort_u__cgi_s_n
call fcn.0040b1f8
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 0x40b83c
push str.llsetup.ini
push edi
call esi
lea eax, [ebp - 0x218]
push eax
push ebx
mov ebx, 0x429c28
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, 0x429a20
push edi
mov dword [0x428f98], eax
call esi
push edi
push dword [0x428f98]
push ebx
push str.GetDebugServerInfo_llsetup.ini_g_szServerDNS___s__g_uServerPort_u__cgi_s_n
call fcn.0040b1f8
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.004120cb
leave
ret
Function at 0x40c0ab
Capabilities:
Copy file

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x4280c8]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
mov dword [ebp + 0x398], eax
je 0x40c164
cmp word [esi], bx
je 0x40c164
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.00410545
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 0x40c130
mov word [edi], 0x5c
inc edi
inc edi
mov dword [ebp - 0x7c], ebx
mov ebx, dword [ebp - 0x7c]
lea ebx, [ebx + 0x429004]
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 0x40c133
xor eax, eax
inc eax
pop edi
jmp 0x40c166
xor eax, eax
mov ecx, dword [ebp + 0x398]
pop esi
pop ebx
call fcn.004120cb
add ebp, 0x39c
leave
ret
Function at 0x40c201
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x41d404
call fcn.004128c4
sub esp, 0x220
mov eax, dword [0x4280c8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
push dword [0x42901c]
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 [0x429fd8], si
lea eax, [ebp - 0x218]
je 0x40c26e
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.LvOem
push eax
call edi
push 0x429fd8
lea eax, [ebp - 0x218]
push eax
call edi
jmp 0x40c27b
push dword [0x428ff8]
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 0x40c2b5
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x220], eax
jmp 0x40c300
mov eax, dword [0x4291ac]
mov ecx, 0x4291ac
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x10], eax
push dword [ebp + 8]
lea eax, [ebp + 0x10]
push 0x4240c4
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 [0x429020]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
pop ebx
jne 0x40c333
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 0x40c34e
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.004120cb
leave
ret 0xc

Function at 0x40c3bc
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x41d495
call fcn.004128c4
sub esp, 0x14
push esi
push edi
xor esi, esi
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.004054a0
pop ecx
pop ecx
mov dword [ebp - 4], esi
push dword [0x429018]
lea eax, [ebp - 0x10]
push eax
call fcn.00404e83
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 0x40c65f
Capabilities:
Create process on windows

Disassembly:
push 0
push str.uninst.exe__s
call dword [sym.imp.KERNEL32.dll_WinExec]
push esi
call fcn.00407c45
push esi
call fcn.0040c60a
push eax
push esi
push str.SetRegister:GetDriveType___s____d_n
call fcn.0040b1f8
add esp, 0xc
ret
Function at 0x40ca4a
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x4280c8]
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.00410545
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 0x40cac9
cmp eax, 0x804
je 0x40cac1
push dword [0x42902c]
jmp 0x40cacf
push dword [0x429024]
jmp 0x40cacf
push dword [0x429028]
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 0x40cb06
push ebx
push dword [ebp - 0x70]
call dword [sym.imp.USER32.dll_ShowWindow]
or eax, 0xffffffff
jmp 0x40cb59
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.0040f0dc
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.00410b38
pop ecx
xor eax, eax
pop edi
mov ecx, dword [ebp + 0x19c]
pop esi
pop ebx
call fcn.004120cb
add ebp, 0x1a0
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3ac
mov eax, dword [0x4280c8]
push 0x83
push dword [0x429e40]
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 0x40cc97
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.004120cb
leave
ret
Function at 0x40d29b
Capabilities:
Create thread
Terminate process

Disassembly:
mov eax, 0x41d920
call fcn.004128c4
cmp dword [ebp + 0xc], 5
jne 0x40d422
mov eax, dword [0x42acc8]
push esi
xor esi, esi
cmp eax, esi
jne 0x40d2e7
or dword [0x42acc8], 0xffffffff
push esi
push esi
push esi
push 0x40d1d6
push esi
push esi
mov dword [0x42a2f8], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x42acc8], 0xfffffffe
jmp 0x40d421
cmp eax, 0xffffffff
je 0x40d421
cmp eax, 0xfffffffe
push edi
jne 0x40d3ae
mov eax, dword [0x42a2f8]
cmp eax, esi
je 0x40d420
cmp eax, 0x1000
push esi
jge 0x40d325
or dword [0x42acc8], 0xffffffff
push 0x8b
push dword [ebp + 8]
call fcn.0040b5fc
jmp 0x40d33b
lea eax, [ebp + 8]
push eax
call fcn.004054a0
pop ecx
pop ecx
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], esi
jne 0x40d342
push 1
call fcn.00410db9
mov eax, dword [0x4291ac]
mov ecx, 0x4291ac
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 1
mov eax, dword [0x42a2f8]
push eax
push eax
push dword [0x42a2fc]
lea eax, [ebp + 0xc]
push str._s0_ld_ld1_r_n_r_n
push eax
call fcn.004023ad
mov esi, dword [ebp + 0xc]
add esp, 0x14
push dword [ebp + 8]
mov edi, 0x42a678
push esi
push edi
call fcn.00403916
push edi
call fcn.004038ab
lea eax, [esi - 0x10]
mov dword [0x42acc8], 1
call fcn.00402528
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00402528
jmp 0x40d420
push ebx
mov edi, 0x42a678
push edi
call fcn.00403edf
mov ebx, eax
cmp ebx, esi
jl 0x40d41f
cmp ebx, 0x64
jge 0x40d3fd
cmp ebx, 0x5f
jle 0x40d3cd
push 0x5f
pop ebx
push 0x3e8
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
mov ecx, eax
push 0x64
pop esi
lea eax, [ebx + ebx*4]
shl eax, 3
xor edx, edx
div esi
add eax, 0xa
push eax
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40d41f
push esi
mov ecx, edi
call fcn.00404615
mov esi, dword [ebp + 8]
push 5
push esi
call dword [sym.imp.USER32.dll_KillTimer]
call fcn.0040c889
push 1
push esi
call dword [sym.imp.USER32.dll_EndDialog]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40d62d
Capabilities:
Create process on windows
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.0040f270
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
mov dword [ebp - 0x54], 0x44
call fcn.0040f270
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 8]
push esi
push esi
push esi
push esi
push esi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40d6c4
push esi
push esi
lea eax, [ebp + 8]
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
push esi
jne 0x40d6a5
push str.RunSfxSetup_CreateProcess_FormatMessage_Error._n
call fcn.0040b1f8
pop ecx
pop ecx
jmp 0x40d6bf
push dword [ebp + 8]
push ebx
push str.RunSfxSetup_CreateProcess_Cmd_s__Error:__s_n
call fcn.0040b1f8
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
or eax, 0xffffffff
jmp 0x40d719
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x28]
push ebx
push str.RunSfxSetup_Cmd_s__return_d_n
call fcn.0040b1f8
add esp, 0xc
cmp dword [ebp - 0x28], 1
ja 0x40d716
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x28]
pop esi
leave
ret 4

Function at 0x40d7dc
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov ebx, eax
push 0x2e
push ebx
call fcn.00410545
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40d824
push str..DLL
push esi
call fcn.00410e34
test eax, eax
pop ecx
pop ecx
jne 0x40d80a
push edi
push ebx
call fcn.0040d71e
jmp 0x40d82a
push str..CAB
push esi
call fcn.00410e34
test eax, eax
pop ecx
pop ecx
push edi
jne 0x40d825
push ebx
call fcn.004034dc
jmp 0x40d82a
push edi
call fcn.0040d62d
push edi
mov esi, eax
push ebx
push esi
push str.RunSfxSetup_ret_d__Cmd_s__Dir_s_n
call fcn.0040b1f8
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
pop esi
pop ebx
ret
Function at 0x40d848
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4280c8]
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x228], ebx
mov ecx, 0x88
lea edi, [ebp - 0x224]
push 8
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40d89f
lea eax, [ebp - 0x228]
push eax
push esi
mov dword [ebp - 0x228], 0x224
call sub.KERNEL32.dll_Module32First
test eax, eax
jne 0x40d8a3
xor al, al
jmp 0x40d8d6
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call fcn.004198c2
test eax, eax
pop ecx
pop ecx
je 0x40d8cb
lea eax, [ebp - 0x228]
push eax
push esi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x40d8a3
jmp 0x40d8cd
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004120cb
leave
ret

Function at 0x40d8e3
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x238
mov eax, dword [0x4280c8]
push ebx
push esi
push edi
mov dword [ebp + 0x70], eax
push 0x104
lea eax, [ebp - 0x1bc]
xor ebx, ebx
push eax
push ebx
mov dword [ebp - 0x1c0], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x1bc]
push 0x5c
push eax
call fcn.00411e50
pop ecx
pop ecx
push ebx
push ebx
lea ecx, [ebp - 0xb9]
sub ecx, eax
push ecx
lea esi, [eax + 1]
push esi
push 0xffffffffffffffff
push 0x429f10
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x49
pop ecx
push ebx
xor eax, eax
mov dword [ebp - 0xb8], ebx
lea edi, [ebp - 0xb4]
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x1c4], eax
je 0x40d988
lea eax, [ebp - 0xb8]
push eax
push dword [ebp - 0x1c4]
mov dword [ebp - 0xb8], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x40d98f
xor eax, eax
jmp 0x40da3f
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.004198c2
test eax, eax
pop ecx
pop ecx
jne 0x40da13
push dword [ebp - 0xb0]
lea eax, [ebp - 0x1bc]
push eax
call fcn.0040d848
test al, al
pop ecx
pop ecx
je 0x40da13
lea eax, [ebp - 0x94]
push eax
push str.KillLavaProcessA:_pe32.szExeFile_S_n
call fcn.0040b1f8
inc dword [ebp - 0x1c0]
cmp byte [ebp + 0x7c], bl
pop ecx
pop ecx
je 0x40da2d
push dword [ebp - 0xb0]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp - 0xb0]
mov edi, eax
push edi
push str.KillLavaProcessA:_hLava0x_x__pe32.th32ProcessID0x_x_n
call fcn.0040b1f8
add esp, 0xc
cmp edi, ebx
je 0x40da0c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xb8]
push eax
push dword [ebp - 0x1c4]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40d98f
push dword [ebp - 0x1c4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c0]
mov ecx, dword [ebp + 0x70]
pop edi
pop esi
pop ebx
call fcn.004120cb
add ebp, 0x74
leave
ret 4
Function at 0x40da51
Capabilities:
Copy file
Delete file

Disassembly:
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push ebx
push 0x429e48
mov ebp, 0x429f10
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40db00
mov edi, str.DianjiRingExit
push ebp
inc ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40dae4
push str.CheckLavaRun_DeleteFile
call fcn.0040c688
cmp ebx, 1
pop ecx
jne 0x40dac7
push 0
call fcn.004022ca
cmp eax, ebx
jne 0x40dafc
push edi
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push 0
push 0
mov esi, eax
push esi
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
push edi
push esi
push str.CheckLavaRun__uMsg_d__g_szExitMessage_s_n
call fcn.0040b1f8
add esp, 0xc
jmp 0x40dad3
cmp ebx, 0x3c
jne 0x40dad3
push 1
call fcn.0040d8e3
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp ebx, 0x5a
jl 0x40da76
inc ebx
cmp ebx, 0x5a
jl 0x40db0b
push 0
push 0x82
push 0
call fcn.0040b5fc
push 0xfffffffffffffffd
pop eax
jmp 0x40db0d
push 0xfffffffffffffffe
jmp 0x40daf9
push str.CheckLavaRun_CopyFile
call fcn.0040c688
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret