joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a7b
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [0x529930]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], ebp
je 0x405a98
mov esi, dword [eax + 4]
jmp 0x405a9a
xor esi, esi
cmp esi, ebp
jne 0x405aaa
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
cmp esi, ebp
je 0x405acf
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x405acf
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x405acf
push ebp
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x1c], 1
push ecx
mov eax, esp
mov dword [edi + 0x378], ebp
push esi
mov ebx, edi
mov dword [eax], ebp
call fcn.0040632a
mov ebx, eax
cmp ebx, ebp
jne 0x405af8
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x405bd4
mov edx, ebx
call fcn.0040b1d5
mov dword [esp + 0x20], eax
lea eax, [edi + 4]
push eax
mov eax, esi
call fcn.0040b088
cmp dword [edi + 0x36c], ebp
je 0x405b82
push ebp
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push ebp
push ebp
push ebp
push 0x2001
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push ebp
push ebp
push ebp
push ebp
push ebp
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x14]
je 0x405b65
push 1
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x14]
je 0x405b82
push ebp
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
call fcn.004626f3
push 0x97
push ebp
lea ebx, [edi + 4]
push ebx
mov dword [edi + 0x378], ebp
call fcn.0041e82e
cmp dword [esp + 0x1c], ebp
je 0x405bc0
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp esi, ebp
je 0x405bc0
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx]
jne 0x405bc0
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x20]
call fcn.0040b1d5
push dword [ebx]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [edi + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x40a4e6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov edi, eax
test edi, edi
jne 0x40a505
xor eax, eax
jmp 0x40a555
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x40a501
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40a501
push ebx
lea ebx, [edi + 1]
push ebx
call fcn.00401ec7
test eax, eax
je 0x40a541
push edi
push dword [ebp - 4]
push eax
call fcn.00497ba0
add esp, 0xc
mov eax, ebx
call fcn.0040a436
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [esi]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
push edi
mov dword [ebp - 8], ebx
je 0x40a636
mov eax, dword [0x5289f4]
mov ecx, 0x5289f4
call dword [eax + 0xc]
push dword [ebp + 0x10]
add eax, 0x10
push dword [ebp + 8]
mov dword [ebp - 4], eax
push dword [esi]
lea eax, [ebp - 4]
push str._s_d._s
push eax
call fcn.0041e84b
add esp, 0x14
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
je 0x40a62b
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x40a622
mov esi, dword [ebp + 0xc]
push ebx
lea eax, [ebp + 8]
push eax
push edi
lea eax, [edi + 0xa]
push eax
mov dword [ebp + 8], ebx
call fcn.00401ec7
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x40a619
cmp dword [ebp + 8], edi
jne 0x40a619
mov eax, edi
call fcn.0040a436
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040151c
xor eax, eax
inc eax
jmp 0x40a639
xor eax, eax
mov edx, esi
call fcn.00401ea7
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40a7b8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
test byte [esi + 0x14], 2
je 0x40a811
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
sub eax, ecx
je 0x40a802
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
sub edx, eax
je 0x40a802
mov edx, dword [esi + 0x10]
push 0x11
push 0
push 0
sub ecx, edx
push ecx
sub eax, edx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x40a811
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0x14], 0xfd
leave
ret 4
Function at 0x40a815
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 1
push edi
mov edi, eax
jne 0x40a835
push 0
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [edi + 0x14], 0xfd
jmp 0x40a892
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
je 0x40a897
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
je 0x40a897
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x40a892
or byte [edi + 0x14], 4
mov al, byte [edi + 0x14]
test al, 2
jne 0x40a889
push dword [ebp + 8]
or al, 2
mov byte [edi + 0x14], al
call fcn.00409f2a
push 8
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40a892
cmp dword [edi + 0x18], esi
je 0x40a892
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], esi
jmp 0x40a8a6
push 0
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [edi + 0x14], 0xfd
pop edi
leave
ret 8

Function at 0x40c7c6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
xor ebx, ebx
lea edi, [esi + 0x2c0]
cmp dword [edi], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x40c7f1
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [edi], ebx
mov eax, dword [esi + 0x2b4]
cmp eax, ebx
je 0x40c8d0
push eax
call fcn.0041e36f
mov edi, eax
cmp edi, ebx
pop ecx
je 0x40c885
mov eax, dword [edi]
push 2
push ebx
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
je 0x40c82a
push 1
push edi
push esi
call fcn.0040afd8
mov eax, dword [esi + 0x2b4]
cmp eax, dword [esi + 0x2b0]
jne 0x40c885
movzx eax, word [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, edi
push 0x202
call fcn.0041e5b1
mov eax, dword [edi + 0x40]
cmp eax, ebx
je 0x40c874
cmp word [eax], bx
je 0x40c874
push 1
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40c885
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x40c885
mov dword [ebp - 4], 1
mov dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
mov dword [esi + 0x2b4], ebx
je 0x40c8d0
mov eax, dword [esi + 4]
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
push dword [esi + 4]
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x18]
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop ebx
leave
ret 0xc
Function at 0x411813
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x411876
cmp dword [ebp + 0xc], 1
je 0x41184f
cmp dword [ebp + 0xc], 2
je 0x41184f
push 0xd
pop eax
jmp 0x411876
test edi, edi
mov eax, dword [ebp - 4]
je 0x411870
test eax, eax
je 0x41186c
test al, 1
jne 0x41184a
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x411870
jmp 0x41184a
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x413390
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
call fcn.00413176
push dword [esi]
lea eax, [ebp - 4]
push eax
push esi
call fcn.004134ba
mov edi, dword [ebp - 4]
xor esi, esi
cmp dword [edi - 0xc], esi
je 0x413414
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413414
lea eax, [ebp - 0x14]
mov ebx, vtable.Gdiplus::PrivateFontCollection.0
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
call sub.gdiplus.dll_GdipNewPrivateFontCollection
push edi
push dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
call sub.gdiplus.dll_GdipPrivateAddFontFile
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call sub.gdiplus.dll_GdipGetFontCollectionFamilyCount
mov esi, dword [ebp - 8]
test esi, esi
mov dword [ebp - 0x10], eax
jg 0x413423
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x18], ebx
call sub.gdiplus.dll_GdipDeletePrivateFontCollection
mov dword [ebp - 0x18], vtable.Gdiplus::FontCollection.0
lea eax, [edi - 0x10]
call fcn.0040151c
pop edi
pop esi
pop ebx
leave
ret 4
xor ecx, ecx
push 8
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call sub.gdiplus.dll_GdipAlloc
test eax, eax
je 0x413466
mov dword [eax], esi
add eax, 4
lea edx, [esi - 1]
test edx, edx
mov ecx, eax
jl 0x413468
and dword [ecx], 0
and dword [ecx + 4], 0
add ecx, 8
dec edx
jns 0x413457
jmp 0x413468
xor eax, eax
test eax, eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
jne 0x41348d
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x18], ebx
call sub.gdiplus.dll_GdipDeletePrivateFontCollection
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], vtable.Gdiplus::FontCollection.0
add eax, 0xfffffff0
jmp 0x413417
push eax
push esi
lea edi, [ebp - 0xc]
lea eax, [ebp - 0x18]
call fcn.0041369c
test eax, eax
jne 0x4134b0
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jle 0x4134b0
mov eax, dword [ebp + 8]
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
jmp 0x413472
mov esi, dword [ebp + 8]
call fcn.00413176
jmp 0x413472
Function at 0x4135f9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and word [ebp - 0x210], 0
push 0x20e
lea eax, [ebp - 0x20e]
push 0
push eax
call fcn.00497490
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp + 8]
call fcn.004019c5
mov eax, dword [ebp + 8]
leave
ret 4
Function at 0x41566b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
inc ebx
cmp eax, 0xf
push edi
mov esi, ecx
jne 0x41569a
mov ecx, dword [ebp + 0x18]
lea eax, [esi + 0xac]
mov dword [eax], ebx
and dword [ecx], 0
cmp dword [eax], 0
je 0x4156d1
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
cmp eax, 2
jne 0x4156f2
push dword [esi + 0x10]
mov dword [esi + 0xac], ebx
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x4156cb
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4156cb
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 0x18]
and dword [eax], 0
cmp dword [esi + 0xac], 0
jne 0x415691
push dword [ebp + 0x18]
mov ecx, esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041d4bf
jmp 0x415693
cmp eax, 0x47
jne 0x415717
push dword [ebp + 0x14]
lea edi, [esi + 0xac]
mov eax, esi
mov dword [edi], ebx
call fcn.0041576f
mov eax, dword [ebp + 0x18]
and dword [eax], 0
cmp dword [edi], 0
jmp 0x41568f
cmp eax, 0x18
jne 0x4156d1
push dword [ebp + 0x10]
mov dword [esi + 0xac], ebx
call fcn.00415846
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x41574f
push dword [esi + 8]
jmp 0x415745
mov ecx, dword [eax + 0x34]
shr ecx, 3
not ecx
test bl, cl
je 0x415759
push dword [eax + 8]
call fcn.0041e36f
cmp eax, edi
pop ecx
jne 0x415736
mov eax, dword [ebp + 0x10]
mov ecx, esi
call fcn.0040aceb
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
cmp dword [esi + 0xac], edi
jne 0x415691
jmp 0x4156d1

