joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4298f2
Capabilities:
Create process on windows

Disassembly:
push 0x14
mov eax, 0x4b0b08
call fcn.0046c338
mov edi, ecx
call fcn.004524e1
push eax
lea ecx, [ebp - 0x18]
call fcn.00402899
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [0x518f74], 2
mov esi, dword [0x518f58]
jne 0x429965
test esi, esi
jne 0x429932
cmp dword [0x5193b0], 0x249f0
jne 0x429965
push 0x519068
lea ecx, [ebp - 0x18]
call fcn.00402e14
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], ebx
jne 0x4299d6
test esi, esi
mov ecx, str.http:__www.adobe.com_go_update_error_win
mov eax, str.http:__www.adobe.com_go_ARMUpgradeFailedHelp
cmove eax, ecx
lea ecx, [ebp - 0x18]
push eax
call fcn.0040286d
jmp 0x4299d6
cmp dword [0x519010], ebx
jne 0x42997a
mov eax, 0x519024
cmp dword [0x51905c], ebx
je 0x42997f
mov eax, 0x51906c
push eax
lea ecx, [ebp - 0x18]
call fcn.00402e14
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], ebx
jne 0x4299b2
mov ecx, 0x518f84
call fcn.004031f2
test eax, eax
mov edx, 0x518e24
mov ecx, 0x518e28
cmove ecx, edx
push ecx
lea ecx, [ebp - 0x18]
call fcn.00402e14
cmp dword [0x519010], ebx
je 0x4299d6
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], bl
push eax
push ebx
push 0x4ce724
push str.Upgrade_WhatsNew
mov ecx, 0x518e58
call fcn.00409e40
mov ebx, dword [ebp - 0x18]
add ebx, 0xfffffff0
push ebx
call fcn.00402d9f
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
add edi, 0x84
push eax
mov ecx, edi
call fcn.00402e14
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.00402e64
push 0x4d0aa4
lea ecx, [ebp - 0x14]
call fcn.00402829
push 1
xor eax, eax
mov byte [ebp - 4], 2
push eax
push eax
push dword [edi]
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, eax
cmp esi, 0x21
jge 0x429afb
mov ecx, esi
sub ecx, 0
je 0x429a94
dec ecx
sub ecx, 1
je 0x429a87
sub ecx, 1
je 0x429a80
dec ecx
sub ecx, 1
je 0x429a94
sub ecx, 3
je 0x429a79
sub ecx, 0x12
je 0x429a72
sub ecx, 6
lea ecx, [ebp - 0x14]
je 0x429a6b
push str.All_other_non_caught_scenarios
jmp 0x429a8f
push str.The_specified_DLL_was_not_found.
jmp 0x429a8f
push str.A_sharing_violation_occurred.
jmp 0x429a8c
push str.There_was_not_enough_memory_to_complete_the_operation.
jmp 0x429a8c
push str.The_specified_path_was_not_found.
jmp 0x429a8c
push str.The_specified_file_was_not_found.
lea ecx, [ebp - 0x14]
call fcn.0040286d
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x429afb
push str.Failed_to_navigate_to_URL:
lea ecx, [ebp - 0x1c]
call fcn.00402829
xor ecx, ecx
mov byte [ebp - 4], 3
push esi
push edi
lea edx, [ebp - 0x1c]
inc ecx
call fcn.00416da0
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push str.___Error_message:
lea ecx, [ebp - 0x1c]
call fcn.00402829
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
xor ecx, ecx
lea edx, [ebp - 0x1c]
push 0
push eax
inc ecx
call fcn.00416da0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, ebx
call fcn.00402e64
xor eax, eax
inc eax
call fcn.0046c301
ret
Function at 0x42a2ff
Capabilities:
Check mutex on windows

Disassembly:
push 4
mov eax, 0x4ac6f8
call fcn.0046c338
mov esi, ecx
mov ebx, str.GlobalARM_Update_Mutex
xor edi, edi
push ebx
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x3c], eax
test eax, eax
jne 0x42a33d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x42a33d
push ebx
push 1
push edi
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [esi + 0x3c], eax
cmp dword [esi + 0x3c], edi
je 0x42a36a
push str.ARM_update_mutex_created
lea ecx, [ebp - 0x10]
call fcn.00402829
push edi
push 2
lea edx, [ebp - 0x10]
mov dword [ebp - 4], edi
pop ecx
call fcn.004174d1
pop ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00402e64
call fcn.0046c301
ret
Function at 0x42ef54
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x513554]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
jne 0x42ef80
push 0xd
jmp 0x42efe5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42efe3
push 0x250
lea eax, [esp + 0x14]
push 0
push eax
call fcn.004847f0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x42efe3
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, 0xffffffff
je 0x42efca
cmp dword [esp + 0x30], edi
je 0x42efca
mov eax, 0x5b6
jmp 0x42efe6
push ebx
mov ecx, esi
call fcn.0042e27c
neg eax
pop ecx
sbb eax, eax
and eax, 0xfffffc12
add eax, 0x3ee
jmp 0x42efe6
push 2
pop eax
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046bd5a
mov esp, ebp
pop ebp
ret
Function at 0x42f8d8
Capabilities:
Reference sql statements

Disassembly:
push 0x14
mov eax, 0x4b1688
call fcn.0046c338
mov edi, ecx
push str.InitUpdateFromProductUpdatesTable...
lea ecx, [ebp - 0x1c]
call fcn.00402829
xor esi, esi
lea edx, [ebp - 0x1c]
push esi
push 2
pop ecx
mov dword [ebp - 4], esi
call fcn.004174d1
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push str.SELECT__FROM__ProductUpdates__WHERE__ProductCode_
lea ecx, [ebp - 0x14]
call fcn.00402829
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.004025c6
push str._AND__ProductVersion_
lea ecx, [ebp - 0x14]
call fcn.004102be
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.004025c6
push 0x4f1190
lea ecx, [ebp - 0x14]
call fcn.004102be
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], esi
push dword [edi + 4]
call dword [sym.imp.msi.dll_MsiEnumClientsA]
mov esi, eax
test esi, esi
je 0x42f996
push 0x4f1194
lea ecx, [ebp - 0x1c]
call fcn.00402829
mov byte [ebp - 4], 4
jmp 0x42f9b8
push 0
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiViewModify]
mov esi, eax
test esi, esi
je 0x42f9c9
push 0x4f11a0
lea ecx, [ebp - 0x1c]
call fcn.00402829
mov byte [ebp - 4], 5
push esi
lea edx, [ebp - 0x1c]
mov ecx, ebx
call fcn.00417582
pop ecx
mov ecx, dword [ebp - 0x1c]
jmp 0x42fa2e
cmp dword [ebp - 0x10], 0
je 0x42f9d8
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x42fa0d
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 3
push eax
push dword [ebp - 0x10]
mov ecx, edi
call fcn.0042fc74
mov esi, eax
jmp 0x42fa3b
push 0x4f11a8
lea ecx, [ebp - 0x20]
call fcn.00402829
xor ecx, ecx
mov byte [ebp - 4], 6
push ebx
lea edx, [ebp - 0x20]
inc ecx
call fcn.00417582
pop ecx
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov esi, 0x3d32
cmp dword [ebp - 0x10], 0
je 0x42fa4a
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
cmp dword [ebp - 0x18], 0
je 0x42fa59
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402e64
mov eax, esi
call fcn.0046c301
ret 8
Function at 0x434594
Capabilities:
Reference sql statements

Disassembly:
push 0x14
mov eax, 0x4b2500
call fcn.0046c338
mov ebx, ecx
mov eax, dword [0x519064]
add eax, 0xfffffff0
push eax
call fcn.00402d9f
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
mov dword [esp], str.SELECT__FileSequences__FROM__ProductUpgrades__WHERE__UpgradeMatch_
call fcn.00402829
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
push dword [esi - 0xc]
push esi
call fcn.004025c6
push 0x4f1190
lea ecx, [ebp - 0x18]
call fcn.004102be
cmp dword [ebp - 0x10], edi
je 0x4345ff
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
push dword [ebp - 0x18]
push dword [ebx + 4]
call dword [sym.imp.msi.dll_MsiEnumClientsA]
test eax, eax
je 0x434629
push 0x4f1194
lea ecx, [ebp - 0x1c]
call fcn.00402829
mov byte [ebp - 4], 4
jmp 0x434648
push edi
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
je 0x434667
push 0x4f11a0
lea ecx, [ebp - 0x1c]
call fcn.00402829
mov byte [ebp - 4], 5
xor ecx, ecx
lea edx, [ebp - 0x1c]
mov edi, 0x3d32
inc ecx
push edi
call fcn.00417582
pop ecx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x434699
cmp dword [ebp - 0x14], 0
je 0x434676
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
jne 0x434699
push dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
xor edx, edx
inc edx
call fcn.00449d9b
pop ecx
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00402e64
cmp dword [ebp - 0x14], 0
je 0x4346b3
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
cmp dword [ebp - 0x10], 0
je 0x4346c2
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
lea ecx, [esi - 0x10]
call fcn.00402e64
mov eax, edi
call fcn.0046c301
ret 4
Function at 0x4374d6
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x513554]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, str.Shell_TrayWnd
push edi
xor edi, edi
push edi
push ebx
push edi
push edi
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
je 0x437520
push edi
push str.TrayNotifyWnd
push edi
push eax
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
je 0x437520
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x4375e2
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x24
push eax
push 5
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test eax, eax
je 0x437586
mov eax, dword [ebp - 0x1c]
sub eax, edi
je 0x43756a
sub eax, 1
je 0x437551
sub eax, 1
je 0x43756a
sub eax, 1
jne 0x4375e2
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0xc], eax
lea eax, [ecx - 0x64]
mov dword [esi], eax
lea eax, [ecx - 0x10]
jmp 0x437581
mov ecx, dword [ebp - 0xc]
lea eax, [ecx - 0x64]
mov dword [esi + 4], eax
lea eax, [ecx - 0x10]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 8], eax
jmp 0x4375e2
push edi
push ebx
push edi
push edi
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
je 0x4375c4
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esi + 8]
mov eax, ecx
sub eax, dword [esi]
cmp eax, 0x96
jle 0x4375b2
lea eax, [ecx - 0x96]
mov dword [esi], eax
mov ecx, dword [esi + 0xc]
mov eax, ecx
sub eax, dword [esi + 4]
cmp eax, 0x1e
jle 0x4375e2
lea eax, [ecx - 0x1e]
jmp 0x4375df
push edi
push esi
push edi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [esi + 8]
sub eax, 0x96
mov dword [esi], eax
mov eax, dword [esi + 0xc]
sub eax, 0x1e
mov dword [esi + 4], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046bd5a
leave
ret 4
Function at 0x4386a2
Capabilities:
Get common file path

Disassembly:
push 0x210
mov eax, 0x4b2ddb
call fcn.0046c36c
mov edi, ecx
push dword [edx]
push str._INSTALLDIR_
call fcn.00409868
test eax, eax
jne 0x4387bd
call fcn.004524e1
push eax
lea ecx, [ebp - 0x21c]
call fcn.00402899
xor ebx, ebx
mov esi, str._WindowsFolder_
push ebx
push esi
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.0040982e
cmp eax, 0xffffffff
je 0x4386f4
push 0x24
jmp 0x43874e
push ebx
mov esi, str._SystemFolder_
mov ecx, edi
push esi
call fcn.0040982e
cmp eax, 0xffffffff
je 0x43870b
push 0x25
jmp 0x43874e
push ebx
mov esi, str._ProgramFilesFolder_
mov ecx, edi
push esi
call fcn.0040982e
cmp eax, 0xffffffff
je 0x438722
push 0x26
jmp 0x43874e
push ebx
mov esi, str._CommonFilesFolder_
mov ecx, edi
push esi
call fcn.0040982e
cmp eax, 0xffffffff
je 0x438739
push 0x2b
jmp 0x43874e
push ebx
mov esi, str._LocalAppDataFolder_
mov ecx, edi
push esi
call fcn.0040982e
cmp eax, 0xffffffff
je 0x4387af
push 0x1c
pop ebx
push esi
lea ecx, [ebp - 0x21c]
call fcn.0040286d
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.004847f0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push ebx
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4387af
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4387af
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push eax
push esi
mov ecx, edi
call fcn.00409868
jmp 0x4387b5
mov esi, dword [ebp - 0x21c]
lea ecx, [esi - 0x10]
call fcn.00402e64
call fcn.0046c316
ret
Function at 0x438a8b
Capabilities:
Enumerate gui resources

Disassembly:
push 0x3d4
mov eax, 0x4b2e93
call fcn.0046c338
push str.DisplayFilesInUse...
lea ecx, [ebp - 0x14]
call fcn.00402829
and dword [ebp - 4], 0
lea edx, [ebp - 0x14]
push 0
push 2
pop ecx
call fcn.004174d1
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov eax, dword [0x518fec]
add eax, 0xfffffff0
push eax
call fcn.00402d9f
add eax, 0x10
pop ecx
mov dword [ebp - 0x18], eax
xor eax, eax
inc eax
mov dword [ebp - 4], eax
push 0xffffffffffffffff
xor edi, edi
mov ecx, 0x519398
push edi
call fcn.00453a65
xor ebx, ebx
cmp dword [0x518fa8], ebx
jle 0x438c29
push ebx
mov ecx, 0x518fa0
call fcn.00409d2f
mov esi, eax
mov dword [ebp - 0x1c], esi
mov eax, dword [esi]
test eax, eax
je 0x438c1c
cmp dword [eax + 0x4c], 0
je 0x438b2d
cmp dword [0x518f2c], 0
je 0x438c1c
mov eax, dword [eax + 8]
and dword [ebp - 0x14], 0
sub eax, 0x10
push eax
call fcn.00402d9f
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
mov dword [esp], 0x4f4f44
call fcn.00409b05
lea ecx, [ebp - 0x10]
test eax, eax
je 0x438bac
lea edx, [ebp - 0x18]
call fcn.004386a2
mov esi, dword [ebp - 0x10]
push 0x5c
push esi
call fcn.00485207
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x438b7d
or ecx, 0xffffffff
jmp 0x438b81
sub ecx, esi
sar ecx, 1
mov eax, dword [esi - 0xc]
dec eax
cmp ecx, eax
je 0x438b96
push 0x4d0aa0
lea ecx, [ebp - 0x10]
call fcn.0040259d
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
mov eax, dword [esi]
mov eax, dword [eax + 4]
push dword [eax - 0xc]
push eax
call fcn.004025c6
jmp 0x438bb7
mov eax, dword [esi]
add eax, 4
push eax
call fcn.00402e14
mov eax, dword [esi]
mov esi, dword [ebp - 0x10]
cmp dword [eax + 0x1c], 7
jne 0x438bdb
push 0
push 1
lea edx, [ebp - 0x14]
mov ecx, esi
call fcn.0043921b
pop ecx
pop ecx
test eax, eax
je 0x438bfa
xor edi, edi
inc edi
jmp 0x438bfa
cmp dword [eax + 0x1c], 0
jne 0x438c0e
push dword [eax + 4]
lea edx, [ebp - 0x14]
mov ecx, esi
push 0
call fcn.0043921b
pop ecx
pop ecx
test eax, eax
push 1
pop eax
cmovne edi, eax
cmp dword [ebp - 0x14], 0
je 0x438c0e
push dword [ebp - 0x14]
push 0x438600
call dword [sym.imp.USER32.dll_EnumWindows]
xor eax, eax
lea ecx, [esi - 0x10]
inc eax
mov byte [ebp - 4], al
call fcn.00402e64
inc ebx
cmp ebx, dword [0x518fa8]
jl 0x438b00
test edi, edi
je 0x438c62
push dword [0x5193ec]
lea ecx, [ebp - 0x3e0]
call fcn.00428f36
lea ecx, [ebp - 0x3e0]
mov byte [ebp - 4], 3
call fcn.00458c70
mov esi, eax
lea ecx, [ebp - 0x3e0]
xor eax, eax
inc eax
mov byte [ebp - 4], al
call fcn.00429093
jmp 0x438c67
xor eax, eax
lea esi, [eax + 1]
cmp esi, 4
je 0x438ae3
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov eax, esi
call fcn.0046c301
ret
Function at 0x439603
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push edi
push 9
mov ebx, ecx
lea edi, [ebp - 0x28]
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x28], 0
jne 0x43962c
mov al, 1
jmp 0x43967f
mov edi, dword [0x518de4]
push esi
xor esi, esi
mov dword [ebp - 4], esi
test edi, edi
jne 0x439663
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x439679
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
mov dword [0x518de4], edi
test edi, edi
je 0x439676
lea eax, [ebp - 4]
mov ecx, edi
push eax
push ebx
call dword [0x4ba7e8]
call edi
test eax, eax
je 0x439679
mov esi, dword [ebp - 4]
test esi, esi
pop esi
setne al
pop edi
pop ebx
leave
ret
Function at 0x439683
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x143c
call fcn.0046c4e0
mov eax, dword [0x513554]
xor eax, esp
mov dword [esp + 0x1438], eax
push ebx
push esi
push edi
mov eax, ecx
mov ebx, edx
push 0x4d0aa0
xor esi, esi
mov dword [esp + 0x18], ebx
push eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
call fcn.00484ec4
pop ecx
pop ecx
push ebx
neg eax
push esi
sbb edi, edi
push 0x410
neg edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4397c7
mov ecx, ebx
call fcn.00439603
test al, al
jne 0x439718
lea eax, [esp + 0xc]
push eax
push ecx
mov ecx, esp
push dword [esp + 0x18]
call fcn.00402829
mov edx, edi
mov ecx, ebx
call fcn.00437d0a
pop ecx
pop ecx
test eax, eax
jne 0x4397c7
mov esi, dword [esp + 0xc]
jmp 0x43980e
test edi, edi
je 0x439795
lea eax, [esp + 0xc]
push eax
push 0x1000
lea eax, [esp + 0x448]
push eax
push ebx
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x439792
xor edi, edi
mov eax, dword [esp + 0xc]
shr eax, 2
cmp edi, eax
jae 0x439792
push 0x208
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.004847f0
add esp, 0xc
lea eax, [esp + 0x18]
push 0x104
push eax
push dword [esp + edi*4 + 0x448]
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x43978d
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call fcn.0048d492
mov esi, eax
neg esi
pop ecx
sbb esi, esi
pop ecx
inc esi
inc edi
test esi, esi
je 0x43973b
push ebx
jmp 0x439808
push dword [esp + 0x14]
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x4397c7
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x428
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
jne 0x4397de
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x1444]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046bd5a
mov esp, ebp
pop ebp
ret
push dword [esp + 0x10]
lea eax, [esp + 0x3c]
push eax
call fcn.0048d492
neg eax
pop ecx
sbb esi, esi
lea eax, [esp + 0x1c]
pop ecx
push eax
push edi
inc esi
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
je 0x439807
test esi, esi
je 0x4397de
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x4397c9
Function at 0x43b6d8
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
test ecx, ecx
je 0x43b713
mov edx, dword [0x518e2c]
lea eax, [ebp - 8]
and dword [ebp - 4], 0
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
and dword [ebp - 8], 0
push eax
lea eax, [ebp - 4]
push eax
push str.iLogLevel
call fcn.0044448e
add esp, 0xc
test eax, eax
jne 0x43b713
cmp dword [ebp - 4], 1
jae 0x43b74a
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push dword [0x518e2c]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43b74a
push str.CollectData
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x43b8bc
Capabilities:
Shutdown system

Disassembly:
push 0x20
mov eax, 0x4b3438
call fcn.0046c36c
lea eax, [ebp - 0x2c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x43b90b
push str.OpenProcessToken_failed_in_RebootOS.
lea ecx, [ebp - 0x24]
call fcn.00402829
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
pop ecx
lea edx, [ebp - 0x24]
call fcn.004174d1
pop ecx
mov ecx, dword [ebp - 0x24]
jmp 0x43b995
lea eax, [ebp - 0x1c]
xor esi, esi
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 2
pop edi
push esi
push esi
push esi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], edi
push eax
push esi
push dword [ebp - 0x2c]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x43b95f
push str.AdjustTokenPrivileges_failed_in_RebootOS.
lea ecx, [ebp - 0x24]
call fcn.00402829
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
jmp 0x43b8fa
push SysReAllocString
push 0x12
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x43b99d
push str.ExitWindowsEx_failed_in_RebootOS.
lea ecx, [ebp - 0x28]
call fcn.00402829
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.004174d1
pop ecx
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00402e64
call fcn.0046c316
ret