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

Disassembly:
push 0xffffffffffffffff
push 0x627a2b
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 str.rpcrt4.dll
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 0x51954d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UuidCreate
push ebx
call esi
push str.UuidToStringA
push ebx
mov edi, eax
call esi
push str.RpcStringFreeA
push ebx
mov ebp, eax
call esi
test edi, edi
mov ebx, eax
je 0x51954d
test ebp, ebp
je 0x51954d
lea eax, [esp + 0xd8]
push eax
call edi
test eax, eax
jne 0x51954d
lea ecx, [esp + 0x4c]
lea edx, [esp + 0xd8]
push ecx
push edx
call ebp
test eax, eax
jne 0x51954d
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 0x519584
lea ecx, [esp + 0x4c]
push ecx
call ebx
jmp 0x519584
mov eax, dword [0x6c95a8]
lea edx, [esp + 0xe8]
test eax, eax
mov edi, str.9C9D53D4_A978_43FC_93E2_1C21B529E6D7
jne 0x519567
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 0x51961f
mov bl, byte [esp + eax + 0x54]
xor bl, 0x12
mov byte [esp + eax + 0x54], bl
inc eax
cmp eax, ecx
jl 0x51960f
mov ecx, dword [0x6f175c]
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 0x5196a5
mov dl, byte [esp + eax + 0x3c]
xor dl, 0x12
mov byte [esp + eax + 0x3c], dl
inc eax
cmp eax, ecx
jl 0x519695
lea edx, [esp + 0x3c]
lea eax, [esp + 0x28]
push edx
push 0x6c5098
push eax
call fcn.005fa6fb
mov ecx, dword [0x6f175c]
add esp, 0xc
mov dword [esp + 0x20], ecx
lea edx, [esp + 0xe8]
lea eax, [esp + 0x20]
push edx
push 0x6c5098
push eax
mov byte [esp + 0x140], 1
call fcn.005fa6fb
add esp, 0xc
mov dword [esp + 0x2c], 0x63c91c
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.0044b810
mov edx, dword [0x6f175c]
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 0x51977f
mov dl, byte [esp + eax + 0x34]
xor dl, 0x12
mov byte [esp + eax + 0x34], dl
inc eax
cmp eax, ecx
jl 0x51976f
lea eax, [esp + 0x34]
lea ecx, [esp + 0x10]
push eax
push 0x6c5098
push ecx
call fcn.005fa6fb
mov eax, dword [0x6c95a8]
add esp, 0xc
test eax, eax
je 0x519ce7
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 0x5198ed
mov bl, byte [esp + eax + 0x94]
xor bl, 0x12
mov byte [esp + eax + 0x94], bl
inc eax
cmp eax, ecx
jl 0x5198d7
mov edx, dword [0x6f175c]
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 + 0x144], 4
call fcn.005fa6fb
mov eax, dword [0x6f175c]
add esp, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [0x6f6334]
mov byte [esp + 0x134], 5
test eax, eax
mov eax, str.CURRENT_USER
jne 0x519942
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.005fa6fb
add esp, 0x14
lea ecx, [esp + 0x3c]
xor bl, bl
call fcn.0050cde0
mov eax, dword [0x6f6334]
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 0x519a9e
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x40]
call fcn.0050ce90
test eax, eax
je 0x5199f3
mov ecx, dword [0x6f6334]
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 0x519aa0
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
push edx
call fcn.0050cf50
test eax, eax
je 0x519a35
mov edx, dword [0x6f6334]
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 0x519aa0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x134], 5
call fcn.0050ce20
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], 4
call fcn.006018cc
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 3
call fcn.006018cc
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 2
call fcn.006018cc
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], 0x63c91c
mov byte [esp + 0x134], 0
call fcn.006018cc
mov dword [esp + 0x134], ebp
jmp 0x51a104
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 0x519adf
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x40]
call fcn.0050d130
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.005fa6fb
mov ecx, dword [0x6f6334]
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 0x519b63
lea ecx, [esp + 0x3c]
mov byte [esp + 0x134], 5
call fcn.0050ce20
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], 4
call fcn.006018cc
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 3
call fcn.006018cc
jmp 0x51a0cf
lea ecx, [esp + 0xd8]
call fcn.0050cde0
mov eax, dword [0x6f6334]
mov byte [esp + 0x134], 7
test eax, eax
mov eax, str.CURRENT_USER
jne 0x519b8a
mov eax, str.MACHINE
mov edx, dword [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x1c]
push 0x6c5c64
push eax
call fcn.005fa6fb
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 0x519bf7
mov edx, dword [esp + 0x30]
push edx
call edi
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xd8]
push eax
call fcn.0050d130
lea ecx, [esp + 0xd8]
mov byte [esp + 0x134], 6
call fcn.0050ce20
jmp 0x519b2b
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 0x519c44
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 0x519c81
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.0050d130
lea ecx, [esp + 0xd8]
mov byte [esp + 0x134], 6
call fcn.0050ce20
lea ecx, [esp + 0x3c]
mov byte [esp + 0x134], 5
call fcn.0050ce20
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], 4
call fcn.006018cc
mov byte [esp + 0x134], 3
lea ecx, [esp + 0x18]
jmp 0x51a0b8
mov eax, dword [esp + 0x10]
mov ecx, dword [0x6f6360]
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 0x519e10
mov bl, byte [esp + eax + 0x6c]
xor bl, 0x12
mov byte [esp + eax + 0x6c], bl
inc eax
cmp eax, ecx
jl 0x519e00
mov edx, dword [0x6f175c]
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 + 0x144], 8
call fcn.005fa6fb
mov eax, dword [0x6f175c]
add esp, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [0x6f6334]
mov byte [esp + 0x134], 9
test eax, eax
mov eax, str.CURRENT_USER
jne 0x519e62
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.005fa6fb
add esp, 0x14
lea ecx, [esp + 0xc0]
xor bl, bl
call fcn.0050cde0
mov eax, dword [0x6f6334]
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 0x519f60
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0xc4]
call fcn.0050ce90
test eax, eax
je 0x519f12
mov ecx, dword [0x6f6334]
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 0x519f62
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0xc0]
push edx
call fcn.0050cf50
test eax, eax
je 0x519fe8
mov edx, dword [0x6f6334]
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 0x519f62
jmp 0x519fe8
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 0x519f9c
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0xc4]
call fcn.0050d130
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.005fa6fb
mov ecx, dword [0x6f6334]
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 0x51a023
lea ecx, [esp + 0xc0]
mov byte [esp + 0x134], 9
call fcn.0050ce20
lea ecx, [esp + 0x24]
mov byte [esp + 0x134], 8
call fcn.006018cc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x134], 3
call fcn.006018cc
jmp 0x51a0cf
lea ecx, [esp + 0x11c]
call fcn.0050cde0
mov eax, dword [0x6f6334]
mov byte [esp + 0x134], 0xb
test eax, eax
mov eax, str.CURRENT_USER
jne 0x51a04a
mov eax, str.MACHINE
mov edx, dword [esp + 0x1c]
push edx
push eax
lea eax, [esp + 0x2c]
push 0x6c5c64
push eax
call fcn.005fa6fb
mov ecx, dword [esp + 0x34]
add esp, 0x10
push ecx
lea ecx, [esp + 0x120]
call fcn.0050d130
lea ecx, [esp + 0x11c]
mov byte [esp + 0x134], 0xa
call fcn.0050ce20
lea ecx, [esp + 0xc0]
mov byte [esp + 0x134], 9
call fcn.0050ce20
lea ecx, [esp + 0x24]
mov byte [esp + 0x134], 8
call fcn.006018cc
mov byte [esp + 0x134], 3
lea ecx, [esp + 0x1c]
call fcn.006018cc
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x51a0cf
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 2
call fcn.006018cc
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], 0x63c91c
mov byte [esp + 0x134], 0
call fcn.006018cc
mov dword [esp + 0x134], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.006018cc
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret