Function at 0x524f00
Capabilities:
Delete registry value
Set registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64b948
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
push eax
mov byte [ebp - 0x19], 0
mov byte [ebp - 4], 1
call fcn.0061fc90
push 0
lea ecx, [ebp - 0x18]
call fcn.0061fca3
mov eax, dword [eax + 0x14]
add eax, 0x76c
cmp eax, 0x7dc
jle 0x524f6b
push 0
lea ecx, [ebp - 0x18]
call fcn.0061fca3
mov eax, dword [eax + 0xc]
cmp eax, 7
jle 0x524f6b
mov byte [ebp - 0x19], 1
mov dword [ebp - 4], 0
call fcn.005315d0
mov esi, dword [ebp + 8]
mov ebx, eax
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x144]
push ebx
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x144]
push 0x100
push ecx
mov ecx, esi
call fcn.005257a0
cmp eax, 0xb
mov dword [ebp + 8], eax
jne 0x52505c
mov edx, dword [0x6f7b78]
mov dword [ebp - 0x18], edx
lea eax, [esi + 0x43e]
lea ecx, [ebp - 0x18]
push eax
push eax
mov eax, dword [0x6fd280]
mov byte [ebp - 4], 3
push eax
push ecx
call fcn.0061fae1
mov edx, dword [0x6fdb60]
mov eax, dword [ebp - 0x18]
add esp, 0x10
push 0x1004
push edx
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.00457010
add esp, 0x10
cmp eax, 6
jne 0x52503a
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x144]
push ebx
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x144]
push 0x100
push ecx
mov ecx, esi
mov dword [esi + 0x520], 0
call fcn.005257a0
lea ecx, [ebp - 0x18]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0
call fcn.00622d8a
jmp 0x52508c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00622d8a
mov eax, 0xb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x52508c
test ebx, ebx
jne 0x52508c
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x144]
push 1
rep stosd dword es:[edi], eax
lea edx, [ebp - 0x144]
push 0x100
push edx
mov ecx, esi
call fcn.005257a0
mov dword [ebp + 8], eax
lea ecx, [ebp - 0x30]
call fcn.00524830
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.00524830
mov edx, dword [0x6fcacc]
mov ecx, dword [0x6fd75c]
lea eax, [ebp - 0x14]
push 0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
push 0
push 0xf003f
neg edx
push 0
push 0
sbb edx, edx
push 0
add edx, 0x80000002
push ecx
push edx
mov byte [ebp - 4], 5
call ebx
mov edi, eax
test edi, edi
je 0x525275
cmp edi, 2
je 0x5251ad
mov eax, dword [0x6f7b78]
mov dword [ebp - 0x18], eax
mov eax, dword [0x6fcacc]
mov byte [ebp - 4], 6
test eax, eax
mov eax, str.CURRENT_USER
jne 0x525109
mov eax, str.MACHINE
mov ecx, dword [0x6fd75c]
lea edx, [ebp - 0x18]
push ecx
push eax
push 0x6c9ce8
push edx
call fcn.0061fae1
mov eax, dword [ebp - 0x18]
add esp, 0x10
lea ecx, [ebp - 0x30]
push eax
call fcn.005248e0
test eax, eax
je 0x52515f
mov eax, dword [0x6fcacc]
mov edx, dword [0x6fd75c]
lea ecx, [ebp - 0x14]
push 0
push ecx
push 0
neg eax
push 0xf003f
push 0
sbb eax, eax
push 0
push 0
add eax, 0x80000002
push edx
push eax
call ebx
mov edi, eax
test edi, edi
je 0x5251a1
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x30]
call fcn.005249b0
test eax, eax
je 0x5251a1
mov ecx, dword [0x6fcacc]
mov eax, dword [0x6fd75c]
lea edx, [ebp - 0x14]
push 0
push edx
push 0
neg ecx
push 0xf003f
push 0
sbb ecx, ecx
push 0
push 0
add ecx, 0x80000002
push eax
push ecx
call ebx
mov edi, eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.00622d8a
test edi, edi
je 0x525275
lea edx, [ebp - 0x14]
push 0
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareClassesCLSIDE6871B76_C3C8_44DD_B947_ABFFE144860D
push 0x80000001
call ebx
test eax, eax
je 0x525275
mov eax, dword [0x6f7b78]
mov dword [ebp - 0x18], eax
push str.SoftwareClassesCLSIDE6871B76_C3C8_44DD_B947_ABFFE144860D
lea ecx, [ebp - 0x18]
push str.CURRENT_USER_s
push ecx
mov byte [ebp - 4], 7
call fcn.0061fae1
mov edx, dword [ebp - 0x18]
add esp, 0xc
lea ecx, [ebp - 0x40]
push edx
call fcn.005248e0
test eax, eax
je 0x525269
lea eax, [ebp - 0x14]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareClassesCLSIDE6871B76_C3C8_44DD_B947_ABFFE144860D
push 0x80000001
call ebx
test eax, eax
je 0x525269
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.00622d8a
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.00524870
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.00524870
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.00622d8a
mov eax, dword [esi + 0x51c]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x525315
cmp ebx, 4
jne 0x525315
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0x518]
test eax, eax
je 0x5252db
mov eax, dword [esi + 8]
mov dword [esi + 0x514], 0
test eax, eax
je 0x5252c6
push esi
call fcn.00524f00
add esp, 4
test eax, eax
jne 0x5252e7
jmp 0x5255d0
push 0
push 0
push 0
push 0
push esi
push fcn.00524f00
call fcn.00626cae
jmp 0x5252e7
test esi, esi
je 0x5252e7
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.00524870
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.00524870
mov eax, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 0x19]
test al, al
je 0x52540b
cmp ebx, 0xc
ja case.0x52541c.3
xor eax, eax
mov al, byte [ebx + 0x5256c8]
jmp dword [eax*4 + 0x5256bc]
mov edx, dword [0x6fd3a0]
mov eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x144]
push 0x100
push ecx
push 0
push 0
push edx
push eax
call edi
mov eax, dword [esi + 0x50c]
test eax, eax
jle 0x5253cb
mov ecx, dword [esi + 0x510]
test ecx, ecx
jle 0x5253cb
mov eax, 0xc22e4507
push 4
imul ecx
add edx, ecx
lea eax, [ebp - 0x18]
sar edx, 0x10
mov ecx, edx
push eax
shr ecx, 0x1f
push 4
push 0
lea edx, [edx + ecx + 1]
mov ecx, dword [ebp - 0x14]
push str.Version
push ecx
mov dword [ebp - 0x18], edx
call edi
lea edx, [ebp - 0x20]
push edx
call fcn.0060b449
mov ecx, dword [ebp - 0x20]
mov eax, 0xc22e4507
imul ecx
add edx, ecx
add esp, 4
sar edx, 0x10
mov eax, edx
push 4
shr eax, 0x1f
add edx, eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edx
jmp 0x5254b7
mov eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.Version
push eax
call edi
mov ecx, dword [ebp - 0x14]
push str.Version32
push ecx
call edi
jmp case.0x52541c.3
mov eax, dword [0x6fd3a0]
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x144]
push 0x100
push edx
push 0
push 0
push eax
push ecx
jmp 0x5254fd
cmp ebx, 0xc
ja case.0x52541c.3
xor edx, edx
mov dl, byte [ebx + 0x5256e8]
jmp dword [edx*4 + 0x5256d8]
mov ecx, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x144]
push 0x100
push eax
push 0
push 0
push str.MData
push ecx
call edi
mov eax, dword [esi + 0x50c]
test eax, eax
jle 0x5253cb
mov ecx, dword [esi + 0x510]
test ecx, ecx
jle 0x5253cb
mov eax, 0xc22e4507
push 4
imul ecx
add edx, ecx
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 1]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x20], ecx
push edx
push 4
push 0
push str.Version
push eax
call edi
lea ecx, [ebp - 0x44]
push ecx
call fcn.0060b449
mov ecx, dword [ebp - 0x44]
mov eax, 0xc22e4507
imul ecx
add edx, ecx
add esp, 4
sar edx, 0x10
mov eax, edx
push 4
shr eax, 0x1f
add edx, eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x14]
push ecx
push 4
push 0
push str.Version32
push edx
call edi
jmp case.0x52541c.3
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x144]
push 0x100
push edx
push 0
push 0
push str.MData
push eax
jmp 0x5254fd
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x144]
push 0x100
push ecx
push 0
push 0
push str.MData
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esi + 0x518]
test eax, eax
je 0x52558a
test ebx, ebx
je 0x52551b
cmp ebx, 8
je 0x52551b
cmp ebx, 4
jne 0x52558a
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov dword [esi + 0x514], 0
je 0x52554c
mov eax, dword [esi + 8]
test eax, eax
je 0x52554c
push esi
call fcn.00524f00
add esp, 4
test eax, eax
jne 0x52555f
jmp 0x5255d0
push 0
push 0
push 0
push 0
push esi
push fcn.00524f00
call fcn.00626cae
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.00524870
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.00524870
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x51c]
test eax, eax
jne 0x52563c
cmp ebx, 8
jne 0x52563c
mov ecx, dword [ebp - 0x14]
mov eax, 1
push ecx
mov dword [esi + 0x51c], eax
mov dword [esi + 0x514], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 8]
test eax, eax
je 0x5255fb
push esi
call fcn.00524f00
add esp, 4
test eax, eax
jne 0x52560e
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.00524870
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.00524870
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push esi
push fcn.00524f00
call fcn.00626cae
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.00524870
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.00524870
mov eax, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esi + 8]
test esi, esi
je 0x525655
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
test edi, edi
jne 0x52567a
cmp ebx, 1
je 0x525672
cmp ebx, 2
je 0x525672
cmp ebx, 0xa
je 0x525672
cmp ebx, 7
je 0x525672
cmp ebx, 0xc
jne 0x52567a
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.00524870
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.00524870
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret