joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408c00
Capabilities:
Check if file exists

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
push edi
call fcn.0040acc0
add esp, 4
test eax, eax
je 0x408c1f
pop edi
mov eax, 1
pop esi
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x408c69
cmp eax, 3
je 0x408c69
cmp eax, 5
je 0x408c51
cmp eax, 0x20
je 0x408c51
push edi
push str.Cannot_delete_file__s:
push 1
push esi
call fcn.004044c0
add esp, 0x10
xor eax, eax
pop edi
pop esi
ret 8
push edi
push str.Access_or_sharing_violation_to__s
push 0
push esi
call fcn.004044c0
add esp, 0x10
xor eax, eax
pop edi
pop esi
ret 8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x408c82
push edi
push str.File__s_not_found
push 0
push esi
call fcn.004044c0
add esp, 0x10
pop edi
xor eax, eax
pop esi
ret 8
Function at 0x408fb0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4121b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x19c
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x10], esp
mov eax, dword [edi + 0x8b60]
mov dword [ebp - 0x18], esi
cmp eax, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x24], 0x100
mov dword [ebp - 4], esi
je 0x409066
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x64]
push eax
push str.ExtraPath__d
push ecx
call ebx
add esp, 0xc
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x1a8]
lea ecx, [ebp - 0x20]
push edx
push eax
mov eax, dword [edi + 0x8b60]
push ecx
lea edx, [ebp - 0x64]
push esi
push edx
push eax
mov dword [ebp - 0x18], 0x103
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4090a5
mov ecx, dword [edi + 0x8b60]
push esi
push ecx
mov ecx, edi
call fcn.00408c90
mov ecx, edi
call fcn.004066a0
cmp eax, esi
je 0x409077
mov edx, dword [edi + 0x8b64]
push 1
push edx
mov ecx, edi
call fcn.00408c90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str._BBOO__ExecuteProgram___start____
push esi
push edi
call fcn.004044c0
add esp, 0xc
mov ecx, edi
push 1
push str.ConditionalDel
call fcn.0040aab0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x1a8]
push eax
push 0x20006
push esi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409115
cmp esi, dword [ebp - 0x24]
jge 0x409109
push esi
lea edx, [ebp - 0x64]
push str.ExtraKey__d
push edx
call ebx
add esp, 0xc
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0xa4]
lea edx, [ebp - 0x20]
push eax
push ecx
mov ecx, dword [edi + 0x8b60]
push edx
lea eax, [ebp - 0x64]
push 0
push eax
push ecx
mov dword [ebp - 0x18], 0x3f
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x409131
mov dword [ebp - 0x24], esi
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
lea eax, [ebp - 0x1a8]
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, edi
call fcn.004087b0
inc dword [ebp - 0x1c]
jmp 0x408ffe
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x409161
lea edx, [ebp - 0xa4]
push str.DEFAULT
push edx
call fcn.004101d0
add esp, 8
test eax, eax
je 0x409161
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0xa4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
inc esi
jmp 0x4090c5
Function at 0x409170
Capabilities:
Delete registry key