Function at 0x41e8fa
Capabilities:
Terminate thread

Disassembly:
push esi
push edi
mov edi, ecx
lea esi, [edi + 4]
mov eax, esi
mov dword [edi], vtable.KAvVirusDetect.0
call fcn.0041e8b7
test eax, eax
je 0x41e924
mov eax, dword [esi]
test eax, eax
je 0x41e924
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, esi
call fcn.0041e8b7
test eax, eax
je 0x41e93e
mov eax, dword [esi]
test eax, eax
je 0x41e93e
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov eax, dword [edi + 0xc]
sub eax, 0x10
call fcn.0040151c
mov eax, dword [esi]
test eax, eax
je 0x41e959
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
and dword [esi], 0
pop edi
pop esi
ret
Function at 0x41efaf
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
push edi
push ebx
mov esi, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.00424eae
lea eax, [esp + 0x10]
mov dword [esp], str.btbg.gif
call fcn.004019c5
lea eax, [esp + 0xc]
push eax
lea edi, [esp + 0x14]
call fcn.0040563f
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.0040151c
push str..kid
lea eax, [esp + 0x10]
call fcn.004019c5
lea eax, [esp + 0xc]
push eax
call fcn.0040563f
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x41f04b
push str.scom.xml
mov eax, esi
lea ecx, [esp + 0x10]
call fcn.0041e85e
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [esi]
xor edi, edi
inc edi
cmp dword [eax - 0xc], ebx
je 0x41f071
push eax
call fcn.0041f0cc
test eax, eax
je 0x41f071
push esi
push 0x41f3e8
push ebx
push edi
push dword [esi]
call fcn.00424a75
add esp, 0x14
mov eax, dword [esi + 4]
cmp dword [eax - 0xc], ebx
je 0x41f092
push eax
call fcn.0041f0cc
test eax, eax
je 0x41f092
push ebx
push ebx
push edi
push edi
push dword [esi + 4]
call fcn.00424a75
add esp, 0x14
mov eax, dword [esi + 8]
cmp dword [eax - 0xc], ebx
je 0x41f0b3
push eax
call fcn.0041f0cc
test eax, eax
je 0x41f0b3
push ebx
push ebx
push edi
push edi
push dword [esi + 8]
call fcn.00424a75
add esp, 0x14
push edi
call fcn.00424eae
pop ecx
lea esi, [esp + 0x10]
call fcn.00405eae
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41f15d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00423eb2
test eax, eax
je 0x41f21f
push 0
call fcn.00424eae
mov dword [esp], str.SYSTEMCurrentControlSet_services_bc
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0042502d
push eax
push str.ClearBCDriver_delete_reg_return:_d
mov esi, 0x52a8fc
call fcn.0044cbdd
add esp, 0x10
mov ebx, str.bc.sys
push ebx
lea edi, [ebp - 8]
call fcn.00424abb
lea ecx, [ebp - 4]
call fcn.0041e85e
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040151c
push ebx
lea edi, [ebp - 0x14]
call fcn.00424abb
lea ecx, [ebp - 0x10]
call fcn.0041e85e
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push dword [ebp - 0xc]
push str.DeleteFile_return:_d__error:_d__path:_ws
call fcn.0044cbdd
mov eax, dword [ebp - 0x10]
add esp, 0x10
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040151c
push 1
call fcn.00424eae
pop ecx
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x41f7c7
Capabilities:
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, eax
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x41f84f
test byte [0x52af70], 1
mov esi, 0x52af6c
jne 0x41f809
or dword [0x52af70], 1
push str.6EED6E3F_BDA6_490e_8F67_6ECDD0697AB2
mov eax, esi
call fcn.004019c5
push 0x4f0460
call fcn.00499bbf
pop ecx
push esi
mov eax, edi
lea ecx, [ebp - 4]
call fcn.0041e789
pop ecx
push dword [eax]
call fcn.0047fc95
mov ebx, eax
mov eax, dword [ebp - 4]
pop ecx
add eax, 0xfffffff0
call fcn.0040151c
test ebx, ebx
je 0x41f864
push esi
mov eax, edi
lea ecx, [ebp + 8]
call fcn.0041e789
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040151c
jmp 0x41f885
mov eax, dword [edi]
push 6
push eax
call fcn.00499720
test eax, eax
pop ecx
pop ecx
je 0x41f885
cmp eax, 2
je 0x41f885
push 1
push dword [edi]
call fcn.0048ab00
pop ecx
pop ecx
push 0x80
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push edi
mov edi, dword [ebp + 8]
call fcn.0040563f
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41f88c
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
push str.programfiles
call fcn.0049a0a3
pop ecx
push eax
lea eax, [ebp - 8]
call fcn.004019c5
lea eax, [ebp - 8]
push eax
call fcn.00442fca
lea eax, [ebp - 8]
mov dword [esp], str.kingsoft
push eax
call fcn.00405529
mov esi, dword [ebp - 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41f984
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x41f984
push ebx
lea eax, [ebp - 8]
call fcn.0041f7c7
lea eax, [ebp - 8]
push eax
mov ecx, ebx
call fcn.0041f5ad
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 8]
jbe 0x41f909
call fcn.0049853b
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], ebx
mov esi, dword [ebx + 8]
cmp dword [ebx + 4], esi
jbe 0x41f91f
call fcn.0049853b
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x18]
lea esi, [ebp - 0x10]
call fcn.00480078
test al, al
je 0x41f97c
call fcn.00427cb8
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41f972
call fcn.00427cb8
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x41f965
call fcn.00427cb8
push 1
push dword [eax]
call fcn.0048a03f
pop ecx
pop ecx
jmp 0x41f972
call fcn.00427cb8
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea esi, [ebp - 0x10]
call fcn.0044edc0
jmp 0x41f912
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
jmp 0x41f987
lea eax, [esi - 0x10]
call fcn.0040151c
pop edi
pop esi
leave
ret 4
Function at 0x41fa2b
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
mov esi, eax
mov ecx, 0x5289f4
call fcn.004016a6
lea edi, [ebp - 4]
call fcn.0041f992
mov edi, esi
call fcn.00402073
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, ebx
jne 0x41fb3d
lea eax, [ebp - 4]
call fcn.0041fb44
call fcn.00402073
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x41faa7
call fcn.00423eb2
test eax, eax
mov eax, str.Program_Files__x86_
jne 0x41fa9e
mov eax, str.Program_Files
push eax
push esi
call fcn.00405529
jmp 0x41fb26
lea eax, [ebp - 4]
call fcn.0041fbd6
call fcn.00402073
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
jne 0x41fa8b
push 0x206
lea eax, [ebp - 0x20e]
push ebx
push eax
mov word [ebp - 0x210], bx
call fcn.00497490
add esp, 0xc
push str.programfiles
call fcn.0049a0a3
pop ecx
push eax
push esi
call fcn.00401b57
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jne 0x41fb26
push ebx
push 0x26
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, ebx
je 0x41fb1b
lea eax, [ebp - 0x210]
push eax
jmp 0x41fb20
push str.c:Program_Files
push esi
call fcn.00401b57
mov eax, esi
call fcn.0040538f
call fcn.0042360a
push str.kingsoftkingsoft_antivirus_
push esi
call fcn.00405529
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x41fc68
Capabilities:
Create thread

Disassembly:
push edi
push 0x3c
lea eax, [esi + 4]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push str.Global48411015_6EB4_4469_8D21_A8A9C8B7FB0D
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
cmp eax, edi
mov dword [esi + 8], eax
je 0x41fca5
push edi
push edi
push esi
push 0x41fcdf
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp eax, edi
mov dword [esi + 0xc], eax
je 0x41fca5
inc edi
mov eax, edi
pop edi
ret