joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41373c
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0
mov eax, 0x4b055f
call fcn.004764b0
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x41377c
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x41377c
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040260e
mov dword [ebp - 4], ebx
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x413786
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00402963
xor eax, eax
call fcn.00476588
ret 0xc
mov eax, dword [ebp + 0xc]
mov edi, 0x100
cmp dword [eax - 0xc], edi
jl 0x413798
lea ecx, [eax - 0x10]
jmp 0x413777
push 0x2a8
push ebx
push esi
call fcn.00475410
push edi
push dword [ebp + 0xc]
push esi
call fcn.004753b9
mov edi, dword [ebp + 8]
mov eax, dword [edi]
add esp, 0x18
push dword [ebp + 0xc]
push edi
call dword [eax + 0x3c]
mov dword [esi + 0x208], eax
cmp eax, ebx
je 0x4137f1
mov eax, dword [edi]
lea ecx, [esi + 0x28c]
push ecx
lea ecx, [esi + 0x288]
push ecx
push dword [ebp + 0xc]
push edi
call dword [eax + 0x44]
mov edi, dword [ebp + 0xc]
lea ebx, [esi + 0x218]
call fcn.0040d3f0
mov edi, dword [ebp + 8]
jmp 0x413817
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp eax, ebx
je 0x413817
push dword [edi + 8]
lea ecx, [esi + 0x218]
push 0x14
push ecx
push ebx
push 0x4d5130
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [edi]
push 0x28
lea ecx, [esi + 0x238]
push ecx
push dword [ebp + 0xc]
push edi
call dword [eax + 0x40]
lea eax, [ebp + 0xc]
push eax
call fcn.0040d4c0
pop ecx
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov dword [esi + 0x210], eax
mov dword [esi + 0x214], edx
call fcn.00402963
xor eax, eax
inc eax
jmp 0x41377e

Function at 0x413950
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x4139b2
mov word [ebx], ax
test esi, esi
jne 0x413979
xor eax, eax
jmp 0x4139b2
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413975
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.00475410
lea eax, [ebp - 0x68]
push eax
push esi
call fcn.0040d2f0
add esp, 0x14
test eax, eax
je 0x413975
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp + 0x14]
call fcn.0040d39f
xor eax, eax
pop ecx
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047548a
leave
ret 0x10
Function at 0x4139fa
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x413a1b
xor eax, eax
jmp 0x413a6b
push esi
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
test eax, eax
jne 0x413a17
push 0x80020003
push 0x12
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
leave
ret 4
Function at 0x414421
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4d53c8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x4d53cc]
mov dword [ebp - 8], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x41445e
xor eax, eax
xor edx, edx
jmp 0x41448a
push 8
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00475410
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 0
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x414458
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047548a
leave
ret 8

Function at 0x4145c6
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x810
mov eax, dword [0x4f3bd0]
xor eax, esp
mov dword [esp + 0x80c], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x800
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00475410
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov eax, dword [ebp + 0xc]
push 0
cdq
push 0x100000
push edx
push eax
lea esi, [esp + 0x20]
call fcn.0047ed40
cmp word [esp + 0x10], 0
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
je 0x414658
movzx ecx, word [esi]
mov eax, dword [edi]
push ecx
push edi
call dword [eax + 0x50]
cmp edx, dword [esp + 0xc]
ja 0x414670
jb 0x414647
cmp eax, dword [esp + 8]
ja 0x414670
push esi
call fcn.00475eae
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
pop ecx
jne 0x41462f
xor eax, eax
mov ecx, dword [esp + 0x814]
pop edi
pop esi
xor ecx, esp
call fcn.0047548a
mov esp, ebp
pop ebp
ret 8
mov ax, word [esi]
jmp 0x41465a

Function at 0x414675
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x808
mov eax, dword [0x4f3bd0]
xor eax, esp
mov dword [esp + 0x804], eax
push 0x800
lea eax, [esp + 4]
push 0
push eax
call fcn.00475410
add esp, 0xc
push 0x400
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, dword [esp + 0x804]
mov ax, word [esp]
xor ecx, esp
call fcn.0047548a
mov esp, ebp
pop ebp
ret 4
Function at 0x414857
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x4b51c9
call fcn.004764b0
push 0x4f9e00
lea ecx, [ebp - 0x10]
call fcn.0040293e
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x414885
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00402894
lea ecx, [ebp - 0x10]
call fcn.0041590d
mov ecx, eax
call fcn.00415975
mov edi, dword [ebp + 8]
lea esi, [edi + 4]
mov ecx, esi
call fcn.0041590d
mov ecx, eax
call fcn.00415975
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x4148d2
mov edx, dword [esi]
cmp dword [edx - 0xc], ecx
jne 0x4148be
lea ecx, [eax - 0x10]
jmp 0x4148e5
test ecx, ecx
jne 0x4148d2
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
push ecx
push edi
call dword [eax + 0x8c]
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x4148b9
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402963
call fcn.00476588
ret 8

Function at 0x414d37
Capabilities:
Get file size

Disassembly:
xor eax, eax
push esi
mov esi, dword [esp + 0xc]
mov dword [esi], eax
mov dword [esi + 4], eax
cmp dword [esp + 0x10], eax
je 0x414d7b
push edi
push eax
push 0x80
push 3
push eax
push 7
push SysReAllocStringLen
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x414d7a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
ret 0xc

Function at 0x414d81
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x808
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.00475410
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x80c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.360Safe_
lea eax, [ebp - 0x80c]
push eax
call esi
push 0
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.360safe.setup.log
lea eax, [ebp - 0x80c]
push eax
call esi
lea eax, [ebp - 0x80c]
push eax
mov ecx, edi
call fcn.00402894
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.0047548a
leave
ret 8
Function at 0x415c02
Capabilities:
Check if file exists

Disassembly:
push 4
mov eax, 0x4b5bfa
call fcn.004764b0
mov esi, ecx
mov dword [ebp - 0x10], esi
lea edi, [esi + 8]
mov dword [esi], vtable.CFileManagerEx.0
mov dword [esi + 4], vtable.CFileManagerEx.1.0
mov dword [edi], vtable.CFileManagerEx.2.0
push 1
push esi
mov dword [ebp - 4], 3
call fcn.00415d84
push dword [0x4fbd68]
mov eax, dword [esi + 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsPrefixW]
test eax, eax
jne 0x415c71
push dword [esi + 0x80]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x415c71
push esi
call fcn.0041612d
push dword [esi + 0x80]
call fcn.00402bad
pop ecx
lea eax, [esi + 0x84]
push eax
mov byte [ebp - 4], 2
call fcn.004162ec
mov ecx, dword [esi + 0x80]
sub ecx, 0x10
call fcn.00402963
mov dword [esi + 0x64], vtable._BaseModule::CCriticalSection.0
add esi, 0x68
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, edi
call fcn.004231f1
call fcn.00476588
ret

Function at 0x415d13
Capabilities:
Check if file exists
Create directory
Create thread

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
cmp esi, edi
je 0x415d7d
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x415d33
push edi
push esi
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push esi
mov esi, dword [esp + 0x10]
lea ecx, [esi + 0x80]
call fcn.00402894
push edi
push edi
push esi
push 0x415cf6
push edi
push edi
call fcn.00475fc9
add esp, 0x18
push edi
push edi
push 1
push edi
mov dword [esi + 0xa4], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0xb8], eax
cmp dword [esi + 0xa4], edi
je 0x415d7d
cmp eax, edi
je 0x415d7d
xor eax, eax
inc eax
jmp 0x415d7f
xor eax, eax
pop edi
pop esi
ret 8

Function at 0x418459
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 8
mov eax, 0x4b3f4b
call fcn.004764b0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x418487
and al, 0x10
xor cl, cl
cmp cl, al
sbb eax, eax
neg eax
je 0x418487
xor eax, eax
call fcn.00476588
ret
push dword [ebp + 8]
lea eax, [ebp - 0x14]
call fcn.0041819d
xor edi, edi
mov dword [ebp - 4], edi
mov esi, dword [ebp - 0x14]
push esi
call fcn.00475eae
cmp eax, 1
pop ecx
jle 0x4184b5
lea eax, [esi + eax*2 - 2]
cmp word [eax], 0x5c
jne 0x4184b5
xor ecx, ecx
mov word [eax], cx
push 0x5c
push esi
call fcn.004750f0
pop ecx
pop ecx
cmp eax, edi
jne 0x4184d1
push 0xf
pop edi
push esi
call fcn.00476b24
pop ecx
mov eax, edi
jmp 0x418481
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.00418459
pop ecx
cmp eax, edi
je 0x4184e5
mov edi, eax
jmp 0x4184c6
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4184c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4184e1
jmp 0x4184c6
Function at 0x418ae6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [edi + 8], 0xffffffff
push ebx
push esi
xor esi, esi
mov ebx, ecx
mov dword [edi + 0xc], esi
cmp ebx, esi
jne 0x418b0e
xor eax, eax
jmp 0x418bd4
mov ecx, edi
call fcn.00418be2
lea ecx, [edi + 0x10]
mov dword [ebp - 0x14], 0x12
xor edx, edx
mov eax, esi
div ebx
inc esi
mov al, byte [edx + 0x4d3232]
mov byte [ebp - 0x15], al
xor edx, edx
mov eax, esi
div ebx
inc esi
mov al, byte [edx + 0x4d3232]
mov byte [ebp - 0x16], al
xor edx, edx
mov eax, esi
div ebx
inc esi
mov al, byte [edx + 0x4d3232]
mov byte [ebp - 0x17], al
xor edx, edx
mov eax, esi
div ebx
inc esi
mov al, byte [edx + 0x4d3232]
mov byte [ebp - 0x18], al
mov eax, dword [ebp - 0x18]
xor dword [ecx], eax
add ecx, 4
dec dword [ebp - 0x14]
jne 0x418b1f
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
lea ebx, [edi + 0x14]
mov dword [ebp - 0x14], 9
lea esi, [ebp - 0x10]
mov eax, edi
call fcn.0041b470
mov eax, dword [ebp - 0x10]
mov dword [ebx - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx], eax
add ebx, 8
dec dword [ebp - 0x14]
jne 0x418b7e
lea ebx, [edi + 0x5c]
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x14], 0x80
lea esi, [ebp - 0x10]
mov eax, edi
call fcn.0041b470
mov eax, dword [ebp - 0x10]
mov dword [ebx - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx], eax
add ebx, 8
dec dword [ebp - 0x14]
jne 0x418bac
dec dword [ebp - 0x18]
jne 0x418ba5
xor eax, eax
inc eax
mov dword [edi + 0xc], eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047548a
leave
ret
Function at 0x41bdc7
Capabilities:
Get thread local storage value

