Function at 0x401de0
Capabilities:
Print debug messages
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x31c
mov eax, 4
push ebx
push ebp
mov ebp, dword [esp + 0x328]
mov ebx, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0xc]
push edi
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push str.MirrorDriver
push ebp
mov dword [esp + 0x34], 0
call esi
cmp dword [esp + 0x1c], 1
jne 0x401e3d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret 0xc
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x20]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
push edx
push 0
push 0x40d104
push ebp
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x30], 7
call esi
mov esi, eax
test esi, esi
je 0x401ead
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [esp + 0x28]
push str.RegQueryValueEx__d__d___r_n
push eax
call fcn.00405556
add esp, 0x10
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret 0xc
cmp dword [esp + 0x18], 1
jne 0x401eb8
inc dword [esp + 0x10]
mov edx, dword [esp + 0x334]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x124]
rep stosd dword es:[edi], eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + 0x124]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x14], esi
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [esp + 0x20]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401f23
test cl, cl
je 0x401f1f
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401f23
add eax, 2
add esi, 2
test cl, cl
jne 0x401eff
xor eax, eax
jmp 0x401f28
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402001
mov edx, dword [esp + 0x10]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x228]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x228]
push eax
push ecx
lea eax, [esp + 0x28]
push edx
push eax
mov ecx, ebx
mov dword [esp + 0x24], 0x104
call fcn.00401b10
lea edi, [esp + 0x124]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esp + 0x228]
lea edi, [esp + ecx + 0x125]
mov ecx, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x124]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + edx + 1]
lea ecx, [esp + 0x124]
push eax
push ecx
push 7
push 0
push 0x40d104
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x402001
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea edx, [esp + 0x28]
push str.RegSetValueEx__d__d___r_n
push edx
call fcn.00405556
add esp, 0x10
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x31c
ret 0xc