joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a5eb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4babee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
push edi
mov esi, ecx
call fcn.0047a98e
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
push 0xffffffffffffffff
mov dword [esp + 0x50], ebx
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
jne 0x47a765
lea edi, [esi + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x38]
mov dword [esi + 0x38], eax
push dword [esi + 0xc]
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x20], ebx
je 0x47a74e
cmp dword [esi + 4], ebx
jne 0x47a694
mov eax, dword [esi + 0x14]
push 0x4d1670
push eax
call fcn.0048970b
cmp eax, ebx
pop ecx
pop ecx
mov dword [esi + 4], eax
je 0x47a74e
push ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 0xf
call fcn.00410c2e
mov byte [esp + 0x4c], 1
cmp dword [esp + 0x20], ebx
je 0x47a728
mov eax, dword [esp + 0x1c]
mov edi, dword [eax]
cmp edi, eax
jne 0x47a6c0
call fcn.004864d2
push 0xffffffffffffffff
push ebx
add edi, 8
push edi
lea ecx, [esp + 0x30]
call fcn.00410c4a
mov eax, dword [esp + 0x1c]
push dword [eax]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
lea ebx, [esp + 0x24]
call fcn.0047a938
cmp dword [esp + 0x3c], 0x10
mov ecx, dword [esp + 0x28]
jae 0x47a6f8
lea ecx, [esp + 0x28]
mov eax, dword [esi + 4]
test eax, eax
je 0x47a720
push eax
push dword [esp + 0x3c]
push 1
push ecx
call fcn.0048b5e8
push dword [esi + 4]
push 2
push 1
push 0x4cd804
call fcn.0048b5e8
add esp, 0x20
xor ebx, ebx
cmp dword [esp + 0x20], ebx
jne 0x47a6b1
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x47a739
push eax
call fcn.00489a47
pop ecx
mov dword [esi + 4], ebx
push ebx
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x54], bl
call fcn.00410be3
jmp 0x47a634
cmp dword [esi], ebx
jne 0x47a765
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x47a634
lea esi, [esp + 0x18]
call fcn.0047a9a6
push dword [esp + 0x1c]
call fcn.00485be5
pop ecx
mov ecx, dword [esp + 0x44]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47a78c
Capabilities:
Delete file
Get file size
Move file
Set file attributes

Disassembly:
mov eax, 0x4bae72
call fcn.004b89d0
push ecx
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push SysReAllocString
push dword [0x4ef37c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47a82e
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x47a7d0
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0x80000
jb 0x47a82d
mov eax, dword [0x4ef37c]
add eax, 0xfffffff0
call fcn.004278fb
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], esi
call fcn.0047a8a4
mov edi, dword [ebp - 0x10]
mov ebx, dword [0x4ef37c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
call esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [edi - 0x10]
call fcn.0040dae8
pop edi
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop esi
inc eax
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x47abe0
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4babd4
call fcn.004b89d0
sub esp, 0x98
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov dword [ebp - 0xa4], vtable.KMD5.0
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
lea eax, [esi + 4]
add esi, 0x14
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], esi
mov eax, dword [0x4ed5f0]
mov ecx, 0x4ed5f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x2c]
mov eax, edi
mov byte [ebp - 4], 1
call fcn.0047ad82
test eax, eax
je 0x47ad55
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
je 0x47ad5d
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47ad5d
push 0x5c
lea esi, [ebp - 0x14]
call fcn.00427689
cmp eax, 0xffffffff
je 0x47ad5d
lea edx, [eax + 1]
lea eax, [ebp - 0x28]
push eax
mov eax, esi
call fcn.004275df
mov edi, dword [ebp - 0x18]
add edi, 0xfffffff4
mov byte [ebp - 4], 2
call fcn.00427953
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.0040dae8
mov byte [ebp - 0x40], 0
xor eax, eax
lea edi, [ebp - 0x3f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea edi, [ebp - 0xa4]
call fcn.0043cf88
test eax, eax
je 0x47ad5d
push 0x10
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00487290
mov eax, dword [0x4ed5f0]
add esp, 0xc
mov ecx, 0x4ed5f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 3
xor esi, esi
movzx eax, byte [ebp + esi - 0x40]
push eax
push 0x4d0680
lea ecx, [ebp - 0x1c]
call fcn.0040c1e6
inc esi
cmp esi, 0x10
pop ecx
pop ecx
jl 0x47acfc
mov esi, dword [ebp - 0x1c]
cmp dword [esi - 0xc], 0
je 0x47ad2b
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
call fcn.00427953
mov edi, dword [ebp - 0x24]
lea eax, [esi - 0x10]
call fcn.0040dae8
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
call fcn.0040dae8
inc dword [ebp - 0x20]
add dword [ebp - 0x18], 4
cmp dword [ebp - 0x20], 3
jl 0x47ac24
jmp 0x47ad65
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
jmp 0x47ad60
lea eax, [ebx - 0x10]
call fcn.0040dae8
lea ecx, [ebp - 0xa4]
call fcn.0043cf5e
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
inc eax
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x47ad82
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x440
push ebx
push esi
xor esi, esi
cmp dword [ecx], esi
push edi
jne 0x47ad9e
xor eax, eax
jmp 0x47aee3
cmp eax, esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
je 0x47aee0
cmp eax, 4
je 0x47aee0
cmp eax, 8
je 0x47aee0
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
push esi
push 0x400
call ebx
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x47aee0
xor eax, eax
mov dword [ebp - 0x2c], esi
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
push 0x18
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp + 8]
push esi
push dword [ebp - 0xc]
call dword [eax]
test eax, eax
jne 0x47aecb
mov eax, dword [ebp - 0x18]
cmp eax, esi
mov dword [ebp + 8], eax
je 0x47aecb
cmp eax, 8
je 0x47aecb
push eax
push esi
push 0x410
call ebx
mov edi, eax
cmp edi, esi
mov dword [ebp - 8], edi
je 0x47aecb
mov ebx, 0x206
push ebx
lea eax, [ebp - 0x232]
push esi
push eax
mov word [ebp - 0x234], si
call fcn.00486640
add esp, 0xc
push 0x103
lea eax, [ebp - 0x234]
push eax
push esi
push edi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
jne 0x47aea9
push ebx
lea eax, [ebp - 0x43a]
push esi
push eax
mov word [ebp - 0x43c], si
call fcn.00486640
add esp, 0xc
push 0x104
lea eax, [ebp - 0x43c]
push eax
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x47aecb
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x43c]
push eax
call fcn.0047aeea
test eax, eax
je 0x47aecb
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x47aeb5
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
lea eax, [ebp - 0x234]
push eax
push dword [ebp + 0xc]
call fcn.00427868
mov dword [ebp - 0x10], 1
push dword [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
cmp dword [ebp - 8], esi
je 0x47aee0
push dword [ebp - 8]
call edi
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x47aeea
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x4bc
push edi
xor edi, edi
cmp dword [ebp + 0x7c], edi
jne 0x47af04
xor eax, eax
jmp 0x47afc7
push ebx
push esi
lea eax, [ebp - 0x44c]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x47afb7
cmp word [ebp - 0x44c], di
mov dword [ebp + 0x6c], edi
je 0x47afb7
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea esi, [ebp - 0x44c]
push 0x4d16b0
push esi
call ebx
test eax, eax
je 0x47afa1
push 0x4d16b8
push esi
call ebx
test eax, eax
je 0x47afa1
mov ax, word [esi]
and word [ebp + 0x68], 0
mov word [ebp + 0x64], ax
mov ax, word [ebp + edi - 0x44a]
mov word [ebp + 0x66], ax
push 0x64
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x47afc3
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [ebp + 0x78]
mov esi, eax
push esi
lea eax, [ebp - 0x64]
push eax
push edi
call fcn.0048b3e5
add esp, 0xc
test eax, eax
je 0x47afcf
add dword [ebp + 0x6c], 4
mov edi, dword [ebp + 0x6c]
add edi, edi
lea esi, [ebp + edi - 0x44c]
cmp word [esi], 0
jne 0x47af3c
push dword [ebp + 0x78]
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
pop esi
pop ebx
pop edi
add ebp, 0x70
leave
ret 8
lea eax, [ebp + 0x64]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [edi + esi*2]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor eax, eax
inc eax
jmp 0x47afc5
Function at 0x47b070
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
xor ebx, ebx
mov esi, ecx
mov ecx, dword [eax + 8]
inc ebx
cmp ecx, ebx
push edi
jne 0x47b190
mov eax, dword [eax + 0xc]
cmp eax, ebx
jne 0x47b096
call fcn.0047c013
mov eax, ebx
jmp 0x47b199
cmp eax, 2
jne 0x47b0b5
lea ecx, [esi + 0xc2a]
xor eax, eax
cmp byte [ecx], al
jne 0x47b0a9
mov byte [ecx], bl
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x47b08f
cmp eax, 0x65
jne 0x47b0c3
mov edi, esi
call fcn.0047c0b0
jmp 0x47b08f
cmp eax, 0x66
jne 0x47b0db
xor eax, eax
cmp dword [esi + 0x3dc], eax
sete al
push eax
call fcn.0047cd82
jmp 0x47b08f
cmp eax, 0x191
jne 0x47b116
xor ecx, ecx
mov eax, esi
call fcn.0040841b
call fcn.00476718
test eax, eax
je 0x47b08f
xor eax, eax
push eax
push eax
push 2
push 2
push 0x4ca0b8
push eax
push eax
push 0x4ca0c8
push eax
call fcn.00407460
add esp, 0x24
jmp 0x47b08f
cmp eax, 0x96
jne 0x47b13e
push dword [esi + 0x408]
push dword [esi + 0x3e0]
call dword [sym.imp.USER32.dll_SetWindowTextW]
xor eax, eax
push eax
push eax
push esi
call fcn.0047be9f
jmp 0x47b08f
cmp eax, 0x1f5
jne 0x47b14f
call fcn.0047c158
jmp 0x47b08f
cmp eax, 0xa0
jne 0x47b17f
push ebx
xor eax, eax
push eax
push eax
push str.http:__www.ijinshan.com_protocol_dubaUserLicense.shtml
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x47b08f
call fcn.0047c23a
jmp 0x47b08f
cmp eax, 0x68
jne 0x47b190
mov ebx, esi
call fcn.0047cad8
xor eax, eax
inc eax
jmp 0x47b199
and dword [esi + 0x40c], 0
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x47b79a
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4bc87d
call fcn.004b89d0
sub esp, 0x408
push esi
push edi
xor esi, esi
push 0x3fe
lea eax, [ebp - 0x412]
push esi
mov dword [ebp - 0x14], esi
push eax
mov edi, str.https:__t.zhhainiao.com_s_qqfb
mov dword [ebp - 0x14], str.MarketQQLink
mov word [ebp - 0x414], si
call fcn.00486640
add esp, 0xc
test byte [0x4ef528], 1
jne 0x47b800
or dword [0x4ef528], 1
mov dword [ebp - 4], esi
call fcn.0047b613
push 0x4beb55
call fcn.00486c5c
or dword [ebp - 4], 0xffffffff
pop ecx
mov eax, dword [0x4ef474]
cmp eax, esi
je 0x47b81f
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test al, al
je 0x47b81f
mov edi, str.https:__t.zhhainiao.com_s_qqfbvip
mov dword [ebp - 0x14], str.VipMarketQQLink
push esi
lea ecx, [ebp - 0x10]
call fcn.0044679b
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], 1
call fcn.00446ca2
pop ecx
pop ecx
push str.dataoperation_contact.dat
lea eax, [ebp - 0x10]
push eax
call fcn.00427541
push dword [ebp - 0x10]
lea eax, [ebp - 0x414]
push 0x200
push eax
push edi
push dword [ebp - 0x14]
push str.FeedBack
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 8]
call fcn.004279af
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040dae8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x47c23a
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4bae72
call fcn.004b89d0
push ecx
push ecx
push esi
push 1
push 0
mov esi, str.http:__www.ijinshan.com_protocol_dubaUserLicense.shtml
push esi
push str.IEXPLORE.EXE
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x47c28c
lea eax, [ebp - 0x10]
push eax
call fcn.004761a7
pop ecx
and dword [ebp - 4], 0
push esi
push dword [ebp - 0x10]
call fcn.004758a8
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.0040dae8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x47c68b
Capabilities:
Persist via run registry key

Disassembly:
mov eax, 0x4ba5a0
call fcn.004b89d0
push ecx
push ecx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
mov eax, dword [0x4ed5f0]
mov ecx, 0x4ed5f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
lea esi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004465d3
test eax, eax
je 0x47c6e5
push ebx
lea eax, [ebp - 0x14]
push eax
push str.KAV7NEEDREBOOT
mov ebx, esi
call fcn.00446601
test eax, eax
pop ebx
je 0x47c6e5
inc edi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040dae8
cmp dword [ebp - 0x10], 0
je 0x47c6ff
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x47ca10
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push dword [edi]
lea esi, [ebp - 4]
call fcn.00475dba
mov eax, dword [ebp - 4]
pop ecx
add eax, 0xfffffff0
call fcn.0040dae8
mov eax, dword [edi]
push 3
pop esi
cmp dword [eax - 0xc], esi
jl 0x47cad1
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47ca53
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 1
je 0x47cad1
mov ecx, esi
lea edx, [ebp - 4]
mov eax, edi
call fcn.004275fd
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, esi
mov eax, dword [ebp - 4]
setne bl
add eax, 0xfffffff0
call fcn.0040dae8
test bl, bl
je 0x47ca80
push 2
pop eax
jmp 0x47cad4
push edi
call fcn.0047c984
test eax, eax
pop ecx
je 0x47ca8f
mov eax, esi
jmp 0x47cad4
mov ecx, esi
lea edx, [ebp - 4]
mov eax, edi
call fcn.004275fd
push dword [eax]
call fcn.00428d57
mov ebx, eax
mov eax, dword [ebp - 4]
neg ebx
sbb bl, bl
pop ecx
add eax, 0xfffffff0
inc bl
call fcn.0040dae8
test bl, bl
je 0x47cabe
push 4
jmp 0x47ca7d
mov eax, dword [edi]
cmp dword [eax - 0xc], 0x96
jle 0x47cacd
push 5
jmp 0x47ca7d
xor eax, eax
jmp 0x47cad4
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret
Function at 0x47cad8
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, 0x4bc85d
call fcn.004b89d0
sub esp, 0x44c
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x452]
push esi
push eax
mov word [ebp - 0x454], si
call fcn.00486640
add esp, 0xc
lea eax, [ebp - 0x454]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x1c]
push eax
push 0x11
push dword [ebx + 4]
mov dword [ebp - 0x1c], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [0x4ed5f0]
mov edi, 0x4ed5f0
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], esi
push 0x105
lea esi, [ebp - 0x18]
call fcn.0042771e
mov eax, dword [ebp - 0x18]
xor ecx, ecx
cmp dword [eax - 8], ecx
jge 0x47cb65
push 0x80070057
call fcn.00414deb
mov dword [eax - 0xc], ecx
mov word [eax], cx
push 0x4d1bc0
lea eax, [ebp - 0x18]
push eax
call fcn.00427868
mov eax, dword [ebx + 4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x18]
mov dword [ebp - 0x3c], eax
call fcn.0042faf1
mov dword [ebp - 0x38], eax
xor esi, esi
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x34], 0x4d1bcc
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
cmp eax, esi
mov dword [ebp - 0x14], eax
je 0x47cc75
push 0x206
lea eax, [ebp - 0x24a]
push esi
push eax
mov word [ebp - 0x24c], si
call fcn.00486640
add esp, 0xc
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [0x4ed5f0]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24c]
push eax
lea esi, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00475dba
pop ecx
mov byte [ebp - 4], 2
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x14]
call fcn.00427564
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.0040dae8
push str.kingsoft_antivirus_
lea eax, [ebp - 0x14]
push eax
call fcn.00427541
mov esi, dword [ebp - 0x14]
push esi
push dword [ebx + 0x3e0]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea edi, [ebp - 0x14]
call fcn.0047ca10
push 0
push eax
push 0x46c
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
or dword [ebx + 0xc44], 2
lea eax, [esi - 0x10]
call fcn.0040dae8
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040dae8
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x47ce1b
Capabilities:
Get common file path
Get program files directory

Disassembly:
push esi
push edi
push 0
mov esi, eax
push 0x26
add esi, 0x408
push 0x104
call fcn.0042771e
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x47ce4b
push eax
call fcn.00486c84
pop ecx
mov edx, esi
call fcn.00414cbf
test edi, edi
jne 0x47ce61
push str.c:program_files
push esi
call fcn.00427868
push str.kingsoftkingsoft_antivirus_
push esi
call fcn.00427541
pop edi
pop esi
ret

Function at 0x47ce6f
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4bae72
call fcn.004b89d0
push ecx
mov eax, dword [0x4ed5f0]
push esi
push edi
mov ecx, 0x4ed5f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push 0x105
lea esi, [ebp - 0x10]
call fcn.0042771e
push 0x104
push eax
push dword [ebx + 0x3e0]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [ebp - 0x10]
test esi, esi
jne 0x47cebd
xor eax, eax
jmp 0x47cec4
push esi
call fcn.00486c84
pop ecx
lea edx, [ebp - 0x10]
call fcn.00414cbf
lea edi, [ebp - 0x10]
call fcn.0047ca10
push 0
push eax
push 0x46c
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [esi - 0x10]
call fcn.0040dae8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x47d183
Capabilities:
Check if file exists
Read .ini file

Disassembly:
mov eax, 0x4bae72
call fcn.004b89d0
push ecx
push ecx
mov ecx, dword [ebp + 8]
push esi
lea eax, [ebp - 0x10]
push str.installconfig.ini
add ecx, 0xc30
push eax
xor esi, esi
call fcn.0040db81
pop ecx
pop ecx
mov dword [ebp - 4], esi
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47d263
mov eax, dword [ebp - 0x10]
push ebx
push edi
add eax, 0xfffffff0
call fcn.004278fb
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
add ebx, 0x10
push ebx
push 1
push str.imagecounts
mov edi, 0x4c9c6c
push edi
call esi
mov dword [ebp - 0x14], eax
lea eax, [ebx - 0x10]
call fcn.0040dae8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc38], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004278fb
mov ebx, eax
add ebx, 0x10
push ebx
push 0
push str.autoclose
push edi
call esi
mov dword [ebp - 0x14], eax
lea eax, [ebx - 0x10]
call fcn.0040dae8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc3c], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004278fb
mov ebx, eax
add ebx, 0x10
push ebx
push 2
push str.delaytime
push edi
call esi
mov esi, eax
lea eax, [ebx - 0x10]
call fcn.0040dae8
mov eax, dword [ebp + 8]
mov dword [eax + 0xc40], esi
xor esi, esi
pop edi
inc esi
pop ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040dae8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x47d27f
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4bbc50
call fcn.004b89d0
push ecx
push ebx
push esi
push edi
push 1
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 4], ebx
push dword [ebp + 8]
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, str.open
push edi
push ebx
call esi
cmp eax, 0x20
jle 0x47d2b2
xor esi, esi
inc esi
jmp 0x47d2ee
push 1
push ebx
push dword [ebp + 8]
push str.IEXPLORE.EXE
push edi
push ebx
call esi
cmp eax, 0x20
jg 0x47d2ad
lea eax, [ebp - 0x10]
push eax
call fcn.004761a7
pop ecx
mov byte [ebp - 4], 1
push dword [ebp + 8]
push dword [ebp - 0x10]
call fcn.004758a8
mov esi, eax
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.0040dae8
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040dae8
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4

Function at 0x47d90c
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi + 0x10]
test eax, eax
je 0x47d93d
push dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x47d930
push 0
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x10], 0
xor eax, eax
inc eax
ret 4

Function at 0x47dc74
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x47dce6
push edi
xor eax, eax
mov dword [ebp - 8], esi
lea edi, [ebp - 4]
stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
pop edi
je 0x47dce6
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
shrd ecx, eax, 0x14
shr eax, 0x14
mov dword [ebp - 4], eax
and dword [ebp - 4], 0x80000000
and eax, 0x7fffffff
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], esi
fild qword [ebp - 0x10]
fild qword [ebp - 8]
fchs
faddp st(1)
fcomp qword [0x4d25a8]
fnstsw ax
test ah, 1
jne 0x47dce6
inc esi
mov eax, esi
pop esi
leave
ret