Function at 0x4059e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 0x24], 0xb5e8f
mov dword [ebp - 0x48], 0x67c73
mov dword [ebp - 0x18], 0xaefcb
mov dword [ebp - 0x34], 0x7721a
mov dword [ebp - 0x20], 0x640ae
mov dword [ebp - 0x64], 0x7a5f6
mov dword [ebp - 0x68], 0x714d3
mov dword [ebp - 0x50], 0x199e7
mov dword [ebp - 8], 0x557dd
mov dword [ebp - 0x40], 0x42560
mov dword [ebp - 0x58], 0x5c98e
mov dword [ebp - 0x4c], 0xe3cd3
mov dword [ebp - 0x44], 0xc9811
mov dword [ebp - 4], 0x64079
mov dword [ebp - 0x28], 0x5798a
mov dword [ebp - 0x1c], 0xa4efc
mov dword [ebp - 0xc], 0xc0a40
mov dword [ebp - 0x2c], 0x4b9e6
mov dword [ebp - 0x30], 0x52a48
mov dword [ebp - 0x38], 0x84328
mov dword [ebp - 0x3c], 0xb331e
mov dword [ebp - 0x14], 0x5f006
mov dword [ebp - 0x10], 0x917b1
mov dword [ebp - 0x5c], 0x693b1
cmp dword [ebp - 0x20], 0x640af
jge 0x405b62
mov eax, dword [ebp - 8]
or eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x28]
add ecx, 0x2050a
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x18]
or edx, dword [ebp - 4]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0xc]
add eax, 0x4ff35
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x50]
or ecx, dword [ebp - 0x14]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x64]
add edx, 0xf1528
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 4]
and eax, dword [ebp - 0x38]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x38]
add edx, dword [ebp - 0x28]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 4]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp + 8]
sub ecx, dword [ebp - 0x58]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 0x40]
add edx, 0x1e55c
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x30], 0x5da81
jle 0x405b5d
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [ebp - 4]
sub ecx, 0x135c1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x24]
or edx, 0xcb102
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x10]
or ecx, dword [ebp - 0x40]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x405a8e
mov dword [ebp - 0x54], 0
jmp 0x405b74
mov eax, dword [ebp - 0x54]
add eax, 1
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x50]
sub ecx, 0x5f9e6
cmp dword [ebp - 0x54], ecx
jge 0x405c99
mov edx, dword [ebp - 8]
xor edx, 0x92636
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
and eax, 0xd58c8
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
or ecx, dword [ebp - 8]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x24]
sub edx, 0x5aea7
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x28], 0x9010c
jle 0x405c94
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x44]
and ecx, 0x52be3
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 8]
and edx, dword [ebp - 0x44]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x30]
xor eax, 0x9a012
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x40], 0x4743e
jle 0x405c94
mov ecx, dword [ebp - 8]
add ecx, 0xaf84c
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x20]
add edx, 0x8db47
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x18]
or eax, 0xbc552
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x10]
and ecx, 0x56430
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x24]
mov dword [ebp - 0x10], edx
cmp dword [ebp + 8], 0x8cd90
jge 0x405c94
mov eax, dword [ebp - 0x58]
sub eax, 0xf53f
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0xc]
and edx, 0xdcc42
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0x24], 0xb439e
jne 0x405c94
mov eax, dword [ebp - 0x1c]
or eax, 0x1ec44
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x2c]
xor ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x30]
xor edx, dword [ebp - 0x10]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x1c]
and eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
jmp 0x405b6b
mov edx, dword [ebp - 0x3c]
xor edx, dword [ebp - 0x44]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x48]
add eax, 0x543d9
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x18]
or edx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x68]
or eax, 0x56f3d
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x5c]
add ecx, 1
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x2c]
and edx, dword [ebp - 4]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x1c]
and eax, 0xc2162
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x24]
or ecx, dword [ebp - 0x30]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x18]
xor edx, 0x27dbf
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x20]
or ecx, dword [ebp - 0x10]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x5c], 0x693b2
jl 0x405c99
mov dword [ebp - 0x60], 0
jmp 0x405d29
mov edx, dword [ebp - 0x60]
add edx, 1
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x3c]
sub eax, 0x7ab0e
cmp dword [ebp - 0x60], eax
jge 0x405dae
mov ecx, dword [ebp - 0x48]
or ecx, 0xa34a1
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x14]
and edx, 0x4c66f
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x34]
xor eax, 0x82bc8
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 4]
or ecx, 0xdacfc
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x28]
and edx, dword [ebp - 0x3c]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x34]
and eax, dword [ebp - 4]
mov dword [ebp - 0x34], eax
cmp dword [ebp + 8], 0xeec1a
jge 0x405da9
mov ecx, dword [ebp - 0x2c]
or ecx, 0x37123
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x20]
and edx, dword [ebp - 0x14]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x4c]
or eax, 0x7951a
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x14]
sub ecx, 1
mov dword [ebp - 0x14], ecx
jmp 0x405d20
mov esp, ebp
pop ebp
ret