Function at 0x6c355838
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x44c
mov esi, eax
mov edi, edx
mov dword [esp], eax
call sym.libgdk_win32_2.0_0.dll_gdk_visual_get_screen
mov dword [ebp - 0x438], eax
mov dword [esp], 0x70
call sym._g_malloc0
mov ebx, eax
mov dword [eax], esi
mov dword [eax + 8], 6
mov dword [eax + 0xc], 6
mov dword [eax + 0x10], 4
mov dword [eax + 0x14], 0x18
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0x3ff00000
mov dword [eax + 0x30], 0
mov dword [eax + 0x40], 0
mov dword [eax + 4], edi
mov eax, dword [esi + 0xc]
cmp eax, 3
je 0x6c355bcf
cmp eax, 2
je 0x6c355c2a
lea edx, [eax - 2]
cmp edx, 1
jbe 0x6c355bd5
cmp eax, 1
je 0x6c355e04
test edi, edi
je 0x6c356015
mov eax, dword [ebx]
mov esi, dword [eax + 0x10]
xor eax, eax
cmp esi, 1
sete al
mov dword [ebx + 0x3c], eax
mov ecx, dword [ebp - 0x438]
mov dword [esp], ecx
call sym.libgdk_win32_2.0_0.dll_gdk_screen_get_display
mov dword [esp + 4], esi
mov dword [esp], eax
call sym.__gdk_windowing_get_bits_for_depth
add eax, 7
mov ecx, 8
cdq
idiv ecx
mov dword [ebx + 0x1c], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sym.libgdk_win32_2.0_0.dll_gdk_visual_get_screen
mov edx, dword [ebx]
mov esi, dword [edx + 0x10]
mov dword [esp], eax
call sym.libgdk_win32_2.0_0.dll_gdk_screen_get_display
mov dword [esp + 4], esi
mov dword [esp], eax
call sym.__gdk_windowing_get_bits_for_depth
mov dword [ebp - 0x42c], eax
mov edx, dword [ebx]
mov edi, dword [edx + 0x14]
cmp dword [0x6c3c6100], 0
je 0x6c35598e
mov eax, 0x6c395a1e
test edi, edi
je 0x6c355b04
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x42c]
mov dword [esp + 0xc], eax
mov eax, dword [edx + 0x10]
mov dword [esp + 8], eax
mov eax, dword [edx + 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.Chose_visual_type_d_depth_d__image_bpp_d___s_first_n
call sym._g_print
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
cmp eax, 5
je 0x6c355bc8
mov ecx, dword [edx + 0x20]
mov dword [ebp - 0x430], ecx
mov ecx, dword [edx + 0x2c]
mov dword [ebp - 0x434], ecx
mov edx, dword [edx + 0x38]
mov dword [ebp - 0x438], edx
cmp dword [ebp - 0x430], 0xff0000
je 0x6c355ba6
cmp dword [ebp - 0x430], 0xff
je 0x6c355b7a
xor edx, edx
xor ecx, ecx
mov dword [ebx + 0x38], 0
cmp dword [ebx + 0x3c], 0
jne 0x6c355a73
cmp dword [ebp - 0x42c], 0x10
je 0x6c355b0e
cmp dword [ebp - 0x42c], 0x18
je 0x6c355db4
cmp dword [ebp - 0x42c], 0x20
jne 0x6c355a1f
cmp esi, 0x18
je 0x6c355ef7
cmp esi, 0x20
je 0x6c355ef7
cmp eax, 4
je 0x6c355d75
cmp dword [ebp - 0x42c], 8
je 0x6c355d2a
cmp dword [ebp - 0x42c], 4
jne 0x6c355ce8
cmp esi, 4
jg 0x6c355ce8
cmp esi, 1
jle 0x6c356103
cmp eax, 1
ja 0x6c356103
mov edx, sym._gdk_rgb_convert_indexed_generic
mov ecx, sym._gdk_rgb_convert_gray_generic
mov eax, sym._gdk_rgb_convert_gray4_d_pack
mov esi, sym._gdk_rgb_convert_gray4_pack
jmp 0x6c355a84
mov edx, sym._gdk_rgb_convert_indexed_generic
mov ecx, sym._gdk_rgb_convert_gray_generic
mov eax, sym._gdk_rgb_convert_1
mov esi, eax
mov dword [ebx + 0x44], esi
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], sym._gdk_rgb_convert_32_generic
mov dword [ebx + 0x50], sym._gdk_rgb_convert_32_generic_d
mov dword [ebx + 0x54], ecx
mov dword [ebx + 0x58], sym._gdk_rgb_convert_gray_generic_d
mov dword [ebx + 0x5c], edx
mov dword [ebx + 0x60], sym._gdk_rgb_convert_indexed_generic_d
cmp dword [0x6c3c6108], 0
jne 0x6c355ac6
mov dword [esp], str.gdk_rgb_info
call sym._g_quark_from_static_string
mov dword [0x6c3c6108], eax
mov esi, dword [0x6c3c6108]
mov dword [esp + 4], 0x50
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sym._g_type_check_instance_cast
mov dword [esp + 0xc], sym._gdk_rgb_free_info
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._g_object_set_qdata_full
mov eax, ebx
add esp, 0x44c
pop ebx
pop esi
pop edi
leave
ret
mov eax, 0x6c395a1a
jmp 0x6c355964
xor edx, edx
cmp edi, 1
sete dl
cmp esi, 0x10
je 0x6c35609d
cmp esi, 0xf
jne 0x6c355a1f
cmp eax, 4
jne 0x6c355ce8
test edx, edx
jne 0x6c356129
cmp dword [ebp - 0x430], 0x7c00
jne 0x6c355d75
cmp dword [ebp - 0x434], 0x3e0
jne 0x6c355d75
cmp dword [ebp - 0x438], 0x1f
jne 0x6c355d75
mov edx, sym._gdk_rgb_convert_indexed_generic
mov ecx, sym._gdk_rgb_convert_gray_generic
mov eax, sym._gdk_rgb_convert_555
jmp 0x6c355a82
cmp dword [ebp - 0x434], 0xff00
jne 0x6c3559d5
cmp dword [ebp - 0x438], 0xff0000
jne 0x6c3559d5
xor edx, edx
mov ecx, 1
jmp 0x6c3559d9
cmp ecx, 0xff00
jne 0x6c3559d5
cmp edx, 0xff
je 0x6c356091
xor edx, edx
xor cx, cx
jmp 0x6c3559d9
mov al, 4
jmp 0x6c35599a
cmp dword [esi + 0x10], 4
jle 0x6c355c30
test edi, edi
je 0x6c356051
xor edx, edx
cmp dword [ebx + 4], 0
setne dl
mov eax, ebx
call sym._gdk_rgb_do_colormaps
test eax, eax
je 0x6c355f48
cmp dword [0x6c3c6100], 0
jne 0x6c355f75
cmp dword [ebx + 4], 0
jne 0x6c3558e8
mov ecx, dword [ebp - 0x438]
mov dword [esp], ecx
call sym.libgdk_win32_2.0_0.dll_gdk_screen_get_system_colormap
mov dword [esp], eax
call sym._g_object_ref
mov dword [ebx + 4], eax
jmp 0x6c3558e8
cmp dword [esi + 0x10], 7
jg 0x6c355bd5
cmp dword [esi + 0x10], 2
jle 0x6c3558cb
test edi, edi
je 0x6c3561c5
mov dword [esp], 0x200
call sym._g_malloc
mov dword [ebx + 0x68], eax
xor esi, esi
lea edx, [ebp - 0x24]
mov dword [ebp - 0x42c], edx
mov ecx, esi
and ecx, 4
mov dword [ebp - 0x430], ecx
mov eax, ecx
sar eax, 2
neg eax
mov word [ebp - 0x20], ax
mov edi, esi
and edi, 2
mov eax, edi
sar eax, 1
neg eax
mov word [ebp - 0x1e], ax
mov eax, esi
and eax, 1
neg eax
mov word [ebp - 0x1c], ax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x42c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sym.libgdk_win32_2.0_0.dll_gdk_colormap_alloc_color
mov eax, dword [ebp - 0x430]
shl eax, 4
shl edi, 2
or eax, edi
mov edx, esi
and edx, 1
or eax, edx
mov edx, dword [ebx + 0x68]
mov ecx, dword [ebp - 0x24]
mov byte [edx + eax], cl
inc esi
cmp esi, 8
jne 0x6c355c5c
jmp 0x6c3558e8
cmp esi, 7
jg 0x6c355ce8
cmp esi, 1
jg 0x6c356261
mov edx, 0x6c395a1e
test edi, edi
jne 0x6c355cf6
mov edx, 0x6c395a1a
mov dword [esp + 0x18], edx
mov edx, dword [ebp - 0x42c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Visual_type_d_depth_d__image_bpp_d___s_first_nis_not_supported_by_GdkRGB._Please_submit_a_bug_report_nwith_the_above_values_to_bugzilla.gnome.org
mov dword [esp + 4], 4
mov dword [esp], 0x6c395b07
call sym._g_log
jmp 0x6c355d28
cmp esi, 8
jg 0x6c355cda
cmp esi, 4
jle 0x6c3561a0
lea edx, [eax - 1]
cmp edx, 2
ja 0x6c3561a0
mov dword [ebx + 0x38], 1
dec eax
je 0x6c356210
cmp dword [ebx + 8], 6
je 0x6c3561e3
mov edx, sym._gdk_rgb_convert_8_indexed
mov ecx, sym._gdk_rgb_convert_gray_cmap
mov eax, sym._gdk_rgb_convert_8_d
mov esi, sym._gdk_rgb_convert_8
jmp 0x6c355a84
test edi, edi
je 0x6c355d9b
cmp edi, 1
jne 0x6c355a28
mov edx, sym._gdk_rgb_convert_indexed_generic
mov ecx, sym._gdk_rgb_convert_gray_generic
mov eax, sym._gdk_rgb_convert_truecolor_msb_d
mov esi, sym._gdk_rgb_convert_truecolor_msb
jmp 0x6c355a84
mov edx, sym._gdk_rgb_convert_indexed_generic
mov ecx, sym._gdk_rgb_convert_gray_generic
mov eax, sym._gdk_rgb_convert_truecolor_lsb_d
mov esi, sym._gdk_rgb_convert_truecolor_lsb
jmp 0x6c355a84
cmp esi, 0x18
jne 0x6c355a1f
cmp eax, 4
jne 0x6c355ce8
test edx, edx
je 0x6c355dd2
test edi, edi
je 0x6c356283
test ecx, ecx
je 0x6c355ddf
cmp edi, 1
je 0x6c356283
test edx, edx
je 0x6c355de8
cmp edi, 1
je 0x6c355df0
test ecx, ecx
je 0x6c355d75
test edi, edi
jne 0x6c355d79
mov edx, sym._gdk_rgb_convert_indexed_generic
mov ecx, sym._gdk_rgb_convert_gray_generic
mov eax, sym._gdk_rgb_convert_888_msb
jmp 0x6c355a82
test edi, edi
je 0x6c356224
mov eax, dword [ebx + 4]
xor edi, edi
xor esi, esi
lea edx, [ebp - 0x24]
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x430], ebx
mov ebx, eax
mov dword [ebp - 0x24], esi
mov word [ebp - 0x20], di
mov word [ebp - 0x1e], di
mov word [ebp - 0x1c], di
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov ecx, dword [ebp - 0x42c]
mov dword [esp + 4], ecx
mov dword [esp], ebx
call sym.libgdk_win32_2.0_0.dll_gdk_colormap_alloc_color
mov eax, dword [ebp - 0x24]
mov dword [ebp + esi*4 - 0x424], eax
inc esi
add edi, 0x101
cmp esi, 0x100
jne 0x6c355e24
mov ebx, dword [ebp - 0x430]
mov dword [esp], 0x1000
call sym._g_malloc
mov dword [ebx + 0x64], eax
xor eax, eax
lea esi, [esi]
mov edx, eax
sar edx, 4
and edx, 0xf0
mov esi, edx
sar esi, 4
mov ecx, eax
and ecx, 0xf0
mov dword [ebp - 0x42c], ecx
sar ecx, 4
mov edi, eax
shl edi, 4
and edi, 0xff
mov dword [ebp - 0x430], edi
sar edi, 4
or edi, dword [ebp - 0x430]
or esi, edx
lea esi, [edi + esi]
sar esi, 1
mov edx, dword [ebp - 0x42c]
or ecx, edx
mov dword [ebp - 0x434], ecx
lea ecx, [esi + ecx]
sar ecx, 1
mov edx, dword [ebp + ecx*4 - 0x424]
mov ecx, dword [ebx + 0x64]
mov byte [ecx + eax], dl
inc eax
cmp eax, 0x1000
jne 0x6c355e88
jmp 0x6c3558e8
cmp eax, 4
je 0x6c355ff0
cmp esi, 0x18
jne 0x6c355fe2
cmp eax, 4
je 0x6c355fd1
cmp esi, 0x18
jne 0x6c355f9b
cmp eax, 4
jne 0x6c355ce8
test ecx, ecx
je 0x6c355d75
test edi, edi
jne 0x6c355d79
mov edx, sym._gdk_rgb_convert_indexed_generic
mov ecx, sym._gdk_rgb_convert_gray_generic
mov eax, sym._gdk_rgb_convert_8880_br
jmp 0x6c355a82
mov dword [esp + 4], 0
mov eax, dword [ebx]
mov dword [esp], eax
call sym.libgdk_win32_2.0_0.dll_gdk_colormap_new
mov dword [ebx + 4], eax
mov dword [ebx + 0x20], 1
mov edx, 1
mov eax, ebx
call sym._gdk_rgb_do_colormaps
jmp 0x6c355bf5
mov eax, dword [ebx + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebx + 8]
mov dword [esp + 4], eax
mov dword [esp], str.color_cube:__d_x__d_x__d_n
call sym._g_print
jmp 0x6c355c02
cmp esi, 0x20
jne 0x6c355a1f
cmp eax, 4
jne 0x6c355ce8
test edx, edx
je 0x6c355d75
test edi, edi
jne 0x6c355d79
mov edx, sym._gdk_rgb_convert_indexed_generic
mov ecx, sym._gdk_rgb_convert_gray_generic
mov eax, sym._gdk_rgb_convert_0888
jmp 0x6c355a82
test edx, edx
je 0x6c355f12
test edi, edi
je 0x6c355fbd
jmp 0x6c355f12
cmp esi, 0x20
je 0x6c355f09
jmp 0x6c355a1f
test edx, edx
je 0x6c355f00
cmp edi, 1
jne 0x6c355f00
mov edx, sym._gdk_rgb_convert_indexed_generic
mov ecx, sym._gdk_rgb_convert_gray_generic
mov eax, sym._gdk_rgb_convert_0888_br
jmp 0x6c355a82
cmp eax, 5
je 0x6c356030
mov eax, dword [ebp - 0x438]
mov dword [esp], eax
call sym.libgdk_win32_2.0_0.dll_gdk_screen_get_system_visual
cmp esi, eax
je 0x6c356243
mov dword [esp + 4], 0
mov eax, dword [ebx]
mov dword [esp], eax
call sym.libgdk_win32_2.0_0.dll_gdk_colormap_new
mov dword [ebx + 4], eax
mov dword [ebx + 0x20], 1
jmp 0x6c3558e8
cmp dword [0x6c3c6104], 0
jne 0x6c356070
mov edx, dword [ebp - 0x438]
mov dword [esp], edx
call sym.libgdk_win32_2.0_0.dll_gdk_screen_get_system_visual
cmp esi, eax
je 0x6c355bdd
mov dword [esp + 4], 0
mov eax, dword [ebx]
mov dword [esp], eax
call sym.libgdk_win32_2.0_0.dll_gdk_colormap_new
mov dword [ebx + 4], eax
mov dword [ebx + 0x20], 1
jmp 0x6c355bdd
mov edx, 1
xor ecx, ecx
jmp 0x6c3559d9
test edx, edx
jne 0x6c3560b1
cmp dword [ebp - 0x430], 0xf800
je 0x6c35616a
cmp eax, 4
jne 0x6c355ce8
test edx, edx
je 0x6c355d75
cmp dword [ebp - 0x430], 0xf800
jne 0x6c355d75
cmp dword [ebp - 0x434], 0x7e0
jne 0x6c355d75
cmp dword [ebp - 0x438], 0x1f
jne 0x6c355d75
mov edx, sym._gdk_rgb_convert_indexed_generic
mov ecx, sym._gdk_rgb_convert_gray_generic
mov eax, sym._gdk_rgb_convert_565_br
jmp 0x6c355a82
cmp esi, 4
jne 0x6c355ce8
cmp eax, 2
jne 0x6c355ce8
mov edx, sym._gdk_rgb_convert_indexed_generic
mov ecx, sym._gdk_rgb_convert_gray_generic
mov eax, sym._gdk_rgb_convert_4_pack
jmp 0x6c355a82
cmp dword [ebp - 0x430], 0x7c00
jne 0x6c355d75
cmp dword [ebp - 0x434], 0x3e0
jne 0x6c355d75
cmp dword [ebp - 0x438], 0x1f
jne 0x6c355d75
mov edx, sym._gdk_rgb_convert_indexed_generic
mov ecx, sym._gdk_rgb_convert_gray_generic
mov eax, sym._gdk_rgb_convert_555_br
jmp 0x6c355a82
cmp dword [ebp - 0x434], 0x7e0
jne 0x6c3560b1
cmp dword [ebp - 0x438], 0x1f
jne 0x6c3560b1
mov edx, sym._gdk_rgb_convert_indexed_generic
mov ecx, sym._gdk_rgb_convert_565_gray
mov eax, sym._gdk_rgb_convert_565_d
mov esi, sym._gdk_rgb_convert_565
jmp 0x6c355a84
cmp esi, 8
jne 0x6c355cda
test eax, eax
jne 0x6c355ce8
mov edx, sym._gdk_rgb_convert_indexed_generic
mov ecx, sym._gdk_rgb_convert_gray8_gray
mov eax, sym._gdk_rgb_convert_gray8
jmp 0x6c355a82
mov eax, dword [ebp - 0x438]
mov dword [esp], eax
call sym.libgdk_win32_2.0_0.dll_gdk_screen_get_system_colormap
mov dword [esp], eax
call sym._g_object_ref
mov dword [ebx + 4], eax
jmp 0x6c355c42
cmp dword [ebx + 0xc], 6
jne 0x6c355d5c
cmp dword [ebx + 0x10], 6
jne 0x6c355d5c
mov edx, sym._gdk_rgb_convert_8_indexed
mov ecx, sym._gdk_rgb_convert_gray_cmap
mov eax, sym._gdk_rgb_convert_8_d666
mov esi, sym._gdk_rgb_convert_8
jmp 0x6c355a84
mov edx, sym._gdk_rgb_convert_8_indexed
mov ecx, sym._gdk_rgb_convert_gray_cmap
mov eax, sym._gdk_rgb_convert_8
jmp 0x6c355a82
mov dword [esp + 4], 0
mov dword [esp], esi
call sym.libgdk_win32_2.0_0.dll_gdk_colormap_new
mov dword [ebx + 4], eax
mov dword [ebx + 0x20], 1
jmp 0x6c355e0c
mov edx, dword [ebp - 0x438]
mov dword [esp], edx
call sym.libgdk_win32_2.0_0.dll_gdk_screen_get_system_colormap
mov dword [esp], eax
call sym._g_object_ref
mov dword [ebx + 4], eax
jmp 0x6c3558e8
cmp eax, 1
jbe 0x6c356297
cmp esi, 2
jle 0x6c355ce8
mov edx, sym._gdk_rgb_convert_indexed_generic
mov ecx, sym._gdk_rgb_convert_gray_generic
mov eax, sym._gdk_rgb_convert_4
jmp 0x6c355a82
mov edx, sym._gdk_rgb_convert_indexed_generic
mov ecx, sym._gdk_rgb_convert_gray_generic
mov eax, sym._gdk_rgb_convert_888_lsb
jmp 0x6c355a82
mov edx, sym._gdk_rgb_convert_indexed_generic
mov ecx, sym._gdk_rgb_convert_gray_generic
mov eax, sym._gdk_rgb_convert_gray4_d
mov esi, sym._gdk_rgb_convert_gray4
jmp 0x6c355a84