joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ce3e
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4282c8]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x428788]
je 0x41ce75
inc eax
cmp eax, 0x13
jb 0x41ce66
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x428788]
jne 0x41cf98
mov eax, dword [0x529400]
cmp eax, 1
je 0x41cf73
cmp eax, edx
jne 0x41cea5
cmp dword [0x4281b4], 1
je 0x41cf73
cmp ecx, 0xfc
je 0x41cf98
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41cedb
lea eax, [ebp - 0x7c]
push 0x422b2c
push eax
call fcn.004166a0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00416610
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41cf0f
mov eax, edi
push eax
call fcn.00416610
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x422b28
push edi
call fcn.0041e990
add esp, 0x10
push edi
call fcn.00416610
push dword [esi + 0x42878c]
mov ebx, eax
call fcn.00416610
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00417a80
mov ebx, esp
push 0x422b0c
push ebx
call fcn.004166a0
push edi
push ebx
call fcn.004166b0
push 0x422b08
push ebx
call fcn.004166b0
push dword [esi + 0x42878c]
push ebx
call fcn.004166b0
push 0x12010
push 0x422ae0
push ebx
call fcn.0041ebdb
add esp, 0x2c
jmp 0x41cf98
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x42878c]
push dword [esi]
call fcn.00416610
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0041d8b4
add ebp, 0x90
leave
ret
Function at 0x41d9e1
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x4282c8]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x41da1d
xor eax, eax
jmp 0x41db87
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x52c900]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41da5b
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.0041f04b
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41daf5
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x41db58
jmp 0x41da7f
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x41daba
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41daab
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x41da8b
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41db19
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x41db22
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x41da7d
jmp 0x41db22
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41db19
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x41db22
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x41db82
cmp dword [ebp - 0x68], eax
je 0x41db55
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x41db4a
call fcn.0041cab9
mov dword [eax], 9
call fcn.0041cac2
mov dword [eax], esi
jmp 0x41db7d
push dword [ebp - 0x68]
call fcn.0041cacb
pop ecx
jmp 0x41db7d
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41db6a
cmp byte [edi], 0x1a
jne 0x41db6a
xor eax, eax
jmp 0x41db85
call fcn.0041cab9
mov dword [eax], 0x1c
call fcn.0041cac2
and dword [eax], 0
or eax, 0xffffffff
jmp 0x41db85
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.0041d8b4
add ebp, 0x3a4
leave
ret
Function at 0x41e281
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00417a80
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41e31c
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x529430]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x41e31c
cmp eax, 1
je 0x41e33d
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41e31c
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41e2e9
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41e318
xor eax, eax
inc eax
jmp 0x41e35c
cmp edi, eax
jae 0x41e320
xor eax, eax
jmp 0x41e35c
cmp eax, esi
jae 0x41e327
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x529430]
jmp 0x41e340
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41ebdb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x5297ac], ebx
push esi
push edi
jne 0x41ec5b
push 0x423280
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41ec96
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x423274
push edi
call esi
test eax, eax
mov dword [0x5297ac], eax
je 0x41ec96
push 0x423264
push edi
call esi
push 0x423250
push edi
mov dword [0x5297b0], eax
call esi
cmp dword [0x529430], 2
mov dword [0x5297b4], eax
jne 0x41ec5b
push 0x423234
push edi
call esi
test eax, eax
mov dword [0x5297bc], eax
je 0x41ec5b
push 0x42321c
push edi
call esi
mov dword [0x5297b8], eax
mov eax, dword [0x5297b8]
test eax, eax
je 0x41eca0
call eax
test eax, eax
je 0x41ec87
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x5297bc]
test eax, eax
je 0x41ec87
test byte [ebp - 8], 1
jne 0x41eca0
cmp dword [0x52943c], 4
jb 0x41ec9a
or byte [ebp + 0x12], 0x20
jmp 0x41ecbf
xor eax, eax
jmp 0x41eccf
or byte [ebp + 0x12], 4
jmp 0x41ecbf
mov eax, dword [0x5297b0]
test eax, eax
je 0x41ecbf
call eax
mov ebx, eax
test ebx, ebx
je 0x41ecbf
mov eax, dword [0x5297b4]
test eax, eax
je 0x41ecbf
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x5297ac]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41f482
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x41f658
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x52c900]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41f658
test cl, 0x48
je 0x41f4ed
cmp byte [eax + 5], 0xa
je 0x41f4ed
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41f53f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x41f527
call fcn.0041cab9
mov dword [eax], 9
call fcn.0041cac2
mov dword [eax], esi
jmp 0x41f537
cmp eax, 0x6d
je 0x41f658
push eax
call fcn.0041cacb
pop ecx
or eax, 0xffffffff
jmp 0x41f65a
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x41f653
test eax, eax
je 0x41f566
cmp byte [ebx], 0xa
jne 0x41f566
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x41f56f
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x41f64d
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41f63d
cmp al, 0xd
je 0x41f5a1
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x41f62f
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x41f5bb
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41f5b6
add dword [ebp + 0x10], 2
jmp 0x41f60f
mov dword [ebp + 0x10], eax
jmp 0x41f62b
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41f5e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41f62b
cmp dword [ebp - 0xc], 0
je 0x41f62b
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41f604
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41f60f
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41f62e
cmp ebx, dword [ebp + 0xc]
jne 0x41f614
cmp byte [ebp - 1], 0xa
jne 0x41f614
mov byte [ebx], 0xa
jmp 0x41f62e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041f04b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41f62f
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41f585
jmp 0x41f64d
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x41f64d
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41f65a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4010a5
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x4194]
mov eax, 0x4214
call fcn.0040aae0
mov eax, dword [0x425250]
xor eax, ebp
mov dword [ebp + 0x4190], eax
mov eax, dword [ebp + 0x419c]
push ebx
push edi
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7c]
push eax
xor ebx, ebx
push esi
mov dword [ebp - 0x7c], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
je 0x4011c0
mov edi, 0x2000
cmp eax, edi
ja 0x4011c0
push edi
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.00409ef0
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
push edi
push dword [ebp - 0x7c]
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4011c0
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x422474
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x78], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4011c0
cmp dword [ebp - 0x74], 4
jne 0x4011c0
mov eax, dword [ebp - 0x78]
mov eax, dword [eax]
mov edx, eax
shr edx, 0x10
mov ecx, 0xff
and edx, ecx
push edx
mov edx, eax
shr edx, 0x18
push edx
movzx edx, al
shr eax, 8
push edx
and eax, ecx
push eax
push 0x4224a8
inc ecx
lea edi, [ebp + 0x3f90]
call fcn.00401058
add esp, 0x14
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
mov eax, edi
push eax
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x74], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4011c0
cmp dword [ebp - 0x74], ebx
jbe 0x4011c0
mov eax, 0x208
cmp dword [ebp - 0x74], eax
jae 0x4011c0
push eax
push ebx
push dword [ebp - 0x80]
call fcn.00409ef0
mov ebx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x80]
add esp, 0xc
push dword [ebp - 0x78]
call section..text
mov al, 1
jmp 0x4011c2
xor al, al
mov ecx, dword [ebp + 0x4190]
pop edi
xor ecx, ebp
pop ebx
call fcn.00409ede
add ebp, 0x4194
leave
ret
Function at 0x4011d9
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3d4]
sub esp, 0x454
mov eax, dword [0x425250]
xor eax, ebp
mov dword [ebp + 0x3d0], eax
push edi
push 0x104
lea eax, [ebp - 0x44]
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x401212
mov al, 1
jmp 0x40133b
push esi
lea eax, [ebp + 0x1c8]
push eax
lea esi, [ebp - 0x44]
call fcn.004010a5
pop ecx
test al, al
jne 0x40122e
inc al
jmp 0x40133a
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push str.SOFTWAREGoogleNo_Chrome_Offer_Until
push 0x80000002
mov byte [ebp - 0x45], 1
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x4c], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401337
push ebx
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx esi, word [ebp - 0x70]
movzx eax, word [ebp - 0x6e]
imul esi, esi, 0x64
add esi, eax
movzx eax, word [ebp - 0x6a]
imul esi, esi, 0x64
push 4
pop ebx
add esi, eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x50]
push eax
push edi
lea eax, [ebp + 0x1c8]
push eax
push dword [ebp - 0x4c]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4012be
cmp dword [ebp - 0x50], ebx
jne 0x4012be
cmp dword [ebp - 0x54], esi
jbe 0x4012be
mov byte [ebp - 0x45], al
jmp 0x40132d
lea eax, [ebp + 0x1c8]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp dword [ebp + 0x3dc], edi
je 0x40132d
mov eax, dword [ebp - 0x70]
lea esi, [ebp - 0x70]
lea edi, [ebp - 0x80]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
shr eax, 0x10
movsd dword es:[edi], dword [esi]
add eax, 6
movsd dword es:[edi], dword [esi]
cmp ax, 0xc
jbe 0x4012fb
mov ecx, 0xfff4
add ax, cx
inc word [ebp - 0x80]
movzx ecx, word [ebp - 0x80]
imul ecx, ecx, 0x64
movzx eax, ax
add ecx, eax
mov eax, dword [ebp - 0x7c]
imul ecx, ecx, 0x64
shr eax, 0x10
push ebx
add ecx, eax
lea eax, [ebp - 0x60]
push eax
push ebx
push 0
lea eax, [ebp + 0x1c8]
push eax
push dword [ebp - 0x4c]
mov dword [ebp - 0x60], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov al, byte [ebp - 0x45]
pop esi
mov ecx, dword [ebp + 0x3d0]
xor ecx, ebp
pop edi
call fcn.00409ede
add ebp, 0x3d4
leave
ret

