Function at 0x10021f10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008710f
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x100bc1b4]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x21c]
push eax
call fcn.10033da0
add esp, 4
mov dword [ebp - 4], 0
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x211], al
mov dword [ebp - 4], 0xffffffff
or ebx, 0xffffffff
mov esi, dword [ebp - 0x218]
test esi, esi
je 0x10021f9f
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x10021f9f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x10021f9f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp byte [ebp - 0x211], 0
je 0x10022026
lea eax, [ebp - 0x21c]
push eax
call fcn.10033da0
add esp, 4
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c8]
mov edi, dword [eax]
call fcn.10008420
mov esi, eax
mov byte [ebp - 4], 2
push str.IsAutoRun
push esi
call fcn.1000a400
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 8]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c8]
call fcn.1000a600
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x218]
test esi, esi
je 0x10022026
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10022026
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x10022026
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.100592a0
mov eax, dword [ebp - 0x22c]
push dword [eax]
lea eax, [ebp - 0x210]
push str.SYSTEMCurrentControlSetServices_s
push 0xff
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 4], 4
lea eax, [ebp - 0x210]
push 0x20219
push eax
push reloc.WS2_32.dll_bind
lea ecx, [ebp - 0x228]
call fcn.100222f0
mov edi, dword [ebp - 0x228]
test eax, eax
je 0x10022187
lea eax, [ebp - 0x21c]
push eax
call fcn.10033da0
add esp, 4
mov byte [ebp - 4], 5
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x211], al
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x218]
test esi, esi
je 0x100220ff
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x100220ff
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x100220f9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x211]
test al, al
je 0x10022180
lea eax, [ebp - 0x21c]
push eax
call fcn.10033da0
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c8]
mov edi, dword [eax]
call fcn.10008420
mov esi, eax
mov byte [ebp - 4], 7
push str.reg_read_failed
push esi
call fcn.1000a400
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 8]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c8]
call fcn.1000a600
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x218]
test esi, esi
je 0x1002217a
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1002217a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x1002217a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edi, dword [ebp - 0x228]
xor ebx, ebx
jmp 0x100222a0
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], 2
push eax
lea eax, [ebp - 0x230]
mov dword [ebp - 0x22c], 4
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push str.Start
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x21c]
push eax
call fcn.10033da0
add esp, 4
mov byte [ebp - 4], 9
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x211], al
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x218]
test esi, esi
je 0x10022213
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x10022213
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1002220d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x211]
test al, al
je 0x10022294
lea eax, [ebp - 0x21c]
push eax
call fcn.10033da0
add esp, 4
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2c8]
mov edi, dword [eax]
call fcn.10008420
mov esi, eax
mov byte [ebp - 4], 0xb
push str.Leave_IsAutoRun
push esi
call fcn.1000a400
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 8]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2c8]
call fcn.1000a600
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x218]
test esi, esi
je 0x1002228e
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1002228e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x1002228e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edi, dword [ebp - 0x228]
xor ebx, ebx
cmp dword [ebp - 0x230], 2
sete bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x100222bc
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x228], 0
mov eax, ebx
mov dword [ebp - 0x224], 0
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.100536aa
mov esp, ebp
pop ebp
ret 4