Function at 0x1006d340
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018661b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa0
mov eax, dword [0x101b11c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x105b2928], 0
mov eax, dword [ebx + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0xa0], eax
jle 0x1006da17
mov esi, 2
nop dword [eax + eax]
push esi
lea eax, [ebp - 0x48]
mov dword [ebp - 0x9c], esi
push 0x1019ef54
push eax
call sym.Main.dll_sprintf
xorps xmm0, xmm0
mov dword [ebp - 0x80], 0
movups xmmword [ebp - 0x90], xmm0
add esp, 0xc
mov dword [ebp - 0x7c], 0xf
mov byte [ebp - 0x90], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x50], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x4c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006d406
sub ecx, edx
lea eax, [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.1000d0c0
mov edi, dword [ebp - 0x80]
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 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 0x1006d493
cmp dword [ebp - 0x7c], 0xf
lea ecx, [ebp - 0x90]
push edi
cmova ecx, dword [ebp - 0x90]
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x4c], 0xf
push ecx
cmova eax, dword [ebp - 0x60]
push 1
push 0
push eax
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0xf
jbe 0x1006d4c7
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006d4bd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006dd9f
push ecx
push edx
call fcn.10141e9c
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
cmp ecx, 0xf
jbe 0x1006d517
mov edx, dword [ebp - 0x90]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006d50d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006dd9f
push ecx
push edx
call fcn.10141e9c
add esp, 8
push esi
lea eax, [ebp - 0x48]
push 0x1019ef5c
push eax
call sym.Main.dll_sprintf
xorps xmm0, xmm0
mov dword [ebp - 0x80], 0
movups xmmword [ebp - 0x90], xmm0
add esp, 0xc
mov dword [ebp - 0x7c], 0xf
mov byte [ebp - 0x90], 0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x48]
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x50], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x4c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006d567
sub ecx, edx
lea eax, [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.1000d0c0
mov edi, dword [ebp - 0x80]
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 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 0x1006d5f8
cmp dword [ebp - 0x7c], 0xf
lea ecx, [ebp - 0x90]
push edi
cmova ecx, dword [ebp - 0x90]
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x4c], 0xf
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmova eax, dword [ebp - 0x60]
push ecx
push 1
push 0
push eax
push dword [ebp - 0x98]
call edi
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1006d5fe
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0xf
jbe 0x1006d632
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006d628
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006dd9f
push ecx
push edx
call fcn.10141e9c
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
cmp ecx, 0xf
jbe 0x1006d682
mov edx, dword [ebp - 0x90]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006d678
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006dd9f
push ecx
push edx
call fcn.10141e9c
add esp, 8
inc esi
cmp dword [ebp - 0x9c], 5
jl 0x1006d3b0
mov esi, dword [0x105b2928]
mov dword [ebp - 0x9c], 0
test esi, esi
jle 0x1006da17
mov eax, 2
mov edi, 0x105b292c
mov dword [ebp - 0x98], eax
nop dword [eax + eax]
dec eax
cmp eax, 5
jge 0x1006da11
mov eax, dword [ebp - 0xa8]
mov ecx, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1006d6f2
test dl, dl
je 0x1006d6ee
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1006d6f2
add eax, 2
add ecx, 2
test dl, dl
jne 0x1006d6d2
xor eax, eax
jmp 0x1006d6f7
sbb eax, eax
or eax, 1
test eax, eax
je 0x1006d9f3
push dword [ebp - 0x98]
lea eax, [ebp - 0x48]
push 0x1019ef64
push eax
call sym.Main.dll_sprintf
mov ecx, edi
mov dword [ebp - 0x68], 0
xorps xmm0, xmm0
mov dword [ebp - 0x64], 0
add esp, 0xc
movups xmmword [ebp - 0x78], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006d730
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x78]
call fcn.1000d0c0
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x48]
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x4c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006d765
sub ecx, edx
lea eax, [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.1000d0c0
mov esi, dword [ebp - 0x68]
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 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 0x1006d7ec
cmp dword [ebp - 0x64], 0xf
lea ecx, [ebp - 0x78]
push esi
cmova ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x4c], 0xf
push ecx
cmova eax, dword [ebp - 0x60]
push 1
push 0
push eax
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0xf
jbe 0x1006d820
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006d816
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006dd9f
push ecx
push edx
call fcn.10141e9c
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
cmp ecx, 0xf
jbe 0x1006d86d
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006d863
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006dd9f
push ecx
push edx
call fcn.10141e9c
add esp, 8
push dword [ebp - 0x98]
lea eax, [ebp - 0x48]
push 0x1019ef6c
push eax
call sym.Main.dll_sprintf
lea edx, [edi + 0xb]
mov dword [ebp - 0x68], 0
mov ecx, edx
mov dword [ebp - 0x64], 0
xorps xmm0, xmm0
add esp, 0xc
movups xmmword [ebp - 0x78], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006d8a1
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x78]
call fcn.1000d0c0
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x48]
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x4c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006d8d6
sub ecx, edx
lea eax, [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.1000d0c0
mov esi, dword [ebp - 0x68]
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 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 0x1006d95d
cmp dword [ebp - 0x64], 0xf
lea ecx, [ebp - 0x78]
push esi
cmova ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x4c], 0xf
push ecx
cmova eax, dword [ebp - 0x60]
push 1
push 0
push eax
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0xf
jbe 0x1006d991
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006d987
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006dd9f
push ecx
push edx
call fcn.10141e9c
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
cmp ecx, 0xf
jbe 0x1006d9de
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006d9d4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006dd9f
push ecx
push edx
call fcn.10141e9c
add esp, 8
mov eax, dword [ebp - 0x98]
mov esi, dword [0x105b2928]
inc eax
mov dword [ebp - 0x98], eax
jmp 0x1006d9f9
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x9c]
add edi, 0x1c
inc ecx
mov dword [ebp - 0x9c], ecx
cmp ecx, esi
jl 0x1006d6c0
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, dword [ebp - 0xa8]
xorps xmm0, xmm0
mov ecx, esi
mov dword [ebp - 0x68], 0
movups xmmword [ebp - 0x78], xmm0
mov dword [ebp - 0x64], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006da37
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x78]
call fcn.1000d0c0
mov dword [ebp - 4], 4
xorps xmm0, xmm0
mov esi, dword [ebp - 0x68]
mov eax, 0x4449
movups xmmword [ebp - 0x60], xmm0
mov word [ebp - 0x60], ax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x50], 2
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x1019ef1c
push getpeername
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x5e], 0
mov dword [ebp - 0x94], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1006dae0
cmp dword [ebp - 0x64], 0xf
lea ecx, [ebp - 0x78]
push esi
cmova ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x4c], 0xf
push ecx
cmova eax, dword [ebp - 0x60]
push 1
push 0
push eax
push dword [ebp - 0x94]
call edi
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0xf
jbe 0x1006db14
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006db0a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006dd9f
push ecx
push edx
call fcn.10141e9c
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
cmp ecx, 0xf
jbe 0x1006db61
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006db57
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006dd9f
push ecx
push edx
call fcn.10141e9c
add esp, 8
mov esi, dword [ebp - 0xa0]
xorps xmm0, xmm0
mov ecx, esi
mov dword [ebp - 0x68], 0
movups xmmword [ebp - 0x78], xmm0
mov dword [ebp - 0x64], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006db81
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x78]
call fcn.1000d0c0
mov esi, dword [ebp - 0x68]
xorps xmm0, xmm0
movups xmmword [ebp - 0x60], xmm0
mov eax, 0x5750
mov dword [ebp - 0x50], 2
mov word [ebp - 0x60], ax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x4c], 0xf
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x1019ef1c
push getpeername
mov byte [ebp - 0x5e], 0
mov dword [ebp - 0x94], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1006dc27
cmp dword [ebp - 0x64], 0xf
lea ecx, [ebp - 0x78]
push esi
cmova ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x4c], 0xf
push ecx
cmova eax, dword [ebp - 0x60]
push 1
push 0
push eax
push dword [ebp - 0x94]
call edi
push dword [ebp - 0x94]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
jmp 0x1006dc2d
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0xf
jbe 0x1006dc61
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006dc57
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006dda4
push ecx
push edx
call fcn.10141e9c
add esp, 8
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
cmp ecx, 0xf
jbe 0x1006dca7
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006dc9d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006dda4
push ecx
push edx
call fcn.10141e9c
add esp, 8
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x80], 8
push eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x7c], 0xf
push eax
push 0
push 0xf003f
push 0
push 0
push 0
xorps xmm0, xmm0
mov dword [ebp - 0xa0], 1
movups xmmword [ebp - 0x90], xmm0
push 0x1019ef38
push getpeername
mov dword [ebp - 0x90], 0x65766153
mov dword [ebp - 0x8c], 0x73736150
mov byte [ebp - 0x88], 0
mov dword [ebp - 0x94], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1006dd4c
cmp dword [ebp - 0x7c], 0xf
lea ecx, [ebp - 0xa0]
push 4
push ecx
push 4
lea eax, [ebp - 0x90]
cmova eax, dword [ebp - 0x90]
push 0
push eax
push dword [ebp - 0x94]
call edi
push dword [ebp - 0x94]
call esi
mov ecx, dword [ebp - 0x7c]
cmp ecx, 0xf
jbe 0x1006dd7f
mov edx, dword [ebp - 0x90]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006dd75
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006dda9
push ecx
push edx
call fcn.10141e9c
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10141b74
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
call fcn.1014e45a
call fcn.1014e45a
call fcn.1014e45a
int3