Function at 0x40d920
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x421008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea eax, [ebp - 0xec]
mov dword [ebp - 0xec], 0
push eax
mov esi, ecx
push 0
push 0xe200b
push 0
movsx eax, byte [esi + 1]
push eax
movsx eax, byte [esi]
push eax
mov dword [ebp - 0xf8], esi
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromScan0]
push 8
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov ebx, eax
mov dword [ebp - 0xf0], ebx
test ebx, ebx
je 0x40d9a5
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xe0], 0
push eax
push dword [ebp - 0xec]
call dword [sym.imp.gdiplus.dll_GdipGetImageGraphicsContext]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebx], eax
jmp 0x40d9af
mov dword [ebp - 0xf0], 0
movaps xmm0, xmmword [0x41d7a0]
xor ecx, ecx
movups xmmword [ebp - 0xdc], xmm0
mov byte [ebp - 0x5c], 0
movaps xmm0, xmmword [0x41cfc0]
movups xmmword [ebp - 0xcc], xmm0
movaps xmm0, xmmword [0x41d260]
movups xmmword [ebp - 0xbc], xmm0
movaps xmm0, xmmword [str._KFGD_____]
movups xmmword [ebp - 0xac], xmm0
movaps xmm0, xmmword [0x41e430]
movups xmmword [ebp - 0x9c], xmm0
movaps xmm0, xmmword [0x41e3b0]
movups xmmword [ebp - 0x8c], xmm0
movaps xmm0, xmmword [0x41e470]
movups xmmword [ebp - 0x7c], xmm0
movaps xmm0, xmmword [0x41e3a0]
movups xmmword [ebp - 0x6c], xmm0
nop
mov al, byte [ebp - 0xdc]
xor byte [ebp + ecx - 0xdb], al
inc ecx
cmp ecx, 0x7f
jb 0x40da20
lea ecx, [ebp - 0xdb]
mov byte [ebp - 0x5c], 0
mov dword [ebp - 0x20], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0xf
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40da55
sub ecx, edx
lea eax, [ebp - 0xdb]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.0040be50
mov eax, dword [ebp + 0x24]
xor edx, edx
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xe8], edx
test eax, eax
je 0x40dd10
nop word [eax + eax]
xor ebx, ebx
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
cmp eax, edx
jb 0x40de41
sub eax, edx
mov ecx, 1
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp + 0x28], 0x10
lea eax, [ebp + 0x14]
cmovae eax, dword [ebp + 0x14]
push ecx
add eax, edx
lea ecx, [ebp - 0x50]
push eax
call fcn.0040be50
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
cmp eax, ebx
jb 0x40de41
sub eax, ebx
mov ecx, 1
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0xc], 0x10
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push ecx
add eax, ebx
lea ecx, [ebp - 0x38]
push eax
call fcn.0040be50
cmp dword [ebp - 0x3c], 0x10
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x50]
mov edi, dword [ebp - 0x38]
cmovae edx, eax
cmp dword [ebp - 0x24], 0x10
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 0x38]
cmovae eax, edi
cmp esi, dword [ebp - 0x40]
jne 0x40dba9
sub esi, 4
jb 0x40db73
mov ecx, dword [eax]
cmp ecx, dword [edx]
jne 0x40db78
add eax, 4
add edx, 4
sub esi, 4
jae 0x40db62
cmp esi, 0xfffffffc
je 0x40dba5
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x40dba9
cmp esi, 0xfffffffd
je 0x40dba5
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x40dba9
cmp esi, 0xfffffffe
je 0x40dba5
mov cl, byte [eax + 2]
cmp cl, byte [edx + 2]
jne 0x40dba9
cmp esi, 0xffffffff
je 0x40dba5
mov al, byte [eax + 3]
cmp al, byte [edx + 3]
jne 0x40dba9
mov bl, 1
jmp 0x40dbab
xor bl, bl
mov eax, dword [ebp - 0x24]
cmp eax, 0x10
jb 0x40dbde
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x40dbd4
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40de19
push ecx
push edi
call fcn.00418a88
add esp, 8
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x40dc17
mov edx, dword [ebp - 0xfc]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x40dc0d
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40de19
push ecx
push edx
call fcn.00418a88
add esp, 8
test bl, bl
mov ebx, dword [ebp - 0xe4]
jne 0x40dc44
inc ebx
mov dword [ebp - 0xe4], ebx
cmp ebx, 0x80
jge 0x40dc3e
mov eax, dword [ebp + 0x24]
mov edx, dword [ebp - 0xe8]
jmp 0x40dab2
mov ebx, dword [ebp - 0x100]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
sub eax, edx
sar eax, 4
cmp eax, ebx
jbe 0x40de3c
add ebx, ebx
mov dword [ebp - 0xe4], 0
lea eax, [ebp - 0xe4]
push eax
movzx ecx, byte [edx + ebx*8]
movzx eax, byte [edx + ebx*8 + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + ebx*8 + 8]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + ebx*8 + 0xc]
shl ecx, 8
or ecx, eax
push ecx
call dword [sym.imp.gdiplus.dll_GdipCreateSolidFill]
mov esi, dword [ebp - 0xf4]
mov edi, dword [ebp - 0xf0]
mov ebx, dword [ebp - 0xe4]
push 1
push 1
push dword [ebp - 0xe0]
push esi
push ebx
push dword [edi]
call dword [sym.imp.gdiplus.dll_GdipFillRectangleI]
test eax, eax
je 0x40dcc0
mov dword [edi + 4], eax
mov eax, dword [ebp - 0xf8]
lea edi, [esi + 1]
push ebx
movsx esi, byte [eax]
call dword [sym.imp.gdiplus.dll_GdipDeleteBrush]
mov edx, dword [ebp - 0xe8]
xor ecx, ecx
inc edx
cmp edi, esi
mov dword [ebp - 0xe8], edx
cmovne ecx, edi
mov dword [ebp - 0xf4], ecx
mov ecx, dword [ebp - 0xe0]
lea eax, [ecx + 1]
cmovne eax, ecx
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp + 0x24]
cmp edx, eax
jb 0x40daa0
mov esi, dword [ebp - 0xf8]
mov ebx, dword [ebp - 0xec]
lea edx, [ebp - 0xe0]
movsx eax, byte [esi + 1]
movsx ecx, byte [esi]
push edx
push ebx
push 0
push eax
push ecx
push 0
push 0
mov dword [ebp - 0xe0], 0
call dword [sym.imp.gdiplus.dll_GdipCloneBitmapAreaI]
mov edi, dword [sym.imp.gdiplus.dll_GdipDisposeImage]
test eax, eax
je 0x40dd4b
xor esi, esi
jmp 0x40dd7b
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x40dd71
mov eax, dword [ebp - 0xe0]
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [esi + 8], 0
mov dword [esi + 4], eax
jmp 0x40dd7b
push dword [ebp - 0xe0]
xor esi, esi
call edi
mov edx, dword [ebp - 0xc]
cmp edx, 0x10
jb 0x40ddab
mov ecx, dword [ebp - 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40dda1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40de19
push edx
push ecx
call fcn.00418a88
add esp, 8
push ebx
call edi
mov edx, dword [ebp + 0x28]
cmp edx, 0x10
jb 0x40ddde
mov ecx, dword [ebp + 0x14]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ddd4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40de19
push edx
push ecx
call fcn.00418a88
add esp, 8
mov edx, dword [ebp + 8]
mov dword [ebp + 0x24], 0
mov dword [ebp + 0x28], 0xf
mov byte [ebp + 0x14], 0
test edx, edx
je 0x40de29
mov ecx, dword [ebp + 0x10]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff0
cmp ecx, 0x1000
jb 0x40de1f
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40de1f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00418a88
add esp, 8
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041882f
mov esp, ebp
pop ebp
ret
call fcn.00411e30
call fcn.0040c280
int3