Function at 0x40c98b
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x68
push 0xffffffffffffffff
push 0x421fd0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x430018]
xor eax, ebp
mov dword [ebp + 0x64], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp + 0x18], edx
mov esi, ecx
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x20], esi
xor eax, eax
mov dword [ebp + 0x14], esi
lea edi, [ebp + 0x58]
xor ebx, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x60], ebx
mov dword [ebp - 4], ebx
test edx, edx
jne 0x40c9f3
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
jmp 0x40cb9c
lea eax, [ebp + 0x24]
mov byte [ebp - 4], 1
push eax
push 1
push ebx
mov dword [ebp + 0x24], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40cb8b
lea eax, [ebp + 0x24]
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 2
lea edi, [ebp + 0x48]
xor eax, eax
mov esi, 0x42a540
stosd dword es:[edi], eax
push 0x13
pop ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
movsw word es:[edi], word [esi]
xor edx, edx
mov eax, ecx
push 0x39
pop esi
div esi
add edx, 0x38
xor word [ebp + ecx*2 - 0x60], dx
inc ecx
cmp ecx, 0x27
jl 0x40ca33
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
je 0x40ca82
mov esi, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x5c]
mov eax, dword [ebp + 0x58]
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x58], ebx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov byte [ebp - 4], 3
jmp 0x40cb25
xor eax, eax
lea edi, [ebp + 0x2c]
inc eax
mov esi, 0x424514
mov dword [ebp + 0x28], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x18]
mov dword [ebp + 0x3c], eax
lea eax, [ebp + 0x70]
mov dword [ebp + 0x44], eax
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp + 0x48]
mov dword [ebp + 0x40], 4
push eax
push dword [ebp + 0x24]
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipSaveImageToStream]
test eax, eax
je 0x40cae5
mov edx, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x5c]
mov dword [esi + 8], eax
mov esi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x58]
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x58], ebx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov byte [ebp - 4], 4
jmp 0x40cb25
lea eax, [ebp + 0x20]
mov dword [ebp + 0x20], ebx
push eax
push dword [ebp + 0x24]
call dword [sym.imp.ole32.dll_GetHGlobalFromStream]
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov esi, eax
test esi, esi
jne 0x40cb30
mov esi, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x5c]
mov eax, dword [ebp + 0x58]
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x58], ebx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp + 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x40cba5
push esi
lea ecx, [ebp + 0x58]
call fcn.004074d0
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40cb65
push ecx
lea ecx, [eax + esi]
push ecx
push eax
lea ecx, [ebp]
call fcn.004033d6
push eax
lea ecx, [ebp + 0x58]
call fcn.0040751b
lea ecx, [ebp]
call fcn.00402b8e
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov byte [ebp - 4], 6
mov eax, dword [ebp + 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov esi, dword [ebp + 0x1c]
jmp 0x40cb8b
mov edx, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x5c]
mov eax, dword [ebp + 0x58]
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], eax
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x60], ebx
lea ecx, [ebp + 0x58]
call fcn.00402b8e
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x64]
xor ecx, ebp
call fcn.0040ed3d
add ebp, 0x68
leave
ret