Function at 0x401d76
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xb4
cmp dword [ebp + 0xc], 0x202
je 0x401fbc
cmp dword [ebp + 0xc], 0x202
ja 0x402225
cmp dword [ebp + 0xc], 0x201
je 0x401ecd
cmp dword [ebp + 0xc], 0x201
ja 0x402225
cmp dword [ebp + 0xc], 0x200
je 0x401fe2
cmp dword [ebp + 0xc], 0x200
ja 0x402225
cmp dword [ebp + 0xc], 0x24
je 0x401e07
cmp dword [ebp + 0xc], 0x24
ja 0x402225
cmp dword [ebp + 0xc], 0x20
je 0x401e9d
cmp dword [ebp + 0xc], 0x20
ja 0x402225
cmp dword [ebp + 0xc], 5
je 0x401e26
cmp dword [ebp + 0xc], 0xf
je 0x402037
jmp 0x402225
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x18], 0x410
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x1c], 0x327
jmp 0x40224c
mov eax, dword [ebp + 0x14]
movzx eax, ax
mov dword [0x404008], eax
mov eax, dword [ebp + 0x14]
shr eax, 0x10
movzx eax, ax
mov dword [0x40400c], eax
mov eax, dword [0x40400c]
lea ebx, [eax + 0x27]
mov eax, dword [0x404008]
lea ecx, [eax + 0x10]
mov edx, dword [0x40400c]
mov eax, dword [0x404008]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], str.Sandbox_resized_to:__dx_d__title:__dx_d__n
call sym._printf
mov eax, dword [0x407044]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_InvalidateRect]
call eax
sub esp, 0xc
jmp 0x40224c
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_LoadCursorA]
call eax
sub esp, 8
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SetCursor]
call eax
sub esp, 4
mov eax, 0
jmp 0x40224c
mov eax, dword [ebp + 0x14]
cwde
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
shr eax, 0x10
cwde
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc], 0
jmp 0x401fa4
mov edx, dword [0x407048]
mov eax, dword [ebp - 0xc]
shl eax, 2
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
add eax, edx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
add eax, 0x18
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
lea eax, [ebp - 0x3c]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_PtInRect]
call eax
sub esp, 0xc
test eax, eax
je 0x401fa0
movzx eax, byte [0x40704c]
xor eax, 1
test al, al
je 0x401fa0
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [0x407050], eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov dword [0x407054], eax
mov dword [0x407058], edx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov eax, edx
sub eax, ecx
mov dword [0x40705c], eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
mov eax, edx
sub eax, ecx
mov dword [0x407060], eax
mov byte [0x40704c], 1
add dword [ebp - 0xc], 1
mov eax, dword [0x407040]
cmp dword [ebp - 0xc], eax
jl 0x401eea
mov eax, 0
jmp 0x40224c
movzx eax, byte [0x40704c]
test al, al
je 0x401fd8
mov byte [0x40704c], 0
mov dword [0x407050], 0xffffffff
mov eax, 0
jmp 0x40224c
movzx eax, byte [0x40704c]
test al, al
je 0x40202d
mov eax, dword [ebp + 0x14]
cwde
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x14]
shr eax, 0x10
cwde
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov edx, dword [0x407060]
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x44]
mov ebx, dword [0x40705c]
sub eax, ebx
mov edx, eax
mov eax, dword [0x407050]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._MoveWindowByID
mov eax, 0
jmp 0x40224c
mov dword [esp], str.WM_PAINT
call sym._puts
lea eax, [ebp - 0x84]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_BeginPaint]
call eax
sub esp, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
call eax
sub esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [0x40400c]
mov eax, dword [0x404008]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
call eax
sub esp, 0xc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_SelectObject]
call eax
sub esp, 8
mov edx, dword [0x40400c]
mov eax, dword [0x404008]
mov dword [esp + 0x20], 0xcc0020
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov ecx, dword [ebp - 0x18]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_BitBlt]
call eax
sub esp, 0x24
mov dword [esp], 0xffffff
mov eax, dword [sym.imp.GDI32.dll_CreateSolidBrush]
call eax
sub esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_SelectObject]
call eax
sub esp, 8
mov edx, dword [0x40400c]
mov eax, dword [0x404008]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_Rectangle]
call eax
sub esp, 0x14
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], 1
call sym._LoadWindows
mov edx, dword [0x40400c]
mov eax, dword [0x404008]
mov dword [esp + 0x20], 0xcc0020
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_BitBlt]
call eax
sub esp, 0x24
lea eax, [ebp - 0x84]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_EndPaint]
call eax
sub esp, 8
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_DeleteObject]
call eax
sub esp, 4
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_DeleteObject]
call eax
sub esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_DeleteDC]
call eax
sub esp, 4
mov eax, 0
jmp 0x40224c
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_DefWindowProcA]
call eax
sub esp, 0x10
jmp 0x40224c
mov ebx, dword [ebp - 4]
leave
ret 0x10