joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ff3b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5aff20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x28], ebx
mov eax, 0x5868e8
cmp dword [ebp + 8], ebx
jne 0x40ff62
mov eax, 0x5851d4
push eax
lea esi, [ebp - 0x20]
call fcn.0040829d
lea eax, [ebp - 0x24]
push eax
push 0xf003f
push ebx
push str.SOFTWARELenovoMagicPlus
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
inc esi
test eax, eax
jne 0x40ffc2
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x40ff9b
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
add ecx, ecx
push ecx
push eax
push esi
push ebx
push str.SetupIsUpgrade
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40ffb9
mov dword [ebp - 0x28], esi
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
xor edi, edi
lea esi, [ebp - 0x20]
call fcn.00409659
cmp dword [ebp - 0x28], ebx
mov ecx, dword [ebp - 4]
pop edi
setne al
pop esi
xor ecx, ebp
pop ebx
call fcn.005220b2
leave
ret 4
Function at 0x40ffe4
Capabilities:
Print debug messages

Disassembly:
push 0x48
mov eax, 0x555883
call fcn.00527be2
push str.begin_InstallSuccessProc
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
call fcn.004033a7
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.0040e95d
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x410035
lea ecx, [eax - 1]
lea eax, [ebp - 0x2c]
call fcn.0041a1ec
cmp word [eax], 0x5c
je 0x410035
push 0x585004
lea eax, [ebp - 0x2c]
push eax
call fcn.004082e5
lea eax, [ebp - 0x48]
push 0x585148
push eax
lea ebx, [ebp - 0x2c]
call fcn.0040ae0a
xor edi, edi
push edi
mov byte [ebp - 4], 1
call fcn.00401edb
add esp, 0xc
call fcn.0040c588
test eax, eax
je 0x4100a5
push 1
push edi
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x54], esp
push 0x585d54
call fcn.0040829d
sub esp, 0x1c
mov byte [ebp - 4], 2
lea eax, [ebp - 0x48]
mov esi, esp
mov dword [ebp - 0x50], esp
push eax
call fcn.00408277
sub esp, 0x1c
mov byte [ebp - 4], 3
mov eax, ebx
mov esi, esp
mov dword [ebp - 0x4c], esp
push eax
call fcn.00408277
mov byte [ebp - 4], 4
jmp 0x41016a
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x4c], esp
mov ebx, str.refinstallerstart
push ebx
call fcn.0040829d
sub esp, 0x1c
mov byte [ebp - 4], 5
lea eax, [ebp - 0x48]
mov esi, esp
mov dword [ebp - 0x50], esp
push eax
call fcn.00408277
sub esp, 0x1c
mov byte [ebp - 4], 6
lea eax, [ebp - 0x2c]
mov esi, esp
mov dword [ebp - 0x54], esp
push eax
call fcn.00408277
mov byte [ebp - 4], 7
cmp dword [0x5b967c], edi
jne 0x410111
push 1
call fcn.00423341
pop ecx
mov ecx, eax
cmp ecx, edi
je 0x41010b
xor eax, eax
mov edi, ecx
stosb byte es:[edi], al
mov dword [0x5b967c], ecx
xor edi, edi
jmp 0x410111
mov dword [0x5b967c], edi
mov byte [ebp - 4], 1
call fcn.0040c822
test al, al
je 0x41012b
push 0x5869bc
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x41019c
push 1
push edi
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x4c], esp
push ebx
call fcn.0040829d
sub esp, 0x1c
mov byte [ebp - 4], 8
lea eax, [ebp - 0x48]
mov esi, esp
mov dword [ebp - 0x50], esp
push eax
call fcn.00408277
sub esp, 0x1c
mov byte [ebp - 4], 9
lea eax, [ebp - 0x2c]
mov esi, esp
mov dword [ebp - 0x54], esp
push eax
call fcn.00408277
mov byte [ebp - 4], 0xa
cmp dword [0x5b967c], edi
jne 0x410193
push 1
call fcn.00423341
pop ecx
mov ecx, eax
cmp ecx, edi
je 0x41018d
xor eax, eax
mov edi, ecx
stosb byte es:[edi], al
mov dword [0x5b967c], ecx
jmp 0x410193
mov dword [0x5b967c], edi
mov byte [ebp - 4], 1
call fcn.0040cb9a
push str.end_InstallSuccessProc
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 1
xor edi, edi
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.00409659
or dword [ebp - 4], 0xffffffff
push 1
lea esi, [ebp - 0x2c]
call fcn.00409659
call fcn.00527c65
ret
Function at 0x410a0c
Capabilities:
Set registry value

Disassembly:
push 0xb4
mov eax, 0x554ba7
call fcn.00527be2
xor ebx, ebx
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
lea esi, [ebp - 0x2c]
mov dword [ebp - 0xbc], ebx
call fcn.0040829d
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x410a3e
mov eax, esi
lea ecx, [ebp - 0xbc]
push ecx
push 0xf003f
push ebx
push eax
mov esi, SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x410a93
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x410a68
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0xbc]
push ecx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x410a93
or dword [ebp - 4], 0xffffffff
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.00409659
mov al, bl
call fcn.00527c65
ret
push ebx
call fcn.00401edb
pop ecx
lea ecx, [ebp - 0xb8]
call fcn.004020c9
lea eax, [ebp - 0x9c]
push str.MagicPlusMagicPlus_SetUp_Upgrade.exe
push eax
lea ebx, [ebp - 0xb8]
mov byte [ebp - 4], 1
call fcn.0040ae0a
push 0
mov byte [ebp - 4], 2
call fcn.004033a7
add esp, 0xc
lea ecx, [ebp - 0x48]
call fcn.0040e95d
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x410b00
lea ecx, [eax - 1]
lea eax, [ebp - 0x48]
call fcn.0041a1ec
cmp word [eax], 0x5c
je 0x410b00
push 0x585004
lea eax, [ebp - 0x48]
push eax
call fcn.004082e5
lea eax, [ebp - 0x80]
push str.MagicPlus_Cleanup.exe
push eax
lea ebx, [ebp - 0x48]
call fcn.0040ae0a
lea eax, [ebp - 0x64]
push str.MagicPlus_Uninstall.exe
push eax
mov byte [ebp - 4], 4
call fcn.0040ae0a
mov eax, dword [ebp - 0x9c]
add esp, 0x10
cmp dword [ebp - 0x88], 8
mov dword [ebp - 0xc0], 0x21
jae 0x410b45
lea eax, [ebp - 0x9c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
pop ebx
push ebx
lea ecx, [ebp - 0xc0]
push ecx
push ebx
xor edi, edi
push edi
push eax
push dword [ebp - 0xbc]
call esi
cmp dword [ebp - 0x6c], 8
mov eax, dword [ebp - 0x80]
jae 0x410b6f
lea eax, [ebp - 0x80]
push ebx
lea ecx, [ebp - 0xc0]
push ecx
push ebx
push edi
push eax
push dword [ebp - 0xbc]
call esi
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
jae 0x410b8e
lea eax, [ebp - 0x64]
push ebx
lea ecx, [ebp - 0xc0]
push ecx
push ebx
push edi
push eax
push dword [ebp - 0xbc]
call esi
push dword [ebp - 0xbc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
inc ebx
push ebx
xor edi, edi
lea esi, [ebp - 0x64]
call fcn.00409659
push ebx
lea esi, [ebp - 0x80]
mov byte [ebp - 4], 3
call fcn.00409659
push ebx
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00409659
push ebx
lea esi, [ebp - 0x9c]
mov byte [ebp - 4], bl
call fcn.00409659
push ebx
lea esi, [ebp - 0xb8]
mov byte [ebp - 4], 0
call fcn.00409659
jmp 0x410a7b
Function at 0x410c47
Capabilities:
Delete file

Disassembly:
push 0x80
mov eax, 0x554b51
call fcn.00527be2
xor ebx, ebx
push ebx
call fcn.00401edb
pop ecx
lea ecx, [ebp - 0x48]
call fcn.004020c9
lea eax, [ebp - 0x48]
push eax
lea esi, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00408277
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jbe 0x410c9e
lea ecx, [eax - 1]
mov eax, esi
call fcn.0041a1ec
cmp word [eax], 0x5c
je 0x410c9e
push 0x585004
mov eax, esi
push eax
call fcn.004082e5
push str.MPNamespaceExt.dll
lea eax, [ebp - 0x2c]
push eax
call fcn.004082e5
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x410cb8
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.00522f0f
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x410db2
lea eax, [ebp - 0x80]
push str._u__s__
push eax
lea edi, [ebp - 0x2c]
call fcn.0040ae78
push 0x5850ec
push eax
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.0040adbd
add esp, 0x10
push 1
xor edi, edi
lea esi, [ebp - 0x80]
mov byte [ebp - 4], 4
call fcn.00409659
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
push ebx
push ebx
jae 0x410d0e
lea eax, [ebp - 0x64]
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x88], esp
push eax
call fcn.0040829d
sub esp, 0x1c
mov byte [ebp - 4], 5
mov esi, esp
mov dword [ebp - 0x8c], esp
push str.regsvr32.exe
call fcn.0040829d
mov byte [ebp - 4], 6
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x410d48
lea eax, [ebp - 0x48]
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x84], esp
push eax
call fcn.0040829d
mov byte [ebp - 4], 7
cmp dword [0x5b967c], ebx
jne 0x410d86
push 1
call fcn.00423341
pop ecx
mov ecx, eax
cmp ecx, ebx
je 0x410d80
xor eax, eax
mov edi, ecx
stosb byte es:[edi], al
mov dword [0x5b967c], ecx
jmp 0x410d86
mov dword [0x5b967c], ebx
mov byte [ebp - 4], 4
call fcn.0040cb9a
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x410d9b
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
xor edi, edi
lea esi, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00409659
call fcn.00411604
cmp eax, ebx
je 0x410dd3
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x84], esp
call fcn.00410c2d
xor ecx, ecx
inc ecx
call fcn.004113e2
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x84], esp
call fcn.00410c2d
xor ecx, ecx
call fcn.004113e2
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00409659
or dword [ebp - 4], 0xffffffff
push 1
lea esi, [ebp - 0x48]
call fcn.00409659
call fcn.00527c65
ret
Function at 0x41163d
Capabilities:
Delete registry key
Set registry value

Disassembly:
push 0x28
mov eax, 0x5549af
call fcn.00527be2
push str..apk
call fcn.0041172e
mov edi, 0x586434
test al, al
je 0x411663
mov ecx, edi
call fcn.00411936
push 0x5872fc
call fcn.0041172e
test al, al
je 0x41167b
mov ecx, str..lca
call fcn.00411936
push 0x587310
lea esi, [ebp - 0x2c]
call fcn.0040829d
push edi
lea eax, [ebp - 0x2c]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.004082e5
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], esi
jae 0x4116a9
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x30]
push ecx
push eax
mov edi, SysReAllocString
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, esi
je 0x4116e3
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4116ca
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push esi
push 0x20006
push esi
push esi
push esi
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push esi
push esi
push 1
push esi
push 0x58738c
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x586420
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push esi
push esi
push 0x3000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
or dword [ebp - 4], 0xffffffff
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.00409659
call fcn.00527c65
ret
Function at 0x41172e
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28c
mov eax, 0x5537a1
call fcn.00527be2
mov eax, dword [ebp + 8]
push 0xf
pop esi
xor ebx, ebx
mov edi, str.lenovoApk
push edi
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x294], 0x104
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x240], ebx
mov byte [ebp - 0x250], bl
call fcn.004092a6
lea eax, [ebp - 0x290]
push eax
push dword [ebp - 0x298]
mov dword [ebp - 4], ebx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4117b3
push ebx
push 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.0040933f
xor al, al
call fcn.00527c65
ret 4
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.005268be
pop ecx
pop ecx
test eax, eax
jne 0x411797
push 0x3c
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], ebx
mov byte [ebp - 0x234], bl
call fcn.00409b42
push dword [ebp - 0x298]
lea eax, [ebp - 0x288]
push eax
lea edi, [ebp - 0x234]
mov byte [ebp - 4], 1
call fcn.0041ab27
push 0x5873dc
push eax
lea eax, [ebp - 0x26c]
push eax
mov byte [ebp - 4], 2
call fcn.0041aab9
add esp, 0x14
mov esi, eax
mov byte [ebp - 4], 3
call fcn.0040916c
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 2
call fcn.0040933f
push ebx
push esi
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 1
call fcn.0040933f
cmp dword [ebp - 0x220], 0x10
mov eax, dword [ebp - 0x234]
jae 0x411889
mov eax, edi
lea ecx, [ebp - 0x290]
push ecx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4118b7
push ebx
push esi
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], bl
call fcn.0040933f
push ebx
push esi
jmp 0x41179a
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
push ebx
push str.Progid
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x114]
push str.lenovoApk
push eax
call fcn.005268be
pop ecx
pop ecx
test eax, eax
je 0x41192d
mov byte [ebp - 0x289], bl
push ebx
push esi
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], bl
call fcn.0040933f
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp - 0x250]
call fcn.0040933f
mov al, byte [ebp - 0x289]
jmp 0x4117ab
mov byte [ebp - 0x289], 1
jmp 0x411901
Function at 0x411936
Capabilities:
Delete registry key
Set registry value

Disassembly:
push 0x34
mov eax, 0x554982
call fcn.00527c18
lea eax, [ebp - 0x3c]
push eax
mov edi, ecx
push edi
xor ebx, ebx
push SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push ebx
mov eax, 0x585d54
push eax
push 1
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x587310
lea esi, [ebp - 0x30]
call fcn.0040829d
push edi
mov eax, esi
push eax
mov byte [ebp - 4], 1
call fcn.004082e5
push str.UserChoice
mov eax, esi
push eax
call fcn.004082e5
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
jae 0x4119ad
mov eax, esi
push eax
mov esi, SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x4119c6
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x34]
push ecx
push ebx
push 0x20006
push ebx
push ebx
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x411a08
cmp dword [ebp - 0x34], ebx
je 0x411a08
push ebx
push ebx
push 1
push ebx
push 0x58738c
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x411a08
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebx
push 0x3000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push 1
xor edi, edi
lea esi, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.00409659
call fcn.00527c74
ret
Function at 0x414433
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xa8
mov eax, 0x5548f4
call fcn.00527be2
mov edi, ecx
mov ebx, edx
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xa0], 0x1e
mov eax, dword [edi + 0x1c]
and dword [ebp - 0xa4], 0
mov esi, dword [eax]
mov dword [ebp - 0xac], esi
test ebx, ebx
je 0x414477
mov eax, dword [edi + 0x20]
mov dword [ebx], eax
cmp esi, dword [edi + 0x1c]
je 0x4145b8
add edi, 0x38
mov dword [ebp - 0xb4], edi
mov ebx, dword [ebp - 0xb4]
lea eax, [ebp - 0x64]
push 0x585004
push eax
call fcn.0040ae0a
and dword [ebp - 4], 0
add esi, 0xec
lea ecx, [ebp - 0x2c]
push esi
push ecx
mov ecx, eax
call fcn.0040ade1
add esp, 0x10
xor ebx, ebx
inc ebx
push ebx
xor edi, edi
lea esi, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.00409659
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4144d4
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x414581
inc dword [ebp - 0xa4]
cmp dword [ebp - 0xa0], ebx
jne 0x414581
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x414502
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x80]
call fcn.004021b9
push eax
lea eax, [ebp - 0x48]
push str.extrac_file:
push eax
mov byte [ebp - 4], 3
call fcn.0041aaf0
push str._failed...
push eax
lea eax, [ebp - 0x9c]
push eax
mov byte [ebp - 4], 4
call fcn.0041aab9
add esp, 0x18
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
jb 0x414543
mov eax, dword [eax]
push eax
xor esi, esi
push esi
call fcn.004024ac
pop ecx
mov ecx, eax
call fcn.0040252f
push esi
push ebx
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 4
call fcn.0040933f
push esi
push ebx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.0040933f
push esi
push ebx
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.0040933f
or dword [ebp - 4], 0xffffffff
push ebx
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.00409659
lea eax, [ebp - 0xac]
call fcn.00409f07
mov esi, dword [ebp - 0xac]
mov eax, dword [ebp - 0xa8]
cmp esi, dword [eax + 0x1c]
jne 0x414489
mov ebx, dword [ebp - 0xb0]
mov edi, eax
mov eax, dword [ebp - 0xa4]
dec dword [ebp - 0xa0]
cmp eax, 0xa
jg 0x4145ce
cmp eax, dword [edi + 0x20]
jb 0x4145e3
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0xa0], 0
jg 0x41445c
mov eax, dword [ebp - 0xa4]
call fcn.00527c65
ret
Function at 0x418dd7
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xc4], ebx
jne 0x418e7a
push edi
push ebx
push ebx
push 0x411fe0
call fcn.00526a02
add esp, 0xc
push str.reaper_dll_exit_begin
push ebx
call fcn.004024ac
pop ecx
mov ecx, eax
call fcn.0040252f
call fcn.0041d142
cmp byte [eax + 4], bl
je 0x418e35
cmp dword [0x5b9560], ebx
je 0x418e35
xor edi, edi
inc edi
push edi
push edi
push edi
push edi
call dword [0x5b955c]
add esp, 0x10
call dword [0x5b9560]
jmp 0x418e38
xor edi, edi
inc edi
push str.reaper_dll_exit_end
push ebx
call fcn.004024ac
pop ecx
mov ecx, eax
call fcn.0040252f
cmp dword [0x5b96a4], ebx
jne 0x418e79
push ebx
push dword [esi + 0x20]
mov dword [0x5b96a4], edi
mov edi, dword [sym.imp.USER32.dll_KillTimer]
mov dword [esi + 0xbc], ebx
call edi
push 1
push dword [esi + 0x20]
call edi
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
Function at 0x41a185
Capabilities:
Create thread

Disassembly:
push ecx
push 0
push 0x411fa8
call fcn.00526a02
add esp, 0xc
xor eax, eax
ret 8

