joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e3f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x46b054]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0xc]
push edi
mov ebx, 0x208
mov dword [esp + 0xc], esi
push ebx
push 0
push eax
call fcn.0042c200
add esp, 0xc
lea eax, [esp + 0x10]
mov edi, 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
lea eax, [esp + 0x21c]
push 0
push eax
call fcn.0042c200
add esp, 0xc
lea eax, [esp + 0x218]
push edi
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [esp + 0x218]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push ecx
push eax
mov ecx, esi
call fcn.004024e3
mov ecx, dword [esp + 0x424]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042a3dc
mov esp, ebp
pop ebp
ret 4

Function at 0x406db3
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, 0x270
cmp dword [esi], edi
jne 0x406dfb
lea edx, [esi + 8]
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x406dc3
jmp 0x406e08
cmp dword [esi], 0x4e0
jb 0x406e08
call fcn.00406e42
mov eax, dword [esi]
pop edi
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
pop esi
ret

Function at 0x406e42
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x406e54
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd4c]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x406e99
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
and dword [esi], 0
pop esi
pop ebx
ret
Function at 0x408d30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
jg 0x408d5a
jl 0x408d51
test edi, edi
jne 0x408d5a
xor eax, eax
xor edx, edx
jmp 0x408e0c
cmp dword [ecx + 0x38], 0
je 0x408d6d
push esi
push edi
push edx
call fcn.00409320
jmp 0x408e0c
mov eax, dword [ecx + 0x1c]
push ebx
mov ebx, edi
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x408dad
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x408dad
cmp dword [eax], edi
mov esi, edi
cmovb esi, dword [eax]
push esi
push dword [ebp - 0xc]
push edx
call fcn.0042bc70
mov ecx, dword [ebp - 8]
sub ebx, esi
add dword [ebp - 4], esi
add esp, 0xc
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
cmp dword [ecx + 0x4c], 0
mov edx, ebx
je 0x408e02
call fcn.0040a785
mov edx, ebx
jmp 0x408de0
push dword [ecx + 0x4c]
push eax
push 1
push dword [ebp - 4]
call fcn.0043234d
add dword [ebp - 4], eax
sub ebx, eax
add esp, 0x10
mov edx, ebx
cmp eax, 0xfff
jne 0x408e12
mov ecx, dword [ebp - 8]
mov eax, 0xfff
cmp ebx, eax
ja 0x408dbe
test edx, edx
je 0x408e02
push dword [ecx + 0x4c]
push ebx
push 1
push dword [ebp - 4]
call fcn.0043234d
mov edx, ebx
add esp, 0x10
sub edx, eax
sub edi, edx
sbb esi, 0
mov eax, edi
mov edx, esi
pop ebx
pop edi
pop esi
leave
ret 0xc
sub edi, ebx
jmp 0x408e04
Function at 0x409720
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x20]
mov dword [ecx], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [esi], eax
mov ecx, dword [ecx]
cmp ecx, dword [ebp + 0x10]
je 0x40987f
mov eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0x1c]
xor ebx, ebx
inc ebx
mov edi, 0x3ff
mov ecx, eax
cmp dword [esi], edx
je 0x40987f
mov edx, dword [ebp + 8]
movzx ecx, word [eax]
mov eax, ecx
mov byte [ebp - 1], 0
movzx edx, word [edx]
cmp bx, dx
jae 0x40979f
lea eax, [ecx + 0x2400]
cmp ax, di
ja 0x40988e
mov eax, edx
lea ebx, [ecx - 0xdc00]
shl eax, 0xa
or ebx, eax
mov cl, byte [ebp - 1]
cmp ebx, 0x80
jae 0x4097bc
mov dl, bl
xor edi, edi
jmp 0x4097ec
mov ebx, eax
lea eax, [ecx + 0x2800]
cmp ax, di
ja 0x40978e
add ebx, 0xffff2840
mov cl, 1
shl ebx, 0xa
mov byte [ebp - 1], cl
jmp 0x409791
mov edx, ebx
cmp ebx, 0x800
jae 0x4097d1
shr edx, 6
xor edi, edi
or dl, 0xc0
inc edi
jmp 0x4097ec
cmp ebx, 0x10000
jae 0x4097e3
shr edx, 0xc
or dl, 0xe0
push 2
jmp 0x4097eb
shr edx, 0x12
or dl, 0xf0
push 3
pop edi
movzx eax, cl
mov ecx, dword [ebp - 0xc]
xor eax, 1
add eax, eax
cmp edi, 3
cmovb eax, edi
mov dword [ebp - 0x10], eax
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x1c]
sub eax, dword [esi]
cmp eax, dword [ebp - 8]
jl 0x40987f
mov eax, ecx
mov ecx, dword [ebp + 0x14]
add eax, 2
cmp byte [ebp - 1], 0
mov dword [ecx], eax
jne 0x409823
cmp edi, 3
jae 0x40982e
mov eax, dword [esi]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [ebp - 0x10]
jmp 0x409831
mov eax, dword [ebp - 8]
test eax, eax
je 0x409856
imul ecx, edi, 6
sub ecx, 6
mov edx, ebx
dec eax
shr edx, cl
mov dword [ebp - 8], eax
and dl, 0x3f
mov eax, dword [esi]
or dl, 0x80
mov byte [eax], dl
inc dword [esi]
mov eax, dword [ebp - 8]
test eax, eax
jg 0x409838
xor ecx, ecx
shr ebx, 0xa
inc ecx
movzx eax, bx
cmp byte [ebp - 1], 0
cmovne ecx, eax
mov eax, dword [ebp + 8]
mov word [eax], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov eax, ecx
mov dword [ebp - 0xc], eax
cmp ecx, dword [ebp + 0x10]
jne 0x409749
xor eax, eax
cmp dword [ebp + 0xc], ecx
sete al
pop edi
pop esi
pop ebx
leave
ret 0x1c
push 2
pop eax
jmp 0x409887
Function at 0x40c22d
Capabilities:
Create process on windows

Disassembly:
push 8
push 0x160
mov eax, 0x44f5b7
call fcn.0044e361
mov byte [ebp - 0x121], dl
mov edi, ecx
mov dword [ebp - 0x128], edi
push 0xb0
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.0042c200
pop ecx
pop ecx
lea ecx, [ebp - 0x120]
call fcn.00404733
and dword [ebp - 4], 0
lea ecx, [ebp - 0x158]
push 1
push 0x4608f4
call fcn.0040c3fc
lea edx, [ebp - 0x158]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x110]
call fcn.0040b70e
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x170]
push eax
call fcn.00401f1e
mov edx, eax
mov byte [ebp - 4], 2
mov ecx, esi
call fcn.0040b70e
push 1
push 0x4608f4
lea ecx, [ebp - 0x140]
mov esi, eax
call fcn.0040c3fc
lea edx, [ebp - 0x140]
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.0040b70e
lea ecx, [ebp - 0x140]
call fcn.004023b6
lea ecx, [ebp - 0x170]
call fcn.004023b6
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0
call fcn.004023b6
cmp dword [ebx + 0x10], 0
jbe 0x40c322
mov edx, 0x4606fc
lea ecx, [ebp - 0x110]
call fcn.00406430
push dword [ebx + 0x10]
mov edx, dword [ebx + 0xc]
mov ecx, eax
call fcn.0040bfa0
pop ecx
push 0x44
pop esi
push esi
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.0042c200
mov ecx, dword [ebp - 0x128]
lea edi, [ebp - 0x24]
xor eax, eax
mov dword [ebp - 0x70], esi
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x158]
push eax
call fcn.00403425
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 4
push ecx
mov ecx, eax
call fcn.00401f1e
mov esi, eax
mov byte [ebp - 4], 5
cmp dword [esi + 0x14], 8
jb 0x40c372
mov esi, dword [esi]
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x108]
call fcn.00405424
cmp dword [ebp - 0x12c], 8
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x70]
push eax
movzx eax, byte [ebp - 0x121]
lea ecx, [ebp - 0x140]
cmovae ecx, dword [ebp - 0x140]
xor edx, edx
push esi
push edx
shl eax, 0x1b
push eax
push edx
push edx
push edx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea ecx, [ebp - 0x140]
call fcn.004023b6
lea ecx, [ebp - 0x170]
call fcn.004023b6
lea ecx, [ebp - 0x158]
call fcn.004023b6
mov edi, dword [ebx + 8]
lea esi, [ebp - 0x24]
lea ecx, [ebp - 0x120]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00403dee
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0x14]
call fcn.0044e33f
ret
Function at 0x40d01e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x46b054]
xor eax, esp
mov dword [esp + 0x228], eax
push esi
push 0x208
mov esi, ecx
lea eax, [esp + 0x24]
push 0
mov dword [esp + 0xc], esi
push eax
mov dword [esp + 0x10], esi
call fcn.0042c200
add esp, 0xc
lea eax, [esp + 0x20]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x40d08d
push ecx
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call fcn.0040d199
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0042a3dc
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00401715
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.0040132b
lea ecx, [esp + 0xc]
push dword [eax + 4]
push dword [eax]
push str.Failed_to_get_Windows_Directory
call fcn.0040151d
push 0x469824
lea eax, [esp + 0x10]
push eax
call fcn.0042bbfc
int3

Function at 0x40d1d8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x46b054]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
push esi
mov ecx, dword [eax]
mov eax, dword [0x46e14c]
cmp eax, dword [ecx + 4]
jle 0x40d225
mov esi, 0x46e14c
push esi
call fcn.0042a7d6
cmp dword [0x46e14c], 0xffffffff
pop ecx
jne 0x40d225
push 0x452070
call fcn.0042a69d
push esi
call fcn.0042a78c
pop ecx
pop ecx
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push str.ApplicationsAvira.Spotlight.Bootstrapper.exe
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40d267
push esi
push esi
push esi
push esi
push str.NoStartPage
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, 0x46e150
xor ecx, ebp
pop esi
call fcn.0042a3dc
leave
ret
Function at 0x40d6c0
Capabilities:
Check mutex on windows

Disassembly:
push 0x3c
mov eax, 0x44f96d
call fcn.0042ab7f
mov edi, ecx
xor ebx, ebx
push 7
pop esi
cmp byte [ebp + 8], bl
je 0x40d725
xor eax, eax
mov dword [ebp - 0x30], ebx
push str.Waiting_for_delay_to_elapse
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x30], ax
call fcn.004062ca
lea eax, [ebp - 0x30]
mov dword [ebp - 4], ebx
push eax
push 2
mov ecx, edi
call fcn.0040836a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004023b6
push 0xea60
push dword [edi + 0xec]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40d77f
push str.GlobalAvira.Security.Updater_abff403a_9b56_48e6_8753_10fb19692501
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi + 0xe4], eax
test eax, eax
jne 0x40d786
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x30], ebx
xor eax, eax
mov dword [ebp - 0x20], ebx
push str.Getting_updater_mutex_failed
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.004062ca
push esi
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 1
push eax
mov ecx, edi
call fcn.0040db34
lea ecx, [ebp - 0x30]
call fcn.004023b6
xor al, al
jmp 0x40d85c
xor eax, eax
mov dword [ebp - 0x30], ebx
push str.Waiting_for_updater_process_to_elapse
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x30], ax
call fcn.004062ca
push 2
pop ecx
lea eax, [ebp - 0x30]
mov dword [ebp - 4], ecx
push eax
push ecx
mov ecx, edi
call fcn.0040836a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004023b6
mov eax, dword [edi + 0xe4]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0xec]
push 0x493e0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push ebx
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, ebx
je 0x40d822
sub eax, 1
je 0x40d77f
xor eax, eax
mov dword [ebp - 0x48], ebx
push str.Wait_for_updater_process_timeout_exceeded__continue_anyways
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], esi
mov word [ebp - 0x48], ax
call fcn.004062ca
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 4
push eax
push 2
mov ecx, edi
call fcn.0040836a
lea ecx, [ebp - 0x48]
jmp 0x40d855
xor eax, eax
mov dword [ebp - 0x30], ebx
push str.Wait_for_updater_process_done
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x30], ax
call fcn.004062ca
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 3
push eax
push 2
mov ecx, edi
call fcn.0040836a
lea ecx, [ebp - 0x30]
call fcn.004023b6
mov al, 1
call fcn.0042ab2e
ret 4
Function at 0x40eaa3
Capabilities:
Check mutex on windows

Disassembly:
push 0x3c
mov eax, 0x44fcd5
call fcn.0042ab7f
mov edi, ecx
xor ebx, ebx
cmp dword [0x46e148], ebx
jne 0x40eaf7
mov dword [ebp - 0x30], ebx
lea ecx, [ebp - 0x30]
push str.StopEventWrapper_not_valid.
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], bl
call fcn.00401ac1
lea eax, [ebp - 0x30]
mov dword [ebp - 4], ebx
push eax
push 2
mov ecx, edi
call fcn.004082f3
lea ecx, [ebp - 0x30]
call fcn.00401a9b
xor al, al
jmp 0x40ec95
push 2
pop esi
cmp byte [ebp + 8], bl
je 0x40eb53
xor eax, eax
mov dword [ebp - 0x30], ebx
push str.Waiting_for_delay_to_elapse
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.004062ca
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 1
push eax
push esi
mov ecx, edi
call fcn.0040836a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004023b6
push 0xea60
push dword [0x46e148]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40eaf0
push str.GlobalAvira.Security.Updater_abff403a_9b56_48e6_8753_10fb19692501
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi + 0xe4], eax
test eax, eax
jne 0x40ebb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x30], ebx
xor eax, eax
mov dword [ebp - 0x20], ebx
push str.Getting_updater_mutex_failed
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.004062ca
push esi
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 2
push eax
mov ecx, edi
call fcn.0040db34
lea ecx, [ebp - 0x30]
call fcn.004023b6
jmp 0x40eaf0
xor eax, eax
mov dword [ebp - 0x30], ebx
push str.Waiting_for_updater_process_to_elapse
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.004062ca
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 3
push eax
push esi
mov ecx, edi
call fcn.0040836a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004023b6
mov eax, dword [edi + 0xe4]
mov dword [ebp - 0x18], eax
mov eax, dword [0x46e148]
push 0x493e0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, ebx
je 0x40ec58
sub eax, 1
je 0x40eaf0
xor eax, eax
mov dword [ebp - 0x48], ebx
push str.Wait_for_updater_process_timeout_exceeded__continue_anyways
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
call fcn.004062ca
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 5
push ecx
push esi
mov ecx, edi
call fcn.0040836a
lea ecx, [ebp - 0x48]
jmp 0x40ec8e
xor eax, eax
mov dword [ebp - 0x30], ebx
push str.Wait_for_updater_process_done
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.004062ca
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 4
push eax
push esi
mov ecx, edi
call fcn.0040836a
lea ecx, [ebp - 0x30]
call fcn.004023b6
mov al, 1
call fcn.0042ab2e
ret 4
Function at 0x40ef68
Capabilities:
Get common file path

Disassembly:
push 0x4c
mov eax, 0x44fd95
call fcn.0042ab7f
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x40]
xor ebx, ebx
mov byte [ebp - 0x18], bl
push dword [ebp - 0x18]
push 0x17
push str.AviraMigration_Cleanup
call fcn.00402848
add esp, 0xc
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
push ebx
push ebx
push 0x453ee0
mov dword [ebp - 0x14], ebx
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x40eff2
push ecx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x58]
call fcn.004024e3
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x58]
mov ecx, esi
call fcn.004034ae
pop ecx
lea ecx, [ebp - 0x58]
call fcn.004023b6
lea ecx, [ebp - 0x40]
call fcn.004023b6
mov eax, esi
call fcn.0042ab2e
ret
push str.Cant_determine_ProgramFiles_folder.
lea ecx, [ebp - 0x28]
call fcn.00401160
push 0x469910
lea eax, [ebp - 0x28]
push eax
call fcn.0042bbfc
int3
Function at 0x40fe55
Capabilities:
Get common file path

Disassembly:
push 0x320
mov eax, 0x45012c
call fcn.0042ab7f
mov esi, edx
mov edi, ecx
push ecx
push 0x461a68
lea ecx, [ebp - 0x32c]
call fcn.0040d199
lea eax, [ebp - 0x32c]
xor ebx, ebx
push eax
mov edx, esi
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x40]
call fcn.004034ae
pop ecx
lea ecx, [ebp - 0x32c]
mov byte [ebp - 4], 2
call fcn.004023b6
push 0x208
lea eax, [ebp - 0x2f8]
push ebx
push eax
call fcn.0042c200
add esp, 0xc
lea eax, [ebp - 0x2f8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x2f8]
mov dword [ebp - 0x314], eax
lea eax, [ebp - 0x314]
push ecx
push eax
lea ecx, [ebp - 0x310]
call fcn.004024e3
lea edx, [ebp - 0x310]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.0040f196
lea ecx, [ebp - 0x310]
mov byte [ebp - 4], 5
call fcn.004023b6
push 0xb0
lea eax, [ebp - 0xf0]
push ebx
push eax
call fcn.0042c200
pop ecx
pop ecx
lea ecx, [ebp - 0xf0]
call fcn.00404733
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xe0]
push dword [edi]
call fcn.00404870
mov edx, str._bootstrapper__
mov ecx, eax
call fcn.00406430
mov esi, eax
mov dword [ebp - 0x310], ebx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x300], ebx
push eax
lea ecx, [ebp - 0x310]
mov dword [ebp - 0x2fc], ebx
call fcn.0040245a
lea edx, [ebp - 0x310]
mov byte [ebp - 4], 7
mov ecx, esi
call fcn.0040b70e
mov edx, str.__Avira_Spotlight_Bootstrapper_.log
mov ecx, eax
call fcn.00406430
lea ecx, [ebp - 0x310]
mov byte [ebp - 4], 6
call fcn.004023b6
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0xd8]
call fcn.00405424
mov byte [ebp - 4], 8
lea eax, [ebp - 0x310]
cmp dword [ebp - 0x2fc], 8
lea ecx, [ebp - 0x40]
push dword [ebp - 0x300]
cmovae eax, dword [ebp - 0x310]
mov dl, 1
push eax
call fcn.0040c178
pop ecx
pop ecx
lea ecx, [ebp - 0x310]
call fcn.004023b6
lea ecx, [ebp - 0xf0]
call fcn.00403dee
lea ecx, [ebp - 0x28]
call fcn.004023b6
lea ecx, [ebp - 0x40]
call fcn.004023b6
call fcn.0042ab2e
ret
Function at 0x410576
Capabilities:
Shutdown system

Disassembly:
push 0x68
mov eax, 0x45035d
call fcn.0042ab7f
push 0x30
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.0042c200
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 0x1c
mov eax, esp
mov dword [eax + 0x24], esi
cmp ecx, esi
je 0x4105ae
mov dword [eax], vtable.std::_Func_impl_no_alloc_int____stdcall___void____void__void__.0
mov dword [eax + 4], ecx
mov dword [eax + 0x24], eax
push esi
lea ecx, [ebp - 0x58]
call fcn.0040cc32
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x58]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4106af
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
push 0x461bfc
push esi
movlpd qword [ebp - 0x18], xmm0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x410617
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00401715
push eax
push ecx
lea ecx, [ebp - 0x60]
call fcn.0040132b
push dword [eax + 4]
push dword [eax]
push str.Failed_to_look_up_shutdown_privilege.
jmp 0x4106d0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
push esi
push esi
push esi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
push esi
push dword [ebp - 0x58]
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x41066d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
test ecx, ecx
je 0x41066d
call fcn.00401715
push eax
push ecx
lea ecx, [ebp - 0x60]
call fcn.0040132b
push dword [eax + 4]
push dword [eax]
push str.Failed_to_set_shutdown_privilege.
jmp 0x4106d0
push 0x80040002
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x4106a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00401715
push eax
push ecx
lea ecx, [ebp - 0x60]
call fcn.0040132b
push dword [eax + 4]
push dword [eax]
push str.Failed_to_initiate_reboot.
jmp 0x4106d0
lea ecx, [ebp - 0x58]
call fcn.0040cbc2
call fcn.0042ab2e
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00401715
push eax
push ecx
lea ecx, [ebp - 0x60]
call fcn.0040132b
push dword [eax + 4]
push dword [eax]
push str.Failed_to_open_current_process_token.
lea ecx, [ebp - 0x74]
call fcn.0040151d
push 0x469824
lea eax, [ebp - 0x74]
push eax
call fcn.0042bbfc
int3