joyce8/EMBER2024-capa huggingface dataset:
Function at 0x183c6dc
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x183c6f5
mov esi, edi
mov edi, eax
jmp 0x183c6f7
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x183c707
mov eax, ebx
jmp 0x183c711
push eax
push ebx
call fcn.018234ac
add esp, 8
test eax, eax
jne 0x183c719
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x183c737
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [edi + 4]
jl 0x183c720
cmp eax, dword [esi + 4]
jge 0x183c74e
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [esi + 4]
jl 0x183c73c
mov eax, dword [esi + 4]
test eax, eax
mov dword [ebx + 4], eax
jle 0x183c771
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x183c76e
sub eax, 1
test eax, eax
jg 0x183c75e
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x18a040c
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
mov edx, dword [ecx]
mov ebx, 0x20
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 8], edx
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
push edi
mov edi, 0xc6ef3720
mov dword [ebp + 0xc], edx
mov dword [ebp - 0xc], ecx
mov edx, esi
dec ebx
shr edx, 5
add edx, ecx
mov ecx, esi
shl ecx, 4
add ecx, dword [ebp + 0xc]
xor edx, ecx
lea ecx, [edi + esi]
xor edx, ecx
sub eax, edx
mov edx, eax
mov ecx, eax
shr edx, 5
add edx, dword [ebp - 4]
shl ecx, 4
add ecx, dword [ebp - 8]
xor edx, ecx
lea ecx, [edi + eax]
xor edx, ecx
lea edi, [edi + 0x61c88647]
mov ecx, dword [ebp - 0xc]
sub esi, edx
test ebx, ebx
jg 0x18a0441
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx], esi
pop esi
mov dword [ecx + 4], eax
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x18a087c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
mov edx, dword [ecx]
mov ebx, 0x20
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 4], edx
mov edx, dword [ecx + 4]
mov dword [ebp + 0xc], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
push edi
xor edi, edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
mov edx, eax
lea edi, [edi - 0x61c88647]
shr edx, 5
mov ecx, eax
add edx, dword [ebp + 0xc]
dec ebx
shl ecx, 4
add ecx, dword [ebp - 4]
xor edx, ecx
lea ecx, [edi + eax]
xor edx, ecx
add esi, edx
mov edx, esi
mov ecx, esi
shr edx, 5
add edx, dword [ebp - 8]
shl ecx, 4
add ecx, dword [ebp - 0xc]
xor edx, ecx
lea ecx, [edi + esi]
xor edx, ecx
add eax, edx
test ebx, ebx
jg 0x18a08ae
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx], esi
pop esi
mov dword [ecx + 4], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x18aa05c
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10122324]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x28], esi
push edi
mov edi, dword [ebp + 0xc]
cmp ebx, 0x40
jle 0x18aa096
lea eax, [ebp - 0x24]
push eax
push ebx
push edi
call fcn.018a9c9c
add esp, 0xc
lea edi, [ebp - 0x24]
mov ebx, 0x20
push 0x40
lea eax, [esi + 0x68]
push 0x36
push eax
call fcn.018b6c3c
push 0x40
add esi, 0xa8
push 0x5c
push esi
call fcn.018b6c3c
add esp, 0x18
test ebx, ebx
jle 0x18aa0d4
nop
movzx eax, byte [edi]
lea edi, [edi + 1]
xor byte [esi - 0x40], al
lea esi, [esi + 1]
movzx eax, byte [edi - 1]
xor byte [esi - 1], al
sub ebx, 1
jne 0x18aa0bc
mov esi, dword [ebp - 0x28]
push 0
push esi
call fcn.018aa11c
push 0x40
lea eax, [esi + 0x68]
push eax
push esi
call fcn.018aa15c
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.018b396f
mov esp, ebp
pop ebp
ret

