Function at 0x434935
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push 0xac
mov eax, 0x4b5412
call fcn.00487e94
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebx + 0xc4]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xc
push dword [eax + 8]
call esi
mov ecx, dword [ebx + 0xc4]
mov edi, eax
push 0xe
push dword [ecx + 8]
call esi
mov esi, eax
imul esi, edi
cmp dword [ebx + 0xec], 0
mov dword [ebp - 0x50], esi
je 0x434dbe
cmp dword [ebx + 0x100], 0x20
jne 0x434dbe
lea ecx, [ebp - 0xb8]
call fcn.0042e9f5
xor eax, eax
mov dword [ebp - 4], eax
cmp esi, 0x20
je 0x434a18
push eax
push eax
push eax
push 0x20
push dword [ebx + 0x8c]
lea ecx, [ebp - 0xb8]
push dword [ebx + 0x88]
call fcn.0042ea7d
mov eax, dword [ebx + 0xc4]
test eax, eax
je 0x4349cb
mov eax, dword [eax + 4]
push 0xcc0020
push dword [ebx + 0x84]
lea ecx, [ebp - 0xb8]
push dword [ebx + 0x80]
push eax
push dword [ebx + 0x8c]
push dword [ebx + 0x88]
push 0
push 0
call fcn.0042eb8f
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0xb4]
call fcn.00469591
lea ecx, [ebp - 0xb8]
mov dword [ebp + 8], eax
call fcn.0042f133
mov esi, dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp + 8]
push 0x18
push dword [eax + 4]
call esi
mov eax, dword [ebp - 0x60]
mov edi, dword [ebp - 0x64]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
imul edi, eax
lea eax, [ebp - 0x84]
push eax
push 0x18
push dword [ecx + 4]
call esi
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x7c]
imul eax, ecx
push edi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], eax
call fcn.0045a96b
mov esi, dword [sym.imp.GDI32.dll_GetBitmapBits]
pop ecx
push eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
push edi
push dword [eax + 4]
call esi
mov edi, dword [ebp - 0x20]
push edi
call fcn.0045a96b
pop ecx
push eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
push edi
push dword [eax + 4]
call esi
mov edx, dword [ebp - 0x64]
xor esi, esi
mov dword [ebp - 0x40], esi
test edx, edx
jle 0x434b94
mov edi, dword [ebp - 0x68]
xor eax, eax
mov ebx, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
and dword [ebp - 0x3c], 0
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
test edi, edi
jle 0x434b79
mov edx, eax
mov cl, byte [edx + ebx + 3]
movzx edi, byte [edx + ebx + 3]
not cl
movzx eax, byte [edx + ebx]
mov edx, dword [ebp - 0x14]
imul eax, edi
movzx esi, cl
mov ecx, dword [ebp - 0x24]
movzx ecx, byte [edx + ecx]
xor edx, edx
imul ecx, esi
add eax, ecx
mov ecx, 0xff
div ecx
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
mov byte [edx + ebx], al
movzx ecx, byte [edx + ecx + 1]
xor edx, edx
mov eax, dword [ebp - 0x18]
imul ecx, esi
movzx eax, byte [eax + ebx + 1]
imul eax, edi
add eax, ecx
mov ecx, 0xff
div ecx
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov byte [ecx + ebx + 1], al
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
movzx eax, byte [eax + ebx + 2]
imul eax, edi
mov edi, dword [ebp - 0x14]
movzx ecx, byte [edi + ecx + 2]
imul ecx, esi
add eax, ecx
mov ecx, 0xff
div ecx
mov edx, dword [ebp - 0x18]
mov byte [edi + ebx + 2], al
movzx eax, word [ebp - 0x5a]
shr eax, 3
add edi, eax
movzx eax, word [ebp - 0x72]
shr eax, 3
add edx, eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x68]
inc eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x3c], eax
cmp eax, edi
jl 0x434abd
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x40]
add ecx, dword [ebp - 0x4c]
inc esi
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], eax
cmp esi, edx
jl 0x434aa9
mov ebx, dword [ebp - 0x10]
cmp dword [ebp - 0x50], 0x20
lea edi, [ebx + 0xe8]
push dword [ebp - 0x1c]
mov dword [ebp - 0x28], edi
push dword [ebp - 0x20]
jne 0x434bb7
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
call dword [sym.imp.GDI32.dll_SetBitmapBits]
jmp 0x434c31
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.GDI32.dll_SetBitmapBits]
push dword [eax + 4]
call esi
mov ecx, edi
call fcn.0042eb6b
mov ecx, dword [ebp + 0xc]
push 0
mov eax, dword [ecx + 4]
mov ecx, edi
mov dword [edi + 4], eax
call fcn.0042f170
push 0xcc0020
push 0
push 0
lea ecx, [ebp - 0xb8]
call fcn.0042eb8f
push eax
push dword [ebx + 0x8c]
mov ecx, edi
push dword [ebx + 0x88]
push 0
push 0
call fcn.0042eb8f
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, edi
call fcn.0042f133
lea ecx, [ebp - 0xb8]
call fcn.0042f133
push dword [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
push dword [ebp - 0x20]
push dword [eax + 4]
call esi
xor eax, eax
cmp dword [ebx + 0xac], eax
je 0x434d9d
mov ebx, vtable.CGdiObject.0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x38], vtable.CPen.0
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.GDI32.dll_CreatePen]
push 0xf8f8f8
push 1
push eax
call esi
push eax
lea ecx, [ebp - 0x38]
call fcn.00469355
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], ebx
mov byte [ebp - 4], 3
mov dword [ebp - 0x30], vtable.CPen.0
mov byte [ebp - 4], 4
push 0x989898
push 1
push 0
call esi
push eax
lea ecx, [ebp - 0x30]
call fcn.00469355
mov ecx, edi
call fcn.0042eb8f
push dword [ebp - 0x34]
mov edi, eax
push edi
mov dword [ebp + 0xc], edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [sym.imp.GDI32.dll_MoveToEx]
mov ebx, eax
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x8c]
dec ecx
push ecx
push 0
push edi
call esi
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x8c]
dec eax
push eax
mov eax, dword [ecx + 0x88]
dec eax
push eax
push edi
mov edi, dword [sym.imp.GDI32.dll_LineTo]
call edi
mov eax, dword [ebp - 0x10]
push 0
mov eax, dword [eax + 0x88]
dec eax
push eax
push dword [ebp + 0xc]
call edi
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x8c]
dec eax
push eax
mov eax, dword [ecx + 0x88]
dec eax
push eax
push dword [ebp + 0xc]
call edi
push dword [ebp - 0x2c]
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x8c]
sub eax, 2
push eax
push 0
push dword [ebp + 0xc]
call esi
mov esi, dword [ebp + 0xc]
push 0
push 0
push esi
call edi
mov eax, dword [ebp - 0x10]
push 0
mov eax, dword [eax + 0x88]
dec eax
push eax
push esi
call edi
push ebx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [ebp - 0x38]
call fcn.00469486
lea ecx, [ebp - 0x30]
call fcn.00469486
mov ecx, dword [ebp - 0x28]
call fcn.0042f133
mov byte [ebp - 4], 2
mov ebx, vtable.CPen.0
mov dword [ebp - 0x30], ebx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0043101a
mov byte [ebp - 4], 0
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0043101a
push dword [ebp - 0x24]
call fcn.0045a966
push dword [ebp - 0x1c]
call fcn.0045a966
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb8]
call fcn.0042ea59
call fcn.00487e62
ret 8