Function at 0x49d500
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 - 0x24], 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 - 0x58], eax
call esi
mov dword [ebp - 0x54], eax
lea edi, [ebp - 0x58]
mov dword [ebp - 0x1c], 2
cmp dword [edi], 0
jne 0x49d54a
mov dword [edi], 0xffffff
mov ebx, dword [edi]
xor eax, eax
mov dword [ebp - 0x18], ebx
xor edx, edx
mov al, byte [ebp - 0x16]
mov dl, bh
mov esi, eax
imul edx, edx, 0x8a8e
shl eax, 6
add eax, esi
mov ecx, ebx
and ecx, 0xff
lea eax, [eax + eax*2]
lea esi, [esi + eax*2]
lea esi, [esi + esi*4]
lea eax, [esi + esi*8]
lea esi, [ecx + ecx*4]
add edx, eax
lea eax, [esi + esi*8]
lea eax, [ecx + eax*4]
shl eax, 3
sub eax, ecx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*2]
add edx, eax
mov esi, edx
cmp esi, 0x300000
jge 0x49d62a
mov eax, 0x30000000
cdq
idiv esi
mov edx, eax
imul edx, ecx
mov ecx, edx
and cl, 0
cmp ecx, 0xff00
jbe 0x49d5c0
mov edx, 0xff
jmp 0x49d5c3
shr edx, 8
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 0x49d5ed
mov edx, 0xff
jmp 0x49d5f0
shr edx, 8
and ecx, 0xff00ff
shl edx, 8
or ecx, edx
xor edx, edx
mov dword [ebp - 0x18], ecx
mov dword [edi], ecx
mov dl, byte [ebp - 0x16]
imul edx, eax
mov eax, edx
and al, 0
cmp eax, 0xff00
jbe 0x49d61a
mov edx, 0xff
jmp 0x49d61d
shr edx, 8
and ecx, 0xffff
shl edx, 0x10
or ecx, edx
mov dword [edi], ecx
mov eax, dword [ebp - 0x1c]
add edi, 4
dec eax
mov dword [ebp - 0x1c], eax
jne 0x49d53f
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 [0x4f8e2c]
cmp eax, 8
je 0x49df11
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
mov eax, dword [esi + 8]
test eax, eax
je 0x49d690
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi + 4]
mov dword [ebp - 0x14], 0
test al, 1
je 0x49d6a5
mov dword [ebp - 0x14], 1
test al, 2
je 0x49d6ac
inc dword [ebp - 0x14]
test al, 4
je 0x49d6b3
inc dword [ebp - 0x14]
mov al, byte [esi + 0x19]
test al, al
je 0x49d6c5
mov ecx, dword [ebp - 0x1e4]
lea edi, [ecx + 3]
jmp 0x49d6c8
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x44]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x49df11
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x44]
neg ecx
neg edx
push ecx
lea eax, [ebp - 0x44]
push edx
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x1d4]
neg edi
mov dword [ebp - 0x38], ecx
mov ecx, 0xb
lea edx, [edx + edi*2]
lea edi, [ebp - 0x94]
mov dword [ebp - 0x3c], edx
add edx, 3
and edx, 0xfffffffc
push ebx
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 - 0x20], 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 - 0x18], eax
push 0xd
lea eax, [ebx + edx]
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 - 0x24], ecx
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ecx, dword [esi + 8]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x49d818
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1d4]
mov edx, eax
imul edx, ecx
mov dword [ebp - 0x40], edx
lea edx, [eax + 1]
mov ebx, ecx
mov dword [ebp - 0x5c], edx
imul ebx, edx
mov edx, eax
mov dword [ebp - 0x38], ebx
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 0x49d852
mov dword [ebp - 4], 0xffffff
jmp 0x49d859
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 - 0x14]
neg ebx
add ebx, dword [ebp - 0x3c]
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 0x49d8a3
mov edx, dword [ebp - 0x1d8]
pop eax
imul edx, dword [ebp - 0x14]
add edx, 4
add edi, 4
dec edx
mov byte [edi], al
jg 0x49d8bd
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 8], eax
jne 0x49d866
mov eax, dword [ebp - 0x1d4]
mov esi, 1
cmp eax, esi
jle 0x49d91b
mov edi, dword [ebp - 0x50]
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp - 0x10]
mov ebx, edi
imul edi, eax
imul ebx, eax
mov ecx, dword [ecx + 0x10]
mov edx, dword [ebp - 0x20]
add edi, esi
imul ebx, ecx
mov edx, dword [edx]
imul edi, ecx
lea ebx, [edx + ebx*4]
lea eax, [edx + edi*4]
push ebx
push eax
call dword [0x4d3dfc]
mov eax, dword [ebp - 0x1d4]
add esp, 0xc
inc esi
cmp esi, eax
jl 0x49d8dd
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 - 0x18]
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 - 0x40]
repne scasb al, byte es:[edi]
mov eax, dword [ebp - 0x24]
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 ecx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x10]
imul ecx, dword [ebp - 0x1d4]
mov edx, dword [ebp - 0x20]
imul ecx, eax
mov edx, dword [edx]
lea edx, [edx + ecx*4]
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x49d9d5
xor ecx, ecx
dec eax
test eax, eax
jle 0x49d9f7
mov eax, edx
mov dword [eax], 0x3f3f3f
mov esi, dword [ebx + 0x10]
inc ecx
add eax, 4
dec esi
cmp ecx, esi
jl 0x49d9c1
jmp 0x49d9f7
xor ecx, ecx
dec eax
test eax, eax
jle 0x49d9f7
mov eax, edx
mov esi, dword [eax]
add eax, 4
shr esi, 1
and esi, 0x7f7f7f
inc ecx
mov dword [eax - 4], esi
mov esi, dword [ebx + 0x10]
dec esi
cmp ecx, esi
jl 0x49d9de
mov ecx, dword [ebp - 0x1d4]
mov eax, 1
cmp ecx, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
jle 0x49da98
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp - 0xc]
shl eax, 2
add ecx, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 4]
lea edi, [ecx + 4]
add ecx, eax
cmp edi, ecx
jge 0x49da77
mov eax, dword [ebp - 0xc]
lea ecx, [eax + edi]
mov eax, dword [ebp - 0x50]
mov esi, ecx
sub esi, eax
xor eax, eax
mov al, byte [ecx - 4]
xor edx, edx
mov dl, byte [esi - 4]
add edi, 4
add eax, edx
xor edx, edx
mov dl, byte [ecx]
add ecx, 4
add eax, edx
xor edx, edx
mov dl, byte [esi]
add eax, edx
cdq
and edx, 3
add eax, edx
mov edx, dword [ebp - 4]
sar eax, 2
mov byte [ecx - 4], al
mov eax, dword [ebx + 0x10]
shl eax, 2
add edx, eax
cmp edi, edx
jl 0x49da37
mov ecx, dword [ebp - 4]
inc ecx
cmp ecx, 3
mov dword [ebp - 4], ecx
jl 0x49da25
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1d4]
inc eax
cmp eax, ecx
mov dword [ebp - 8], eax
jl 0x49da10
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x49db77
mov eax, dword [ebp - 0x1d4]
xor esi, esi
test eax, eax
mov dword [ebp - 8], esi
jle 0x49db77
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x10]
imul ecx, dword [ebp - 0x1d4]
add ecx, esi
mov edx, dword [ebp - 0x20]
imul ecx, eax
mov edx, dword [edx]
and esi, 0x1f
lea edi, [edx + ecx*4]
mov ecx, dword [ebx + 0x1c]
imul esi, ecx
mov edx, dword [ebx + 0x24]
lea edx, [edx + esi*4]
mov dword [ebp - 0xc], edx
xor edx, edx
test eax, eax
mov dword [ebp - 4], edx
jle 0x49db62
sub eax, edx
cmp eax, ecx
jge 0x49daf3
mov ecx, eax
test ecx, ecx
jle 0x49db53
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x49db11
xor eax, eax
xor edx, edx
mov al, byte [edi]
mov dl, byte [esi]
imul eax, edx
sar eax, 9
jmp 0x49db1f
xor eax, eax
xor edx, edx
mov al, byte [edi]
mov dl, byte [esi]
imul eax, edx
sar eax, 8
mov byte [edi], al
xor eax, eax
mov al, byte [esi + 1]
xor edx, edx
mov dl, byte [edi + 1]
add edi, 4
imul eax, edx
sar eax, 8
mov byte [edi - 3], al
xor eax, eax
mov al, byte [esi + 2]
xor edx, edx
mov dl, byte [edi - 2]
add esi, 4
imul eax, edx
sar eax, 8
mov byte [edi - 2], al
dec ecx
jne 0x49dafa
mov edx, dword [ebp - 4]
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x10]
add edx, ecx
cmp edx, eax
mov dword [ebp - 4], edx
jl 0x49daeb
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x1d4]
inc esi
cmp esi, eax
mov dword [ebp - 8], esi
jl 0x49dab6
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebx + 8]
mov eax, dword [ebp + esi*4 - 0x58]
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 - 0x40]
xor edi, edi
not ecx
dec ecx
push ecx
mov ecx, dword [ebp - 0x24]
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 [0x4f8e2c], 0x18
jge 0x49ddd3
imul esi, dword [ebp - 0x1d4]
imul esi, dword [ebx + 0x10]
mov edx, dword [ebp - 0x20]
mov cl, byte [0x500108]
test cl, cl
mov eax, dword [edx]
lea eax, [eax + esi*4]
jne 0x49dc57
xor cl, cl
xor dl, dl
mov dword [ebp - 4], edi
mov esi, dword [ebp - 4]
inc cl
cmp cl, 0x11
mov byte [esi + 0x4fff08], dl
jne 0x49dc12
xor cl, cl
add dl, 0x11
mov esi, dword [ebp - 4]
inc esi
cmp esi, 0x100
mov dword [ebp - 4], esi
jl 0x49dbfd
xor cl, cl
xor edx, edx
mov byte [edx + 0x500008], cl
inc cl
cmp cl, 0x11
jne 0x49dc34
xor cl, cl
inc edx
cmp edx, 0x100
jl 0x49dc25
xor cl, cl
xor esi, esi
mov byte [esi + 0x4ffef8], cl
add cl, 0x11
inc esi
cmp esi, 0x10
jl 0x49dc41
mov byte [0x500108], 1
mov ecx, dword [ebp - 0x1d4]
mov dword [ebp - 8], edi
cmp ecx, edi
jle 0x49ddd3
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebx + 0x10]
xor edx, edx
test ecx, ecx
mov dword [ebp - 4], edx
lea esi, [edi + 0x4d6b30]
jle 0x49ddbd
sub ecx, edx
cmp ecx, 8
jl 0x49dd1f
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 - 0x1c], cl
mov ecx, dword [ebp - 0x48]
and ecx, 0xff
mov byte [ebp - 0x4c], dl
mov dl, byte [ecx + 0x500008]
cmp byte [esi], dl
sbb edx, edx
and edx, 0x11
add dl, byte [ecx + 0x4fff08]
mov ecx, dword [ebp - 0x4c]
and ecx, 0xff
mov byte [eax], dl
mov dl, byte [ecx + 0x500008]
cmp byte [esi], dl
sbb edx, edx
and edx, 0x11
add dl, byte [ecx + 0x4fff08]
mov ecx, dword [ebp - 0x1c]
and ecx, 0xff
mov byte [eax + 1], dl
mov dl, byte [ecx + 0x500008]
cmp byte [esi], dl
sbb edx, edx
add eax, 4
and edx, 0x11
add dl, byte [ecx + 0x4fff08]
inc esi
dec edi
mov byte [eax - 2], dl
jne 0x49dc91
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 0x49dc8c
cmp edx, dword [ebx + 0x10]
jge 0x49ddaf
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 - 0x4c], dl
mov dl, byte [eax + 2]
and edi, 0xff
mov byte [ebp - 0x1c], dl
mov dl, byte [edi + 0x500008]
cmp byte [ecx], dl
sbb edx, edx
and edx, 0x11
add dl, byte [edi + 0x4fff08]
mov edi, dword [ebp - 0x4c]
and edi, 0xff
mov byte [eax], dl
mov dl, byte [edi + 0x500008]
cmp byte [ecx], dl
sbb edx, edx
and edx, 0x11
add dl, byte [edi + 0x4fff08]
mov edi, dword [ebp - 0x1c]
and edi, 0xff
mov byte [eax + 1], dl
mov dl, byte [edi + 0x500008]
cmp byte [ecx], dl
sbb edx, edx
add eax, 4
and edx, 0x11
add dl, byte [edi + 0x4fff08]
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 0x49dd2a
mov ecx, dword [ebx + 0x10]
cmp edx, ecx
jl 0x49dc81
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 0x49dc6b
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x1d4]
lea ecx, [eax + 2]
lea eax, [eax + edx - 2]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x28], eax
mov eax, edx
add edx, 0xfffffffe
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x1d8]
mov dword [ebp - 0x2c], edx
mov dl, byte [ebx + 4]
sub eax, ecx
test dl, 1
mov dword [ebp - 0x34], eax
je 0x49de26
mov edx, dword [ebx + 8]
mov edi, dword [sym.imp.USER32.dll_DrawFrameControl]
push 0
lea ecx, [ebp - 0x34]
push 1
push ecx
push edx
call edi
mov ecx, dword [ebp - 0x1d8]
mov eax, dword [ebp - 0x34]
jmp 0x49de2c
mov edi, dword [sym.imp.USER32.dll_DrawFrameControl]
mov esi, dword [ebp - 0x2c]
sub eax, ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
sub esi, ecx
push eax
mov dword [ebp - 0x2c], esi
mov esi, 2
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x49de51
mov esi, 3
test byte [ebx + 4], 2
je 0x49de64
mov edx, dword [ebx + 8]
push esi
lea ecx, [ebp - 0x34]
push 1
push ecx
push edx
call edi
mov eax, dword [ebp - 0x1d8]
mov edx, dword [ebp - 0x34]
mov ecx, 2
mov esi, dword [ebp - 0x2c]
sub ecx, eax
add edx, ecx
mov cl, byte [ebx + 4]
mov dword [ebp - 0x34], edx
mov edx, 2
sub edx, eax
add esi, edx
test cl, 4
mov dword [ebp - 0x2c], esi
je 0x49dea4
mov ecx, dword [ebx + 8]
push 1
lea eax, [ebp - 0x34]
push 1
push eax
push ecx
call edi
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [ebx]
test ecx, ecx
je 0x49ded0
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 - 0x40]
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 - 0x5c]
cmp eax, 2
mov dword [ebp - 0x10], eax
jl 0x49d80f
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 - 0x18]
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