joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404b40
Capabilities:
Copy file
Delete file
Set file attributes

Disassembly:
push ebx
push ebp
push esi
push edi
push str._RollBackSelfUpdate___RollBack_Start_
push 1
call fcn.004036f0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
add esp, 8
cmp esi, eax
mov edi, esi
je 0x404c5c
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
add esi, 0x400
xor ebp, ebp
test ebp, ebp
jle 0x404b82
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x400]
test eax, eax
jne 0x404bb0
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
push esi
push edi
jne 0x404bfe
call ebx
push eax
push str._RollBackSelfUpdate__RollBack_Fail_Err_d____s___s_
push 1
call fcn.004036f0
add esp, 0x14
jmp 0x404bf1
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x404bd3
call ebx
push eax
push esi
push str._RollBackSelfUpdate__SetFileAttributes_Fail.___s__GetLastErr:__d_
push 1
call fcn.004036f0
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x404c0f
call ebx
push eax
push esi
push str._RollBackSelfUpdate__DeleteFile_Fail.___s__GetLastErr:__d_
push 1
call fcn.004036f0
add esp, 0x10
mov eax, ebp
inc ebp
cmp eax, 0x19
jge 0x404c38
jmp 0x404b73
push str._RollBackSelfUpdate__RollBack_Success___s___s_
push 1
call fcn.004036f0
add esp, 0x10
jmp 0x404c1f
push esi
push str._RollBackSelfUpdate__DeleteFile_Success___File_was_not_Back_Up.___s_
push 1
call fcn.004036f0
add esp, 0xc
mov eax, dword [esp + 0x1c]
add edi, 0x804
add esi, 0x804
cmp edi, eax
je 0x404c58
jmp 0x404b71
push str._RollBackSelfUpdate___RollBack_Retry_Fail_
push 1
call fcn.004036f0
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00419036
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov esi, dword [esp + 0x18]
push str._RollBackSelfUpdate___RollBack_Success_
push 1
call fcn.004036f0
push esi
call fcn.00419036
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x404c80
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 4], 6
sbb eax, eax
inc eax
add esp, 0x94
ret
Function at 0x404cb0
Capabilities:
Query service configuration

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor esi, esi
push 2
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ecx, dword [esp + 0x18]
cmp eax, esi
mov dword [ecx], eax
je 0x404d38
push 0xf01ff
push str.AeLookupSvc
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [esp + 0x1c]
cmp eax, esi
mov dword [ebp], eax
je 0x404d38
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
lea edx, [esp + 0x10]
push edx
push esi
push esi
push eax
mov dword [esp + 0x20], esi
call ebx
mov edi, dword [esp + 0x20]
test eax, eax
jne 0x404d1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x404d38
mov esi, dword [esp + 0x10]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [edi], eax
mov ecx, dword [edi]
mov edx, dword [ebp]
lea eax, [esp + 0x10]
push eax
push esi
push ecx
push edx
call ebx
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x404d40
Capabilities:
Modify service

Disassembly:
sub esp, 0xc
call fcn.00404c80
test eax, eax
jne 0x404d61
push str._PreCheckService__IsOverVista__FALSE
push 1
call fcn.004036f0
add esp, 8
xor eax, eax
add esp, 0xc
ret
push esi
push edi
push str._PreCheckService__IsOverVista__TRUE
push 1
call fcn.004036f0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov edi, 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
call fcn.00404cb0
add esp, 0x14
test eax, eax
je 0x404df7
mov eax, dword [esp + 8]
mov esi, dword [esp + 0x18]
mov ecx, dword [eax + 4]
mov dword [esi], ecx
mov ecx, dword [eax + 4]
cmp ecx, 4
jne 0x404e1c
push str.Application_Experience
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 3
push 0x10
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
push 3
je 0x404e08
mov eax, dword [esi]
push eax
push str._PreCheckService__Change_AppExp_Services_StartType___d_____d
push edi
call fcn.004036f0
add esp, 0x10
jmp 0x404e1c
push str._PreCheckService__Fail._Cannot_open_service.
push 1
call fcn.004036f0
add esp, 8
jmp 0x404e1c
mov ecx, dword [esi]
push ecx
push str._PreCheckService__Fail_to_Change_AppExp_Services_start_type___d_____d
push 1
call fcn.004036f0
add esp, 0x10
xor edi, edi
mov eax, dword [esp + 8]
test eax, eax
je 0x404e2b
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x404e3c
push eax
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x404e47
push eax
call esi
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret
Function at 0x404e50
Capabilities:
Modify service

Disassembly:
sub esp, 0xc
call fcn.00404c80
test eax, eax
jne 0x404e71
push str._PostCheckService__IsOverVista__FALSE
push 1
call fcn.004036f0
add esp, 8
xor eax, eax
add esp, 0xc
ret
push ebx
push esi
push str._PostCheckService__IsOverVista__TRUE
push 1
call fcn.004036f0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ebx, 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
call fcn.00404cb0
add esp, 0x14
test eax, eax
je 0x404f02
mov eax, dword [esp + 8]
mov esi, dword [esp + 0x18]
cmp esi, dword [eax + 4]
je 0x404f2c
push str.Application_Experience
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0x10
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
push esi
je 0x404f13
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 4]
push eax
push str._PostCheckService__Change_AppExp_Services_StartType__d_____d
push ebx
call fcn.004036f0
add esp, 0x10
jmp 0x404f2c
push str._PostCheckService__Fail._Cannot_open_service.
push 1
call fcn.004036f0
add esp, 8
jmp 0x404f2c
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 4]
push edx
push str._PostCheckService__Fail_to_Change_AppExp_Services_start_type__d_____d
push 1
call fcn.004036f0
add esp, 0x10
xor ebx, ebx
mov eax, dword [esp + 8]
test eax, eax
je 0x404f3b
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x404f4c
push eax
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x404f57
push eax
call esi
mov eax, ebx
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x407690
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [esp + 0x28]
test edi, edi
je 0x407848
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x407848
mov eax, dword [esp + 0x20]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x14], ebx
je 0x40782c
cmp byte [eax], 0
je 0x40782c
mov eax, dword [esp + 0x30]
test eax, eax
je 0x40782c
push ebp
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x407801
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x4077ee
cmp esi, 0xffffffff
je 0x4077ee
lea eax, [esp + 0x14]
lea ecx, [esi + 1]
push eax
push ecx
call fcn.00407ed0
mov edx, dword [esp + 0x1c]
push 0
push edx
mov ebx, eax
call fcn.00407ed0
add esp, 0x10
mov edi, eax
test ebx, ebx
je 0x4077dd
test edi, edi
je 0x4077d4
lea eax, [esp + 0x10]
push 0
push eax
push esi
push ebx
push ebp
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4077d4
cmp dword [esp + 0x10], esi
jne 0x4077d4
mov ecx, dword [esp + 0x14]
push 0
push ecx
push ebx
push edi
call fcn.00407e30
mov ecx, dword [esp + 0x30]
add esp, 0x10
test ecx, ecx
mov byte [edi + esi], 0
mov eax, edi
mov dword [esp + 0x34], 0
je 0x407799
cmp byte [ecx], 0
je 0x407799
lea edx, [esp + 0x34]
push ecx
push edx
push edi
call fcn.00407860
add esp, 0xc
test eax, eax
je 0x4077d4
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x34]
push ecx
push edx
push eax
call fcn.00407900
add esp, 0xc
test eax, eax
je 0x4077d4
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
push edx
push eax
mov eax, dword [esp + 0x34]
mov byte [ecx], 0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [esp + 0x18], 1
push ebx
call fcn.00407f40
add esp, 4
test edi, edi
je 0x4077ea
push edi
call fcn.00407f40
add esp, 4
mov edi, dword [esp + 0x2c]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x18]
test ebx, ebx
jne 0x407820
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x407817
mov byte [edi], al
pop ebp
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0xc
ret 0x18
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
pop ebp
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0xc
ret 0x18
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x40783f
mov byte [edi], al
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x18
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret 0x18
Function at 0x40b230
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b2a6
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
push 0x104
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40b2a6
mov eax, dword [esi + 0x3c]
xor edx, edx
add eax, esi
xor ecx, ecx
sub edi, esi
xor ebp, ebp
mov dx, word [eax + 0x14]
mov cx, word [eax + 6]
test ecx, ecx
lea edx, [edx + eax + 0x18]
jbe 0x40b2a6
lea eax, [edx + 0x10]
mov edx, dword [eax]
mov esi, dword [eax - 8]
mov ebx, dword [eax - 4]
cmp edx, esi
ja 0x40b294
mov edx, esi
cmp edi, ebx
jb 0x40b29e
add edx, ebx
cmp edi, edx
jbe 0x40b2b0
inc ebp
add eax, 0x28
cmp ebp, ecx
jb 0x40b286
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
inc ebp
sub edi, ebx
mov dword [eax], ebp
mov dword [ecx], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret
Function at 0x40b620
Capabilities:
Get common file path

Disassembly:
sub esp, 0x414
mov al, byte [0x4383cc]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x24], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x25]
mov esi, dword [esp + 0x42c]
rep stosd dword es:[edi], eax
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 2
stosw word es:[edi], ax
push 0
push 0
push 0x40000000
push esi
stosb byte es:[edi], al
call ebp
mov ebx, dword [esp + 0x430]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40b6ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push ebx
push str.__s__Create_MiniDumpFile__CreatFile_Fail__Path___s_error___d_
push 1
call fcn.004036f0
add esp, 0x14
lea ecx, [esp + 0x24]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x24]
push ebx
mov ecx, 0x100
xor eax, eax
mov edi, esi
push edx
push str._s_s_dump.dmp
push esi
rep stosd dword es:[edi], eax
call fcn.00419629
add esp, 0x10
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call ebp
mov edi, eax
cmp edi, 0xffffffff
jne 0x40b6ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push ebx
push str.__s__Create_MiniDumpFile__CreatFile_Fail__Path___s_error___d_
push 1
call fcn.004036f0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x414
ret
xor ebp, ebp
push str.DbgHelp.dll
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x40b731
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.__s__Create_MiniDumpFile__DbgHelp.dll_Load_Fail__error___d_
push 1
call fcn.004036f0
add esp, 0x10
jmp 0x40b78f
push str.MiniDumpWriteDump
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
test ebp, ebp
je 0x40b780
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
lea ecx, [esp + 0x1c]
push 0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x430]
push ecx
push 0
push edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebp
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebp, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x40b7ab
push esi
push ebx
push str.__s__Create_MiniDumpFile__Path___s
push 1
call fcn.004036f0
add esp, 0x10
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x414
ret
Function at 0x40bb20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push edi
xor dl, dl
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x109]
mov byte [esp + 0x108], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
pop edi
jne 0x40bb73
add esp, 0x208
ret
lea ecx, [esp]
push str.Version.dll
push ecx
lea edx, [esp + 0x10c]
push 0x42f174
push edx
call fcn.00419629
add esp, 0x10
lea eax, [esp + 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x208
ret
Function at 0x40bc3e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x62b]
mov byte [ebp - 0x62c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, str.version.dll
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x127]
mov byte [ebp - 0x128], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x22b]
mov byte [ebp - 0x22c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x40be24
cmp dword [ebp + 0x14], ebx
je 0x40be24
push dword [ebp + 0xc]
mov byte [eax], bl
lea eax, [ebp - 0x62c]
push dword [ebp + 8]
push 0x400
push eax
call fcn.0040e086
add esp, 0x10
mov esi, 0x104
lea eax, [ebp - 0x128]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40be24
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.0040e086
add esp, 0x10
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0xc], edi
je 0x40be24
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetFileVersionInfoA
push edi
call esi
push str.GetFileVersionInfoSizeA
push edi
mov dword [ebp + 8], eax
call esi
push str.VerQueryValueA
mov edi, eax
push dword [ebp - 0xc]
call esi
cmp dword [ebp + 8], ebx
mov dword [ebp - 8], eax
je 0x40be17
cmp edi, ebx
je 0x40be17
cmp eax, ebx
je 0x40be17
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x62c]
push eax
call edi
mov esi, eax
cmp esi, ebx
je 0x40be14
push esi
call fcn.00419406
mov edi, eax
pop ecx
cmp edi, ebx
je 0x40be14
push edi
push esi
push dword [ebp - 0x14]
lea eax, [ebp - 0x62c]
push eax
call dword [ebp + 8]
test eax, eax
je 0x40be0d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0xc]
push eax
push str.VarFileInfoTranslation
push edi
call dword [ebp - 8]
test eax, eax
je 0x40be0d
cmp dword [ebp - 0x18], ebx
je 0x40be0d
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
movzx eax, word [eax]
shr ecx, 0x10
push ecx
push eax
lea eax, [ebp - 0x82c]
push str.StringFileInfo_04hX_04hXFileVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x82c]
push eax
push edi
call dword [ebp - 8]
test eax, eax
je 0x40be0d
cmp dword [ebp - 0x10], ebx
je 0x40be0d
cmp dword [ebp + 0xc], ebx
je 0x40be0d
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [ebp - 4], 1
push edi
call fcn.00419540
pop ecx
mov ebx, dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
jmp 0x40be26
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bebe
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x3ff]
mov byte [ebp - 0x400], bl
push dword [ebp + 0xc]
xor esi, esi
rep stosd dword es:[edi], eax
push dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x400]
push 0x400
push eax
call fcn.0040e086
add esp, 0x10
lea eax, [ebp - 0x400]
push ebx
push ebx
push 3
push ebx
push 1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40bf34
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40bf2d
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d80b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push edi
push 7
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x2b]
mov byte [ebp - 0x2c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0x20
cmp eax, ebx
je 0x40d8d7
cmp dword [ebp + 0xc], ebx
je 0x40d8d7
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov byte [eax], bl
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push str.SoftwareNetscapeNetscape_Navigator
push 0x80000002
call edi
test eax, eax
jne 0x40d8d7
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x2c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push str.CurrentVersion
push dword [ebp - 8]
call esi
test eax, eax
jne 0x40d8cd
push 0x1f
lea eax, [ebp - 0x2c]
push str.Main
push eax
call fcn.0041a487
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0x20019
lea eax, [ebp - 0x2c]
push ebx
push eax
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40d8cd
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push ebx
push ebx
push str.Plugins_Directory
push dword [ebp - 0xc]
call esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
pop ebx
leave
ret
Function at 0x40de5f
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
push str.Kernel32.DLL
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
call edi
push str.User32.DLL
mov dword [esi + 0x1c], eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x40dede
push str.GetNativeSystemInfo
push eax
call edi
push str.IsWow64Process
mov dword [esi + 4], eax
push dword [esi + 0x1c]
call edi
push str.IsWow64Process2
mov dword [esi + 8], eax
push dword [esi + 0x1c]
call edi
push str.Wow64EnableWow64FsRedirection
mov dword [esi + 0xc], eax
push dword [esi + 0x1c]
call edi
push str.GetSystemWow64DirectoryA
mov dword [esi + 0x10], eax
push dword [esi + 0x1c]
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x40def0
push str.IsWow64Message
push eax
call edi
mov dword [esi + 0x18], eax
pop edi
pop esi
pop ebx
ret

Function at 0x40e1ac
Capabilities:
Read file on windows

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.00420c4f
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40e1cd
call fcn.0041bbc9
mov eax, dword [eax]
ret
sub eax, dword [esp + 0xc]
neg eax
sbb eax, eax
and eax, 5
ret

Function at 0x40e4f2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 4], 0
push esi
push 0x8002
push dword [ebp + 8]
call fcn.0041bc64
mov esi, eax
pop ecx
cmp esi, 0xffffffff
pop ecx
jne 0x40e51f
call fcn.0041bbc9
mov eax, dword [eax]
jmp 0x40e5b9
push edi
push 2
push 0
push esi
call fcn.00422e86
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
je 0x40e54b
cmp edi, 0x11
jl 0x40e5ae
push 2
push 0xffffffffffffffef
push esi
call fcn.00422e86
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40e554
mov dword [ebp - 4], 5
jmp 0x40e5ae
lea eax, [ebp - 0x18]
push 0x11
push eax
push esi
call fcn.00420c4f
add esp, 0xc
cmp eax, 0x11
jne 0x40e59c
lea eax, [ebp - 0x18]
push 8
push eax
push str._AHNEND:_08X_
call fcn.0041aca0
add esp, 0xc
test eax, eax
jne 0x40e5ae
add edi, 0xffffffef
push edi
push esi
call fcn.00422d08
pop ecx
cmp eax, 0xffffffff
pop ecx
jne 0x40e5ae
call fcn.0041bbc9
mov eax, dword [eax]
mov dword [ebp - 4], eax
jmp 0x40e5ae
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
dec ecx
and ecx, 4
add ecx, 5
mov dword [ebp - 4], ecx
push esi
call fcn.00420878
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
leave
ret
Function at 0x40e6b6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov dword [ebx], esi
jne 0x40e6d0
mov dword [ebx], 0x16
jmp 0x40e70c
push 0x8000
push dword [ebp + 8]
call fcn.0041bc64
mov edi, eax
pop ecx
cmp edi, 0xffffffff
pop ecx
mov dword [ebp + 8], edi
je 0x40e703
push 2
push esi
push edi
call fcn.00422e86
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x40e710
push edi
call fcn.00420878
pop ecx
call fcn.0041bbc9
mov eax, dword [eax]
mov dword [ebx], eax
xor eax, eax
jmp 0x40e779
push 0
push 0
push edi
call fcn.00422e86
lea eax, [esi + 2]
push eax
call fcn.00419406
mov edi, eax
add esp, 0x10
test edi, edi
je 0x40e756
push esi
push edi
push dword [ebp + 8]
call fcn.00420c4f
add esp, 0xc
cmp eax, esi
jne 0x40e74b
and byte [edi + esi], 0
and byte [edi + esi + 1], 0
lea eax, [edi + esi]
jmp 0x40e75c
call fcn.0041bbc9
mov eax, dword [eax]
mov dword [ebx], eax
jmp 0x40e75c
mov dword [ebx], 0xc
push dword [ebp + 8]
call fcn.00420878
cmp dword [ebx], 0
pop ecx
je 0x40e777
test edi, edi
je 0x40e777
push edi
call fcn.00419540
pop ecx
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40eb7a
Capabilities:
Get common file path

Disassembly:
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x40ebbd
push str.GetSystemWindowsDirectoryA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ebbd
push dword [esp + 8]
push dword [esp + 8]
call eax
test eax, eax
jne 0x40ebcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AIL:GetSystemWindowsDirectory_err_d
push 1
call fcn.004036f0
add esp, 0xc
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x40ed38
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp word [ebp + 0x10], 0
not eax
je 0x40ed69
push esi
movzx edx, byte [ecx]
movzx esi, al
add dword [ebp + 0x10], 0xffff
xor edx, esi
shr eax, 8
mov edx, dword [edx*4 + 0x431f08]
xor eax, edx
inc ecx
cmp word [ebp + 0x10], 0
jne 0x40ed45
pop esi
not eax
pop ebp
ret