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

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [0x4e03c8]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], ebp
je 0x40574b
mov esi, dword [eax + 4]
jmp 0x40574d
xor esi, esi
cmp esi, ebp
jne 0x40575d
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
cmp esi, ebp
je 0x405782
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x405782
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x405782
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.00405fcc
mov ebx, eax
cmp ebx, ebp
jne 0x4057ab
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x405887
mov edx, ebx
call fcn.0040af05
mov dword [esp + 0x20], eax
lea eax, [edi + 4]
push eax
mov eax, esi
call fcn.0040adb8
cmp dword [edi + 0x36c], ebp
je 0x405835
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 0x405818
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 0x405835
push ebp
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
call fcn.0040612b
push 0x97
push ebp
lea ebx, [edi + 4]
push ebx
mov dword [edi + 0x378], ebp
call fcn.0041dffe
cmp dword [esp + 0x1c], ebp
je 0x405873
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp esi, ebp
je 0x405873
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx]
jne 0x405873
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x20]
call fcn.0040af05
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 0x40588f
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [0x4e03c8]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], ebp
je 0x4058ac
mov esi, dword [eax + 4]
jmp 0x4058ae
xor esi, esi
cmp esi, ebp
jne 0x4058be
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
cmp esi, ebp
je 0x4058e3
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x4058e3
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4058e3
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.004061a3
mov ebx, eax
cmp ebx, ebp
jne 0x40590c
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x4059e8
mov edx, ebx
call fcn.0040af05
mov dword [esp + 0x20], eax
lea eax, [edi + 4]
push eax
mov eax, esi
call fcn.0040adb8
cmp dword [edi + 0x36c], ebp
je 0x405996
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 0x405979
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 0x405996
push ebp
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
call fcn.0040612b
push 0x97
push ebp
lea ebx, [edi + 4]
push ebx
mov dword [edi + 0x378], ebp
call fcn.0041dffe
cmp dword [esp + 0x1c], ebp
je 0x4059d4
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp esi, ebp
je 0x4059d4
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx]
jne 0x4059d4
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x20]
call fcn.0040af05
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 0x406cea
Capabilities:
Log keystrokes via polling

Disassembly:
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x406d31
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x406d2a
cmp dword [esp + 4], 0x1b
jne 0x406d11
push 0
push 2
jmp 0x406d1c
cmp dword [esp + 4], 0xd
jne 0x406d2a
push 0
push 1
push 0x111
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
and dword [esi + 0x37c], 0
ret 4
Function at 0x40a234
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 0x40a253
xor eax, eax
jmp 0x40a2a3
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x40a24f
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40a24f
push ebx
lea ebx, [edi + 1]
push ebx
call fcn.00401e87
test eax, eax
je 0x40a28f
push edi
push dword [ebp - 4]
push eax
call fcn.0048b650
add esp, 0xc
mov eax, ebx
call fcn.0040a184
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 0x40a2a7
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 0x40a384
mov eax, dword [0x4df4b4]
mov ecx, 0x4df4b4
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.0041e01b
add esp, 0x14
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
je 0x40a379
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x40a370
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.00401e87
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x40a367
cmp dword [ebp + 8], edi
jne 0x40a367
mov eax, edi
call fcn.0040a184
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 0x40a387
xor eax, eax
mov edx, esi
call fcn.00401e67
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 0x40a506
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
test byte [esi + 0x14], 2
je 0x40a55f
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 0x40a550
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
sub edx, eax
je 0x40a550
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 0x40a55f
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0x14], 0xfd
leave
ret 4
Function at 0x40a563
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 1
push edi
mov edi, eax
jne 0x40a583
push 0
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [edi + 0x14], 0xfd
jmp 0x40a5e0
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 0x40a5e5
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
je 0x40a5e5
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x40a5e0
or byte [edi + 0x14], 4
mov al, byte [edi + 0x14]
test al, 2
jne 0x40a5d7
push dword [ebp + 8]
or al, 2
mov byte [edi + 0x14], al
call fcn.00409c78
push 8
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40a5e0
cmp dword [edi + 0x18], esi
je 0x40a5e0
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], esi
jmp 0x40a5f4
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 0x40c4f1
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 0x40c51c
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [edi], ebx
mov eax, dword [esi + 0x2b4]
cmp eax, ebx
je 0x40c5fb
push eax
call fcn.0041db3f
mov edi, eax
cmp edi, ebx
pop ecx
je 0x40c5b0
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 0x40c555
push 1
push edi
push esi
call fcn.0040ad08
mov eax, dword [esi + 0x2b4]
cmp eax, dword [esi + 0x2b0]
jne 0x40c5b0
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.0041dd81
mov eax, dword [edi + 0x40]
cmp eax, ebx
je 0x40c59f
cmp word [eax], bx
je 0x40c59f
push 1
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40c5b0
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x40c5b0
mov dword [ebp - 4], 1
mov dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
mov dword [esi + 0x2b4], ebx
je 0x40c5fb
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 0x411538
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 0x41159b
cmp dword [ebp + 0xc], 1
je 0x411574
cmp dword [ebp + 0xc], 2
je 0x411574
push 0xd
pop eax
jmp 0x41159b
test edi, edi
mov eax, dword [ebp - 4]
je 0x411595
test eax, eax
je 0x411591
test al, 1
jne 0x41156f
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x411595
jmp 0x41156f
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x41305a
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.00412e3d
push dword [esi]
lea eax, [ebp - 4]
push eax
push esi
call fcn.00413184
mov edi, dword [ebp - 4]
xor esi, esi
cmp dword [edi - 0xc], esi
je 0x4130de
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4130de
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 0x4130ed
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 0x413130
mov dword [eax], esi
add eax, 4
lea edx, [esi - 1]
test edx, edx
mov ecx, eax
jl 0x413132
and dword [ecx], 0
and dword [ecx + 4], 0
add ecx, 8
dec edx
jns 0x413121
jmp 0x413132
xor eax, eax
test eax, eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
jne 0x413157
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 0x4130e1
push eax
push esi
lea edi, [ebp - 0xc]
lea eax, [ebp - 0x18]
call fcn.00413366
test eax, eax
jne 0x41317a
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jle 0x41317a
mov eax, dword [ebp + 8]
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
jmp 0x41313c
mov esi, dword [ebp + 8]
call fcn.00412e3d
jmp 0x41313c
Function at 0x4132c3
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.0048af40
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.00401965
mov eax, dword [ebp + 8]
leave
ret 4
Function at 0x4152b7
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 0x4152e6
mov ecx, dword [ebp + 0x18]
lea eax, [esi + 0xac]
mov dword [eax], ebx
and dword [ecx], 0
cmp dword [eax], 0
je 0x41531d
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
cmp eax, 2
jne 0x41533e
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 0x415317
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x415317
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 0x4152dd
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.0041cbe6
jmp 0x4152df
cmp eax, 0x47
jne 0x415363
push dword [ebp + 0x14]
lea edi, [esi + 0xac]
mov eax, esi
mov dword [edi], ebx
call fcn.004153bb
mov eax, dword [ebp + 0x18]
and dword [eax], 0
cmp dword [edi], 0
jmp 0x4152db
cmp eax, 0x18
jne 0x41531d
push dword [ebp + 0x10]
mov dword [esi + 0xac], ebx
call fcn.00415492
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x41539b
push dword [esi + 8]
jmp 0x415391
mov ecx, dword [eax + 0x34]
shr ecx, 3
not ecx
test bl, cl
je 0x4153a5
push dword [eax + 8]
call fcn.0041db3f
cmp eax, edi
pop ecx
jne 0x415382
mov eax, dword [ebp + 0x10]
mov ecx, esi
call fcn.0040aa21
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
cmp dword [esi + 0xac], edi
jne 0x4152dd
jmp 0x41531d

