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

Disassembly:
sub esp, 0x210
mov eax, dword [0x42c17c]
push ebp
push esi
push edi
push str.DeleteSubKeyTree
mov dword [esp + 0x21c], eax
call fcn.00406b70
mov edi, dword [esp + 0x228]
add esp, 4
test eax, eax
jne 0x40edd6
push edi
push str.DeleteSubKeyTree_lpSubKey
push 0
push str.DeleteSubKeyTree
call fcn.0040a9c0
add esp, 8
mov ecx, eax
call fcn.0040d020
mov ecx, eax
call fcn.0040dcf0
push 1
mov esi, eax
push 0
mov dword [0x42d048], 0
mov eax, dword [esi + 0x240]
push 0
push eax
push 1
mov ecx, esi
mov dword [esi + 0x248], 0
call fcn.0040af90
add esi, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebp, dword [esp + 0x220]
lea ecx, [esp + 0xc]
push ecx
push 0xf003f
push 0
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x40ee1a
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x20c]
call fcn.0041575b
add esp, 0x210
ret
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push 0x104
lea eax, [esp + 0x14]
push eax
push 0
push ecx
call esi
test eax, eax
jne 0x40ee60
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.0040ed50
mov edx, dword [esp + 0x14]
add esp, 8
push 0x104
lea ecx, [esp + 0x14]
push ecx
push 0
push edx
call esi
test eax, eax
je 0x40ee37
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
call fcn.0041575b
add esp, 0x210
ret

Function at 0x40ee90
Capabilities:
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x421de8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [esp + 8]
call fcn.00401e30
push 0x426d48
push 0x426d48
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea ecx, [esp + 0xc]
call fcn.0040de80
mov eax, dword [esp + 4]
push eax
push 0x80000002
call fcn.0040ed50
add esp, 8
push str.SoftwareMicrosoftWindowsCurrentVersionRunXLaccAir
lea ecx, [esp + 8]
call fcn.00401ae0
mov esi, dword [esp + 4]
push esi
push 0x80000001
call fcn.0040da50
mov eax, dword [0x42c058]
lea ecx, [esi - 0xc]
add esp, 8
cmp ecx, eax
je 0x40ef2c
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40ef2c
push esi
call fcn.00415965
add esp, 4
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40f360
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
push edi
push str.CUninstall::ExecWait
mov ebx, ecx
call fcn.00406b70
add esp, 4
xor ebp, ebp
test eax, eax
jne 0x40f3ce
mov eax, dword [esp + 0x68]
push eax
push str.Waite_cmd:
push ebx
push str.CUninstall::ExecWait
call fcn.0040a9c0
add esp, 8
mov ecx, eax
call fcn.0040d020
mov ecx, eax
call fcn.0040dcf0
push 1
mov esi, eax
push ebp
mov dword [0x42d048], ebp
mov ecx, dword [esi + 0x240]
push ebp
push ecx
push 1
mov ecx, esi
mov dword [esi + 0x248], ebp
call fcn.0040af90
add esi, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], edx
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x68]
mov edi, eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebp
push ebp
push 0x8000000
push 1
push ebp
push ebp
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40f46f
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40f4d4
push str.CUninstall::ExecWait
call fcn.00406b70
add esp, 4
test eax, eax
jne 0x40f4d4
push 1
push str.Waite_time_out__my_be_suspended_by_secury_software
push ebx
push str.CUninstall::ExecWait
call fcn.0040a9c0
add esp, 8
mov ecx, eax
call fcn.0040d020
mov ecx, eax
call fcn.0040b500
jmp 0x40f4d4
push str.CUninstall::ExecWait
call fcn.00406b70
add esp, 4
test eax, eax
jne 0x40f4d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.process_create_error_:
push ebx
push str.CUninstall::ExecWait
call fcn.0040a9c0
add esp, 8
mov ecx, eax
call fcn.0040d020
mov ecx, eax
call fcn.0040dbd0
push 1
mov esi, eax
push ebp
mov dword [0x42d048], ebp
mov edx, dword [esi + 0x240]
push ebp
push edx
push 1
mov ecx, esi
mov dword [esi + 0x248], ebp
call fcn.0040af90
add esi, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push str.CUninstall::ExecWait
mov esi, eax
call fcn.00406b70
add esp, 4
test eax, eax
jne 0x40f549
push 0x427088
sub esi, edi
push esi
push str.used_time:
push ebx
push str.CUninstall::ExecWait
call fcn.0040a9c0
add esp, 8
mov ecx, eax
call fcn.0040d020
mov ecx, eax
call fcn.0040dbd0
mov ecx, eax
call fcn.0040d020
push 1
mov esi, eax
push ebp
mov dword [0x42d048], ebp
mov eax, dword [esi + 0x240]
push ebp
push eax
push 1
mov ecx, esi
mov dword [esi + 0x248], ebp
call fcn.0040af90
add esi, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
Function at 0x40f560
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
push edi
push str.CUninstall::KillProcess
mov edi, ecx
call fcn.00406b70
mov ebp, dword [esp + 0x18]
add esp, 4
xor ebx, ebx
test eax, eax
jne 0x40f5cb
push ebp
push str.kill_process
push edi
push str.CUninstall::KillProcess
call fcn.0040a9c0
add esp, 8
mov ecx, eax
call fcn.0040d020
mov ecx, eax
call fcn.0040dcf0
push 1
mov esi, eax
push ebx
mov dword [0x42d048], ebx
mov eax, dword [esi + 0x240]
push ebx
push eax
push 1
mov ecx, esi
mov dword [esi + 0x248], ebx
call fcn.0040af90
add esi, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x14]
push ecx
push ebp
mov ecx, edi
mov dword [esp + 0x1c], ebx
call fcn.0040db00
test eax, eax
je 0x40f664
mov edx, dword [esp + 0x14]
push edx
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push str.CUninstall::KillProcess
mov ebp, eax
call fcn.00406b70
add esp, 4
test eax, eax
jne 0x40f65b
push ebp
push str.bTerminate_
push edi
push str.CUninstall::KillProcess
call fcn.0040a9c0
add esp, 8
mov ecx, eax
call fcn.0040d020
mov ecx, eax
call fcn.00403320
push 1
mov esi, eax
push ebx
mov dword [0x42d048], ebx
mov eax, dword [esi + 0x240]
push ebx
push eax
push ebx
mov ecx, esi
mov dword [esi + 0x248], ebx
call fcn.0040af90
add esi, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4

