joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403c41
Capabilities:
Create directory

Disassembly:
push 0x154
mov eax, 0x44e821
call fcn.0042ab6f
mov esi, ecx
mov eax, dword [ebp + 0xc]
lea edi, [ebp - 0x44]
mov ebx, dword [ebp + 8]
push 7
mov dword [ebp - 0x100], eax
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0xf8], ebx
call fcn.00401720
xor ecx, ecx
xor eax, eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [esi + 4]
mov byte [ebp - 4], 1
mov edi, 0x3e7
mov dword [ebp - 0xfc], eax
mov byte [ebp - 0xf8], cl
push 0xb0
push ecx
lea eax, [ebp - 0xf4]
push eax
call fcn.0042c3a0
pop ecx
pop ecx
lea ecx, [ebp - 0xf4]
call fcn.00404763
mov edx, str..CR.
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xe4]
call fcn.00406410
push 0x7fff
push 0
push dword [ebp - 0xfc]
mov esi, eax
call fcn.00406c7a
push eax
mov ecx, esi
call fcn.004048a0
mov edx, 0x4603cc
mov ecx, eax
call fcn.00406410
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0xdc]
call fcn.00405424
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x130]
call fcn.00402380
mov edx, dword [ebp - 0x100]
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 4
call fcn.004034ee
pop ecx
xor ecx, ecx
mov byte [ebp - 4], 5
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x104], ecx
lea ecx, [ebp - 0x118]
push eax
call fcn.0040245a
push dword [ebp - 0xf8]
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040559c
lea ecx, [ebp - 0x118]
call fcn.004023b6
lea ecx, [ebp - 0x160]
call fcn.004023b6
lea ecx, [ebp - 0x130]
call fcn.004023b6
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 2
call fcn.004023b6
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x34]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0xf4]
test eax, eax
jne 0x403de1
mov byte [ebp - 4], 1
call fcn.00403e2d
push 0
pop ecx
sub edi, 1
je 0x403e0b
jmp 0x403ca6
call fcn.00403e2d
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.00402380
lea ecx, [ebp - 0x28]
call fcn.004023b6
lea ecx, [ebp - 0x44]
call fcn.004019bf
mov eax, ebx
call fcn.0042ab1e
ret 8
push str.Failed_to_create_clean_folder
lea ecx, [ebp - 0x10c]
call fcn.00401160
push 0x469910
lea eax, [ebp - 0x10c]
push eax
call fcn.0042bd9c
int3
Function at 0x403e7e
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.0042c3a0
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.0042c3a0
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.0042a3cc
mov esp, ebp
pop ebp
ret 4

Function at 0x406d93
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 0x406ddb
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 0x406da3
jmp 0x406de8
cmp dword [esi], 0x4e0
jb 0x406de8
call fcn.00406e22
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 0x406e22
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 0x406e34
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 0x406e79
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 0x408d10
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 0x408d3a
jl 0x408d31
test edi, edi
jne 0x408d3a
xor eax, eax
xor edx, edx
jmp 0x408dec
cmp dword [ecx + 0x38], 0
je 0x408d4d
push esi
push edi
push edx
call fcn.00409300
jmp 0x408dec
mov eax, dword [ecx + 0x1c]
push ebx
mov ebx, edi
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x408d8d
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x408d8d
cmp dword [eax], edi
mov esi, edi
cmovb esi, dword [eax]
push esi
push dword [ebp - 0xc]
push edx
call fcn.0042be10
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 0x408de2
call fcn.0040a765
mov edx, ebx
jmp 0x408dc0
push dword [ecx + 0x4c]
push eax
push 1
push dword [ebp - 4]
call fcn.0043233d
add dword [ebp - 4], eax
sub ebx, eax
add esp, 0x10
mov edx, ebx
cmp eax, 0xfff
jne 0x408df2
mov ecx, dword [ebp - 8]
mov eax, 0xfff
cmp ebx, eax
ja 0x408d9e
test edx, edx
je 0x408de2
push dword [ecx + 0x4c]
push ebx
push 1
push dword [ebp - 4]
call fcn.0043233d
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 0x408de4
Function at 0x409700
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 0x40985f
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 0x40985f
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 0x40977f
lea eax, [ecx + 0x2400]
cmp ax, di
ja 0x40986e
mov eax, edx
lea ebx, [ecx - 0xdc00]
shl eax, 0xa
or ebx, eax
mov cl, byte [ebp - 1]
cmp ebx, 0x80
jae 0x40979c
mov dl, bl
xor edi, edi
jmp 0x4097cc
mov ebx, eax
lea eax, [ecx + 0x2800]
cmp ax, di
ja 0x40976e
add ebx, 0xffff2840
mov cl, 1
shl ebx, 0xa
mov byte [ebp - 1], cl
jmp 0x409771
mov edx, ebx
cmp ebx, 0x800
jae 0x4097b1
shr edx, 6
xor edi, edi
or dl, 0xc0
inc edi
jmp 0x4097cc
cmp ebx, 0x10000
jae 0x4097c3
shr edx, 0xc
or dl, 0xe0
push 2
jmp 0x4097cb
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 0x40985f
mov eax, ecx
mov ecx, dword [ebp + 0x14]
add eax, 2
cmp byte [ebp - 1], 0
mov dword [ecx], eax
jne 0x409803
cmp edi, 3
jae 0x40980e
mov eax, dword [esi]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [ebp - 0x10]
jmp 0x409811
mov eax, dword [ebp - 8]
test eax, eax
je 0x409836
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 0x409818
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 0x409729
xor eax, eax
cmp dword [ebp + 0xc], ecx
sete al
pop edi
pop esi
pop ebx
leave
ret 0x1c
push 2
pop eax
jmp 0x409867
Function at 0x40c20d
Capabilities:
Create process on windows

Disassembly:
push 8
push 0x160
mov eax, 0x44f5a7
call fcn.0044e351
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.0042c3a0
pop ecx
pop ecx
lea ecx, [ebp - 0x120]
call fcn.00404763
and dword [ebp - 4], 0
lea ecx, [ebp - 0x158]
push 1
push 0x4608f4
call fcn.0040c3dc
lea edx, [ebp - 0x158]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x110]
call fcn.0040b6ee
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.0040b6ee
push 1
push 0x4608f4
lea ecx, [ebp - 0x140]
mov esi, eax
call fcn.0040c3dc
lea edx, [ebp - 0x140]
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.0040b6ee
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 0x40c302
mov edx, 0x4606fc
lea ecx, [ebp - 0x110]
call fcn.00406410
push dword [ebx + 0x10]
mov edx, dword [ebx + 0xc]
mov ecx, eax
call fcn.0040bf80
pop ecx
push 0x44
pop esi
push esi
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.0042c3a0
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.00403465
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 0x40c352
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.00403e2d
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0x14]
call fcn.0044e32f
ret
Function at 0x40cffe
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.0042c3a0
add esp, 0xc
lea eax, [esp + 0x20]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x40d06d
push ecx
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call fcn.0040d179
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0042a3cc
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.0042bd9c
int3

Function at 0x40d1b8
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 0x40d205
mov esi, 0x46e14c
push esi
call fcn.0042a7c6
cmp dword [0x46e14c], 0xffffffff
pop ecx
jne 0x40d205
push 0x452060
call fcn.0042a68d
push esi
call fcn.0042a77c
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 0x460bb0
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40d247
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.0042a3cc
leave
ret
Function at 0x40d6a0
Capabilities:
Check mutex on windows

Disassembly:
push 0x3c
mov eax, 0x44f95d
call fcn.0042ab6f
mov edi, ecx
xor ebx, ebx
push 7
pop esi
cmp byte [ebp + 8], bl
je 0x40d705
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.0040834a
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 0x40d75f
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 0x40d766
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.0040db14
lea ecx, [ebp - 0x30]
call fcn.004023b6
xor al, al
jmp 0x40d83c
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.0040834a
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 0x40d802
sub eax, 1
je 0x40d75f
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.0040834a
lea ecx, [ebp - 0x48]
jmp 0x40d835
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.0040834a
lea ecx, [ebp - 0x30]
call fcn.004023b6
mov al, 1
call fcn.0042ab1e
ret 4
Function at 0x40ea93
Capabilities:
Check mutex on windows

Disassembly:
push 0x3c
mov eax, 0x44fcc5
call fcn.0042ab6f
mov edi, ecx
xor ebx, ebx
cmp dword [0x46e148], ebx
jne 0x40eae7
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.004082d3
lea ecx, [ebp - 0x30]
call fcn.00401a9b
xor al, al
jmp 0x40ec85
push 2
pop esi
cmp byte [ebp + 8], bl
je 0x40eb43
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.0040834a
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 0x40eae0
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 0x40eba2
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.0040db14
lea ecx, [ebp - 0x30]
call fcn.004023b6
jmp 0x40eae0
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.0040834a
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 0x40ec48
sub eax, 1
je 0x40eae0
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.0040834a
lea ecx, [ebp - 0x48]
jmp 0x40ec7e
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.0040834a
lea ecx, [ebp - 0x30]
call fcn.004023b6
mov al, 1
call fcn.0042ab1e
ret 4
Function at 0x40ef55
Capabilities:
Get common file path

Disassembly:
push 0x4c
mov eax, 0x44fd85
call fcn.0042ab6f
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 0x40efdf
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.004034ee
pop ecx
lea ecx, [ebp - 0x58]
call fcn.004023b6
lea ecx, [ebp - 0x40]
call fcn.004023b6
mov eax, esi
call fcn.0042ab1e
ret
push str.Cant_determine_ProgramFiles_folder.
lea ecx, [ebp - 0x28]
call fcn.00401160
push 0x469910
lea eax, [ebp - 0x28]
push eax
call fcn.0042bd9c
int3
Function at 0x40fe45
Capabilities:
Get common file path

Disassembly:
push 0x320
mov eax, 0x45011c
call fcn.0042ab6f
mov esi, edx
mov edi, ecx
push ecx
push 0x461a68
lea ecx, [ebp - 0x32c]
call fcn.0040d179
lea eax, [ebp - 0x32c]
xor ebx, ebx
push eax
mov edx, esi
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x40]
call fcn.004034ee
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.0042c3a0
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.0040f183
lea ecx, [ebp - 0x310]
mov byte [ebp - 4], 5
call fcn.004023b6
push 0xb0
lea eax, [ebp - 0xf0]
push ebx
push eax
call fcn.0042c3a0
pop ecx
pop ecx
lea ecx, [ebp - 0xf0]
call fcn.00404763
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xe0]
push dword [edi]
call fcn.004048a0
mov edx, str._bootstrapper__
mov ecx, eax
call fcn.00406410
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.0040b6ee
mov edx, str.__Avira_Spotlight_Bootstrapper_.log
mov ecx, eax
call fcn.00406410
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.0040c158
pop ecx
pop ecx
lea ecx, [ebp - 0x310]
call fcn.004023b6
lea ecx, [ebp - 0xf0]
call fcn.00403e2d
lea ecx, [ebp - 0x28]
call fcn.004023b6
lea ecx, [ebp - 0x40]
call fcn.004023b6
call fcn.0042ab1e
ret