joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4073f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
test eax, eax
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, ecx
mov ecx, dword [esi]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], ecx
mov dword [esi], 0
je 0x40748f
test ebx, ebx
je 0x40748f
test ebp, ebp
je 0x40748f
test edi, edi
je 0x40748f
lea edx, [esp + 8]
push edx
push 0x20019
push 0
push eax
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407494
mov ecx, dword [esi]
push ecx
push eax
push edi
call fcn.0040eb90
mov ecx, dword [esp + 0x14]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push edi
lea eax, [esp + 0x14]
push eax
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
push edx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x40747a
mov eax, edi
pop edi
pop ebp
add esp, 0xc
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [ebp], eax
pop edi
mov dword [esi], ecx
xor eax, eax
pop ebp
add esp, 0xc
ret
mov eax, 6
pop edi
pop ebp
add esp, 0xc
ret

Function at 0x4076f0
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov ebx, ecx
test ebx, ebx
push esi
mov esi, eax
je 0x407828
cmp byte [ebx], 0
je 0x407828
test esi, esi
je 0x407828
push ebp
push 0
push esi
call fcn.0040eb90
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 0xc], eax
ja 0x407742
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
push edi
push eax
call fcn.0040f141
mov edi, eax
add esp, 4
test edi, edi
jne 0x40775d
lea eax, [edi + 2]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x10]
push ecx
push 0
push edi
call fcn.0040eb90
mov edx, dword [esp + 0x1c]
add esp, 0xc
push edi
push edx
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x407795
push edi
call fcn.0040e862
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0xc
ret
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
cmp dword [esp + 0x10], 0
jbe 0x407812
test eax, eax
je 0x407812
mov eax, dword [esp + 0x14]
movzx edx, word [eax + 2]
movzx eax, word [eax]
push ebp
push edx
push eax
push edi
mov ecx, 0x424f7c
call fcn.004074a0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4077f5
mov eax, dword [esp + 0x14]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ebp
push ecx
push edx
push edi
mov ecx, 0x424f70
call fcn.004074a0
add esp, 0x10
mov ebx, eax
push edi
call fcn.0040e862
add esp, 4
mov eax, ebx
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 2
pop ebp
add eax, 0xfffffffe
pop ebx
add esp, 0xc
ret
push edi
call fcn.0040e862
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0xc
ret
Function at 0x407840
Capabilities:
Shutdown system

