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

Disassembly:
push 0xffffffffffffffff
push 0x61baee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2dc
mov eax, dword [0x6f175c]
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.004801e0
test eax, eax
jne 0x47eace
lea ecx, [esp + 0xc]
mov byte [esp + 0x2e8], al
call fcn.006018cc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2e8], 0xffffffff
call fcn.006018cc
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.0050cde0
lea ecx, [esp + 0xa8]
mov byte [esp + 0x2f4], 2
call fcn.0050cde0
mov edx, dword [0x6f6334]
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 0x47ec91
cmp esi, 2
je 0x47ebfc
mov eax, dword [0x6f175c]
mov dword [esp + 0x24], eax
mov eax, dword [0x6f6334]
mov byte [esp + 0x2f4], 4
cmp eax, edi
mov eax, str.CURRENT_USER
jne 0x47eb5d
mov eax, str.MACHINE
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push ecx
push eax
push 0x6c5c64
push edx
call fcn.005fa6fb
mov eax, dword [esp + 0x34]
add esp, 0x10
lea ecx, [esp + 0x98]
push eax
call fcn.0050ce90
test eax, eax
je 0x47ebad
mov eax, dword [0x6f6334]
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 0x47ebeb
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x9c]
call fcn.0050cf50
test eax, eax
je 0x47ebeb
mov ecx, dword [0x6f6334]
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.006018cc
cmp esi, edi
je 0x47ec91
cmp dword [0x6f6334], edi
jne 0x47ec91
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 0x47ec91
mov ecx, dword [0x6f175c]
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.005fa6fb
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push ecx
lea ecx, [esp + 0xac]
call fcn.0050ce90
test eax, eax
je 0x47ec80
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.006018cc
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 0x47ed59
xor byte [esp + eax + 0x44], 0x17
inc eax
cmp eax, ecx
jl 0x47ed4f
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 0x47ed9d
mov dl, byte [esp + eax + 0x34]
xor dl, 0x17
mov byte [esp + eax + 0x34], dl
inc eax
cmp eax, ecx
jl 0x47ed8d
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 0x47ee3b
mov eax, dword [esp + 0xa4]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
call ebp
test eax, eax
je 0x47ee27
lea ecx, [esp + 0x3c]
lea edx, [esp + 0xb8]
push ecx
mov ecx, dword [0x6f6360]
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 0x47ee2b
mov dword [esp + 0x24], edi
mov edx, dword [esp + 0x90]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47ee51
mov eax, dword [0x6f6360]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
call ebp
test eax, eax
jne 0x47ee51
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x10]
xor esi, esi
cmp eax, esi
mov byte [esp + 0x17], 0
je 0x47f355
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 0x47f044
cmp dword [esp + 0x24], esi
je 0x47eea4
mov byte [esp + 0x17], 1
jmp 0x47f174
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 0x47eeed
mov bl, byte [esp + eax + 0x2c]
xor bl, 0x17
mov byte [esp + eax + 0x2c], bl
inc eax
cmp eax, ecx
jl 0x47eedd
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 0x47f174
lea eax, [esp + 0x68]
push eax
call fcn.005fa8aa
push 0
lea ecx, [esp + 0x6c]
call fcn.005fa8bd
mov esi, dword [eax + 0x14]
push 0
lea ecx, [esp + 0x6c]
add esi, 0x76c
call fcn.005fa8bd
mov edi, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x6c]
inc edi
call fcn.005fa8bd
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 0x47efdf
lea eax, [esp + 0x6c]
push eax
call fcn.005e53c8
add esp, 4
test eax, eax
je 0x47f034
sub esi, eax
cmp esi, 0x3c
jbe 0x47f034
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 0x47f174
mov eax, dword [0x6f175c]
mov dword [esp + 0x28], eax
push esi
lea ecx, [esp + 0x2c]
push 0x6c5148
push ecx
mov byte [esp + 0x300], 6
call fcn.005fa6fb
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.006018cc
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47f174
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.00575d30
add esp, 0xc
test eax, eax
je 0x47f163
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 0x47f106
mov bl, byte [esp + eax + 0x6c]
xor bl, 0x17
mov byte [esp + eax + 0x6c], bl
inc eax
cmp eax, ecx
jl 0x47f0f6
mov dword [esp + 0x40], 0x63c91c
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.0044b8b0
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0xb8]
push ecx
push edx
call fcn.005e5520
add esp, 8
test eax, eax
je 0x47f15b
mov byte [esp + 0x17], 1
mov byte [esp + 0x2f4], 3
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x47f174
push eax
call fcn.005e5002
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 0x47f497
mov edi, 1
xor esi, esi
mov ecx, dword [0x6f6334]
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 0x47f320
cmp esi, 2
mov dword [esp + 0x10], 0
je 0x47f292
mov edx, dword [0x6f175c]
mov dword [esp + 0x20], edx
mov eax, dword [0x6f6334]
mov byte [esp + 0x2f4], 8
test eax, eax
mov eax, str.CURRENT_USER
jne 0x47f1f7
mov eax, str.MACHINE
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
push eax
push 0x6c5c64
push edx
call fcn.005fa6fb
mov eax, dword [esp + 0x30]
add esp, 0x10
lea ecx, [esp + 0x98]
push eax
call fcn.0050ce90
test eax, eax
je 0x47f245
mov eax, dword [0x6f6334]
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 0x47f281
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x9c]
call fcn.0050cf50
test eax, eax
je 0x47f281
mov ecx, dword [0x6f6334]
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.006018cc
test esi, esi
je 0x47f320
mov eax, dword [0x6f6334]
test eax, eax
jne 0x47f320
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 0x47f320
mov ecx, dword [0x6f175c]
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.005fa6fb
mov ecx, dword [esp + 0x34]
add esp, 0xc
push ecx
lea ecx, [esp + 0xac]
call fcn.0050ce90
test eax, eax
je 0x47f30f
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.006018cc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x47f398
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 0x47f497
cmp dword [esp + 0x24], esi
jne 0x47f192
mov eax, dword [0x6f6334]
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 0x47f192
mov eax, dword [esp + 0x24]
test eax, eax
je 0x47f497
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.005fdccd
mov edx, eax
add esp, 4
test edx, edx
je 0x47f497
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 0x47d740
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.00601eca
lea ecx, [esp + 0xa8]
mov byte [esp + 0x2f4], 2
call fcn.0050ce20
lea ecx, [esp + 0x98]
mov byte [esp + 0x2f4], 1
call fcn.0050ce20
lea ecx, [esp + 0x18]
mov byte [esp + 0x2f4], 0
call fcn.006018cc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2f4], 0xffffffff
call fcn.006018cc
mov ecx, dword [esp + 0x2ec]
pop esi
pop ebp
pop ebx
pop edi
mov dword fs:[0], ecx
add esp, 0x2e8
ret