joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40897c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4089bb
push edi
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_GetParent]
push esi
push str.CWINBUTTON
push dword [esi + 8]
mov dword [esi + 0xc], eax
call dword [sym.imp.USER32.dll_SetPropA]
test eax, eax
jne 0x4089c0
push str.SetProp_ERROR
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
pop edi
leave
ret
mov eax, dword [esi + 0xc]
test eax, eax
mov edi, dword [sym.imp.USER32.dll_GetWindowLongA]
push ebx
je 0x408a1a
push 0xfffffffffffffff0
push eax
call edi
test eax, 0xc00000
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
je 0x4089ea
push 4
call ebx
mov dword [esi + 0x2fc], eax
push 0xfffffffffffffff0
push dword [esi + 0xc]
call edi
test eax, 0x800000
je 0x408a02
push 5
call ebx
mov dword [esi + 0x300], eax
push 0xfffffffffffffff0
push dword [esi + 0xc]
call edi
test eax, 0x40000
je 0x408a1a
push 0x2d
call ebx
mov dword [esi + 0x304], eax
push 0xfffffffffffffff0
push dword [esi + 8]
call edi
mov edi, dword [sym.imp.USER32.dll_SetWindowLongA]
or eax, 0xb
push eax
push 0xfffffffffffffff0
push dword [esi + 8]
call edi
lea eax, [ebp - 0x10]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
push 5
push 5
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_CreateRoundRectRgn]
push 1
mov ebx, eax
push ebx
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowRgn]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x408e05
push 0xfffffffffffffffc
push dword [esi + 8]
call edi
mov dword [esi + 0x10], eax
xor eax, eax
inc eax
pop ebx
jmp 0x4089bd
Function at 0x4091d6
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x14
push ebp
xor ebp, ebp
cmp dword [esi + 0x50], ebp
jne 0x4091e8
xor eax, eax
jmp 0x409353
push ebx
push edi
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetDC]
mov edi, dword [sym.imp.GDI32.dll_SetBkMode]
mov ebx, eax
push 1
push ebx
mov dword [esp + 0x24], ebx
call edi
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esp + 0x20], eax
call edi
push ebp
push ebp
push ebp
push ebp
call dword [sym.imp.GDI32.dll_CreateRectRgn]
cmp eax, ebp
mov dword [esp + 0xc], eax
jne 0x409231
push str.CreateRectRgn_wndRgn_ERROR
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor ebx, ebx
cmp dword [esi + 0x5c], ebp
jle 0x40931e
jmp 0x409240
xor ebp, ebp
lea eax, [ebx + 1]
xor edi, edi
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x58]
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp edi, eax
jg 0x40927d
lea ebp, [esi + 0x4c]
push ebx
push edi
mov eax, ebp
call fcn.0040986d
cmp eax, 0xff00ff
jne 0x40927d
mov eax, dword [esi + 0x58]
cdq
and edx, 3
add eax, edx
inc edi
sar eax, 2
cmp edi, eax
jle 0x40925c
mov eax, dword [esi + 0x58]
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp edi, eax
mov dword [esp + 0x14], edi
jg 0x4092b5
lea ebp, [esi + 0x4c]
push ebx
push edi
mov eax, ebp
call fcn.0040986d
cmp eax, 0xff00ff
je 0x4092b5
mov eax, dword [esi + 0x58]
cdq
and edx, 3
add eax, edx
inc edi
sar eax, 2
cmp edi, eax
jle 0x409294
push dword [esp + 0x10]
push edi
push ebx
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov ebp, eax
test ebp, ebp
jne 0x4092d6
push str.CreateRectRgn_temp_ERROR
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 2
push ebp
push dword [esp + 0x14]
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_CombineRgn]
test eax, eax
jne 0x4092f6
push str.CombineRgn_ERROR
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi + 0x58]
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp edi, eax
jle 0x409249
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x5c]
jl 0x40923e
push 1
push dword [esp + 0x10]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowRgn]
push dword [esp + 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [esp + 0x1c]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ReleaseDC]
xor eax, eax
pop edi
inc eax
pop ebx
pop ebp
add esp, 0x14
ret
Function at 0x409895
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x411020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push 4
pop edx
cmp ecx, edx
jge 0x4098b8
mov dword [eax], edx
jmp 0x4098e9
push ecx
push 0
push esi
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 3
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.MSVCR80.dll_strncpy]
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aad0
leave
ret

Function at 0x4098f5
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x411020]
xor eax, ebp
mov dword [ebp + 0x194], eax
push ebx
push esi
mov esi, dword [sym.imp.MSVCR80.dll_sprintf]
push edi
lea eax, [ebp - 0x80]
push 0x40d6b8
push eax
mov edi, ecx
call esi
lea eax, [ebp - 0x7c]
push 0x40db64
push eax
call esi
push edi
lea eax, [ebp + 0x90]
push 0x40db68
push eax
call esi
mov ebx, dword [sym.imp.MSVCR80.dll_strchr]
lea esi, [ebp + 0x90]
mov dword [ebp - 0x78], 1
mov eax, esi
add esp, 0x1c
sub dword [ebp - 0x78], eax
movsx eax, byte [ebp - 0x80]
push eax
push esi
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x409977
movsx eax, byte [ebp - 0x7c]
push eax
push esi
call ebx
test eax, eax
pop ecx
pop ecx
je 0x4099b8
mov al, byte [esi]
cmp al, byte [ebp - 0x80]
je 0x409983
cmp al, byte [ebp - 0x7c]
jne 0x4099b5
mov ecx, dword [ebp - 0x78]
lea edi, [ecx + esi]
xor eax, eax
test edi, edi
jle 0x4099a5
push edi
lea eax, [ebp + 0x90]
push eax
lea eax, [ebp - 0x74]
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov eax, edi
mov byte [ebp + eax - 0x74], 0
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.MSVCR80.dll__mkdir]
pop ecx
inc esi
jmp 0x40995b
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0040aad0
add ebp, 0x198
leave
ret
Function at 0x4099d2
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x4b4]
sub esp, 0x534
mov eax, dword [0x411020]
xor eax, ebp
mov dword [ebp + 0x4b0], eax
push ebx
push esi
xor ebx, ebx
push ebx
mov esi, ecx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jge 0x409a17
xor al, al
mov ecx, dword [ebp + 0x4b0]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040aad0
add ebp, 0x4b4
leave
ret
cmp dword [ebp + 0x4bc], 1
push 0x10
pop eax
jne 0x409a26
push 2
pop eax
lea ecx, [ebp - 0x80]
push ecx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x409a4a
lea eax, [ebp + 0x198]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x409a54
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, bl
jmp 0x409a00
lea eax, [ebp + 0x198]
push eax
lea eax, [ebp + 0x3a8]
push eax
call sub.MSVCR80.dll_strcpy
lea eax, [ebp + 0x3a8]
push 0x40d6b8
push eax
call sub.MSVCR80.dll_strcat
lea eax, [ebp + 0x3a8]
push edi
push eax
call sub.MSVCR80.dll_strcat
add esp, 0x18
cmp byte [ebp + 0x4c0], bl
je 0x409a9f
lea ecx, [ebp + 0x3a8]
call fcn.004098f5
mov bl, 1
jmp 0x409a4a
lea eax, [ebp + 0x3a8]
push str..lnk
push eax
call sub.MSVCR80.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x78]
push eax
push 0x40d4bc
push 1
push ebx
push 0x40d4cc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x409a4a
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x50]
lea eax, [ebp + 0x2a0]
push esi
push eax
call sub.MSVCR80.dll_strcpy
lea eax, [ebp + 0x2a0]
push 0x5c
push eax
call dword [sym.imp.MSVCR80.dll_strrchr]
push 2
mov esi, eax
lea eax, [ebp - 0x74]
push ebx
push eax
call sub.MSVCR80.dll_memset
mov al, byte [ebp + 0x2a0]
mov byte [ebp - 0x74], al
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.MSVCR80.dll__strupr]
mov al, byte [ebp - 0x74]
mov byte [ebp + 0x2a0], al
add esp, 0x20
mov byte [esi], bl
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
lea edx, [ebp + 0x2a0]
push edx
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
lea edx, [ebp - 0x7c]
push edx
push 0x40d4dc
push eax
call dword [ecx]
test eax, eax
jl 0x409b90
push 0x104
lea eax, [ebp - 0x70]
push eax
push 0xffffffffffffffff
lea eax, [ebp + 0x3a8]
push eax
push 1
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x70]
push edx
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x409b90
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x409a9b
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x409a4a
Function at 0x409ba7
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x411020]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x409c78
cmp dword [ebp + 8], 1
push 0x10
pop eax
jne 0x409bd7
push 2
jmp 0x409bdf
cmp dword [ebp + 8], 2
jne 0x409be0
push 0x17
pop eax
lea ecx, [ebp - 0x21c]
push ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x409c72
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x409c72
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push eax
call sub.MSVCR80.dll_strcpy
lea eax, [ebp - 0x110]
push 0x40d6b8
push eax
call sub.MSVCR80.dll_strcat
lea eax, [ebp - 0x110]
push esi
push eax
call sub.MSVCR80.dll_strcat
add esp, 0x18
cmp byte [ebp + 0xc], 0
lea eax, [ebp - 0x110]
je 0x409c56
push eax
call fcn.00409e61
pop ecx
mov al, 1
jmp 0x409c7a
push str..lnk
push eax
call sub.MSVCR80.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x409c78
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aad0
leave
ret
Function at 0x409c86
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x411020]
xor eax, ebp
mov dword [ebp + 0x39c], eax
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3b4]
push esi
mov esi, dword [ebp + 0x3b0]
push edi
mov edi, dword [ebp + 0x3a8]
mov dword [ebp - 0x7c], ebx
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x6c], esi
je 0x409e49
cmp eax, ebx
je 0x409e49
cmp ecx, ebx
je 0x409e49
cmp edx, ebx
je 0x409e49
cmp esi, ebx
je 0x409e49
push 0x400
lea eax, [ebp - 0x64]
push ebx
mov esi, 0x80000002
push eax
mov dword [ebp - 0x68], esi
call sub.MSVCR80.dll_memset
push edi
mov edi, dword [sym.imp.MSVCR80.dll_sprintf]
lea eax, [ebp - 0x64]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
push eax
call edi
add esp, 0x18
lea eax, [ebp - 0x68]
push eax
push 0xf003f
push ebx
lea eax, [ebp - 0x64]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x409d49
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push dword [ebp - 0x80]
call sub.MSVCR80.dll_strlen
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop ecx
inc eax
push eax
push dword [ebp - 0x80]
push 2
push ebx
push str.DisplayName
push dword [ebp - 0x68]
call esi
push 4
lea eax, [ebp - 0x70]
push eax
push 4
push ebx
push str.NoModify
push dword [ebp - 0x68]
mov dword [ebp - 0x70], 1
call esi
push 4
lea eax, [ebp - 0x70]
push eax
push 4
push ebx
push str.NoRepair
push dword [ebp - 0x68]
call esi
cmp dword [ebp - 0x7c], ebx
lea eax, [ebp - 0x64]
jne 0x409daf
push dword [ebp - 0x6c]
push str.__s_
push eax
call edi
add esp, 0xc
jmp 0x409dc0
push dword [ebp - 0x7c]
push dword [ebp - 0x6c]
push str.__s____U:_s_
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x64]
push eax
call sub.MSVCR80.dll_strlen
pop ecx
inc eax
push eax
lea eax, [ebp - 0x64]
push eax
push 2
push ebx
push str.UninstallString
push dword [ebp - 0x68]
call esi
push dword [ebp - 0x74]
call sub.MSVCR80.dll_strlen
pop ecx
inc eax
push eax
push dword [ebp - 0x74]
push 2
push ebx
push str.Publisher
push dword [ebp - 0x68]
call esi
push dword [ebp - 0x78]
call sub.MSVCR80.dll_strlen
pop ecx
inc eax
push eax
push dword [ebp - 0x78]
push 2
push ebx
push str.Contact
push dword [ebp - 0x68]
call esi
push dword [ebp - 0x6c]
lea eax, [ebp - 0x64]
push str.__s_
push eax
call edi
lea eax, [ebp - 0x64]
push eax
call sub.MSVCR80.dll_strlen
add esp, 0x10
inc eax
push eax
lea eax, [ebp - 0x64]
push eax
push 2
push ebx
push str.DisplayIcon
push dword [ebp - 0x68]
call esi
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x39c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040aad0
add ebp, 0x3a0
leave
ret
Function at 0x409e61
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x290
mov eax, 0x40b5bc
call fcn.0040b441
mov esi, dword [ebp + 8]
test esi, esi
je 0x40a004
lea eax, [ebp - 0x118]
push esi
push eax
call sub.MSVCR80.dll_strcpy
lea eax, [ebp - 0x118]
push 0x40dc04
push eax
call sub.MSVCR80.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x27c], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
and dword [ebp - 4], 0
cmp dword [ebp - 0x27c], 0xffffffff
je 0x409fe0
push 0x40dc08
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x409fc5
push 0x40dc0c
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x409fc5
push esi
lea ecx, [ebp - 0x134]
call dword [0x40d198]
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x134]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
test byte [ebp - 0x278], 0x10
je 0x409fa9
push 0x40d6b8
lea ecx, [ebp - 0x134]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push 0x1e
lea eax, [ebp - 0x29c]
push 0
push eax
call sub.MSVCR80.dll_memset
and dword [ebp - 0x29c], 0
mov eax, dword [ebp - 0x130]
add esp, 0xc
cmp dword [ebp - 0x11c], 0x10
mov dword [ebp - 0x298], 3
mov word [ebp - 0x28c], 0x44
jb 0x409f85
mov dword [ebp - 0x294], eax
jmp 0x409f91
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x294], ecx
cmp dword [ebp - 0x11c], 0x10
jae 0x409fa0
lea eax, [ebp - 0x130]
push eax
call fcn.00409e61
pop ecx
jmp 0x409fc5
cmp dword [ebp - 0x11c], 0x10
mov eax, dword [ebp - 0x130]
jae 0x409fbe
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x278]
push eax
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x409ed3
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.MSVCR80.dll__rmdir]
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x134]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
call fcn.0040b48b
ret
Function at 0x40a00a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40a07f
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x40a07f
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push ebx
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push dword [ebp - 4]
push dword [ebp + 0xc]
call fcn.0040a124
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40a8c2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x411020]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040a857
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40a911
cmp dword [ebp - 0x1c], 5
jb 0x40a929
jmp 0x40a925
cmp dword [ebp - 0x10], 1
jne 0x40a929
cmp dword [ebp - 0x1c], 4
ja 0x40a925
jne 0x40a929
cmp dword [ebp - 0x18], 0
jbe 0x40a929
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x40d49c
call fcn.0040a748
test eax, eax
jge 0x40a94a
mov byte [0x4151e0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040aad0
add ebp, 0x78
leave
ret

Function at 0x40aad0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411020]
jne 0x40aada
repz ret
jmp fcn.0040b0c8

Function at 0x408957
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 0x4085d8
call fcn.00408975
add esi, esi
sub ebx, ebx
xor dword [ecx], eax
dec esi
inc ecx
cmp ecx, edx
jne fcn.00408957
sub esp, 4
mov dword [esp], ebx
pop ebx
ret
Function at 0x401d60
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc69d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x50a124]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x1e
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push str.Apowersoft_iPhone_Recorder.exe
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], 0
movups xmmword [ebp - 0x24], xmm0
call fcn.004042d0
push 0
push 2
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x22c
mov edi, eax
call fcn.0047f342
add esp, 4
mov esi, eax
push esi
push edi
mov dword [esi], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x401e22
lea eax, [esi + 0x24]
nop word [eax + eax]
push eax
lea ecx, [ebp - 0x24]
call fcn.004044e0
test al, al
je 0x401e13
push dword [esi + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
lea eax, [esi + 0x24]
jne 0x401df0
push 0x22c
push esi
call fcn.0047f372
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
cmp ecx, 8
jb 0x401e6d
mov edx, dword [ebp - 0x24]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401e63
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401e7e
push ecx
push edx
call fcn.0047f372
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0048ea48
int3
Function at 0x40e8b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd640
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x50a124]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 8
mov dword [ebx], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0047f342
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0046055c
add esp, 8
mov dword [esi + 4], eax
mov ecx, ebx
mov dword [ebx + 0x34], esi
call fcn.00410060
mov eax, ebx
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
lea esi, [eax + 8]
lea ebx, [eax + 4]
mov dword [eax + 0x2c], edx
mov dword [eax + 0xc], ebx
lea edi, [eax + 0x14]
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [eax + 0x48], 0
mov byte [eax + 0x3d], 0
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x4c], 0
mov eax, dword [0x797ae8]
mov ecx, dword [0x797aec]
mov dword [edx + 0x40], eax
mov eax, edx
mov dword [edx + 0x44], ecx
mov dword [edx + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret