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

Disassembly:
push 0xffffffffffffffff
push 0x5fa7f2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x26c
mov eax, dword [0x6ca27c]
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
lea edx, [esp + 0x10]
xor ebp, ebp
push edx
mov dword [esp + 0x284], ebp
call fcn.004751e0
test eax, eax
je 0x475a67
lea ecx, [esp + 0x58]
mov dword [esp + 0x18], ebp
call fcn.004fc150
lea ecx, [esp + 0x68]
mov byte [esp + 0x280], 1
call fcn.004fc150
mov edx, dword [0x6cee54]
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x18]
neg edx
push eax
push 0xf003f
sbb edx, edx
push ebp
add edx, reloc.WS2_32.dll_bind
push ecx
push edx
mov byte [esp + 0x294], 2
call edi
mov esi, eax
cmp esi, ebp
je 0x475818
cmp esi, 2
je 0x475776
mov eax, dword [0x6ca27c]
mov dword [esp + 0x14], eax
mov eax, dword [0x6cee54]
mov byte [esp + 0x280], 3
cmp eax, ebp
mov eax, str.CURRENT_USER
jne 0x475718
mov eax, str.MACHINE
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push eax
push 0x6a0b7c
push edx
call fcn.005d9fbb
mov eax, dword [esp + 0x24]
add esp, 0x10
lea ecx, [esp + 0x58]
push eax
call fcn.004fc200
test eax, eax
je 0x475765
mov eax, dword [0x6cee54]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
neg eax
push ecx
push 0xf003f
sbb eax, eax
push ebp
add eax, reloc.WS2_32.dll_bind
push edx
push eax
call edi
mov esi, eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x280], 2
call fcn.005e118c
cmp esi, ebp
je 0x475818
cmp dword [0x6cee54], ebp
jne 0x475810
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push 0xf003f
push ebp
push edx
push reloc.WS2_32.dll_accept
call edi
mov esi, eax
cmp esi, ebp
je 0x475818
cmp esi, 2
je 0x475810
mov eax, dword [0x6ca27c]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push str.CURRENT_USER_s
push edx
mov byte [esp + 0x28c], 4
call fcn.005d9fbb
mov eax, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x68]
push eax
call fcn.004fc200
test eax, eax
je 0x4757ff
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push 0xf003f
push ebp
push edx
push reloc.WS2_32.dll_accept
call edi
mov esi, eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x280], 2
call fcn.005e118c
cmp esi, ebp
jne 0x475a45
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x475a45
mov ecx, dword [esp + 0x288]
mov byte [esp + 0xf], 1
cmp ecx, 1
je 0x475a32
lea ecx, [esp + 0x54]
lea edx, [esp + 0x78]
push ecx
push edx
push ebp
push ebp
push ebp
push eax
mov dword [esp + 0x6c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x48]
push eax
lea edx, [esp + 0x7c]
push ecx
push edx
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x20], ebp
call fcn.0055b4f0
add esp, 0xc
test eax, eax
je 0x475a15
mov al, 0x3b
mov cl, 0x4a
mov byte [esp + 0x1f], al
mov byte [esp + 0x25], al
mov byte [esp + 0x26], al
mov al, 0x7c
mov byte [esp + 0x29], cl
mov byte [esp + 0x2c], al
mov byte [esp + 0x2d], al
mov byte [esp + 0x2f], cl
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x1c], 0x67
mov byte [esp + 0x1d], 0x66
mov byte [esp + 0x1e], 0x5c
mov byte [esp + 0x20], 0x39
mov byte [esp + 0x21], 0x60
mov byte [esp + 0x22], 0x61
mov byte [esp + 0x23], 0x46
mov byte [esp + 0x24], 0x3f
mov byte [esp + 0x27], 0x39
mov byte [esp + 0x28], 0x4d
mov byte [esp + 0x2a], 0x65
mov byte [esp + 0x2b], 0x71
mov byte [esp + 0x2e], 0x78
mov byte [esp + 0x30], 0x3a
mov byte [esp + 0x31], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, ebp
jle 0x47590f
mov dl, byte [esp + eax + 0x1c]
xor dl, 0xb
mov byte [esp + eax + 0x1c], dl
inc eax
cmp eax, ecx
jl 0x4758ff
mov ebp, 0x61a4b4
mov dword [esp + 0x50], ebp
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x48]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
push eax
push ecx
push edx
lea ecx, [esp + 0x60]
mov byte [esp + 0x290], 5
call fcn.00445290
mov al, 0x6c
mov cl, 0x3e
mov dl, 0x7f
mov byte [esp + 0x36], al
mov byte [esp + 0x3b], al
mov byte [esp + 0x3e], cl
mov byte [esp + 0x44], al
mov byte [esp + 0x46], cl
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x34], dl
mov byte [esp + 0x35], 0x72
mov byte [esp + 0x37], 0x63
mov byte [esp + 0x38], 0x3a
mov byte [esp + 0x39], 0x39
mov byte [esp + 0x3a], 0x4c
mov byte [esp + 0x3c], 0x69
mov byte [esp + 0x3d], 0x3f
mov byte [esp + 0x3f], 0x2f
mov byte [esp + 0x40], dl
mov byte [esp + 0x41], 0x3f
mov byte [esp + 0x42], 0x2a
mov byte [esp + 0x43], 0x75
mov byte [esp + 0x45], 0x79
mov byte [esp + 0x47], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x4759cc
mov dl, byte [esp + eax + 0x34]
xor dl, 0xb
mov byte [esp + eax + 0x34], dl
inc eax
cmp eax, ecx
jl 0x4759bc
mov edi, dword [esp + 0x48]
push ebx
lea esi, [esp + 0x38]
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4759ff
test cl, cl
je 0x4759fb
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4759ff
add eax, 2
add esi, 2
test cl, cl
jne 0x4759d7
xor eax, eax
jmp 0x475a04
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
pop ebx
jne 0x475a0d
mov byte [esp + 0xf], al
mov dword [esp + 0x50], ebp
xor ebp, ebp
jmp 0x475a19
mov edi, dword [esp + 0x48]
cmp edi, ebp
je 0x475a26
push edi
call fcn.005c4d0f
add esp, 4
mov al, byte [esp + 0xf]
test al, al
je 0x475a3a
mov eax, dword [esp + 0x18]
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x68]
mov byte [esp + 0x280], 1
call fcn.004fc190
lea ecx, [esp + 0x58]
mov byte [esp + 0x280], 0
call fcn.004fc190
lea ecx, [esp + 0x10]
mov dword [esp + 0x280], 0xffffffff
call fcn.005e118c
mov ecx, dword [esp + 0x278]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x278
ret 4