Function at 0x401351
Capabilities:
Query or enumerate registry value

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
push 0
push dword [esp + 0x14]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401378
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
ret
xor al, al
ret
Function at 0x4013e7
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x425250]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0x118
lea eax, [ebp - 0x7c]
push 0
push eax
mov dword [ebp - 0x80], 0x11c
call fcn.00409ef0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x401449
cmp dword [ebp - 0x7c], 5
jb 0x401449
jbe 0x401439
mov byte [esi], 1
mov al, 1
jmp 0x40144b
cmp dword [ebp - 0x78], 1
jb 0x401449
cmp word [ebp + 0x94], 2
jae 0x401435
xor al, al
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.00409ede
add ebp, 0xa0
leave
ret

Function at 0x401460
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x425250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x4014bf
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4014bf
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x10], 1
pop ebx
sete al
xor ecx, ebp
call fcn.00409ede
leave
ret

Function at 0x4014de
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x425250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x2001f
push ebx
mov esi, 0x422504
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
push ebx
push ebx
movsd dword es:[edi], dword [esi]
push str.SoftwareGoogleUpdateClients8A69D345_D564_463c_AFF1_A69D9E530F96
push 0x80000002
movsw word es:[edi], word [esi]
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401577
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x10]
push eax
push 1
push ebx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40155e
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
mov byte [ebp - 0x11], 1
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp dword [ebp - 0x1c], 1
jne 0x40156e
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x11]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409ede
leave
ret
Function at 0x401ae2
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push ebp
push esi
push edi
xor edi, edi
mov ebp, 0x80000000
cmp dword [0x428068], edi
jne 0x401b26
call ebx
test ebp, eax
je 0x401b1c
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x428064], eax
mov dword [0x428068], 1
mov eax, dword [0x428064]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x401b42
push dword [esp + 0x14]
push eax
call esi
mov edi, eax
test edi, edi
jne 0x401b7d
mov eax, dword [0x42806c]
test eax, eax
jne 0x401b74
call ebx
test ebp, eax
je 0x401b5f
push dword [0x422678]
call dword [0x422674]
jmp 0x401b6b
push dword [0x422670]
call dword [0x42266c]
test eax, eax
je 0x401b7d
mov dword [0x42806c], eax
push dword [esp + 0x14]
push eax
call esi
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x401dc3
Capabilities:
Print debug messages

Disassembly:
push edi
xor edi, edi
cmp dword [0x428088], edi
je 0x401dd9
push str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x428080], edi
je 0x401de6
xor edi, edi
inc edi
jmp 0x401e4a
push esi
cmp dword [0x428088], edi
jne 0x401df8
call fcn.00401b86
test eax, eax
je 0x401e2a
mov eax, dword [0x42807c]
mov esi, dword [0x426518]
cmp eax, edi
jne 0x401e1a
push str.ActivateActCtx
call fcn.00401ae2
mov dword [0x42807c], eax
cmp eax, edi
je 0x401e2a
push dword [esp + 0xc]
push esi
call eax
cmp eax, edi
je 0x401e2a
xor edi, edi
inc edi
jmp 0x401e49
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7f
je 0x401e3f
cmp eax, 0x7e
je 0x401e3f
cmp eax, 0x78
jne 0x401e49
xor eax, eax
inc eax
mov dword [0x428080], eax
mov edi, eax
pop esi
mov eax, edi
pop edi
ret 4

Function at 0x401ee3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0x400
xor ebx, ebx
push ebx
mov esi, 0x428090
push esi
call fcn.00409ef0
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401f63
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
mov dword [ebp - 0xc], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401f5a
cmp dword [ebp - 4], 1
je 0x401f5a
cmp dword [ebp - 4], 2
je 0x401f5a
cmp dword [ebp - 4], 7
je 0x401f5a
mov byte [0x428090], bl
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4020d8
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x394]
sub esp, 0x414
mov eax, dword [0x425250]
xor eax, ebp
mov dword [ebp + 0x390], eax
push ebx
push edi
lea eax, [ebp - 0x78]
push eax
xor edi, edi
lea eax, [ebp - 0x74]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push str.SOFTWAREGoogleGoogle_Toolbar
push 0x80000002
xor bl, bl
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4021a0
push esi
mov esi, str.test
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push 1
push edi
push esi
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x402186
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
push edi
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40217c
lea eax, [ebp - 0x70]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
push esi
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp dword [ebp - 0x78], 1
pop esi
jne 0x402197
push edi
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x390]
pop edi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00409ede
add ebp, 0x394
leave
ret