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

Disassembly:
push 0xffffffffffffffff
push 0x61b93b
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0x428], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x440]
mov dword fs:[0], eax
xor ebp, ebp
xor eax, eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], ebp
mov word [esp + 0x24], ax
mov dword [esp + 0x448], ebp
mov edi, dword [esp + 0x450]
mov ecx, str.IDMMsgHost.json
cmp edi, ebp
jne 0x4137dc
mov ecx, str.IDMMsgHostMoz.json
mov eax, dword [0x70f66c]
cmp eax, ebp
jne 0x4137ea
mov eax, 0x70f670
push ebp
push ecx
push eax
push 0x64ed70
lea ecx, [esp + 0x30]
call fcn.00402300
mov eax, str.SOFTWAREGoogleChromeNativeMessagingHostscom.tonec.idm
cmp edi, ebp
jne 0x413809
mov eax, str.SOFTWAREMozillaNativeMessagingHostscom.tonec.idm
mov esi, dword [esp + 0x454]
xor ebx, ebx
cmp edi, ebp
setne bl
mov edx, esi
lea ecx, [esp + 0x14]
push ecx
add ebx, 0x80000001
neg edx
sbb edx, edx
and edx, 0x100
add edx, 0x20019
push edx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push ebx
call ebp
test eax, eax
jne 0x4138aa
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
push 0x64fbb8
push edx
mov dword [esp + 0x34], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x413894
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x41387a
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.005fdd2a
add esp, 8
test eax, eax
jne 0x413894
mov dword [esp + 0x18], 1
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x18], 0
jne 0x413a28
mov eax, str.SOFTWAREGoogleChromeNativeMessagingHosts
test edi, edi
jne 0x4138b8
mov eax, str.SOFTWAREMozillaNativeMessagingHosts
neg esi
sbb esi, esi
lea edx, [esp + 0x14]
push edx
and esi, 0x100
add esi, 0xf003f
push esi
push 0
push eax
push ebx
call ebp
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4139a6
cmp dword [esp + 0x450], 0
jne 0x41393a
lea eax, [esp + 0x14]
push eax
push esi
push 0
push str.SOFTWAREMozilla
push 0x80000001
call ebp
test eax, eax
jne 0x413a28
mov ecx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call ebp
mov eax, str.SOFTWAREMozillaNativeMessagingHosts
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
push esi
push 0
push 0x64f8bc
push 0
push eax
push ebx
call edi
test eax, eax
je 0x4139ac
jmp 0x413a28
push 0
lea edx, [esp + 0x18]
push edx
push 0
push esi
push 0
push 0x64f8bc
push 0
push str.SoftwareGoogle
push 0x80000002
call edi
test eax, eax
jne 0x413a28
mov eax, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebp
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
push esi
push 0
push 0x64f8bc
push 0
push str.SoftwareGoogleChrome
push 0x80000002
call edi
test eax, eax
jne 0x413a28
mov edx, dword [esp + 0x14]
push edx
call ebp
mov eax, str.SOFTWAREGoogleChromeNativeMessagingHosts
jmp 0x41391a
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 0x1c]
push edx
push 0
push esi
push 0
push 0x64f8bc
push 0
push str.com.tonec.idm
push eax
call edi
test eax, eax
je 0x4139d6
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x413a26
mov edx, dword [esp + 0x20]
mov eax, edx
test edx, edx
jne 0x4139e4
lea eax, [esp + 0x24]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4139e7
sub eax, esi
sar eax, 1
mov ecx, edx
test edx, edx
jne 0x413a00
lea ecx, [esp + 0x24]
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x18]
push edx
push ecx
push 1
push 0
push 0x64fbb8
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x18]
push ecx
call ebp
mov edx, dword [esp + 0x14]
push edx
call ebp
mov dword [esp + 0x448], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.004011f0
mov ecx, dword [esp + 0x440]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.005f85e7
add esp, 0x438
ret