Function at 0x46a090
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee3c2
mov eax, dword fs:[0]
push eax
sub esp, 0x304
mov eax, dword [0x52910c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movaps xmm0, xmmword [str.o____8.3_]
xor ebx, ebx
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
movups xmmword [ebp - 0x304], xmm0
mov dword [ebp - 0x310], ebx
movaps xmm0, xmmword [0x50e9e0]
movups xmmword [ebp - 0x2f4], xmm0
mov dword [ebp - 0x30c], ebx
movaps xmm0, xmmword [0x50e9b0]
movups xmmword [ebp - 0x2e4], xmm0
mov dword [ebp - 0x2d4], 0x3030e1b
mov word [ebp - 0x2d0], 0x33
mov dword [ebp - 4], ebx
xor ecx, ecx
nop dword [eax]
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x303]
xor al, byte [ebp - 0x304]
mov byte [ebp + ecx - 0x2ce], al
mov al, byte [ebp + ecx - 0x302]
xor al, byte [ebp - 0x304]
mov byte [ebp + ecx - 0x2cd], al
mov al, byte [ebp + ecx - 0x301]
xor al, byte [ebp - 0x304]
mov byte [ebp + ecx - 0x2cc], al
mov al, byte [ebp + ecx - 0x300]
xor al, byte [ebp - 0x304]
mov byte [ebp + ecx - 0x2cb], al
add ecx, 4
cmp ecx, 0x34
jb 0x46a120
push edx
lea eax, [ebp - 0x2ce]
mov byte [ebp - 0x29a], 0
push eax
lea eax, [ebp - 0x294]
push eax
call fcn.0040e8a0
push 0x35
lea eax, [ebp - 0x303]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.004babe0
add esp, 0x18
lea ecx, [ebp - 0x310]
cmp dword [ebp - 0x280], 0x10
lea eax, [ebp - 0x294]
cmovae eax, dword [ebp - 0x294]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x46a1ec
lea ecx, [ebp - 0x294]
call fcn.004095a0
jmp 0x46a665
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004babe0
mov dword [ebp - 0x230], 0x2d3a1f4f
mov bh, 0x2a
mov al, 0x1f
mov byte [ebp - 0x305], bh
xor al, byte [ebp - 0x230]
mov bh, 0x3d
mov byte [ebp - 0x225], al
add esp, 0xc
mov al, byte [ebp - 0x230]
mov cl, 0x3a
xor cl, al
mov byte [ebp - 0x306], bh
mov bh, byte [ebp - 0x305]
mov dl, 0x2d
xor dl, al
mov dword [ebp - 0x30c], 0x103
xor bh, al
mov byte [ebp - 0x115], 0
mov ah, 0x26
mov dword [ebp - 0x22c], 0x273c2623
xor ah, al
mov word [ebp - 0x228], 0x3d2a
mov ch, 0x3c
mov byte [ebp - 0x221], ah
xor ch, al
mov byte [ebp - 0x226], 0
mov dh, 0x27
mov byte [ebp - 0x224], cl
xor dh, al
mov byte [ebp - 0x223], dl
mov bl, 0x23
mov byte [ebp - 0x220], ch
xor bl, al
mov byte [ebp - 0x21f], dh
mov al, byte [ebp - 0x306]
xor al, byte [ebp - 0x230]
mov byte [ebp - 0x21d], al
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x218]
mov byte [ebp - 0x222], bl
push eax
push 0
push 0
lea eax, [ebp - 0x225]
mov byte [ebp - 0x21e], bh
push eax
push dword [ebp - 0x310]
mov byte [ebp - 0x21c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
setne al
test al, al
jne 0x46a658
mov dword [ebp - 0x268], 0xf
mov dword [ebp - 0x26c], 0
mov byte [ebp - 0x27c], al
cmp byte [ebp - 0x218], al
jne 0x46a316
xor ecx, ecx
jmp 0x46a329
lea ecx, [ebp - 0x218]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46a320
sub ecx, edx
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x27c]
call fcn.00409af0
mov byte [ebp - 4], 3
xor ecx, ecx
movaps xmm0, xmmword [0x50eb90]
movups xmmword [ebp - 0x264], xmm0
mov dword [ebp - 0x254], 0x7c7f7870
mov dword [ebp - 0x250], 0x657f74
nop dword [eax]
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x263]
xor al, byte [ebp - 0x264]
mov byte [ebp + ecx - 0x24c], al
mov al, byte [ebp + ecx - 0x262]
xor al, byte [ebp - 0x264]
mov byte [ebp + ecx - 0x24b], al
add ecx, 2
cmp ecx, 0x16
jb 0x46a370
cmp byte [ebp - 0x24c], 0
mov byte [ebp - 0x236], 0
jne 0x46a3b4
xor esi, esi
jmp 0x46a3c9
lea esi, [ebp - 0x24c]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x46a3c0
sub esi, ecx
cmp dword [ebp - 0x268], 0x10
lea ecx, [ebp - 0x27c]
mov ebx, dword [ebp - 0x26c]
mov eax, esi
cmovae ecx, dword [ebp - 0x27c]
cmp ebx, esi
cmovb eax, ebx
push eax
lea eax, [ebp - 0x24c]
push eax
push ecx
call fcn.00413f70
add esp, 0xc
test eax, eax
jne 0x46a64d
cmp ebx, esi
jb 0x46a64d
ja 0x46a64d
push 0x104
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.004babe0
add esp, 0xc
mov dword [ebp - 0x30c], 0x103
mov byte [ebp - 0x11], 0
mov dl, 0x6f
mov dword [ebp - 0x250], 0x1c062b6f
xor ecx, ecx
mov dword [ebp - 0x24c], 0x160e031f
mov dword [ebp - 0x248], 0x1000c26
mov byte [ebp - 0x244], 0
nop dword [eax]
mov al, byte [ebp + ecx - 0x24f]
xor al, dl
mov byte [ebp + ecx - 0x243], al
inc ecx
cmp ecx, 0xb
jae 0x46a47e
mov dl, byte [ebp - 0x250]
jmp 0x46a460
lea eax, [ebp - 0x30c]
mov byte [ebp - 0x238], 0
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push 0
lea eax, [ebp - 0x243]
push eax
push dword [ebp - 0x310]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
setne al
test al, al
jne 0x46a64d
mov eax, dword [ebp - 0x30c]
cmp eax, 0x104
jae 0x46a648
mov byte [ebp + eax - 0x114], 0
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004c469f
add esp, 8
cmp eax, 0xffffffff
je 0x46a5ed
cmp byte [ebp - 0x114], 0
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x230], 0
jne 0x46a512
xor ecx, ecx
jmp 0x46a529
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46a520
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x230]
call fcn.00409af0
lea edx, [ebp - 0x230]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24c]
call fcn.0042a180
mov esi, eax
cmp edi, esi
je 0x46a58f
mov eax, dword [edi + 0x14]
cmp eax, 0x10
jb 0x46a56a
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.004099a0
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x46a582
mov eax, dword [edi]
jmp 0x46a584
mov eax, edi
push esi
mov ecx, edi
mov byte [eax], 0
call fcn.00407660
mov eax, dword [ebp - 0x238]
cmp eax, 0x10
jb 0x46a5ad
inc eax
lea ecx, [ebp - 0x24c]
push eax
push dword [ebp - 0x24c]
call fcn.004099a0
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x238], 0xf
mov dword [ebp - 0x23c], 0
mov byte [ebp - 0x24c], 0
cmp eax, 0x10
jb 0x46a5e6
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.004099a0
mov ebx, 1
jmp 0x46a5ef
xor ebx, ebx
mov eax, dword [ebp - 0x268]
cmp eax, 0x10
jb 0x46a60d
inc eax
lea ecx, [ebp - 0x27c]
push eax
push dword [ebp - 0x27c]
call fcn.004099a0
mov eax, dword [ebp - 0x280]
mov dword [ebp - 0x268], 0xf
mov dword [ebp - 0x26c], 0
mov byte [ebp - 0x27c], 0
cmp eax, 0x10
jb 0x46a665
inc eax
lea ecx, [ebp - 0x294]
push eax
push dword [ebp - 0x294]
call fcn.004099a0
jmp 0x46a665
call fcn.004a1f97
lea ecx, [ebp - 0x27c]
call fcn.004095a0
lea ecx, [ebp - 0x294]
call fcn.004095a0
xor ebx, ebx
mov ecx, dword [ebp - 0x310]
test ecx, ecx
je 0x46a676
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a1855
mov esp, ebp
pop ebp
ret 8