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

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [0x4df3c8]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], ebp
je 0x4058ce
mov esi, dword [eax + 4]
jmp 0x4058d0
xor esi, esi
cmp esi, ebp
jne 0x4058e0
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
cmp esi, ebp
je 0x405905
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x405905
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x405905
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.00406145
mov ebx, eax
cmp ebx, ebp
jne 0x40592e
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x405a0a
mov edx, ebx
call fcn.0040afa1
mov dword [esp + 0x20], eax
lea eax, [edi + 4]
push eax
mov eax, esi
call fcn.0040ae54
cmp dword [edi + 0x36c], ebp
je 0x4059b8
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 0x40599b
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 0x4059b8
push ebp
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
call fcn.00457f2d
push 0x97
push ebp
lea ebx, [edi + 4]
push ebx
mov dword [edi + 0x378], ebp
call fcn.0041e0ad
cmp dword [esp + 0x1c], ebp
je 0x4059f6
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp esi, ebp
je 0x4059f6
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx]
jne 0x4059f6
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x20]
call fcn.0040afa1
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 0x40a2de
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 0x40a2fd
xor eax, eax
jmp 0x40a34d
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x40a2f9
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40a2f9
push ebx
lea ebx, [edi + 1]
push ebx
call fcn.00401ea1
test eax, eax
je 0x40a339
push edi
push dword [ebp - 4]
push eax
call fcn.0048b2f0
add esp, 0xc
mov eax, ebx
call fcn.0040a22e
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 0x40a351
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 0x40a42e
mov eax, dword [0x4de4b4]
mov ecx, 0x4de4b4
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.0041e0ca
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 0x40a423
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x40a41a
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 0x40a411
cmp dword [ebp + 8], edi
jne 0x40a411
mov eax, edi
call fcn.0040a22e
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 0x40a431
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 0x40a5b0
Capabilities:
Hide graphical window

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 1
push edi
mov edi, eax
jne 0x40a62d
push 0
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [edi + 0x14], 0xfd
jmp 0x40a68a
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 0x40a68f
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
je 0x40a68f
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x40a68a
or byte [edi + 0x14], 4
mov al, byte [edi + 0x14]
test al, 2
jne 0x40a681
push dword [ebp + 8]
or al, 2
mov byte [edi + 0x14], al
call fcn.00409d22
push 8
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40a68a
cmp dword [edi + 0x18], esi
je 0x40a68a
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], esi
jmp 0x40a69e
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 0x40c58d
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 0x40c5b8
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [edi], ebx
mov eax, dword [esi + 0x2b4]
cmp eax, ebx
je 0x40c697
push eax
call fcn.0041dbee
mov edi, eax
cmp edi, ebx
pop ecx
je 0x40c64c
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 0x40c5f1
push 1
push edi
push esi
call fcn.0040ada4
mov eax, dword [esi + 0x2b4]
cmp eax, dword [esi + 0x2b0]
jne 0x40c64c
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.0041de30
mov eax, dword [edi + 0x40]
cmp eax, ebx
je 0x40c63b
cmp word [eax], bx
je 0x40c63b
push 1
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40c64c
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x40c64c
mov dword [ebp - 4], 1
mov dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
mov dword [esi + 0x2b4], ebx
je 0x40c697
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 0x411614
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 0x411677
cmp dword [ebp + 0xc], 1
je 0x411650
cmp dword [ebp + 0xc], 2
je 0x411650
push 0xd
pop eax
jmp 0x411677
test edi, edi
mov eax, dword [ebp - 4]
je 0x411671
test eax, eax
je 0x41166d
test al, 1
jne 0x41164b
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x411671
jmp 0x41164b
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x413104
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.00412ee7
push dword [esi]
lea eax, [ebp - 4]
push eax
push esi
call fcn.0041322e
mov edi, dword [ebp - 4]
xor esi, esi
cmp dword [edi - 0xc], esi
je 0x413188
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413188
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 0x413197
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 0x4131da
mov dword [eax], esi
add eax, 4
lea edx, [esi - 1]
test edx, edx
mov ecx, eax
jl 0x4131dc
and dword [ecx], 0
and dword [ecx + 4], 0
add ecx, 8
dec edx
jns 0x4131cb
jmp 0x4131dc
xor eax, eax
test eax, eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
jne 0x413201
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 0x41318b
push eax
push esi
lea edi, [ebp - 0xc]
lea eax, [ebp - 0x18]
call fcn.00413410
test eax, eax
jne 0x413224
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jle 0x413224
mov eax, dword [ebp + 8]
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
jmp 0x4131e6
mov esi, dword [ebp + 8]
call fcn.00412ee7
jmp 0x4131e6
Function at 0x41336d
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.0048a830
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 0x4153e1
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 0x415410
mov ecx, dword [ebp + 0x18]
lea eax, [esi + 0xac]
mov dword [eax], ebx
and dword [ecx], 0
cmp dword [eax], 0
je 0x415447
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
cmp eax, 2
jne 0x415468
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 0x415441
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x415441
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 0x415407
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.0041ccc3
jmp 0x415409
cmp eax, 0x47
jne 0x41548d
push dword [ebp + 0x14]
lea edi, [esi + 0xac]
mov eax, esi
mov dword [edi], ebx
call fcn.004154e5
mov eax, dword [ebp + 0x18]
and dword [eax], 0
cmp dword [edi], 0
jmp 0x415405
cmp eax, 0x18
jne 0x415447
push dword [ebp + 0x10]
mov dword [esi + 0xac], ebx
call fcn.004155bc
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x4154c5
push dword [esi + 8]
jmp 0x4154bb
mov ecx, dword [eax + 0x34]
shr ecx, 3
not ecx
test bl, cl
je 0x4154cf
push dword [eax + 8]
call fcn.0041dbee
cmp eax, edi
pop ecx
jne 0x4154ac
mov eax, dword [ebp + 0x10]
mov ecx, esi
call fcn.0040aabd
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
cmp dword [esi + 0xac], edi
jne 0x415407
jmp 0x415447

Function at 0x41e179
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.0041e136
test eax, eax
je 0x41e1a3
mov eax, dword [esi]
test eax, eax
je 0x41e1a3
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, esi
call fcn.0041e136
test eax, eax
je 0x41e1bd
mov eax, dword [esi]
test eax, eax
je 0x41e1bd
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 0x41e1d8
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
and dword [esi], 0
pop edi
pop esi
ret
Function at 0x41e82e
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.0042435b
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.00405458
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.00405458
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x41e8ca
push str.scom.xml
mov eax, esi
lea ecx, [esp + 0x10]
call fcn.0041e0dd
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 0x41e8f0
push eax
call fcn.0041e94b
test eax, eax
je 0x41e8f0
push esi
push 0x41ec67
push ebx
push edi
push dword [esi]
call fcn.00423f22
add esp, 0x14
mov eax, dword [esi + 4]
cmp dword [eax - 0xc], ebx
je 0x41e911
push eax
call fcn.0041e94b
test eax, eax
je 0x41e911
push ebx
push ebx
push edi
push edi
push dword [esi + 4]
call fcn.00423f22
add esp, 0x14
mov eax, dword [esi + 8]
cmp dword [eax - 0xc], ebx
je 0x41e932
push eax
call fcn.0041e94b
test eax, eax
je 0x41e932
push ebx
push ebx
push edi
push edi
push dword [esi + 8]
call fcn.00423f22
add esp, 0x14
push edi
call fcn.0042435b
pop ecx
lea esi, [esp + 0x10]
call fcn.00405cd1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41e9dc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0042335f
test eax, eax
je 0x41ea9e
push 0
call fcn.0042435b
mov dword [esp], str.SYSTEMCurrentControlSet_services_bc
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0042448a
push eax
push str.ClearBCDriver_delete_reg_return:_d
mov esi, 0x4df93c
call fcn.0044a8d7
add esp, 0x10
mov ebx, str.bc.sys
push ebx
lea edi, [ebp - 8]
call fcn.00423f68
lea ecx, [ebp - 4]
call fcn.0041e0dd
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.00423f68
lea ecx, [ebp - 0x10]
call fcn.0041e0dd
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.0044a8d7
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.0042435b
pop ecx
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x41eec5
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, 0x4de4b4
call fcn.004016ab
lea edi, [ebp - 4]
call fcn.0041ee2c
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 0x41efd7
lea eax, [ebp - 4]
call fcn.0041efde
call fcn.0040204d
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x41ef41
call fcn.0042335f
test eax, eax
mov eax, 0x4bc950
jne 0x41ef38
mov eax, str.Program_Files
push eax
push esi
call fcn.0040536e
jmp 0x41efc0
lea eax, [ebp - 4]
call fcn.0041f070
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 0x41ef25
push 0x206
lea eax, [ebp - 0x20e]
push ebx
push eax
mov word [ebp - 0x210], bx
call fcn.0048a830
add esp, 0xc
push str.programfiles
call fcn.0048d3fe
pop ecx
push eax
push esi
call fcn.00401af8
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jne 0x41efc0
push ebx
push 0x26
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, ebx
je 0x41efb5
lea eax, [ebp - 0x210]
push eax
jmp 0x41efba
push str.c:Program_Files
push esi
call fcn.00401af8
mov eax, esi
call fcn.00405201
call fcn.00422b09
push str.kingsoftkingsoft_antivirus_
push esi
call fcn.0040536e
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x41f102
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 0x41f13f
push edi
push edi
push esi
push 0x41f179
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp eax, edi
mov dword [esi + 0xc], eax
je 0x41f13f
inc edi
mov eax, edi
pop edi
ret
Function at 0x41f1c5
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 8], 0
and word [ebp - 0x18], 0
push esi
push edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 7
call fcn.0042439c
push str.kpacket_info.dat
lea eax, [ebp - 0x1c]
push eax
call fcn.0040103b
mov eax, dword [ebp - 0x18]
push 8
pop esi
cmp dword [ebp - 4], esi
jae 0x41f201
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp dword [ebp - 4], esi
mov eax, dword [ebp - 0x18]
jae 0x41f213
lea eax, [ebp - 0x18]
push eax
push str.http:__download.duba.net_2011_lf_detect360.ini
call fcn.00485288
mov edi, eax
test edi, edi
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
je 0x41f247
cmp dword [ebp - 4], esi
jae 0x41f231
lea eax, [ebp - 0x18]
push edi
push eax
push str.KInsall::Is360AvInstalled_download_fail__file:_ws__nStatus:_d
mov esi, 0x4df93c
call fcn.0044a8d7
add esp, 0xc
jmp 0x41f257
cmp dword [ebp - 4], esi
jae 0x41f24f
lea eax, [ebp - 0x18]
push eax
call fcn.0041f269
mov edi, eax
push 0
push 1
lea esi, [ebp - 0x1c]
call fcn.0040114b
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x41f412
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push str.cmd.exe
lea eax, [ebp - 4]
call fcn.00401994
push dword [ebp + 8]
lea eax, [ebp + 8]
call fcn.00401994
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.00401994
mov edi, 0x4bcc40
mov esi, 0x4bcc44
push edi
push esi
lea eax, [ebp + 0xc]
push eax
call fcn.0040508c
test eax, eax
jne 0x41f448
push edi
push esi
lea eax, [ebp + 8]
push eax
call fcn.0040508c
test eax, eax
jne 0x41f457
push 0x3c
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.0048a830
mov ebx, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x40], esi
mov esi, dword [ebp - 4]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x24], edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x34], str.open
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x3c], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [ebp - 8], 0
mov dword [ebp + 8], eax
je 0x41f4c2
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
and dword [ebp - 8], 0
lea eax, [ebx - 0x10]
call fcn.0040151c
lea eax, [edi - 0x10]
call fcn.0040151c
lea eax, [esi - 0x10]
call fcn.0040151c
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8