Function at 0x516df0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x62065b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
push edi
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0xe8]
push 0x6bcba0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xd0], ebx
je 0x516ebd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6d6c20
push ebx
call esi
push 0x6d6c10
push ebx
mov edi, eax
call esi
push 0x6d6c00
push ebx
mov ebp, eax
call esi
test edi, edi
mov ebx, eax
je 0x516ebd
test ebp, ebp
je 0x516ebd
lea eax, [esp + 0xd8]
push eax
call edi
test eax, eax
jne 0x516ebd
lea ecx, [esp + 0x4c]
lea edx, [esp + 0xd8]
push ecx
push edx
call ebp
test eax, eax
jne 0x516ebd
mov edi, dword [esp + 0x4c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xe8]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
je 0x516ef4
lea ecx, [esp + 0x4c]
push ecx
call ebx
jmp 0x516ef4
mov eax, dword [0x6c02f8]
lea edx, [esp + 0xe8]
test eax, eax
mov edi, 0x6d6bd8
jne 0x516ed7
mov edi, 0x6d6bb0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cl, 0x77
mov al, 0x4e
or ebp, 0xffffffff
mov dl, 0x41
mov byte [esp + 0x5b], cl
mov byte [esp + 0x5c], al
mov byte [esp + 0x62], cl
mov byte [esp + 0x64], al
mov byte [esp + 0x6a], al
lea edi, [esp + 0x54]
mov ecx, ebp
xor eax, eax
mov byte [esp + 0x54], dl
mov byte [esp + 0x55], 0x7d
mov byte [esp + 0x56], 0x74
mov byte [esp + 0x57], 0x66
mov byte [esp + 0x58], 0x65
mov byte [esp + 0x59], 0x73
mov byte [esp + 0x5a], 0x60
mov byte [esp + 0x5d], 0x51
mov byte [esp + 0x5e], 0x7e
mov byte [esp + 0x5f], 0x73
mov byte [esp + 0x60], 0x61
mov byte [esp + 0x61], 0x61
mov byte [esp + 0x63], 0x61
mov byte [esp + 0x65], 0x51
mov byte [esp + 0x66], 0x5e
mov byte [esp + 0x67], dl
mov byte [esp + 0x68], 0x5b
mov byte [esp + 0x69], 0x56
mov byte [esp + 0x6b], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x516f8f
mov bl, byte [esp + eax + 0x54]
xor bl, 0x12
mov byte [esp + eax + 0x54], bl
inc eax
cmp eax, ecx
jl 0x516f7f
mov ecx, dword [0x6e7b6c]
mov dword [esp + 0x28], ecx
mov bl, 0x26
lea edi, [esp + 0x3c]
mov ecx, ebp
xor eax, eax
mov byte [esp + 0x3c], 0x2b
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], 0x25
mov byte [esp + 0x3f], 0x21
mov byte [esp + 0x40], 0x24
mov byte [esp + 0x41], 0x20
mov byte [esp + 0x42], 0x22
mov byte [esp + 0x43], 0x27
mov byte [esp + 0x44], 0x25
mov byte [esp + 0x45], 0x23
mov byte [esp + 0x46], 0x2b
mov byte [esp + 0x47], 0x20
mov byte [esp + 0x48], 0x2a
mov byte [esp + 0x49], 0x21
mov byte [esp + 0x4a], bl
mov byte [esp + 0x4b], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x134], 0
test ecx, ecx
jle 0x517015
mov dl, byte [esp + eax + 0x3c]
xor dl, 0x12
mov byte [esp + eax + 0x3c], dl
inc eax
cmp eax, ecx
jl 0x517005
lea edx, [esp + 0x3c]
lea eax, [esp + 0x28]
push edx
push 0x6bc090
push eax
call fcn.005f368b
mov ecx, dword [0x6e7b6c]
add esp, 0xc
mov dword [esp + 0x20], ecx
lea edx, [esp + 0xe8]
lea eax, [esp + 0x20]
push edx
push 0x6bc090
push eax
mov byte [esp + 0x140], 1
call fcn.005f368b
add esp, 0xc
mov dword [esp + 0x2c], 0x6348d4
mov edx, dword [esp + 0x28]
mov ecx, ebp
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0xe8]
push ecx
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
push ecx
lea ecx, [esp + 0xf4]
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x144], 2
call fcn.0044b240
mov edx, dword [0x6e7b6c]
mov dword [esp + 0x10], edx
lea edi, [esp + 0x34]
mov ecx, ebp
xor eax, eax
mov byte [esp + 0x34], 0x61
mov byte [esp + 0x35], 0x71
mov byte [esp + 0x36], 0x73
mov byte [esp + 0x37], 0x7c
mov byte [esp + 0x38], 0x61
mov byte [esp + 0x39], 0x79
mov byte [esp + 0x3a], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x134], 3
test ecx, ecx
jle 0x5170ef
mov dl, byte [esp + eax + 0x34]
xor dl, 0x12
mov byte [esp + eax + 0x34], dl
inc eax
cmp eax, ecx
jl 0x5170df
lea eax, [esp + 0x34]
lea ecx, [esp + 0x10]
push eax
push 0x6bc090
push ecx
call fcn.005f368b
mov eax, dword [0x6c02f8]
add esp, 0xc
test eax, eax
je 0x517657
mov al, 0x3f
mov cl, 0x57
mov byte [esp + 0x9c], al
mov byte [esp + 0xa1], al
mov byte [esp + 0xa6], al
mov byte [esp + 0xab], al
mov al, 0x54
mov byte [esp + 0x95], cl
mov byte [esp + 0x9f], cl
mov byte [esp + 0xa3], cl
mov byte [esp + 0xb2], al
mov byte [esp + 0xb3], al
mov byte [esp + 0xb5], cl
lea edi, [esp + 0x94]
mov ecx, ebp
xor eax, eax
mov byte [esp + 0x94], 0x27
mov byte [esp + 0x96], 0x56
mov byte [esp + 0x97], 0x24
mov byte [esp + 0x98], 0x22
mov byte [esp + 0x99], 0x25
mov byte [esp + 0x9a], 0x25
mov byte [esp + 0x9b], 0x2b
mov byte [esp + 0x9d], bl
mov byte [esp + 0x9e], 0x56
mov byte [esp + 0xa0], 0x20
mov byte [esp + 0xa2], bl
mov byte [esp + 0xa4], 0x22
mov byte [esp + 0xa5], 0x25
mov byte [esp + 0xa7], 0x50
mov byte [esp + 0xa8], 0x2a
mov byte [esp + 0xa9], 0x24
mov byte [esp + 0xaa], 0x20
mov byte [esp + 0xac], 0x2b
mov byte [esp + 0xad], 0x25
mov byte [esp + 0xae], bl
mov byte [esp + 0xaf], 0x51
mov byte [esp + 0xb0], 0x53
mov byte [esp + 0xb1], bl
mov byte [esp + 0xb4], 0x20
mov byte [esp + 0xb6], 0x2b
mov byte [esp + 0xb7], 0x51
mov byte [esp + 0xb8], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x51725d
mov bl, byte [esp + eax + 0x94]
xor bl, 0x12
mov byte [esp + eax + 0x94], bl
inc eax
cmp eax, ecx
jl 0x517247
mov edx, dword [0x6e7b6c]
mov dword [esp + 0x18], edx
lea eax, [esp + 0x94]
lea ecx, [esp + 0x54]
push eax
push ecx
lea edx, [esp + 0x20]
push 0x6d6b5c
push edx
mov byte [esp + 0x144], 4
call fcn.005f368b
mov eax, dword [0x6e7b6c]
add esp, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [0x6ec774]
mov byte [esp + 0x134], 5
test eax, eax
mov eax, 0x6bf124
jne 0x5172b2
mov eax, 0x6bf11c
lea ecx, [esp + 0x94]
lea edx, [esp + 0x54]
push ecx
push edx
push eax
lea eax, [esp + 0x20]
push 0x6d6ba4
push eax
call fcn.005f368b
add esp, 0x14
lea ecx, [esp + 0x3c]
xor bl, bl
call fcn.0050ad00
mov eax, dword [0x6ec774]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x30]
push 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ecx
push 0
push 0xf003f
neg eax
push 0
push 0
sbb eax, eax
push 0
add eax, reloc.WS2_32.dll_bind
push edx
push eax
mov byte [esp + 0x158], 6
call esi
test eax, eax
je 0x51740e
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x40]
call fcn.0050adb0
test eax, eax
je 0x517363
mov ecx, dword [0x6ec774]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x30]
push 0
push edx
push 0
neg ecx
push 0xf003f
push 0
sbb ecx, ecx
push 0
push 0
add ecx, reloc.WS2_32.dll_bind
push eax
push ecx
call esi
test eax, eax
je 0x517410
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
push edx
call fcn.0050ae70
test eax, eax
je 0x5173a5
mov edx, dword [0x6ec774]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x30]
push 0
push eax
push 0
neg edx
push 0xf003f
push 0
sbb edx, edx
push 0
push 0
add edx, reloc.WS2_32.dll_bind
push ecx
push edx
call esi
test eax, eax
je 0x517410
lea ecx, [esp + 0x3c]
mov byte [esp + 0x134], 5
call fcn.0050ad40
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], 4
call fcn.005fa859
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 3
call fcn.005fa859
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 2
call fcn.005fa859
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], 0x6348d4
mov byte [esp + 0x134], 0
call fcn.005fa859
mov dword [esp + 0x134], ebp
jmp 0x517a74
mov bl, 1
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esp + 0xe8]
push 0x32
push eax
push 0
push 0
push ecx
push edx
call ebp
mov eax, dword [esp + 0x30]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call edi
test bl, bl
je 0x51744f
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x40]
call fcn.0050b050
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x54]
push edx
push eax
lea ecx, [esp + 0x20]
push 0x6d6b5c
push ecx
call fcn.005f368b
mov ecx, dword [0x6ec774]
add esp, 0x10
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x30]
push 0
push edx
push 0
push 0xf003f
neg ecx
push 0
push 0
sbb ecx, ecx
push 0
add ecx, reloc.WS2_32.dll_bind
push eax
push ecx
call esi
test eax, eax
je 0x5174d3
lea ecx, [esp + 0x3c]
mov byte [esp + 0x134], 5
call fcn.0050ad40
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], 4
call fcn.005fa859
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 3
call fcn.005fa859
jmp 0x517a3f
lea ecx, [esp + 0xd8]
call fcn.0050ad00
mov eax, dword [0x6ec774]
mov byte [esp + 0x134], 7
test eax, eax
mov eax, 0x6bf124
jne 0x5174fa
mov eax, 0x6bf11c
mov edx, dword [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x1c]
push 0x6bcc6c
push eax
call fcn.005f368b
add esp, 0x10
lea ecx, [esp + 0x4c]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x6d6b64
push reloc.WS2_32.dll_accept
call esi
test eax, eax
je 0x517567
mov edx, dword [esp + 0x30]
push edx
call edi
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xd8]
push eax
call fcn.0050b050
lea ecx, [esp + 0xd8]
mov byte [esp + 0x134], 6
call fcn.0050ad40
jmp 0x51749b
mov eax, dword [esp + 0x4c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xbc]
lea edx, [esp + 0xd4]
push ecx
push edx
push 0
push 0
mov ebx, 4
push 0x6c1010
push eax
mov dword [esp + 0xd4], ebx
call esi
test eax, eax
jne 0x5175b4
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0xd4]
push ebx
push ecx
push ebx
push eax
push 0x6c1010
push edx
call ebp
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0xbc]
lea ecx, [esp + 0x34]
push eax
push ecx
push 0
push 0
push 0x6c1008
push edx
mov dword [esp + 0xd4], ebx
call esi
test eax, eax
jne 0x5175f1
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x34]
push ebx
push eax
push ebx
push 0
push 0x6c1008
push ecx
call ebp
mov edx, dword [esp + 0x30]
push edx
call edi
mov eax, dword [esp + 0x4c]
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0xdc]
call fcn.0050b050
lea ecx, [esp + 0xd8]
mov byte [esp + 0x134], 6
call fcn.0050ad40
lea ecx, [esp + 0x3c]
mov byte [esp + 0x134], 5
call fcn.0050ad40
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], 4
call fcn.005fa859
mov byte [esp + 0x134], 3
lea ecx, [esp + 0x18]
jmp 0x517a28
mov eax, dword [esp + 0x10]
mov ecx, dword [0x6ec7a0]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 0xe8]
push 0x32
push edx
push 0
push 0
push eax
push ecx
call ebp
mov cl, 0x57
mov al, 0x3f
mov byte [esp + 0x6f], cl
mov byte [esp + 0x74], al
mov byte [esp + 0x79], al
mov dl, 0x53
mov byte [esp + 0x7d], cl
mov byte [esp + 0x7e], al
mov byte [esp + 0x83], al
mov byte [esp + 0x8e], cl
lea edi, [esp + 0x6c]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x6c], 0x25
mov byte [esp + 0x6d], 0x50
mov byte [esp + 0x6e], 0x2a
mov byte [esp + 0x70], 0x2b
mov byte [esp + 0x71], 0x23
mov byte [esp + 0x72], 0x24
mov byte [esp + 0x73], bl
mov byte [esp + 0x75], 0x21
mov byte [esp + 0x76], 0x20
mov byte [esp + 0x77], bl
mov byte [esp + 0x78], 0x56
mov byte [esp + 0x7a], bl
mov byte [esp + 0x7b], dl
mov byte [esp + 0x7c], 0x20
mov byte [esp + 0x7f], dl
mov byte [esp + 0x80], bl
mov byte [esp + 0x81], 0x24
mov byte [esp + 0x82], 0x56
mov byte [esp + 0x84], 0x22
mov byte [esp + 0x85], 0x23
mov byte [esp + 0x86], 0x24
mov byte [esp + 0x87], 0x27
mov byte [esp + 0x88], 0x54
mov byte [esp + 0x89], 0x50
mov byte [esp + 0x8a], 0x20
mov byte [esp + 0x8b], 0x22
mov byte [esp + 0x8c], 0x22
mov byte [esp + 0x8d], 0x22
mov byte [esp + 0x8f], 0x51
mov byte [esp + 0x90], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x517780
mov bl, byte [esp + eax + 0x6c]
xor bl, 0x12
mov byte [esp + eax + 0x6c], bl
inc eax
cmp eax, ecx
jl 0x517770
mov edx, dword [0x6e7b6c]
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x54]
push eax
push ecx
lea edx, [esp + 0x24]
push 0x6d6b5c
push edx
mov byte [esp + 0x144], 8
call fcn.005f368b
mov eax, dword [0x6e7b6c]
add esp, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [0x6ec774]
mov byte [esp + 0x134], 9
test eax, eax
mov eax, 0x6bf124
jne 0x5177d2
mov eax, 0x6bf11c
lea ecx, [esp + 0x6c]
lea edx, [esp + 0x54]
push ecx
push edx
push eax
lea eax, [esp + 0x30]
push 0x6d6ba4
push eax
call fcn.005f368b
add esp, 0x14
lea ecx, [esp + 0xc0]
xor bl, bl
call fcn.0050ad00
mov eax, dword [0x6ec774]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x50]
push 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ecx
push 0
push 0xf003f
neg eax
push 0
push 0
sbb eax, eax
push 0
add eax, reloc.WS2_32.dll_bind
push edx
push eax
mov byte [esp + 0x158], 0xa
call esi
test eax, eax
je 0x5178d0
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0xc4]
call fcn.0050adb0
test eax, eax
je 0x517882
mov ecx, dword [0x6ec774]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x50]
push 0
push edx
push 0
neg ecx
push 0xf003f
push 0
sbb ecx, ecx
push 0
push 0
add ecx, reloc.WS2_32.dll_bind
push eax
push ecx
call esi
test eax, eax
je 0x5178d2
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0xc0]
push edx
call fcn.0050ae70
test eax, eax
je 0x517958
mov edx, dword [0x6ec774]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x50]
push 0
push eax
push 0
neg edx
push 0xf003f
push 0
sbb edx, edx
push 0
push 0
add edx, reloc.WS2_32.dll_bind
push ecx
push edx
call esi
test eax, eax
je 0x5178d2
jmp 0x517958
mov bl, 1
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x50]
lea eax, [esp + 0xe8]
push 0x32
push eax
push 0
push 0
push ecx
push edx
call ebp
mov eax, dword [esp + 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x51790c
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0xc4]
call fcn.0050b050
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x54]
push edx
push eax
lea ecx, [esp + 0x24]
push 0x6d6b5c
push ecx
call fcn.005f368b
mov ecx, dword [0x6ec774]
add esp, 0x10
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x50]
push 0
push edx
push 0
push 0xf003f
neg ecx
push 0
push 0
sbb ecx, ecx
push 0
add ecx, reloc.WS2_32.dll_bind
push eax
push ecx
call esi
test eax, eax
je 0x517993
lea ecx, [esp + 0xc0]
mov byte [esp + 0x134], 9
call fcn.0050ad40
lea ecx, [esp + 0x24]
mov byte [esp + 0x134], 8
call fcn.005fa859
lea ecx, [esp + 0x1c]
mov byte [esp + 0x134], 3
call fcn.005fa859
jmp 0x517a3f
lea ecx, [esp + 0x11c]
call fcn.0050ad00
mov eax, dword [0x6ec774]
mov byte [esp + 0x134], 0xb
test eax, eax
mov eax, 0x6bf124
jne 0x5179ba
mov eax, 0x6bf11c
mov edx, dword [esp + 0x1c]
push edx
push eax
lea eax, [esp + 0x2c]
push 0x6bcc6c
push eax
call fcn.005f368b
mov ecx, dword [esp + 0x34]
add esp, 0x10
push ecx
lea ecx, [esp + 0x120]
call fcn.0050b050
lea ecx, [esp + 0x11c]
mov byte [esp + 0x134], 0xa
call fcn.0050ad40
lea ecx, [esp + 0xc0]
mov byte [esp + 0x134], 9
call fcn.0050ad40
lea ecx, [esp + 0x24]
mov byte [esp + 0x134], 8
call fcn.005fa859
mov byte [esp + 0x134], 3
lea ecx, [esp + 0x1c]
call fcn.005fa859
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x517a3f
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 2
call fcn.005fa859
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], 0x6348d4
mov byte [esp + 0x134], 0
call fcn.005fa859
mov dword [esp + 0x134], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.005fa859
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret