Function at 0x5f9044
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe78
mov eax, 0x69d2ab
xor edx, edx
push ebx
push esi
push edi
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], 0x6e6390
mov dword [ebp - 0x28], esp
mov dword [ebp - 0x30], eax
mov word [ebp - 0x24], 0
mov dword [ebp - 0x18], edx
mov ecx, dword fs:[0]
mov dword [ebp - 0x34], ecx
lea eax, [ebp - 0x34]
mov dword fs:[0], eax
push 0x6de687
push esi
push 0x6de665
push 0x6de65e
lea edx, [ebp - 0x114]
push edx
call fcn.006a0ad0
add esp, 0x14
lea ecx, [ebp - 0x3c]
lea eax, [ebp - 0x38]
lea edx, [ebp - 0x114]
push ecx
push eax
push 0
push 0x20006
push 0
push 0
push 0
push edx
push reloc.WSOCK32.DLL_bind
call sub.ADVAPI32.DLL_RegCreateKeyExA
test eax, eax
je 0x5f90e0
mov ecx, dword [ebp - 0x34]
mov dword fs:[0], ecx
mov eax, ecx
jmp 0x5f93f8
mov edi, 0x6de692
xor eax, eax
mov al, byte [ebp + 0x14]
cmp eax, 1
sbb edx, edx
neg edx
test edx, edx
je 0x5f9105
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
push eax
mov edx, dword [ebp - 0x38]
push edx
call sub.ADVAPI32.DLL_RegDeleteValueA
push edi
call fcn.0069ce0c
pop ecx
inc eax
push eax
push edi
push 1
push 0
mov ecx, dword [ebx + 8]
push ecx
mov eax, dword [ebp - 0x38]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
mov edx, dword [ebp - 0x38]
push edx
call sub.ADVAPI32.DLL_RegCloseKey
xor ecx, ecx
mov cl, byte [ebp + 0x14]
cmp ecx, 1
sbb eax, eax
neg eax
test eax, eax
je 0x5f9173
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx + 8]
push ecx
push 0x6de6bf
push esi
push 0x6de69d
push 0x6de693
lea eax, [ebp - 0x114]
push eax
call fcn.006a0ad0
add esp, 0x18
lea edx, [ebp - 0x114]
push edx
push reloc.WSOCK32.DLL_bind
call fcn.00446bb4
add esp, 8
mov ecx, dword [ebx + 8]
push ecx
push 0x6de6fa
push esi
push 0x6de6d8
push 0x6de6ce
lea eax, [ebp - 0x114]
push eax
call fcn.006a0ad0
add esp, 0x18
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x38]
lea eax, [ebp - 0x114]
push edx
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push eax
push reloc.WSOCK32.DLL_bind
call sub.ADVAPI32.DLL_RegCreateKeyExA
test eax, eax
je 0x5f91d1
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
mov eax, edx
jmp 0x5f93f8
mov esi, 1
jmp 0x5f9214
push esi
push str.IPAccess
push 0x6de709
lea eax, [ebp - 0x130]
push eax
call fcn.006a0ad0
mov eax, esi
add esp, 0x10
dec eax
mov edx, dword [ebx + 0x34]
shl eax, 4
mov ecx, dword [edx + eax + 8]
lea eax, [ebp - 0x130]
push ecx
push eax
mov edx, dword [ebp - 0x38]
push edx
call fcn.00446c64
add esp, 0xc
inc esi
lea eax, [ebx + 0x30]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
sub edx, ecx
test edx, edx
jns 0x5f9226
add edx, 0xf
sar edx, 4
cmp esi, edx
jbe 0x5f91d8
mov esi, 1
jmp 0x5f9270
push esi
push str.Access
push 0x6de717
lea eax, [ebp - 0x14c]
push eax
call fcn.006a0ad0
mov eax, esi
add esp, 0x10
dec eax
mov edx, dword [ebx + 0x14]
shl eax, 4
mov ecx, dword [edx + eax + 8]
lea eax, [ebp - 0x14c]
push ecx
push eax
mov edx, dword [ebp - 0x38]
push edx
call fcn.00446c64
add esp, 0xc
inc esi
lea eax, [ebx + 0x10]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
sub edx, ecx
test edx, edx
jns 0x5f9282
add edx, 0xf
sar edx, 4
cmp esi, edx
jbe 0x5f9234
mov esi, 1
jmp 0x5f93c8
mov word [ebp - 0x24], 8
xor eax, eax
lea edx, [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, 0x6ff378
mov dword [ebp - 8], eax
mov eax, 0x6ff36c
mov ecx, dword [edx + 8]
cmp eax, 0x6ff36c
mov dword [ebp - 0x170], ecx
je 0x5f92c8
push 0x6ff36c
call sub.KERNEL32.DLL_InterlockedIncrement
inc dword [ebp - 0x18]
mov word [ebp - 0x24], 0x20
push esi
push str.Note
push str._s_d
lea edx, [ebp - 0x168]
push edx
call fcn.006a0ad0
add esp, 0x10
mov edx, esi
dec edx
mov eax, edx
shl eax, 4
mov ecx, dword [ebx + 0x54]
mov eax, dword [ecx + eax + 8]
mov eax, dword [eax - 4]
test eax, eax
jne 0x5f9314
push 0x6de72d
lea edx, [ebp - 0x10]
push edx
call fcn.0069a464
add esp, 8
jmp 0x5f932b
mov eax, edx
shl eax, 4
mov ecx, dword [ebx + 0x54]
add eax, ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0069a2e0
add esp, 8
mov edx, dword [ebp - 8]
lea ecx, [ebp - 0x168]
push edx
push ecx
mov eax, dword [ebp - 0x38]
push eax
call fcn.00446c64
add esp, 0xc
dec dword [ebp - 0x18]
mov edx, dword [ebp - 8]
test edx, edx
je 0x5f93c1
mov ecx, dword [ebp - 8]
mov eax, dword [ecx - 0xc]
inc eax
test eax, eax
je 0x5f9388
mov edi, dword [ebp - 8]
add edi, 0xfffffff4
cmp edi, 0x6ff36c
je 0x5f937f
cmp edi, 0x6ff36c
je 0x5f9378
push edi
call sub.KERNEL32.DLL_InterlockedDecrement
mov eax, dword [edi]
inc eax
jmp 0x5f9384
mov eax, 1
jmp 0x5f9384
mov eax, 1
test eax, eax
jne 0x5f93c1
mov edx, dword [ebp - 8]
add edx, 0xfffffff4
mov dword [ebp - 0x40], edx
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff4
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x44]
push eax
call fcn.0067ac7c
pop ecx
xor edx, edx
mov dword [ebp - 0x48], edx
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
mov ecx, dword [edx + 8]
mov dword [ebp - 0x180], ecx
mov word [ebp - 0x24], 0
inc esi
lea eax, [ebx + 0x50]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
sub edx, ecx
test edx, edx
jns 0x5f93da
add edx, 0xf
sar edx, 4
cmp esi, edx
jbe 0x5f9293
mov eax, dword [ebp - 0x38]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret