Function at 0x4ec1e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a7ae9
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x62cf50]
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 - 0x44], edi
xor eax, eax
lea esi, [edi + 0x28]
mov dword [ebp - 0x40], eax
push esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x60], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
mov dword [ebp - 4], 0
xor eax, eax
mov byte [ebp - 0x3c], 0
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [edi + 0x20]
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
mov eax, dword [eax]
sub ecx, eax
mov dword [ebp - 0x40], eax
mov eax, 0x2aaaaaab
imul ecx
mov ecx, dword [ebp - 0x30]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jae 0x4ec3b6
mov ebx, dword [ebp - 0x40]
lea eax, [ecx + ecx*2]
shl eax, 3
mov dword [ebp - 0x38], eax
sub edi, ebx
mov eax, 0x2aaaaaab
imul edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ecx
jbe 0x4ec4ab
mov edi, dword [ebp - 0x38]
add edi, ebx
mov ebx, dword [ebp - 0x34]
lea ecx, [ebp - 0x5c]
xor eax, eax
mov byte [ebp - 4], 2
mov word [ebp - 0x5c], ax
or ebx, 1
lea eax, [edi + 0x10]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x34], eax
mov eax, dword [eax]
inc eax
mov dword [ebp - 0x48], 7
push eax
mov dword [ebp - 0x40], ebx
call fcn.00413ce0
cmp dword [edi + 0x14], 8
jb 0x4ec2de
mov edi, dword [edi]
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x5c]
push dword [eax]
push edi
call fcn.0040f730
push 1
push 0x5c697c
lea ecx, [ebp - 0x5c]
call fcn.0040f730
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
push dword [ebp - 0x4c]
cmovae eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x28]
push eax
call fcn.0040f730
mov edx, dword [ebp - 0x48]
and ebx, 0xfffffffe
mov dword [ebp - 0x34], ebx
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x4ec35e
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 3
cmp edx, 0x1000
jb 0x4ec350
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ec4b0
push edx
push ecx
call fcn.0040a1a2
add esp, 8
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44]
inc dword [ebp - 0x30]
add dword [ebp - 0x38], 0x18
mov edi, dword [eax + 4]
mov ecx, edi
mov ebx, dword [eax]
sub ecx, ebx
mov eax, 0x2aaaaaab
imul ecx
mov ecx, dword [ebp - 0x30]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jb 0x4ec283
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4ec3b6
lea ecx, [ebx - 1]
cmp ebx, ecx
jb 0x4ec4a6
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
xor edx, edx
mov word [eax + ecx*2], dx
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], 0
test ebx, ebx
je 0x4ec427
push 0
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push 0x5c2968
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4ec427
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
add eax, eax
push eax
push ecx
push 1
push 0
push str.tHostWhiteList
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, dword [ebp - 0x3c]
test eax, eax
push dword [ebp - 0x2c]
mov ecx, 1
movzx ebx, bl
cmove ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4ec42a
mov ebx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4ec464
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 4
cmp edx, 0x1000
jb 0x4ec45a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ec4b0
push edx
push ecx
call fcn.0040a1a2
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push esi
mov dword [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
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 int.004016cd
mov esp, ebp
pop ebp
ret 4
call fcn.0047f6b0
call fcn.0049f630
call fcn.0056e2db
int3