Function at 0x5399b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x612a61
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x67f864]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
push edi
mov eax, dword [0x67f864]
xor eax, esp
push eax
lea eax, [esp + 0x160]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x54]
push eax
push ecx
mov dword [esp + 0x34], esi
call dword [sym.imp.USER32.dll_GetClientRect]
lea edx, [esp + 0x54]
push edx
mov ecx, esi
call fcn.00579293
mov ebx, dword [esp + 0x60]
sub ebx, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
sub edi, dword [esp + 0x54]
lea eax, [esp + 0x30]
push eax
push 0
push 0xe200b
push 0
push ebx
push edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x94], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x48], 0
call sub.gdiplus.dll_GdipCreateBitmapFromScan0
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x80], eax
xor ecx, ecx
mov dword [esp + 0x168], ecx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
push ecx
push eax
call sub.gdiplus.dll_GdipGetImageGraphicsContext
mov eax, dword [esi + 0x64]
test eax, eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x34], ecx
je 0x539a8f
mov eax, dword [eax + 4]
jmp 0x539a91
xor eax, eax
push 0
push 0
push eax
push ecx
call sub.gdiplus.dll_GdipDrawImageI
mov edx, dword [esp + 0x34]
push edx
call sub.gdiplus.dll_GdipDeleteGraphics
cmp byte [esi + 0x5c], 0
je 0x539e6b
push ebx
push edi
lea esi, [esp + 0x3c]
call fcn.00531690
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x14]
push eax
push esi
mov dword [esp + 0x1c], 0
call sub.gdiplus.dll_GdipCreateFromHDC
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
push 0xffffffffffffffff
push eax
mov byte [esp + 0x170], 2
call sub.gdiplus.dll_GdipGraphicsClear
test eax, eax
je 0x539af6
mov dword [esp + 0x20], eax
push 0x98
lea ecx, [esp + 0xa0]
push 0
push ecx
call fcn.005d5de0
add esp, 0xc
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
fld1
mov dword [esp + 0x10c], eax
xor eax, eax
mov dword [esp + 0x148], eax
mov dword [esp + 0x134], eax
mov dword [esp + 0x138], eax
mov dword [esp + 0x144], eax
mov dword [esp + 0x154], eax
fstp dword [esp + 0x154]
mov dword [esp + 0x13c], eax
mov dword [esp + 0x140], eax
mov dword [esp + 0x14c], eax
mov dword [esp + 0x150], eax
mov eax, 1
push eax
lea edx, [esp + 0xa0]
push esi
mov word [esp + 0x142], 0xc
mov word [esp + 0x14e], ax
mov word [esp + 0x150], ax
mov word [esp + 0x152], ax
mov dword [esp + 0x13c], edx
call dword [sym.imp.GDI32.dll_SetBkMode]
lea edi, [esp + 0x1c]
lea ebx, [esp + 0x9c]
call fcn.004cea90
mov esi, dword [esp + 0x2c]
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x88]
push eax
mov eax, dword [esi + 0x70]
push ecx
mov ecx, dword [esi + 0x68]
lea ebx, [esp + 0x13c]
call fcn.004ab060
mov edx, dword [esp + 0xb0]
push edx
call fcn.0056bafc
mov eax, dword [esp + 0x28]
add esp, 0xc
xor ebx, ebx
push eax
mov dword [esp + 0xac], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xa4], ebx
call sub.gdiplus.dll_GdipDeleteGraphics
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x40]
push ecx
push ebx
push 0x26200a
push ebx
push edx
push eax
mov dword [esp + 0x58], ebx
call sub.gdiplus.dll_GdipCreateBitmapFromScan0
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x1c], ebx
call sub.gdiplus.dll_GdipGetImageGraphicsContext
mov edi, dword [esp + 0x14]
push 0xffffffffffffffff
push edi
call sub.gdiplus.dll_GdipGraphicsClear
lea edx, [esp + 0x28]
push edx
push edi
mov dword [esp + 0x30], ebx
call sub.gdiplus.dll_GdipGetDC
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
push 0xcc0020
push ebx
push ebx
push ecx
mov ecx, dword [esp + 0x28]
push edx
push ecx
push ebx
push ebx
push eax
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x1c]
push edx
push edi
call sub.gdiplus.dll_GdipReleaseDC
push edi
call sub.gdiplus.dll_GdipDeleteGraphics
mov edx, dword [esi + 0x6c]
mov eax, dword [esi + 0x74]
mov edi, dword [esi + 0x68]
mov ecx, dword [esi + 0x90]
sub eax, edx
mov dword [esp + 0x50], eax
lea eax, [esp + 0x64]
push eax
sub ecx, edi
push 0x26200a
mov dword [esp + 0x54], ecx
push 3
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], edi
mov edi, dword [esp + 0x9c]
push ecx
push edi
mov dword [esp + 0x5c], edx
call sub.gdiplus.dll_GdipBitmapLockBits
cmp eax, ebx
jne 0x539df8
cmp dword [esp + 0x68], ebx
mov dword [esp + 0x18], ebx
jbe 0x539ddd
fld qword [0x651220]
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x6c]
mov edi, dword [esi + 0x8c]
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
imul ecx, ebx
add ecx, dword [esp + 0x74]
cmp ebx, edi
mov eax, 0xff
jae 0x539d19
mov eax, dword [esp + 0x14]
jmp 0x539d32
mov edx, dword [esp + 0x68]
sub edx, edi
cmp ebx, edx
jb 0x539d36
mov eax, dword [esp + 0x68]
sub eax, ebx
sub eax, 1
imul eax, eax, 0xff
xor edx, edx
div edi
test eax, eax
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
jge 0x539d48
fadd qword [0x650da0]
fnstcw word [esp + 0x28]
movzx eax, word [esp + 0x28]
or eax, 0xc00
fmul st(1)
mov dword [esp + 0x1c], eax
xor edi, edi
cmp dword [esp + 0x64], edi
fldcw word [esp + 0x1c]
fistp qword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
fldcw word [esp + 0x28]
jbe 0x539dc2
mov edx, dword [ecx]
mov eax, edx
movzx ebx, dh
movzx edx, dl
shr eax, 0x10
add edx, ebx
and eax, 0xff
add edx, eax
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
or al, 0xff
sub al, dl
movzx edx, al
imul edx, dword [esp + 0x1c]
mov eax, 0x80808081
mul edx
shr edx, 7
shl edx, 0x18
mov dword [ecx], edx
add edi, 1
add ecx, 4
cmp edi, dword [esp + 0x64]
jb 0x539d78
mov ebx, dword [esp + 0x18]
add dword [esp + 0x14], 0xff
add ebx, 1
cmp ebx, dword [esp + 0x68]
mov dword [esp + 0x18], ebx
jb 0x539cf2
fstp st(0)
mov edx, dword [esp + 0x90]
lea ecx, [esp + 0x64]
push ecx
push edx
call sub.gdiplus.dll_GdipBitmapUnlockBits
mov edi, dword [esp + 0x90]
xor ebx, ebx
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x20], ebx
call sub.gdiplus.dll_GdipGetImageGraphicsContext
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x18]
push ebx
push edx
mov edx, dword [esp + 0x4c]
push eax
push ecx
push edx
push esi
call sub.gdiplus.dll_GdipSetClipRectI
push ebx
push ebx
push edi
push esi
call sub.gdiplus.dll_GdipDrawImageI
push esi
call sub.gdiplus.dll_GdipDeleteGraphics
push edi
call sub.gdiplus.dll_GdipDisposeImage
mov byte [esp + 0x168], 0
mov esi, dword [esp + 0x34]
cmp esi, ebx
je 0x539e67
mov eax, dword [esp + 0x38]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call edi
push esi
call edi
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push ecx
push edx
push esi
lea eax, [esp + 0x88]
call fcn.00539ec0
mov eax, dword [esp + 0x80]
push eax
call sub.gdiplus.dll_GdipDisposeImage
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.005ce60a
mov esp, ebp
pop ebp
ret