Function at 0x41c609
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x38
mov eax, 0x552fc8
call fcn.00527b79
call fcn.0042ead1
mov esi, dword [eax + 8]
push 0x589aa4
push 0x90
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push 0x400
lea ecx, [ebp - 0x44]
mov edi, eax
call fcn.00435311
xor esi, esi
push esi
push ebx
push edi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], esi
call fcn.004353a2
lea eax, [ebp - 0x44]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push 2
push 0x449
push dword [eax + 0x20]
mov dword [ebp - 0x10], 0x41c6a0
mov dword [ebp - 0x14], esi
call dword [sym.imp.USER32.dll_SendMessageW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.00435707
mov eax, esi
call fcn.00527c51
ret 4
Function at 0x41d159
Capabilities:
Get common file path

Disassembly:
push 0x8d8
mov eax, 0x5548a1
call fcn.00527be2
mov eax, dword [ebp + 8]
mov dword [ebp - 0x838], eax
lea eax, [ebp - 0x8e4]
xor edi, edi
push eax
mov dword [ebp - 0x83c], edi
call fcn.0041dc0c
push 0x800
xor ebx, ebx
lea eax, [ebp - 0x814]
push edi
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00527ca0
add esp, 0xc
push edi
push 0x1a
lea eax, [ebp - 0x814]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x585d54
lea esi, [ebp - 0x830]
call fcn.0040829d
lea esi, [ebp - 0x8cc]
mov byte [ebp - 4], 2
call fcn.0041e51e
cmp dword [ebp - 0x81c], 8
mov eax, dword [ebp - 0x830]
jae 0x41d1e5
lea eax, [ebp - 0x830]
mov dword [ebp - 0x890], edi
cmp dword [ebp - 0x820], edi
je 0x41d205
push eax
mov eax, dword [ebp - 0x820]
lea esi, [ebp - 0x8cc]
call fcn.0041e704
push ebx
xor edi, edi
lea esi, [ebp - 0x830]
mov byte [ebp - 4], bl
call fcn.00409659
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x8d4]
push eax
call fcn.0041e86a
lea eax, [ebp - 0x8d4]
push str.Lenovo
push eax
call fcn.0041e86a
add esp, 0x10
lea eax, [ebp - 0x830]
push eax
lea ecx, [ebp - 0x8e4]
call fcn.0041dccb
cmp dword [eax + 0x14], 8
jb 0x41d257
mov eax, dword [eax]
push 6
push eax
call fcn.00522f0f
pop ecx
cmp eax, 0xffffffff
pop ecx
sete byte [ebp - 0x831]
push ebx
xor edi, edi
lea esi, [ebp - 0x830]
call fcn.00409659
cmp byte [ebp - 0x831], 0
je 0x41d2b1
lea eax, [ebp - 0x830]
push eax
lea ecx, [ebp - 0x8e4]
call fcn.0041dccb
cmp dword [eax + 0x14], 8
jb 0x41d29c
mov eax, dword [eax]
push eax
call fcn.00522f27
pop ecx
push ebx
xor edi, edi
lea esi, [ebp - 0x830]
call fcn.00409659
lea eax, [ebp - 0x8d4]
push str.MagicPlus
push eax
call fcn.0041e86a
pop ecx
pop ecx
lea eax, [ebp - 0x830]
push eax
lea ecx, [ebp - 0x8e4]
call fcn.0041dccb
cmp dword [eax + 0x14], 8
jb 0x41d2de
mov eax, dword [eax]
push 6
push eax
call fcn.00522f0f
pop ecx
cmp eax, 0xffffffff
pop ecx
sete byte [ebp - 0x831]
push ebx
xor edi, edi
lea esi, [ebp - 0x830]
call fcn.00409659
cmp byte [ebp - 0x831], 0
je 0x41d338
lea eax, [ebp - 0x830]
push eax
lea ecx, [ebp - 0x8e4]
call fcn.0041dccb
cmp dword [eax + 0x14], 8
jb 0x41d323
mov eax, dword [eax]
push eax
call fcn.00522f27
pop ecx
push ebx
xor edi, edi
lea esi, [ebp - 0x830]
call fcn.00409659
lea eax, [ebp - 0x8d4]
push 0x585004
push eax
call fcn.0041e86a
pop ecx
pop ecx
push dword [ebp - 0x838]
lea ecx, [ebp - 0x8e4]
call fcn.0041dccb
lea ecx, [ebp - 0x884]
mov dword [ebp - 0x83c], ebx
mov byte [ebp - 4], 0
call fcn.0041dc93
lea eax, [ebp - 0x884]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.005409e0
mov eax, dword [ebp - 0x838]
pop ecx
call fcn.00527c65
ret