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

Disassembly:
push 8
mov eax, 0x50004f
call fcn.004e2589
mov esi, ecx
and dword [ebp - 0x10], 0
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0x164], 0xffffffff
je 0x4135e4
push ebx
push 0x24
push ecx
mov ecx, esp
mov dword [ebp + 0x14], esp
push str.CCoreFile::FindFirst
call fcn.00401769
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push str.Called_FindFirst_while_previous_call_still_open_
call fcn.00401769
mov byte [ebp - 4], 3
mov eax, dword [esi]
push ebx
mov byte [ebp - 4], bl
mov ecx, esi
call dword [eax + 0x10]
mov ecx, dword [ebp + 8]
push 0x51d067
call fcn.00401769
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00401898
mov eax, dword [ebp + 8]
jmp 0x41371b
mov eax, dword [ebp + 0x10]
push ecx
mov dword [esi + 0x16c], eax
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.0040184e
mov byte [ebp - 4], 4
mov byte [ebp - 4], bl
lea edi, [ebp + 0x10]
call fcn.00414932
pop ecx
mov byte [ebp - 4], 5
lea edi, [esi + 0x168]
push eax
mov ecx, edi
call fcn.004043ce
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x10]
call fcn.00401898
lea eax, [esi + 0x24]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esi + 0x164], eax
cmp eax, 0xffffffff
jne 0x4136a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 2
je 0x413691
cmp edi, 3
je 0x413691
push ebx
push 0x33
push ecx
mov ecx, esp
mov dword [ebp + 0x14], esp
push str.CCoreFile::FindFirst
call fcn.00401769
mov byte [ebp - 4], 6
push ecx
mov eax, esp
mov dword [ebp + 0x10], esp
lea ecx, [ebp + 0xc]
push ecx
push str.FindFirstFile_returned_an_error_
push eax
call fcn.004040f8
add esp, 0xc
mov byte [ebp - 4], 7
mov eax, dword [esi]
push edi
mov byte [ebp - 4], bl
mov ecx, esi
call dword [eax + 0x10]
mov ecx, dword [ebp + 8]
push 0x51d067
call fcn.00401769
jmp 0x4135cd
mov ecx, esi
call fcn.00413839
test eax, eax
jne 0x4136c0
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 8]
call fcn.00413723
jmp 0x4135cd
cmp dword [ebp + 0x14], 0
je 0x4136da
push 0x140
lea eax, [esi + 0x24]
push eax
push dword [ebp + 0x14]
call fcn.004de9d0
add esp, 0xc
push ecx
add esi, 0x50
mov ecx, esp
mov dword [ebp + 0x14], esp
push esi
call fcn.00401769
mov byte [ebp - 4], 8
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push edi
call fcn.0040184e
mov byte [ebp - 4], 9
mov byte [ebp - 4], bl
mov esi, dword [ebp + 8]
call fcn.00414ad0
pop ecx
pop ecx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00401898
mov eax, esi
call fcn.004e2661
ret 0x10
Function at 0x413d4d
Capabilities:
Get common file path

Disassembly:
push 0x118
mov eax, 0x504668
call fcn.004e25f2
and dword [ebp - 0x11c], 0
mov dword [ebp - 0x120], edi
mov dword [ebp - 4], 2
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x413d9c
lea esi, [ebp - 0x118]
call fcn.00413447
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp + 8]
call fcn.004043ce
mov byte [ebp - 4], 2
mov ecx, esi
call fcn.00401898
lea eax, [ebp - 0x114]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x413dc5
lea eax, [ebp - 0x114]
push eax
mov ecx, edi
call fcn.00401769
jmp 0x413e14
push 1
push 0xf9
push ecx
mov ecx, esp
mov dword [ebp - 0x118], esp
push str.CCoreFile::CreateTempFile
call fcn.00401769
mov byte [ebp - 4], 4
push ecx
mov ecx, esp
mov dword [ebp - 0x124], esp
push str.GetTempFileName_failed_
call fcn.00401769
mov byte [ebp - 4], 5
mov byte [ebp - 4], 2
mov ecx, 0x575e68
call fcn.00411716
push 0x51d067
mov ecx, edi
call fcn.00401769
mov dword [ebp - 0x11c], 1
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00401898
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00401898
mov eax, edi
call fcn.004e2675
ret
Function at 0x414420
Capabilities:
Copy file
Get file attributes
Set file attributes

Disassembly:
push 0
mov eax, 0x4fbf42
call fcn.004e2589
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x414485
cmp dword [ebp + 0x14], 0
je 0x414465
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test bl, al
je 0x414465
and eax, 0xfffffffe
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401898
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401898
mov eax, ebx
call fcn.004e2661
ret
xor ebx, ebx
jmp 0x414465
Function at 0x4171ea
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
sub esp, 0x128
lea ebp, [esp - 4]
mov eax, dword [0x56d790]
xor eax, ebp
mov dword [ebp + 0x128], eax
push 0x18
mov eax, 0x509ccb
call fcn.004e25bc
mov esi, ecx
mov edi, dword [ebp + 0x134]
push edi
push 0x4173af
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
jne 0x417234
cmp dword [ebp + 0x138], eax
jne 0x417234
inc eax
jmp 0x4172f4
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [ebp - 0x14], ebx
cmp ebx, 0xffffffff
jne 0x41729b
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.CCoreProcess::RecurseBringTreeToFront
call fcn.00401769
and dword [ebp - 4], 0
push 0x15d
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str..CoreProcess.cpp
call fcn.00401769
mov byte [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.CreateToolHelp32Snapshot_failed_
call fcn.00401769
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
or dword [ebp - 4], ebx
call fcn.0041129b
xor eax, eax
jmp 0x4172f4
and dword [ebp - 0x18], 0
mov dword [ebp - 4], 3
mov dword [ebp], 0x128
lea eax, [ebp]
push eax
push ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4172e4
cmp dword [ebp + 0x18], edi
jne 0x417319
push dword [ebp + 0x138]
push dword [ebp + 8]
mov ecx, esi
call fcn.004171ea
test eax, eax
je 0x417319
cmp dword [ebp + 0x138], 0
jne 0x417319
mov dword [ebp - 0x18], 1
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x128]
xor ecx, ebp
call fcn.004dd215
add ebp, 0x12c
leave
ret 8
lea eax, [ebp]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
jmp 0x4172b7
Function at 0x417738
Capabilities:
Enumerate process modules

Disassembly:
push 0x24c
mov eax, 0x509bf5
call fcn.004e2628
xor esi, esi
mov dword [ebp - 4], esi
push dword [ebp + 8]
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [ebp - 0x254], ebx
cmp ebx, 0xffffffff
jne 0x417777
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401898
mov eax, esi
call fcn.004e2684
ret
mov dword [ebp - 0x24c], esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x240], 0x224
lea eax, [ebp - 0x240]
push eax
push ebx
call sub.KERNEL32.dll_Module32First
mov esi, eax
push ecx
mov ecx, esp
mov dword [ebp - 0x248], esp
lea eax, [ebp + 0xc]
push eax
call fcn.0040184e
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
lea edi, [ebp - 0x244]
call fcn.00415380
pop ecx
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp + 0xc]
call fcn.004043ce
mov byte [ebp - 4], 1
mov ecx, edi
call fcn.00401898
lea edi, [ebp + 0xc]
call fcn.00404010
push eax
mov ecx, edi
call fcn.004043ce
test esi, esi
je 0x41789c
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x244]
call fcn.00401769
mov byte [ebp - 4], 4
push 0x522580
xor ecx, ecx
lea esi, [ebp - 0x244]
call fcn.0041271e
test eax, eax
jge 0x4178b7
push str.SystemRoot
xor ecx, ecx
call fcn.0041271e
test eax, eax
jge 0x4178b7
push ecx
mov ecx, esp
mov dword [ebp - 0x250], esp
mov eax, esi
push eax
call fcn.0040184e
mov byte [ebp - 4], 5
mov byte [ebp - 4], 4
lea edi, [ebp - 0x248]
call fcn.00415380
pop ecx
mov byte [ebp - 4], 6
push eax
mov ecx, esi
call fcn.004043ce
mov byte [ebp - 4], 4
mov ecx, edi
call fcn.00401898
lea eax, [ebp + 0xc]
push eax
mov edi, esi
call fcn.00404010
push eax
call fcn.0040415c
pop ecx
pop ecx
test al, al
je 0x4178b7
mov dword [ebp - 0x24c], 1
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.00401898
and dword [ebp - 4], 0
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x24c]
jmp 0x417763
lea eax, [ebp - 0x240]
push eax
push ebx
call sub.KERNEL32.dll_Module32Next
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x244]
call fcn.00401898
jmp 0x4177e8
Function at 0x41793e
Capabilities:
Create process on windows

Disassembly:
push 0x40
mov eax, 0x509b7a
call fcn.004e2589
xor ebx, ebx
mov dword [ebp - 4], ebx
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
lea ecx, [ebp + 8]
push ecx
push str.ShellExecuteCommand:
push eax
call fcn.004040f8
add esp, 0xc
mov byte [ebp - 4], 1
push 4
mov byte [ebp - 4], bl
call fcn.00412200
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x38], 0x51d067
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 5
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x417a1f
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push str.CCoreProcess::ShellExecuteCommand
call fcn.00401769
mov byte [ebp - 4], 2
push 0x25f
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push str..CoreProcess.cpp
call fcn.00401769
mov byte [ebp - 4], 3
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
lea ecx, [ebp + 8]
push ecx
push str.Failed_to_execute_command:
push eax
call fcn.004040f8
add esp, 0xc
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov byte [ebp - 4], bl
call fcn.0041129b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401898
mov eax, ebx
call fcn.004e2661
ret
xor ebx, ebx
inc ebx
jmp 0x417a0b
Function at 0x417a24
Capabilities:
Create process on windows

Disassembly:
push 0x4c
mov eax, 0x509b37
call fcn.004e2589
mov dword [ebp - 4], 1
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push str.ShellExecuteCommand:
push eax
call fcn.004040f8
add esp, 0xc
mov byte [ebp - 4], 2
mov esi, 0x521dec
push esi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00404094
mov byte [ebp - 4], 3
add esp, 8
mov ecx, esp
mov dword [ebp - 0x18], esp
lea edx, [ebp + 0xc]
push edx
push eax
push ecx
call fcn.0040403d
add esp, 0xc
mov byte [ebp - 4], 4
push 4
mov byte [ebp - 4], 3
call fcn.00412200
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.00401898
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00401898
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
xor edi, edi
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], 5
mov dword [ebp - 0x34], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x417b9b
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.CCoreProcess::ShellExecuteCommand
call fcn.00401769
mov byte [ebp - 4], 5
push 0x27a
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str..CoreProcess.cpp
call fcn.00401769
mov byte [ebp - 4], 6
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x14]
push str.Failed_to_execute_command:
push eax
call fcn.004040f8
add esp, 0xc
mov byte [ebp - 4], 7
push esi
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.00404094
mov byte [ebp - 4], 8
add esp, 8
mov ecx, esp
mov dword [ebp - 0x10], esp
lea edx, [ebp + 0xc]
push edx
push eax
push ecx
call fcn.0040403d
add esp, 0xc
mov byte [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov byte [ebp - 4], 0xb
call fcn.0041129b
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 0x10]
call fcn.00401898
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x14]
call fcn.00401898
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401898
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401898
mov eax, edi
call fcn.004e2661
ret
xor edi, edi
inc edi
jmp 0x417b7b
Function at 0x417ba0
Capabilities:
Create process on windows

Disassembly:
push 0x40
mov eax, 0x509acc
call fcn.004e2589
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
lea ecx, [ebp + 8]
push ecx
push str.ShellExecuteCommand:
push eax
call fcn.004040f8
add esp, 0xc
mov byte [ebp - 4], 2
push 4
mov byte [ebp - 4], bl
call fcn.00412200
mov eax, dword [ebp + 0x14]
and dword [ebp - 0x34], 0
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], 0x40
mov dword [ebp - 0x30], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x417c95
push ecx
mov ecx, esp
mov dword [ebp + 0x14], esp
push str.CCoreProcess::ShellExecuteCommandAndWait
call fcn.00401769
mov byte [ebp - 4], 3
push 0x294
push ecx
mov ecx, esp
mov dword [ebp + 0x18], esp
push str..CoreProcess.cpp
call fcn.00401769
mov byte [ebp - 4], 4
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
lea ecx, [ebp + 8]
push ecx
push str.Failed_to_execute_command:
push eax
call fcn.004040f8
add esp, 0xc
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov byte [ebp - 4], bl
call fcn.0041129b
xor ebx, ebx
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401898
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401898
mov eax, ebx
call fcn.004e2661
ret
cmp dword [ebp - 0x14], 0
je 0x417c75
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x417c75
Function at 0x417cb2
Capabilities:
Enumerate gui resources
Enumerate processes

