Function at 0x407714
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
mov eax, 0x56f6a0
push ebx
push esi
push edi
call fcn.0053b394
mov edx, dword [0x56beb4]
mov ecx, dword [0x56bebf]
mov dword [ebp - 0x78], edx
mov edx, dword [0x56beb8]
mov dword [ebp - 0x74], edx
lea edi, [ebp - 0xec]
mov dx, word [0x56bebc]
mov esi, 0x56bec3
mov word [ebp - 0x70], dx
mov dl, byte [0x56bebe]
mov byte [ebp - 0x6e], dl
mov dword [ebp - 0x7c], ecx
mov ecx, 0x1b
lea eax, [ebp - 0x78]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push eax
call fcn.0053b094
pop ecx
mov esi, eax
xor eax, eax
lea edx, [ebp - 0x78]
cmp esi, eax
jle 0x40778e
mov cl, 0xc8
sub cl, al
inc eax
xor byte [edx], cl
inc edx
cmp esi, eax
jg 0x407782
lea eax, [ebp - 0x7c]
push eax
call fcn.0053b094
pop ecx
mov esi, eax
xor eax, eax
lea edx, [ebp - 0x7c]
cmp esi, eax
jle 0x4077af
mov cl, 0xc8
sub cl, al
inc eax
xor byte [edx], cl
inc edx
cmp esi, eax
jg 0x4077a3
lea eax, [ebp - 0xec]
push eax
call fcn.0053b094
pop ecx
mov esi, eax
xor eax, eax
lea edx, [ebp - 0xec]
cmp esi, eax
jle 0x4077d6
mov cl, 0xc8
sub cl, al
inc eax
xor byte [edx], cl
inc edx
cmp esi, eax
jg 0x4077ca
xor eax, eax
lea edx, [ebp - 0x78]
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 8]
mov word [ebp - 0x5c], 0x14
call fcn.00548ff0
mov edx, eax
inc dword [ebp - 0x50]
lea eax, [ebp - 4]
call fcn.00549fe0
inc dword [ebp - 0x50]
dec dword [ebp - 0x50]
lea eax, [ebp - 8]
mov edx, 2
call fcn.005491a0
mov word [ebp - 0x5c], 8
lea ecx, [ebp - 0xf0]
mov edx, dword [0x56beb0]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push edx
mov ecx, dword [edx]
call dword [ecx + 0xc]
test eax, eax
jne 0x407c13
xor eax, eax
lea edx, [ebp - 0x7c]
mov dword [ebp - 0xf4], eax
lea eax, [ebp - 0x14]
mov word [ebp - 0x5c], 0x2c
call fcn.00548ff0
mov edx, eax
inc dword [ebp - 0x50]
lea eax, [ebp - 0xc]
call fcn.00549fe0
inc dword [ebp - 0x50]
dec dword [ebp - 0x50]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.005491a0
mov word [ebp - 0x5c], 0x20
mov word [ebp - 0x5c], 0x38
lea edx, [ebp - 0xec]
lea eax, [ebp - 0x18]
call fcn.00548ff0
mov edx, eax
inc dword [ebp - 0x50]
lea eax, [ebp - 0x10]
call fcn.00549fe0
inc dword [ebp - 0x50]
dec dword [ebp - 0x50]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.005491a0
mov word [ebp - 0x5c], 0x20
lea ecx, [ebp - 0xf4]
push ecx
push 0
push 0x10
mov eax, dword [ebp - 0x10]
push eax
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 0xf0]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x50]
test eax, eax
jne 0x407bd8
xor edx, edx
mov dword [ebp - 0xf8], edx
mov dword [ebp - 0xfc], 1
mov ecx, dword [ebp - 0xf4]
push ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
jne 0x407bc3
jmp 0x407b98
xor edx, edx
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x104], edx
mov word [ebp - 0x5c], 0x20
push ecx
push 0
push 0x70
push 0
mov eax, dword [ebp - 0xf8]
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
test eax, eax
jne 0x407b83
lea ecx, [ebp - 0x108]
push ecx
push 1
mov eax, dword [ebp - 0x104]
push eax
call sub.OLEAUT32.DLL_SafeArrayGetLBound
lea edx, [ebp - 0x10c]
push edx
push 1
mov ecx, dword [ebp - 0x104]
push ecx
call sub.OLEAUT32.DLL_SafeArrayGetUBound
mov esi, dword [ebp - 0x108]
cmp esi, dword [ebp - 0x10c]
jg 0x407b83
mov dword [ebp - 0x110], esi
xor eax, eax
mov word [ebp - 0x5c], 0x20
mov dword [ebp - 0x114], eax
lea edx, [ebp - 0x124]
push edx
call sub.OLEAUT32.DLL_VariantInit
lea ecx, [ebp - 0x114]
lea eax, [ebp - 0x110]
push ecx
push eax
mov edx, dword [ebp - 0x104]
push edx
call sub.OLEAUT32.DLL_SafeArrayGetElement
mov ecx, dword [ebp - 0x114]
push ecx
call sub.OLEAUT32.DLL_SysAllocString
mov ebx, eax
push 0
push 0
lea eax, [ebp - 0x124]
push eax
push 0
push ebx
mov edx, dword [ebp - 0xf8]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x10]
mov edi, eax
push ebx
call sub.OLEAUT32.DLL_SysFreeString
test edi, edi
jne 0x407b5e
mov word [ebp - 0x5c], 0x44
xor eax, eax
lea edx, [ebp - 0x124]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
inc dword [ebp - 0x50]
mov word [ebp - 0x5c], 0x50
mov word [ebp - 0x5c], 0x5c
call fcn.00549a24
inc dword [ebp - 0x50]
mov word [ebp - 0x5c], 0x50
lea eax, [ebp - 0x2c]
call fcn.00549b0c
test al, al
je 0x407af9
lea eax, [ebp - 0x2c]
mov edx, 1
call fcn.00549b18
mov ebx, eax
jmp 0x407ae2
mov word [ebp - 0x5c], 0x74
lea eax, [ebp - 0x3c]
call fcn.005499f0
mov ecx, eax
inc dword [ebp - 0x50]
lea eax, [ebp - 0x2c]
mov edx, ebx
call fcn.00549b30
mov word [ebp - 0x5c], 0x68
cmp dword [ebp - 0x1c], 0
je 0x407a97
mov word [ebp - 0x5c], 0x80
mov edx, 0x56d902
lea eax, [ebp - 0x40]
call fcn.00548ff0
inc dword [ebp - 0x50]
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x1c]
call fcn.005491e4
dec dword [ebp - 0x50]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.005491a0
mov word [ebp - 0x5c], 0x8c
xor ecx, ecx
lea edx, [ebp - 0x44]
mov dword [ebp - 0x44], ecx
lea eax, [ebp - 0x3c]
inc dword [ebp - 0x50]
call fcn.00539248
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x1c]
call fcn.005491e4
dec dword [ebp - 0x50]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.005491a0
dec dword [ebp - 0x50]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.00549a74
mov word [ebp - 0x5c], 0x50
inc ebx
lea eax, [ebp - 0x2c]
mov edx, 1
call fcn.00549b24
cmp ebx, eax
jle 0x407a3d
jmp 0x407b2d
mov word [ebp - 0x5c], 0x98
xor ecx, ecx
lea edx, [ebp - 0x48]
mov dword [ebp - 0x48], ecx
lea eax, [ebp - 0x2c]
inc dword [ebp - 0x50]
call fcn.00539248
lea edx, [ebp - 0x48]
lea eax, [ebp - 0x1c]
call fcn.005491d0
dec dword [ebp - 0x50]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.005491a0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
dec dword [ebp - 0x50]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00549a74
dec dword [ebp - 0x50]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.005491a0
mov word [ebp - 0x5c], 0x20
lea ecx, [ebp - 0x124]
push ecx
call sub.OLEAUT32.DLL_VariantClear
mov eax, dword [ebp - 0x114]
push eax
call sub.OLEAUT32.DLL_SysFreeString
inc esi
cmp esi, dword [ebp - 0x10c]
jle 0x407976
cmp dword [ebp - 0x104], 0
je 0x407b98
mov edx, dword [ebp - 0x104]
push edx
call sub.OLEAUT32.DLL_SafeArrayDestroy
lea ecx, [ebp - 0x100]
lea eax, [ebp - 0xf8]
push ecx
push eax
mov edx, dword [ebp - 0xfc]
push edx
push 0xffffffffffffffff
mov ecx, dword [ebp - 0xf4]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
je 0x40790b
cmp dword [ebp - 0xf8], 0
je 0x407bd8
mov edx, dword [ebp - 0xf8]
push edx
mov ecx, dword [edx]
call dword [ecx + 8]
cmp dword [ebp - 0xf4], 0
je 0x407bed
mov eax, dword [ebp - 0xf4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
dec dword [ebp - 0x50]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0054a054
dec dword [ebp - 0x50]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0054a054
mov word [ebp - 0x5c], 8
cmp dword [ebp - 0xf0], 0
je 0x407c28
mov ecx, dword [ebp - 0xf0]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
dec dword [ebp - 0x50]
lea eax, [ebp - 4]
mov edx, 2