Disassembly:
push ebp
push esi
push edi
mov esi, ecx
push str._BBOO__DeleteShortcut__CheckCondition___start____
push 0
push esi
call fcn.004044c0
add esp, 0xc
mov ecx, esi
call fcn.004066a0
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x4091f4
mov eax, dword [esi + 0x8b64]
test eax, eax
je 0x4091b1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0x8b64], 0
lea edi, [esi + 0x8c6c]
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
push edi
je 0x4091cc
push str.Cannot_delete__s_key:
push eax
jmp 0x4091eb
call fcn.00403180
add esp, 4
mov ecx, esi
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004087b0
push edi
push str._BBOO__Delete_reg_key_:___s_
push 0
push esi
call fcn.004044c0
add esp, 0x10
mov eax, dword [esi + 0x8b60]
test eax, eax
je 0x40920f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0x8b60], 0
lea edi, [esi + 0x8b68]
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
push edi
je 0x40923a
push str.Cannot_delete__s_key:
push eax
push esi
call fcn.004044c0
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
ret
call fcn.00403180
add esp, 4
mov ecx, esi
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004087b0
pop edi
pop esi
mov eax, 1
pop ebp
ret
Function at 0x409890
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x190
xor eax, eax
push ebp
mov ebp, ecx
push edi
mov ecx, 0x10
lea edi, [esp + 0x14]
lea edx, [ebp + 0x8780]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esp + 0x54]
rep stosd dword es:[edi], eax
lea eax, [ebp + 0x8734]
lea ecx, [ebp + 0x220]
push eax
push ecx
push edx
lea eax, [esp + 0xa0]
push str.SOFTWARE_s_s_sNon_Device_INF_Installer
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea ecx, [esp + 0xc]
lea edx, [esp + 0x94]
push ecx
push 0x20019
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409a02
push ebx
lea eax, [esp + 0xc]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
mov edi, 0x3f
push str.RefClass
push eax
mov dword [esp + 0x28], edi
call esi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push str.RefName
push ecx
mov dword [esp + 0x28], edi
call esi
mov esi, 0x419f28
lea eax, [esp + 0x1c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x409984
test cl, cl
je 0x409980
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x409984
add eax, 2
add esi, 2
test cl, cl
jne 0x40995c
xor eax, eax
jmp 0x409989
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x409994
push str.Get_Class_Name_from_Registry
jmp 0x409999
push str.Fail_to_get_Class_Name_of_a_program_from_Registry
push 0
push ebp
call fcn.004044c0
add esp, 0xc
mov esi, 0x419f28
lea eax, [esp + 0x5c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4099d5
test cl, cl
je 0x4099d1
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4099d5
add eax, 2
add esi, 2
test cl, cl
jne 0x4099ad
xor eax, eax
jmp 0x4099da
sbb eax, eax
sbb eax, 0xffffffff
pop esi
pop ebx
test eax, eax
je 0x4099e7
push str.Get_Window_Name_from_Registry
jmp 0x4099ec
push str.Fail_to_get_Window_Name_of_a_program_from_Registry
push 0
push ebp
call fcn.004044c0
mov eax, dword [esp + 0x18]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x409a2c
lea edi, [esp + 0x54]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x409a2c
lea ecx, [esp + 0x54]
lea edx, [esp + 0x14]
push ecx
push edx
jmp 0x409a5b
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x409a45
lea eax, [esp + 0x54]
push eax
push 0
jmp 0x409a5b
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x409a6e
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_FindWindowA]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop ebp
add esp, 0x190
ret
Function at 0x409e00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x318
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
xor ebp, ebp
push 0x104
push eax
push ebp
push ebp
push str.ConditionalExeFile
lea ecx, [ebx + 0x110]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.00403250
test eax, eax
jne 0x409e6b
mov edi, str.SSMMgr.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
push str.CPrinterInfo::GetConditionalExeFile___Conditional_Exe_File_:___s_
push ebp
push ebx
call fcn.004044c0
add esp, 0x10
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [ebx + 0x8b64]
push eax
push ecx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.ConditionFileCnt
push edx
mov dword [esp + 0x28], 4
call ebp
test eax, eax
je 0x409ece
push str.CPrinterInfo::GetConditionalExeFile___RegQueryValueEx_Conditional_file_Count_Fail___
push 0
push ebx
call fcn.004044c0
add esp, 0xc
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x318
ret 4
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
jle 0x409ebf
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x224]
push esi
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x124]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x228]
push str.C_File__d
push eax
mov dword [esp + 0x1c], 0x104
call fcn.0040bd8f
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x120]
lea eax, [esp + 0x18]
push ecx
push edx
mov edx, dword [ebx + 0x8b64]
push eax
lea ecx, [esp + 0x230]
push 0
push ecx
push edx
call ebp
test eax, eax
jne 0x409f66
lea eax, [esp + 0x120]
push 0x5c
push eax
call fcn.0040cbec
add esp, 8
test eax, eax
je 0x409f66
lea ecx, [esp + 0x1c]
inc eax
push ecx
push eax
call fcn.0040ca7e
add esp, 8
test eax, eax
je 0x409f82
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jl 0x409ed8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x318
ret 4
lea edi, [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov al, 1
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x32c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x318
ret 4
Function at 0x40aaf0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push esi
mov esi, dword [esp + 0x9c]
test esi, esi
je 0x40ab05
mov byte [esi], 0
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
je 0x40ab69
cmp dword [esp + 0x14], 2
jne 0x40ab69
mov eax, dword [esp + 8]
cmp eax, 4
jbe 0x40ab5c
test esi, esi
je 0x40ab4f
cmp eax, 5
ja 0x40ab4c
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40ab4f
mov byte [esi], 1
mov eax, 3
pop esi
add esp, 0x94
ret
mov eax, 2
pop esi
add esp, 0x94
ret
xor eax, eax
pop esi
add esp, 0x94
ret

Function at 0x40ab80
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0xc]
push esi
cmp eax, 0x4026
push edi
jg 0x40ac1d
cmp eax, 0x4026
je 0x40abf3
sub eax, 0xa
je 0x40acaa
dec eax
je 0x40ac36
sub eax, 6
jne 0x40ac30
push ebx
push 0x8000
call fcn.0040ab80
mov edi, str.inf
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
ret
mov edi, str.C:Program_Files_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
ret
sub eax, 0x8000
je 0x40ac72
sub eax, 0x81d0
je 0x40ac4f
sub eax, 2
je 0x40ac36
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov ecx, dword [esp + 0x14]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
pop edi
pop esi
mov eax, 1
pop ebx
ret
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x14]
push edx
push 0x104
push eax
push 1
push 0
push 0
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryA
pop edi
pop esi
mov eax, 1
pop ebx
ret
push str.kernel32.dll
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40acaa
push str.GetSystemWindowsDirectoryA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ac9f
push 0x104
push ebx
call eax
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
jne 0x40acb6
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x40acc0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40ace8
test al, 1
je 0x40acdf
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x40acf0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x510
lea eax, [esp + 0x10]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push 0x100
mov ecx, dword [ebp + 0x8774]
push eax
push 5
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [esp + 0x120]
push 0x400
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40adda
lea eax, [esp + 0x10]
lea ecx, [esp + 0x120]
push eax
push ecx
mov dword [esp + 0x18], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x40adda
push edi
call fcn.0040c275
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x18], esi
je 0x40adda
mov edx, dword [esp + 0x10]
push esi
push edi
lea eax, [esp + 0x128]
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40add1
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push edx
push str.StringFileInfo040904b0ProductVersion
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40add1
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
mov esi, dword [esp + 0x14]
dec ecx
mov eax, ecx
mov ecx, edx
mov ebx, ecx
lea edi, [esp + eax + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
add eax, edx
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
mov byte [esp + eax + 0x20], 0
push esi
call fcn.0040bd46
add esp, 4
mov ecx, dword [ebp + 0x8774]
lea eax, [esp + 0x120]
push 0x400
push eax
push 1
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edi, [ebp + 9]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x120]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x24]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x128]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x510
ret
Function at 0x40ae50
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4210
call fcn.0040bd60
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], ecx
push 0
mov dword [esp + 0x14], 0
call fcn.0040aaf0
add esp, 4
test eax, eax
jne 0x40afe4
mov esi, dword [esp + 0x4228]
mov ebp, dword [esp + 0x4224]
push str.wininit.ini
lea eax, [esp + 0x224]
push 0x4000
push eax
push str.rename
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov ebx, eax
cmp ebx, 0x3ffe
je 0x40afbd
mov cl, byte [0x419f28]
xor eax, eax
mov byte [esp + 0x18], cl
mov ecx, 0x40
lea edi, [esp + 0x19]
lea edx, [esp + 0x11c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
push edx
push esi
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x40aeee
lea esi, [esp + 0x11c]
lea edi, [esp + ebx + 0x220]
push esi
push str.NUL_s
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x18]
push 0x104
push eax
lea ebx, [ebx + ecx + 1]
mov ecx, dword [esp + 0x422c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x40af33
lea ebp, [esp + 0x18]
push ebp
lea edi, [esp + ebx + 0x224]
push esi
push 0x41548c
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
lea edx, [esp + 0x220]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push str.wininit.ini
add ecx, ebx
push edx
push str.rename
mov byte [esp + ecx + 0x22d], al
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
test eax, eax
je 0x40afbd
mov eax, dword [esp + 0x14]
push esi
push ebp
push str.WININIT.INI_has_been_updated_for_delayed_renaming__s_____s
push 0
mov dword [esp + 0x20], 1
push eax
call fcn.004044c0
mov ecx, dword [esp + 0x28]
add esp, 0x14
push str.Some_files_were_in_use_while_copying
push 0
push ecx
call fcn.004044c0
mov eax, dword [esp + 0x1c]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4210
ret 8
mov ecx, dword [esp + 0x14]
push esi
push ebp
push str.Cannot_update_WININIT.INI_for_delayed_renaming__s_____s:
push 1
push ecx
call fcn.004044c0
mov eax, dword [esp + 0x24]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4210
ret 8
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [esp + 0x4228]
mov edi, dword [esp + 0x4224]
mov ebp, eax
test ebp, ebp
je 0x40b048
push str.MoveFileExA
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40b026
push 4
push 0
push ebx
call esi
push 4
push ebx
push edi
call esi
mov dword [esp + 0x10], eax
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40b048
mov edx, dword [esp + 0x14]
push ebx
push edi
push str.Delayed_renaming__s_____s
push 0
push edx
jmp 0x40af90
mov eax, dword [esp + 0x14]
push ebx
push edi
push str.Cannot_register_delayed_renaming__s_____s:
push 1
push eax
call fcn.004044c0
mov eax, dword [esp + 0x24]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4210
ret 8
Function at 0x40b0e0
Capabilities:
Get file version info

Disassembly:
push ecx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
push ebp
push edi
mov dword [esp + 0x14], ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebp
jbe 0x40b153
push ebx
push esi
call fcn.0040c275
add esp, 4
mov ebx, eax
push ebx
push esi
push ebp
push edi
call sub.VERSION.dll_GetFileVersionInfoA
cmp eax, 1
jne 0x40b140
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0x41549c
push ebx
call sub.VERSION.dll_VerQueryValueA
cmp eax, 1
jne 0x40b140
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ecx, 0xd
mov ebp, eax
rep movsd dword es:[edi], dword [esi]
push ebx
call fcn.0040bd46
add esp, 4
mov eax, ebp
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret 8
pop edi
mov eax, ebp
pop esi
pop ebp
pop ecx
ret 8
Function at 0x4588dc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov eax, dword [esp + 0x10]
mov ebp, esp
push esi
push edi
mov esi, dword [ebp + 0xc]
shr esi, 2
mov edx, dword [ebp + 8]
mov ecx, esi
dec esi
test ecx, ecx
jle 0x45891d
movzx edi, byte [edx]
inc edx
movzx ecx, byte [edx]
shl ecx, 8
inc edx
or edi, ecx
movzx ecx, byte [edx]
shl ecx, 0x10
inc edx
or edi, ecx
movzx ecx, byte [edx]
shl ecx, 0x18
inc edx
or edi, ecx
mov ecx, esi
xor eax, edi
dec esi
test ecx, ecx
jg 0x4588f5
xor esi, esi
mov ecx, dword [ebp + 0xc]
and ecx, 3
cmp ecx, 1
je 0x458944
cmp ecx, 2
je 0x45893b
cmp ecx, 3
jne 0x458949
movzx esi, byte [edx]
shl esi, 0x10
inc edx
movzx ecx, byte [edx]
shl ecx, 8
inc edx
or esi, ecx
movzx ecx, byte [edx]
or esi, ecx
xor eax, esi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x100113e1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x100113f0
pop dword [ebp - 0x14]
mov eax, 0x100113f0
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x97017e86
sub dword [ebp - 0x24], 0x48af393b
mov dword [ebp - 0x20], 0x63c21e73
add dword [ebp - 0x20], 0xce712dd2
mov dword [ebp - 0x1c], 0x9ba100c9
sub dword [ebp - 0x1c], 0x4f54bc9b
mov dword [ebp - 0x18], 0x7543e50f
sub dword [ebp - 0x18], 0x7543e50f
lea eax, [ebp - 0x24]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xeec27851
sub dword [ebp - 0x24], 0x7a500efb
mov dword [ebp - 0x20], 0x9f188f37
add dword [ebp - 0x20], 0xa253d23e
mov dword [ebp - 0x1c], 0xb84abb66
sub dword [ebp - 0x1c], 0x54db4efa
mov dword [ebp - 0x18], 0x2fc4103a
add dword [ebp - 0x18], 0xd03befc6
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x6377b75a
sub eax, 0x537688fe
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x371ea
push 0
call eax
mov ecx, 0x4a74
xor edx, edx
add edx, eax
mov esi, 0xa343fd1c
sub esi, 0x9342831c
add esi, dword [ebp - 0x14]
mov ebx, 0x121374ae
mov edi, dword [esi]
xor dword [ebp - 0xc], ecx
sub edi, ebx
add dword [ebp - 8], ecx
mov dword [edx], edi
add edx, 4
add esi, 4
loop 0x100114fe
add eax, 0x9edc79a3
add eax, 0x6124a300
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xb5697a3b
sub ecx, 0xa5697a3b
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x156c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0156c1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x156c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x156c06a
add dl, dl
jne 0x156c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x156c0dc
xor eax, eax
add dl, dl
jne 0x156c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x156c17d
add dl, dl
jne 0x156c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x156c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x156c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x156c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x156c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x156c075
mov eax, 1
add dl, dl
jne 0x156c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x156c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x156c0e1
sub eax, ebx
mov ebx, 1
jne 0x156c128
mov ecx, 1
add dl, dl
jne 0x156c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x156c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x156c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x156c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x156c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x156c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x156c136
cmp eax, 0x7d00
jae 0x156c16d
cmp eax, 0x500
jb 0x156c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x156c075
cmp eax, 0x7f
ja 0x156c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x156c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x156c19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x156c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10