Function at 0x626bac
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
mov byte [ebp - 0x3d], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov dl, 6
mov eax, dword [ebp - 4]
call fcn.004dac78
mov dl, 1
mov eax, dword [0x4d00a0]
call fcn.004d90b0
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
dec eax
test eax, eax
jl 0x626c53
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004d9b54
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
dec eax
test eax, eax
jl 0x626c4b
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + 2]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + 1]
add dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
add dword [ebp - 0x24], eax
add dword [ebp - 0x18], 3
inc dword [ebp - 0x10]
dec dword [ebp - 0x3c]
jne 0x626c22
inc dword [ebp - 0x14]
dec dword [ebp - 0x38]
jne 0x626bfc
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
mov ebx, eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
imul ebx, eax
mov dword [ebp - 0x28], ebx
cmp dword [ebp - 0x28], 0
jne 0x626c78
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x24]
cdq
idiv dword [ebp - 0x28]
mov ecx, eax
mov eax, dword [ebp - 0x20]
cdq
idiv dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x1c]
cdq
idiv dword [ebp - 0x28]
pop edx
call fcn.004112cc
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
sub eax, dword [0x6f9658]
mov dword [ebp - 0x2c], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004d99e4
call fcn.004d4064
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
sub eax, dword [0x6f9658]
push eax
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.004d99e4
call fcn.004d4064
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [0x6f9658]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
sub eax, dword [0x6f9658]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004d99e4
call fcn.004d4064
xor ecx, ecx
mov edx, dword [ebp - 0x2c]
call fcn.00626798
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
sub eax, dword [0x6f9658]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
sub eax, dword [0x6f9658]
push eax
mov eax, dword [0x6f9658]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004d99e4
call fcn.004d4064
mov ecx, dword [ebp - 0x2c]
xor edx, edx
call fcn.00626798
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
push eax
mov eax, dword [ebp - 4]
call fcn.004d99e4
call fcn.004d4064
push eax
mov eax, dword [ebp - 0xc]
call fcn.004d99e4
call fcn.004d4064
pop edx
pop ecx
call fcn.006267f0
lea eax, [ebp - 0x34]
xor ecx, ecx
mov edx, 4
call fcn.00406e60
mov byte [ebp - 0x34], 0
mov byte [ebp - 0x32], 0xff
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
sub eax, dword [0x6f9658]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x6f9658]
dec eax
test eax, eax
jl 0x626e78
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], 0
fild dword [ebp - 0x30]
fld xword [0x626eec]
fmulp st(1)
call fcn.00406d60
mov dl, 0xff
sub dl, al
mov byte [ebp - 0x32], dl
push dword [ebp - 0x34]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
sub eax, dword [0x6f9658]
push eax
push 1
push 0
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 4]
call fcn.004d99e4
call fcn.004d4064
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
sub eax, dword [0x6f9658]
push eax
push 1
push 0
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004d99e4
call fcn.004d4064
push eax
call sub.msimg32.dll_AlphaBlend
inc dword [ebp - 0x30]
dec dword [ebp - 0x38]
jne 0x626e01
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
sub eax, dword [0x6f9658]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, eax
sub edx, dword [0x6f9658]
xor eax, eax
pop ecx
call fcn.0048bcf4
push 0
push 0x64
mov eax, dword [ebp - 4]
call fcn.004d99e4
call fcn.004d4064
push eax
mov eax, dword [ebp - 0xc]
call fcn.004d99e4
call fcn.004d4064
lea ecx, [ebp - 0x50]
pop edx
call fcn.00626948
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
call fcn.004072c8
pop ebx
mov esp, ebp
pop ebp
ret