Function at 0x417200
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x46900c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, dword [0x463318]
mov dword [ebp - 0x1c], eax
mov ecx, dword [0x46331c]
mov dword [ebp - 0x18], ecx
mov edx, dword [0x463320]
mov dword [ebp - 0x14], edx
mov eax, dword [0x463324]
mov dword [ebp - 0x10], eax
mov ecx, dword [0x463328]
mov dword [ebp - 0xc], ecx
mov edx, dword [0x46332c]
mov dword [ebp - 8], edx
push 0
lea eax, [ebp - 0x390]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x398], eax
cmp dword [ebp - 0x398], 0
je 0x417284
xor eax, eax
jmp 0x417ca9
push 0x40
push 0
lea edx, [ebp - 0x5c]
push edx
call fcn.0042c590
add esp, 0xc
mov dword [ebp - 0x36c], 0x40
mov dword [ebp - 0x370], 1
push 0x40
push 0
lea eax, [ebp - 0x5c]
push eax
call fcn.0042c590
add esp, 0xc
lea ecx, [ebp - 0x36c]
push ecx
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x370]
push eax
push 0
push 0x463330
mov ecx, dword [ebp - 0x390]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x398], eax
cmp dword [ebp - 0x398], 0
je 0x4174e3
lea edx, [ebp - 0x38c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 0x38c]
xor edi, edi
xor edx, edx
mov eax, dword [ebp - 0x388]
mov cl, 0x20
call fcn.0044f600
add esi, eax
adc edi, edx
mov dword [ebp - 0x3b0], esi
mov dword [ebp - 0x3ac], edi
mov eax, dword [ebp - 0x3b0]
sub eax, 0xd53e8000
mov ecx, dword [ebp - 0x3ac]
sbb ecx, 0x19db1de
mov dword [ebp - 0x3b0], eax
mov dword [ebp - 0x3ac], ecx
push 0
push 0xa
mov edx, dword [ebp - 0x3ac]
push edx
mov eax, dword [ebp - 0x3b0]
push eax
call fcn.0044f1b0
mov dword [ebp - 0x3b0], eax
mov dword [ebp - 0x3ac], edx
push 0x40
push 0
lea ecx, [ebp - 0x450]
push ecx
call fcn.0042c590
add esp, 0xc
lea edx, [ebp - 0x384]
push edx
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x417454
mov eax, dword [ebp - 0x3ac]
push eax
mov ecx, dword [ebp - 0x3b0]
push ecx
mov edx, 1
imul eax, edx, 7
movzx ecx, byte [ebp + eax - 0x37c]
push ecx
mov edx, 1
imul eax, edx, 6
movzx ecx, byte [ebp + eax - 0x37c]
push ecx
mov edx, 1
imul eax, edx, 5
movzx ecx, byte [ebp + eax - 0x37c]
push ecx
mov edx, 1
shl edx, 2
movzx eax, byte [ebp + edx - 0x37c]
push eax
mov ecx, 1
imul edx, ecx, 3
movzx eax, byte [ebp + edx - 0x37c]
push eax
mov ecx, 1
shl ecx, 1
movzx edx, byte [ebp + ecx - 0x37c]
push edx
mov eax, 1
shl eax, 0
movzx ecx, byte [ebp + eax - 0x37c]
push ecx
mov edx, 1
imul eax, edx, 0
movzx ecx, byte [ebp + eax - 0x37c]
push ecx
movzx edx, word [ebp - 0x37e]
push edx
movzx eax, word [ebp - 0x380]
push eax
mov ecx, dword [ebp - 0x384]
push ecx
push str._08X_04X_04x_02X_02X_02X_02X_02X_02X_02X_02X_llu
push 0x40
lea edx, [ebp - 0x5c]
push edx
call fcn.00412990
add esp, 0x40
jmp 0x417477
mov eax, dword [ebp - 0x3ac]
push eax
mov ecx, dword [ebp - 0x3b0]
push ecx
push 0
push str._032u_llu
push 0x40
lea edx, [ebp - 0x3c]
push edx
call fcn.00412990
add esp, 0x18
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x3b4], eax
mov ecx, dword [ebp - 0x3b4]
add ecx, 1
mov dword [ebp - 0x3f0], ecx
mov edx, dword [ebp - 0x3b4]
mov al, byte [edx]
mov byte [ebp - 0x3a2], al
add dword [ebp - 0x3b4], 1
cmp byte [ebp - 0x3a2], 0
jne 0x41748f
mov ecx, dword [ebp - 0x3b4]
sub ecx, dword [ebp - 0x3f0]
mov dword [ebp - 0x3f4], ecx
mov edx, dword [ebp - 0x3f4]
add edx, 1
push edx
lea eax, [ebp - 0x5c]
push eax
push 1
push 0
push str.Guid
mov ecx, dword [ebp - 0x390]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [ebp - 0x5c]
push edx
mov ecx, 0x46c170
call fcn.0041b440
mov byte [0x46b272], 0
mov byte [0x46b270], 0
push 0x104
push 0
lea eax, [ebp - 0x160]
push eax
call fcn.0042c590
add esp, 0xc
mov dword [ebp - 0x370], 1
mov dword [ebp - 0x36c], 0x104
lea ecx, [ebp - 0x36c]
push ecx
lea edx, [ebp - 0x160]
push edx
lea eax, [ebp - 0x370]
push eax
push 0
push str.InstallFilename
mov ecx, dword [ebp - 0x390]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x398], eax
cmp dword [ebp - 0x398], 0
jne 0x417b45
lea edx, [ebp - 0x160]
mov dword [ebp - 0x3c0], edx
mov eax, dword [ebp - 0x3c0]
add eax, 1
mov dword [ebp - 0x3f8], eax
mov ecx, dword [ebp - 0x3c0]
mov dl, byte [ecx]
mov byte [ebp - 0x39d], dl
add dword [ebp - 0x3c0], 1
cmp byte [ebp - 0x39d], 0
jne 0x417580
mov eax, dword [ebp - 0x3c0]
sub eax, dword [ebp - 0x3f8]
mov dword [ebp - 0x3fc], eax
mov ecx, dword [ebp - 0x3fc]
mov dword [ebp - 0x3a8], ecx
cmp dword [ebp - 0x3a8], 4
jle 0x417664
mov edx, dword [ebp - 0x3a8]
movsx eax, byte [ebp + edx - 0x164]
cmp eax, 0x2e
jne 0x417664
mov ecx, dword [ebp - 0x3a8]
movsx edx, byte [ebp + ecx - 0x163]
push edx
call fcn.00430e80
add esp, 4
cmp eax, 0x65
jne 0x417664
mov eax, dword [ebp - 0x3a8]
movsx ecx, byte [ebp + eax - 0x162]
push ecx
call fcn.00430e80
add esp, 4
cmp eax, 0x78
jne 0x417664
mov edx, dword [ebp - 0x3a8]
movsx eax, byte [ebp + edx - 0x161]
push eax
call fcn.00430e80
add esp, 4
cmp eax, 0x65
jne 0x417664
mov ecx, dword [ebp - 0x3a8]
sub ecx, 4
mov dword [ebp - 0x3e8], ecx
cmp dword [ebp - 0x3e8], 0x104
jae 0x417651
jmp 0x417656
call fcn.0042938a
mov edx, dword [ebp - 0x3e8]
mov byte [ebp + edx - 0x160], 0
push 0x463390
lea eax, [ebp - 0x160]
push eax
call fcn.004127f0
add esp, 8
mov dword [ebp - 0x3ec], eax
lea ecx, [ebp - 0x394]
push ecx
push 0x463394
lea edx, [ebp - 0x160]
push edx
call fcn.00430c42
add esp, 0xc
mov ecx, 4
imul edx, ecx, 0
mov dword [ebp + edx - 0x3e0], eax
mov dword [ebp - 0x39c], 0
mov eax, dword [ebp - 0x39c]
cmp dword [ebp + eax*4 - 0x3e0], 0
je 0x4176ff
cmp dword [ebp - 0x39c], 5
jge 0x4176ff
mov ecx, dword [ebp - 0x39c]
add ecx, 1
mov dword [ebp - 0x39c], ecx
lea edx, [ebp - 0x394]
push edx
push 0x463398
push 0
call fcn.00430c42
add esp, 0xc
mov ecx, dword [ebp - 0x39c]
mov dword [ebp + ecx*4 - 0x3e0], eax
jmp 0x4176b2
push 0x104
push 0
lea edx, [ebp - 0x368]
push edx
call fcn.0042c590
add esp, 0xc
mov dword [ebp - 0x370], 1
mov dword [ebp - 0x36c], 0x104
lea eax, [ebp - 0x36c]
push eax
lea ecx, [ebp - 0x368]
push ecx
lea edx, [ebp - 0x370]
push edx
push 0
push 0x46339c
mov eax, dword [ebp - 0x390]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x3cc], eax
cmp dword [ebp - 0x3cc], 0
jne 0x417772
lea ecx, [ebp - 0x368]
push ecx
mov ecx, 0x46c170
call fcn.0041b470
cmp dword [ebp - 0x39c], 2
jle 0x41795d
mov edx, 4
shl edx, 0
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + edx - 0x3e0]
movsx eax, byte [edx + ecx]
test eax, eax
je 0x417850
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + ecx - 0x3e0]
push edx
mov ecx, 0x46c170
call fcn.0041b4d0
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + eax - 0x3e0]
mov dword [ebp - 0x3bc], ecx
mov edx, dword [ebp - 0x3bc]
add edx, 1
mov dword [ebp - 0x400], edx
mov eax, dword [ebp - 0x3bc]
mov cl, byte [eax]
mov byte [ebp - 0x39e], cl
add dword [ebp - 0x3bc], 1
cmp byte [ebp - 0x39e], 0
jne 0x4177e0
mov edx, dword [ebp - 0x3bc]
sub edx, dword [ebp - 0x400]
mov dword [ebp - 0x404], edx
mov eax, dword [ebp - 0x404]
add eax, 1
push eax
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + ecx - 0x3e0]
push edx
push 1
push 0
push 0x4633a4
mov eax, dword [ebp - 0x390]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov byte [0x46b270], 1
mov byte [0x46b273], 1
jmp 0x417891
push 0x4633ac
mov ecx, 0x46c170
call fcn.0041b4d0
mov ecx, 1
add ecx, 6
push ecx
push 0x4633b4
push 1
push 0
push 0x4633bc
mov edx, dword [ebp - 0x390]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov byte [0x46b272], 1
mov byte [0x46b273], 0
cmp dword [ebp - 0x3cc], 0
je 0x41795b
mov eax, 4
shl eax, 1
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + eax - 0x3e0]
movsx ecx, byte [eax + edx]
test ecx, ecx
je 0x41795b
mov edx, 4
shl edx, 1
mov eax, dword [ebp + edx - 0x3e0]
push eax
mov ecx, 0x46c170
call fcn.0041b470
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp + ecx - 0x3e0]
mov dword [ebp - 0x3b8], edx
mov eax, dword [ebp - 0x3b8]
add eax, 1
mov dword [ebp - 0x408], eax
mov ecx, dword [ebp - 0x3b8]
mov dl, byte [ecx]
mov byte [ebp - 0x39f], dl
add dword [ebp - 0x3b8], 1
cmp byte [ebp - 0x39f], 0
jne 0x4178fc
mov eax, dword [ebp - 0x3b8]
sub eax, dword [ebp - 0x408]
mov dword [ebp - 0x40c], eax
mov ecx, dword [ebp - 0x40c]
add ecx, 1
push ecx
mov edx, 4
shl edx, 1
mov eax, dword [ebp + edx - 0x3e0]
push eax
push 1
push 0
push 0x4633c4
mov ecx, dword [ebp - 0x390]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x41799e
push 0x4633cc
mov ecx, 0x46c170
call fcn.0041b4d0
mov edx, 1
add edx, 6
push edx
push 0x4633d4
push 1
push 0
push str.Channel
mov eax, dword [ebp - 0x390]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov byte [0x46b272], 1
mov byte [0x46b273], 0
mov dword [ebp - 0x374], 0
mov dword [ebp - 0x370], 4
mov dword [ebp - 0x36c], 4
lea ecx, [ebp - 0x36c]
push ecx
lea edx, [ebp - 0x374]
push edx
lea eax, [ebp - 0x370]
push eax
push 0
push 0x4633e4
mov ecx, dword [ebp - 0x390]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x3cc], eax
cmp dword [ebp - 0x3cc], 0
jne 0x417a9f
mov edx, dword [ebp - 0x374]
push edx
mov ecx, 0x46c170
call fcn.0041b600
cmp dword [ebp - 0x374], 0
jbe 0x417a9a
cmp dword [ebp - 0x3ec], 0
je 0x417a9a
cmp dword [ebp - 0x39c], 3
jle 0x417a9a
mov eax, 4
imul ecx, eax, 0
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + ecx - 0x3e0]
movsx edx, byte [ecx + eax]
test edx, edx
je 0x417a61
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + ecx - 0x3e0]
push edx
mov ecx, 0x46c170
call fcn.0041b5a0
mov eax, 4
imul ecx, eax, 3
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + ecx - 0x3e0]
movsx edx, byte [ecx + eax]
test edx, edx
je 0x417a9a
mov eax, 4
imul ecx, eax, 3
mov edx, dword [ebp + ecx - 0x3e0]
push edx
mov ecx, 0x46c170
call fcn.0041b5d0
jmp 0x417b45
cmp dword [ebp - 0x3ec], 0
je 0x417b39
cmp dword [ebp - 0x39c], 3
jle 0x417b39
push 1
mov ecx, 0x46c170
call fcn.0041b600
mov eax, 4
imul ecx, eax, 0
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + ecx - 0x3e0]
movsx edx, byte [ecx + eax]
test edx, edx
je 0x417afe
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + ecx - 0x3e0]
push edx
mov ecx, 0x46c170
call fcn.0041b5a0
mov eax, 4
imul ecx, eax, 3
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + ecx - 0x3e0]
movsx edx, byte [ecx + eax]
test edx, edx
je 0x417b37
mov eax, 4
imul ecx, eax, 3
mov edx, dword [ebp + ecx - 0x3e0]
push edx
mov ecx, 0x46c170
call fcn.0041b5d0
jmp 0x417b45
push 0
mov ecx, 0x46c170
call fcn.0041b600
push 0x104
push 0
lea eax, [ebp - 0x264]
push eax
call fcn.0042c590
add esp, 0xc
mov dword [ebp - 0x370], 1
mov dword [ebp - 0x36c], 0x104
lea ecx, [ebp - 0x36c]
push ecx
lea edx, [ebp - 0x264]
push edx
lea eax, [ebp - 0x370]
push eax
push 0
push str.LogicBear
mov ecx, dword [ebp - 0x390]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x398], eax
cmp dword [ebp - 0x398], 0
jne 0x417c4b
mov dword [ebp - 0x3c4], str.W2e3Ux891
lea edx, [ebp - 0x264]
mov dword [ebp - 0x3c8], edx
mov eax, dword [ebp - 0x3c8]
mov cl, byte [eax]
mov byte [ebp - 0x3a0], cl
mov edx, dword [ebp - 0x3c4]
cmp cl, byte [edx]
jne 0x417c1f
cmp byte [ebp - 0x3a0], 0
je 0x417c13
mov eax, dword [ebp - 0x3c8]
mov cl, byte [eax + 1]
mov byte [ebp - 0x3a1], cl
mov edx, dword [ebp - 0x3c4]
cmp cl, byte [edx + 1]
jne 0x417c1f
add dword [ebp - 0x3c8], 2
add dword [ebp - 0x3c4], 2
cmp byte [ebp - 0x3a1], 0
jne 0x417bc1
mov dword [ebp - 0x3e4], 0
jmp 0x417c2a
sbb eax, eax
or eax, 1
mov dword [ebp - 0x3e4], eax
mov ecx, dword [ebp - 0x3e4]
mov dword [ebp - 0x410], ecx
cmp dword [ebp - 0x410], 0
jne 0x417c4b
push 1
mov ecx, 0x46c170
call fcn.0041b620
push 0
push 0
push 0
push 0
push 0x463404
mov edx, dword [ebp - 0x390]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x398], eax
cmp dword [ebp - 0x398], 0
je 0x417c7d
mov byte [0x46b49a], 1
jmp 0x417c84
mov byte [0x46b49a], 0
cmp dword [ebp - 0x390], 0
je 0x417ca4
mov eax, dword [ebp - 0x390]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x390], 0
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004291f2
mov esp, ebp
pop ebp
ret