Disassembly:
sub esp, 0xac
mov eax, dword [0x42cb90]
xor eax, esp
mov dword [esp + 0xa8], eax
push esi
push 0x94
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.0040eb90
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x4078e5
cmp dword [esp + 0x28], 2
jne 0x4078e5
lea edx, [esp + 4]
push edx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40790b
lea eax, [esp + 0xc]
push eax
push str.SeShutdownPrivilege
push 0
mov dword [esp + 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edx, dword [esp + 4]
push 0
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push edx
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call esi
test eax, eax
jne 0x407929
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x407927
call esi
pop esi
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.0040f6db
add esp, 0xac
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.0040f6db
add esp, 0xac
ret
xor eax, eax
mov ecx, dword [esp + 0xac]
pop esi
xor ecx, esp
call fcn.0040f6db
add esp, 0xac
ret
Function at 0x407ea0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x74
push edi
xor eax, eax
xor edi, edi
push 0x44
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x38]
push edi
push eax
mov dword [esp + 0x30], edi
call fcn.0040eb90
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x88]
push edi
push edi
mov eax, 0xfffff830
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
push edi
mov eax, 0xc
push edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x98]
lea ecx, [esp + 0x34]
push ecx
push edx
push eax
mov dword [esp + 0x5c], 0x44
mov dword [esp + 0x88], 5
mov word [esp + 0x8c], 7
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], 1
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x407f4d
or eax, 0xffffffff
pop edi
add esp, 0x74
ret
mov ecx, dword [esp + 0x28]
push esi
push ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x88], edi
je 0x407fb3
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0xc], 0x103
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x407fc6
cmp dword [esp + 0xc], 0x103
jne 0x407fb0
push 0x1f4
call ebp
add esi, 1
cmp ebx, edi
jle 0x407fa6
lea ecx, [ebx + ebx]
cmp ecx, esi
jl 0x407fdf
cmp dword [esp + 0xc], 0x103
je 0x407f73
mov esi, edi
pop ebp
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
add esp, 0x74
ret
mov edx, dword [esp + 0x2c]
pop ebp
push edx
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
add esp, 0x74
ret
mov edx, dword [esp + 0x2c]
pop ebp
push edx
mov esi, 2
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
add esp, 0x74
ret
Function at 0x40b160
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x28
mov eax, dword [0x42cb90]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
xor esi, esi
push edi
push str.advapi32.dll
mov dword [esp + 0x1c], esi
mov byte [esp + 0x28], 0
mov byte [esp + 0x29], 0
mov byte [esp + 0x2a], 0
mov byte [esp + 0x2b], 0
mov byte [esp + 0x2c], 0
mov byte [esp + 0x2d], 5
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, esi
je 0x40b2f7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push ebp
push str.AllocateAndInitializeSid
push edi
call esi
push 0x426c70
push edi
mov ebx, eax
call esi
push str.GetTokenInformation
push edi
mov dword [esp + 0x2c], eax
call esi
push str.EqualSid
push edi
mov ebp, eax
call esi
push str.FreeSid
push edi
mov dword [esp + 0x24], eax
call esi
test ebx, ebx
mov dword [esp + 0x28], eax
je 0x40b2d9
mov esi, dword [esp + 0x24]
test esi, esi
je 0x40b2d9
test ebp, ebp
je 0x40b2d9
cmp dword [esp + 0x1c], 0
je 0x40b2d9
test eax, eax
je 0x40b2d9
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x54]
push ecx
call ebx
lea edx, [esp + 0x10]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 2
push ecx
call ebp
mov edx, dword [esp + 0x14]
push edx
call fcn.0040f141
mov esi, eax
add esp, 4
test esi, esi
je 0x40b2c5
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
push esi
push 2
push edx
call ebp
xor ebx, ebx
cmp dword [esi], ebx
jbe 0x40b2bc
lea ebp, [esi + 4]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [esp + 0x24]
test eax, eax
jne 0x40b2b4
add ebx, 1
add ebp, 8
cmp ebx, dword [esi]
jb 0x40b297
jmp 0x40b2bc
mov dword [esp + 0x20], 1
push esi
call fcn.0040e862
add esp, 4
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
push eax
call dword [esp + 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x20]
pop ebp
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0040f6db
add esp, 0x28
ret
mov ecx, dword [esp + 0x2c]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040f6db
add esp, 0x28
ret
Function at 0x40b430
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40b4a3
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push esi
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0xc]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
neg eax
sbb eax, eax
and eax, 0xfffffffe
pop esi
add esp, 8
ret
or eax, 0xffffffff
add esp, 8
ret

Function at 0x40ba80
Capabilities:
Enumerate network shares

Disassembly:
mov eax, 0x190c
call fcn.004124f0
push 0x18fc
lea eax, [esp + 0x14]
push 0
push eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
call fcn.0040eb90
mov edx, dword [esp + 0x191c]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push edx
push 2
push 0
push 2
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
je 0x40bad7
call dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x190c
ret
push esi
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xc]
push edx
push eax
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x1c], 0x1900
call sub.MPR.dll_WNetEnumResourceA
mov esi, eax
test esi, esi
jne 0x40bbe4
push ebp
mov ebp, dword [esp + 0x1920]
push edi
xor edi, edi
cmp dword [esp + 0xc], edi
jbe 0x40bbaf
lea esi, [esp + 0x24]
mov ecx, dword [esi - 4]
test ecx, ecx
je 0x40bb3c
cmp ecx, 1
jbe 0x40bb35
cmp ecx, 3
jbe 0x40bb3c
mov edx, 1
jmp 0x40bb3e
xor edx, edx
mov eax, dword [esi]
and eax, 2
je 0x40bb66
test edx, edx
je 0x40bb66
mov ecx, dword [esp + 0x1920]
push ebp
push ecx
lea edx, [esi - 0xc]
push edx
call fcn.0040ba80
add esp, 0xc
cmp byte [ebp], 0
jne 0x40bbaf
jmp 0x40bb87
test eax, eax
je 0x40bb87
cmp ecx, 2
jne 0x40bb87
mov eax, dword [esp + 0x1920]
mov ecx, dword [esi + 8]
push eax
push ecx
call fcn.0041060f
add esp, 8
test eax, eax
je 0x40bb95
add edi, 1
add esi, 0x20
cmp edi, dword [esp + 0xc]
jb 0x40bb24
jmp 0x40bbaf
mov edx, dword [esp + 0x191c]
mov ecx, dword [edx + 0x14]
mov edx, ebp
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x40bba1
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x24], 0x1900
call sub.MPR.dll_WNetEnumResourceA
mov esi, eax
test esi, esi
je 0x40bb14
pop edi
pop ebp
cmp esi, 0x103
jne 0x40bbee
xor esi, esi
mov eax, dword [esp + 8]
test eax, eax
je 0x40bbfc
push eax
call sub.MPR.dll_WNetCloseEnum
mov eax, esi
pop esi
add esp, 0x190c
ret
Function at 0x40cba0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
mov eax, 0xfffffff8
je 0x40cc4f
mov ecx, dword [esi]
test ecx, ecx
je 0x40cc4f
cmp byte [ecx + 0x3fc], 0
lea eax, [ecx + 0x3fc]
je 0x40cbd2
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esi]
mov eax, dword [eax + 0x31c]
test eax, eax
je 0x40cbef
cmp eax, dword [str.Kaseya_Agent]
je 0x40cbef
push eax
call fcn.0040e862
add esp, 4
mov ecx, dword [esi]
mov eax, dword [ecx + 0x320]
test eax, eax
je 0x40cc04
push eax
call fcn.0040e862
add esp, 4
mov edx, dword [esi]
mov eax, dword [edx + 0x318]
test eax, eax
je 0x40cc27
cmp eax, str.The_Agent_has_been_installed_successfully_on_your_computer.
je 0x40cc27
cmp eax, str.The_Agent_has_been_installed_successfully_on_your_computer._n_nThe_protection_features_will_take_effect_after_the_next_reboot.
je 0x40cc27
push eax
call fcn.0040e862
add esp, 4
mov eax, dword [esi]
mov eax, dword [eax + 0x324]
test eax, eax
je 0x40cc3c
push eax
call fcn.0040e862
add esp, 4
mov ecx, dword [esi]
push ecx
call fcn.0040e862
add esp, 4
mov dword [esi], 0
xor eax, eax
pop esi
ret
Function at 0x40de80
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x13c
mov eax, dword [0x42cb90]
xor eax, esp
mov dword [esp + 0x138], eax
push ebp
mov ebp, dword [esp + 0x148]
push esi
mov esi, dword [esp + 0x148]
push edi
push 0x12f
xor edi, edi
lea eax, [esp + 0x19]
push edi
push eax
mov dword [esp + 0x18], esi
mov byte [esp + 0x20], 0
call fcn.0040eb90
add esp, 0xc
cmp ebp, edi
jne 0x40dee2
pop edi
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.0040f6db
add esp, 0x13c
ret
mov eax, dword [ebp + 0x13c]
cmp eax, edi
je 0x40defb
push eax
call fcn.0040e862
add esp, 4
mov dword [ebp + 0x13c], edi
xor eax, eax
mov dword [ebp], eax
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
push ebx
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x18], eax
push 0x108
mov dword [ebp + 0x1c], eax
lea ebx, [ebp + 0x28]
push edi
mov dword [ebp + 0x20], eax
push ebx
mov dword [ebp + 0x24], eax
call fcn.0040eb90
mov ecx, dword [ebp + 0x130]
add ecx, 0x130
add dword [ebp + 0x134], ecx
mov eax, dword [ebp + 0x134]
push 2
neg eax
push eax
push esi
call fcn.0040f57f
push esi
push 0x130
lea edx, [esp + 0x38]
push 1
push edx
call fcn.0040f0d7
add esp, 0x28
cmp eax, 0x130
je 0x40df7a
mov dword [ebp + 0x130], edi
mov eax, 0xfffffffe
jmp 0x40e085
push 0x24
lea eax, [esp + 0x1c]
push eax
mov ecx, 9
lea esi, [esp + 0x20]
mov edi, ebp
push str.Agent_Install_Additional_File___v01
rep movsd dword es:[edi], dword [esi]
call fcn.00420da4
add esp, 0xc
test eax, eax
je 0x40dfa9
mov eax, 0xfffffffd
jmp 0x40e085
push 4
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x148]
push edx
call fcn.0040b5a0
lea eax, [esp + 0x20]
push eax
call fcn.0040b720
mov dword [ebp + 0x130], eax
mov ecx, 0x41
lea esi, [esp + 0x4c]
mov edi, ebx
mov eax, ebx
add esp, 0x10
rep movsd dword es:[edi], dword [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40dfe2
sub eax, edx
sub eax, 1
js 0x40e002
cmp byte [ebx + eax], 0x20
jne 0x40e002
sub eax, 1
mov byte [ebx + eax + 1], 0
jns 0x40dff2
mov eax, dword [ebp + 0x134]
mov edx, dword [ebp + 0x138]
mov ecx, dword [ebp + 0x130]
sub edx, eax
cmp ecx, edx
jbe 0x40e021
mov eax, 0xfffffffc
jmp 0x40e085
mov esi, dword [esp + 0x10]
add ecx, eax
push 2
neg ecx
push ecx
push esi
call fcn.0040f57f
mov eax, dword [ebp + 0x130]
add eax, 1
push eax
call fcn.0040f141
add esp, 0x10
test eax, eax
mov dword [ebp + 0x13c], eax
jne 0x40e055
mov eax, 0xfffffffb
jmp 0x40e085
mov ecx, dword [ebp + 0x130]
mov byte [eax + ecx], 0
mov edx, dword [ebp + 0x130]
mov eax, dword [ebp + 0x13c]
push esi
push edx
push 1
push eax
call fcn.0040f0d7
sub eax, dword [ebp + 0x130]
add esp, 0x10
neg eax
sbb eax, eax
and eax, 0xfffffffa
mov ecx, dword [esp + 0x148]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0040f6db
add esp, 0x13c
ret
Function at 0x40e0a0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x48
mov eax, dword [0x42cb90]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
mov ebx, dword [esp + 0x50]
push esi
mov esi, dword [esp + 0x58]
push 0x3f
lea eax, [esp + 0x11]
push 0
push eax
mov byte [esp + 0x18], 0
call fcn.0040eb90
add esp, 0xc
test ebx, ebx
je 0x40e239
test esi, esi
jne 0x40e224
push edi
push 0x105
lea esi, [ebx + 0x135]
push 0
push esi
call fcn.0040eb90
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
add esp, 0xc
push 0x104
push esi
push str.TEMP
call edi
test eax, eax
jle 0x40e148
cmp eax, 0x104
jae 0x40e148
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40e118
sub eax, edx
cmp byte [eax + ebx + 0x134], 0x5c
je 0x40e19c
mov edi, esi
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x40e132
mov cx, word [0x423eb4]
mov word [edi], cx
jmp 0x40e19c
push 0x104
push esi
push 0x426480
call edi
test eax, eax
jle 0x40e196
cmp eax, 0x104
jae 0x40e196
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40e165
sub eax, edx
cmp byte [eax + ebx + 0x134], 0x5c
je 0x40e19c
mov edi, esi
add edi, 0xffffffff
nop
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x40e180
mov dx, word [0x423eb4]
mov word [edi], dx
jmp 0x40e19c
mov dword [esi], 0x5c3a43
mov eax, esi
lea edx, [eax + 1]
pop edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40e1a2
sub eax, edx
mov ecx, 0x104
sub ecx, eax
push ecx
push str.KASetup.log
push esi
call fcn.00410dc0
push 0x427b3c
push esi
call fcn.0040f6c8
mov esi, eax
add esp, 0x14
test esi, esi
je 0x40e239
lea edx, [esp + 8]
push edx
call fcn.004128ee
lea eax, [esp + 0xc]
push eax
call fcn.004128ca
push eax
push str._Y__m__d__H:_M:_S
lea ecx, [esp + 0x1c]
push 0x40
push ecx
call fcn.0041351c
lea edx, [esp + 0x24]
push edx
push str.Installation_start_time:__s_n
push esi
call fcn.00412927
push esi
call fcn.0040f276
add esp, 0x28
pop esi
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0040f6db
add esp, 0x48
ret
push 0x105
push esi
add ebx, 0x135
push ebx
call fcn.0040f940
add esp, 0xc
mov ecx, dword [esp + 0x4c]
pop esi
pop ebx
xor ecx, esp
call fcn.0040f6db
add esp, 0x48
ret
Function at 0x40ee3b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x40ee78
cmp dword [ebp + 0x14], edi
je 0x40ee78
cmp ecx, edi
jne 0x40ee7f
call fcn.0041069a
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004148ab
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x40ee93
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x40eeb4
cmp ebx, 0xffffffff
je 0x40eea3
push ebx
push edi
push ecx
call fcn.0040eb90
add esp, 0xc
cmp esi, edi
je 0x40ee60
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x40ee60
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x40eed0
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x40eed7
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x40efc8
test word [esi + 0xc], 0x10c
je 0x40ef2b
mov eax, dword [esi + 4]
test eax, eax
je 0x40ef2b
jl 0x40f029
cmp ebx, eax
mov edi, ebx
jb 0x40eefc
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x40efd0
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0041040a
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x40efc0
cmp ebx, dword [ebp - 0xc]
jb 0x40ef98
cmp dword [ebp - 0xc], 0
je 0x40ef55
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x40ef4a
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x40ef51
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x40ef60
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x40ef60
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x40effc
push eax
push dword [ebp - 8]
push esi
call fcn.00415319
pop ecx
push eax
call fcn.00415d4f
add esp, 0xc
test eax, eax
je 0x40f03b
cmp eax, 0xffffffff
je 0x40f029
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x40efc0
push esi
call fcn.0041566e
cmp eax, 0xffffffff
pop ecx
je 0x40f02d
cmp dword [ebp - 4], 0
je 0x40effc
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x40eedf
mov eax, dword [ebp + 0x14]
jmp 0x40ee7a
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x40efe7
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0040eb90
add esp, 0xc
call fcn.0041069a
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x40ee70
cmp dword [ebp + 0xc], 0xffffffff
je 0x40f012
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0040eb90
add esp, 0xc
call fcn.0041069a
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x40ee70
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x40ee7a
or dword [esi + 0xc], 0x10
jmp 0x40f02d
Function at 0x40f6db
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42cb90]
jne 0x40f6e5
repz ret
jmp fcn.00416d9f
Function at 0x416168
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x42d7e8]
je 0x416183
inc edi
cmp edi, 0x17
jb 0x416174
cmp edi, 0x17
jae 0x416303
push ebp
push 3
call fcn.0041fab3
cmp eax, 1
pop ecx
je 0x4162cf
push 3
call fcn.0041fab3
test eax, eax
pop ecx
jne 0x4161b7
cmp dword [0x42d32c], 1
je 0x4162cf
cmp ebx, 0xfc
je 0x416302
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x42ef10
push ebp
call fcn.004149c9
add esp, 0xc
test eax, eax
je 0x4161ed
push esi
push esi
push esi
push esi
push esi
call fcn.004147af
add esp, 0x14
push 0x104
mov esi, 0x42ef29
push esi
push 0
mov byte [0x42f02d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x416231
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004149c9
add esp, 0xc
test eax, eax
je 0x416231
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004147af
add esp, 0x14
push esi
call fcn.00414a30
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x416276
push esi
call fcn.00414a30
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x42f224
push 0x428aec
sub ecx, eax
push ecx
push eax
call fcn.0041b186
add esp, 0x14
test eax, eax
je 0x416276
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004147af
add esp, 0x14
jmp 0x416278
xor esi, esi
push 0x428ae8
push ebx
push ebp
call fcn.0041b0cb
add esp, 0xc
test eax, eax
je 0x416298
push esi
push esi
push esi
push esi
push esi
call fcn.004147af
add esp, 0x14
push dword [edi*8 + 0x42d7ec]
push ebx
push ebp
call fcn.0041b0cb
add esp, 0xc
test eax, eax
je 0x4162ba
push esi
push esi
push esi
push esi
push esi
call fcn.004147af
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041f8f6
add esp, 0xc
jmp 0x416302
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x416302
cmp ebp, 0xffffffff
je 0x416302
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x42d7ec]
push dword [esi]
call fcn.00414a30
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret