joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408c50
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4ef6d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, ecx
push 0
push eax
call fcn.0046b3e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x4b5edc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x20019
xor ebx, ebx
lea ecx, [ebp - 0x224]
push 0x4b6008
push SysReAllocString
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
call fcn.00408a30
mov esi, dword [ebp - 0x224]
test eax, eax
jne 0x408d31
lea eax, [ebp - 0x214]
mov dword [ebp - 0x210], ebx
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], 4
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push 0x4b6030
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408d31
cmp dword [ebp - 0x218], 4
jne 0x408d31
cmp dword [ebp - 0x210], ebx
setne bl
test esi, esi
je 0x408d3c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x20c]
mov dword [edi], ebx
push eax
push 0
push 0x4b5fcc
push 0x4b5ff8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0043d1d8
mov esp, ebp
pop ebp
ret

Function at 0x4091d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x409229
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x409229
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40921a
cmp esi, edx
jae 0x409229
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x409208
cmp esi, edx
jae 0x409229
cmp word [esi], 0
je 0x409229
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40dee0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, ecx
cmp dword [eax + 0x14], 8
jb 0x40def2
mov eax, dword [eax]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov dword [ebp + 8], edi
test edi, edi
je 0x40df62
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40df25
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
push ebx
lea ebx, [esi + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x40df4e
mov dword [eax], edi
add dword [esi + 4], 4
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
lea ecx, [ebp + 8]
push ecx
push eax
mov ecx, esi
call fcn.0040db80
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x40df70
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa348
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4ef6d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [ebp + 8]
test edx, edx
je 0x40e0fa
mov ecx, edx
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dfc1
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.0040a8b0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x40]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], edi
test edi, edi
je 0x40e051
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40e024
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x44], 1
jmp 0x40e051
lea ebx, [esi + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x40e03e
mov dword [eax], edi
add dword [esi + 4], 4
jmp 0x40e04a
lea ecx, [ebp - 0x48]
push ecx
push eax
mov ecx, esi
call fcn.0040db80
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.00406ea0
cmp dword [ebp - 0x44], 0
je 0x40e0fa
push 0
push dword [0x4ef134]
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
mov esi, eax
test esi, esi
je 0x40e0f6
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [ebp - 0x18], 0
mov ecx, edx
mov dword [ebp - 0x14], 7
xor eax, eax
mov word [ebp - 0x28], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e0a3
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0040a8b0
mov eax, dword [0x4ef138]
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x18]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0x4a
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x28]
call fcn.00406ea0
xor eax, eax
jmp 0x40e0ff
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043d1d8
mov esp, ebp
pop ebp
ret 4
Function at 0x40eec0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1858
call fcn.0043d230
mov eax, dword [0x4ef6d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x804]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push 0x800
push 0
push eax
call fcn.0046b3e0
add esp, 0xc
lea eax, [ebp - 0x804]
cmp dword [ebp + 0x24], 0
je 0x40ef2a
push 0x400
push eax
push esi
push ebx
call fcn.0040ec40
add esp, 0x10
test eax, eax
jne 0x40ef39
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d1d8
mov esp, ebp
pop ebp
ret
push esi
push 0x400
push eax
call fcn.004796fe
add esp, 0xc
cmp dword [ebp + 0x20], 0
je 0x40ef63
lea eax, [ebp - 0x804]
push eax
call fcn.00441190
add esp, 4
test eax, eax
jne 0x40ef63
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d1d8
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [ebp - 0x1858], 0x44
lea eax, [ebp - 0x1858]
movlpd qword [ebp - 0x1854], xmm0
push eax
movlpd qword [ebp - 0x184c], xmm0
movlpd qword [ebp - 0x1844], xmm0
movlpd qword [ebp - 0x183c], xmm0
movlpd qword [ebp - 0x1834], xmm0
movlpd qword [ebp - 0x182c], xmm0
movlpd qword [ebp - 0x1824], xmm0
movlpd qword [ebp - 0x181c], xmm0
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov ax, word [ebp + 0x14]
xorps xmm0, xmm0
push 0x1000
mov word [ebp - 0x1828], ax
lea eax, [ebp - 0x1804]
push 0
push eax
mov dword [ebp - 0x182c], 1
movups xmmword [ebp - 0x1814], xmm0
call fcn.0046b3e0
add esp, 0xc
lea eax, [ebp - 0x804]
test edi, edi
je 0x40f014
push edi
push eax
lea eax, [ebp - 0x1804]
push 0x4b97e4
push eax
call fcn.0040ec10
add esp, 0x10
jmp 0x40f029
push eax
lea eax, [ebp - 0x1804]
push str.__s_
push eax
call fcn.0040ec10
add esp, 0xc
lea eax, [ebp - 0x1814]
push eax
lea eax, [ebp - 0x1858]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x40f097
cmp dword [ebp + 0x18], 0
je 0x40f06d
push dword [ebp + 0x1c]
push dword [ebp - 0x1814]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x40f081
push eax
push dword [ebp - 0x1814]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1810]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1814]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043d1d8
mov esp, ebp
pop ebp
ret
Function at 0x40f0b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x840
mov eax, dword [0x4ef6d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x40f10f
cmp word [esi], 0
je 0x40f10f
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.0046b3e0
add esp, 0xc
lea eax, [ebp - 0x804]
cmp dword [ebp + 0x1c], 0
je 0x40f122
push 0x400
push eax
push esi
push edi
call fcn.0040ec40
add esp, 0x10
test eax, eax
jne 0x40f131
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d1d8
mov esp, ebp
pop ebp
ret
push esi
push 0x400
push eax
call fcn.004796fe
add esp, 0xc
cmp dword [ebp + 0x18], 0
je 0x40f14a
lea eax, [ebp - 0x804]
push eax
call fcn.00441190
add esp, 4
test eax, eax
je 0x40f10f
lea eax, [ebp - 0x804]
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x830], eax
xorps xmm0, xmm0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x824], eax
lea eax, [ebp - 0x840]
push eax
movlpd qword [ebp - 0x838], xmm0
movlpd qword [ebp - 0x820], xmm0
movlpd qword [ebp - 0x818], xmm0
movlpd qword [ebp - 0x810], xmm0
mov dword [ebp - 0x808], 0
mov dword [ebp - 0x840], 0x3c
mov dword [ebp - 0x82c], ebx
mov dword [ebp - 0x83c], 0x400
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test esi, esi
je 0x40f1cf
push dword [ebp - 0x808]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043d1d8
mov esp, ebp
pop ebp
ret
Function at 0x4122d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aaa26
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4ef6d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x41237c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x41237c
call fcn.0040eb50
mov esi, eax
jmp 0x41246c
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x41239f
call fcn.0040eb50
jmp 0x41245f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x4123bd
call fcn.0040eb50
jmp 0x41245f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4123de
mov esi, 0x8007000e
jmp 0x412461
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004103a0
jmp 0x412408
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x41241f
mov esi, 0x8007000e
jmp 0x412461
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x41243f
call fcn.0040eb50
jmp 0x41245f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00412130
mov esi, eax
test edi, edi
je 0x41246c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x412490
lea ecx, [ebp - 0x418]
call fcn.00410a30
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043d1d8
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4137c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x413831
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x413831
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x413831
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x413831
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x41382b
push esi
push ebx
push edi
call fcn.0046a8e0
add esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x41382b
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414c60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aabd8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4ef6d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
test edi, edi
je 0x414c98
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
push 0x38
mov dword [ebp - 4], 0
mov ecx, dword [eax + 4]
mov ebx, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp + 8], ecx
mov dword [ebp - 0x10], eax
call fcn.0043cef2
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x414cf4
mov ecx, dword [ebp + 8]
lea eax, [esi + 0x10]
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi], vtable.std::_Ref_count_obj_class_std::function_void____cdecl___void___.0
mov dword [eax], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__V___Binder_U_Unforced_std__P8MainWnd__AEXXZPAV3__2___V_std__X__V_std__.0
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 8], ebx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x24], eax
jmp 0x414cf6
xor esi, esi
lea eax, [esi + 0x10]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], eax
test esi, esi
je 0x414d07
lock inc dword [esi + 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esi
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x28]
inc eax
mov byte [ebp - 4], 2
cmp ecx, eax
ja 0x414d29
push 1
lea ecx, [edi + 0x20]
call fcn.0041ada0
mov ecx, dword [edi + 0x28]
lea eax, [ecx - 1]
and dword [edi + 0x2c], eax
mov ecx, dword [edi + 0x30]
add ecx, dword [edi + 0x2c]
mov eax, dword [edi + 0x28]
dec eax
and ecx, eax
lea eax, [ecx*4]
mov ecx, dword [edi + 0x24]
mov dword [ebp + 8], eax
cmp dword [ecx + eax], 0
jne 0x414d66
push 0x28
call fcn.0043cef2
mov ecx, dword [edi + 0x24]
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
mov eax, edx
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx + eax]
lea ecx, [esi + 0x10]
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_22f164d21d9f1a384bc6dd1666fb931e___void___.0
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0x24], eax
inc dword [edi + 0x30]
cmp dword [edi + 0x18], 0
jne 0x414da5
lea eax, [edi + 0x1c]
push eax
push 0
push edi
push 0x418ee0
push 0
push 0
call fcn.004794f6
add esp, 0x18
mov dword [edi + 0x18], eax
mov byte [ebp + 0xb], 1
jmp 0x414da9
mov byte [ebp + 0xb], 0
test esi, esi
je 0x414dce
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x414dce
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x414dce
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x414fd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aac58
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4ef6d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
test edi, edi
je 0x415008
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
push 0x38
mov dword [ebp - 4], 0
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 8], eax
call fcn.0043cef2
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
test esi, esi
je 0x415058
mov ecx, dword [ebp + 8]
lea eax, [esi + 0x10]
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi], vtable.std::_Ref_count_obj_class_std::function_void____cdecl___void___.0
mov dword [eax], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__V___Binder_U_Unforced_std__P8SuperAppInstaller_super_app__AEXXZPAV34__2___V_std__X__V_std__.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0x24], eax
jmp 0x41505a
xor esi, esi
lea eax, [esi + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
test esi, esi
je 0x41506b
lock inc dword [esi + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x28]
inc eax
mov byte [ebp - 4], 2
cmp ecx, eax
ja 0x41508d
push 1
lea ecx, [edi + 0x20]
call fcn.0041ada0
mov ecx, dword [edi + 0x28]
lea eax, [ecx - 1]
and dword [edi + 0x2c], eax
mov ecx, dword [edi + 0x30]
add ecx, dword [edi + 0x2c]
mov eax, dword [edi + 0x28]
dec eax
and ecx, eax
lea eax, [ecx*4]
mov ecx, dword [edi + 0x24]
mov dword [ebp + 8], eax
cmp dword [ecx + eax], 0
jne 0x4150ca
push 0x28
call fcn.0043cef2
mov ecx, dword [edi + 0x24]
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
mov eax, edx
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx + eax]
lea ecx, [esi + 0x10]
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_9f31e710b59360e8f1c33f7f86b4aa6b___void___.0
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0x24], eax
inc dword [edi + 0x30]
cmp dword [edi + 0x18], 0
jne 0x415109
lea eax, [edi + 0x1c]
push eax
push 0
push edi
push 0x418ee0
push 0
push 0
call fcn.004794f6
add esp, 0x18
mov dword [edi + 0x18], eax
mov byte [ebp + 0xb], 1
jmp 0x41510d
mov byte [ebp + 0xb], 0
test esi, esi
je 0x415132
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x415132
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x415132
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4153b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aacf2
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4ef6d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [edi + 4], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], eax
lea ecx, [edi + 0x28]
mov dword [ebp - 4], 0
mov dword [edi], vtable.MainWnd.0
call fcn.00428750
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 1
call fcn.00420da0
lea esi, [edi + 0x90]
mov dword [edi + 0x84], 0
push esi
mov dword [edi + 0x88], 0
mov dword [edi + 0x8c], 0
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
add esi, 0x20
push 8
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.0043cef2
mov dword [esi], eax
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
mov dword [edi + 0xc4], vtable.GuidedPopUp.0
mov dword [edi + 0xc8], 0
mov dword [edi + 0xcc], 0
mov dword [edi + 0xd0], 0
mov dword [edi + 0xd4], 1
mov word [edi + 0xd8], 0
lea ecx, [edi + 0xdc]
mov byte [ebp - 4], 5
call fcn.0042abc0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x418bc0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab47b
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x4ef6d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], 0
call fcn.00415fe0
test al, al
mov edx, 0x20106
lea eax, [ebp - 0x44]
mov ecx, 0x20006
push eax
cmovne ecx, edx
push ecx
push 0
push dword [0x4ef55c]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x418d48
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 8], eax
jne 0x418c5b
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
push dword [0x4ef560]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov edi, eax
test edi, edi
jne 0x418c6c
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x418c6c
push ecx
call esi
jmp 0x418c6c
push dword [0x4ef560]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
push dword [ebp - 0x44]
call esi
push 0
push 0xa220
push 0x111
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.0043a380
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x418d48
push 0x54
push 0x4bdf98
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
call fcn.0040a7c0
push 3
push 0x4bdff0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040a7c0
push 0x143
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xe0]
call fcn.00406590
mov esi, eax
push 0x4bdff4
push esi
mov byte [ebp - 4], 2
call fcn.004056a0
add esp, 8
mov ecx, esi
push edi
call fcn.00415a70
call fcn.0043a380
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0xe0]
call fcn.00407560
lea ecx, [ebp - 0x28]
call fcn.00406e50
lea ecx, [ebp - 0x40]
call fcn.00406e50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043d1d8
mov esp, ebp
pop ebp
ret 4