Function at 0x4121a6
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x68
push 0xffffffffffffffff
push 0x43c59e
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x451020]
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 0x41220e
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
jmp 0x4123b7
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 0x4123a6
lea eax, [ebp + 0x24]
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 2
lea edi, [ebp + 0x48]
xor eax, eax
mov esi, 0x44a558
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 0x37
pop esi
div esi
add edx, 0x35
xor word [ebp + ecx*2 - 0x60], dx
inc ecx
cmp ecx, 0x27
jl 0x41224e
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
je 0x41229d
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 0x412340
xor eax, eax
lea edi, [ebp + 0x2c]
inc eax
mov esi, 0x43e7d4
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 0x412300
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 0x412340
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 0x41234b
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 0x4123c0
push esi
lea ecx, [ebp + 0x58]
call fcn.0040770f
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x412380
push ecx
lea ecx, [eax + esi]
push ecx
push eax
lea ecx, [ebp]
call fcn.0040351d
push eax
lea ecx, [ebp + 0x58]
call fcn.0040775a
lea ecx, [ebp]
call fcn.00402cd5
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 0x4123a6
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.00402cd5
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.0041660f
add ebp, 0x68
leave
ret