Disassembly:
push 0x148
mov eax, 0x50cf94
call fcn.004e2628
mov esi, ecx
push 2
pop ebx
mov dword [ebp - 4], ebx
lea ecx, [esi + 0x2c]
lea eax, [ebp + 0xc]
push eax
call fcn.004043ce
lea ecx, [esi + 0x30]
lea eax, [ebp + 0x10]
push eax
call fcn.004043ce
push 0
push ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x14c], edi
cmp edi, 0xffffffff
jne 0x417d51
push ecx
mov ecx, esp
mov dword [ebp - 0x14c], esp
push str.CCoreProcess::CloseProcessWindowsByModuleName
call fcn.00401769
mov byte [ebp - 4], 3
push 0x2ae
push ecx
mov ecx, esp
mov dword [ebp - 0x150], esp
push str..CoreProcess.cpp
call fcn.00401769
mov byte [ebp - 4], 4
push ecx
mov ecx, esp
mov dword [ebp - 0x148], esp
push str.CreateToolHelp32Snapshot_failed_
call fcn.00401769
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov byte [ebp - 4], bl
call fcn.0041129b
jmp 0x417dce
mov byte [ebp - 4], 6
mov dword [ebp - 0x144], 0x128
lea eax, [ebp - 0x144]
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x417dbf
push ecx
mov ecx, esp
mov dword [ebp - 0x148], esp
lea eax, [ebp + 8]
push eax
call fcn.0040184e
mov byte [ebp - 4], 7
push dword [ebp - 0x13c]
mov byte [ebp - 4], 6
call fcn.00417738
pop ecx
pop ecx
test eax, eax
je 0x417db0
mov eax, dword [ebp - 0x13c]
mov dword [esi + 0x34], eax
push esi
push 0x417e61
call dword [sym.imp.USER32.dll_EnumWindows]
lea eax, [ebp - 0x144]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
jmp 0x417d6c
mov dword [ebp - 4], ebx
push dword [ebp - 0x14c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00401898
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00401898
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00401898
call fcn.004e2684
ret 0xc
Function at 0x4180af
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0x148
mov eax, 0x50cf07
call fcn.004e2628
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x14c], edi
cmp edi, 0xffffffff
jne 0x418136
push ecx
mov ecx, esp
mov dword [ebp - 0x14c], esp
push str.CCoreProcess::TerminateProcessByModuleName
call fcn.00401769
mov byte [ebp - 4], 1
push 0x30a
push ecx
mov ecx, esp
mov dword [ebp - 0x150], esp
push str..CoreProcess.cpp
call fcn.00401769
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x148], esp
push str.CreateToolHelp32Snapshot_failed_
call fcn.00401769
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov byte [ebp - 4], bl
call fcn.0041129b
jmp 0x4181c2
mov byte [ebp - 4], 4
mov dword [ebp - 0x144], 0x128
lea eax, [ebp - 0x144]
push eax
push edi
call sub.KERNEL32.dll_Process32First
cmp eax, ebx
je 0x4181b3
push ecx
mov ecx, esp
mov dword [ebp - 0x148], esp
lea eax, [ebp + 8]
push eax
call fcn.0040184e
mov byte [ebp - 4], 5
push dword [ebp - 0x13c]
mov byte [ebp - 4], 4
call fcn.00417738
pop ecx
pop ecx
cmp eax, ebx
je 0x4181a4
push dword [ebp - 0x13c]
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x4181a4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x144]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
jmp 0x418151
mov dword [ebp - 4], ebx
push dword [ebp - 0x14c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401898
call fcn.004e2684
ret

Function at 0x41a1b5
Capabilities:
Get file version info

Disassembly:
push 0x10
mov eax, 0x5042c7
call fcn.004e2589
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
and dword [ebp - 0x14], 0
test eax, eax
jne 0x41a1f3
lea esi, [ebp - 0x10]
call fcn.00414b3e
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp + 8]
call fcn.004043ce
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.00401898
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jbe 0x41a273
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x41a273
push ebx
push edi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x41a267
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x521f24
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41a267
push 0x34
pop eax
cmp dword [ebp - 0x10], eax
jb 0x41a24f
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp + 0xc]
call fcn.004de9d0
add esp, 0xc
mov dword [ebp - 0x14], 1
push ebx
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401898
mov eax, dword [ebp - 0x14]
call fcn.004e2661
ret
Function at 0x41a288
Capabilities:
Get file version info

Disassembly:
push 0x14
mov eax, 0x50429c
call fcn.004e2589
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 2
mov ecx, dword [ebp + 8]
push 0x51d067
call fcn.00401769
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], 1
cmp dword [eax - 0xc], edi
jne 0x41a2df
lea esi, [ebp - 0x14]
call fcn.00414b3e
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp + 0xc]
call fcn.004043ce
mov byte [ebp - 4], 2
mov ecx, esi
call fcn.00401898
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
cmp ebx, edi
jbe 0x41a394
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x41a394
push edi
push ebx
push 0
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x41a388
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x14]
push str.StringFileInfo040904E4_
push eax
call fcn.004040f8
add esp, 0xc
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp + 0x10]
call fcn.004043ce
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00401898
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41a388
push dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
call fcn.00401769
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 8]
push eax
call fcn.004043ce
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00401898
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.00401898
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.00401898
mov eax, dword [ebp + 8]
call fcn.004e2661
ret

Function at 0x41a8df
Capabilities:
Read file on windows

Disassembly:
push 0
mov eax, 0x4ff3c5
call fcn.004e2589
mov esi, ecx
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
jne 0x41a932
push 1
push 0x29
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push str.CCoreStreamFile::Read
call fcn.00401769
and dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push str.Stream_is_not_open_
call fcn.00401769
mov byte [ebp - 4], 1
mov eax, dword [esi]
push 1
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call dword [eax + 0x10]
xor eax, eax
jmp 0x41a98c
mov edi, dword [ebp + 0x10]
push 0
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41a985
push 1
push 0x2e
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push str.CCoreStreamFile::Read
call fcn.00401769
mov dword [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push str.ReadFile_failed_
call fcn.00401769
mov byte [ebp - 4], 3
mov eax, dword [esi]
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call dword [eax + 0x18]
jmp 0x41a92e
xor eax, eax
cmp dword [edi], eax
setne al
call fcn.004e2661
ret 0xc
Function at 0x41a994
Capabilities:
Write file on windows

Disassembly:
push 4
mov eax, 0x4ff38a
call fcn.004e2589
mov esi, ecx
mov eax, dword [esi + 0x24]
and dword [ebp - 0x10], 0
cmp eax, 0xffffffff
jne 0x41a9eb
push 1
push 0x42
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push str.CCoreStreamFile::Write
call fcn.00401769
and dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push str.Stream_is_not_open_
call fcn.00401769
mov byte [ebp - 4], 1
mov eax, dword [esi]
push 1
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call dword [eax + 0x10]
xor eax, eax
jmp 0x41aa4d
push 0
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41aa3e
push 1
push 0x47
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push str.CCoreStreamFile::Write
call fcn.00401769
mov dword [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push 0x522c28
call fcn.00401769
mov byte [ebp - 4], 3
mov eax, dword [esi]
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call dword [eax + 0x18]
jmp 0x41a9e7
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41aa4a
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
xor eax, eax
inc eax
call fcn.004e2661
ret 0xc

Function at 0x41b155
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
mov eax, dword [0x56d790]
xor eax, esp
mov dword [esp + 0x9c], eax
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.004de430
add esp, 0xc
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
cmp dword [esp + 0x10], 2
jne 0x41b1ed
cmp dword [esp + 4], 6
jne 0x41b1d2
cmp dword [esp + 8], 1
jne 0x41b1bc
call fcn.0041b29b
neg eax
sbb eax, eax
neg eax
add eax, 8
jmp 0x41b1ed
cmp dword [esp + 8], eax
jne 0x41b1ed
call fcn.0041b29b
neg eax
sbb eax, eax
neg eax
add eax, 6
jmp 0x41b1ed
cmp dword [esp + 4], 5
jne 0x41b1ed
cmp dword [esp + 8], 1
jne 0x41b1e4
push 5
jmp 0x41b1ec
cmp dword [esp + 8], eax
jne 0x41b1ed
push 4
pop eax
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.004dd215
mov esp, ebp
pop ebp
ret