Function at 0x10098da
Capabilities:
Persist via windows service
Set registry value
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
xor ebx, ebx
cmp dword [0x1015168], ebx
push esi
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x34], ebx
jne 0x100991a
call fcn.010095ba
push dword [0x1015168]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1015164], ebx
je 0x1009952
cmp dword [ebp + 8], ebx
jne 0x1009952
call fcn.0100bcf3
cmp dword [0x1015170], eax
jbe 0x1009952
push dword [0x1015164]
call fcn.0100abcf
mov esi, eax
jmp 0x1009f74
call fcn.0100a88c
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x34]
push eax
call fcn.0100ad97
mov esi, eax
cmp esi, ebx
je 0x100997b
push dword [0x1015168]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
jmp 0x1009f46
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x18]
push eax
push 1
push ebx
mov esi, 0x80000002
push 0x1002644
push esi
call edi
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10099a6
mov edi, 0x267c
jmp 0x1009ef7
cmp dword [ebp + 0x10], ebx
jne 0x1009a11
mov dword [ebp + 8], ebx
call fcn.0100a8c2
test eax, eax
jne 0x10099c9
lea eax, [ebp + 8]
push eax
push 1
push ebx
push 0x1002764
push esi
call edi
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
jne 0x1009a11
cmp dword [ebp + 8], ebx
je 0x1009a11
lea eax, [ebp - 0xc]
push eax
push 1
push 0x1002750
push ebx
push dword [ebp + 8]
call fcn.010091f2
cmp eax, ebx
je 0x1009a06
lea eax, [ebp - 0xc]
push eax
push 1
push 0x10025c0
push ebx
push dword [ebp - 0x18]
call fcn.010091f2
cmp eax, ebx
je 0x1009a06
mov dword [ebp - 0xc], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1009a2c
lea eax, [ebp - 0xc]
push eax
push 1
push 0x10025c0
push ebx
push dword [ebp - 0x18]
call fcn.010091f2
cmp eax, ebx
je 0x1009a2c
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 0xc], ebx
je 0x1009a4b
mov edi, dword [ebp - 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x1009a4b
push dword [ebp - 0xc]
call fcn.0100b3c5
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 0x3c], ebx
jne 0x1009a74
lea eax, [ebp - 0x40]
push eax
push 4
push 0x1002734
push ebx
push dword [ebp - 0x18]
call fcn.010091f2
cmp eax, ebx
jne 0x1009a74
cmp dword [ebp - 0x40], ebx
je 0x1009a74
mov dword [ebp - 0x38], 1
lea eax, [ebp - 0x40]
push eax
push 4
push 0x100271c
push ebx
push dword [ebp - 0x18]
call fcn.010091f2
mov edi, eax
cmp edi, ebx
jne 0x1009a96
cmp dword [ebp - 0x40], ebx
jne 0x1009a96
mov dword [ebp - 0x48], ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], ebx
xor ecx, ecx
cmp eax, ebx
je 0x1009ab0
mov eax, dword [eax]
inc ecx
jmp 0x1009aa7
push ecx
call fcn.0100aa81
push 0x2710
mov dword [ebp - 0x24], eax
call fcn.0100b436
cmp dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], eax
je 0x1009ef4
cmp eax, ebx
je 0x1009ef4
mov eax, dword [ebp - 0x34]
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x1009ed8
cmp dword [ebp + 0x10], ebx
push 1
pop eax
mov dword [ebp + 8], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
jne 0x1009c54
push 0xf
mov esi, 0x10026dc
pop ecx
lea edi, [ebp - 0x14c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x20]
or ecx, 0xffffffff
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [eax + 8]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x14c]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
mov ecx, edx
push eax
push 0x20019
lea eax, [ebp - 0x14c]
and ecx, 3
push ebx
push eax
rep movsb byte es:[edi], byte [esi]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x1009c54
lea eax, [ebp - 0x44]
push eax
push 4
push 0x10026c0
push ebx
push dword [ebp - 0x14]
call fcn.010091f2
cmp eax, ebx
jne 0x1009b85
cmp dword [ebp - 0x44], ebx
je 0x1009b85
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x4c]
push eax
push 4
push 0x10026a8
push ebx
push dword [ebp - 0x14]
call fcn.010091f2
cmp eax, ebx
jne 0x1009ba5
cmp dword [ebp - 0x4c], ebx
je 0x1009ba5
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x28], ebx
je 0x1009c4b
lea eax, [ebp - 8]
push eax
push 1
push 0x10025c0
push ebx
push dword [ebp - 0x14]
call fcn.010091f2
cmp eax, ebx
je 0x1009bc9
mov dword [ebp - 8], ebx
cmp dword [ebp - 8], ebx
je 0x1009bed
mov edi, dword [ebp - 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x1009be8
push dword [ebp - 8]
call fcn.0100b3c5
mov dword [ebp - 8], ebx
cmp dword [ebp - 8], ebx
jne 0x1009c27
lea eax, [ebp - 8]
push eax
push 1
push 0x10025b4
push ebx
push dword [ebp - 0x14]
call fcn.010091f2
cmp eax, ebx
je 0x1009c08
mov dword [ebp - 8], ebx
cmp dword [ebp - 8], ebx
je 0x1009c27
mov edi, dword [ebp - 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x1009c27
push dword [ebp - 8]
call fcn.0100b3c5
mov dword [ebp - 8], ebx
lea eax, [ebp - 0x44]
push eax
push 4
push 0x1002684
push ebx
push dword [ebp - 0x14]
call fcn.010091f2
cmp eax, ebx
jne 0x1009c4b
cmp dword [ebp - 0x44], ebx
je 0x1009c4b
mov dword [ebp + 8], 0x10
cmp dword [ebp - 4], ebx
je 0x1009c54
or dword [ebp + 8], 0x20
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x1a4], ebx
je 0x1009c63
or dword [ebp + 8], 8
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x30]
push 1
push ebx
lea edi, [eax + 0x1ac]
mov dword [esi], ebx
push edi
push esi
call fcn.010094a0
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1009ce8
cmp dword [ebp + 0xc], ebx
jne 0x1009c91
cmp dword [ebp - 0x38], ebx
jne 0x1009c91
cmp dword [ebp - 0x3c], ebx
je 0x1009ce8
push esi
call fcn.0100b452
push 1
push 1
push edi
push esi
mov dword [ebp - 0x10], eax
mov dword [esi], ebx
call fcn.010094a0
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1009cbb
push esi
call fcn.0100b452
mov edi, eax
mov dword [ebp - 0x1c], edi
jmp 0x1009ceb
push dword [ebp - 0x10]
call fcn.0100b452
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x1c], edi
je 0x1009ceb
xor ecx, ecx
cmp dword [edi], ebx
jbe 0x1009ce3
lea eax, [edi + 4]
mov dword [eax], 0xffff
inc ecx
add eax, 4
cmp ecx, dword [edi]
jb 0x1009cd5
mov dword [ebp - 4], ebx
jmp 0x1009ceb
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 4], ebx
jne 0x1009e7e
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x20]
push dword [eax + 0x19c]
call fcn.0100ae48
cmp eax, ebx
jne 0x1009e7e
mov eax, dword [ebp - 0x2c]
cmp dword [eax], ebx
je 0x1009d1e
cmp dword [eax + 4], ebx
je 0x1009d1e
or dword [ebp + 8], 4
push ebx
add eax, 0xc
push ebx
push eax
push esi
mov dword [esi], ebx
call fcn.010094a0
cmp eax, ebx
je 0x1009e37
cmp dword [ebp - 0x38], ebx
je 0x1009d85
test byte [ebp + 8], 4
je 0x1009d85
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x1009d85
cmp edi, ebx
je 0x1009d85
mov ecx, dword [edi + 4]
and ecx, dword [eax + 4]
mov dword [ebp - 4], ecx
cmp byte [ebp - 4], bl
jne 0x1009d5c
or byte [ebp - 4], 0xff
cmp byte [ebp - 3], bl
jne 0x1009d65
or byte [ebp - 3], 0xff
cmp byte [ebp - 2], bl
jne 0x1009d6e
or byte [ebp - 2], 0xff
cmp byte [ebp - 1], bl
jne 0x1009d77
or byte [ebp - 1], 0xff
mov eax, dword [ebp - 4]
mov dword [esi], 1
jmp 0x1009e34
cmp dword [ebp - 0x3c], ebx
je 0x1009e7e
test byte [ebp + 8], 8
jne 0x1009e7e
cmp dword [ebp - 0x10], ebx
je 0x1009e7e
cmp edi, ebx
je 0x1009e7e
cmp dword [ebp + 0x10], ebx
jne 0x1009e23
push 0x19
call fcn.0100b3e4
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1009e23
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
push eax
push 0x2001f
lea eax, [ebp - 0x14c]
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x1009e1b
mov edi, dword [ebp - 4]
mov esi, 0x100122c
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [ebp - 4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push dword [ebp - 4]
push 1
push ebx
push 0x1002678
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x1c]
push dword [ebp - 4]
call fcn.0100b3c5
push 0x100122c
mov dword [esi], 1
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x20]
add eax, 8
push eax
push dword [ebp - 8]
push dword [ebp + 8]
push esi
call fcn.0100ac7e
cmp dword [ebp + 0xc], ebx
jne 0x1009e54
cmp dword [ebp - 0x38], ebx
je 0x1009e71
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
je 0x1009e71
cmp edi, ebx
je 0x1009e71
cmp eax, ebx
je 0x1009e7e
mov dword [eax + 0xc], edi
xor edi, edi
mov dword [eax + 8], ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], edi
cmp eax, ebx
je 0x1009e7e
push eax
push dword [ebp - 0x24]
call fcn.0100ac4a
cmp dword [ebp - 0x14], ebx
je 0x1009e8f
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 8], ebx
je 0x1009e9f
push dword [ebp - 8]
call fcn.0100b3c5
mov dword [ebp - 8], ebx
cmp dword [ebp - 0x2c], ebx
je 0x1009eaf
push dword [ebp - 0x2c]
call fcn.0100b3c5
mov dword [ebp - 0x2c], ebx
cmp dword [ebp - 0x10], ebx
je 0x1009ebf
push dword [ebp - 0x10]
call fcn.0100b3c5
mov dword [ebp - 0x10], ebx
cmp edi, ebx
je 0x1009ecc
push edi
call fcn.0100b3c5
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x20]
xor edi, edi
mov eax, dword [eax]
jmp 0x1009ada
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0xc], ebx
je 0x1009ef7
push dword [ebp - 0x48]
mov esi, eax
push esi
push ebx
push dword [ebp - 0xc]
call fcn.010096e8
mov dword [esi + 8], eax
jmp 0x1009ef7
push 8
pop edi
cmp dword [ebp - 0xc], ebx
je 0x1009f04
push dword [ebp - 0xc]
call fcn.0100b3c5
cmp dword [ebp - 0x34], ebx
je 0x1009f11
push dword [ebp - 0x34]
call fcn.0100b3c5
cmp dword [ebp - 0x30], ebx
je 0x1009f1e
push dword [ebp - 0x30]
call fcn.0100b3c5
mov esi, dword [ebp - 0x24]
cmp esi, ebx
je 0x1009f2f
cmp dword [esi + 0xc], ebx
jne 0x1009f2f
mov edi, 0x267c
cmp edi, ebx
je 0x1009f50
push esi
call fcn.0100ad5e
push dword [0x1015168]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1009f82
mov edi, dword [0x1015164]
push esi
call fcn.0100abcf
mov dword [0x1015164], eax
call fcn.0100bcf3
add eax, 0xa
push edi
mov dword [0x1015170], eax
call fcn.0100ad5e
push dword [0x1015168]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc