joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408f82
Capabilities:
Move file

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

Function at 0x409287
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4220b8]
push esi
push edi
mov dword [ebp - 4], eax
mov esi, 0x104
push esi
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.0040e14e
pop ecx
pop ecx
inc eax
inc eax
push str.llsetup.ini
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20c]
push eax
push esi
mov edi, 0x4234b0
push edi
push str.www.lava_lava.com
push str.server
mov esi, str.update
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
push eax
push 0x50
push str.port
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push edi
push str.GetDebugServerInfo_g_szServerDNS___s__g_uServerPort_u_n
mov dword [0x422c6c], eax
call fcn.00408fb4
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
call fcn.0040f3d9
leave
ret
Function at 0x4098d9
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x4220b8]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x80], ebx
mov esi, str._build_info
lea edi, [ebp + 0x18c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp + 0x198], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x7c]
push eax
call fcn.00409b4e
test eax, eax
lea eax, [ebp - 0x7c]
je 0x40992b
push eax
push str.GetLavaVersion_GetRegInstallDir___s_n
call fcn.00408fb4
jmp 0x409943
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x7c]
push 0x5c
push eax
call fcn.0040e14e
mov word [eax + 2], bx
pop ecx
pop ecx
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x7e], 0x5c
lea eax, [ebp - 0x7c]
je 0x409961
push str._verinfo.dat
jmp 0x409966
push str.verinfo.dat
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x7c]
push eax
push str.GetLavaVersion_szVerFile___s_n
call fcn.00408fb4
pop ecx
pop ecx
push ebx
push 0x80
push 3
push ebx
push 1
push connect
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4099b9
push 0x41e634
push dword [ebp + 0x1a4]
call fcn.00409f94
mov eax, dword [ebp + 0x1a4]
jmp 0x409a3d
lea eax, [ebp - 0x7c]
push eax
push str.GetLavaVersion_OpenFile_OK.___s_n
call fcn.00408fb4
pop ecx
pop ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x80], eax
inc eax
push eax
call fcn.0040c69e
pop ecx
push ebx
mov esi, eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x80]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x80]
push 0x208
mov byte [esi + eax], bl
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.0040c830
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
push esi
call fcn.00408ed2
push esi
call fcn.0040e24b
mov edi, dword [ebp + 0x1a4]
pop ecx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x18c]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0040c1f0
mov eax, edi
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
pop ebx
call fcn.0040f3d9
add ebp, 0x19c
leave
ret
Function at 0x409a7e
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 0x409b37
cmp word [esi], bx
je 0x409b37
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.0040e14e
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 0x409b03
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 0x409b06
xor eax, eax
inc eax
pop edi
jmp 0x409b39
xor eax, eax
mov ecx, dword [ebp + 0x398]
pop esi
pop ebx
call fcn.0040f3d9
add ebp, 0x39c
leave
ret

Function at 0x409b4e
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 [0x423860], bx
lea eax, [ebp - 0x20c]
je 0x409bab
push str.LvOem
push eax
call edi
push 0x423860
lea eax, [ebp - 0x20c]
jmp 0x409bb1
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 0x409c89
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 0x409c41
push 0x41de4c
lea eax, [ebp - 0x20c]
push eax
call edi
push 0x423798
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 0x409c8f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
jmp 0x409c91
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0040f3d9
leave
ret 8
Function at 0x409ca0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x419082
call fcn.0040fbd0
sub esp, 0x14
push esi
push edi
xor esi, esi
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00404b1e
pop ecx
pop ecx
mov dword [ebp - 4], esi
push dword [0x422cec]
lea eax, [ebp - 0x10]
push eax
call fcn.0040479d
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.0040252d
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x409f43
Capabilities:
Create process on windows

Disassembly:
push 0
push str.uninst.exe__s
call dword [sym.imp.KERNEL32.dll_WinExec]
push esi
call fcn.00406e59
push esi
call fcn.00409eee
push eax
push esi
push 0x41e750
call fcn.00408fb4
add esp, 0xc
ret

Function at 0x40a434
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.0040e14e
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 0x40a4b3
cmp eax, 0x804
je 0x40a4ab
push dword [0x422d00]
jmp 0x40a4b9
push dword [0x422cf8]
jmp 0x40a4b9
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 0x40a4f0
push ebx
push dword [ebp - 0x70]
call dword [sym.imp.USER32.dll_ShowWindow]
or eax, 0xffffffff
jmp 0x40a543
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.0040c69e
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.0040e24b
pop ecx
xor eax, eax
pop edi
mov ecx, dword [ebp + 0x19c]
pop esi
pop ebx
call fcn.0040f3d9
add ebp, 0x1a0
leave
ret
Function at 0x40a5f2
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 [0x4236c8]
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 0x40a681
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.0040f3d9
leave
ret
Function at 0x40a706
Capabilities:
Terminate process

Disassembly:
cmp dword [esp + 4], 4
push esi
mov esi, eax
jne 0x40a72c
push 4
push esi
call dword [sym.imp.USER32.dll_KillTimer]
call fcn.0040a27d
push 1
push esi
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x40a943
cmp dword [esp + 8], 3
jne 0x40a943
mov eax, dword [0x423ce4]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
jne 0x40a748
xor ebx, ebx
jmp 0x40a753
mov ebx, dword [0x423ce8]
sub ebx, eax
sar ebx, 2
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3e8
push esi
call edi
push dword [0x422e34]
mov dword [esp + 0x18], eax
push esi
push str.OnQuietDownloadInstallTimer_hDlg_x__nState_d_n
call fcn.00408fb4
mov ecx, dword [0x422e34]
add esp, 0xc
cmp ecx, ebp
jge 0x40a7cf
push ebp
push 0x423ce0
mov dword [0x422e34], ebp
call fcn.00404c82
test eax, eax
jge 0x40a7a4
push ebp
push 0x6a
push ebp
call fcn.0040921f
jmp 0x40a7b1
push 3
mov eax, esi
call fcn.0040a1fe
test eax, eax
jg 0x40a7b8
push 0xffffffffffffffff
call fcn.0040e6ed
push ebp
push 9
push 0x402
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40a940
jne 0x40a829
mov edi, 0x423ce0
push edi
call fcn.00403ab9
cmp eax, ebp
jl 0x40a940
cmp eax, 0x64
jge 0x40a805
cmp eax, 0x5f
jle 0x40a7f1
push 0x5f
pop eax
push ebp
lea eax, [eax + eax*4]
push 0x64
shl eax, 3
xor edx, edx
pop ecx
div ecx
add eax, 0xa
push eax
jmp 0x40a7bb
push ebp
mov ecx, edi
call fcn.00404193
push 0x85
push 0xffffffffffffffff
push esi
mov dword [0x422e34], 1
call fcn.0040a0bf
jmp 0x40a940
cmp ecx, ebp
jle 0x40a850
cmp ecx, 3
jge 0x40a850
mov eax, ecx
inc ecx
xor edx, edx
mov dword [0x422e34], ecx
call fcn.0040812f
mov eax, dword [0x422e34]
lea eax, [eax + eax*4]
lea eax, [eax + eax + 0x31]
jmp 0x40a8b0
push 3
pop eax
cmp ecx, eax
jle 0x40a879
cmp ecx, 5
jg 0x40a879
mov eax, ecx
inc ecx
xor edx, edx
mov dword [0x422e34], ecx
call fcn.0040812f
mov eax, dword [0x422e34]
lea eax, [eax + eax*4 + 0xf]
shl eax, 1
jmp 0x40a8b0
cmp dword [0x423f1c], ebx
jge 0x40a8c7
mov edx, dword [0x423f1c]
inc dword [0x423f1c]
call fcn.0040812f
mov eax, dword [0x423f1c]
cmp eax, ebx
jl 0x40a8a5
mov dword [0x422e34], 4
lea eax, [eax + eax*4]
shl eax, 1
cdq
idiv ebx
add eax, 0x46
push ebp
push eax
push 0x402
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [0x422e34]
cmp ecx, 5
jle 0x40a940
push 3
push esi
call dword [sym.imp.USER32.dll_KillTimer]
call fcn.0040a27d
push 0x89
push 0xffffffffffffffff
push esi
call fcn.0040a0bf
call fcn.004091a0
push 0x64
pop ecx
xor edx, edx
div ecx
push dword [eax*4 + 0x422d10]
push 2
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push ebp
push 0x3ed
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
push ebp
push 0x3e8
push esi
call edi
push eax
call ebx
push 1
push 0xfffffffffffffff4
push 2
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push ebp
push 0x3a98
push 4
push esi
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop ebp
pop ebx
pop esi
ret 4
Function at 0x40ab31
Capabilities:
Terminate process

Disassembly:
mov eax, 0x41936e
call fcn.0040fbd0
sub esp, 0x10
cmp dword [ebp + 0xc], 5
jne 0x40ad02
mov eax, dword [0x423f18]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
jne 0x40ac8a
or dword [0x423f18], 0xffffffff
lea eax, [ebp - 0x1c]
push eax
xor edi, edi
call fcn.0040662b
mov dword [ebp - 4], ebx
push dword [0x422c6c]
lea eax, [ebp - 0x1c]
push 0x4234b0
call fcn.004066cb
test eax, eax
je 0x40abc6
push ebx
push 0x41cf80
lea eax, [ebp - 0x1c]
call fcn.00406719
test eax, eax
je 0x40abc6
push ebx
push ebx
push ebx
push ebx
lea esi, [ebp - 0x1c]
call fcn.0040676f
test eax, eax
je 0x40abc6
push ebx
push ebx
push dword [0x423b80]
mov ecx, esi
call fcn.00406982
mov edi, eax
push edi
push str.OnDownloadURLRunTimer_OpenUrl_dwFileSize_ld._n
call fcn.00408fb4
pop ecx
pop ecx
cmp dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x40abd9
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x18], ebx
je 0x40abe6
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
cmp edi, 0x1000
push ebx
jge 0x40abfe
push 0x8a
push dword [ebp + 8]
call fcn.0040921f
jmp 0x40ac15
lea eax, [ebp + 0xc]
push eax
call fcn.00404b1e
pop ecx
pop ecx
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], ebx
jne 0x40ac1c
push 1
call fcn.0040e6ed
mov eax, dword [0x422e4c]
mov ecx, 0x422e4c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
push edi
push edi
mov byte [ebp - 4], 2
push dword [0x423b80]
lea eax, [ebp + 8]
push str._s0_ld_ld1_r_n_r_n
push eax
call fcn.004023bd
mov esi, dword [ebp + 8]
add esp, 0x14
push dword [ebp + 0xc]
mov edi, 0x423ce0
push esi
push edi
call fcn.0040370f
call fcn.004036e4
lea eax, [esi - 0x10]
mov dword [0x423f18], 1
call fcn.0040252d
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040252d
lea esi, [ebp - 0x1c]
call fcn.0040669b
jmp 0x40acff
cmp eax, 0xffffffff
je 0x40acff
mov edi, 0x423ce0
push edi
call fcn.00403ab9
mov esi, eax
cmp esi, ebx
jl 0x40acff
cmp esi, 0x64
jge 0x40acdd
cmp esi, 0x5f
jle 0x40acad
push 0x5f
pop esi
push 0x3e8
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
mov ecx, eax
push 0x64
lea eax, [esi + esi*4]
pop esi
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 0x40acff
push ebx
mov ecx, edi
call fcn.00404193
mov esi, dword [ebp + 8]
push 5
push esi
call dword [sym.imp.USER32.dll_KillTimer]
call fcn.0040a27d
push 1
push esi
call dword [sym.imp.USER32.dll_EndDialog]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40af0d
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x1e4]
sub esp, 0x264
mov eax, dword [0x4220b8]
push esi
push edi
push dword [ebp + 0x1ec]
mov dword [ebp + 0x1e0], eax
xor eax, eax
mov dword [ebp - 0x28], 0x22
mov ecx, 0x81
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x26]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.___s
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0040c830
push 0x10
lea eax, [ebp - 0x3c]
push esi
push eax
mov dword [ebp - 0x80], edi
call fcn.0040c830
add esp, 0x18
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x1f0]
lea eax, [ebp - 0x28]
push esi
push esi
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40b005
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
push esi
jne 0x40afe6
push str.RunSfxSetup_CreateProcess_FormatMessage_Error._n
call fcn.00408fb4
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0x1e0]
pop edi
pop esi
call fcn.0040f3d9
add ebp, 0x1e4
leave
ret 8
push dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
push eax
push str.RunSfxSetup_CreateProcess_Cmd_s__Error:__s_n
call fcn.00408fb4
add esp, 0x10
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40afcd
push 0xffffffffffffffff
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
push dword [ebp - 0x54]
lea eax, [ebp - 0x28]
push eax
push str.RunSfxSetup_Cmd_s__return_d_n
call fcn.00408fb4
add esp, 0xc
cmp dword [ebp - 0x54], 1
ja 0x40afcd
push dword [ebp + 0x1ec]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
jmp 0x40afcf
Function at 0x40b05b
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x194
mov eax, dword [0x4220b8]
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push 0x64
mov dword [ebp + 0x74], eax
lea eax, [ebp - 0x118]
push eax
push 0xffffffffffffffff
push 0x423798
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x118]
push eax
call fcn.00418da5
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
pop ecx
push 0x49
pop ecx
xor eax, eax
mov dword [ebp - 0xb4], esi
lea edi, [ebp - 0xb0]
rep stosd dword es:[edi], eax
call ebx
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x11c], eax
je 0x40b18d
lea ecx, [ebp - 0xb4]
push ecx
push eax
mov dword [ebp - 0xb4], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40b18d
lea eax, [ebp - 0x90]
push eax
push str.KillLavaProcessA:_pe32.szExeFile_S_n
call fcn.00408fb4
lea eax, [ebp - 0x90]
push eax
call fcn.00418da5
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.0040d020
add esp, 0x14
test eax, eax
je 0x40b167
call ebx
cmp dword [ebp - 0xac], eax
je 0x40b167
push dword [ebp - 0xac]
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp - 0xac]
mov edi, eax
push edi
push str.KillLavaProcessA:_hLava0x_x__pe32.th32ProcessID0x_x_n
call fcn.00408fb4
add esp, 0xc
cmp edi, esi
je 0x40b160
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xb4]
push eax
push dword [ebp - 0x11c]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40b0eb
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
pop ebx
call fcn.0040f3d9
add ebp, 0x78
leave
ret

Function at 0x40b19d
Capabilities:
Copy file
Delete file

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x4236d0
mov edi, 0x423798
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40b225
xor esi, esi
push edi
inc esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40b20b
cmp esi, 1
jne 0x40b1f0
push ebx
call fcn.004022d0
cmp eax, esi
jne 0x40b221
push str.DianjiRingExit
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push ebx
push ebx
push eax
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40b1fa
cmp esi, 0x3c
jne 0x40b1fa
call fcn.0040b05b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x3c
jl 0x40b1ba
inc esi
cmp esi, 0x5a
jl 0x40b225
push ebx
push 0x82
push ebx
call fcn.0040921f
push 0xfffffffffffffffd
pop eax
jmp 0x40b227
push 0xfffffffffffffffe
jmp 0x40b21e
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x40b647
Capabilities:
Copy file
Get common file path
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x4220b8]
push ebx
push esi
push edi
mov dword [ebp + 0x188], eax
push 0x104
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax]
lea eax, [ebp + ecx - 0x80]
mov dx, word [eax - 2]
cmp dx, 0x5c
je 0x40b69c
cmp dx, 0x2f
je 0x40b69c
mov word [eax], 0x5c
lea eax, [ebp + ecx - 0x7e]
mov esi, str.IdleTest.dll
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x80]
push eax
push str.DoIdleTest:_idletest_to_system_directory:__s_n
call fcn.00408fb4
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x80]
push eax
mov ebx, 0x41c8b4
push ebx
call edi
push 0
lea eax, [ebp - 0x80]
push eax
push esi
call edi
push 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp + 0x188]
pop edi
pop esi
pop ebx
call fcn.0040f3d9
add ebp, 0x18c
leave
ret

Function at 0x40b6f6
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4220b8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileW]
push ebp
push esi
push edi
push 0x423798
mov esi, 0x4236d0
push esi
mov dword [esp + 0x220], eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call ebp
xor edi, edi
lea esi, [edi + 0x41c890]
push dword [esi]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str..DEL
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [esi]
lea eax, [esp + 0x14]
push eax
call ebx
lea eax, [esp + 0x10]
push eax
call ebp
add edi, 4
cmp edi, 0x24
jb 0x40b72a
call fcn.0040b647
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
pop ebx
call fcn.0040f3d9
add esp, 0x20c
ret

Function at 0x40da7a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x40da97
call fcn.0041093b
mov dword [eax], 0x16
xor eax, eax
jmp 0x40db01
push esi
push 0x8c
push 1
call fcn.0040c890
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40daec
push esi
call fcn.00410c29
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x40daca
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x40d9e5
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x40db00
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0040cad8
test ebx, ebx
pop ecx
je 0x40dafe
push ebx
call fcn.0041094d
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret