joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403690
Capabilities:
Create process on windows
Set registry value

Disassembly:
sub esp, 0x260
mov eax, dword [0x4161c0]
mov dword [esp + 0x25c], eax
mov al, byte [esp + 0x264]
test al, al
push esi
mov esi, ecx
je 0x4036f7
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
cmp eax, 0x404
je 0x4036d5
xor ecx, ecx
cmp eax, 0x804
sete cl
dec ecx
and ecx, 0xc8
mov eax, ecx
jmp 0x4036da
mov eax, 0x64
lea edx, [eax*2 + 0x4173b8]
push edx
push esi
lea eax, [esp + 0x60]
push str.netsh_firewall_add_allowedprogram___s____s__ENABLE
push eax
call fcn.00408ac3
add esp, 0x10
jmp 0x40370a
push esi
lea ecx, [esp + 0x5c]
push str.netsh_firewall_delete_allowedprogram___s_
push ecx
call fcn.00408ac3
add esp, 0xc
push edi
xor edx, edx
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov dword [esp + 8], edx
lea eax, [esp + 0x5c]
mov dword [esp + 0xc], edx
push eax
mov dword [esp + 0x14], edx
push str.RegisterProgramInFirewall:_Cmdline_s_n
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x1c], edx
call fcn.00403310
add esp, 8
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [esp + 0x7c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
je 0x403783
mov ecx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
mov ecx, dword [esp + 0x260]
pop esi
call fcn.004077be
add esp, 0x260
ret

Function at 0x4037a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x320
mov eax, dword [0x4161c0]
mov dword [esp + 0x31c], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 4]
cmp eax, 5
jb 0x403866
jne 0x4037df
mov eax, dword [esp + 8]
test eax, eax
je 0x403866
push ebx
push esi
push edi
push 0x104
lea ecx, [esp + 0x124]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x120]
push 0x5c
push edx
call fcn.004080e6
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 8
mov esi, eax
push 0x416be0
add esi, 2
push esi
call edi
mov ebx, dword [esp + 0x330]
push ebx
lea ecx, [esp + 0x124]
call fcn.00403690
add esp, 4
push 0x416ca8
push esi
call edi
push ebx
lea ecx, [esp + 0x124]
call fcn.00403690
add esp, 4
push str.luserv.exe
push esi
call edi
push ebx
lea ecx, [esp + 0x124]
call fcn.00403690
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x31c]
call fcn.004077be
add esp, 0x320
ret
Function at 0x403880
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x434
mov eax, dword [0x4161c0]
push edi
mov dword [esp + 0x434], eax
push 0x104
lea eax, [esp + 0x28]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x24]
push 0x5c
push ecx
call fcn.004080e6
mov edi, eax
add esp, 8
test edi, edi
jne 0x4038d1
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 0x430]
call fcn.004077be
add esp, 0x434
ret
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.Setup.ini
add edi, 2
push edi
call esi
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x23c]
push eax
call esi
movzx edx, byte [esp + 0x448]
lea ecx, [esp + 0x238]
push ecx
push edx
push str.RegisterComs_bInstall_d__INI___s_n
call fcn.00403310
mov eax, edi
lea ecx, [esp + 0x3c]
sub eax, ecx
sar eax, 1
shr eax, 1
mov ebx, 0x104
add esp, 0xc
mov ebp, 1
sub ebx, eax
lea ebx, [ebx]
push ebp
lea edx, [esp + 0x14]
push str.CS_d
push edx
call fcn.00408ac3
add esp, 0xc
lea eax, [esp + 0x238]
push eax
push ebx
push edi
push 0x41255c
lea ecx, [esp + 0x20]
push ecx
push str.COM_Servers
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x4039cc
lea edx, [esp + 0x30]
push edx
push str.RegisterComs_COM___s_n
call fcn.00403310
add esp, 8
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x4039bf
mov cl, byte [esp + 0x448]
test cl, cl
je 0x403999
push str.DllRegisterServer
jmp 0x40399e
push str.DllUnregisterServer
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4039bf
lea ecx, [esp + 0x30]
push ecx
push str.RegisterComs_GetProcAddress_OK___n
call fcn.00403310
add esp, 8
call esi
inc ebp
cmp ebp, 0xff
jl 0x403930
mov ecx, dword [esp + 0x440]
pop esi
mov eax, ebp
pop ebp
pop ebx
pop edi
call fcn.004077be
add esp, 0x434
ret

Function at 0x4039f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x260
mov eax, dword [0x4161c0]
mov dword [esp + 0x25c], eax
mov al, byte [esp + 0x264]
test al, al
je 0x403a1f
push str.lspsetup.exe__r
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x403a2f
push str.lspsetup.exe__u
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
xor edx, edx
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 4], edx
lea eax, [esp + 0x58]
mov dword [esp + 8], edx
push eax
mov dword [esp + 0x10], edx
push str.RegisterLspFileType:_Cmdline_s_n
mov dword [esp + 0x1c], 0x44
mov dword [esp + 0x18], edx
call fcn.00403310
add esp, 8
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x78]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
je 0x403aa6
mov ecx, dword [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
pop esi
mov ecx, dword [esp + 0x25c]
call fcn.004077be
add esp, 0x260
ret
Function at 0x403ac0
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x4161c0]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
mov dword [esp + 0x260], eax
push edi
je 0x403ba9
cmp word [ebx], 0x2e
je 0x403ba9
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x403b10
mov ecx, dword [esp + 0x264]
call fcn.004077be
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
push str.DeleteDirectory_lpDir_s_n
call fcn.00403310
xor eax, eax
mov dword [esp + 0x18], 0
mov ecx, 0x93
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, dword [0x4160e0]
add esp, 8
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x403b94
test byte [esp + 0x10], 0x10
je 0x403b5d
lea edx, [esp + 0x3c]
push edx
call fcn.00403ac0
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
je 0x403b8d
nop
test byte [esp + 0x10], 0x10
je 0x403b81
lea ecx, [esp + 0x3c]
push ecx
call fcn.00403ac0
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x403b70
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [0x4160e4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push ebx
call fcn.00408598
add esp, 4
mov ecx, dword [esp + 0x264]
mov eax, 1
call fcn.004077be
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x403c70
Capabilities:
Get disk information

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4161c0]
push esi
mov esi, dword [esp + 0x214]
push 0x5c
push esi
mov dword [esp + 0x214], eax
call fcn.004085c2
add esp, 8
test eax, eax
jne 0x403cb4
mov eax, 1
pop esi
mov ecx, dword [esp + 0x208]
call fcn.004077be
add esp, 0x20c
ret 4
sub eax, esi
sar eax, 1
add eax, 2
push eax
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, dword [esp + 0x20c]
pop esi
call fcn.004077be
add esp, 0x20c
ret 4
Function at 0x403cf0
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
sub esp, 0x460
mov eax, dword [0x4161c0]
mov dword [esp + 0x45c], eax
mov eax, dword [esp + 0x468]
test eax, eax
push esi
push edi
mov edi, dword [esp + 0x474]
je 0x403d42
cmp word [eax], 0x2e
je 0x403ed3
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x403d42
pop edi
pop esi
mov ecx, dword [esp + 0x45c]
call fcn.004077be
add esp, 0x460
ret 0xc
mov ecx, dword [0x4160e0]
lea eax, [esp + 0x214]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
je 0x403ec6
test byte [esp + 0x214], 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebp
je 0x403da7
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [esp + 0x248]
push edx
push edi
call esi
push 0x4132b0
push edi
call esi
mov ebp, dword [esp + 0x474]
push edi
lea eax, [esp + 0x24c]
push eax
push ebp
call fcn.00403cf0
jmp 0x403e04
push 0x4132a8
lea ecx, [esp + 0x18]
push ecx
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
lea edx, [esp + 0x18]
push edx
call esi
lea eax, [esp + 0x248]
push eax
lea ecx, [esp + 0x18]
push ecx
call esi
mov ebp, dword [esp + 0x474]
push ebp
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
lea eax, [esp + 0x1c]
push 1
push eax
call fcn.00408b32
push ebp
push 4
push 1
push 0x4132a0
call fcn.00408b32
add esp, 0x20
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x21c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x403eb9
nop
test byte [esp + 0x21c], 0x10
je 0x403e4e
lea eax, [esp + 0x248]
push eax
push edi
call esi
push 0x4132b0
push edi
call esi
push edi
lea ecx, [esp + 0x24c]
push ecx
push ebp
call fcn.00403cf0
jmp 0x403e9e
push 0x4132a8
lea edx, [esp + 0x18]
push edx
call ebx
push edi
lea eax, [esp + 0x18]
push eax
call esi
lea ecx, [esp + 0x248]
push ecx
lea edx, [esp + 0x18]
push edx
call esi
push ebp
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.00408b32
push ebp
push 4
push 1
push 0x4132a0
call fcn.00408b32
add esp, 0x20
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x21c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403e20
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
pop ebx
mov edx, dword [0x4160e4]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
xor esi, esi
push edi
mov word [edi + eax*2 - 2], si
call fcn.004080e6
add esp, 8
cmp eax, esi
je 0x403ef6
mov word [eax + 2], si
jmp 0x403ef9
mov word [edi], si
mov ecx, dword [esp + 0x464]
pop edi
mov eax, 1
pop esi
call fcn.004077be
add esp, 0x460
ret 0xc
Function at 0x403f60
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x45c
mov eax, dword [0x4161c0]
push ebp
push esi
mov esi, dword [esp + 0x468]
push edi
mov dword [esp + 0x464], eax
lea eax, [esp + 0xc]
push esi
push eax
call fcn.00408f66
push esi
call fcn.004080d0
lea ebp, [esp + eax*2 + 0x18]
add esp, 0xc
cmp word [ebp - 2], 0x5c
je 0x403faa
mov word [ebp], 0x5c
add ebp, 2
mov word [ebp], 0
mov ecx, dword [str.uninst.lst]
push 0x4132d4
push ecx
call fcn.00408c63
mov edi, eax
add esp, 8
test edi, edi
jne 0x403fdd
pop edi
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x458]
call fcn.004077be
add esp, 0x45c
ret
push ebx
push 2
push 0
push edi
call fcn.0040893c
push edi
call fcn.00408de3
mov esi, eax
lea edx, [esi + 4]
push edx
call fcn.00408dd1
push 0
push 0
push edi
mov ebx, eax
call fcn.0040893c
push edi
push esi
push 1
push ebx
call fcn.00408c76
shr esi, 1
push edi
mov word [ebx + esi*2], 0
call fcn.0040877d
add esp, 0x34
test ebx, ebx
mov esi, ebx
je 0x404075
jmp 0x404030
push 0x4132cc
push esi
call fcn.00407624
mov esi, eax
add esp, 8
test esi, esi
je 0x404075
add esi, 4
push 0x4132c4
push esi
call fcn.00407624
add esp, 8
test eax, eax
je 0x404075
sub eax, esi
sar eax, 1
inc eax
push eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [esp + 0x10]
push eax
call fcn.004020a0
test esi, esi
jne 0x404030
test ebx, ebx
mov esi, ebx
je 0x4040f5
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x4132a8
push esi
call fcn.00407624
mov esi, eax
add esp, 8
test esi, esi
je 0x4040f5
add esi, 4
push 0x4132bc
push esi
call fcn.00407624
add esp, 8
test eax, eax
je 0x4040f5
sub eax, esi
sar eax, 1
inc eax
push eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea ecx, [esp + 0x10]
push ecx
call edi
test eax, eax
jne 0x4040f1
lea edx, [esp + 0x218]
push edx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4040f1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 4
push 0
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test esi, esi
jne 0x404081
push ebx
call fcn.00408745
mov ecx, dword [esp + 0x46c]
add esp, 4
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
call fcn.004077be
add esp, 0x45c
ret
Function at 0x404540
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x411dcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
mov eax, dword [0x4161c0]
push ebx
push ebp
push esi
mov dword [esp + 0x228], eax
push edi
lea eax, [esp + 0x24]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push str._skinoem.xml
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edi, 0x412c38
xor ebp, ebp
mov ecx, dword [edi]
lea edx, [esp + 0x24]
push edx
push 0x64
lea eax, [ebp + 0x4173b8]
push eax
push str.Lava_Lava
push ecx
push str._product
call fcn.00406ea0
mov eax, dword [edi]
lea edx, [esp + 0x24]
push edx
push 0x64
lea esi, [ebp + 0x417160]
push esi
push 0x41255c
push eax
push str._proggrp
call fcn.00406ea0
cmp word [esi], 0
jne 0x404635
mov edx, dword [0x4178f4]
mov ecx, 0x4178f4
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 0x6a
mov dword [esp + 0x240], 0
call fcn.00404330
mov ebx, dword [esp + 0x10]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebx - 0x10]
mov dword [esp + 0x238], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404635
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add edi, 4
add ebp, 0xc8
cmp edi, 0x412c44
jl 0x404592
lea eax, [esp + 0x24]
push eax
push 8
lea ecx, [esp + 0x1c]
push ecx
push 0x41332c
push str.disp
push str._proggrp
call fcn.00406ea0
lea edx, [esp + 0x14]
push edx
call fcn.00408fe1
add esp, 4
mov dword [0x416d70], eax
lea eax, [esp + 0x24]
push eax
push 0x64
push 0x416ca8
push str.Lava_Lava.exe
push str.name
push str._progfile
call fcn.00406ea0
lea ecx, [esp + 0x24]
push ecx
push 0x64
push 0x417610
push 0x41255c
push 0x412610
push str._lavaoem
call fcn.00406ea0
lea edx, [esp + 0x24]
push edx
push 0x64
push 0x417098
push str.http:__www.lava_lava.com
push str._url
push str._techsupport
call fcn.00407230
lea eax, [esp + 0x24]
push eax
push 0x64
push 0x416fd0
push str.http:__www.lava_lava.com
push str._url
push str._copyright
call fcn.00407230
lea ecx, [esp + 0x24]
push ecx
push 0x64
push 0x416f08
push str.http:__www.lava_lava.com
push str._url
push str._update
call fcn.00407230
lea edx, [esp + 0x24]
push edx
push 0x64
push 0x416e40
push str.lava
push str.name
push str._webprotocol
call fcn.00407230
lea eax, [esp + 0x24]
push eax
push 0x64
push 0x416d78
push str.Lavawp.exe
push str.file
push str._webprotocol
call fcn.00407230
lea ecx, [esp + 0x24]
push ecx
push 0x64
push 0x416be0
push str.Lava.exe
push str.name
push str._progmain
call fcn.00406ea0
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x220]
pop ebx
call fcn.004077be
add esp, 0x22c
ret
Function at 0x4047b0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x411deb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
mov eax, dword [0x4161c0]
mov edx, dword [str.SoftwareDianji_]
push ebp
mov dword [esp + 0x220], eax
mov eax, dword [esp + 0x23c]
push esi
lea ecx, [eax + eax]
push edx
lea eax, [esp + 0x20]
push eax
xor ebp, ebp
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp word [0x417610], bp
je 0x404824
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.LvOem
lea ecx, [esp + 0x20]
push ecx
call esi
push 0x417610
lea edx, [esp + 0x20]
push edx
call esi
jmp 0x404834
push str.Lava_Lava
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea edx, [esp + 0x40]
push edx
push 0x80000001
call edi
mov ebx, dword [esp + 0x240]
test ebx, ebx
jne 0x404871
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
jmp 0x4048e9
mov edx, dword [0x4178f4]
mov ecx, 0x4178f4
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
push ebx
lea eax, [esp + 0x1c]
push 0x413330
push eax
mov dword [esp + 0x244], 0
call fcn.004013f0
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
add esp, 0xc
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push edx
call edi
lea eax, [esi - 0x10]
mov dword [esp + 0x238], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4048e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x244]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [str.InstallDir]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x28]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404917
mov ebp, 1
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
pop edi
test ebx, ebx
pop ebx
je 0x404931
mov eax, dword [esp + 0xc]
push eax
call esi
mov ecx, dword [esp + 0x228]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x220]
mov eax, ebp
pop ebp
call fcn.004077be
add esp, 0x22c
ret 0xc
Function at 0x4050b0
Capabilities:
Copy file
Move file

Disassembly:
sub esp, 0x664
mov eax, dword [0x4161c0]
push esi
mov dword [esp + 0x664], eax
push edi
lea eax, [esp + 0x418]
push eax
push 0x416be0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x405208
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x104
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 8]
push 0x5c
push edx
call fcn.004080e6
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 8
push 0x416be0
add eax, 2
push eax
call esi
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x214]
push ecx
call esi
push str..DEL
lea edx, [esp + 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
lea eax, [esp + 0x214]
push eax
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x218]
push eax
call edi
test eax, eax
jne 0x405208
test ebx, ebx
je 0x405197
call fcn.00401790
cmp eax, 1
je 0x405197
pop edi
mov eax, 0xfffffffe
pop esi
mov ecx, dword [esp + 0x660]
call fcn.004077be
add esp, 0x664
ret
push str.DianjiRingExit
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 str.DianjiRingExit
push esi
push str.CheckLavaRun__uMsg_d__g_szExitMessage_s_n
call fcn.00403310
add esp, 0xc
call fcn.00401930
test eax, eax
jne 0x4051f7
test ebx, ebx
je 0x4051dd
push eax
push 0x74
push eax
call fcn.004043f0
pop edi
mov eax, 0xfffffffd
pop esi
mov ecx, dword [esp + 0x660]
call fcn.004077be
add esp, 0x664
ret
push 1
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x218]
push edx
call edi
mov ecx, dword [esp + 0x668]
pop edi
xor eax, eax
pop esi
call fcn.004077be
add esp, 0x664
ret

Function at 0x405220
Capabilities:
Delete file
Set current directory

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x405235
or eax, 0xffffffff
ret 4
push esi
call fcn.00404540
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 2
push 0
push 0
push 0x10000000
push str.write.test
call esi
cmp eax, 0xffffffff
jne 0x40528e
nop
push 5
push 0x70
push 0
call fcn.004043f0
cmp eax, 2
je 0x4052ad
push 0
push 0x80
push 2
push 0
push 0
push 0x10000000
push str.write.test
call esi
cmp eax, 0xffffffff
je 0x405260
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.write.test
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
call fcn.004050b0
pop ebx
pop esi
ret 4
or eax, 0xffffffff
pop esi
ret 4
Function at 0x405c00
Capabilities:
Create process on windows
Move file

Disassembly:
sub esp, 0x670
mov eax, dword [0x4161c0]
push ebx
mov ebx, dword [esp + 0x678]
push esi
push edi
push ebx
mov dword [esp + 0x67c], eax
call fcn.00403880
push ebx
call fcn.004037a0
push ebx
call fcn.00405680
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 0xc
push 0x416d78
lea eax, [esp + 0x26c]
push eax
call esi
test bl, bl
je 0x405ce0
push 0x104
lea ecx, [esp + 0x64]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x60]
push 0x5c
push edx
call fcn.004080e6
add esp, 8
mov word [eax + 2], 0
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x474]
push ecx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.cttctrl.ocx
lea edx, [esp + 0x64]
push edx
call esi
push str.lavactrl.ocx
lea eax, [esp + 0x474]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
lea ecx, [esp + 0x474]
push ecx
lea edx, [esp + 0x68]
push edx
call edi
test eax, eax
jne 0x405cd1
push 4
lea eax, [esp + 0x474]
push eax
lea ecx, [esp + 0x68]
push ecx
call edi
push str.__N:
lea edx, [esp + 0x26c]
push edx
jmp 0x405cf3
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.__U:
lea eax, [esp + 0x26c]
push eax
call esi
push 0x416e40
lea ecx, [esp + 0x26c]
push ecx
call esi
xor edx, edx
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], edx
lea eax, [esp + 0x268]
mov dword [esp + 0x10], edx
push eax
mov dword [esp + 0x18], edx
push str.RegisterWebProtocol:_Cmdline_s_n
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x20], edx
call fcn.00403310
add esp, 8
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x288]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405d7e
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
mov ecx, dword [esp + 0x678]
pop edi
pop esi
pop ebx
call fcn.004077be
add esp, 0x670
ret

Function at 0x405da0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x2d8
mov eax, dword [0x4161c0]
push esi
mov dword [esp + 0x2d8], eax
push 0x104
lea eax, [esp + 0xd4]
push eax
push 0
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0xd0]
push 0x5c
push ecx
call fcn.004080e6
add esp, 8
push str.llsetup.ini
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [esp + 0x2e8]
lea edx, [esp + 0xd0]
push edx
mov edx, dword [esp + 0x2e8]
push 0x64
lea eax, [esp + 0x10]
push eax
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [esp + 0x2e0]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.00401ff0
mov ecx, dword [esp + 0x2d8]
mov eax, esi
pop esi
call fcn.004077be
add esp, 0x2d8
ret