joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41536e
Capabilities:
Link many functions at runtime

Disassembly:
push edi
push str.K7ScnEng.dll
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x52abdc], eax
test eax, eax
je 0x41558f
push ebx
push esi
push 0x104
mov ebx, 0x52adf0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.K7ScnEng_DefDatabaseLoad
push dword [0x52abdc]
call esi
mov dword [0x52af08], eax
test eax, eax
je 0x41558d
push str.K7ScnEng_DefDatabaseUnLoad
push dword [0x52abdc]
call esi
mov dword [0x52af0c], eax
test eax, eax
je 0x41558d
push str.K7ScnEng_DefDatabaseGetInfo1
push dword [0x52abdc]
call esi
mov dword [0x52af10], eax
test eax, eax
je 0x41558d
push str.K7ScnEng_ScanHandleAllocate
push dword [0x52abdc]
call esi
mov dword [0x52af14], eax
test eax, eax
je 0x41558d
push str.K7ScnEng_ScanHandleRelease
push dword [0x52abdc]
call esi
mov dword [0x52af18], eax
test eax, eax
je 0x41558d
push str.K7ScnEng_ScanFileOnDiskA
push dword [0x52abdc]
call esi
mov dword [0x52af1c], eax
test eax, eax
je 0x41558d
push str.K7ScnEng_ScanFileOnDiskW
push dword [0x52abdc]
call esi
mov dword [0x52af20], eax
test eax, eax
je 0x41558d
push str.K7ScnEng_ScanUsingHandle
push dword [0x52abdc]
call esi
mov dword [0x52af24], eax
test eax, eax
je 0x41558d
push str.K7ScnEng_ScanMBRBootSector
push dword [0x52abdc]
call esi
mov dword [0x52af28], eax
test eax, eax
je 0x41558d
push str.K7ScnEng_ScanAMSIContentBuffer
push dword [0x52abdc]
call esi
push str.K7ScnEng_SetEngOptions
push dword [0x52abdc]
mov dword [0x52af2c], eax
call esi
mov dword [0x52af30], eax
test eax, eax
je 0x41558d
push str.K7ScnEng_SetEngSettings
push dword [0x52abdc]
call esi
mov dword [0x52af34], eax
test eax, eax
je 0x41558d
push str.K7ScnEng_SetThreatIdStatus
push dword [0x52abdc]
call esi
mov dword [0x52af38], eax
test eax, eax
je 0x41558d
push str.K7ScnEng_SetThreatFlags
push dword [0x52abdc]
call esi
mov dword [0x52af3c], eax
test eax, eax
je 0x41558d
push str.K7ScnEng_SetMacroScanFlags
push dword [0x52abdc]
call esi
mov dword [0x52af40], eax
test eax, eax
je 0x41558d
push str.K7ScnEng_CreateFileHandle
push dword [0x52abdc]
call esi
mov dword [0x52af44], eax
test eax, eax
je 0x41558d
push str.K7ScnEng_CloseFileHandle
push dword [0x52abdc]
call esi
mov dword [0x52af48], eax
test eax, eax
je 0x41558d
push str.K7ScnEng_DSValidate
push dword [0x52abdc]
call esi
push edi
push edi
push 3
push edi
push 3
push SysReAllocString
push ebx
mov dword [0x52af4c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41558a
push 0x52aef4
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
inc edi
pop esi
pop ebx
mov eax, edi
pop edi
ret

Function at 0x415593
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
push edi
mov edi, ecx
test edx, edx
jle 0x4155b5
movzx eax, byte [edi]
inc edi
xor eax, esi
shr esi, 8
movzx ecx, al
xor esi, dword [ecx*4 + 0x4ffd40]
sub edx, 1
jne 0x41559d
pop edi
mov eax, esi
pop esi
ret
Function at 0x4156ea
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, edx
mov dword [ebp - 0x414], eax
xor ebx, ebx
mov byte [ebp - 0x405], cl
mov eax, dword [edi + 0x115]
mov dword [ebp - 0x40c], eax
cmp byte [edi + 0x1b8], bl
je 0x415903
mov eax, dword [edi + 3]
mov byte [ebp - 0x404], bl
test eax, eax
je 0x41577c
cmp byte [edi + 2], 0x41
jne 0x41574e
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.004c99d0
pop ecx
pop ecx
jmp 0x415763
push 0x400
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.004cb853
add esp, 0xc
lea eax, [ebp - 0x404]
push 0x5094bc
push eax
call fcn.0049f330
pop ecx
pop ecx
test eax, eax
je 0x41577c
mov byte [eax], bl
push 0x1000
call fcn.004c8d06
mov dword [ebp - 0x410], eax
pop ecx
test eax, eax
je 0x415903
push esi
lea esi, [eax + 1]
mov byte [eax], 1
push 0x10
lea eax, [edi + 0x1a8]
push eax
push esi
call fcn.0049f810
mov al, byte [ebp - 0x405]
push 0x10
mov byte [esi + 0x10], al
add esi, 0x11
push 0x51e828
push esi
call fcn.0049f810
mov eax, dword [0x51e824]
add esi, 0x10
add esp, 0x18
mov dword [esi], eax
mov eax, dword [edi + 0x7c]
push 4
pop ecx
add esi, ecx
mov dword [esi], eax
add esi, ecx
mov eax, dword [edi + 0x80]
mov dword [esi], eax
add esi, ecx
mov eax, dword [edi + 0x181]
mov dword [esi], eax
add esi, ecx
mov eax, dword [edi + 0x18f]
mov dword [esi], eax
add esi, ecx
mov eax, dword [edi + 0x163]
mov dword [esi], eax
mov eax, dword [ebp - 0x40c]
test eax, eax
je 0x415815
mov ecx, dword [eax + 0xb5]
jmp 0x415817
mov ecx, ebx
mov dword [esi + 4], ecx
test eax, eax
je 0x415824
mov ebx, dword [eax + 0x13]
sub ebx, dword [eax + 0x1f]
mov dword [esi + 8], ebx
lea ebx, [esi + 0xc]
mov al, byte [edi + 0x53]
mov byte [ebx], al
mov al, byte [edi + 0x28]
mov byte [ebx + 1], al
mov ax, word [edi + 0x50]
mov word [ebx + 2], ax
mov al, byte [edi + 0x3b0]
mov byte [ebx + 4], al
mov al, byte [edi + 0x3b1]
mov byte [ebx + 5], al
cmp byte [ebp - 0x404], 0
je 0x415867
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
jmp 0x415869
xor al, al
mov byte [ebx + 6], al
lea esi, [ebx + 8]
mov eax, dword [edi + 3]
test eax, eax
je 0x4158b5
cmp byte [edi + 2], 0x41
push eax
jne 0x415893
call fcn.004c8d20
mov byte [ebx + 7], al
push dword [edi + 3]
push esi
call fcn.004c99d0
add esp, 0xc
jmp 0x4158ad
call fcn.004c96f6
mov byte [ebx + 7], al
movzx eax, byte [esi - 1]
inc eax
push eax
push dword [edi + 3]
push esi
call fcn.004cb853
add esp, 0x10
movzx eax, byte [esi - 1]
add esi, eax
jmp 0x4158b9
mov byte [ebx + 7], 0
mov edi, dword [ebp - 0x410]
lea eax, [ebp - 0x40c]
push eax
mov eax, esi
mov dword [ebp - 0x40c], 0x400
sub eax, edi
mov edx, edi
push esi
push eax
call fcn.00490de0
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x4158fb
cmp dword [ebp - 0x40c], 1
jne 0x4158fb
mov ecx, dword [ebp - 0x414]
inc ebx
movzx eax, byte [esi]
mov dword [ecx], eax
push edi
call fcn.004c8ceb
pop ecx
pop esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.0049d307
leave
ret
Function at 0x415913
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, edx
mov dword [ebp - 0x414], eax
xor ebx, ebx
mov byte [ebp - 0x405], cl
mov eax, dword [edi + 0x115]
mov dword [ebp - 0x40c], eax
cmp byte [edi + 0x1b8], bl
je 0x415b2c
mov eax, dword [edi + 3]
mov byte [ebp - 0x404], bl
test eax, eax
je 0x4159a5
cmp byte [edi + 2], 0x41
jne 0x415977
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.004c99d0
pop ecx
pop ecx
jmp 0x41598c
push 0x400
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.004cb853
add esp, 0xc
lea eax, [ebp - 0x404]
push 0x5094bc
push eax
call fcn.0049f330
pop ecx
pop ecx
test eax, eax
je 0x4159a5
mov byte [eax], bl
push 0x1000
call fcn.004c8d06
mov dword [ebp - 0x410], eax
pop ecx
test eax, eax
je 0x415b2c
push esi
lea esi, [eax + 1]
mov byte [eax], 1
push 0x10
lea eax, [edi + 0x1a8]
push eax
push esi
call fcn.0049f810
mov al, byte [ebp - 0x405]
push 0x10
mov byte [esi + 0x10], al
add esi, 0x11
push 0x51e828
push esi
call fcn.0049f810
mov eax, dword [0x51e824]
add esi, 0x10
add esp, 0x18
mov dword [esi], eax
mov eax, dword [edi + 0x7c]
push 4
pop ecx
add esi, ecx
mov dword [esi], eax
add esi, ecx
mov eax, dword [edi + 0x80]
mov dword [esi], eax
add esi, ecx
mov eax, dword [edi + 0x181]
mov dword [esi], eax
add esi, ecx
mov eax, dword [edi + 0x18f]
mov dword [esi], eax
add esi, ecx
mov eax, dword [edi + 0x163]
mov dword [esi], eax
mov eax, dword [ebp - 0x40c]
test eax, eax
je 0x415a3e
mov ecx, dword [eax + 0xb9]
jmp 0x415a40
mov ecx, ebx
mov dword [esi + 4], ecx
test eax, eax
je 0x415a4d
mov ebx, dword [eax + 0x13]
sub ebx, dword [eax + 0x1f]
mov dword [esi + 8], ebx
lea ebx, [esi + 0xc]
mov al, byte [edi + 0x53]
mov byte [ebx], al
mov al, byte [edi + 0x28]
mov byte [ebx + 1], al
mov ax, word [edi + 0x50]
mov word [ebx + 2], ax
mov al, byte [edi + 0x3b0]
mov byte [ebx + 4], al
mov al, byte [edi + 0x3b1]
mov byte [ebx + 5], al
cmp byte [ebp - 0x404], 0
je 0x415a90
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
jmp 0x415a92
xor al, al
mov byte [ebx + 6], al
lea esi, [ebx + 8]
mov eax, dword [edi + 3]
test eax, eax
je 0x415ade
cmp byte [edi + 2], 0x41
push eax
jne 0x415abc
call fcn.004c8d20
mov byte [ebx + 7], al
push dword [edi + 3]
push esi
call fcn.004c99d0
add esp, 0xc
jmp 0x415ad6
call fcn.004c96f6
mov byte [ebx + 7], al
movzx eax, byte [esi - 1]
inc eax
push eax
push dword [edi + 3]
push esi
call fcn.004cb853
add esp, 0x10
movzx eax, byte [esi - 1]
add esi, eax
jmp 0x415ae2
mov byte [ebx + 7], 0
mov edi, dword [ebp - 0x410]
lea eax, [ebp - 0x40c]
push eax
mov eax, esi
mov dword [ebp - 0x40c], 0x400
sub eax, edi
mov edx, edi
push esi
push eax
call fcn.00490de0
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x415b24
cmp dword [ebp - 0x40c], 1
jne 0x415b24
mov ecx, dword [ebp - 0x414]
inc ebx
movzx eax, byte [esi]
mov dword [ecx], eax
push edi
call fcn.004c8ceb
pop ecx
pop esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.0049d307
leave
ret
Function at 0x415b3c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
cmp dword [edx + 0x28], 6
je 0x415b53
cmp dword [edx + 0x28], 0x3d
jne 0x415b59
pop ebp
jmp fcn.00415913
pop ebp
jmp fcn.004156ea
pop ebp
ret

Function at 0x415c6a
Capabilities:
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a4
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov esi, str._:____
mov dword [ebp - 0x4a0], eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x49c], edx
xor eax, eax
mov dword [ebp - 0x4a4], ecx
mov byte [ebp - 0x44], al
lea eax, [ebp - 0x44]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.0040c293
pop ecx
push 0x10
lea eax, [ebp - 0x20]
push eax
push str.SystemDrive
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov eax, dword [ebp - 0x4a0]
xor edi, edi
test eax, eax
je 0x415cd5
cmp word [eax], di
jne 0x415cda
mov eax, 0x509520
mov esi, dword [sym.imp.SHLWAPI.dll_PathCompactPathExW]
push edi
push 0x64
push eax
lea eax, [ebp - 0x290]
push eax
call esi
test ebx, ebx
je 0x415cf6
cmp word [ebx], di
jne 0x415cfb
mov ebx, 0x509544
push edi
push 0x3c
push ebx
lea eax, [ebp - 0xc0]
push eax
call esi
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0xc0]
push dword [ebp + 0xc]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push eax
lea eax, [ebp - 0x290]
push eax
xor eax, eax
inc eax
lock xadd dword [0x52f5c8], eax
inc eax
push eax
xor ebx, ebx
push ebx
call fcn.004c8af7
pop ecx
push eax
push str._u__u___S____S___SN_I64u___PID_u___CF_u___s
lea eax, [ebp - 0x1c8]
push 0x104
push eax
call fcn.004162b4
mov al, byte [ebp - 0x1c8]
add esp, 0x30
test al, al
je 0x415d83
lea esi, [ebp - 0x1c8]
movsx eax, al
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0049f5a0
pop ecx
pop ecx
test eax, eax
je 0x415d7c
mov byte [esi], 0x5e
inc esi
mov al, byte [esi]
test al, al
jne 0x415d66
lea eax, [ebp - 0x1c8]
push eax
lea eax, [ebp - 0x20]
push eax
push str._sK7AMSIDumpSite_s
lea eax, [ebp - 0x498]
push 0x208
push eax
call fcn.004162b4
add esp, 0x14
lea eax, [ebp - 0x498]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x415dec
push ebx
lea eax, [ebp - 0x49c]
push eax
push dword [ebp - 0x49c]
push dword [ebp - 0x4a4]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d307
leave
ret

Function at 0x4168d1
Capabilities:
Hash data with md5

Disassembly:
and dword [ecx + 0x14], 0
and dword [ecx + 0x10], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x4179fe
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push SysReAllocString
mov ebx, eax
mov esi, eax
push ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x417b64
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp eax, 0x1000
jb 0x417b49
push 0x2000
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebx
mov esi, eax
lea eax, [ebp - 8]
push eax
push 0x1000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417b49
mov edx, dword [ebp - 8]
mov eax, 0x5a4d
add edx, esi
cmp word [esi], ax
jne 0x417b49
mov ebx, dword [esi + 0x3c]
cmp ebx, dword [ebp - 0xc]
ja 0x417b46
lea ecx, [esi + 4]
add ecx, ebx
lea eax, [ecx + 0x18]
cmp eax, edx
jbe 0x417ad2
push 0
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
push eax
push 0x1000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417b46
mov eax, dword [ebp - 8]
test eax, eax
je 0x417b46
lea edx, [eax + esi]
lea ecx, [esi + 4]
lea eax, [ecx + 0x18]
cmp eax, edx
ja 0x417b46
cmp dword [ecx - 4], 0x4550
jne 0x417b46
movzx eax, word [ecx]
mov ebx, 0x8664
mov dword [ebp - 0xc], 0x14c
cmp word [ebp - 0xc], ax
je 0x417afc
cmp bx, ax
jne 0x417b46
test byte [ecx + 0x12], 2
je 0x417b46
cmp word [ebp - 0xc], ax
jne 0x417b1c
lea eax, [ecx + 0x14]
movzx ecx, word [ecx + 0x10]
add ecx, eax
cmp ecx, edx
ja 0x417b46
mov ecx, 0x10b
jmp 0x417b33
cmp bx, ax
jne 0x417b46
lea eax, [ecx + 0x14]
movzx ecx, word [ecx + 0x10]
add ecx, eax
cmp ecx, edx
ja 0x417b46
mov ecx, 0x20b
cmp cx, word [eax]
jne 0x417b46
push 2
pop ecx
cmp cx, word [eax + 0x44]
jne 0x417b46
xor ebx, ebx
inc ebx
jmp 0x417b49
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x417b64
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x418020
Capabilities:
Terminate thread

Disassembly:
push esi
push edi
push ecx
xor esi, esi
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
jne 0x418045
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x418060
inc esi
jmp 0x418060
push 0x4b494c4c
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
xor ecx, ecx
inc ecx
test eax, eax
push edi
cmovne esi, ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
ret
Function at 0x418ed4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor esi, esi
mov byte [ebp - 1], 1
and dword [ebp - 8], esi
lea ecx, [ebp - 1]
xor edi, edi
call fcn.00405d57
cmp byte [ebp - 1], 0
je 0x418f7e
push 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x418f7e
mov ecx, edi
mov byte [edi], 0
lea esi, [edi + 0x800]
call fcn.00404436
push str.K7AVQrnt.exe
push edi
push str._s_s__rescanrestore
push esi
call fcn.00402a6e
add esp, 0x10
lea eax, [ebp - 8]
push eax
push 0
push esi
call fcn.0049a770
mov esi, eax
cmp esi, 1
jne 0x418f7e
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xdbba0
push dword [ebp - 8]
call esi
cmp eax, 0x102
jne 0x418f7b
push 0xdeaddead
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x418f7b
push 0x7530
push dword [ebp - 8]
call esi
xor esi, esi
inc esi
cmp dword [ebp - 8], 0
je 0x418f8d
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x418fa1
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x418fa7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
mov byte [ebp - 1], bl
cmp dword [0x51e81c], ebx
jne 0x419064
cmp dword [0x51e818], ebx
jne 0x419064
cmp dword [0x51e850], ebx
jne 0x419064
push esi
lea ecx, [ebp - 1]
call fcn.00405cda
push 0x2000
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x419063
push edi
mov ecx, esi
mov byte [esi], bl
call fcn.00404436
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x5069c8
push esi
call edi
push str.K7CTScan.exe
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x419052
cmp byte [ebp - 1], bl
je 0x41902f
push str.__update
jmp 0x419034
push str.__build
push esi
call edi
push esi
lea edi, [esi + 0x800]
push edi
call fcn.004c99d0
pop ecx
pop ecx
push 0
push 0
push edi
call fcn.0049a770
mov ebx, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4190d6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x51a448]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
push 0x1000
call fcn.0049da2e
mov edi, eax
pop ecx
test edi, edi
je 0x419229
mov ecx, edi
call fcn.00404436
xor ebx, ebx
inc ebx
cmp eax, ebx
jne 0x41921b
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.Updates
push edi
call esi
push str.UpdtFile.Ini
push edi
call esi
push edi
push 6
lea eax, [esp + 0x20]
mov byte [esp + 0x20], 0
push eax
push 0x5066b0
push str.DatUpdated
push str.Info
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x18], 0x31
jne 0x41921b
lea edx, [esp + 0xc]
mov ecx, edi
call fcn.00418e94
test eax, eax
je 0x41921b
push 8
mov esi, 0x52f5d4
lea eax, [esp + 0x10]
push esi
push eax
call fcn.0049fe79
add esp, 0xc
test eax, eax
je 0x41921b
push 8
lea eax, [esp + 0x10]
push eax
push esi
call fcn.0049f810
add esp, 0xc
call fcn.00419703
test eax, eax
je 0x4191a7
call fcn.004196b2
jmp 0x41921b
push 0
call fcn.004c8af7
pop ecx
mov ecx, eax
sub ecx, dword [0x52f5d0]
cmp ecx, 5
jb 0x41921b
mov ecx, ebx
mov dword [0x52f5d0], eax
call fcn.00407f46
mov ecx, 0x51c128
call fcn.0041d5ae
xor eax, eax
mov ecx, ebx
cmp dword [0x51c128], ebx
setne al
inc eax
mov dword [0x51c128], eax
call fcn.0041d6f5
call fcn.004190a1
cmp eax, ebx
jne 0x419201
lea ecx, [esp + 0x14]
call fcn.0041d6c4
call fcn.00414b01
xor ecx, ecx
call fcn.0041d6f5
call fcn.00419069
cmp eax, ebx
je 0x41921b
call fcn.00418ed4
call fcn.00418fa7
call fcn.004265da
push ebx
push edi
call fcn.0049da37
pop ecx
pop ecx
mov ecx, dword [esp + 0x24]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049d307
mov esp, ebp
pop ebp
ret
Function at 0x419335
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x534
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x124]
push edx
push eax
mov dword [ebp - 0x534], ecx
xor ebx, ebx
mov dword [ebp - 0x530], esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor esi, esi
mov dword [ebp - 0x528], eax
inc esi
cmp eax, 0xffffffff
je 0x419459
push edi
mov edi, esi
mov dword [ebp - 0x52c], ebx
push edi
lea eax, [ebp - 0x24]
push 0x5078e8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov byte [ebp - 0x524], bl
lea eax, [ebp - 0x524]
inc edi
push dword [ebp - 0x530]
push 0x400
push eax
push 0x5066b0
lea eax, [ebp - 0x24]
push eax
push str.InstallFiles
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x41942e
cmp byte [ebp - 0x524], bl
je 0x41942e
lea eax, [ebp - 0x524]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x524]
push eax
call fcn.0049f330
pop ecx
pop ecx
test eax, eax
je 0x419398
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x528]
push eax
push eax
push eax
lea eax, [ebp - 0x524]
push str._lu__lu__lu__lu_
push eax
call fcn.004015fb
add esp, 0x18
pop edi
cmp dword [ebp - 0x52c], ebx
je 0x419459
push 0x400
lea eax, [ebp - 0x524]
push eax
push dword [ebp - 0x534]
call fcn.0049bd60
cmp dword [ebp - 0x52c], eax
cmove ebx, esi
mov esi, ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d307
leave
ret

Function at 0x419469
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x419530
push ebx
mov ebx, 0x100
lea eax, [ebp - 0x104]
push ebx
push esi
push eax
call fcn.0049ef70
add esp, 0xc
mov dword [ebp - 0x108], ebx
lea eax, [ebp - 0x108]
push esi
push eax
push ebx
lea eax, [ebp - 0x104]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop ebx
test eax, eax
je 0x419529
cmp dword [ebp - 0x108], 0x40
jb 0x419529
cmp dword [ebp - 0x104], 0x301f562
jne 0x4194f1
xor esi, esi
inc esi
jmp 0x419529
push 0x4c
lea eax, [ebp - 0x104]
push str.K7AntiVirus_Data_File_Version__c__K7_Computing._r_nFileFormat_Version:10.10_r_n
push eax
call fcn.0049fe79
add esp, 0xc
test eax, eax
je 0x4194ec
push 0x4c
lea eax, [ebp - 0x104]
push str.K7AntiVirus_Data_File_Version__c__K7_Computing._r_nFileFormat_Version:08.10_r_n
push eax
call fcn.0049fe79
xor ecx, ecx
add esp, 0xc
inc ecx
test eax, eax
cmove esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0049d307
leave
ret
Function at 0x419540
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0c
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
xor ebx, ebx
push str.K7AVSIGN.INF
push ecx
mov dword [ebp - 0xc0c], eax
mov esi, edx
mov dword [eax], ebx
lea eax, [ebp - 0x804]
push 0x506968
push eax
mov dword [ebp - 0xc08], ecx
call edi
push str.FileList.Ini
push 0x506d44
push esi
lea eax, [ebp - 0xc04]
push 0x506f78
push eax
call edi
lea eax, [ebp - 0x804]
push 0x50bf5c
push eax
call fcn.004cecab
mov edi, eax
add esp, 0x2c
test edi, edi
je 0x4196a1
jmp 0x419688
push edi
lea eax, [ebp - 0x404]
mov byte [ebp - 0x404], bl
push 0x400
push eax
call fcn.004cef13
lea eax, [ebp - 0x404]
push 0xd
push eax
call fcn.0049f5a0
add esp, 0x14
test eax, eax
je 0x4195f0
mov byte [eax], bl
lea eax, [ebp - 0x404]
push 0xa
push eax
call fcn.0049f5a0
pop ecx
pop ecx
test eax, eax
je 0x419606
mov byte [eax], bl
mov al, byte [ebp - 0x404]
cmp al, 0x3b
je 0x419688
test al, al
je 0x419688
lea eax, [ebp - 0x404]
push 0x3d
push eax
call fcn.0049f5a0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x419697
inc esi
lea eax, [ebp - 0x804]
push esi
push dword [ebp - 0xc08]
push 0x506968
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x804]
call fcn.00419469
test eax, eax
je 0x41966f
lea eax, [ebp - 0xc04]
mov edx, esi
push eax
lea ecx, [ebp - 0x804]
call fcn.00419335
pop ecx
test eax, eax
jne 0x419688
mov eax, dword [ebp - 0xc0c]
mov dword [eax], 1
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call fcn.004ced36
pop ecx
test eax, eax
je 0x4195c1
xor ebx, ebx
push edi
inc ebx
call fcn.004cefac
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d307
leave
ret