Disassembly:
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ebp, ebp
cmp dword [esi + 0x1108], eax
je 0x41bdef
lea eax, [esi + 0x10cc]
mov dword [eax + 0x18], 0x3f3
mov dword [eax + 0x1c], ebp
mov dword [eax + 0x20], ebp
xor eax, eax
pop ebp
ret
mov eax, dword [0x4fb87c]
cmp eax, 0xffffffff
je 0x41be13
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, ebp
je 0x41be13
lea eax, [esi + 0x10cc]
mov dword [eax + 0x18], 0x3f4
jmp 0x41bde5
push esi
push 1
call fcn.0041c23e
pop ecx
pop ecx
test eax, eax
jne 0x41be33
lea eax, [esi + 0x10cc]
mov dword [eax + 0x18], ebp
mov dword [eax + 0x1c], 0xe
jmp 0x41bde8
push ebx
lea ebx, [esi + 0x10cc]
mov eax, ebx
call fcn.00418836
cmp dword [esi + 0x10f0], ebp
jne 0x41bee8
cmp dword [esi + 0x110c], ebp
jne 0x41beec
push edi
push str.Cabinet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDICreate
push eax
mov dword [esi + 0x110c], eax
call edi
push str.FDICopy
push dword [esi + 0x110c]
mov dword [esi + 0x1110], eax
call edi
push str.FDIIsCabinet
push dword [esi + 0x110c]
mov dword [esi + 0x1114], eax
call edi
push str.FDIDestroy
push dword [esi + 0x110c]
mov dword [esi + 0x1118], eax
call edi
mov dword [esi + 0x111c], eax
pop edi
cmp dword [esi + 0x1110], ebp
je 0x41bed5
cmp dword [esi + 0x1114], ebp
je 0x41bed5
cmp dword [esi + 0x1118], ebp
je 0x41bed5
cmp eax, ebp
jne 0x41beec
mov dword [esi + 0x110c], ebp
mov dword [ebx + 0x18], 0x3e8
mov dword [ebx + 0x1c], ebp
mov dword [ebx + 0x20], ebp
xor eax, eax
jmp 0x41bf2a
push ebx
push 1
push 0x41c34d
push fcn.0041c32c
push 0x41c301
push 0x41c2da
push 0x41c278
push 0x41c273
push 0x41c26e
call dword [esi + 0x1110]
xor ecx, ecx
add esp, 0x24
cmp eax, ebp
setne cl
mov dword [esi + 0x10f0], eax
mov eax, ecx
pop ebx
pop ebp
ret
Function at 0x41cc69
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
test dword [ebp + 0xc], 0x100
je 0x41cc83
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0047ea3d
add esp, 0xc
pop ebp
ret 0xc

Function at 0x41cc98
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41cd1c
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
je 0x41cd08
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
test esi, 0x100
ja 0x41ccfa
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [ebp - 0xc]
push eax
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and esi, 0x27
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
leave
ret 0xc
Function at 0x41e69b
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b5aa0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
mov eax, dword [0x4f3bd0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jne 0x41e6e3
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41e6cd
push str.version1.0_encodingutf_16
lea ecx, [esp + 0x18]
call fcn.004029a8
push dword [ebp + 0xc]
lea ecx, [esp + 0x14]
mov dword [esp + 0x6c], ebx
call fcn.004029a8
lea eax, [esp + 0x14]
push eax
push ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x74], 1
call fcn.0041233b
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x41e734
call fcn.00402a41
mov byte [esp + 0x68], 4
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x41e746
call fcn.00402a41
cmp dword [esp + 0x4c], ebx
sete al
cmp al, bl
sete al
cmp al, bl
jne 0x41e766
lea ecx, [esp + 0x48]
call fcn.00411d21
mov eax, ebx
jmp 0x41e6cf
push 0x4d74e4
lea ecx, [esp + 0x18]
call fcn.004029a8
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x70], 5
call fcn.00411ca4
mov byte [esp + 0x68], 7
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x41e79e
call fcn.00402a41
cmp dword [esp + 0x40], ebx
mov esi, dword [ebp + 8]
sete al
cmp al, bl
sete al
cmp al, bl
je 0x41e7cd
cmp dword [esp + 0x3c], ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x41e7cd
lea ecx, [esi + 8]
lea edx, [esp + 0x38]
call fcn.0041e91b
push str.Plugin_AfterSetup
lea ecx, [esp + 0x18]
call fcn.004029a8
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x70], 8
call fcn.00411ca4
mov byte [esp + 0x68], 0xa
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x41e805
call fcn.00402a41
cmp dword [esp + 0x30], ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x41e831
cmp dword [esp + 0x2c], ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x41e831
lea ecx, [esi + 0x20]
lea edx, [esp + 0x28]
call fcn.0041e91b
push str.Plugin_BeforeUninstall
lea ecx, [esp + 0x18]
call fcn.004029a8
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x70], 0xb
call fcn.00411ca4
mov byte [esp + 0x68], 0xd
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x41e869
call fcn.00402a41
cmp dword [esp + 0x20], ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x41e895
cmp dword [esp + 0x1c], ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x41e895
lea ecx, [esi + 0x38]
lea edx, [esp + 0x18]
call fcn.0041e91b
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 0xa
call fcn.00402af9
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 7
call fcn.00402af9
lea ecx, [esp + 0x38]
mov byte [esp + 0x68], 4
call fcn.00402af9
xor ebx, ebx
inc ebx
jmp 0x41e756
Function at 0x420b5c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b58c9
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x4f3bd0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [edi + 4]
call fcn.004212eb
push 0x4d7728
lea ecx, [esp + 0x10]
call fcn.004029a8
mov ecx, dword [ebp + 0xc]
and dword [esp + 0x38], 0
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0041fc19
mov byte [esp + 0x38], 2
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x420bc9
call fcn.00402a41
lea eax, [esp + 0x10]
call fcn.0041104c
test al, al
je 0x420bf0
or dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x420be9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x420c7d
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
test eax, eax
jle 0x420bd6
xor esi, esi
test eax, eax
jle 0x420c67
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.00411b32
mov byte [esp + 0x38], 3
cmp dword [esp + 0x24], 0
sete al
test al, al
sete al
test al, al
je 0x420c59
cmp dword [esp + 0x20], 0
sete al
test al, al
sete al
test al, al
je 0x420c59
push edi
lea ecx, [esp + 0x20]
call fcn.00420dc1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 2
call fcn.00402af9
inc esi
cmp esi, dword [esp + 0xc]
jl 0x420c02
jmp 0x420c67
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 2
call fcn.00402af9
or dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x420c7a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x421138
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x634
mov eax, dword [0x4f3bd0]
xor eax, esp
mov dword [esp + 0x630], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push edi
call dword [eax + 4]
and dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
test eax, eax
jle 0x421219
mov ebx, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push dword [esp + 0x10]
lea esi, [edi + 4]
call fcn.00421260
mov edx, dword [eax + 4]
cmp dword [edx - 0xc], 0
je 0x421207
cmp dword [edi + 0x1c], 0
je 0x4211fe
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x4211a1
push 4
lea ecx, [eax + 0x14]
push ecx
push 4
jmp 0x4211b2
cmp ecx, 1
jne 0x4211ba
mov ecx, dword [eax + 0x18]
mov esi, dword [ecx - 0xc]
add esi, esi
push esi
push ecx
push 1
push dword [eax + 8]
push edx
push dword [eax]
jmp 0x4211fa
cmp ecx, 2
jne 0x421207
mov eax, dword [edi]
lea ecx, [esp + 0x18]
push ecx
push dword [esp + 0x14]
push edi
call dword [eax + 8]
lea eax, [esp + 0x430]
push eax
call fcn.00475eae
pop ecx
add eax, eax
push eax
lea eax, [esp + 0x434]
push eax
push 1
lea eax, [esp + 0x230]
push eax
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x2c]
call ebx
jmp 0x421207
push edx
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
jl 0x421175
mov ecx, dword [esp + 0x63c]
pop edi
pop esi
xor eax, eax
pop ebx
xor ecx, esp
inc eax
call fcn.0047548a
mov esp, ebp
pop ebp
ret 4
Function at 0x421bfb
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
push edi
cmp dword [ebx + 0x28], esi
je 0x421c12
lea edi, [ebx + 0xc]
call fcn.004222de
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push esi
push 0x80
push 3
push esi
push 7
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, 0xffffffff
jne 0x421c3f
xor eax, eax
jmp 0x421ce7
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LockFile]
lea eax, [ebp - 0xc]
push eax
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
mov dword [ebp - 4], eax
jge 0x421cbb
cmp dword [ebp - 0xc], esi
jne 0x421cbb
add eax, 4
push eax
call fcn.0047758d
mov edi, eax
pop ecx
cmp edi, esi
je 0x421cbb
mov eax, dword [ebp - 4]
add eax, 4
push eax
push esi
push edi
call fcn.00475410
add esp, 0xc
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x14], esi
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 4]
mov ecx, ebx
push edi
call fcn.00421d7b
push edi
mov dword [ebp - 0x10], 1
call fcn.004770fc
pop ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_UnlockFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0x30]
call fcn.0042358d
mov eax, dword [ebp + 0xc]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret 8