Function at 0x411c40
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f10b
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x5d2fec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x240], ecx
mov dword [ebp - 4], 0
mov ecx, 0x20019
mov dword [ebp - 0x244], 0
or ebx, 0xffffffff
or ecx, 0x100
mov esi, 0x5af8f0
mov dword [ebp - 0x248], ecx
call fcn.00417ce3
test eax, eax
je 0x4123a5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 1
test esi, 0xffff0000
jne 0x411ce5
movzx esi, si
push esi
call fcn.00419421
test eax, eax
je 0x411cf7
push esi
push eax
lea ecx, [ebp - 0x220]
call fcn.004066a0
jmp 0x411cf7
push 0
push 0x5af8f0
lea ecx, [ebp - 0x220]
call fcn.00406bd0
push ecx
mov ecx, esp
mov byte [ebp - 4], 2
push edi
mov dword [ebp - 0x230], 0
lea esi, [ebp - 0x220]
mov dword [ebp - 0x238], ecx
call fcn.004069a0
mov edx, esi
lea ecx, [ebp - 0x230]
call fcn.004047c0
mov ecx, esp
mov byte [ebp - 4], 3
lea eax, [ebp - 0x230]
mov dword [ebp - 0x238], ecx
push eax
call fcn.004069a0
call fcn.00404900
mov edi, dword [ebp - 0x220]
lea ecx, [ebp - 0x234]
add esp, 4
mov dword [ebp - 0x250], eax
push ecx
push dword [ebp - 0x248]
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412333
push 0x20a
push eax
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00551910
add esp, 0xc
mov dword [ebp - 0x22c], 0x20a
call fcn.00417ce3
test eax, eax
je 0x4123a5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x224], esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41230c
nop dword [eax]
nop dword [eax + eax]
inc dword [ebp - 0x23c]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x224]
push 0x5af300
push eax
call fcn.00406ff0
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00551910
mov esi, dword [ebp - 0x224]
add esp, 0x18
mov dword [ebp - 0x22c], 0x20a
mov ebx, dword [esi - 0xc]
test ebx, ebx
js 0x41239b
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x411e62
push ebx
lea ecx, [ebp - 0x224]
call fcn.00406e60
mov esi, dword [ebp - 0x224]
lea eax, [ebx + 1]
push eax
push esi
call fcn.00556e6f
add esp, 8
cmp ebx, dword [esi - 8]
jg 0x41239b
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
mov ecx, str.open
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411eae
test dx, dx
je 0x411eaa
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411eae
add eax, 4
add ecx, 4
test dx, dx
jne 0x411e88
xor eax, eax
jmp 0x411eb3
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x4122d8
mov ecx, str.runas
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411eed
test dx, dx
je 0x411ee9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411eed
add eax, 4
add ecx, 4
test dx, dx
jne 0x411ec7
xor eax, eax
jmp 0x411ef2
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x4122d8
mov ecx, str.runasuser
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411f2c
test dx, dx
je 0x411f28
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411f2c
add eax, 4
add ecx, 4
test dx, dx
jne 0x411f06
xor eax, eax
jmp 0x411f31
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x4122d8
mov ecx, 0x5b2154
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411f6b
test dx, dx
je 0x411f67
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411f6b
add eax, 4
add ecx, 4
test dx, dx
jne 0x411f45
xor eax, eax
jmp 0x411f70
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x4122d8
mov eax, str.powershell
mov ecx, esi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x411faa
test dx, dx
je 0x411fa6
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x411faa
add ecx, 4
add eax, 4
test dx, dx
jne 0x411f84
xor eax, eax
jmp 0x411faf
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x4122d8
push 0x5af8ec
lea eax, [ebp - 0x220]
mov dword [ebp - 0x228], 0
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.00406a20
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 5
push ecx
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00405ab0
add esp, 0x18
mov byte [ebp - 4], 7
or ebx, 0xffffffff
mov edx, dword [ebp - 0x24c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41201d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x284]
call fcn.0040c890
push ecx
mov ecx, esp
mov byte [ebp - 4], 8
lea eax, [ebp - 0x228]
mov dword [ebp - 0x238], ecx
push eax
call fcn.004069a0
mov edx, dword [ebp - 0x250]
lea ecx, [ebp - 0x254]
call fcn.004123f0
add esp, 4
push eax
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 9
call fcn.00406cf0
mov byte [ebp - 4], 8
mov eax, ebx
mov edx, dword [ebp - 0x254]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412086
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x280]
mov ebx, dword [ebp - 0x268]
add ebx, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x4120ee
cmp dword [ebx + 0xc], 0
jl 0x4120df
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x4120df
push edx
call fcn.00406c80
add esp, 4
mov dword [ebp - 0x238], eax
or ecx, 0xffffffff
lea edx, [ebx + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4120d4
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x238]
add eax, 0x10
mov dword [ebp - 0x268], eax
jmp 0x4120ee
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x268]
call fcn.00406bd0
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x284]
lea edx, [eax - 0x10]
lea ebx, [ecx - 0x10]
cmp edx, ebx
je 0x412156
cmp dword [ebx + 0xc], 0
jl 0x412147
mov ecx, dword [edx]
cmp ecx, dword [ebx]
jne 0x412147
push edx
call fcn.00406c80
add esp, 4
mov dword [ebp - 0x238], eax
or ecx, 0xffffffff
lea edx, [ebx + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41213c
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x238]
add eax, 0x10
mov dword [ebp - 0x284], eax
jmp 0x412156
push dword [eax - 0xc]
lea ecx, [ebp - 0x284]
push eax
call fcn.00406bd0
push ecx
mov ecx, esp
lea eax, [ebp - 0x280]
push eax
mov dword [ebp - 0x238], ecx
call fcn.004069a0
lea ecx, [ebp - 0x258]
call fcn.004031f0
add esp, 4
push eax
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 0xa
call fcn.00406cf0
mov byte [ebp - 4], 8
or eax, 0xffffffff
mov edx, dword [ebp - 0x258]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4121ab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x284]
call fcn.004136a0
push dword [ebp - 0x240]
lea ecx, [ebp - 0x264]
call fcn.00406cf0
mov ebx, dword [ebp - 0x260]
lea ecx, [esi - 0x10]
add ebx, 0xfffffff0
cmp ecx, ebx
je 0x412229
cmp dword [ebx + 0xc], 0
jl 0x41221a
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x41221a
push ecx
call fcn.00406c80
add esp, 4
mov dword [ebp - 0x238], eax
or ecx, 0xffffffff
lea edx, [ebx + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41220f
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x238]
add eax, 0x10
mov dword [ebp - 0x260], eax
jmp 0x412229
push dword [esi - 0xc]
lea ecx, [ebp - 0x260]
push esi
call fcn.00406bd0
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0x270]
add ebx, 0xfffffff0
lea edx, [eax - 0x10]
cmp edx, ebx
je 0x41228e
cmp dword [ebx + 0xc], 0
jl 0x41227f
mov ecx, dword [edx]
cmp ecx, dword [ebx]
jne 0x41227f
push edx
call fcn.00406c80
add esp, 4
mov dword [ebp - 0x238], eax
or ecx, 0xffffffff
lea edx, [ebx + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412274
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x238]
add eax, 0x10
mov dword [ebp - 0x270], eax
jmp 0x41228e
push dword [eax - 0xc]
lea ecx, [ebp - 0x270]
push eax
call fcn.00406bd0
sub esp, 0x2c
lea eax, [ebp - 0x284]
mov ecx, esp
push eax
call fcn.0040d1a0
call fcn.0040f000
add esp, 0x2c
lea ecx, [ebp - 0x284]
call fcn.0040ca30
mov byte [ebp - 4], 4
or ebx, 0xffffffff
mov edx, dword [ebp - 0x228]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4122db
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4122db
or ebx, 0xffffffff
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp - 0x23c]
push eax
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x411df0
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x412333
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x230]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412354
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x41236f
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x244]
mov edi, dword [ebp - 0x240]
inc esi
add edi, 4
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x240], edi
cmp esi, 9
jge 0x4123af
mov ecx, dword [ebp - 0x248]
jmp 0x411c8f
push 0x80070057
call fcn.00407010
push 0x80004005
call fcn.00407010
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4123ce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054e73a
mov esp, ebp
pop ebp
ret