Function at 0x5196e0
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6208c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xec
push ebx
mov ebx, ecx
push esi
push edi
lea esi, [ebx + 0x188]
mov dword [ebp - 0x10], esp
push 0x6d6ed0
mov ecx, esi
mov dword [ebp - 0x1c], ebx
call fcn.005fa9e2
push 0x6ec5b4
mov ecx, esi
call fcn.005fab97
push 0x6d6ebc
mov ecx, esi
call fcn.005fab5b
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb8], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0xa8]
xor edi, edi
sub eax, edi
mov byte [ebp - 0x15], 0
je 0x519788
dec eax
je 0x519767
dec eax
jne 0x519794
push 0x6d6eac
jmp 0x51978d
cmp dword [ebp - 0xb0], edi
je 0x519776
push 0x6d6e9c
jmp 0x51978d
push 0x6d6e8c
mov ecx, esi
call fcn.005fab5b
mov byte [ebp - 0x15], 1
jmp 0x519794
push 0x6d6e7c
mov ecx, esi
call fcn.005fab5b
mov ecx, dword [0x6e7b6c]
mov dword [ebp - 0x14], ecx
mov al, byte [ebp - 0x15]
mov dword [ebp - 4], edi
test al, al
je 0x5197d4
mov edx, dword [ebp - 0xaa]
mov eax, dword [ebp - 0xac]
and edx, 0xffff
and eax, 0xff
push edx
push eax
push eax
lea eax, [ebp - 0x14]
push 0x6d6e6c
push eax
call fcn.005f368b
add esp, 0x14
jmp 0x51980a
call fcn.00445c70
mov ecx, dword [ebp - 0xac]
mov edx, dword [ebp - 0xb0]
neg eax
sbb eax, eax
and eax, 0x20
add eax, 0x20
push eax
mov eax, dword [ebp - 0xb4]
push ecx
push edx
push eax
lea ecx, [ebp - 0x14]
push 0x6d6e54
push ecx
call fcn.005f368b
add esp, 0x18
lea edx, [ebp - 0x14]
mov ecx, esi
push edx
call fcn.005fab97
push 0x6c0e80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x519847
cmp eax, 0xb7
jne 0x519840
mov edi, 1
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x6ec0fc]
mov ecx, dword [0x6ec100]
push edi
push eax
push ecx
lea edx, [ebp - 0x14]
push 0x6d6e10
push edx
call fcn.005f368b
add esp, 0x14
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.005fab97
push 0
push 0x6d6e04
push 0x6d6dd4
lea ecx, [ebp - 0x14]
push reloc.WS2_32.dll_accept
push ecx
mov ecx, ebx
call fcn.00519ab0
lea edx, [ebp - 0x14]
mov ecx, esi
push edx
call fcn.005fab97
push 0
push 0x6d6dc4
push 0x6bc81c
lea eax, [ebp - 0x14]
push reloc.WS2_32.dll_accept
push eax
mov ecx, ebx
call fcn.00519ab0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.005fab97
push 0
push 0x6d6db8
push 0x6d6d94
lea edx, [ebp - 0x14]
push reloc.WS2_32.dll_accept
push edx
mov ecx, ebx
call fcn.00519ab0
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.005fab97
push 0
push 0x6d6d7c
push 0x6bdb88
lea ecx, [ebp - 0x14]
push reloc.WS2_32.dll_bind
push ecx
mov ecx, ebx
call fcn.00519ab0
lea edx, [ebp - 0x14]
mov ecx, esi
push edx
call fcn.005fab97
push 0
push 0x6d6d70
push 0x6d6d40
lea eax, [ebp - 0x14]
push reloc.WS2_32.dll_bind
push eax
mov ecx, ebx
call fcn.00519ab0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.005fab97
push 0
push 0x6d6d34
push 0x6d6d40
lea edx, [ebp - 0x14]
push reloc.WS2_32.dll_accept
push edx
mov ecx, ebx
call fcn.00519ab0
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.005fab97
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
push ecx
call fcn.00519390
add esp, 4
lea edx, [ebp - 0x14]
mov ecx, esi
push edx
call fcn.005fab97
jmp 0x519981
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
call fcn.0040d590
add esp, 4
lea ecx, [ebp - 0x14]
lea esi, [ebx + 0x188]
push ecx
mov ecx, esi
call fcn.005fab97
push 0x6bcdb0
mov ecx, esi
call fcn.005fab5b
mov ecx, dword [0x6ec7a0]
lea edx, [ebp - 0x20]
lea eax, [ebp - 0xf8]
push edx
push eax
push 0
push 0
push 0x6d6d28
push ecx
mov dword [ebp - 0x20], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5199ff
lea edx, [ebp - 0xf8]
mov ecx, esi
push edx
call fcn.005fab5b
lea eax, [ebp - 0xf8]
lea ecx, [ebx + 0xe1c]
push eax
call fcn.005fa9e2
jmp 0x519a77
push 0
call fcn.005df989
push eax
call fcn.005e078d
add esp, 8
call fcn.005e079a
push eax
call fcn.005e079a
push eax
push 0
call fcn.005df989
add esp, 4
lea ecx, [ebp - 0x14]
push eax
push 0x6d6d14
push ecx
call fcn.005f368b
add esp, 0x14
lea edx, [ebp - 0x14]
mov ecx, esi
push edx
call fcn.005fab97
lea edi, [ebx + 0xe1c]
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.005fa992
mov edx, dword [edi]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [0x6ec7a0]
push edx
push 1
push eax
push 0x6d6d28
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, dword [esi]
lea ecx, [ebx + 0x14c]
push esi
call fcn.005f9e3a
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.005fa859
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret