Function at 0x49b680
Capabilities:
Encrypt data using rc4 ksa
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e8
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push edi
push 3
mov dword [ebp - 0x14], 3
call esi
push 2
mov dword [ebp - 0x68], eax
call esi
push 0x13
mov dword [ebp - 0x64], eax
call esi
push 9
mov dword [ebp - 0x5c], eax
call esi
mov dword [ebp - 0x58], eax
lea edi, [ebp - 0x5c]
mov dword [ebp - 0x18], 2
cmp dword [edi], 0
jne 0x49b6ca
mov dword [edi], 0xffffff
mov ebx, dword [edi]
xor edx, edx
mov dword [ebp - 0x1c], ebx
mov ecx, ebx
mov dl, byte [ebp - 0x1a]
and ecx, 0xff
mov eax, edx
shl eax, 6
add eax, edx
lea eax, [eax + eax*2]
lea eax, [edx + eax*2]
xor edx, edx
mov dl, bh
lea esi, [eax + eax*4]
lea eax, [ecx + ecx*4]
imul edx, edx, 0x8a8e
lea eax, [eax + eax*8]
lea esi, [esi + esi*8]
add esi, edx
lea eax, [ecx + eax*4]
shl eax, 3
sub eax, ecx
lea edx, [eax + eax*4]
lea eax, [ecx + edx*2]
add esi, eax
cmp esi, 0x300000
jge 0x49b7a8
mov eax, 0x30000000
cdq
idiv esi
imul ecx, eax
mov edx, ecx
and dl, 0
cmp edx, 0xff00
jbe 0x49b73c
mov edx, 0xff
jmp 0x49b741
shr ecx, 8
mov edx, ecx
and ebx, 0xffff00
mov ecx, ebx
or ecx, edx
xor edx, edx
mov dl, ch
mov dword [edi], ecx
imul edx, eax
mov esi, edx
and esi, 0xffffff00
cmp esi, 0xff00
jbe 0x49b76b
mov edx, 0xff
jmp 0x49b76e
shr edx, 8
and ecx, 0xff00ff
shl edx, 8
or ecx, edx
xor edx, edx
mov dword [ebp - 0x1c], ecx
mov dword [edi], ecx
mov dl, byte [ebp - 0x1a]
imul edx, eax
mov eax, edx
and al, 0
cmp eax, 0xff00
jbe 0x49b798
mov edx, 0xff
jmp 0x49b79b
shr edx, 8
and ecx, 0xffff
shl edx, 0x10
or ecx, edx
mov dword [edi], ecx
mov eax, dword [ebp - 0x18]
add edi, 4
dec eax
mov dword [ebp - 0x18], eax
jne 0x49b6bf
lea ecx, [ebp - 0x1e8]
push 0
push ecx
push 0
push 0x29
mov dword [ebp - 0x1e8], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov esi, dword [ebp + 0xc]
mov byte [esi + 0x18], 0
mov eax, dword [0x4f3404]
cmp eax, 8
je 0x49c073
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
mov eax, dword [esi + 8]
test eax, eax
je 0x49b80e
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi + 4]
mov dword [ebp - 0x20], 0
test al, 1
je 0x49b823
mov dword [ebp - 0x20], 1
test al, 2
je 0x49b82a
inc dword [ebp - 0x20]
test al, 4
je 0x49b831
inc dword [ebp - 0x20]
mov al, byte [esi + 0x19]
test al, al
je 0x49b844
mov eax, dword [ebp - 0x1e4]
add eax, 3
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x34]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x49c073
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
neg edx
neg eax
push edx
lea ecx, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1d4]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], edx
neg eax
lea edi, [ebp - 0x94]
push ebx
lea edx, [ecx + eax*2]
mov ecx, 0xb
mov dword [ebp - 0x2c], edx
add edx, 3
and edx, 0xfffffffc
mov dword [esi + 0x10], edx
lea eax, [edx*4]
mov dword [ebp - 0x50], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x1d4]
mov dword [ebp - 0x90], edx
or eax, 0xffffffff
mov dword [ebp - 0x94], 0x28
lea edx, [ecx + ecx]
mov word [ebp - 0x88], 1
sub eax, edx
mov word [ebp - 0x86], 0x20
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x84], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
lea edi, [esi + 0x20]
push 0
push 0
push edi
lea ecx, [ebp - 0x94]
push 1
push ecx
push ebx
mov dword [esi + 8], eax
mov dword [ebp - 0x24], edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov edx, dword [esi + 8]
push eax
push edx
mov dword [esi + 0xc], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [ebp - 0x1d0]
mov byte [ebp - 0x1b6], 4
push ecx
mov byte [ebp - 0x1b8], 4
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ebx, dword [ebp - 0x1d4]
mov edx, dword [ebp - 0x1d0]
mov dword [ebp - 0x1c], eax
push 0xd
lea eax, [edx + ebx]
cdq
sub eax, edx
mov ecx, eax
mov eax, 0x66666667
imul ebx
sar edx, 3
mov eax, edx
shr eax, 0x1f
sar ecx, 1
add edx, eax
sub ecx, edx
mov dword [ebp - 0x4c], ecx
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x49b994
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1d4]
mov edx, eax
imul edx, ecx
mov dword [ebp - 0x30], edx
lea edx, [eax + 1]
mov dword [ebp - 0x54], edx
imul edx, ecx
mov dword [ebp - 0x28], edx
mov edx, eax
imul edx, ecx
imul edx, dword [esi + 0x10]
mov ecx, dword [edi]
lea ecx, [ecx + edx*4]
mov edx, dword [esi + 0x24]
test edx, edx
je 0x49b9cc
mov dword [ebp - 4], 0xffffff
jmp 0x49b9d3
mov edx, dword [ebp + eax*4 - 0x68]
mov dword [ebp - 4], edx
add ecx, 2
mov dword [ebp - 8], 3
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 4]
mov edx, eax
and eax, 0xff
push eax
shr edx, 8
mov dword [ebp - 4], edx
shl eax, 0x10
xor edx, edx
mov ebx, dword [ebp - 0x1d8]
imul ebx, dword [ebp - 0x20]
neg ebx
add ebx, dword [ebp - 0x2c]
push ebx
div ebx
mov ebx, eax
mov esi, eax
shl ebx, 0x10
shr esi, 0x10
xor ecx, ecx
xor eax, eax
mov edi, dword [ebp - 0xc]
dec dword [ebp - 0xc]
pop edx
add ecx, ebx
adc eax, esi
add edi, 4
dec edx
mov byte [edi], al
jg 0x49ba1d
mov edx, dword [ebp - 0x1d8]
pop eax
imul edx, dword [ebp - 0x20]
add edx, 4
add edi, 4
dec edx
mov byte [edi], al
jg 0x49ba37
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 8], eax
jne 0x49b9e0
mov eax, dword [ebp - 0x1d4]
mov esi, 1
cmp eax, esi
jle 0x49ba95
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x50]
push edi
mov edi, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x10]
mov edx, dword [ebp - 0x24]
mov ebx, ecx
imul ebx, edi
imul edi, eax
add edi, esi
imul ebx, eax
mov edx, dword [edx]
imul edi, ecx
lea ebx, [edx + ebx*4]
lea eax, [edx + edi*4]
push ebx
push eax
call dword [0x4d0494]
mov eax, dword [ebp - 0x1d4]
add esp, 0xc
inc esi
cmp esi, eax
jl 0x49ba57
mov ebx, dword [ebp + 0xc]
push 1
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebx + 8]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebx + 8]
push 0
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x2e8]
push 0x100
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edi, [ebp - 0x2e8]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp - 0x30]
repne scasb al, byte es:[edi]
mov eax, dword [ebp - 0x4c]
not ecx
dec ecx
add eax, edx
mov edx, dword [ebx]
push ecx
lea ecx, [ebp - 0x2e8]
push ecx
xor ecx, ecx
test edx, edx
setne cl
imul ecx, dword [ebp - 0x1d8]
mov edx, dword [ebx + 8]
add ecx, 4
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_TextOutA]
mov eax, dword [ebx + 0x10]
mov edx, dword [ebp - 0x24]
mov ecx, eax
imul ecx, dword [ebp - 0x10]
imul ecx, dword [ebp - 0x1d4]
mov edx, dword [edx]
lea esi, [edx + ecx*4]
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x49bb4f
xor ecx, ecx
dec eax
test eax, eax
jle 0x49bb71
mov eax, esi
mov dword [eax], 0x3f3f3f
mov edx, dword [ebx + 0x10]
inc ecx
add eax, 4
dec edx
cmp ecx, edx
jl 0x49bb3b
jmp 0x49bb71
xor ecx, ecx
dec eax
test eax, eax
jle 0x49bb71
mov eax, esi
mov edx, dword [eax]
add eax, 4
shr edx, 1
and edx, 0x7f7f7f
inc ecx
mov dword [eax - 4], edx
mov edx, dword [ebx + 0x10]
dec edx
cmp ecx, edx
jl 0x49bb58
mov ecx, dword [ebp - 0x1d4]
mov eax, 1
cmp ecx, eax
mov dword [ebp - 4], eax
jle 0x49bbfa
mov eax, dword [ebx + 0x10]
shl eax, 2
add esi, eax
xor edx, edx
mov dword [ebp - 8], edx
lea ecx, [edx + 4]
lea edi, [eax + edx]
cmp ecx, edi
jge 0x49bbe0
mov edx, dword [ebp - 0x50]
mov eax, ecx
sub eax, edx
xor edx, edx
mov dl, byte [eax + esi - 4]
add ecx, 4
lea edi, [eax + esi]
xor eax, eax
mov al, byte [ecx + esi - 8]
add eax, edx
xor edx, edx
mov dl, byte [ecx + esi - 4]
add eax, edx
xor edx, edx
mov dl, byte [edi]
add eax, edx
cdq
and edx, 3
add eax, edx
mov edx, dword [ebp - 8]
sar eax, 2
mov byte [ecx + esi - 4], al
mov eax, dword [ebx + 0x10]
shl eax, 2
lea edi, [eax + edx]
cmp ecx, edi
jl 0x49bb9a
inc edx
cmp edx, 3
mov dword [ebp - 8], edx
jl 0x49bb90
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1d4]
inc eax
cmp eax, ecx
mov dword [ebp - 4], eax
jl 0x49bb83
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x49bcd9
mov eax, dword [ebp - 0x1d4]
xor edi, edi
test eax, eax
mov dword [ebp - 4], edi
jle 0x49bcd9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x10]
imul ecx, dword [ebp - 0x1d4]
add ecx, edi
mov edx, dword [ebp - 0x24]
imul ecx, eax
mov edx, dword [edx]
and edi, 0x1f
lea esi, [edx + ecx*4]
mov ecx, dword [ebx + 0x1c]
imul edi, ecx
mov edx, dword [ebx + 0x24]
lea edx, [edx + edi*4]
mov dword [ebp - 0xc], edx
xor edx, edx
test eax, eax
mov dword [ebp - 8], edx
jle 0x49bcc4
sub eax, edx
cmp eax, ecx
jge 0x49bc55
mov ecx, eax
test ecx, ecx
jle 0x49bcb5
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x49bc73
xor eax, eax
xor edx, edx
mov al, byte [edi]
mov dl, byte [esi]
imul eax, edx
sar eax, 9
jmp 0x49bc81
xor eax, eax
xor edx, edx
mov al, byte [edi]
mov dl, byte [esi]
imul eax, edx
sar eax, 8
mov byte [esi], al
xor eax, eax
mov al, byte [edi + 1]
xor edx, edx
mov dl, byte [esi + 1]
add esi, 4
imul eax, edx
sar eax, 8
mov byte [esi - 3], al
xor eax, eax
mov al, byte [edi + 2]
xor edx, edx
mov dl, byte [esi - 2]
add edi, 4
imul eax, edx
sar eax, 8
mov byte [esi - 2], al
dec ecx
jne 0x49bc5c
mov edx, dword [ebp - 8]
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x10]
add edx, ecx
cmp edx, eax
mov dword [ebp - 8], edx
jl 0x49bc4d
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x1d4]
inc edi
cmp edi, eax
mov dword [ebp - 4], edi
jl 0x49bc18
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebx + 8]
mov eax, dword [ebp + esi*4 - 0x5c]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea edi, [ebp - 0x2e8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x2e8]
repne scasb al, byte es:[edi]
mov eax, dword [ebp - 0x30]
xor edi, edi
not ecx
dec ecx
push ecx
mov ecx, dword [ebp - 0x4c]
push edx
lea edx, [ecx + eax - 1]
mov ecx, dword [ebx]
xor eax, eax
cmp ecx, edi
setne al
imul eax, dword [ebp - 0x1d8]
mov ecx, dword [ebx + 8]
add eax, 3
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_TextOutA]
cmp dword [0x4f3404], 0x18
jge 0x49bf35
imul esi, dword [ebp - 0x1d4]
imul esi, dword [ebx + 0x10]
mov edx, dword [ebp - 0x24]
mov cl, byte [0x4fa680]
test cl, cl
mov eax, dword [edx]
lea eax, [eax + esi*4]
jne 0x49bdb9
xor cl, cl
xor dl, dl
mov dword [ebp - 4], edi
mov esi, dword [ebp - 4]
inc cl
cmp cl, 0x11
mov byte [esi + 0x4fa480], dl
jne 0x49bd74
xor cl, cl
add dl, 0x11
mov esi, dword [ebp - 4]
inc esi
cmp esi, 0x100
mov dword [ebp - 4], esi
jl 0x49bd5f
xor cl, cl
xor edx, edx
mov byte [edx + 0x4fa580], cl
inc cl
cmp cl, 0x11
jne 0x49bd96
xor cl, cl
inc edx
cmp edx, 0x100
jl 0x49bd87
xor cl, cl
xor esi, esi
mov byte [esi + 0x4fa470], cl
add cl, 0x11
inc esi
cmp esi, 0x10
jl 0x49bda3
mov byte [0x4fa680], 1
mov ecx, dword [ebp - 0x1d4]
mov dword [ebp - 8], edi
cmp ecx, edi
jle 0x49bf35
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebx + 0x10]
xor edx, edx
test ecx, ecx
mov dword [ebp - 4], edx
lea esi, [edi + 0x4d31b8]
jle 0x49bf1f
sub ecx, edx
cmp ecx, 8
jl 0x49be81
mov edi, 8
mov cl, byte [eax]
mov dl, byte [eax + 1]
mov byte [ebp - 0x48], cl
mov cl, byte [eax + 2]
mov byte [ebp - 0x18], cl
mov ecx, dword [ebp - 0x48]
and ecx, 0xff
mov byte [ebp - 0x14], dl
mov dl, byte [ecx + 0x4fa580]
cmp byte [esi], dl
sbb dl, dl
and edx, 0x11
add dl, byte [ecx + 0x4fa480]
mov ecx, dword [ebp - 0x14]
and ecx, 0xff
mov byte [eax], dl
mov dl, byte [ecx + 0x4fa580]
cmp byte [esi], dl
sbb dl, dl
and edx, 0x11
add dl, byte [ecx + 0x4fa480]
mov ecx, dword [ebp - 0x18]
and ecx, 0xff
mov byte [eax + 1], dl
mov dl, byte [ecx + 0x4fa580]
cmp byte [esi], dl
sbb dl, dl
add eax, 4
and edx, 0x11
add dl, byte [ecx + 0x4fa480]
inc esi
dec edi
mov byte [eax - 2], dl
jne 0x49bdf3
mov edx, dword [ebp - 4]
mov ecx, dword [ebx + 0x10]
add edx, 8
sub esi, 8
sub ecx, edx
mov dword [ebp - 4], edx
cmp ecx, 8
jge 0x49bdee
cmp edx, dword [ebx + 0x10]
jge 0x49bf11
mov ecx, esi
mov dl, byte [eax]
mov byte [ebp - 0x48], dl
mov dl, byte [eax + 1]
mov edi, dword [ebp - 0x48]
mov byte [ebp - 0x14], dl
mov dl, byte [eax + 2]
and edi, 0xff
mov byte [ebp - 0x18], dl
mov dl, byte [edi + 0x4fa580]
cmp byte [ecx], dl
sbb dl, dl
and edx, 0x11
add dl, byte [edi + 0x4fa480]
mov edi, dword [ebp - 0x14]
and edi, 0xff
mov byte [eax], dl
mov dl, byte [edi + 0x4fa580]
cmp byte [ecx], dl
sbb dl, dl
and edx, 0x11
add dl, byte [edi + 0x4fa480]
mov edi, dword [ebp - 0x18]
and edi, 0xff
mov byte [eax + 1], dl
mov dl, byte [edi + 0x4fa580]
cmp byte [ecx], dl
sbb dl, dl
add eax, 4
and edx, 0x11
add dl, byte [edi + 0x4fa480]
inc ecx
mov byte [eax - 2], dl
mov edx, dword [ebp - 4]
mov edi, dword [ebx + 0x10]
add edx, 2
cmp edx, edi
mov dword [ebp - 4], edx
jl 0x49be8c
mov ecx, dword [ebx + 0x10]
cmp edx, ecx
jl 0x49bde3
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add edi, 8
and edi, 0x3f
dec ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], ecx
jne 0x49bdcd
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x1d4]
lea ecx, [eax + 2]
lea eax, [edx + eax - 2]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov eax, edx
add edx, 0xfffffffe
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x1d8]
mov dword [ebp - 0x3c], edx
mov dl, byte [ebx + 4]
sub eax, ecx
test dl, 1
mov dword [ebp - 0x44], eax
je 0x49bf88
mov edx, dword [ebx + 8]
mov edi, dword [sym.imp.USER32.dll_DrawFrameControl]
push 0
lea ecx, [ebp - 0x44]
push 1
push ecx
push edx
call edi
mov ecx, dword [ebp - 0x1d8]
mov eax, dword [ebp - 0x44]
jmp 0x49bf8e
mov edi, dword [sym.imp.USER32.dll_DrawFrameControl]
mov esi, dword [ebp - 0x3c]
sub eax, ecx
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
sub esi, ecx
push eax
mov dword [ebp - 0x3c], esi
mov esi, 2
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x49bfb3
mov esi, 3
test byte [ebx + 4], 2
je 0x49bfc6
mov edx, dword [ebx + 8]
push esi
lea ecx, [ebp - 0x44]
push 1
push ecx
push edx
call edi
mov eax, dword [ebp - 0x1d8]
mov edx, dword [ebp - 0x44]
mov ecx, 2
mov esi, dword [ebp - 0x3c]
sub ecx, eax
add edx, ecx
mov cl, byte [ebx + 4]
mov dword [ebp - 0x44], edx
mov edx, 2
sub edx, eax
add esi, edx
test cl, 4
mov dword [ebp - 0x3c], esi
je 0x49c006
mov ecx, dword [ebx + 8]
push 1
lea eax, [ebp - 0x44]
push 1
push eax
push ecx
call edi
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [ebx]
test ecx, ecx
je 0x49c032
mov edx, dword [ebp - 0x1d4]
push 3
push 0
add edx, 0xfffffffe
push 0
add eax, 0xfffffffe
push edx
push eax
mov eax, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebx + 8]
inc eax
push eax
push 1
push ecx
call dword [sym.imp.USER32.dll_DrawIconEx]
mov eax, dword [ebp - 0x54]
cmp eax, 2
mov dword [ebp - 0x10], eax
jl 0x49b98b
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp - 0x60]
push edx
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [ebp + 8]
push 0
push 1
push 0x85
push edx
mov byte [esi + 0x18], 1
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret