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

Disassembly:
push 0xffffffffffffffff
push 0x61c6ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2dc
mov eax, dword [0x6cc708]
push edi
mov dword [esp + 0x80], ecx
mov dword [esp + 0x10], eax
xor edi, edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x2e8], edi
lea eax, [esp + 0xc]
lea edx, [esp + 0x10]
push eax
push edx
mov byte [esp + 0x2f0], 1
call fcn.0047fa20
test eax, eax
jne 0x47e30e
lea ecx, [esp + 0xc]
mov byte [esp + 0x2e8], al
call fcn.00602ad6
lea ecx, [esp + 0x10]
mov dword [esp + 0x2e8], 0xffffffff
call fcn.00602ad6
pop edi
mov ecx, dword [esp + 0x2dc]
mov dword fs:[0], ecx
add esp, 0x2e8
ret
push ebx
push ebp
push esi
lea ecx, [esp + 0x98]
mov dword [esp + 0x10], edi
call fcn.0050d870
lea ecx, [esp + 0xa8]
mov byte [esp + 0x2f4], 2
call fcn.0050d870
mov edx, dword [0x6d12c4]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
neg edx
push eax
push 0xf003f
sbb edx, edx
push edi
add edx, reloc.WS2_32.dll_bind
push ecx
push edx
mov byte [esp + 0x308], 3
call ebp
mov esi, eax
cmp esi, edi
je 0x47e4d1
cmp esi, 2
je 0x47e43c
mov eax, dword [0x6cc708]
mov dword [esp + 0x24], eax
mov eax, dword [0x6d12c4]
mov byte [esp + 0x2f4], 4
cmp eax, edi
mov eax, str.CURRENT_USER
jne 0x47e39d
mov eax, str.MACHINE
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push ecx
push eax
push 0x6a0c6c
push edx
call fcn.005fb90b
mov eax, dword [esp + 0x34]
add esp, 0x10
lea ecx, [esp + 0x98]
push eax
call fcn.0050d920
test eax, eax
je 0x47e3ed
mov eax, dword [0x6d12c4]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
neg eax
push ecx
push 0xf003f
sbb eax, eax
push edi
add eax, reloc.WS2_32.dll_bind
push edx
push eax
call ebp
mov esi, eax
cmp esi, edi
je 0x47e42b
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x9c]
call fcn.0050d9e0
test eax, eax
je 0x47e42b
mov ecx, dword [0x6d12c4]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x10]
neg ecx
push edx
push 0xf003f
sbb ecx, ecx
push edi
add ecx, reloc.WS2_32.dll_bind
push eax
push ecx
call ebp
mov esi, eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x2f4], 3
call fcn.00602ad6
cmp esi, edi
je 0x47e4d1
cmp dword [0x6d12c4], edi
jne 0x47e4d1
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
push 0xf003f
push edi
push eax
push reloc.WS2_32.dll_accept
call ebp
test eax, eax
je 0x47e4d1
mov ecx, dword [0x6cc708]
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push edx
push str.CURRENT_USER_s
push eax
mov byte [esp + 0x300], 5
call fcn.005fb90b
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push ecx
lea ecx, [esp + 0xac]
call fcn.0050d920
test eax, eax
je 0x47e4c0
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
push 0xf003f
push edi
push eax
push reloc.WS2_32.dll_accept
call ebp
lea ecx, [esp + 0x20]
mov byte [esp + 0x2f4], 3
call fcn.00602ad6
mov al, 0x63
mov bl, 0x79
mov byte [esp + 0x4f], al
mov byte [esp + 0x54], al
mov al, 0x37
mov dl, 0x76
mov byte [esp + 0x55], al
mov byte [esp + 0x5e], al
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x44], 0x44
mov byte [esp + 0x45], 0x58
mov byte [esp + 0x46], 0x51
mov byte [esp + 0x47], 0x43
mov byte [esp + 0x48], 0x40
mov byte [esp + 0x49], 0x56
mov byte [esp + 0x4a], 0x45
mov byte [esp + 0x4b], 0x52
mov byte [esp + 0x4c], 0x4b
mov byte [esp + 0x4d], 0x5e
mov byte [esp + 0x4e], bl
mov byte [esp + 0x50], 0x72
mov byte [esp + 0x51], 0x65
mov byte [esp + 0x52], bl
mov byte [esp + 0x53], 0x72
mov byte [esp + 0x56], 0x53
mov byte [esp + 0x57], 0x78
mov byte [esp + 0x58], 0x60
mov byte [esp + 0x59], bl
mov byte [esp + 0x5a], 0x7b
mov byte [esp + 0x5b], 0x78
mov byte [esp + 0x5c], dl
mov byte [esp + 0x5d], 0x73
mov byte [esp + 0x5f], 0x5a
mov byte [esp + 0x60], dl
mov byte [esp + 0x61], bl
mov byte [esp + 0x62], dl
mov byte [esp + 0x63], 0x70
mov byte [esp + 0x64], 0x72
mov byte [esp + 0x65], 0x65
mov byte [esp + 0x66], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x47e599
xor byte [esp + eax + 0x44], 0x17
inc eax
cmp eax, ecx
jl 0x47e58f
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x34], 0x44
mov byte [esp + 0x35], 0x72
mov byte [esp + 0x36], 0x65
mov byte [esp + 0x37], 0x7e
mov byte [esp + 0x38], dl
mov byte [esp + 0x39], 0x7b
mov byte [esp + 0x3a], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x47e5dd
mov dl, byte [esp + eax + 0x34]
xor dl, 0x17
mov byte [esp + eax + 0x34], dl
inc eax
cmp eax, ecx
jl 0x47e5cd
lea ecx, [esp + 0x90]
mov edi, 1
push ecx
push edi
lea edx, [esp + 0x4c]
push 0
mov esi, 0x32
push edx
push reloc.WS2_32.dll_bind
mov byte [esp + 0xcc], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x50], esi
call ebp
test eax, eax
lea eax, [esp + 0x3c]
lea ecx, [esp + 0xb8]
push eax
push ecx
push 0
lea edx, [esp + 0x40]
push 0
push edx
jne 0x47e67b
mov eax, dword [esp + 0xa4]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
call ebp
test eax, eax
je 0x47e667
lea ecx, [esp + 0x3c]
lea edx, [esp + 0xb8]
push ecx
mov ecx, dword [0x6d12f4]
push edx
push 0
lea eax, [esp + 0x40]
push 0
push eax
push ecx
mov dword [esp + 0x54], esi
call ebp
test eax, eax
jne 0x47e66b
mov dword [esp + 0x24], edi
mov edx, dword [esp + 0x90]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47e691
mov eax, dword [0x6d12f4]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
call ebp
test eax, eax
jne 0x47e691
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x10]
xor esi, esi
cmp eax, esi
mov byte [esp + 0x17], 0
je 0x47eb95
lea ecx, [esp + 0x94]
lea edx, [esp + 0xec]
push ecx
push edx
push esi
push esi
push esi
push eax
mov dword [esp + 0xac], 0x200
call ebp
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x40], eax
jne 0x47e884
cmp dword [esp + 0x24], esi
je 0x47e6e4
mov byte [esp + 0x17], 1
jmp 0x47e9b4
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x2c], 0x41
mov byte [esp + 0x2d], 0x72
mov byte [esp + 0x2e], 0x65
mov byte [esp + 0x2f], 0x64
mov byte [esp + 0x30], 0x7e
mov byte [esp + 0x31], 0x78
mov byte [esp + 0x32], bl
mov byte [esp + 0x33], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x47e72d
mov bl, byte [esp + eax + 0x2c]
xor bl, 0x17
mov byte [esp + eax + 0x2c], bl
inc eax
cmp eax, ecx
jl 0x47e71d
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
lea ecx, [esp + 0x44]
push 0
push ecx
push edx
mov dword [esp + 0x44], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x47e9b4
lea eax, [esp + 0x68]
push eax
call fcn.005fbaba
push 0
lea ecx, [esp + 0x6c]
call fcn.005fbacd
mov esi, dword [eax + 0x14]
push 0
lea ecx, [esp + 0x6c]
add esi, 0x76c
call fcn.005fbacd
mov edi, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x6c]
inc edi
call fcn.005fbacd
lea ecx, [esi + esi*2]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x40], 0x20
lea ecx, [edi + ecx*4]
lea ecx, [ecx + ecx*2]
lea edx, [ecx + ecx*4]
lea ecx, [esp + 0x6c]
lea esi, [eax + edx*2 - 0xa6fe0]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x40]
push eax
push ecx
push 0
push 0
push 0
push edx
call ebp
test eax, eax
jne 0x47e81f
lea eax, [esp + 0x6c]
push eax
call fcn.005e65c8
add esp, 4
test eax, eax
je 0x47e874
sub esi, eax
cmp esi, 0x3c
jbe 0x47e874
mov ecx, dword [esp + 0x8c]
push 9
push 0x14a6
push 0x111
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47e9b4
mov eax, dword [0x6cc708]
mov dword [esp + 0x28], eax
push esi
lea ecx, [esp + 0x2c]
push 0x6a0150
push ecx
mov byte [esp + 0x300], 6
call fcn.005fb90b
mov edx, dword [esp + 0x34]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x28]
push 1
push eax
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x28]
mov byte [esp + 0x2f4], 3
call fcn.00602ad6
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47e9b4
lea ecx, [esp + 0x28]
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0xf0]
push edx
push eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
call fcn.00577030
add esp, 0xc
test eax, eax
je 0x47e9a3
mov al, 0x27
mov cl, 0x25
mov byte [esp + 0x6f], al
mov byte [esp + 0x70], cl
mov byte [esp + 0x75], al
mov byte [esp + 0x76], al
mov byte [esp + 0x77], cl
lea edi, [esp + 0x6c]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x6c], 0x7b
mov byte [esp + 0x6d], 0x7a
mov byte [esp + 0x6e], 0x40
mov byte [esp + 0x71], 0x7c
mov byte [esp + 0x72], 0x7d
mov byte [esp + 0x73], 0x5a
mov byte [esp + 0x74], 0x23
mov byte [esp + 0x78], 0x51
mov byte [esp + 0x79], 0x56
mov byte [esp + 0x7a], bl
mov byte [esp + 0x7b], 0x6d
mov byte [esp + 0x7c], 0x60
mov byte [esp + 0x7d], 0x60
mov byte [esp + 0x7e], 0x64
mov byte [esp + 0x7f], 0x56
mov byte [esp + 0x80], 0x26
mov byte [esp + 0x81], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x47e946
mov bl, byte [esp + eax + 0x6c]
xor bl, 0x17
mov byte [esp + eax + 0x6c], bl
inc eax
cmp eax, ecx
jl 0x47e936
mov dword [esp + 0x40], 0x634434
lea edi, [esp + 0x6c]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x28]
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x2f4], 7
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x70]
push ecx
push edx
push eax
lea ecx, [esp + 0x50]
call fcn.0044b990
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0xb8]
push ecx
push edx
call fcn.005e6820
add esp, 8
test eax, eax
je 0x47e99b
mov byte [esp + 0x17], 1
mov byte [esp + 0x2f4], 3
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x47e9b4
push eax
call fcn.005e6206
add esp, 4
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x17]
test al, al
je 0x47ecd7
mov edi, 1
xor esi, esi
mov ecx, dword [0x6d12c4]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
neg ecx
push edx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
sbb ecx, ecx
push eax
add ecx, reloc.WS2_32.dll_bind
push ecx
call edi
mov esi, eax
test esi, esi
je 0x47eb60
cmp esi, 2
mov dword [esp + 0x10], 0
je 0x47ead2
mov edx, dword [0x6cc708]
mov dword [esp + 0x20], edx
mov eax, dword [0x6d12c4]
mov byte [esp + 0x2f4], 8
test eax, eax
mov eax, str.CURRENT_USER
jne 0x47ea37
mov eax, str.MACHINE
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
push eax
push 0x6a0c6c
push edx
call fcn.005fb90b
mov eax, dword [esp + 0x30]
add esp, 0x10
lea ecx, [esp + 0x98]
push eax
call fcn.0050d920
test eax, eax
je 0x47ea85
mov eax, dword [0x6d12c4]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
neg eax
push ecx
push 1
sbb eax, eax
push 0
add eax, reloc.WS2_32.dll_bind
push edx
push eax
call edi
mov esi, eax
test esi, esi
je 0x47eac1
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x9c]
call fcn.0050d9e0
test eax, eax
je 0x47eac1
mov ecx, dword [0x6d12c4]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
neg ecx
push edx
push 1
sbb ecx, ecx
push 0
add ecx, reloc.WS2_32.dll_bind
push eax
push ecx
call edi
mov esi, eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2f4], 3
call fcn.00602ad6
test esi, esi
je 0x47eb60
mov eax, dword [0x6d12c4]
test eax, eax
jne 0x47eb60
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push 1
push 0
push eax
push reloc.WS2_32.dll_accept
call edi
test eax, eax
je 0x47eb60
mov ecx, dword [0x6cc708]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x28]
push edx
push str.CURRENT_USER_s
push eax
mov byte [esp + 0x300], 9
call fcn.005fb90b
mov ecx, dword [esp + 0x34]
add esp, 0xc
push ecx
lea ecx, [esp + 0xac]
call fcn.0050d920
test eax, eax
je 0x47eb4f
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push 1
push 0
push eax
push reloc.WS2_32.dll_accept
call edi
lea ecx, [esp + 0x28]
mov byte [esp + 0x2f4], 3
call fcn.00602ad6
mov eax, dword [esp + 0x10]
test eax, eax
je 0x47ebd8
mov ecx, dword [esp + 0x8c]
push 0
push 0x14a6
push 0x111
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47ecd7
cmp dword [esp + 0x24], esi
jne 0x47e9d2
mov eax, dword [0x6d12c4]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push esi
push ecx
push esi
neg eax
push 0xf003f
push esi
sbb eax, eax
push esi
push esi
add eax, reloc.WS2_32.dll_bind
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47e9d2
mov eax, dword [esp + 0x24]
test eax, eax
je 0x47ecd7
lea edi, [esp + 0xb8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x18]
not ecx
dec ecx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x1c]
not ecx
dec ecx
add edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 3]
push eax
call fcn.005feedc
mov edx, eax
add esp, 4
test edx, edx
je 0x47ecd7
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
push 0
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x28]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x2c]
push edx
not ecx
dec ecx
push 0x47cf80
lea ebx, [ecx + edx + 1]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x30]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x34]
lea esi, [esp + 0xd0]
not ecx
dec ecx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov eax, edx
dec ecx
add eax, ebx
mov edi, esi
lea ebx, [ecx + eax + 2]
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, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.006030d4
lea ecx, [esp + 0xa8]
mov byte [esp + 0x2f4], 2
call fcn.0050d8b0
lea ecx, [esp + 0x98]
mov byte [esp + 0x2f4], 1
call fcn.0050d8b0
lea ecx, [esp + 0x18]
mov byte [esp + 0x2f4], 0
call fcn.00602ad6
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2f4], 0xffffffff
call fcn.00602ad6
mov ecx, dword [esp + 0x2ec]
pop esi
pop ebp
pop ebx
pop edi
mov dword fs:[0], ecx
add esp, 0x2e8
ret