Function at 0x109dc38
Capabilities:
Query or enumerate registry value
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x4038
call fcn.0107a6d0
mov eax, dword [0x10e607c]
and dword [ebp - 0x4024], 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4034], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x401c], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov dword [ebp - 0x4028], eax
xor eax, eax
mov esi, ecx
push edi
inc eax
cmp dword [esi], 0
mov edi, edx
mov dword [ebp - 0x4030], esi
mov dword [ebp - 0x4038], edi
mov dword [ebp - 0x402c], eax
jne 0x109dcba
push eax
mov ebx, 0x400
push ebx
call dword [sym.imp.msvcrt.dll_calloc]
test eax, eax
pop ecx
pop ecx
mov dword [esi], eax
jne 0x109dcb1
push 0xdac
jmp 0x109e002
and dword [ebp - 0x402c], 0
mov dword [edi], ebx
mov eax, dword [edi]
mov ebx, dword [esi]
mov dword [ebp - 0x4010], eax
jmp 0x109dcf6
cmp word [ebx], 0
je 0x109dcfa
push ebx
call dword [sym.imp.msvcrt.dll_wcslen]
mov ecx, 0x7fffffff
sub ecx, eax
mov eax, dword [ebp - 0x4010]
lea eax, [eax + ecx*2]
push ebx
mov dword [ebp - 0x4010], eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
pop ecx
lea ebx, [ebx + eax*2 + 2]
test ebx, ebx
jne 0x109dcc6
mov eax, dword [ebp - 0x401c]
cmp dword [eax], 0
jne 0x109dd2c
push 1
push 0x400
call dword [sym.imp.msvcrt.dll_calloc]
test eax, eax
pop ecx
pop ecx
mov ecx, dword [ebp - 0x401c]
mov dword [ecx], eax
je 0x109dca7
mov eax, dword [ebp - 0x4028]
mov dword [eax], 0x400
mov eax, dword [ebp - 0x401c]
mov eax, dword [eax]
test eax, eax
mov ecx, dword [ebp - 0x4028]
mov ecx, dword [ecx]
mov dword [ebp - 0x4008], eax
mov dword [ebp - 0x400c], ecx
je 0x109dd99
jmp 0x109dd54
mov eax, dword [ebp - 0x4008]
cmp word [eax], 0
je 0x109dd99
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
push dword [ebp - 0x4008]
mov ecx, 0x7fffffff
sub ecx, eax
mov eax, dword [ebp - 0x400c]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x400c], eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x4008]
lea eax, [ecx + eax*2 + 2]
test eax, eax
mov dword [ebp - 0x4008], eax
jne 0x109dd4e
mov eax, 0x1000
mov dword [ebp - 0x4020], eax
mov dword [ebp - 0x4014], eax
lea eax, [ebp - 0x4014]
push eax
lea eax, [ebp - 0x4004]
push eax
push 0
push 0
lea eax, [ebp - 0x4020]
push eax
lea eax, [ebp - 0x2004]
push eax
push dword [ebp - 0x4024]
push dword [ebp - 0x4034]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc dword [ebp - 0x4024]
test eax, eax
jne 0x109e010
cmp word [ebp - 0x402c], ax
je 0x109de53
mov eax, dword [esi]
test eax, eax
mov dword [ebp - 0x4018], eax
je 0x109defb
jmp 0x109de0b
mov eax, dword [ebp - 0x4018]
cmp word [eax], 0
je 0x109defb
lea ecx, [ebp - 0x2004]
push ecx
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x109dd99
push dword [ebp - 0x4018]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
mov ecx, dword [ebp - 0x4018]
lea eax, [ecx + eax*2 + 2]
test eax, eax
mov dword [ebp - 0x4018], eax
jne 0x109de05
jmp 0x109defb
mov eax, dword [ebp - 0x4020]
add eax, eax
cmp eax, dword [ebp - 0x4010]
jb 0x109debb
add dword [edi], 0x400
push dword [edi]
push dword [esi]
call dword [sym.imp.msvcrt.dll_realloc]
test eax, eax
pop ecx
pop ecx
je 0x109dfda
mov dword [esi], eax
mov ebx, eax
mov eax, dword [edi]
mov dword [ebp - 0x4010], eax
cmp word [ebx], 0
je 0x109debb
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
push ebx
call esi
mov ecx, 0x7fffffff
sub ecx, eax
mov eax, dword [ebp - 0x4010]
lea eax, [eax + ecx*2]
push ebx
mov dword [ebp - 0x4010], eax
call esi
lea ebx, [ebx + eax*2 + 2]
test ebx, ebx
pop ecx
pop ecx
jne 0x109de89
lea eax, [ebp - 0x2004]
push eax
push ebx
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
mov ecx, dword [ebp - 0x4010]
lea ebx, [ebx + eax*2 + 2]
and word [ebx], 0
mov eax, 0x7fffffff
add esp, 0xc
sub eax, dword [ebp - 0x4020]
lea eax, [ecx + eax*2]
mov dword [ebp - 0x4010], eax
mov eax, dword [ebp - 0x4014]
cmp eax, dword [ebp - 0x400c]
jb 0x109df81
mov esi, dword [ebp - 0x4028]
add dword [esi], 0x400
push dword [esi]
mov edi, dword [ebp - 0x401c]
push dword [edi]
call dword [sym.imp.msvcrt.dll_realloc]
test eax, eax
pop ecx
pop ecx
je 0x109dff0
mov dword [edi], eax
mov edi, eax
mov eax, dword [esi]
mov dword [ebp - 0x4008], edi
mov dword [ebp - 0x400c], eax
jmp 0x109df49
mov edi, dword [ebp - 0x4008]
cmp word [edi], 0
je 0x109df81
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
push edi
call esi
mov ecx, 0x7fffffff
sub ecx, eax
mov eax, dword [ebp - 0x400c]
lea eax, [eax + ecx*2]
push edi
mov dword [ebp - 0x400c], eax
call esi
lea edi, [edi + eax*2 + 2]
test edi, edi
pop ecx
pop ecx
mov dword [ebp - 0x4008], edi
jne 0x109df43
mov ecx, dword [ebp - 0x4014]
mov edi, dword [ebp - 0x4008]
mov eax, ecx
shr ecx, 2
lea esi, [ebp - 0x4004]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x4014]
mov ecx, dword [ebp - 0x4008]
mov esi, dword [ebp - 0x4030]
mov edi, dword [ebp - 0x4038]
shr eax, 1
lea eax, [ecx + eax*2 - 2]
and word [eax], 0
mov dword [ebp - 0x4008], eax
mov eax, dword [ebp - 0x4014]
sub dword [ebp - 0x400c], eax
jmp 0x109dd99
mov eax, dword [esi]
test eax, eax
je 0x109dfe8
push eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
and dword [esi], 0
jmp 0x109dca7
push dword [edi]
call dword [sym.imp.msvcrt.dll_free]
and dword [edi], 0
mov dword [esp], 0xdac
call fcn.01084486
pop ecx
push 0xe
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01078836
leave
ret 0xc