Function at 0x41e0ca
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.0041e087
test eax, eax
je 0x41e0f4
mov eax, dword [esi]
test eax, eax
je 0x41e0f4
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, esi
call fcn.0041e087
test eax, eax
je 0x41e10e
mov eax, dword [esi]
test eax, eax
je 0x41e10e
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 0x41e129
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
and dword [esi], 0
pop edi
pop esi
ret
Function at 0x41e7a5
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.004243e2
lea eax, [esp + 0x10]
mov dword [esp], str.btbg.gif
call fcn.00401965
lea eax, [esp + 0xc]
push eax
lea edi, [esp + 0x14]
call fcn.00405453
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.0040151c
push str..kid
lea eax, [esp + 0x10]
call fcn.00401965
lea eax, [esp + 0xc]
push eax
call fcn.00405453
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x41e841
push str.scom.xml
mov eax, esi
lea ecx, [esp + 0x10]
call fcn.0041e02e
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 0x41e867
push eax
call fcn.0041e8c2
test eax, eax
je 0x41e867
push esi
push 0x41ebde
push ebx
push edi
push dword [esi]
call fcn.00423fa9
add esp, 0x14
mov eax, dword [esi + 4]
cmp dword [eax - 0xc], ebx
je 0x41e888
push eax
call fcn.0041e8c2
test eax, eax
je 0x41e888
push ebx
push ebx
push edi
push edi
push dword [esi + 4]
call fcn.00423fa9
add esp, 0x14
mov eax, dword [esi + 8]
cmp dword [eax - 0xc], ebx
je 0x41e8a9
push eax
call fcn.0041e8c2
test eax, eax
je 0x41e8a9
push ebx
push ebx
push edi
push edi
push dword [esi + 8]
call fcn.00423fa9
add esp, 0x14
push edi
call fcn.004243e2
pop ecx
lea esi, [esp + 0x10]
call fcn.00405caf
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41e953
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004233e6
test eax, eax
je 0x41ea15
push 0
call fcn.004243e2
mov dword [esp], str.SYSTEMCurrentControlSet_services_bc
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004245a0
push eax
push str.ClearBCDriver_delete_reg_return:_d
mov esi, 0x4e096c
call fcn.0044ae36
add esp, 0x10
mov ebx, str.bc.sys
push ebx
lea edi, [ebp - 8]
call fcn.00423fef
lea ecx, [ebp - 4]
call fcn.0041e02e
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.00423fef
lea ecx, [ebp - 0x10]
call fcn.0041e02e
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.0044ae36
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.004243e2
pop ecx
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x41ed8b
Capabilities:
Get disk information
Get disk size

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

Function at 0x41eea1
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, 0x4df4b4
call fcn.004016a0
lea edi, [ebp - 4]
call fcn.0041ee08
mov edi, esi
call fcn.00402033
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 0x41efb3
lea eax, [ebp - 4]
call fcn.0041efba
call fcn.00402033
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x41ef1d
call fcn.004233e6
test eax, eax
mov eax, 0x4bd958
jne 0x41ef14
mov eax, str.Program_Files
push eax
push esi
call fcn.00405369
jmp 0x41ef9c
lea eax, [ebp - 4]
call fcn.0041f04c
call fcn.00402033
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
jne 0x41ef01
push 0x206
lea eax, [ebp - 0x20e]
push ebx
push eax
mov word [ebp - 0x210], bx
call fcn.0048af40
add esp, 0xc
push str.programfiles
call fcn.0048db2b
pop ecx
push eax
push esi
call fcn.00401ac9
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jne 0x41ef9c
push ebx
push 0x26
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, ebx
je 0x41ef91
lea eax, [ebp - 0x210]
push eax
jmp 0x41ef96
push str.c:Program_Files
push esi
call fcn.00401ac9
mov eax, esi
call fcn.004051fc
call fcn.00422ae5
push str.kingsoftkingsoft_antivirus_
push esi
call fcn.00405369
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x41f0de
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 0x41f11b
push edi
push edi
push esi
push 0x41f155
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp eax, edi
mov dword [esi + 0xc], eax
je 0x41f11b
inc edi
mov eax, edi
pop edi
ret