Function at 0x474770
Capabilities:
Contain obfuscated stackstrings
Delete registry value
Encode data using xor
Query or enumerate registry value
Resolve function by parsing pe exports
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5fa76d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2e4
mov eax, dword [0x6ca27c]
push ebx
push esi
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
lea edx, [esp + 0xc]
xor ebx, ebx
push edx
mov dword [esp + 0x2fc], ebx
call fcn.004751e0
test eax, eax
je 0x474992
lea ecx, [esp + 0xac]
mov dword [esp + 0x38], ebx
call fcn.004fc150
lea ecx, [esp + 0x9c]
mov byte [esp + 0x2f8], 1
call fcn.004fc150
mov edx, dword [0x6cee54]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x38]
push ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
push ebx
push 0xf003f
neg edx
push ebx
push ebx
sbb edx, edx
push ebx
add edx, reloc.WS2_32.dll_bind
push ecx
push edx
mov byte [esp + 0x31c], 2
call edi
mov esi, eax
cmp esi, ebx
je 0x474962
cmp esi, 2
je 0x4748ab
mov eax, dword [0x6ca27c]
mov dword [esp + 0x10], eax
mov eax, dword [0x6cee54]
mov byte [esp + 0x2f8], 3
cmp eax, ebx
mov eax, str.CURRENT_USER
jne 0x474846
mov eax, str.MACHINE
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push eax
push 0x6a0b7c
push edx
call fcn.005d9fbb
mov eax, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esp + 0xac]
push eax
call fcn.004fc200
test eax, eax
je 0x47489a
mov eax, dword [0x6cee54]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x38]
push ebx
push ecx
push ebx
neg eax
push 0xf003f
push ebx
sbb eax, eax
push ebx
push ebx
add eax, reloc.WS2_32.dll_bind
push edx
push eax
call edi
mov esi, eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2f8], 2
call fcn.005e118c
cmp esi, ebx
je 0x474962
cmp dword [0x6cee54], ebx
jne 0x47496a
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x38]
push ebx
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edx
push reloc.WS2_32.dll_accept
call edi
test eax, eax
je 0x474962
mov eax, dword [0x6ca27c]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push str.CURRENT_USER_s
push edx
mov byte [esp + 0x304], 4
call fcn.005d9fbb
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x9c]
push eax
call fcn.004fc200
test eax, eax
je 0x474951
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x38]
push ebx
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edx
push reloc.WS2_32.dll_accept
call edi
test eax, eax
je 0x474951
lea ecx, [esp + 0x10]
mov byte [esp + 0x2f8], 2
call fcn.005e118c
jmp 0x47496a
lea ecx, [esp + 0x10]
mov byte [esp + 0x2f8], 2
call fcn.005e118c
mov eax, dword [esp + 0x38]
cmp eax, ebx
jne 0x4749ab
lea ecx, [esp + 0x9c]
mov byte [esp + 0x2f8], 1
call fcn.004fc190
lea ecx, [esp + 0xac]
mov byte [esp + 0x2f8], 0
call fcn.004fc190
lea ecx, [esp + 0xc]
mov dword [esp + 0x2f8], 0xffffffff
call fcn.005e118c
jmp 0x4751c6
lea ecx, [esp + 0x98]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0xf4]
push ecx
push edx
push 0
push 0
push 0
push eax
mov dword [esp + 0xb4], 0x200
call ebp
mov esi, eax
mov al, 0x2b
neg esi
sbb esi, esi
mov bl, 0x65
mov byte [esp + 0x65], al
mov dl, 0x6a
mov byte [esp + 0x6e], al
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
inc esi
mov byte [esp + 0x54], 0x58
mov byte [esp + 0x55], 0x44
mov byte [esp + 0x56], 0x4d
mov byte [esp + 0x57], 0x5f
mov byte [esp + 0x58], 0x5c
mov byte [esp + 0x59], 0x4a
mov byte [esp + 0x5a], 0x59
mov byte [esp + 0x5b], 0x4e
mov byte [esp + 0x5c], 0x57
mov byte [esp + 0x5d], 0x42
mov byte [esp + 0x5e], bl
mov byte [esp + 0x5f], 0x7f
mov byte [esp + 0x60], 0x6e
mov byte [esp + 0x61], 0x79
mov byte [esp + 0x62], bl
mov byte [esp + 0x63], 0x6e
mov byte [esp + 0x64], 0x7f
mov byte [esp + 0x66], 0x4f
mov byte [esp + 0x67], 0x64
mov byte [esp + 0x68], 0x7c
mov byte [esp + 0x69], bl
mov byte [esp + 0x6a], 0x67
mov byte [esp + 0x6b], 0x64
mov byte [esp + 0x6c], dl
mov byte [esp + 0x6d], 0x6f
mov byte [esp + 0x6f], 0x46
mov byte [esp + 0x70], dl
mov byte [esp + 0x71], bl
mov byte [esp + 0x72], dl
mov byte [esp + 0x73], 0x6c
mov byte [esp + 0x74], 0x6e
mov byte [esp + 0x75], 0x79
mov byte [esp + 0x76], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x474aa5
xor byte [esp + eax + 0x54], 0xb
inc eax
cmp eax, ecx
jl 0x474a9b
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x40], 0x58
mov byte [esp + 0x41], 0x6e
mov byte [esp + 0x42], 0x79
mov byte [esp + 0x43], 0x62
mov byte [esp + 0x44], dl
mov byte [esp + 0x45], 0x67
mov byte [esp + 0x46], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x474ae9
mov dl, byte [esp + eax + 0x40]
xor dl, 0xb
mov byte [esp + eax + 0x40], dl
inc eax
cmp eax, ecx
jl 0x474ad9
lea eax, [esp + 0x98]
xor edi, edi
push eax
push 1
lea ecx, [esp + 0x5c]
push edi
push ecx
push reloc.WS2_32.dll_bind
mov byte [esp + 0xd4], 0
mov dword [esp + 0x60], 0x32
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
lea edx, [esp + 0x4c]
lea eax, [esp + 0xc0]
push edx
push eax
push edi
lea ecx, [esp + 0x4c]
push edi
push ecx
jne 0x474b79
mov edx, dword [esp + 0xac]
push edx
call ebp
test eax, eax
je 0x474b64
lea eax, [esp + 0x4c]
lea ecx, [esp + 0xc0]
push eax
mov eax, dword [0x6cee7c]
push ecx
push edi
lea edx, [esp + 0x4c]
push edi
push edx
push eax
mov dword [esp + 0x64], 0x32
call ebp
test eax, eax
jne 0x474b69
mov edi, 1
mov ecx, dword [esp + 0x98]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x474b8b
mov edx, dword [0x6cee7c]
push edx
call ebp
test eax, eax
jne 0x474b8b
mov edi, 1
test esi, esi
jne 0x474dde
test edi, edi
je 0x474c40
lea edi, [esp + 0xc0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x10]
not ecx
dec ecx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 2]
push eax
call fcn.005dd58d
mov edx, eax
add esp, 4
test edx, edx
je 0x47517e
mov edi, dword [esp + 0x10]
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
mov edi, edx
push 0
shr ecx, 2
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 + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esp + 0xd0]
mov edi, esi
push edx
lea ebx, [ecx + edx + 1]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x473650
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.005e178a
jmp 0x47517e
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x1c], 0x5d
mov byte [esp + 0x1d], 0x6e
mov byte [esp + 0x1e], 0x79
mov byte [esp + 0x1f], 0x78
mov byte [esp + 0x20], 0x62
mov byte [esp + 0x21], 0x64
mov byte [esp + 0x22], bl
mov byte [esp + 0x23], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x474c89
mov bl, byte [esp + eax + 0x1c]
xor bl, 0xb
mov byte [esp + eax + 0x1c], bl
inc eax
cmp eax, ecx
jl 0x474c79
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x14]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
lea edx, [esp + 0x34]
push 0
push edx
push eax
mov dword [esp + 0x38], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x47517e
lea ecx, [esp + 0x48]
push ecx
call fcn.005da5ba
push 0
lea ecx, [esp + 0x4c]
call fcn.005da5cd
mov esi, dword [eax + 0x14]
push 0
lea ecx, [esp + 0x4c]
add esi, 0x76c
call fcn.005da5cd
mov edi, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x4c]
inc edi
call fcn.005da5cd
lea edx, [esi + esi*2]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], 0x20
lea ecx, [edi + edx*4]
lea edx, [esp + 0x50]
push edx
lea ecx, [ecx + ecx*2]
lea ecx, [ecx + ecx*4]
lea esi, [eax + ecx*2 - 0xa6fe0]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x7c]
push eax
push 0
push 0
push 0
push ecx
call ebp
test eax, eax
jne 0x474d78
lea edx, [esp + 0x78]
push edx
call fcn.005c4e38
add esp, 4
test eax, eax
je 0x474dce
sub esi, eax
cmp esi, 0x3c
jbe 0x474dce
mov eax, dword [esp + 0x18]
push 9
push 0x1499
push 0x111
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47517e
mov edx, dword [0x6ca27c]
mov dword [esp + 0x18], edx
push esi
lea eax, [esp + 0x1c]
push 0x6a2980
push eax
mov byte [esp + 0x308], 5
call fcn.005d9fbb
mov edx, dword [esp + 0x24]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x18]
push edx
push 1
push eax
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x18]
mov byte [esp + 0x2fc], 2
call fcn.005e118c
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47517e
lea eax, [esp + 0x48]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0xf8]
xor esi, esi
push ecx
push edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x54], esi
call fcn.0055b4f0
add esp, 0xc
test eax, eax
je 0x47516d
mov al, 0x3b
mov byte [esp + 0x86], bl
mov byte [esp + 0x7b], al
mov byte [esp + 0x81], al
mov byte [esp + 0x82], al
mov bl, 0x3a
lea edi, [esp + 0x78]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x78], 0x67
mov byte [esp + 0x79], 0x66
mov byte [esp + 0x7a], 0x5c
mov byte [esp + 0x7c], 0x39
mov byte [esp + 0x7d], 0x60
mov byte [esp + 0x7e], 0x61
mov byte [esp + 0x7f], 0x46
mov byte [esp + 0x80], 0x3f
mov byte [esp + 0x83], 0x39
mov byte [esp + 0x84], 0x4d
mov byte [esp + 0x85], 0x4a
mov byte [esp + 0x87], 0x71
mov byte [esp + 0x88], 0x7c
mov byte [esp + 0x89], 0x7c
mov byte [esp + 0x8a], 0x78
mov byte [esp + 0x8b], 0x4a
mov byte [esp + 0x8c], bl
mov byte [esp + 0x8d], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, esi
jle 0x474ec7
mov dl, byte [esp + eax + 0x78]
xor dl, 0xb
mov byte [esp + eax + 0x78], dl
inc eax
cmp eax, ecx
jl 0x474eb7
mov dword [esp + 0x50], 0x61a4b4
lea edi, [esp + 0x78]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x4c]
push eax
push ecx
push edx
lea ecx, [esp + 0x60]
mov byte [esp + 0x30c], 6
call fcn.00445290
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xc0]
push eax
push ecx
call fcn.005c6000
add esp, 8
test eax, eax
je 0x475163
mov dl, 0x3e
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x24], 0x7f
mov byte [esp + 0x25], 0x72
mov byte [esp + 0x26], 0x6c
mov byte [esp + 0x27], 0x63
mov byte [esp + 0x28], bl
mov byte [esp + 0x29], 0x39
mov byte [esp + 0x2a], 0x4c
mov byte [esp + 0x2b], 0x6c
mov byte [esp + 0x2c], 0x69
mov byte [esp + 0x2d], 0x3f
mov byte [esp + 0x2e], dl
mov byte [esp + 0x2f], 0x2f
mov byte [esp + 0x30], 0x7f
mov byte [esp + 0x31], 0x3f
mov byte [esp + 0x32], 0x2a
mov byte [esp + 0x33], 0x75
mov byte [esp + 0x34], 0x6c
mov byte [esp + 0x35], 0x79
mov byte [esp + 0x36], dl
mov byte [esp + 0x37], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x474fa0
mov bl, byte [esp + eax + 0x24]
xor bl, 0xb
mov byte [esp + eax + 0x24], bl
inc eax
cmp eax, ecx
jl 0x474f90
mov ebp, dword [esp + 0x1c]
lea esi, [esp + 0x24]
mov eax, ebp
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x474fce
test cl, cl
je 0x474fca
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x474fce
add eax, 2
add esi, 2
test cl, cl
jne 0x474faa
xor eax, eax
jmp 0x474fd3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x474fef
mov edx, dword [esp + 0x18]
push eax
push 0x1499
push 0x111
mov eax, dword [edx + 0x1c]
push eax
jmp 0x47515d
mov esi, dword [0x6cf50c]
mov eax, ebp
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x47501b
test cl, cl
je 0x475017
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x47501b
add eax, 2
add esi, 2
test cl, cl
jne 0x474ff7
xor eax, eax
jmp 0x475020
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x47502b
push 2
jmp 0x47514b
mov esi, dword [0x6cf504]
mov eax, ebp
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x475057
test cl, cl
je 0x475053
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x475057
add eax, 2
add esi, 2
test cl, cl
jne 0x475033
xor eax, eax
jmp 0x47505c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x475079
mov eax, dword [esp + 0x18]
push 7
push 0x1499
push 0x111
mov ecx, dword [eax + 0x1c]
push ecx
jmp 0x47515d
mov cl, 0x3c
mov al, 0x33
mov byte [esp + 0x2b], cl
mov byte [esp + 0x2c], cl
mov byte [esp + 0x2d], al
mov byte [esp + 0x31], al
mov byte [esp + 0x34], cl
mov byte [esp + 0x35], al
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x24], dl
mov byte [esp + 0x25], 0x7f
mov byte [esp + 0x26], 0x2d
mov byte [esp + 0x27], 0x79
mov byte [esp + 0x28], 0x6e
mov byte [esp + 0x29], 0x78
mov byte [esp + 0x2a], 0x6c
mov byte [esp + 0x2e], 0x53
mov byte [esp + 0x2f], 0x6c
mov byte [esp + 0x30], 0x6d
mov byte [esp + 0x32], 0x49
mov byte [esp + 0x33], 0x45
mov byte [esp + 0x36], 0x54
mov byte [esp + 0x37], 0x3f
mov byte [esp + 0x38], 0x6c
mov byte [esp + 0x39], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x475106
mov bl, byte [esp + eax + 0x24]
xor bl, 0xb
mov byte [esp + eax + 0x24], bl
inc eax
cmp eax, ecx
jl 0x4750f6
lea esi, [esp + 0x24]
mov eax, ebp
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x475134
test cl, cl
je 0x475130
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x475134
add eax, 2
add esi, 2
test cl, cl
jne 0x47510c
xor eax, eax
jmp 0x475139
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x475149
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0
mov ecx, dword [esp + 0x1c]
push 0x1499
push 0x111
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [esp + 0x50], 0x61a4b4
xor esi, esi
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x47517e
push eax
call fcn.005c4d0f
add esp, 4
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xa0]
mov byte [esp + 0x2fc], 1
call fcn.004fc190
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2fc], 0
call fcn.004fc190
lea ecx, [esp + 0x10]
mov dword [esp + 0x2fc], 0xffffffff
call fcn.005e118c
pop ebp
mov ecx, dword [esp + 0x2f0]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2f0
ret