Function at 0x40e390
Capabilities:
Delete registry key
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d4b0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5be26c]
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
lea eax, [ebp - 0x64]
push eax
call fcn.00427810
mov ecx, eax
call fcn.004277e0
mov eax, dword [ebp - 0x64]
or ebx, 0xffffffff
mov dword [ebp - 4], 0
test eax, eax
jne 0x40e3e3
xor edi, edi
jmp 0x40e779
mov eax, dword [eax + 0x48]
sub eax, 0x10
push eax
call fcn.004112a0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x68], esi
push esi
push SysReAllocStringLen
mov byte [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov eax, dword [ebp - 0x64]
push dword [eax + 0x20]
push str.From
push esi
push SysReAllocStringLen
call fcn.004634a0
mov eax, dword [ebp - 0x64]
add esp, 0x10
xor edi, edi
mov ebx, 0xf
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x5c], eax
mov eax, 0x2c59
mov word [ebp - 0x28], ax
mov eax, 0x2c7e
mov word [ebp - 0x26], ax
mov eax, 0x2c6d
mov word [ebp - 0x24], ax
mov eax, 0x2c65
mov word [ebp - 0x22], ax
mov eax, 0x2c73
mov word [ebp - 0x20], ax
mov word [ebp - 0x1e], ax
mov eax, 0x2c7b
mov word [ebp - 0x1c], ax
mov eax, 0x2c5f
mov word [ebp - 0x1a], ax
mov eax, 0x2c74
mov word [ebp - 0x18], ax
mov eax, 0x2c6c
mov word [ebp - 0x16], ax
mov eax, 0x2c18
mov word [ebp - 0x14], ax
mov ax, word [ebp - 0x28]
mov ax, word [ebp + edi*2 - 0x28]
mov ecx, edi
and ecx, ebx
movzx esi, ax
cmp ecx, ebx
mov eax, 0xc1a62c10
mov edx, 0xcb72275
cmovae ecx, ebx
shl ecx, 2
call fcn.0046c530
and ax, 0xf
lea ecx, [edi + 0x2c10]
xor ax, cx
xor ax, si
mov word [ebp + edi*2 - 0x28], ax
inc edi
cmp edi, 0xb
jb 0x40e493
push dword [ebp - 0x5c]
mov esi, dword [ebp - 0x68]
lea eax, [ebp - 0x28]
push eax
push esi
push SysReAllocStringLen
call fcn.004634a0
mov eax, dword [ebp - 0x64]
push dword [eax + 0x28]
push str.ExePath
push esi
push SysReAllocStringLen
call fcn.004634a0
lea eax, [ebp - 0x6c]
push eax
call fcn.0045dd30
add esp, 0x24
mov eax, dword [eax]
mov ecx, 0xaa96
mov dword [ebp - 0x5c], eax
xor edi, edi
mov eax, 0xaab9
mov byte [ebp - 4], 2
mov word [ebp - 0x40], ax
or ebx, 0xffffffff
mov eax, 0xaa90
mov word [ebp - 0x3e], ax
mov eax, 0xaa8b
mov word [ebp - 0x3c], ax
mov eax, 0xaa8d
mov word [ebp - 0x3a], ax
mov eax, 0xaa94
mov word [ebp - 0x38], ax
mov eax, 0xaa9f
mov word [ebp - 0x36], cx
mov word [ebp - 0x34], ax
mov eax, 0xaaab
mov word [ebp - 0x32], ax
mov eax, 0xaa9c
mov word [ebp - 0x30], ax
mov eax, 0xaafd
mov word [ebp - 0x2e], cx
mov word [ebp - 0x2c], cx
mov word [ebp - 0x2a], ax
mov ax, word [ebp - 0x40]
nop dword [eax]
mov ax, word [ebp + edi*2 - 0x40]
mov ecx, edi
and ecx, 0xf
movzx esi, ax
cmp ecx, 0xf
mov eax, 0xf
mov edx, 0x2fc9692d
cmovae ecx, eax
mov eax, 0x85f1aaf0
shl ecx, 2
call fcn.0046c530
and ax, 0xf
lea ecx, [edi - 0x5510]
xor ax, cx
xor ax, si
mov word [ebp + edi*2 - 0x40], ax
inc edi
cmp edi, 0xc
jb 0x40e580
push dword [ebp - 0x5c]
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x68]
push SysReAllocStringLen
call fcn.004634a0
mov edx, dword [ebp - 0x6c]
add esp, 0x10
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e5fa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x64]
xor edi, edi
mov ebx, 0xf
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x5c], eax
mov eax, 0xaab4
mov word [ebp - 0x58], ax
mov eax, 0xaa97
mov word [ebp - 0x56], ax
mov eax, 0xaa8b
mov word [ebp - 0x54], ax
mov eax, 0xaa89
mov word [ebp - 0x52], ax
mov eax, 0xaa99
mov word [ebp - 0x50], ax
mov eax, 0xaa9b
mov word [ebp - 0x4e], ax
mov eax, 0xaa8a
mov word [ebp - 0x4c], ax
mov eax, 0xaab1
mov word [ebp - 0x4a], ax
mov eax, 0xaa94
mov word [ebp - 0x48], ax
mov eax, 0xaa96
mov word [ebp - 0x46], ax
mov word [ebp - 0x44], ax
mov eax, 0xaafd
mov word [ebp - 0x42], ax
mov ax, word [ebp - 0x58]
mov ax, word [ebp + edi*2 - 0x58]
mov ecx, edi
and ecx, ebx
movzx esi, ax
cmp ecx, ebx
mov eax, 0x85f1aaf0
mov edx, 0x2fc9692d
cmovae ecx, ebx
shl ecx, 2
call fcn.0046c530
and ax, 0xf
lea ecx, [edi - 0x5510]
xor ax, cx
xor ax, si
mov word [ebp + edi*2 - 0x58], ax
inc edi
cmp edi, 0xc
jb 0x40e675
push dword [ebp - 0x5c]
mov esi, dword [ebp - 0x68]
lea eax, [ebp - 0x58]
push eax
push esi
push SysReAllocStringLen
call fcn.004634a0
mov eax, dword [ebp - 0x64]
push dword [eax + 0x10]
push 0x572ec8
push esi
push SysReAllocStringLen
call fcn.004634a0
add esp, 0x1c
mov edi, esp
mov dword [ebp - 0x6c], edi
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 0x28]
sub eax, 0x10
push eax
call fcn.004112a0
add eax, 0x10
add esp, 4
mov dword [edi], eax
lea eax, [ebp - 0x70]
push eax
call fcn.0045da80
push dword [eax]
mov byte [ebp - 4], 3
push str.Version
push esi
push SysReAllocStringLen
call fcn.004634a0
mov edx, dword [ebp - 0x70]
or ebx, 0xffffffff
add esp, 0x18
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e740
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x64]
push dword [eax + 0x1c]
push str.Channel
push esi
push SysReAllocStringLen
call fcn.004634a0
add esp, 0x10
mov byte [ebp - 4], 0
mov edi, 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40e779
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x60]
test esi, esi
je 0x40e79e
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x40e79e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x40e79e
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, edi
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.0046c10d
mov esp, ebp
pop ebp
ret