Function at 0x401820
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409108
push 0x402918
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4ac
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov edi, 0x378
mov dword [ebp - 0x398], edi
lea eax, [ebp - 0x1c]
push eax
push 0xf003f
push ebx
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40188c
mov eax, 0xfffffcdd
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x398]
push eax
lea ecx, [ebp - 0x394]
push ecx
push ebx
push ebx
push 0x40a4b0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401ab3
cmp dword [ebp - 0x398], edi
jne 0x401ab3
lea eax, [ebp - 0x290]
mov dword [ebp - 0x39c], eax
cmp dword [ebp - 0x268], 1
jne 0x401a92
cmp dword [ebp - 0x244], 2
jne 0x401a92
mov ecx, dword [ebp - 0x26c]
push ecx
push 0x40a4ac
lea edx, [ebp - 0x3b4]
push edx
call fcn.00402a8d
add esp, 0xc
cmp dword [ebp + 0x10], ebx
push 1
push 0x40a408
push 0x80000002
jne 0x4019db
lea edi, [ebp - 0x394]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea eax, [ebp - 0x394]
push eax
lea ecx, [ebp - 0x3b4]
push ecx
mov ecx, esi
call fcn.00401bb0
test eax, eax
jne 0x401968
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call fcn.00402862
add esp, 8
mov eax, 0xfffffcda
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edx, [ebp - 0x394]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x398]
push ecx
lea edx, [ebp - 0x394]
push edx
push 3
push ebx
push 0x40a4b0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x401a92
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call fcn.00402862
add esp, 8
mov eax, 0xfffffcd9
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x104
lea edx, [ebp - 0x4b8]
push edx
lea eax, [ebp - 0x3b4]
push eax
mov ecx, esi
call fcn.00401af0
test eax, eax
jne 0x401a1f
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call fcn.00402862
add esp, 8
mov eax, 0xfffffcdb
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edi, [ebp - 0x4b8]
lea edx, [ebp - 0x394]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x398]
push ecx
lea edx, [ebp - 0x394]
push edx
push 3
push ebx
push 0x40a4b0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x401a92
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call fcn.00402862
add esp, 8
mov eax, 0xfffffcd9
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 4], 0xffffffff
call fcn.00401ad9
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call fcn.00402862
add esp, 8
mov eax, 0xfffffcdb
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc