Function at 0x1006df40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10186675
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x101b11c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x105b29c0]
test eax, eax
jns 0x1006df81
cmp eax, dword [0x105b2928]
jge 0x1006e3f6
test eax, eax
jne 0x1006e1aa
xorps xmm0, xmm0
mov dword [ebp - 0x64], 0
movups xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, 0x4449
movups xmmword [ebp - 0x5c], xmm0
mov word [ebp - 0x5c], ax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x4c], 2
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x1019ef1c
push getpeername
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5a], 0
mov dword [ebp - 0x78], 0
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1006e023
cmp dword [ebp - 0x60], 0xf
lea ecx, [ebp - 0x74]
push 0
cmova ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x5c]
cmp dword [ebp - 0x48], 0xf
push ecx
cmova eax, dword [ebp - 0x5c]
push 1
push 0
push eax
push dword [ebp - 0x78]
call edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x48]
cmp ecx, 0xf
jbe 0x1006e057
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006e04d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006e411
push ecx
push edx
call fcn.10141e9c
add esp, 8
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
cmp ecx, 0xf
jbe 0x1006e09d
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006e093
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006e411
push ecx
push edx
call fcn.10141e9c
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x64], 0
movups xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
movups xmmword [ebp - 0x5c], xmm0
mov eax, 0x5750
mov dword [ebp - 0x4c], 2
mov word [ebp - 0x5c], ax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x48], 0xf
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x1019ef1c
push getpeername
mov byte [ebp - 0x5a], 0
mov dword [ebp - 0x78], 0
call esi
test eax, eax
jne 0x1006e12d
cmp dword [ebp - 0x60], 0xf
lea ecx, [ebp - 0x74]
push 0
cmova ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x5c]
cmp dword [ebp - 0x48], 0xf
push ecx
cmova eax, dword [ebp - 0x5c]
push 1
push 0
push eax
push dword [ebp - 0x78]
call edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x48]
cmp ecx, 0xf
jbe 0x1006e161
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006e157
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006e416
push ecx
push edx
call fcn.10141e9c
add esp, 8
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
cmp ecx, 0xf
jbe 0x1006e3f1
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006e3e7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006e416
jmp 0x1006e3e7
inc eax
push eax
lea eax, [ebp - 0x44]
push 0x1019ef9c
push eax
call sym.Main.dll_sprintf
xorps xmm0, xmm0
mov dword [ebp - 0x64], 0
movups xmmword [ebp - 0x74], xmm0
add esp, 0xc
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x44]
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x4c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x48], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006e1f5
sub ecx, edx
lea eax, [ebp - 0x44]
push ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.1000d0c0
mov esi, dword [ebp - 0x64]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x1019ef1c
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1006e26f
cmp dword [ebp - 0x60], 0xf
lea ecx, [ebp - 0x74]
push esi
cmova ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x5c]
cmp dword [ebp - 0x48], 0xf
push ecx
cmova eax, dword [ebp - 0x5c]
push 1
push 0
push eax
push dword [ebp - 0x78]
call edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x48]
cmp ecx, 0xf
jbe 0x1006e2a3
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006e299
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006e41b
push ecx
push edx
call fcn.10141e9c
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
cmp ecx, 0xf
jbe 0x1006e2f0
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006e2e6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006e41b
push ecx
push edx
call fcn.10141e9c
add esp, 8
mov eax, dword [0x105b29c0]
inc eax
push eax
lea eax, [ebp - 0x44]
push 0x1019efa4
push eax
call sym.Main.dll_sprintf
xorps xmm0, xmm0
mov dword [ebp - 0x64], 0
movups xmmword [ebp - 0x74], xmm0
add esp, 0xc
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x44]
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x4c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x48], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006e340
sub ecx, edx
lea eax, [ebp - 0x44]
push ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.1000d0c0
mov esi, dword [ebp - 0x64]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x1019ef1c
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1006e3b4
cmp dword [ebp - 0x60], 0xf
lea ecx, [ebp - 0x74]
push esi
cmova ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x5c]
cmp dword [ebp - 0x48], 0xf
push ecx
cmova eax, dword [ebp - 0x5c]
push 1
push 0
push eax
push dword [ebp - 0x78]
call edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x48]
cmp ecx, 0xf
jbe 0x1006e161
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006e157
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006e416
jmp 0x1006e157
push ecx
push edx
call fcn.10141e9c
add esp, 8
call fcn.1006f6a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10141b74
mov esp, ebp
pop ebp
ret
call fcn.1014e45a
call fcn.1014e45a
call fcn.1014e45a
int3