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

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [0x4de3c0]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], ebp
je 0x40575d
mov esi, dword [eax + 4]
jmp 0x40575f
xor esi, esi
cmp esi, ebp
jne 0x40576f
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
cmp esi, ebp
je 0x405794
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x405794
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x405794
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.00405fd6
mov ebx, eax
cmp ebx, ebp
jne 0x4057bd
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x405899
mov edx, ebx
call fcn.0040b287
mov dword [esp + 0x20], eax
lea eax, [edi + 4]
push eax
mov eax, esi
call fcn.0040b13a
cmp dword [edi + 0x36c], ebp
je 0x405847
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 0x40582a
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 0x405847
push ebp
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
call fcn.00406135
push 0x97
push ebp
lea ebx, [edi + 4]
push ebx
mov dword [edi + 0x378], ebp
call fcn.0041e2b0
cmp dword [esp + 0x1c], ebp
je 0x405885
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp esi, ebp
je 0x405885
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx]
jne 0x405885
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x20]
call fcn.0040b287
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 0x4058a1
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [0x4de3c0]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], ebp
je 0x4058be
mov esi, dword [eax + 4]
jmp 0x4058c0
xor esi, esi
cmp esi, ebp
jne 0x4058d0
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
cmp esi, ebp
je 0x4058f5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x4058f5
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4058f5
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.004061ad
mov ebx, eax
cmp ebx, ebp
jne 0x40591e
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x4059fa
mov edx, ebx
call fcn.0040b287
mov dword [esp + 0x20], eax
lea eax, [edi + 4]
push eax
mov eax, esi
call fcn.0040b13a
cmp dword [edi + 0x36c], ebp
je 0x4059a8
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 0x40598b
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 0x4059a8
push ebp
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
call fcn.00406135
push 0x97
push ebp
lea ebx, [edi + 4]
push ebx
mov dword [edi + 0x378], ebp
call fcn.0041e2b0
cmp dword [esp + 0x1c], ebp
je 0x4059e6
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp esi, ebp
je 0x4059e6
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx]
jne 0x4059e6
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x20]
call fcn.0040b287
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 0x40a52b
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 0x40a54a
xor eax, eax
jmp 0x40a59a
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x40a546
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40a546
push ebx
lea ebx, [edi + 1]
push ebx
call fcn.00401ea1
test eax, eax
je 0x40a586
push edi
push dword [ebp - 4]
push eax
call fcn.0048a740
add esp, 0xc
mov eax, ebx
call fcn.0040a47b
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 0x40a59e
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 0x40a67b
mov eax, dword [0x4dd4b4]
mov ecx, 0x4dd4b4
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.0041e2cd
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 0x40a670
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x40a667
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.00401ea1
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x40a65e
cmp dword [ebp + 8], edi
jne 0x40a65e
mov eax, edi
call fcn.0040a47b
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 0x40a67e
xor eax, eax
mov edx, esi
call fcn.00401e81
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 0x40a7fd
Capabilities:
Hide graphical window

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 1
push edi
mov edi, eax
jne 0x40a87a
push 0
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [edi + 0x14], 0xfd
jmp 0x40a8d7
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 0x40a8dc
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
je 0x40a8dc
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x40a8d7
or byte [edi + 0x14], 4
mov al, byte [edi + 0x14]
test al, 2
jne 0x40a8ce
push dword [ebp + 8]
or al, 2
mov byte [edi + 0x14], al
call fcn.00409f6f
push 8
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40a8d7
cmp dword [edi + 0x18], esi
je 0x40a8d7
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], esi
jmp 0x40a8eb
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 0x40c873
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 0x40c89e
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [edi], ebx
mov eax, dword [esi + 0x2b4]
cmp eax, ebx
je 0x40c97d
push eax
call fcn.0041ddc8
mov edi, eax
cmp edi, ebx
pop ecx
je 0x40c932
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 0x40c8d7
push 1
push edi
push esi
call fcn.0040b08a
mov eax, dword [esi + 0x2b4]
cmp eax, dword [esi + 0x2b0]
jne 0x40c932
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.0041e00a
mov eax, dword [edi + 0x40]
cmp eax, ebx
je 0x40c921
cmp word [eax], bx
je 0x40c921
push 1
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40c932
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x40c932
mov dword [ebp - 4], 1
mov dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
mov dword [esi + 0x2b4], ebx
je 0x40c97d
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 0x4118a8
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 0x41190b
cmp dword [ebp + 0xc], 1
je 0x4118e4
cmp dword [ebp + 0xc], 2
je 0x4118e4
push 0xd
pop eax
jmp 0x41190b
test edi, edi
mov eax, dword [ebp - 4]
je 0x411905
test eax, eax
je 0x411901
test al, 1
jne 0x4118df
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x411905
jmp 0x4118df
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x413389
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.0041316c
push dword [esi]
lea eax, [ebp - 4]
push eax
push esi
call fcn.004134b3
mov edi, dword [ebp - 4]
xor esi, esi
cmp dword [edi - 0xc], esi
je 0x41340d
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41340d
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 0x41341c
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 0x41345f
mov dword [eax], esi
add eax, 4
lea edx, [esi - 1]
test edx, edx
mov ecx, eax
jl 0x413461
and dword [ecx], 0
and dword [ecx + 4], 0
add ecx, 8
dec edx
jns 0x413450
jmp 0x413461
xor eax, eax
test eax, eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
jne 0x413486
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 0x413410
push eax
push esi
lea edi, [ebp - 0xc]
lea eax, [ebp - 0x18]
call fcn.00413695
test eax, eax
jne 0x4134a9
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jle 0x4134a9
mov eax, dword [ebp + 8]
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
jmp 0x41346b
mov esi, dword [ebp + 8]
call fcn.0041316c
jmp 0x41346b
Function at 0x4135f2
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.0048a3a0
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.00401994
mov eax, dword [ebp + 8]
leave
ret 4
Function at 0x415621
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 0x415650
mov ecx, dword [ebp + 0x18]
lea eax, [esi + 0xac]
mov dword [eax], ebx
and dword [ecx], 0
cmp dword [eax], 0
je 0x415687
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
cmp eax, 2
jne 0x4156a8
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 0x415681
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x415681
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 0x415647
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.0041cf14
jmp 0x415649
cmp eax, 0x47
jne 0x4156cd
push dword [ebp + 0x14]
lea edi, [esi + 0xac]
mov eax, esi
mov dword [edi], ebx
call fcn.00415725
mov eax, dword [ebp + 0x18]
and dword [eax], 0
cmp dword [edi], 0
jmp 0x415645
cmp eax, 0x18
jne 0x415687
push dword [ebp + 0x10]
mov dword [esi + 0xac], ebx
call fcn.004157fc
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x415705
push dword [esi + 8]
jmp 0x4156fb
mov ecx, dword [eax + 0x34]
shr ecx, 3
not ecx
test bl, cl
je 0x41570f
push dword [eax + 8]
call fcn.0041ddc8
cmp eax, edi
pop ecx
jne 0x4156ec
mov eax, dword [ebp + 0x10]
mov ecx, esi
call fcn.0040ad18
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
cmp dword [esi + 0xac], edi
jne 0x415647
jmp 0x415687

Function at 0x41e37c
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.0041e339
test eax, eax
je 0x41e3a6
mov eax, dword [esi]
test eax, eax
je 0x41e3a6
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, esi
call fcn.0041e339
test eax, eax
je 0x41e3c0
mov eax, dword [esi]
test eax, eax
je 0x41e3c0
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 0x41e3db
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
and dword [esi], 0
pop edi
pop esi
ret
Function at 0x41ea57
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.004246ac
lea eax, [esp + 0x10]
mov dword [esp], str.btbg.gif
call fcn.00401994
lea eax, [esp + 0xc]
push eax
lea edi, [esp + 0x14]
call fcn.00405465
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.0040151c
push str..kid
lea eax, [esp + 0x10]
call fcn.00401994
lea eax, [esp + 0xc]
push eax
call fcn.00405465
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x41eaf3
push str.scom.xml
mov eax, esi
lea ecx, [esp + 0x10]
call fcn.0041e2e0
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 0x41eb19
push eax
call fcn.0041eb74
test eax, eax
je 0x41eb19
push esi
push 0x41ee90
push ebx
push edi
push dword [esi]
call fcn.00424273
add esp, 0x14
mov eax, dword [esi + 4]
cmp dword [eax - 0xc], ebx
je 0x41eb3a
push eax
call fcn.0041eb74
test eax, eax
je 0x41eb3a
push ebx
push ebx
push edi
push edi
push dword [esi + 4]
call fcn.00424273
add esp, 0x14
mov eax, dword [esi + 8]
cmp dword [eax - 0xc], ebx
je 0x41eb5b
push eax
call fcn.0041eb74
test eax, eax
je 0x41eb5b
push ebx
push ebx
push edi
push edi
push dword [esi + 8]
call fcn.00424273
add esp, 0x14
push edi
call fcn.004246ac
pop ecx
lea esi, [esp + 0x10]
call fcn.00405cc1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41ec05
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004236b0
test eax, eax
je 0x41ecc7
push 0
call fcn.004246ac
mov dword [esp], str.SYSTEMCurrentControlSet_services_bc
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0042486a
push eax
push str.ClearBCDriver_delete_reg_return:_d
mov esi, 0x4de92c
call fcn.0044aa61
add esp, 0x10
mov ebx, str.bc.sys
push ebx
lea edi, [ebp - 8]
call fcn.004242b9
lea ecx, [ebp - 4]
call fcn.0041e2e0
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.004242b9
lea ecx, [ebp - 0x10]
call fcn.0041e2e0
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.0044aa61
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.004246ac
pop ecx
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x41f055
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 0x41f0cc
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 0x41f0cc
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 [0x4c8578]
fcomp qword [0x4c8550]
fnstsw ax
test ah, 1
jne 0x41f0cc
inc esi
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x41f16b
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, 0x4dd4b4
call fcn.004016ab
lea edi, [ebp - 4]
call fcn.0041f0d2
mov edi, esi
call fcn.0040204d
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 0x41f27d
lea eax, [ebp - 4]
call fcn.0041f284
call fcn.0040204d
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x41f1e7
call fcn.004236b0
test eax, eax
mov eax, 0x4bb7f0
jne 0x41f1de
mov eax, str.Program_Files
push eax
push esi
call fcn.0040537b
jmp 0x41f266
lea eax, [ebp - 4]
call fcn.0041f316
call fcn.0040204d
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
jne 0x41f1cb
push 0x206
lea eax, [ebp - 0x20e]
push ebx
push eax
mov word [ebp - 0x210], bx
call fcn.0048a3a0
add esp, 0xc
push str.programfiles
call fcn.0048cf63
pop ecx
push eax
push esi
call fcn.00401af8
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jne 0x41f266
push ebx
push 0x26
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, ebx
je 0x41f25b
lea eax, [ebp - 0x210]
push eax
jmp 0x41f260
push str.c:Program_Files
push esi
call fcn.00401af8
mov eax, esi
call fcn.0040520e
call fcn.00422daf
push str.kingsoftkingsoft_antivirus_
push esi
call fcn.0040537b
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

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