Function at 0x40fe40
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8
Function at 0x4120d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422036
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x420
mov eax, dword [0x42c17c]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
call dword [fcn.0042c050]
xor ebx, ebx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x418], ebx
mov eax, dword [ebp + 8]
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x420], edi
jne 0x41214a
call fcn.00411b80
mov esi, eax
jmp 0x41223b
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x412169
call fcn.00411b80
jmp 0x412232
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x41c], ebx
jne 0x412187
call fcn.00411b80
jmp 0x412232
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + esi + 2]
cmp eax, 0x400
mov dword [ebp + 8], esi
mov byte [ebp - 4], 2
jbe 0x4121b7
push eax
lea ecx, [ebp - 0x418]
call fcn.00413730
jmp 0x4121d4
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x4121d4
mov eax, dword [ebp - 0x418]
test eax, eax
mov dword [ebp - 4], 1
jne 0x4121ec
mov esi, 0x8007000e
jmp 0x412234
call dword [fcn.0042c050]
mov ecx, dword [ebp - 0x418]
push esi
push ecx
push esi
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x412210
call fcn.00411b80
jmp 0x412232
mov edx, dword [ebp - 0x418]
mov eax, dword [ebp + 0x14]
mov word [edx + esi*2], 0
mov ecx, dword [ebp - 0x418]
push eax
push ecx
lea ecx, [ebp - 0x428]
call fcn.00412280
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x418]
lea edx, [ebp - 0x414]
cmp eax, edx
je 0x412256
lea ecx, [ebp - 0x418]
call fcn.00413720
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.0041575b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4130c0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x42c17c]
mov edx, dword [esp + 0x220]
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x22c], eax
mov eax, dword [edi]
push edx
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 8]
mov esi, eax
test esi, esi
jne 0x41312a
test ecx, ecx
je 0x41311c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 8], ecx
je 0x413138
test ecx, ecx
je 0x4131db
push ecx
jmp 0x4131d5
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push ecx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
jne 0x4131a2
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xc]
call fcn.004130c0
mov edi, eax
test edi, edi
jne 0x4131f4
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0xc]
push eax
push eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
push edi
push edx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
je 0x413164
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 8]
test eax, eax
je 0x4131b9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 0
mov eax, dword [esp + 0x228]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x4131db
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x218]
call fcn.0041575b
add esp, 0x21c
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x413203
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x220]
mov eax, edi
pop edi
pop esi
call fcn.0041575b
add esp, 0x21c
ret 4
Function at 0x413620
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x413632
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x413ad0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4220db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x238
mov eax, dword [0x42c17c]
push ebx
push esi
push edi
mov dword [esp + 0x23c], eax
call fcn.0040fff0
test eax, eax
je 0x413bee
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x10], ebx
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
mov dword [esp + 0x250], esi
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], esi
mov word [esp + 0x1c], si
call fcn.0041630e
add esp, 4
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
lea ecx, [esp + 0x1c]
call fcn.00406560
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x413b58
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push esi
push eax
push 0x80000001
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x413bbe
mov ebx, dword [esp + 0x10]
mov word [esp + 0x30], si
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x32]
rep stosd dword es:[edi], eax
push 0x104
lea edx, [esp + 0x34]
push edx
push esi
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 4
lea eax, [esp + 0x14]
push eax
push 4
push esi
lea ecx, [esp + 0x40]
push ecx
push ebx
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [esp + 0x2c], 8
jb 0x413bd2
mov edx, dword [esp + 0x18]
push edx
call fcn.0041599c
add esp, 4
cmp ebx, esi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], esi
mov word [esp + 0x18], si
je 0x413bee
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x23c]
call fcn.0041575b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413ce0
Capabilities:
Check if file exists
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x464
mov eax, dword [0x42c17c]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
mov dword [esp + 0x468], eax
push edi
je 0x413de6
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x413de6
mov esi, dword [ebp + 0xc]
push esi
push ebx
call fcn.0041596a
add esp, 8
test eax, eax
je 0x413f0f
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x413d45
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x413de6
xor eax, eax
mov word [esp + 0x260], 0
mov ecx, 0x81
lea edi, [esp + 0x262]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x260]
push ebx
push eax
call fcn.004172f0
lea ecx, [esp + 0x268]
push 0x426c98
push ecx
call fcn.004172c6
add esp, 0x10
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0xc], esi
jne 0x413e00
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.CopyFolder
mov esi, eax
call fcn.00406b70
add esp, 4
test eax, eax
jne 0x413de6
push 1
push esi
push 0x426c8c
push eax
push str.CopyFolder
call fcn.0040a9c0
add esp, 8
mov ecx, eax
call fcn.0040d020
mov ecx, eax
call fcn.0040dbd0
mov ecx, eax
call fcn.0040b500
xor eax, eax
mov ecx, dword [esp + 0x46c]
call fcn.0041575b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test byte [esp + 0x10], 0x10
je 0x413e3b
lea ecx, [esp + 0x3c]
push 0x426c88
push ecx
call fcn.0041596a
add esp, 8
test eax, eax
je 0x413ef4
lea edx, [esp + 0x3c]
push 0x426c80
push edx
call fcn.0041596a
add esp, 8
test eax, eax
je 0x413ef4
push ebx
call fcn.0041630e
mov esi, eax
lea eax, [esp + 0x40]
push eax
call fcn.0041630e
lea eax, [esi + eax + 2]
lea ecx, [eax + eax]
push ecx
call fcn.004155f2
mov esi, eax
push ebx
push esi
call fcn.004172f0
push 0x423688
push esi
call fcn.004172c6
lea edx, [esp + 0x58]
push edx
push esi
call fcn.004172c6
mov eax, dword [ebp + 0xc]
push eax
call fcn.0041630e
lea ecx, [esp + 0x64]
push ecx
mov edi, eax
call fcn.0041630e
lea eax, [edi + eax + 2]
lea edx, [eax + eax]
push edx
call fcn.004155f2
mov edi, eax
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004172f0
push 0x423688
push edi
call fcn.004172c6
add esp, 0x40
lea ecx, [esp + 0x3c]
push ecx
push edi
call fcn.004172c6
mov al, byte [esp + 0x18]
add esp, 8
test al, 0x10
je 0x413ed7
push edi
push esi
call fcn.00413ce0
add esp, 8
jmp 0x413ee1
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push esi
call fcn.0041599c
push edi
call fcn.0041599c
mov esi, dword [esp + 0x14]
add esp, 8
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x413e00
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x46c]
mov eax, 1
call fcn.0041575b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4175c9
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x428500
call fcn.00417800
mov edi, 0x94
mov eax, edi
call fcn.004167d0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x42eca8], ecx
mov eax, dword [esi + 4]
mov dword [0x42ecb4], eax
mov edx, dword [esi + 8]
mov dword [0x42ecb8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x42ecac], esi
cmp ecx, 2
je 0x417629
or esi, 0x8000
mov dword [0x42ecac], esi
shl eax, 8
add eax, edx
mov dword [0x42ecb0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x417664
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x417664
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41767c
cmp eax, 0x20b
je 0x417669
mov dword [ebp - 0x1c], esi
jmp 0x417690
cmp dword [ecx + 0x84], 0xe
jbe 0x417664
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41768a
cmp dword [ecx + 0x74], 0xe
jbe 0x417664
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00418050
pop ecx
test eax, eax
jne 0x4176a4
push 0x1c
call fcn.004175a5
pop ecx
call fcn.004197d0
test eax, eax
jne 0x4176b5
push 0x10
call fcn.004175a5
pop ecx
call fcn.0041c76e
mov dword [ebp - 4], esi
call fcn.0041c570
test eax, eax
jge 0x4176ce
push 0x1b
call fcn.00417580
pop ecx
call fcn.0041c4d1
mov dword [0x430454], eax
call fcn.0041c367
mov dword [0x42eadc], eax
call fcn.0041c2d1
test eax, eax
jge 0x4176f3
push 8
call fcn.00417580
pop ecx
call fcn.0041c09e
test eax, eax
jge 0x417704
push 9
call fcn.00417580
pop ecx
push 1
call fcn.00419bd2
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x41771a
push eax
call fcn.00417580
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.0041c058
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x41773b
movzx eax, word [ebp - 0x40]
jmp 0x41773e
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00415420
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x41775c
push edi
call fcn.00419cff
call fcn.00419d21
jmp 0x41778e
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041783b
ret
Function at 0x417e0d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x417e3b
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x417e42
cmp ebx, dword [eax + 4]
jae 0x417e42
xor eax, eax
jmp 0x418032
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x417e53
xor eax, eax
inc eax
jmp 0x418031
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x417e69
cmp ecx, edx
jae 0x417fae
cmp dword [eax + 4], 0
je 0x417e72
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x417e5a
cmp dword [ebp + 8], 0
je 0x417e94
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x417fae
cmp eax, esi
jae 0x417fae
mov eax, dword [0x42eaf0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x417eb9
cmp dword [esi*4 + 0x42eaf8], edi
je 0x417fb2
inc esi
cmp esi, eax
jl 0x417ea7
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41802e
cmp dword [ebp - 8], 0x1000000
jne 0x41802e
test byte [ebp - 0xc], 0xcc
je 0x417f37
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41802e
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41802e
cmp word [eax + 0x18], 0x10b
jne 0x41802e
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41802e
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x417f37
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x417f37
test byte [ecx + 0x27], 0x80
jne 0x417fae
push 1
push 0x42eb38
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x417e4b
mov ecx, dword [0x42eaf0]
test ecx, ecx
mov edx, ecx
jle 0x417f6b
lea eax, [ecx*4 + 0x42eaf4]
cmp dword [eax], edi
je 0x417f6b
dec edx
sub eax, 4
test edx, edx
jg 0x417f5f
test edx, edx
jne 0x417f9c
push 0xf
pop ebx
cmp ecx, ebx
jg 0x417f78
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x417f90
lea eax, [edx*4 + 0x42eaf8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x417f7e
cmp ecx, 0x10
jge 0x417f9c
inc ecx
mov dword [0x42eaf0], ecx
push 0
push 0x42eb38
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x417e4b
xor eax, eax
jmp 0x418031
test esi, esi
jle 0x417e4b
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x42eb38
call ebx
test eax, eax
jne 0x417e4b
cmp dword [esi*4 + 0x42eaf8], edi
je 0x418008
mov eax, dword [0x42eaf0]
lea esi, [eax - 1]
test esi, esi
jl 0x417ff6
cmp dword [esi*4 + 0x42eaf8], edi
je 0x417ff2
dec esi
jns 0x417fe6
test esi, esi
jge 0x418006
cmp eax, 0x10
jge 0x418001
inc eax
mov dword [0x42eaf0], eax
lea esi, [eax - 1]
jmp 0x418008
je 0x418020
xor ecx, ecx
test esi, esi
jl 0x418020
lea eax, [ecx*4 + 0x42eaf8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41800e
push 0
push 0x42eb38
call ebx
jmp 0x417e4b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret