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

Disassembly:
push 0xffffffffffffffff
push 0x6284be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push ebp
push esi
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0xf8]
push str.rpcrt4.dll
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0xd0], ebp
je 0x51b040
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UuidCreate
push ebp
call esi
push str.UuidToStringA
push ebp
mov edi, eax
call esi
push str.RpcStringFreeA
push ebp
mov ebx, eax
call esi
test edi, edi
mov esi, eax
je 0x51b040
test ebx, ebx
je 0x51b040
lea eax, [esp + 0xd8]
push eax
call edi
test eax, eax
jne 0x51b040
lea ecx, [esp + 0x4c]
lea edx, [esp + 0xd8]
push ecx
push edx
call ebx
test eax, eax
jne 0x51b040
mov eax, dword [esp + 0x4c]
push 0x3f
lea ecx, [esp + 0xfc]
push eax
push ecx
call fcn.005e7540
add esp, 0xc
mov byte [esp + 0x137], 0
test esi, esi
je 0x51b077
lea edx, [esp + 0x4c]
push edx
call esi
jmp 0x51b077
mov eax, dword [0x6a55b0]
lea edx, [esp + 0xf8]
test eax, eax
mov edi, str.9C9D53D4_A978_43FC_93E2_1C21B529E6D7
jne 0x51b05a
mov edi, str.E8CF4E59_B7A3_41F2_86C7_82B03334F22A
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 0x51b112
mov bl, byte [esp + eax + 0x54]
xor bl, 0x12
mov byte [esp + eax + 0x54], bl
inc eax
cmp eax, ecx
jl 0x51b102
mov ecx, dword [0x6cd768]
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 + 0x140], 0
test ecx, ecx
jle 0x51b198
mov dl, byte [esp + eax + 0x3c]
xor dl, 0x12
mov byte [esp + eax + 0x3c], dl
inc eax
cmp eax, ecx
jl 0x51b188
lea edx, [esp + 0x3c]
lea eax, [esp + 0x28]
push edx
push 0x6a10a0
push eax
call fcn.005fc86b
mov ecx, dword [0x6cd768]
add esp, 0xc
mov dword [esp + 0x20], ecx
lea edx, [esp + 0xf8]
lea eax, [esp + 0x20]
push edx
push 0x6a10a0
push eax
mov byte [esp + 0x14c], 1
call fcn.005fc86b
add esp, 0xc
mov dword [esp + 0x2c], 0x635434
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 + 0xf8]
push ecx
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
push ecx
lea ecx, [esp + 0x104]
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x150], 2
call fcn.0044bc90
mov edx, dword [0x6cd768]
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 + 0x140], 3
test ecx, ecx
jle 0x51b272
mov dl, byte [esp + eax + 0x34]
xor dl, 0x12
mov byte [esp + eax + 0x34], dl
inc eax
cmp eax, ecx
jl 0x51b262
lea eax, [esp + 0x34]
lea ecx, [esp + 0x10]
push eax
push 0x6a10a0
push ecx
call fcn.005fc86b
mov eax, dword [0x6a55b0]
add esp, 0xc
test eax, eax
je 0x51b7dc
mov al, 0x57
mov cl, 0x54
mov byte [esp + 0x95], al
mov byte [esp + 0x9f], al
mov byte [esp + 0xa3], al
mov byte [esp + 0xb2], cl
mov byte [esp + 0xb3], cl
mov byte [esp + 0xb5], al
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 + 0x9c], 0x3f
mov byte [esp + 0x9d], bl
mov byte [esp + 0x9e], 0x56
mov byte [esp + 0xa0], 0x20
mov byte [esp + 0xa1], 0x3f
mov byte [esp + 0xa2], bl
mov byte [esp + 0xa4], 0x22
mov byte [esp + 0xa5], 0x25
mov byte [esp + 0xa6], 0x3f
mov byte [esp + 0xa7], 0x50
mov byte [esp + 0xa8], 0x2a
mov byte [esp + 0xa9], 0x24
mov byte [esp + 0xaa], 0x20
mov byte [esp + 0xab], 0x3f
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 0x51b3e2
mov bl, byte [esp + eax + 0x94]
xor bl, 0x12
mov byte [esp + eax + 0x94], bl
inc eax
cmp eax, ecx
jl 0x51b3cc
mov edx, dword [0x6cd768]
mov dword [esp + 0x18], edx
lea eax, [esp + 0x94]
lea ecx, [esp + 0x54]
push eax
push ecx
lea edx, [esp + 0x20]
push str._s_s
push edx
mov byte [esp + 0x150], 4
call fcn.005fc86b
mov eax, dword [0x6cd768]
add esp, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [0x6d2324]
mov byte [esp + 0x140], 5
test eax, eax
mov eax, str.CURRENT_USER
jne 0x51b437
mov eax, str.MACHINE
lea ecx, [esp + 0x94]
lea edx, [esp + 0x54]
push ecx
push edx
push eax
lea eax, [esp + 0x20]
push str._s_s_s
push eax
call fcn.005fc86b
add esp, 0x14
lea ecx, [esp + 0x3c]
xor bl, bl
call fcn.0050e5b0
mov eax, dword [0x6d2324]
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 + 0x164], 6
call esi
test eax, eax
je 0x51b593
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x40]
call fcn.0050e660
test eax, eax
je 0x51b4e8
mov ecx, dword [0x6d2324]
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 0x51b595
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
push edx
call fcn.0050e720
test eax, eax
je 0x51b52a
mov edx, dword [0x6d2324]
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 0x51b595
lea ecx, [esp + 0x3c]
mov byte [esp + 0x140], 5
call fcn.0050e5f0
lea ecx, [esp + 0x14]
mov byte [esp + 0x140], 4
call fcn.00603a3c
lea ecx, [esp + 0x18]
mov byte [esp + 0x140], 3
call fcn.00603a3c
lea ecx, [esp + 0x10]
mov byte [esp + 0x140], 2
call fcn.00603a3c
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], 0x635434
mov byte [esp + 0x140], 0
call fcn.00603a3c
mov dword [esp + 0x140], ebp
jmp 0x51bbfb
mov bl, 1
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esp + 0xf8]
push 0x40
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 0x51b5d4
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x40]
call fcn.0050e900
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x54]
push edx
push eax
lea ecx, [esp + 0x20]
push str._s_s
push ecx
call fcn.005fc86b
mov ecx, dword [0x6d2324]
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 0x51b658
lea ecx, [esp + 0x3c]
mov byte [esp + 0x140], 5
call fcn.0050e5f0
lea ecx, [esp + 0x14]
mov byte [esp + 0x140], 4
call fcn.00603a3c
lea ecx, [esp + 0x18]
mov byte [esp + 0x140], 3
call fcn.00603a3c
jmp 0x51bbc6
lea ecx, [esp + 0xd8]
call fcn.0050e5b0
mov eax, dword [0x6d2324]
mov byte [esp + 0x140], 7
test eax, eax
mov eax, str.CURRENT_USER
jne 0x51b67f
mov eax, str.MACHINE
mov edx, dword [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x1c]
push 0x6a1c6c
push eax
call fcn.005fc86b
add esp, 0x10
lea ecx, [esp + 0x4c]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareClassesCLSID07999AC3_058B_40BF_984F_69EB1E554CA7
push reloc.WS2_32.dll_accept
call esi
test eax, eax
je 0x51b6ec
mov edx, dword [esp + 0x30]
push edx
call edi
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xd8]
push eax
call fcn.0050e900
lea ecx, [esp + 0xd8]
mov byte [esp + 0x140], 6
call fcn.0050e5f0
jmp 0x51b620
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 str.Model
push eax
mov dword [esp + 0xd4], ebx
call esi
test eax, eax
jne 0x51b739
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0xd4]
push ebx
push ecx
push ebx
push eax
push str.Model
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 str.Therad
push edx
mov dword [esp + 0xd4], ebx
call esi
test eax, eax
jne 0x51b776
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x34]
push ebx
push eax
push ebx
push 0
push str.Therad
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.0050e900
lea ecx, [esp + 0xd8]
mov byte [esp + 0x140], 6
call fcn.0050e5f0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x140], 5
call fcn.0050e5f0
lea ecx, [esp + 0x14]
mov byte [esp + 0x140], 4
call fcn.00603a3c
mov byte [esp + 0x140], 3
lea ecx, [esp + 0x18]
jmp 0x51bbaf
mov eax, dword [esp + 0x10]
mov ecx, dword [0x6d2354]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 0xf8]
push 0x40
push edx
push 0
push 0
push eax
push ecx
call ebp
mov al, 0x57
mov cl, 0x53
mov dl, 0x50
mov byte [esp + 0x6f], al
mov byte [esp + 0x7b], cl
mov byte [esp + 0x7d], al
mov byte [esp + 0x7f], cl
mov byte [esp + 0x8e], al
lea edi, [esp + 0x6c]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x6c], 0x25
mov byte [esp + 0x6d], dl
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 + 0x74], 0x3f
mov byte [esp + 0x75], 0x21
mov byte [esp + 0x76], 0x20
mov byte [esp + 0x77], bl
mov byte [esp + 0x78], 0x56
mov byte [esp + 0x79], 0x3f
mov byte [esp + 0x7a], bl
mov byte [esp + 0x7c], 0x20
mov byte [esp + 0x7e], 0x3f
mov byte [esp + 0x80], bl
mov byte [esp + 0x81], 0x24
mov byte [esp + 0x82], 0x56
mov byte [esp + 0x83], 0x3f
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], dl
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 0x51b907
mov bl, byte [esp + eax + 0x6c]
xor bl, 0x12
mov byte [esp + eax + 0x6c], bl
inc eax
cmp eax, ecx
jl 0x51b8f7
mov edx, dword [0x6cd768]
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x54]
push eax
push ecx
lea edx, [esp + 0x24]
push str._s_s
push edx
mov byte [esp + 0x150], 8
call fcn.005fc86b
mov eax, dword [0x6cd768]
add esp, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [0x6d2324]
mov byte [esp + 0x140], 9
test eax, eax
mov eax, str.CURRENT_USER
jne 0x51b959
mov eax, str.MACHINE
lea ecx, [esp + 0x6c]
lea edx, [esp + 0x54]
push ecx
push edx
push eax
lea eax, [esp + 0x30]
push str._s_s_s
push eax
call fcn.005fc86b
add esp, 0x14
lea ecx, [esp + 0xc0]
xor bl, bl
call fcn.0050e5b0
mov eax, dword [0x6d2324]
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 + 0x164], 0xa
call esi
test eax, eax
je 0x51ba57
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0xc4]
call fcn.0050e660
test eax, eax
je 0x51ba09
mov ecx, dword [0x6d2324]
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 0x51ba59
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0xc0]
push edx
call fcn.0050e720
test eax, eax
je 0x51badf
mov edx, dword [0x6d2324]
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 0x51ba59
jmp 0x51badf
mov bl, 1
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x50]
lea eax, [esp + 0xf8]
push 0x40
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 0x51ba93
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0xc4]
call fcn.0050e900
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x54]
push edx
push eax
lea ecx, [esp + 0x24]
push str._s_s
push ecx
call fcn.005fc86b
mov ecx, dword [0x6d2324]
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 0x51bb1a
lea ecx, [esp + 0xc0]
mov byte [esp + 0x140], 9
call fcn.0050e5f0
lea ecx, [esp + 0x24]
mov byte [esp + 0x140], 8
call fcn.00603a3c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x140], 3
call fcn.00603a3c
jmp 0x51bbc6
lea ecx, [esp + 0xe8]
call fcn.0050e5b0
mov eax, dword [0x6d2324]
mov byte [esp + 0x140], 0xb
test eax, eax
mov eax, str.CURRENT_USER
jne 0x51bb41
mov eax, str.MACHINE
mov edx, dword [esp + 0x1c]
push edx
push eax
lea eax, [esp + 0x2c]
push 0x6a1c6c
push eax
call fcn.005fc86b
mov ecx, dword [esp + 0x34]
add esp, 0x10
push ecx
lea ecx, [esp + 0xec]
call fcn.0050e900
lea ecx, [esp + 0xe8]
mov byte [esp + 0x140], 0xa
call fcn.0050e5f0
lea ecx, [esp + 0xc0]
mov byte [esp + 0x140], 9
call fcn.0050e5f0
lea ecx, [esp + 0x24]
mov byte [esp + 0x140], 8
call fcn.00603a3c
mov byte [esp + 0x140], 3
lea ecx, [esp + 0x1c]
call fcn.00603a3c
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x51bbc6
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x10]
mov byte [esp + 0x140], 2
call fcn.00603a3c
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], 0x635434
mov byte [esp + 0x140], 0
call fcn.00603a3c
mov dword [esp + 0x140], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.00603a3c
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x134
ret