Function at 0x18b2c4c
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
mov edx, dword [ecx]
mov ebx, 0x20
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 8], edx
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
push edi
mov edi, 0xc6ef3720
mov dword [ebp + 0xc], edx
mov dword [ebp - 0xc], ecx
mov edx, esi
dec ebx
shr edx, 5
add edx, ecx
mov ecx, esi
shl ecx, 4
add ecx, dword [ebp + 0xc]
xor edx, ecx
lea ecx, [edi + esi]
xor edx, ecx
sub eax, edx
mov edx, eax
mov ecx, eax
shr edx, 5
add edx, dword [ebp - 4]
shl ecx, 4
add ecx, dword [ebp - 8]
xor edx, ecx
lea ecx, [edi + eax]
xor edx, ecx
lea edi, [edi + 0x61c88647]
mov ecx, dword [ebp - 0xc]
sub esi, edx
test ebx, ebx
jg 0x18b2c81
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx], esi
pop esi
mov dword [ecx + 4], eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x18b2e1c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
mov edx, dword [ecx]
mov ebx, 0x20
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 4], edx
mov edx, dword [ecx + 4]
mov dword [ebp + 0xc], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
push edi
xor edi, edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
mov edx, eax
lea edi, [edi - 0x61c88647]
shr edx, 5
mov ecx, eax
add edx, dword [ebp + 0xc]
dec ebx
shl ecx, 4
add ecx, dword [ebp - 4]
xor edx, ecx
lea ecx, [edi + eax]
xor edx, ecx
add esi, edx
mov edx, esi
mov ecx, esi
shr edx, 5
add edx, dword [ebp - 8]
shl ecx, 4
add ecx, dword [ebp - 0xc]
xor edx, ecx
lea ecx, [edi + esi]
xor edx, ecx
add eax, edx
test ebx, ebx
jg 0x18b2e4e
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx], esi
pop esi
mov dword [ecx + 4], eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x18fb2da
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.018faec1
Function at 0x18fb2e5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.018fb050

Function at 0x191336c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1913399
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1913399
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x465e90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call fcn.004660ec
mov dword [ebp - 0x14], eax
mov eax, dword [0x46bfdc]
mov dword [ebp - 0x18], eax
mov eax, dword [0x46bfe0]
mov dword [ebp - 0xc], eax
push 0x40
push 0x3000
push dword [ebp - 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0xc]
push dword [ebp - 8]
call fcn.00466ee0
add esp, 0x10
mov dword [ebp - 0xc], eax
push dword [ebp - 0x14]
call fcn.004660bf
pop ecx
and dword [ebp - 4], 0
jmp 0x465ef0
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [0x46bfe4]
je 0x465f63
imul eax, dword [ebp - 4], 0xc
mov eax, dword [eax + 0x46bfe8]
add eax, 0x46bf80
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
push 0x40
imul eax, dword [ebp - 4], 0xc
push dword [eax + 0x46bfec]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
imul eax, dword [ebp - 4], 0xc
push dword [eax + 0x46bfec]
imul eax, dword [ebp - 4], 0xc
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x46bff0]
push ecx
push dword [ebp - 0x10]
call fcn.004663d7
add esp, 0xc
push 0
push dword [ebp - 0x1c]
imul eax, dword [ebp - 4], 0xc
push dword [eax + 0x46bfec]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x465ee9
push dword [0x46bfa4]
mov eax, dword [0x46bfa0]
add eax, 0x46bf80
push eax
mov eax, dword [0x46bf90]
add eax, 0x46bf80
push eax
call fcn.00465fca
add esp, 0xc
mov eax, 0x46bf80
sub eax, dword [0x46bf88]
push eax
push dword [0x46bf9c]
mov eax, dword [ebp - 8]
add eax, dword [0x46bf98]
push eax
mov eax, dword [0x46bf90]
add eax, 0x46bf80
push eax
call fcn.0046619a
add esp, 0x10
push 0x8000
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
leave
ret

Function at 0x4660ec
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push 0x208
lea eax, [ebp - 0x410]
push eax
call fcn.00466168
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x46bf64], eax
push 0
push 0
push 0
push 2
push 0
push dword [0x46bf64]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [0x46bf68], eax
push 0
push 0
push 0
push 4
push dword [0x46bf68]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
add eax, dword [0x46bfd8]
leave
ret
Function at 0x46619a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [ebp + 0x14], 0
jne 0x4661ad
xor eax, eax
jmp 0x466331
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
and dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
movzx eax, word [eax + 4]
cmp eax, 0x14c
jne 0x4661eb
mov eax, dword [ebp - 8]
add eax, 0xf8
mov dword [ebp - 0xc], eax
jmp 0x466204
mov eax, dword [ebp - 8]
movzx eax, word [eax + 4]
cmp eax, 0x8664
jne 0x466204
mov eax, dword [ebp - 8]
add eax, 0x108
mov dword [ebp - 0xc], eax
and dword [ebp - 0x10], 0
jmp 0x466211
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x10], eax
je 0x46624a
imul eax, dword [ebp - 0x10], 0x28
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x24]
push eax
push 0x40
imul eax, dword [ebp - 0x10], 0x28
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 8]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x46620a
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x2c]
jae 0x4662ea
mov eax, dword [ebp + 0xc]
add eax, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
sub eax, 8
shr eax, 1
mov dword [ebp - 0x30], eax
and dword [ebp - 4], 0
jmp 0x46627a
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x30]
je 0x4662d9
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
test eax, eax
jne 0x466292
jmp 0x466273
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
and eax, 0xfff
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
add ecx, eax
add ecx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
sar eax, 0xc
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 3
je 0x4662ca
jmp 0x4662d7
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
add eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
jmp 0x466273
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 4]
mov dword [ebp + 0xc], ecx
jmp 0x46624a
and dword [ebp - 0x14], 0
jmp 0x4662f7
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x14], eax
je 0x46632f
imul eax, dword [ebp - 0x14], 0x28
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x38], edx
push 0
push dword [ebp - 0x24]
imul eax, dword [ebp - 0x14], 0x28
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 8]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x4662f0
xor eax, eax
leave
ret
Function at 0x467f10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x10c
push ebx
push ebp
mov ebp, dword [esp + 0x11c]
push esi
push edi
lea ebx, [eax + ebp]
cmp eax, 8
jbe 0x4680c7
mov edi, dword [esp + 0x120]
lea esi, [ebp + 8]
push 0x800
lea eax, [edi + 0x5410]
push eax
mov eax, ebx
sub eax, esi
push eax
lea eax, [edi + 0x140c]
push esi
push eax
call fcn.0046b440
add esp, 0x14
cmp eax, 0xffffff88
ja 0x4680c7
add esi, eax
mov dword [esp + 0x14], 0x1c
mov eax, ebx
sub eax, esi
push eax
push esi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00468110
add esp, 0x14
mov dword [esp + 0x10], eax
cmp eax, 0xffffff88
ja 0x4680c7
mov eax, dword [esp + 0x1c]
cmp eax, 8
ja 0x4680c7
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x34]
push eax
lea eax, [edi + 0x804]
push eax
call fcn.00468530
add esp, 0x10
cmp eax, 0xffffff88
ja 0x4680c7
add esi, dword [esp + 0x10]
mov eax, ebx
sub eax, esi
mov dword [esp + 0x18], 0x34
push eax
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0xc0]
push eax
call fcn.00468110
add esp, 0x14
mov dword [esp + 0x10], eax
cmp eax, 0xffffff88
ja 0x4680c7
mov eax, dword [esp + 0x20]
cmp eax, 9
ja 0x4680c7
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0xb8]
push eax
lea eax, [edi + 0xc08]
push eax
call fcn.00468530
add esp, 0x10
cmp eax, 0xffffff88
ja 0x4680c7
add esi, dword [esp + 0x10]
mov eax, ebx
sub eax, esi
mov dword [esp + 0x10], 0x23
push eax
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.00468110
add esp, 0x14
mov dword [esp + 0x28], eax
cmp eax, 0xffffff88
ja 0x4680c7
mov eax, dword [esp + 0x24]
cmp eax, 9
ja 0x4680c7
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x70]
push eax
push edi
call fcn.00468530
add esp, 0x10
cmp eax, 0xffffff88
ja 0x4680c7
add esi, dword [esp + 0x28]
lea eax, [esi + 0xc]
cmp eax, ebx
ja 0x4680c7
sub ebx, esi
xor edx, edx
sub ebx, 0xc
add edi, 0x5c10
nop
mov ecx, dword [esi]
add esi, 4
test ecx, ecx
je 0x4680c7
cmp ecx, ebx
jae 0x4680c7
mov dword [edi], ecx
inc edx
add edi, 4
cmp edx, 3
jl 0x4680a0
sub esi, ebp
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
pop ebp
mov eax, 0xffffffe2
pop ebx
add esp, 0x10c
ret
Function at 0x46b070
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
shr eax, 8
test al, al
je 0x46b086
mov dword [esp + 0x14], ecx
jmp fcn.0046a290
mov dword [esp + 0x14], ecx
jmp fcn.00469700
Function at 0x401fe0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0xb98]
sub esp, 0xc18
mov eax, dword [0x4431c0]
xor eax, ebp
mov dword [ebp + 0xb94], eax
push ebx
push esi
push edi
xor eax, eax
push 0x7fe
mov word [ebp - 0x6c], ax
xor edi, edi
lea eax, [ebp - 0x6a]
push edi
push eax
call fcn.0041c7e0
xor eax, eax
mov esi, 0x1fe
push esi
mov word [ebp + 0x794], ax
lea eax, [ebp + 0x796]
push edi
push eax
mov dword [ebp - 0x80], 0x800
call fcn.0041c7e0
add esp, 0x18
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x6c]
push eax
push str.ProductName
mov ebx, str.86D4B82A_ABED_442A_BE86_96357B70F4FE
push ebx
mov dword [ebp - 0x78], 0x200
call sub.msi.dll_MsiGetPropertyW
test eax, eax
jne 0x40213c
push str.Qbyrd_Toolbar
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40208c
push str.Search_Results_Toolbar
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40213c
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x794]
push eax
push str.VersionString
push ebx
call sub.msi.dll_MsiGetPropertyW
test eax, eax
jne 0x40213c
push 5
lea eax, [ebp + 0x794]
push str.1.7.1
push eax
call fcn.0041a83a
add esp, 0xc
test eax, eax
jne 0x40213c
mov dword [ebp - 0x70], edi
mov ebx, 0xf003f
call fcn.00411341
test eax, eax
je 0x4020da
mov ebx, 0xf013f
lea eax, [ebp - 0x70]
push eax
push ebx
push edi
push str.SOFTWAREClassesInstallerProductsA28B4D68DEBAA244EB686953B7074FEFSourceList
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40213c
push esi
mov word [ebp + 0x994], ax
lea eax, [ebp + 0x996]
push edi
push eax
call fcn.0041c7e0
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x994]
push eax
push edi
push edi
mov esi, str.PackageName
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x7c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x402156
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp + 0xb94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004195bf
add ebp, 0xb98
leave
ret
push str.Ask_Toolbar.msi
lea eax, [ebp + 0x994]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x402179
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x40213e
xor eax, eax
push 2
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x74]
push eax
push 1
push edi
push esi
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor edi, edi
inc edi
jmp 0x40216c
Function at 0x407736
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call fcn.00410782
test eax, eax
je 0x407756
push str.SoftwareAppDataLowSoftwareAskToolbar
jmp 0x40775b
push str.SoftwareAskToolbar
push SysReAllocString
call fcn.00410b02
pop ecx
pop ecx
xor ecx, ecx
inc ecx
cmp eax, ebx
je 0x407771
mov dword [ebp - 4], ecx
lea eax, [ebp - 8]
push eax
push ecx
push ebx
push str.CLSIDD4027C7F_154A_4066_A1AD_4243D8127440InprocServer32
push SysReAllocString
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 8], ebx
je 0x4077c9
push 0x410
call fcn.0041874e
pop ecx
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push ebx
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x10], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4077c0
push esi
call fcn.0041a129
pop ecx
xor esi, esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov dword [ebp - 0xc], 0x80004005
cmp esi, ebx
je 0x407803
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x407803
push str.DllUnregisterServer
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4077f7
call eax
mov dword [ebp - 0xc], eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0xc], ebx
jge 0x407807
or dword [ebp - 4], 2
push esi
call fcn.0041137a
pop ecx
pop edi
test al, al
jne 0x407817
or dword [ebp - 4], 4
cmp esi, ebx
je 0x407822
push esi
call fcn.0041a129
pop ecx
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret

Function at 0x408655
Capabilities:
Create directory
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
push edi
push 0
push 0
mov esi, eax
mov byte [esp + 0x17], 0
call ebp
mov edi, eax
test edi, edi
jbe 0x4086d9
push ebx
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041874e
pop ecx
mov ebx, eax
push ebx
push edi
call ebp
push ebx
push esi
call fcn.00405b2b
push ebx
call fcn.0041a129
mov dword [esp], str.APNLogs
push esi
call fcn.0040576e
cmp dword [esi + 0x18], 8
pop ebx
jb 0x4086b7
mov esi, dword [esi + 4]
jmp 0x4086ba
add esi, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jg 0x4086d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4086d9
mov byte [esp + 0xf], 1
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x411c7b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x4431c0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x8c], 0
push esi
push edi
lea eax, [ebp - 0x94]
mov edi, ecx
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x411d73
lea eax, [esi + 1]
push eax
call fcn.0041874e
pop ecx
push eax
push esi
push dword [ebp - 0x94]
mov dword [ebp - 0x90], eax
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x411d61
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x98]
push eax
push 0x43ad38
push dword [ebp - 0x90]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x411d61
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x411d61
xor eax, eax
push 0x7e
push eax
mov word [ebp - 0x88], ax
lea eax, [ebp - 0x86]
push eax
call fcn.0041c7e0
movzx eax, word [esi + 0xc]
add esp, 0xc
push eax
movzx eax, word [esi + 0xe]
push eax
movzx eax, word [esi + 8]
push eax
movzx eax, word [esi + 0xa]
push eax
push str._u._u._u._u
push 0x3f
pop ecx
lea edi, [ebp - 0x88]
call fcn.00401164
add esp, 0x14
mov eax, ebx
call fcn.00405797
mov eax, edi
push eax
push ebx
call fcn.00405b2b
mov dword [ebp - 0x8c], 1
push dword [ebp - 0x90]
call fcn.0041a129
mov eax, dword [ebp - 0x8c]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004195bf
leave
ret