Function at 0x4381c0
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0d87
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x508
mov eax, dword [0x4de080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4d0], edx
mov edi, ecx
push 0x33
xorps xmm0, xmm0
mov dword [ebp - 0x498], 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea ecx, [ebp - 0x4a8]
mov dword [ebp - 0x494], 0
movups xmmword [ebp - 0x4a8], xmm0
call fcn.0040df90
lea esi, [ebp - 0x4c8]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x4c0]
mov dword [ebp - 0x420], 0
sub eax, esi
mov dword [ebp - 0x4c8], 0x20119
mov esi, eax
mov dword [ebp - 0x4c4], 0x20219
sar esi, 2
xorps xmm0, xmm0
movq qword [ebp - 0x428], xmm0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x4c0], eax
mov dword [ebp - 0x41c], esi
test esi, esi
je 0x43833f
cmp esi, 0x3fffffff
ja 0x438daf
shl esi, 2
cmp esi, 0x1000
jb 0x4382ec
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x438db4
push eax
call fcn.00483776
add esp, 4
test eax, eax
je 0x438dbe
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x4382ff
test esi, esi
je 0x4382fd
push esi
call fcn.00483776
add esp, 4
mov esi, eax
jmp 0x4382ff
xor esi, esi
mov eax, dword [ebp - 0x41c]
push dword [ebp - 0x4c0]
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x424], esi
lea eax, [esi + eax*4]
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x4c8]
push eax
push esi
call fcn.00485270
mov eax, dword [ebp - 0x41c]
add esp, 0xc
lea eax, [esi + eax*4]
mov dword [ebp - 0x424], eax
xorps xmm0, xmm0
mov dword [ebp - 0x430], 0
xor eax, eax
mov dword [ebp - 0x42c], 7
movups xmmword [ebp - 0x440], xmm0
mov word [ebp - 0x440], ax
movups xmmword [ebp - 0x48c], xmm0
mov dword [ebp - 0x47c], eax
mov dword [ebp - 0x478], 7
mov word [ebp - 0x48c], ax
mov byte [ebp - 4], 3
sub edi, eax
je 0x4383cc
sub edi, 1
je 0x4383b1
sub edi, 1
jne 0x4383f0
push 0xf
push str.Mozilla_Firefox
lea ecx, [ebp - 0x440]
call fcn.0040db20
push 0xb
push str.firefox.exe
jmp 0x4383e5
push 0xd
push str.Google_Chrome
lea ecx, [ebp - 0x440]
call fcn.0040db20
push 0xa
push str.chrome.exe
jmp 0x4383e5
push 0xe
push str.Microsoft_Edge
lea ecx, [ebp - 0x440]
call fcn.0040db20
push 0xa
push str.msedge.exe
lea ecx, [ebp - 0x48c]
call fcn.0040db20
mov esi, dword [ebp - 0x428]
mov edi, dword [ebp - 0x424]
mov dword [ebp - 0x4c0], esi
mov dword [ebp - 0x4c4], edi
cmp esi, edi
je 0x438a1e
cmp dword [ebp - 0x494], 7
lea ecx, [ebp - 0x4ac]
push ecx
push dword [esi]
lea eax, [ebp - 0x4a8]
mov dword [ebp - 0x4ac], 0
cmova eax, dword [ebp - 0x4a8]
push 0
push eax
push 0x80000002
mov dword [ebp - 0x41c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x438a0d
push eax
push eax
push eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x41c]
push eax
push 0
push 0
push 0
push dword [ebp - 0x4ac]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x438a01
push 0x200
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00485800
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x4cc], eax
cmp dword [ebp - 0x41c], eax
jbe 0x438a01
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x490]
mov dword [ebp - 0x490], 0xff
push ecx
lea ecx, [ebp - 0x218]
push ecx
push eax
push dword [ebp - 0x4ac]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4389dc
mov dword [ebp - 0x4b0], eax
mov eax, dword [ebp - 0x490]
add eax, eax
cmp eax, 0x200
jae 0x438dc3
xor ecx, ecx
xorps xmm0, xmm0
mov word [ebp + eax - 0x218], cx
mov dword [ebp - 0x448], ecx
mov dword [ebp - 0x444], ecx
lea ecx, [ebp - 0x218]
movups xmmword [ebp - 0x458], xmm0
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x438520
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x458]
call fcn.0040df90
mov byte [ebp - 4], 4
lea edx, [ebp - 0x458]
cmp dword [ebp - 0x444], 7
lea esi, [ebp - 0x458]
mov edi, dword [ebp - 0x458]
mov ecx, dword [ebp - 0x448]
seta al
cmova edx, edi
mov dword [ebp - 0x4bc], edi
test al, al
je 0x43857c
mov esi, edi
lea edi, [edi + ecx*2]
jmp 0x438585
lea edi, [esi + ecx*2]
lea esi, [ebp - 0x458]
cmp esi, edi
je 0x4385c0
sub edx, esi
mov dword [ebp - 0x4b8], edx
movzx eax, word [esi]
push eax
call fcn.0048d33d
mov ecx, dword [ebp - 0x4b8]
add esp, 4
mov word [ecx + esi], ax
add esi, 2
cmp esi, edi
jne 0x438591
mov edi, dword [ebp - 0x458]
mov ecx, dword [ebp - 0x448]
mov dword [ebp - 0x4bc], edi
cmp dword [ebp - 0x42c], 7
lea edi, [ebp - 0x440]
mov edx, dword [ebp - 0x440]
lea esi, [ebp - 0x440]
seta al
cmova edi, edx
test al, al
mov eax, dword [ebp - 0x430]
je 0x4385f0
mov esi, edx
lea eax, [edx + eax*2]
jmp 0x4385f9
lea eax, [esi + eax*2]
lea esi, [ebp - 0x440]
mov dword [ebp - 0x4b8], eax
cmp esi, eax
je 0x43863a
sub edi, esi
movzx eax, word [esi]
push eax
call fcn.0048d33d
mov word [edi + esi], ax
add esp, 4
add esi, 2
cmp esi, dword [ebp - 0x4b8]
jne 0x438605
mov esi, dword [ebp - 0x458]
mov edx, dword [ebp - 0x440]
mov ecx, dword [ebp - 0x448]
mov dword [ebp - 0x4bc], esi
jmp 0x438640
mov esi, dword [ebp - 0x4bc]
cmp dword [ebp - 0x42c], 7
lea eax, [ebp - 0x440]
cmova eax, edx
cmp dword [ebp - 0x444], 7
lea edx, [ebp - 0x458]
mov dword [ebp - 0x4b8], eax
mov eax, dword [ebp - 0x430]
cmova edx, esi
seta byte [ebp - 0x4b1]
mov dword [ebp - 0x45c], edx
cmp eax, ecx
ja 0x43899e
sub ecx, eax
test eax, eax
je 0x43873b
inc ecx
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 0x4b8]
mov dword [ebp - 0x4dc], eax
movzx edi, word [ecx]
mov dword [ebp - 0x4d8], edi
sub eax, edx
mov esi, 0
sar eax, 1
je 0x4386d1
movzx ecx, word [edx]
cmp cx, di
je 0x4386c9
cmp eax, 1
je 0x4386cb
movzx ecx, word [edx + 2]
add edx, 2
dec eax
cmp cx, di
jne 0x4386b7
mov esi, edx
mov ecx, dword [ebp - 0x4b8]
mov edx, esi
test edx, edx
je 0x438998
mov edi, dword [ebp - 0x430]
mov esi, ecx
test edi, edi
je 0x438724
mov eax, edx
sub eax, ecx
mov dword [ebp - 0x4d4], eax
movzx ecx, word [esi + eax]
movzx eax, word [esi]
cmp cx, ax
jne 0x43870d
add esi, 2
sub edi, 1
je 0x438724
mov eax, dword [ebp - 0x4d4]
jmp 0x4386f1
mov edi, dword [ebp - 0x4d8]
add edx, 2
mov ecx, dword [ebp - 0x4b8]
mov eax, dword [ebp - 0x4dc]
jmp 0x4386a4
sub edx, dword [ebp - 0x45c]
mov esi, dword [ebp - 0x4bc]
sar edx, 1
cmp edx, 0xffffffff
je 0x43899e
cmp byte [ebp - 0x4b1], 0
lea ecx, [ebp - 0x4b0]
push ecx
push 0x20019
lea eax, [ebp - 0x458]
push 0
cmovne eax, esi
push eax
push dword [ebp - 0x4ac]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x438990
push 0x200
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00485800
add esp, 0xc
mov dword [ebp - 0x45c], 0x1fe
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x418]
push eax
push 0
push 0
push str.InstallLocation
push dword [ebp - 0x4b0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x438984
xorps xmm0, xmm0
mov dword [ebp - 0x464], eax
lea ecx, [ebp - 0x418]
mov dword [ebp - 0x460], eax
movups xmmword [ebp - 0x474], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4387d7
sub ecx, edx
lea eax, [ebp - 0x418]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x474]
call fcn.0040df90
push 0x4c6bb4
lea ecx, [ebp - 0x474]
mov byte [ebp - 4], 5
call fcn.0040d6d0
cmp dword [ebp - 0x478], 7
lea edx, [ebp - 0x48c]
mov ecx, dword [ebp - 0x460]
mov eax, ecx
cmova edx, dword [ebp - 0x48c]
mov edi, dword [ebp - 0x464]
sub eax, edi
mov esi, dword [ebp - 0x47c]
cmp esi, eax
ja 0x43887a
lea eax, [edi + esi]
cmp ecx, 7
mov dword [ebp - 0x464], eax
lea esi, [ebp - 0x474]
cmova esi, dword [ebp - 0x474]
mov eax, dword [ebp - 0x47c]
add eax, eax
push eax
lea ecx, [esi + edi*2]
push edx
push ecx
call fcn.00485270
mov eax, dword [ebp - 0x47c]
add esp, 0xc
add eax, edi
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x43888e
push esi
push edx
push dword [ebp - 0x4d0]
lea ecx, [ebp - 0x474]
push esi
call fcn.0040d970
mov esi, dword [ebp - 0x48c]
lea edx, [ebp - 0x474]
mov byte [ebp - 0x4e0], 0
lea ecx, [ebp - 0x504]
push dword [ebp - 0x4e0]
call fcn.0041bc40
add esp, 4
lea eax, [ebp - 0x518]
lea ecx, [ebp - 0x504]
push eax
call fcn.0041ca20
add esp, 4
movq xmm0, qword [eax]
movq qword [ebp - 0x4ec], xmm0
mov eax, dword [ebp - 0x4ec]
test eax, eax
je 0x4388ec
cmp eax, 1
setne byte [ebp - 0x4b1]
jmp 0x4388f3
mov byte [ebp - 0x4b1], 0
mov ecx, dword [ebp - 0x4f0]
cmp ecx, 7
jbe 0x438933
mov edx, dword [ebp - 0x504]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x438929
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438dbe
push ecx
push edx
call fcn.0048355d
add esp, 8
cmp byte [ebp - 0x4b1], 0
jne 0x438b59
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x460]
cmp ecx, 7
jbe 0x438984
mov edx, dword [ebp - 0x474]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x43897a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438dbe
push ecx
push edx
call fcn.0048355d
add esp, 8
push dword [ebp - 0x4b0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x458]
jmp 0x43899e
mov esi, dword [ebp - 0x4bc]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x444]
cmp eax, 7
jbe 0x4389dc
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x4389d2
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438dbe
push ecx
push esi
call fcn.0048355d
add esp, 8
mov eax, dword [ebp - 0x4cc]
inc eax
mov dword [ebp - 0x4cc], eax
cmp eax, dword [ebp - 0x41c]
jb 0x4384a8
mov esi, dword [ebp - 0x4c0]
mov edi, dword [ebp - 0x4c4]
push dword [ebp - 0x4ac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 4
mov dword [ebp - 0x4c0], esi
cmp esi, edi
jne 0x438410
mov eax, dword [ebp - 0x478]
mov esi, dword [ebp - 0x48c]
cmp eax, 7
jbe 0x438a5e
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x438a54
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438db9
push ecx
push esi
call fcn.0048355d
add esp, 8
mov ecx, dword [ebp - 0x42c]
cmp ecx, 7
jbe 0x438a9e
mov edx, dword [ebp - 0x440]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x438a94
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438db9
push ecx
push edx
call fcn.0048355d
add esp, 8
mov edx, dword [ebp - 0x428]
xor eax, eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
test edx, edx
je 0x438b16
mov ecx, dword [ebp - 0x420]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x438aee
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438db9
push ecx
push edx
call fcn.0048355d
add esp, 8
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x420], 0
mov ecx, dword [ebp - 0x494]
cmp ecx, 7
jbe 0x438d8f
mov edx, dword [ebp - 0x4a8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x438d85
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438db9
jmp 0x438d85
mov ecx, dword [ebp - 0x4d0]
lea eax, [ebp - 0x474]
cmp ecx, eax
je 0x438b83
cmp dword [ebp - 0x460], 7
push dword [ebp - 0x464]
cmova eax, dword [ebp - 0x474]
push eax
call fcn.0040db20
push dword [ebp - 0x4b0]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
push dword [ebp - 0x4ac]
call edi
mov ecx, dword [ebp - 0x460]
cmp ecx, 7
jbe 0x438bd9
mov edx, dword [ebp - 0x474]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x438bcf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438dbe
push ecx
push edx
call fcn.0048355d
add esp, 8
mov ecx, dword [ebp - 0x444]
xor eax, eax
mov dword [ebp - 0x464], 0
mov dword [ebp - 0x460], 7
mov word [ebp - 0x474], ax
cmp ecx, 7
jbe 0x438c36
mov edx, dword [ebp - 0x458]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x438c2c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438dbe
push ecx
push edx
call fcn.0048355d
add esp, 8
xor eax, eax
mov dword [ebp - 0x448], 0
mov word [ebp - 0x458], ax
mov eax, dword [ebp - 0x478]
mov dword [ebp - 0x444], 7
cmp eax, 7
jbe 0x438c8d
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x438c83
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438dbe
push ecx
push esi
call fcn.0048355d
add esp, 8
mov ecx, dword [ebp - 0x42c]
cmp ecx, 7
jbe 0x438ccd
mov edx, dword [ebp - 0x440]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x438cc3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438dbe
push ecx
push edx
call fcn.0048355d
add esp, 8
mov edx, dword [ebp - 0x428]
xor eax, eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
test edx, edx
je 0x438d45
mov ecx, dword [ebp - 0x420]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x438d1d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438dbe
push ecx
push edx
call fcn.0048355d
add esp, 8
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x420], 0
mov ecx, dword [ebp - 0x494]
cmp ecx, 7
jbe 0x438d81
mov edx, dword [ebp - 0x4a8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x438d77
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438dbe
push ecx
push edx
call fcn.0048355d
add esp, 8
mov al, 1
jmp 0x438d91
push ecx
push edx
call fcn.0048355d
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00483226
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00422630
call fcn.0040df00
call fcn.0048878f
call fcn.0048878f
call fcn.0048369b
int3